/*!@license
* Infragistics.Web.ClientUI infragistics.spreadsheet.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.ext_collectionsExtended.js
*     infragistics.ext_io.js
*     infragistics.ext_text.js
*     infragistics.ext_web.js
*     infragistics.xml.js
*     infragistics.dv_interactivity.js
*     infragistics.dv_core.js
*     infragistics.documents.core_core.js
*     infragistics.excel_core.js
*     infragistics.ext_ui.js
*     infragistics.undo.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.ext_collectionsExtended","./infragistics.ext_io","./infragistics.ext_text","./infragistics.ext_web","./infragistics.xml","./infragistics.dv_interactivity","./infragistics.dv_visualdata","./infragistics.dv_core","./infragistics.documents.core_core","./infragistics.documents.core_openxml","./infragistics.excel_core","./infragistics.ext_ui","./infragistics.undo"],factory)}else{factory(igRoot)}})(function($){/*!@license
* Infragistics.Web.ClientUI infragistics.spreadsheet.js resources 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
*/
(function(){$=$||{};$.ig=$.ig||{};$.ig.locale=$.ig.locale||{};$.ig.locale.en=$.ig.locale.en||{};$.ig.locale.en.spreadsheet=$.ig.locale.en.spreadsheet||{};var l=$.ig.locale.en.spreadsheet;l["CellBorderLineStyle_DashDot"]="DashDot";l["CellBorderLineStyle_DashDotDot"]="DashDotDot";l["CellBorderLineStyle_Dashed"]="Dashed";l["CellBorderLineStyle_Default"]="Default";l["CellBorderLineStyle_Dotted"]="Dotted";l["CellBorderLineStyle_Double"]="Double";l["CellBorderLineStyle_Hair"]="Hair";l["CellBorderLineStyle_Medium"]="Medium";l["CellBorderLineStyle_MediumDashDot"]="MediumDashDot";l["CellBorderLineStyle_MediumDashDotDot"]="MediumDashDotDot";l["CellBorderLineStyle_MediumDashed"]="MediumDashed";l["CellBorderLineStyle_None"]="None";l["CellBorderLineStyle_SlantedDashDot"]="SlantedDashDot";l["CellBorderLineStyle_Thick"]="Thick";l["CellBorderLineStyle_Thin"]="Thin";l["CopyError_InvalidSelection_Message"]="The operation cannot be performed on the current selection. If there are multiple selections ensure they form a rectangular region and do not overlap.";l["CustomValidationInformationMessage"]="{0}";l["CustomValidationStopMessage"]="{0}";l["CustomValidationWarningMessage"]="{0}\r\n\r\nContinue?";l["DefaultAutoFilterToolTip"]="(Showing All)";l["DefaultChartTitle"]="Chart Title";l["DefaultHyperlinkToolTip"]="{0} - Click once to follow. Click and hold to select this cell.";l["DefaultValidationInformationMessage"]="The value you entered is not valid.\r\n\r\nA user has restricted values that can be entered into this cell.";l["DefaultValidationStopMessage"]="The value you entered is not valid.\r\n\r\nA user has restricted values that can be entered into this cell.";l["DefaultValidationWarningMessage"]="The value you entered is not valid.\r\n\r\nA user has restricted values that can be entered into this cell.\r\n\r\nContinue?";l["DeleteWorksheets_Message"]="Deleting a worksheet cannot be undone and you may be removing some data. If you don't need it then click Ok.";l["Error_ChangePartOfDataTableError_Message"]="Cannot change part of a data table.";l["Error_DeletingLockedColumnCells_Message"]="You are trying to delete a column that contains a locked cell. Locked cells cannot be deleted while the worksheet is protected.";l["Error_DeletingLockedRowCells_Message"]="You are trying to delete a row that contains a locked cell. Locked cells cannot be deleted while the worksheet is protected.";l["Error_IntersectsMergedCells_Message"]="The operation cannot be performed because the selection intersects with a merged cell.";l["Error_InvalidArrayFormulaLockedState_Message"]="Cannot enter an array formula into a range of cells which are not all locked or unlocked.";l["Error_InvalidHyperlinkAddress_Message"]="Cannot open the specified file.";l["Error_InvalidHyperlinkReference_Message"]="Reference is not valid.";l["Error_InvalidProtectedWorksheetChange_Message"]="The cell you're trying to change is on a protected sheet.";l["Error_InvalidSortOrFilterRange_Message"]="This operation cannot be performed on the selected range. The selection should be within an area with data and/or formatting and should not contain table and non-table cells.";l["Error_LargeOperation_Message"]="The operation you are about to perform affects a large number of cells and may take a significant amount of time to complete. Are you sure you want to continue?";l["Error_LargePasteOperation_Message"]="The operation you are about to perform affects a large number of cells and may take a significant amount of time to complete. Are you sure you want to continue?";l["Error_NoSingleAllowedEditRange_Message"]="Some of the cells you are trying to change are password protected but no single password will allow access to all of the cells.";l["ExcelComparisonOperator_BeginsWith_DisplayText"]="begins with";l["ExcelComparisonOperator_Contains_DisplayText"]="contains";l["ExcelComparisonOperator_DoesNotBeginWith_DisplayText"]="does not begin with";l["ExcelComparisonOperator_DoesNotContain_DisplayText"]="does not contain";l["ExcelComparisonOperator_DoesNotEndWith_DisplayText"]="does not end with";l["ExcelComparisonOperator_EndsWith_DisplayText"]="ends with";l["ExcelComparisonOperator_Equals_DisplayText"]="equals";l["ExcelComparisonOperator_GreaterThan_DisplayText"]="is greater than";l["ExcelComparisonOperator_GreaterThanOrEqual_DisplayText"]="is greater than or equal to";l["ExcelComparisonOperator_LessThan_DisplayText"]="is less than";l["ExcelComparisonOperator_LessThanOrEqual_DisplayText"]="is less than or equal to";l["ExcelComparisonOperator_NotEqual_DisplayText"]="does not equal";l["ExcelTopOrBottomFilterDirection_Bottom_DisplayText"]="Bottom";l["ExcelTopOrBottomFilterDirection_Top_DisplayText"]="Top";l["ExcelTopOrBottomFilterTypes_Items_DisplayText"]="Items";l["ExcelTopOrBottomFilterTypes_Percent_DisplayText"]="Percent";l["FillPatternStyle_DiagonalCrosshatch"]="DiagonalCrosshatch";l["FillPatternStyle_DiagonalStripe"]="DiagonalStripe";l["FillPatternStyle_Gray12percent"]="Gray12percent";l["FillPatternStyle_Gray25percent"]="Gray25percent";l["FillPatternStyle_Gray50percent"]="Gray50percent";l["FillPatternStyle_Gray6percent"]="Gray6percent";l["FillPatternStyle_Gray75percent"]="Gray75percent";l["FillPatternStyle_HorizontalStripe"]="HorizontalStripe";l["FillPatternStyle_None"]="None";l["FillPatternStyle_ReverseDiagonalStripe"]="ReverseDiagonalStripe";l["FillPatternStyle_Solid"]="Solid";l["FillPatternStyle_ThickDiagonalCrosshatch"]="ThickDiagonalCrosshatch";l["FillPatternStyle_ThinDiagonalCrosshatch"]="ThinDiagonalCrosshatch";l["FillPatternStyle_ThinDiagonalStripe"]="ThinDiagonalStripe";l["FillPatternStyle_ThinHorizontalCrosshatch"]="ThinHorizontalCrosshatch";l["FillPatternStyle_ThinHorizontalStripe"]="ThinHorizontalStripe";l["FillPatternStyle_ThinReverseDiagonalStripe"]="ThinReverseDiagonalStripe";l["FillPatternStyle_ThinVerticalStripe"]="ThinVerticalStripe";l["FillPatternStyle_VerticalStripe"]="VerticalStripe";l["FilterDescription_AboveAverage"]="Above Average";l["FilterDescription_BelowAverage"]="Below Average";l["FilterDescription_BottomItems"]="Bottom {0} Items";l["FilterDescription_BottomPercent"]="Bottom {0} Percent";l["FilterDescription_CellFill_Named"]="Equals a {0} cell color";l["FilterDescription_CellFill_NoFill"]="Equals a cell color (No Fill)";l["FilterDescription_CellFill_Unknown"]="Equals a cell color";l["FilterDescription_ComparisonItem_BeginsWith"]='Begins with "{0}"';l["FilterDescription_ComparisonItem_Contains"]='Contains "{0}"';l["FilterDescription_ComparisonItem_DoesNotBeginWith"]='Does not begin with "{0}"';l["FilterDescription_ComparisonItem_DoesNotContain"]='Does not contain "{0}"';l["FilterDescription_ComparisonItem_DoesNotEndWith"]='Does not end with "{0}"';l["FilterDescription_ComparisonItem_EndsWith"]='Ends with "{0}"';l["FilterDescription_ComparisonItem_Equals"]='Equals "{0}"';l["FilterDescription_ComparisonItem_GreaterThan"]='Greater than "{0}"';l["FilterDescription_ComparisonItem_GreaterThanOrEqual"]='Greater than or equal to "{0}"';l["FilterDescription_ComparisonItem_LessThan"]='Less than "{0}"';l["FilterDescription_ComparisonItem_LessThanOrEqual"]='Less than or equal to "{0}"';l["FilterDescription_ComparisonItem_NotEqual"]='Does not equal "{0}"';l["FilterDescription_Custom_And"]="{0} and {1}";l["FilterDescription_Custom_Or"]="{0} or {1}";l["FilterDescription_FixedValues"]='Equals "{0}"';l["FilterDescription_FixedValues_Blanks"]="(Blanks)";l["FilterDescription_FixedValues_Day"]='"{0:MMMM dd yyyy}"';l["FilterDescription_FixedValues_Hour"]='"{0:MMMM dd yyyy h tt}"';l["FilterDescription_FixedValues_Minute"]='"{0:MMMM dd yyyy h:mm tt}"';l["FilterDescription_FixedValues_Month"]="{0:MMMM yyyy}";l["FilterDescription_FixedValues_Second"]='"{0:MMMM dd yyyy h:mm:ss tt}"';l["FilterDescription_FixedValues_Year"]="All of {0:yyyy}";l["FilterDescription_FontColor_Automatic"]="Equals a font color (Automatic)";l["FilterDescription_FontColor_Named"]="Equals a {0} font color";l["FilterDescription_FontColor_Unknown"]="Equals a font color";l["FilterDescription_MonthNumber"]='Equals "{0}"';l["FilterDescription_NoCellIcon"]="Equals a cell icon (No Cell Icon)";l["FilterDescription_QuarterNumber"]='Equals "Quarter {0}"';l["FilterDescription_RelativeDate_CurrentDay"]='Equals "Today"';l["FilterDescription_RelativeDate_CurrentMonth"]='Equals "This Month"';l["FilterDescription_RelativeDate_CurrentQuarter"]='Equals "This Quarter"';l["FilterDescription_RelativeDate_CurrentWeek"]='Equals "This Week"';l["FilterDescription_RelativeDate_CurrentYear"]='Equals "This Year"';l["FilterDescription_RelativeDate_NextDay"]='Equals "Tomorrow"';l["FilterDescription_RelativeDate_NextMonth"]='Equals "Next Month"';l["FilterDescription_RelativeDate_NextQuarter"]='Equals "Next Quarter"';l["FilterDescription_RelativeDate_NextWeek"]='Equals "Next Week"';l["FilterDescription_RelativeDate_NextYear"]='Equals "Next Year"';l["FilterDescription_RelativeDate_PreviousDay"]='Equals "Yesterday"';l["FilterDescription_RelativeDate_PreviousMonth"]='Equals "Last Month"';l["FilterDescription_RelativeDate_PreviousQuarter"]='Equals "Last Quarter"';l["FilterDescription_RelativeDate_PreviousWeek"]='Equals "Last Week"';l["FilterDescription_RelativeDate_PreviousYear"]='Equals "Last Year"';l["FilterDescription_TopItems"]="Top {0} Items";l["FilterDescription_TopPercent"]="Top {0} Percent";l["FilterDescription_WithCellIcon"]="Equals a {0}";l["FilterDescription_YearToDate"]='Equals "Year to Date"';l["FilterDialog_And"]="_And";l["FilterDialog_AsteriskHint"]="Use * to represent any series of characters";l["FilterDialog_Cancel"]="Cancel";l["FilterDialog_OK"]="OK";l["FilterDialog_Or"]="_Or";l["FilterDialog_QuestionMarkHint"]="Use ? to represent any single character";l["FilterDialog_ShowRowsWhere"]="Show rows where:";l["FilterDialog_Title"]="Custom AutoFilter";l["FormatCellsDialog_AlignmentTab_Text_Horizontal"]="_Horizontal";l["FormatCellsDialog_AlignmentTab_Text_Indent"]="Indent";l["FormatCellsDialog_AlignmentTab_Text_JustifyDistributed"]="Justify distributed";l["FormatCellsDialog_AlignmentTab_Text_MergeCells"]="_Merge cells";l["FormatCellsDialog_AlignmentTab_Text_RightToLeft"]="Right-to-left";l["FormatCellsDialog_AlignmentTab_Text_ShrinkToFit"]="Shrin_k to fit";l["FormatCellsDialog_AlignmentTab_Text_TextAlignment"]="Text alignment";l["FormatCellsDialog_AlignmentTab_Text_TextControl"]="Text control";l["FormatCellsDialog_AlignmentTab_Text_TextDirection"]="_Text direction";l["FormatCellsDialog_AlignmentTab_Text_Vertical"]="_Vertical";l["FormatCellsDialog_AlignmentTab_Text_WrapText"]="_Wrap Text";l["FormatCellsDialog_AlignmentTabCaption"]="Alignment";l["FormatCellsDialog_BorderTab_Text_Border"]="Border";l["FormatCellsDialog_BorderTab_Text_Color"]="_Color";l["FormatCellsDialog_BorderTab_Text_Description"]="The selected border style can be applied by clicking the presets or the buttons around the preview diagram.";l["FormatCellsDialog_BorderTab_Text_Line"]="Line";l["FormatCellsDialog_BorderTab_Text_PresetInside"]="_Inside";l["FormatCellsDialog_BorderTab_Text_PresetNone"]="_None";l["FormatCellsDialog_BorderTab_Text_PresetOutline"]="_Outline";l["FormatCellsDialog_BorderTab_Text_Presets"]="Presets";l["FormatCellsDialog_BorderTab_Text_SampleText"]="Text";l["FormatCellsDialog_BorderTab_Text_Style"]="_Style";l["FormatCellsDialog_BorderTabCaption"]="Border";l["FormatCellsDialog_Cancel"]="Cancel";l["FormatCellsDialog_FillTab_Text_BackgroundColor"]="Background _Color";l["FormatCellsDialog_FillTab_Text_PatternColor"]="P_attern Color";l["FormatCellsDialog_FillTab_Text_PatternStyle"]="_Pattern Style:";l["FormatCellsDialog_FillTab_Text_Sample"]="Sample";l["FormatCellsDialog_FillTabCaption"]="Fill";l["FormatCellsDialog_FontTabCaption"]="Font";l["FormatCellsDialog_NumberTab_CategoryLabel"]="_Category";l["FormatCellsDialog_NumberTab_DateFormatMasks"]="m/d/yyyy\r\n[$-F800]dddd, mmmm dd, yyyy\r\nm/d;@\r\nm/d/yy;@\r\nmm/dd/yy;@\r\n[$-409]d-mmm;@";l["FormatCellsDialog_NumberTab_DecimalPlaces"]="_Decimal Places:";l["FormatCellsDialog_NumberTab_SampleLabel"]="Sample";l["FormatCellsDialog_NumberTab_TimeFormatMasks"]="[$-F400]h:mm:ss AM/PM\r\nh:mm;@\r\n[$-409]h:mm AM/PM;@\r\nh:mm:ss;@\r\n[$-409]h:mm:ss AM/PM;@";l["FormatCellsDialog_NumberTabCaption"]="Number";l["FormatCellsDialog_NumberTabInvalidMaskError"]="The specified format mask '{0}' is not valid.";l["FormatCellsDialog_OK"]="OK";l["FormatCellsDialog_ProtectionTab_Text_Locked"]="_Locked";l["FormatCellsDialog_ProtectionTab_Text_Summary"]="Locking cells has no effect until you protect the worksheet.";l["FormatCellsDialog_ProtectionTabCaption"]="Protection";l["FormatCellsDialog_Title"]="Format Cells";l["FormatInfo_Accounting"]="Accounting";l["FormatInfo_Accounting_NumberFormat_Description"]="Accounting formats line up the currency symbols and decimal points in a column.";l["FormatInfo_BlankDocument"]="Blank Document";l["FormatInfo_Currency"]="Currency";l["FormatInfo_Currency_NumberFormat_Description"]="Currency formats are used for general monetary values.  Use Accounting formats to align decimal points in a column.";l["FormatInfo_Custom"]="Custom";l["FormatInfo_Custom_NumberFormat_Description"]="Type the number format code, using one of the existing codes as a starting point.";l["FormatInfo_Date"]="Date";l["FormatInfo_Date_NumberFormat_Description"]="Date formats display date and time serial numbers as date values.  Date formats that begin with an asterisk (*) respond to changes in regional date and time settings that are specified for the operating system. Formats without an asterisk are not affected by operating system settings.";l["FormatInfo_FormatHeader_NegativeNumbers"]="Negative numbers:";l["FormatInfo_FormatHeader_Type"]="Type:";l["FormatInfo_Fraction"]="Fraction";l["FormatInfo_Fraction_Eighths"]="As eighths (4/8)";l["FormatInfo_Fraction_Halves"]="As halves (1/2)";l["FormatInfo_Fraction_Hundreths"]="As hundreths (30/100)";l["FormatInfo_Fraction_OneDigit"]="Up to one digit (1/4)";l["FormatInfo_Fraction_Quarters"]="As quarters (2/4)";l["FormatInfo_Fraction_Sixteenths"]="As sixteenths (8/16)";l["FormatInfo_Fraction_Tenths"]="As tenths (3/10)";l["FormatInfo_Fraction_ThreeDigits"]="Up to three digits (312/943)";l["FormatInfo_Fraction_TwoDigits"]="Up to two digits (21/25)";l["FormatInfo_General"]="General";l["FormatInfo_General_NumberFormat_Description"]="General format cells have no specific number format.";l["FormatInfo_Number"]="Number";l["FormatInfo_Number_NumberFormat_Description"]="Number is used for general display of numbers.  Currency and Accounting offer specialized formatting for monetary value.";l["FormatInfo_Percentage"]="Percentage";l["FormatInfo_Percentage_NumberFormat_Description"]="Percentage formats multiply the cell value by 100 and displays the result with a percent symbol.";l["FormatInfo_ProjectBudget"]="Project Budget";l["FormatInfo_Scientific"]="Scientific";l["FormatInfo_Special"]="Special";l["FormatInfo_Special_NumberFormat_Description"]="Special formats are useful for tracking list and database values.";l["FormatInfo_Special_PhoneNumber"]="Phone Number";l["FormatInfo_Special_SocialSecurityNumber"]="Social Security Number";l["FormatInfo_Special_ZipCode"]="Zip Code";l["FormatInfo_Special_ZipCodePlus4"]="Zip Code + 4";l["FormatInfo_Text"]="Text";l["FormatInfo_Text_NumberFormat_Description"]="Text format cells are treated as text even when a number is in the cell.  The cell is displayed exactly as entered.";l["FormatInfo_Time"]="Time";l["FormatInfo_Time_NumberFormat_Description"]="Time formats display date and time serial numbers as date values.  Time formats that begin with an asterisk (*) respond to changes in regional date and time settings that are specified for the operating system. Formats without an asterisk are not affected by operating system settings.";l["HorizontalCellAlignment_Center"]="Center";l["HorizontalCellAlignment_CenterAcrossSelection"]="CenterAcrossSelection";l["HorizontalCellAlignment_Default"]="Default";l["HorizontalCellAlignment_Distributed"]="Distributed";l["HorizontalCellAlignment_Fill"]="Fill";l["HorizontalCellAlignment_General"]="General";l["HorizontalCellAlignment_Justify"]="Justify";l["HorizontalCellAlignment_Left"]="Left";l["HorizontalCellAlignment_Right"]="Right";l["Icon_BlackCircle"]="Black Circle";l["Icon_BlackCircleWithBorder"]="Black Circle With Border";l["Icon_CircleWithOneWhiteQuarter"]="Circle With One White Quarter";l["Icon_CircleWithThreeWhiteQuarters"]="Circle With Three White Quarters";l["Icon_CircleWithTwoWhiteQuarters"]="Circle With Two White Quarters";l["Icon_FourBars"]="Signal Meter With Four Filled Bars";l["Icon_FourFilledBoxes"]="Four Filled Boxes";l["Icon_GoldStar"]="Gold Star";l["Icon_GrayCircle"]="Gray Circle";l["Icon_GrayDownArrow"]="Gray Down Arrow";l["Icon_GrayDownInclineArrow"]="Gray Down Incline Arrow";l["Icon_GraySideArrow"]="Gray Side Arrow";l["Icon_GrayUpArrow"]="Gray Up Arrow";l["Icon_GrayUpInclineArrow"]="Gray Up Incline Arrow";l["Icon_GreenCheck"]="Green Check";l["Icon_GreenCheckSymbol"]="Green Check Symbol";l["Icon_GreenCircle"]="Green Circle";l["Icon_GreenFlag"]="Green Flag";l["Icon_GreenTrafficLight"]="Green Traffic Light";l["Icon_GreenUpArrow"]="Green Up Arrow";l["Icon_GreenUpTriangle"]="Green Up Triangle";l["Icon_HalfGoldStar"]="Half Gold Star";l["Icon_OneBar"]="Signal Meter With One Filled Bar";l["Icon_OneFilledBox"]="One Filled Box";l["Icon_PinkCircle"]="Pink Circle";l["Icon_RedCircle"]="Red Circle";l["Icon_RedCircleWithBorder"]="Red Circle With Border";l["Icon_RedCross"]="Red Cross";l["Icon_RedCrossSymbol"]="Red Cross Symbol";l["Icon_RedDiamond"]="Red Diamond";l["Icon_RedDownArrow"]="Red Down Arrow";l["Icon_RedDownTriangle"]="Red Down Triangle";l["Icon_RedFlag"]="Red Flag";l["Icon_RedTrafficLight"]="Red Traffic Light";l["Icon_SilverStar"]="Silver Star";l["Icon_ThreeBars"]="Signal Meter With Three Filled Bars";l["Icon_ThreeFilledBoxes"]="Three Filled Boxes";l["Icon_TwoBars"]="Signal Meter With Two Filled Bars";l["Icon_TwoFilledBoxes"]="Two Filled Boxes";l["Icon_WhiteCircleAllWhiteQuarters"]="White Circle (All White Quarters)";l["Icon_YellowCircle"]="Yellow Circle";l["Icon_YellowDash"]="Yellow Dash";l["Icon_YellowDownInclineArrow"]="Yellow Down Incline Arrow";l["Icon_YellowExclamation"]="Yellow Exclamation";l["Icon_YellowExclamationSymbol"]="Yellow Exclamation Symbol";l["Icon_YellowFlag"]="Yellow Flag";l["Icon_YellowSideArrow"]="Yellow Side Arrow";l["Icon_YellowTrafficLight"]="Yellow Traffic Light";l["Icon_YellowTriangle"]="Yellow Triangle";l["Icon_YellowUpInclineArrow"]="Yellow Up Incline Arrow";l["Icon_ZeroBars"]="Signal Meter With No Filled Bars";l["Icon_ZeroFilledBoxes"]="Zero Filled Boxes";l["InvalidCommand_MixedSelection_Message"]="That command cannot be used with selections that contain a mix of entire rows/columns with other cells. Try selecting only entire rows, only entire columns or just groups of cells.";l["InvalidCommand_MultipleSelection_Message"]="That command cannot be used with multiple selections.\r\nSelect a single range and invoke the command again.";l["InvalidCommand_OverlappingSelection_Message"]="Cannot use that command on overlapping selections.";l["InvalidCommand_TableChangeWithMultipleSheetSelection_Message"]="Cannot make changes to a table when multiple sheets are selected.";l["InvalidDateTimeToolTip"]="Dates and times that are negative or too large display as #####.";l["InvalidNameBoxValue_Message"]="You must enter a valid reference you want to go to or type a valid name for the selection.";l["LE_MissingTemplatePart"]="A template part with a name of '{0}' and type '{1}' is required in the '{2}' template.";l["MenuItem_AllDatesInPeriod"]="All Dates in the _Period";l["MenuItem_AutoFit_Columns"]="_AutoFit Column Width";l["MenuItem_AutoFit_Rows"]="_AutoFit Row Height";l["MenuItem_Automatic"]="Automatic";l["MenuItem_ClearContents"]="Clear Co_ntents";l["MenuItem_ClearFilterEmpty"]="Cl_ear Filter";l["MenuItem_ClearFilterForColumn"]='Cl_ear Filter From "{0}"';l["MenuItem_ColorValue"]="RGB({0}, {1}, {2})";l["MenuItem_ConvertTableToRange"]="Con_vert to Range";l["MenuItem_Copy"]="_Copy";l["MenuItem_Cut"]="Cu_t";l["MenuItem_DateFilters"]="Date _Filters";l["MenuItem_Delete"]="_Delete";l["MenuItem_DeleteCells"]="_Delete";l["MenuItem_DeleteCells_Column"]="Entire _column";l["MenuItem_DeleteCells_DeleteTableColumns"]="Table _Columns";l["MenuItem_DeleteCells_DeleteTableRows"]="Table _Rows";l["MenuItem_DeleteCells_Row"]="Entire _row";l["MenuItem_DeleteCells_ShiftLeft"]="Shift cells _left";l["MenuItem_DeleteCells_ShiftUp"]="Shift cells _up";l["MenuItem_DeleteWorksheets"]="_Delete";l["MenuItem_Filter"]="Filt_er";l["MenuItem_Filter_AboveAverage"]="_Above Average";l["MenuItem_Filter_After"]="_After...";l["MenuItem_Filter_Before"]="_Before...";l["MenuItem_Filter_BeginsWith"]="Begins W_ith...";l["MenuItem_Filter_BelowAverage"]="Bel_ow Average";l["MenuItem_Filter_Between"]="Bet_ween...";l["MenuItem_Filter_Contains"]="Cont_ains...";l["MenuItem_Filter_Custom"]="Custom _Filter...";l["MenuItem_Filter_Day_Current"]="T_oday";l["MenuItem_Filter_Day_Next"]="_Tomorrow";l["MenuItem_Filter_Day_Previous"]="Yester_day";l["MenuItem_Filter_DoesNotContain"]="_Does Not Contain...";l["MenuItem_Filter_EndsWith"]="Ends Wi_th...";l["MenuItem_Filter_Equals"]="Equals...";l["MenuItem_Filter_GreaterThan"]="_Greater Than...";l["MenuItem_Filter_GreaterThanOrEqual"]="Greater Than _Or Equal To...";l["MenuItem_Filter_LessThan"]="_Less Than...";l["MenuItem_Filter_LessThanOrEqual"]="Less Than Or E_qual To...";l["MenuItem_Filter_Month_Current"]="Thi_s Month";l["MenuItem_Filter_Month_Next"]="Next _Month";l["MenuItem_Filter_Month_Previous"]="Last Mo_nth";l["MenuItem_Filter_NotEqual"]="Does _Not Equal...";l["MenuItem_Filter_Quarter_Current"]="This Q_uarter";l["MenuItem_Filter_Quarter_Next"]="Next _Quarter";l["MenuItem_Filter_Quarter_Previous"]="Last Qua_rter";l["MenuItem_Filter_QuarterNumber"]="Quarter _{0}";l["MenuItem_Filter_Top10"]="_Top 10...";l["MenuItem_Filter_Week_Current"]="T_his Week";l["MenuItem_Filter_Week_Next"]="Next Wee_k";l["MenuItem_Filter_Week_Previous"]="_Last Week";l["MenuItem_Filter_Year_Current"]="Th_is Year";l["MenuItem_Filter_Year_Next"]="Ne_xt Year";l["MenuItem_Filter_Year_Previous"]="Last _Year";l["MenuItem_Filter_YearToDate"]="Year to D_ate";l["MenuItem_FilterByCellColor"]="Filter by _Cell Color";l["MenuItem_FilterByCellFontColor"]="Filter by Selected Cell's _Font Color";l["MenuItem_FilterByCellIcon"]="Filter by Selected Cell's _Icon";l["MenuItem_FilterByCellValue"]="Filter by Selected Cell's _Value";l["MenuItem_FilterByColor"]="F_ilter by Color";l["MenuItem_FilterByFontColor"]="Filter by _Font Color";l["MenuItem_FilterByIcon"]="Filter by Conditional Formatting _Icon";l["MenuItem_GradientFill"]="Gradient";l["MenuItem_Hide"]="_Hide";l["MenuItem_Insert"]="_Insert";l["MenuItem_InsertCells"]="_Insert";l["MenuItem_InsertCells_AddTableColumn"]="Table Column to the _Right";l["MenuItem_InsertCells_AddTableRow"]="Table Row _Below";l["MenuItem_InsertCells_Column"]="Entire _column";l["MenuItem_InsertCells_InsertTableColumns"]="Table Columns to the _Left";l["MenuItem_InsertCells_InsertTableRows"]="Table Rows _Above";l["MenuItem_InsertCells_Row"]="Entire _row";l["MenuItem_InsertCells_ShiftDown"]="Shift cells _down";l["MenuItem_InsertCells_ShiftRight"]="Shift cells r_ight";l["MenuItem_InsertWorksheets"]="_Insert";l["MenuItem_NoFill"]="No Fill";l["MenuItem_NoIcon"]="No Icon";l["MenuItem_NumberFilters"]="Number _Filters";l["MenuItem_OpenHyperlink"]="_Open Hyperlink";l["MenuItem_Paste"]="_Paste";l["MenuItem_PickFromDropDownList"]="Pic_k From Drop-down List...";l["MenuItem_ReapplyFilter"]="_Reapply";l["MenuItem_RemoveHyperlink"]="_Remove Hyperlink";l["MenuItem_RemoveHyperlinks"]="_Remove Hyperlinks";l["MenuItem_RenameWorksheet"]="_Rename";l["MenuItem_Select"]="Se_lect";l["MenuItem_Select_SelectEntireTableColumn"]="_Entire Table Column";l["MenuItem_Select_SelectTableColumnData"]="Table _Column Data";l["MenuItem_Select_SelectTableRow"]="Table _Row";l["MenuItem_SelectAllWorksheets"]="_Select All Sheets";l["MenuItem_ShowFormatCellsDialog"]="_Format Cells...";l["MenuItem_Sort"]="S_ort";l["MenuItem_Sort_Custom"]="C_ustom Sort...";l["MenuItem_SortAscending_Date"]="_Sort Oldest to Newest";l["MenuItem_SortAscending_Number"]="_Sort Smallest to Largest";l["MenuItem_SortAscending_Text"]="_Sort A to Z";l["MenuItem_SortByCellColor"]="Put Selected _Cell Color On Top";l["MenuItem_SortByCellColorHeader"]="Sort by _Cell Color";l["MenuItem_SortByCellFontColor"]="Put Selected _Font Color On Top";l["MenuItem_SortByCellIcon"]="Put Selected _Icon On Top";l["MenuItem_SortByColor"]="Sor_t by Color";l["MenuItem_SortByFontColor"]="Sort by _Font Color";l["MenuItem_SortByIcon"]="Sort by Conditional Formatting _Icon";l["MenuItem_SortDescending_Date"]="S_ort Newest to Oldest";l["MenuItem_SortDescending_Number"]="S_ort Largest to Smallest";l["MenuItem_SortDescending_Text"]="S_ort Z to A";l["MenuItem_Table"]="Ta_ble";l["MenuItem_TextFilters"]="Text _Filters";l["MenuItem_ToggleTableTotalRow"]="_Totals Row";l["MenuItem_Unhide"]="_Unhide";l["MenuItem_UnselectWorksheets"]="_Ungroup Sheets";l["NewSheetName"]="Sheet{0}";l["PasteError_CellRangeSize_Message"]="The paste operation cannot be performed because the copy area and paste area are not the same size.\r\nTry one of the following:\r\n* Click one cell, then paste\r\n* Select a rectangle that's the same size, then paste.";l["PasteError_General_Message"]="An error occurred during the paste operation:\r\n{0}";l["PasteError_IntersectsMergedCells_Message"]="The paste operation cannot be performed because the paste area intersects with a merged cell.";l["PasteError_InvalidSelectedSheetCount_Message"]="The paste operation cannot be performed because the number of worksheets in the copy and paste areas are not the same size.";l["PasteError_InvalidSourceRanges_Message"]="The paste operation cannot be performed on the copy areas provided.";l["PasteError_MultipleSheetTables_Message"]="The paste operation cannot be performed because the source had multiple worksheets and there are tables in the source selection.";l["PasteError_MultipleSourceAndTargetRanges_Message"]="The paste operation cannot be performed because there are multiple selections in the source and target worksheets.";l["SheetNameError_Message_Invalid"]="You entered an invalid name '{0}' for the sheet. Make sure that:\r\n* The name is not blank.\r\n* There are no more than 31 characters in the name.\r\n* The name does not start or end with a single quote (').\r\n* The name does not contain any of the following characters: : \\ / ? * [ ]";l["SheetNameError_Message_NameIsUsed"]="A worksheet with the name '{0}' already exists in the workbook.";l["SortDialog_AddLevel"]="_Add Level";l["SortDialog_Cancel"]="Cancel";l["SortDialog_CellFill_Gradient"]="Gradient";l["SortDialog_CellFill_NoColor"]="No Color";l["SortDialog_Color_RGB"]="RGB ({0}, {1}, {2})";l["SortDialog_Column_ColumnHeader"]="Column";l["SortDialog_ColumnName"]="Column {0}";l["SortDialog_ConditionalFormatIcon_NoCellIcon"]="No Cell Icon";l["SortDialog_CopyLevel"]="_Copy Level";l["SortDialog_DeleteLevel"]="_Delete Level";l["SortDialog_MoveDown"]="Move Down";l["SortDialog_MoveUp"]="Move Up";l["SortDialog_MyDataHasHeaders"]="My data has _headers";l["SortDialog_OK"]="OK";l["SortDialog_Options"]="_Options...";l["SortDialog_Order_ColumnHeader"]="Order";l["SortDialog_Row_ColumnHeader"]="Row";l["SortDialog_RowName"]="Row {0}";l["SortDialog_SortBy_Label"]="Sort By";l["SortDialog_SortConditionError_DuplicateItemSorted"]="Duplicate sort conditions detected.";l["SortDialog_SortConditionError_FieldCannotBeNull"]="Sort condition field: '{0}' cannot be null";l["SortDialog_SortDirection_CustomList"]="Custom List...";l["SortDialog_SortDirection_Date_Ascending"]="Oldest to Newest";l["SortDialog_SortDirection_Date_Descending"]="Newest to Oldest";l["SortDialog_SortDirection_Number_Ascending"]="Smallest to Largest";l["SortDialog_SortDirection_Number_Descending"]="Largest to Smallest";l["SortDialog_SortDirection_Text_Ascending"]="A to Z";l["SortDialog_SortDirection_Text_Descending"]="Z to A";l["SortDialog_SortDirectionLeftOrRight_Ascending"]="On Left";l["SortDialog_SortDirectionLeftOrRight_Descending"]="On Right";l["SortDialog_SortDirectionTopOrBottom_Ascending"]="On Top";l["SortDialog_SortDirectionTopOrBottom_Descending"]="On Bottom";l["SortDialog_SortOn_ColumnHeader"]="Sort On";l["SortDialog_Text_Automatic"]="Automatic";l["SortDialog_ThenBy_Label"]="Then By";l["SortDialog_Title"]="Sort";l["SortOptionsDialog_Cancel"]="Cancel";l["SortOptionsDialog_CaseSensitive"]="_Case sensitive";l["SortOptionsDialog_OK"]="OK";l["SortOptionsDialog_Orientation"]="Orientation";l["SortOptionsDialog_SortLeftToRight"]="Sort _left to right";l["SortOptionsDialog_SortTopToBottom"]="Sort _top to bottom";l["SortOptionsDialog_Title"]="Sort Options";l["SpreadsheetFontControl_ColorLabel"]="_Color:";l["SpreadsheetFontControl_FontLabel"]="_Font:";l["SpreadsheetFontControl_FontStyle_Bold"]="Bold";l["SpreadsheetFontControl_FontStyle_BoldItalic"]="Bold Italic";l["SpreadsheetFontControl_FontStyle_Italic"]="Italic";l["SpreadsheetFontControl_FontStyle_Regular"]="Regular";l["SpreadsheetFontControl_FontStyleLabel"]="F_ont style:";l["SpreadsheetFontControl_NormalFontLabel"]="_Normal font";l["SpreadsheetFontControl_SizeLabel"]="_Size:";l["SpreadsheetFontControl_StrikethroughLabel"]="Stri_kethrough";l["SpreadsheetFontControl_SubscriptLabel"]="Su_bscript";l["SpreadsheetFontControl_SuperscriptLabel"]="Su_perscript";l["SpreadsheetFontControl_Text_Automatic"]="Automatic";l["SpreadsheetFontControl_Text_Effects"]="Effects";l["SpreadsheetFontControl_Text_NoColor"]="No Color";l["SpreadsheetFontControl_Text_Preview"]="Preview";l["SpreadsheetFontControl_UnderlineLabel"]="_Underline:";l["SpreadsheetSortDialogConditionTypes_CustomListSortCondition_DisplayText"]="Custom List";l["SpreadsheetSortDialogConditionTypes_FillSortCondition_DisplayText"]="Cell Color";l["SpreadsheetSortDialogConditionTypes_FontColorSortCondition_DisplayText"]="Font Color";l["SpreadsheetSortDialogConditionTypes_IconSortCondition_DisplayText"]="Conditional Formatting Icon";l["SpreadsheetSortDialogConditionTypes_OrderedSortCondition_DisplayText"]="Cell Values";l["SpreadsheetThemeColorPickerControl_Text_Automatic"]="Automatic";l["SpreadsheetThemeColorPickerControl_Text_NoColor"]="No Color";l["SpreadsheetThemeColorPickerControl_Text_StandardColors"]="Standard Colors";l["SpreadsheetThemeColorPickerControl_Text_ThemeColors"]="Theme Colors";l["ToolTip_FormulaBarCancelButton"]="Cancel";l["ToolTip_FormulaBarEnterButton"]="Enter";l["ToolTip_FormulaBarNameBox"]="Name Box";l["ToolTip_FormulaBarTextEditor"]="Formula Bar";l["TopOrBottomDialog_Cancel"]="Cancel";l["TopOrBottomDialog_OK"]="OK";l["TopOrBottomDialog_Show"]="Show";l["TopOrBottomDialog_Title"]="Top 10 AutoFilter";l["TotalRow_Average"]="Average";l["TotalRow_Count"]="Count";l["TotalRow_CountNumbers"]="Count Numbers";l["TotalRow_Max"]="Max";l["TotalRow_Min"]="Min";l["TotalRow_None"]="None";l["TotalRow_StdDev"]="StdDev";l["TotalRow_Sum"]="Sum";l["TotalRow_Var"]="Var";l["Undo_AddTableColumn"]="Add Table Column";l["Undo_AddTableRow"]="Add Table Row";l["Undo_AutoFilterOff"]="AutoFilter Off";l["Undo_AutoFilterOn"]="AutoFilter On";l["Undo_Bold"]="Bold";l["Undo_Borders"]="Borders";l["Undo_BottomAlignment"]="Bottom Alignment";l["Undo_CenterAlignment"]="Center Alignment";l["Undo_ChangeTotalRowFormula"]="Change Total Row Formula";l["Undo_ChartAdd"]="Insert Chart";l["Undo_ChartModify"]="Modify Chart";l["Undo_ChartRemove"]="Remove Chart";l["Undo_ClearCellContents"]="Clear {0}";l["Undo_ClearCellFormats"]="Clear";l["Undo_ClearHyperlinks"]="Clear Hyperlinks";l["Undo_ClearShapes"]="Clear Shapes";l["Undo_ClearTables"]="Clear Tables";l["Undo_ConditionalFormat"]="Conditional Formatting";l["Undo_ConvertTableToRange"]="Convert Table to Range";l["Undo_CreateNamedReference"]="Define Name";l["Undo_CreateTable"]="Create Table";l["Undo_Cut"]="Cut";l["Undo_Delete"]="Delete";l["Undo_DeleteTableColumn"]="Delete Column";
l["Undo_DeleteTableRow"]="Delete Row";l["Undo_EditCell"]="Typing '{1}' in {0}";l["Undo_Entry"]="Entry";l["Undo_Filter"]="Filter";l["Undo_Font"]="Font";l["Undo_FontSize"]="Font Size";l["Undo_FormatCells"]="Format Cells";l["Undo_Group"]="Group";l["Undo_Hyperlink"]="Hyperlink";l["Undo_InsertCells"]="Insert Cells";l["Undo_InsertColumns"]="Insert Columns";l["Undo_InsertRows"]="Insert Rows";l["Undo_InsertTableColumns"]="Insert Columns";l["Undo_InsertTableRows"]="Insert Rows";l["Undo_Italic"]="Italic";l["Undo_JustifyAlignment"]="Justify Alignment";l["Undo_LeftAlignment"]="Left Alignment";l["Undo_MergeCells"]="Merge Cells";l["Undo_MiddleAlignment"]="Center Vertically Alignment";l["Undo_Paste"]="Paste";l["Undo_Reapply"]="Reapply";l["Undo_RemoveHyperlinks"]="Remove Hyperlinks";l["Undo_RemoveTable"]="Remove Table";l["Undo_ResetOptions"]="Reset Options";l["Undo_ResizeColumn"]="Column Width";l["Undo_ResizeRow"]="Row Height";l["Undo_RightAlignment"]="Right Alignment";l["Undo_Shape"]="Shape";l["Undo_ShapeAdd"]="Insert Shape";l["Undo_ShapeRemove"]="Remove Shape";l["Undo_ShowAll"]="Show All";l["Undo_Sort"]="Sort";l["Undo_SparklineAdd"]="Insert Sparkline";l["Undo_SparklineColorChange"]="Sparkline Color Change";l["Undo_SparklineDataChange"]="Sparkline Data Change";l["Undo_SparklineRemove"]="Clear Sparklines";l["Undo_SparklineStyleChange"]="Sparkline Style Change";l["Undo_SparklineTypeChange"]="Sparkline Type Change";l["Undo_Strikethrough"]="Strikethrough";l["Undo_Style"]="Style";l["Undo_TabColor"]="Tab Color";l["Undo_TableAutoExpansion"]="Table AutoExpansion";l["Undo_ToggleTotalRow"]="Toggle Total Row";l["Undo_TopAlignment"]="Top Alignment";l["Undo_Underline"]="Underline";l["Undo_View"]="View Change";l["Undo_WrapText"]="Wrap Text";l["Undo_Zoom"]="Zoom";l["VerticalCellAlignment_Bottom"]="Bottom";l["VerticalCellAlignment_Center"]="Center";l["VerticalCellAlignment_Default"]="Default";l["VerticalCellAlignment_Distributed"]="Distributed";l["VerticalCellAlignment_Justify"]="Justify";l["VerticalCellAlignment_Top"]="Top";$.ig.spreadsheet=$.ig.spreadsheet||{};$.ig.spreadsheet.locale=$.ig.spreadsheet.locale||l;return l})($);$.ig=$.ig||{};var $$t={};$.ig.spreadsheet=$.ig.spreadsheet||{};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$ai=$$t;var $$0=$.ig.globalDefs.$$0;var $$4=$.ig.globalDefs.$$4;var $$5=$.ig.globalDefs.$$5;var $$7=$.ig.globalDefs.$$7;var $$8=$.ig.globalDefs.$$8;var $$b=$.ig.globalDefs.$$b;var $$1=$.ig.globalDefs.$$1;var $$2=$.ig.globalDefs.$$2;var $$al=$.ig.globalDefs.$$al;var $$ap=$.ig.globalDefs.$$ap;var $$w=$.ig.globalDefs.$$w;var $$v=$.ig.globalDefs.$$v;var $$ae=$.ig.globalDefs.$$ae;var $$a4=$.ig.globalDefs.$$a4;var $$6=$.ig.globalDefs.$$6;var $$a=$.ig.globalDefs.$$a;var $$ak=$.ig.globalDefs.$$ak;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["ISupportPositioning:g","VisualElementDomBuilder:aa","AdjustableVisualElement:ae","ButtonVisualElement:af","ComboBoxVisualElement:ag","LineVisualElement:ah","TextBoxVisualElement:ai","ToggleButtonVisualElement:aj","ToolTipVisualElement:ak","IVisualElementVisitor:al","RepeatButtonVisualElement:am","RootVisualElement:an","ScrollBarVisualElement:aq","ScrollBarVisualElement_ScrollThumbVisualElement:ar","VisualElement:au","VisualElement_ZComparer:av","VisualElementInputProxy:aw","IScrollInfoProvider:a3","IPlatformScrollBarAdapter:a7","ExtendedScrollArrowHelper:a9","ExtendedScrollBarInfoMediator:ba","JsScrollBarAdapter:bc","JsScrollBar:bd","IElementLayerContainer:bg","IElementLayerContainer$1:bh","ElementLayer:bo","IElementLayerView:bq","IRendererElementLayerView$2:bt","ILayerRenderer:bv","spreadsheet.SpreadsheetChartAdapterBase:bx","CreateChartTitleUI:by","ISpreadsheetResourceProvider:bz","CellDropDown:b0","ISpreadsheetDialog:b2","JsCellEditManager:b3","JsSpreadsheetMenuBuilder:b6","TsSpreadsheetMenuBuilder:b7","JsTabEditManager:b9","SpreadsheetShapeContainerElement:ca","PaneShapeVisualManager:cb","SpreadsheetPaneShapeLayer:cc","SvgPathCreator:cd","ShapeGeometry:ce","SpreadsheetContextMenu:cf","SpreadsheetMeasureHelper:cg","SpreadsheetView:ci","VisualElementSpreadsheetAreaLayoutManager:cj","JsSpreadsheetAreaLayoutManager:ck","PaneLayerContainer:cl","SpreadsheetHeaderContentLayer:cm","SpreadsheetCellValueInfo:cp","SpreadsheetPaneCellValueLayer:cq","SpreadsheetInstructionGraphics:ct","SpreadsheetDrawingElementHelper:cu","SpreadsheetSingleLayerView:cv","SpreadsheetSingleLayerElement:cw","SpreadsheetCellValueLayerElement:cx","SpreadsheetDrawingLayerElement:cy","SpreadsheetPaneCellValueLayer_JsCellInfo:c0","SpreadsheetSingleLayerView_Renderer:c1","ScrollRegionLayerContainer:c2","Spreadsheet:c3","Spreadsheet_ElementCommandInfo:c7","Spreadsheet_ButtonElementCommandInfo:c8","Spreadsheet_WorkbookOwner:c9","Spreadsheet_SelectionWorksheetCellFormat:db","Spreadsheet_NameBoxList:dd","Spreadsheet_SynchronizationSuspender:de","Spreadsheet_CustomEditValueParser:df","Spreadsheet_NullView:dh","Spreadsheet_NullCellEditManager:di","Spreadsheet_NullTabEditManager:dj","Spreadsheet_NullRenderCache:dl","SpreadsheetDOMEventProxy:dm","SpreadsheetLayerContainerElement$1:dn","SpreadsheetElementLayerContainer$1:dp","ISpreadsheetGraphics:dq","CanvasSpreadsheetGraphics:dr","SpreadsheetCellValueElement:ds","SpreadsheetVisualElementDomBuilder:dt","JsSpreadsheetRenderCache:dw","SpreadsheetUtilities:dy","SpreadsheetCellEditInfo:d0","AccountingUnderlineInfo:d5","spreadsheet.SpreadsheetSelection:d6","SelectionSnapshot:d7","EditModeWorkbookFont:eg","ISpreadsheetEditorValue:ej","ISpreadsheetEditInfo:ek","LockedEditRangeInfoForOperation:el","LockedEditRangeInfoForWorksheet:em","LockedEditRangeInfoForCellRange:en","LockedEditRangeInfoForCellRange_WithRanges:eo","LockedEditRangeInfoForCellRange_WithoutRanges:ep","SpreadsheetEditHelper:eq","ParseEditValueCache:er","SpreadsheetCellEditManager:e0","SpreadsheetTabEditManager:e2","SpreadsheetActivePaneChangedEventArgs:fw","SpreadsheetSelectionChangedEventArgs:f9","SpreadsheetUserPromptDisplayingEventArgs:ga","SortFilterAreaBase:gc","WorksheetSortFilterArea:gd","TableSortFilterArea:ge","WorksheetSortFilterArea___GetSortConditions__IteratorClass:gf","TableSortFilterArea___GetSortConditions__IteratorClass:gg","PredefinedShapes:gh","ShapeGeometryPathBuilder:gi","ShapeGuide:gj","ShapeGuide_ConstantShapeGuide:gk","ShapeGuide_ShapeGuide1:gl","ShapeGuide_ShapeGuide2:gm","ShapeGuide_ShapeGuide3:gn","ShapeGuideVariables:gp","FormatCellsDialogDataBuilder:gq","SetFormatCellsDialogDataHelper:gv","RangeWorksheetCellFormatBase:gw","RangeWorksheetCellFormatBase_RangeWorksheetCellFormatFont:gx","RangeWorksheetCellFormatBase_EmptyFormat:gy","spreadsheet.SpreadsheetCellRangeFormat:gz","ISpreadsheetView:g0","SpreadsheetHeaderBackgroundLayer:g1","SpreadsheetHeaderBackgroundObserver:g2","SpreadsheetHeaderContentLayerBase$1:g3","SpreadsheetHeaderGridlineLayer:g5","SpreadsheetHeaderSelectionLayer:g6","InvalidDataLayerObserver:g8","PaneInteractionLayerObserver:g9","ShapeLayerObserver:ha","SpreadsheetPaneButtonLayer:hc","SpreadsheetPaneCellBackgroundLayer:hd","SpreadsheetPaneCellBorderLayer:he","SpreadsheetPaneCellValueLayerBase$1:hf","SpreadsheetPaneCellValueLayerBase_CellInfo$1:hg","SpreadsheetPaneGridlineLayer:hh","SpreadsheetPaneInteractionOverlayLayer:hi","SpreadsheetPaneInvalidDataLayer:hj","SpreadsheetPaneSelectionLayer:hk","SpreadsheetItemLayerObserver:hl","SpreadsheetPaneLayerObserver:hm","SpreadsheetScrollRegionLayerObserver:hn","SpreadsheetRendererElementLayer$1:ho","SpreadsheetRenderUtilities:hp","SpreadsheetCellDropDownOperation:hq","SpreadsheetCellContextMenuOperation:hr","SpreadsheetHeaderContextMenuOperation:hs","SpreadsheetEnterEditModeOperation:ht","SpreadsheetHeaderResizeOperation:hu","ISpreadsheetInteractionManagerOwner:hw","SpreadsheetInteractionManager$1:hx","SpreadsheetMenuBuilder$1:h0","SpreadsheetMenuBuilder_InitializeItemsState$1:h1","SpreadsheetMouseOperation$1:h5","SpreadsheetPaneMouseOperation:h6","SpreadsheetHeaderMouseOperation:h7","SpreadsheetMouseOperation_ScrollTimer$1:h8","SpreadsheetPaneInteractionManager:h9","SpreadsheetScrollRegionInteractionManager:ia","SpreadsheetCellSelectionOperation:ib","SpreadsheetHeaderSelectionOperation:ic","UnselectionHelper:id","SpreadsheetCellHitTestResult:ig","SpreadsheetHeaderHitTestResult:ih","SpreadsheetPaneManager:ik","InViewPaneInfo:im","SpreadsheetViewCache:io","SpreadsheetPaneManager_IndentHelper:iv","SpreadsheetPaneManager_MergedCellOperationInfo:iw","SpreadsheetPaneManager___GetAllCells__IteratorClass:iz","InViewPaneInfo_ChartInfo:i0","ISpreadsheetPaneOwner:i1","spreadsheet.SpreadsheetColumnScrollRegion:i2","spreadsheet.SpreadsheetPane:i3","spreadsheet.SpreadsheetRowScrollRegion:i4","SpreadsheetScrollInfo:i5","spreadsheet.SpreadsheetScrollRegion:i6","SpreadsheetOwnerState:i8","SpreadsheetRenderCache:jb","SpreadsheetRenderCache_DisposableCache:jc","BIFF8SerializationProvider:jm","CSVWorkbookSerializationProvider:jn","ExcelWorkbookSerializationProvider:jo","IGExcelSerializationProvider:jy","PlainTextWorkbookSerializationProvider:ka","TSVWorkbookSerializationProvider:kc","WorkbookDataObjectManager:kf","ShapeVisualManager:kp","SpreadsheetShape:kq","SpreadsheetAreaLayoutManager:ks","SpreadsheetAreaLayoutManager_RowColumnInfo:kv","SpreadsheetUserPromptInfo:kx","RotationHelper:ky","SpreadsheetTabInfo:k2","SpreadsheetTabItemLayoutManager$1:k3","SpreadsheetTabManager:k4","SpreadsheetTabManager_SelectedTabsCollection:k7","SpreadsheetTabManager_VisibleTabsCollection:k8","SpreadsheetTabManager_ZIndexTabsCollection:k9","SpreadsheetUndoTransaction:la","SpreadsheetSelectionUndoTransaction:lb","IWorksheetUndoUnit:lc","WorkbookUndoUnit$2:le","ISpreadsheetVisualDataManager:lg","SpreadsheetVisualDataManager:lh","FormulaBarButtonAreaElement:li","FormulaBarNameBoxAreaElement:lj","FormulaBarNameBoxElement:lk","FormulaBarNameBoxSplitter:ll","FormulaBarTextAreaElement:lm","FormulaBarTextAreaSplitter:ln","FormulaBarVisualElement:lo","LayerVisualElement:lp","RendererVisualElement$1:lq","RendererLayerVisualElement$2:lr","RendererLayerVisualElementView$1:ls","SpreadsheetAreaVisualElement:lt","SpreadsheetIconElement:lu","SpreadsheetInplaceBackgroundElement:lv","SpreadsheetInplaceEditorElement:lw","SpreadsheetInputMessageElement:lx","SpreadsheetInvalidDataElement:ly","SpreadsheetPaneSplitterElement:lz","SpreadsheetSelectAllButtonElement:l0","SpreadsheetShapeVisualElementBase:l1","SpreadsheetShapeVisualElement:l2","SpreadsheetChartVisualElement:l3","SpreadsheetTabAreaSplitterElement:l4","SpreadsheetTabItemAreaElement:l5","SpreadsheetTabItemElement:l6","SpreadsheetTabItemElementLayoutManager:l7","SpreadsheetTabItemPanel:l8","SpreadsheetVisualElement:ma","FilterDialogManager:mb","FormatCellsDialogManager:mc","ColorPickerProxy:mf","BorderPreviewSpreadsheetHelper:mi","ColorSortingCriteriaControl:mq","SortCriteriaRow:ms","SortCriteriaRow_SortCriteriaRowEnumerator:mu","SortOptionsDialogManager:mw","SortDialogManager:mx","TopOrBottomDialogManager:my","CellBordersPreviewControlHelper:mz","FontControlViewModel:m0","DialogFontStyleInfo:m1","ISpreadsheetDialogServicesManager:m4","ISpreadsheetDialogFontsService:na","ISpreadsheetDialogFormatsService:nb","SpreadsheetDialogFormatsService:nc","FilterDialogViewModel:nl","FormatCellsDialogViewModel:np","spreadsheet.EnumWrapper$1:nq","TopOrBottomDialogViewModel:nt","SortConditionWrapper:nx","SortDialogViewModel:nz","SortDialogViewModel_ApplySortErrorInfo:n1","spreadsheet.SpreadsheetVisualData:n3","spreadsheet.SpreadsheetHeaderAreaVisualData:n4","spreadsheet.SpreadsheetHeaderAreaVisualDataList:n5","spreadsheet.SpreadsheetCellAreaVisualData:n6","spreadsheet.SpreadsheetCellAreaVisualDataList:n7","spreadsheet.SpreadsheetRowColumnVisualData:n8","spreadsheet.SpreadsheetRowColumnVisualDataList:n9","spreadsheet.SpreadsheetTabItemAreaVisualData:oa","spreadsheet.SpreadsheetTabVisualData:ob","spreadsheet.SpreadsheetTabVisualDataList:oc","IDeferUpdate:oj"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.equalsSimple,$x=$.ig.util.compareSimple,$y=$.ig.util.numberToString,$z=$.ig.util.tryParseInt32_1,$0=$.ig.util.tryParseInt32_2,$1=$.ig.util.intToString1,$2=$.ig.util.parseInt32_1,$3=$.ig.util.parseInt32_2,$4=$.ig.util.compare,$5=$.ig.util.replace,$6=$.ig.util.stringFormat,$7=$.ig.util.stringFormat1,$8=$.ig.util.stringFormat2,$9=$.ig.util.stringCompare1,$aa=$.ig.util.stringCompare2,$ab=$.ig.util.stringCompare3,$ac=$.ig.util.tryParseNumber,$ad=$.ig.util.tryParseNumber1,$ae=$.ig.util.numberToString1,$af=$.ig.util.parseNumber,$ag=$.ig.util.parseUInt8_1,$ah=$.ig.util.parseUInt8_2,$ai=$.ig.util.intToString,$aj=$.ig.util.isDigit,$ak=$.ig.util.isDigit1,$al=$.ig.util.isLetter,$am=$.ig.util.isNumber,$an=$.ig.util.isLetterOrDigit,$ao=$.ig.util.isLower,$ap=$.ig.util.toLowerCase,$aq=$.ig.util.toUpperCase,$ar=$.ig.util.parseBool,$as=$.ig.util.tryParseBool;$d("VisualElementInputType:ax",false,false,{MouseDown:0,MouseOver:1,MouseUp:2,MouseWheel:3,MouseWheelHorizontal:4});$d("RootVisualElement_TouchState:ap",false,false,{Pending:0,Scrolling:1});$d("InputContactChangeType:ac",false,false,{None:0,MouseLeftButton:1,MouseRightButton:2,MouseMiddleButton:3,MouseOtherButton:4});$d("RenderLayerType:bw",false,false,{Background:0,Borders:1,Foreground:2,Image:3,ImageBackground:4});$d("JsScrollEventType:bf",false,false,{SmallDecrement:0,SmallIncrement:1,LargeDecrement:2,LargeIncrement:3,ThumbPosition:4,ThumbTrack:5,First:6,Last:7,EndScroll:8});$d("ScrollInfoBarVisibility:a0",false,false,{Disabled:0,Auto:1,Hidden:2,Visible:3});$d("ScrollInfoAmount:az",false,false,{LargeDecrement:0,SmallDecrement:1,NoAmount:2,LargeIncrement:3,SmallIncrement:4});$d("ScrollInfoOrientation:ay",false,false,{Horizontal:0,Vertical:1});$d("SortDirectionWithCustomListOptions:nj",false,false,{Ascending:0,Descending:1,AscendingCustomList:2,DescendingCustomList:3});$d("SpreadsheetSortDialogConditionType:ni",false,false,{OrderedSortCondition:0,FillSortCondition:1,FontColorSortCondition:2,IconSortCondition:3,CustomListSortCondition:4});$d("CellBorderType:nh",false,false,{Left:0,Top:1,Right:2,Bottom:3,InsideVertical:4,InsideHorizontal:5,DiagonalDown:6,DiagonalUp:7});$d("CellBorderPresetType:ng",false,false,{None:0,Outline:1,Inside:2});$d("DialogFontStyle:nf",false,false,{None:0,Regular:1,Bold:2,Italic:3,BoldItalic:4});$d("spreadsheet.SpreadsheetFilterDialogOption:ne",false,true,{Equals:0,NotEqual:1,GreaterThan:2,GreaterThanOrEqual:3,LessThan:4,LessThanOrEqual:5,BeginsWith:6,DoesNotBeginWith:7,EndsWith:8,DoesNotEndWith:9,Contains:10,DoesNotContain:11,Between:12,Custom:13});$d("FormatCellsDialogTab:nd",true,false,{None:0,Number:1,Alignment:2,Font:4,Border:8,Fill:16,Protection:32,All:63});$d("SpreadsheetDialogFormatCategory_FormatCategoryType:m9",false,false,{General:0,Number:1,Currency:2,Accounting:3,Date:4,Time:5,Percentage:6,Fraction:7,Scientific:8,Text:9,Special:10,Custom:11});$d("SortCriteriaRow_RowElementPart:mt",false,false,{Column:0,SortType:1,Order:2});$d("ColorSortingCriteriaControl_ColorSortingCriteriaElementPart:mr",false,false,{Color:0,Direction:1});$d("BorderLineButtonElementProxy_BorderLineButtonType:mo",false,false,{NonePreset:0,OutlinePreset:1,InsidePreset:2,BottomBorder:3,DiagonalDownBorder:4,DiagonalUpBorder:5,InsideHorizontalBorder:6,InsideVerticalBorder:7,LeftBorder:8,RightBorder:9,TopBorder:10});$d("BorderLineButtonElementProxy_BorderDrawType:mn",false,false,{None:0,Light:1,Dark:2});$d("ColorPickerProxy_SelectedColorButtonType:mm",false,false,{None:0,Swatch:1,Automatic:2});$d("ColorPickerProxy_ActionButtonType:ml",false,false,{None:0,NoColor:1,Automatic:2});$d("FormatCellsDialogManager_FormatsListUpdateOption:mk",false,false,{None:0,InitializeSelectedItem:1,PreserveSelectedIndex:2});$d("FormatCellsDialogManager_ElementVisibility:mj",false,false,{collapse:0,hidden:1,visible:2});$d("SheetTabAction:k5",false,false,{AddNewSheet:0,InsertNewSheets:1,ScrollFirst:2,ScrollLast:3,ScrollPrevious:4,ScrollNext:5,ActivatePreviousOutOfView:6,ActivateNextOutOfView:7,ActivateNext:8,ActivatePrevious:9,ActivateAndSelectNext:10,ActivateAndSelectPrevious:11,SelectAllSheets:12,UnselectSheets:13,DeleteWorksheets:14});$d("SpreadsheetTabManager_InternalFlags:k6",false,false,{TabsChanged:1,ActiveChanged:2,SelectedChanged:4,TabAreaChanged:8,TabItemStateChanged:16,IsNextItemOutOfView:32,IsPreviousItemOutOfView:64,SelectedWorksheetChanged:128,ReverseZIndex:256,Workbook:15});$d("spreadsheet.SpreadsheetResourceId:k0",false,true,{CellSelectionFill:0,CellSelectionInnerBorder:1,CellSelectionOuterBorder:2,CellSelectionDragBorder:3,CellSelectionDragBorderInHeader:4,CellSelectionHandleFill:5,CellSelectionHandleBorder:6,SelectAllBackground:7,SelectAllTriangleFill:8,SelectAllTriangleHotTrackFill:9,SelectAllTriangleSelectedFill:10,RowHeaderBackground:11,RowHeaderSelectedBackground:12,RowHeaderWithSelectedCellsBackground:13,RowHeaderHotTrackBackground:14,RowHeaderForeground:15,RowHeaderSelectedForeground:16,RowHeaderWithSelectedCellsForeground:17,RowHeaderHotTrackForeground:18,RowHeaderBorder:19,RowHeaderSelectedBorder:20,RowHeaderWithSelectedCellsBorder:21,RowHeaderHotTrackBorder:22,RowHeaderHotTrackSelectedForeground:23,ColumnHeaderBackground:24,ColumnHeaderSelectedBackground:25,ColumnHeaderWithSelectedCellsBackground:26,ColumnHeaderHotTrackBackground:27,ColumnHeaderForeground:28,ColumnHeaderSelectedForeground:29,ColumnHeaderWithSelectedCellsForeground:30,ColumnHeaderHotTrackForeground:31,ColumnHeaderHotTrackSelectedForeground:32,ColumnHeaderBorder:33,ColumnHeaderSelectedBorder:34,ColumnHeaderWithSelectedCellsBorder:35,ColumnHeaderHotTrackBorder:36,MultiSelectActiveCellBorder:37,AutomaticGridline:38,ResizeColumnLine:39,ResizeRowLine:40,TabItemActiveForeground:41,TabItemActiveBackground:42,TabItemSelectedForeground:43,TabItemSelectedBackground:44,TabItemHotTrackForeground:45,TabItemHotTrackBackground:46,TabItemBackground:47,TabItemForeground:48,SelectedTabHighlight:49,TabAreaBackground:50,TabAreaBorder:51,AddSheetButtonForeground:52,AddSheetButtonDisabledForeground:53,AddSheetButtonHotTrackForeground:54,TabScrollButtonForeground:55,TabScrollButtonDisabledForeground:56,TabScrollButtonHotTrackForeground:57,TabAreaSplitterForeground:58,SheetPaneSplitterBackground:59,SheetPaneSplitterPreview:60,InputMessageBorder:61,InputMessageBackground:62,InputMessageForeground:63,InvalidDataBorder:64,DropDownButtonBorder:65,DropDownButtonBackground:66,DropDownButtonForeground:67,DropDownButtonOpenBorder:68,DropDownButtonOpenBackground:69,DropDownButtonOpenForeground:70,UnselectCellsFill:71,UnselectCellsBorder:72});$d("PaneSplitterType:kt",false,false,{RowSplitter:0,ColumnSplitter:1,SplitterIntersection:2});$d("SpreadsheetAreaLayoutManager_DragType:ku",false,false,{None:0,PaneSplitter:1,InputMessage:2,TabItemAreaSplitter:3});$d("WorkbookSerializationLoadError:kl",false,false,{WorksheetCountMismatch:0,MultipleSourceAndTargetRanges:1,CellRangeMismatch:2,MissingSelectionInfo:3,TablesWithMultipleWorksheets:4,IntersectsMergedCell:5,MultipleTargetRanges:6});$d("PlainTextReader_ParseState:j9",false,false,{NotStarted:0,TextWithQualifier:1,TextWithoutQualifier:2});$d("LoadMathOperation:jl",false,false,{None:0,Add:1,Subtract:2,Multiply:3,Divide:4});$d("WorkbookSerializationLoadCategories:jk",true,false,{Values:1,Formulas:2,SkipFormulasFromMultipleSourceRanges:4,ColumnWidths:8,NumberFormat:16,Alignment:32,Borders:64,Font:128,Fill:256,Protection:512,Style:1024,UseSourceTheme:2048,MergedCells:4096,TableFormatting:8192,RowHeights:16384,IncludeColumnWidthsWithColumnSelection:32768,IncludeRowHeightsWithRowSelection:65536,Hyperlinks:131072,Validation:262144,Comments:524288,FormattedStrings:1048576,Tables:2097152,ConditionalFormatting:4194304,MergeConditionalFormatting:8388608,AllGroup:8370167,FormulasGroup:3,ValuesGroup:1,FormatsGroup:4294640,CommentsGroup:524288,ValidationGroup:262144,AllUsingSourceThemeGroup:8372211,AllExceptBordersGroup:8370099,KeepSourceColumnWidthsGroup:8304635,FormulasAndNumberFormatGroup:19,ValuesAndNumberFormatGroup:17,AllMergingConditionalFormatsGroup:16758775});$d("SpreadsheetDropDownButtonType:ir",false,false,{WorksheetFilter:0,TableFilter:1,ListValidation:2,TotalRow:3,CellValues:4});$d("SpreadsheetDropDownButtonState:iq",true,false,{None:0,IsOpen:2,IsSortedAscending:4,IsSortedDescending:8,IsFiltered:16});$d("SpreadsheetPaneManager_ProtectedActionResult:iy",false,false,{SkipOperation:0,ContinueWithoutValidation:1,ReverifyProtection:2});$d("SpreadsheetPaneManager_ChangeActions:iu",true,false,{None:0,DirtyLayout:1,DirtyUsedRange:3,ClearCellInfos:5,DirtyRangeSizes:9,DirtyPaneSettings:17,ZoomChanged:49,DirtyActiveCell:64,HeaderSettings:128,StyleChanged:257,RedrawShapes:515,UpdateCachedProperties:1024,SelectUnlockedCell:2048,ValidationRulesChanged:4096,DirtyActiveTable:8192,DirtyDropDownButtons:16384,DirtyConditionalFormats:32768,DirtyChartData:65536});$d("SpreadsheetPaneManager_InternalFlags:it",true,false,{HasVerticalScrollBar:1,HasHorizontalScrollBar:2,HasScrollBarChanged:4,HasPaneSettingsChanged:8,HasUsedRangeChanged:16,HasRangeSizesChanged:32,IsInitializingScrollInfo:64,HasSingleSelectionWithAllRowsAndColumns:128,IsVerifyingState:256,HasSelectionChanged:512,HasActiveCellChanged:1024,HasFrozenPanes:2048,HasResourceProviderChanged:4096,HadCellValueChanged:8192,IsVerifyPaneInfo:16384,ProcessingPendingChanges:32768,HasPendingChangeNotifications:65536,HasZoomChanged:131072,SkipNextScrollSnapshot:262144,IsSelectionZoom:524288,IsUpdatingExcelScrollOffsets:1048576,NeedsExcelSelectionUpdate:2097152,HasHeaderPropertiesChanged:4194304,HasActiveTableChanged:8388608,VerifyActiveCellPane:16777216,VerifyActiveCellInputMessage:33554432,HasValidationRulesChanged:67108864,VerifyDropDownButtons:134217728,VerifyChartState:268435456,InitialFlags:184550424});$d("SpreadsheetToolTipType:ij",false,false,{ClippedValue:0,InvalidDateTime:1,HyperlinkDefault:2,Hyperlink:3,FilterButton:4});$d("MouseDownInProgressResult:h3",false,false,{CancelOperationAndContinue:0,CancelOperationAndSkip:1,IgnoreMouseDown:2});$d("MouseOperationState:h2",false,false,{NotStarted:0,Starting:1,Started:2,Ending:3,Cancelling:4});$d("SpreadsheetSpecialFilterMenuItems:hz",false,false,{Custom:0,Between:1,Top10:2,AboveAverage:3,BelowAverage:4,Before:5,After:6,YearToDate:7});$d("SpreadsheetContextMenuSubItem:hy",false,false,{InsertCells:0,DeleteCells:1,Sort:2,Filter:3,Select:4,Table:5,NumberFilters:6,TextFilters:7,DateFilters:8,AllDatesInPeriod:9,SortByColor:10,SortByCellColor:11,SortByFontColor:12,SortByIcon:13,FilterByColor:14,FilterByCellColor:15,FilterByFontColor:16,FilterByIcon:17});$d("SpreadsheetHeaderResizeType:hv",false,false,{Resize:0,Unhide:1,AutoSize:2});$d("SortContext:fu",false,false,{Selection:0,WorksheetSortSettings:1,FilterRegion:2,Table:3});$d("SpreadsheetZoomOperation:ft",false,false,{ZoomIn:0,ZoomOut:1,ZoomToSelection:2,ZoomTo100:3});$d("spreadsheet.SpreadsheetUserPromptTrigger:fs",false,true,{ClearCellContentError:0,FormulaParseError:1,EditError:2,InvalidWorksheetName:3,ConflictingWorksheetName:4,DeletingWorksheets:5,InvalidCommandForOverlappingSelections:6,InvalidCommandForMultipleSelections:7,InvalidCommandForMixedCellSelections:8,InvalidNameBoxValue:9,PasteCellRangeSize:10,PasteMultipleSourceAndTargetRanges:11,PasteInvalidSourceRanges:12,PasteInvalidSheetCount:13,PasteError:14,PasteIntersectsMergedCells:15,PasteMultipleSheetsTables:16,IntersectsMergedCells:17,CopyInvalidRanges:18,General:19,TableChangeWithMultipleSelectedSheets:20,InvalidHyperlinkAddress:21,InvalidHyperlinkReference:22,InvalidProtectedWorksheetChange:23,NoSingleAllowedEditRange:24,InvalidArrayFormulaLockedState:25,ChangePartOfDataTable:26,DeletingLockedColumnCells:27,DeletingLockedRowCells:28,LargePasteOperation:29,InvalidSortOrFilterRange:30,LargeCopyOperation:31});$d("SpreadsheetTransactionOperation:fr",false,false,{EditCell:0,ClearCellContents:1,ResizeRow:2,ResizeColumn:3,MergeCells:4,Zoom:5,Bold:6,Italic:7,Strikethrough:8,WrapText:9,FormatCells:10,FontSize:11,JustifyAlignment:12,LeftAlignment:13,RightAlignment:14,CenterAlignment:15,TopAlignment:16,BottomAlignment:17,MiddleAlignment:18,Font:19,Underline:20,Borders:21,"Delete:del":22,InsertCells:23,InsertRows:24,InsertColumns:25,Paste:26,Cut:27,ClearCellFormats:28,RemoveHyperlinks:29,ClearHyperlinks:30,Hyperlink:31,ToggleTotalRow:32,ConvertTableToRange:33,Sort:34,InsertTableColumns:35,AddTableColumn:36,InsertTableRows:37,AddTableRow:38,DeleteTableColumn:39,DeleteTableRow:40,AutoFilterOff:41,AutoFilterOn:42,Filter:43,ShowAll:44,Reapply:45,TableAutoExpansion:46,ChangeTotalRowFormula:47,Entry:48});$d("SpreadsheetPaneRowColumnSizingMode:fq",false,false,{Fill:0,SizeToItems:1,SizeToExtent:2});$d("SpreadsheetOperationResult:fp",false,false,{Error:0,Cancelled:1,Success:2});$d("SpreadsheetHeaderState:fo",false,false,{Normal:0,HasCellsWithSelection:1,IsSelected:2,IsHotTracked:3,IsHotTrackedSelected:4});$d("SpreadsheetFilterByCell:fn",false,false,{Value:0,FontColor:1,Fill:2,Icon:3});$d("spreadsheet.SpreadsheetEnterKeyNavigationDirection:fm",false,true,{Down:0,Right:1,Up:2,Left:3});$d("spreadsheet.SpreadsheetEditModeValidationErrorAction:fl",false,true,{ShowPrompt:0,StayInEditMode:1,RevertChange:2,AcceptChange:3});$d("spreadsheet.SpreadsheetContextMenuArea:fk",false,true,{Column:0,Row:1,Cell:2,Tab:3,InPlaceEditor:4,FormulaBarEditor:5,SelectAllButton:6,TableCell:7});$d("SpreadsheetSelectionContextMenuArea:fj",false,false,{Column:0,Row:1,Cell:2,TableCell:7});$d("spreadsheet.SpreadsheetCellSelectionMode:fi",false,true,{Normal:0,ExtendSelection:1,AddToSelection:2});$d("spreadsheet.SpreadsheetCellRangeBorders:fh",true,true,{LeftBorder:1,TopBorder:2,RightBorder:4,BottomBorder:8,InsideHorizontal:16,InsideVertical:32,DiagonalDown:64,DiagonalUp:128,OutsideBorder:15,InsideBorder:48,AllBorder:63});$d("SpreadsheetCellMergeOperation:fg",false,false,{Unmerge:0,Merge:1,MergeAcross:2,MergeAndCenter:3});$d("SpreadsheetCellNavigationType:ff",false,false,{VisibleCells:0,VisibleCellsWithData:1,EdgeVisibleCellsWithData:2});$d("SpreadsheetCellExitModeAction:fe",false,false,{DiscardChanges:0,UpdateActiveCell:1,UpdateSelectedCells:2,CreateArrayFormula:3});$d("SpreadsheetCellEditorType:fd",false,false,{InPlaceEditor:0,FormularBarEditor:1});$d("spreadsheet.SpreadsheetCellEditMode:fc",false,true,{NotInEditMode:0,ArrowKeysNavigateBetweenCells:1,ArrowKeysNavigateInCell:2});$d("SpreadsheetExitEditModeResults:fb",true,false,{None:0,StayedInEditMode:1,FailedValidation:2,CanceledFailedValidation:4});$d("SpreadsheetActiveCellUpdateMode:fa",false,false,{Synchronous:0,Asynchronous:1});$d("ExcelCellFormatCategory:e9",false,false,{General:0,Number:1,Currency:2,Accounting:3,Date:4,Time:5,Percentage:6,Fraction:7,Scientific:8,Text:9,Custom:10});$d("Direction:e8",false,false,{Left:0,Right:1,Up:2,Down:3});$d("CellContentType:e7",false,false,{"Default:$default":0,Text:1,Date:2,Number:3});$d("CellDiagonalBorder:e6",false,false,{None:0,TopLeftToBottomRight:1,BottomLeftToTopRight:2,Both:3});$d("CellBorderPen:e5",false,false,{None:0,Hair:1,DashDotDot:2,DashDot:3,Dotted:4,Dashed:5,Thin:6,MediumDashDotDot:7,SlantedDashDotInner:8,SlantedDashDotOuter:9,SlantedDashDotDiagonal:10,MediumDashDot:11,MediumDashed:12,Medium:13,Thick:14});$d("IGFormattedTextSettingsFlags:et",true,false,{Font:2,Bold:4,Height:8,Italic:16,StrikeThrough:32,SuperSubScript:64,Foreground:128,Underline:256,All:510});$d("SpreadsheetCursor:ed",false,false,{Arrow:0,AutoFill:1,DragCopy:2,DragMove:3,DragSheet:4,ResizeColumn:5,ResizeRow:6,Rotate:7,Rotating:8,SelectColumn:9,SelectMode:10,SelectRow:11,UnhideRow:12,UnhideColumn:13,ResizePaneColumnSplit:14,ResizePaneRowSplit:15,ResizePaneSplitIntersection:16,Hyperlink:17,TabItemSplit:18,DropDownButton:19});$d("SpreadsheetStatesHigh:ec",true,false,{IsRenamingWorksheet:1,AddWorksheet:2,DeleteWorksheet:4,HasTable:8,MixedTableCellSelection:16,IsSortProtected:32,IsFilterProtected:64,HasMultipleSelectionRanges:128,IsSingleCellSelection:256,All:0});$d("SpreadsheetStatesLow:eb",true,false,{HasWorkbook:1,HasWorksheet:2,HasMultiplePanes:4,HasFrozenPanes:8,HasScrollLock:16,IsInEndMode:32,IsInNormalSelectionMode:64,IsInExtendedSelectionMode:128,IsInAddToSelectionMode:256,IsInEditMode:512,CanUndo:1024,CanRedo:2048,EnterKeyNavigation:4096,IsPreviousWorksheetTabOutOfView:8192,IsNextWorksheetTabOutOfView:16384,HasRowScrollRegionSplit:32768,HasColumnScrollRegionSplit:65536,HasMultipleSelectedWorksheets:131072,HasRowsSelected:262144,HasColumnsSelected:524288,IsWorkbookProtected:1048576,IsWorksheetProtected:2097152,IsNavigatingUnlockedCellsOnly:4194304,IsFormatCellsProtected:8388608,IsFormatColumnsProtected:16777216,IsFormatRowsProtected:33554432,IsInsertColumnsProtected:67108864,IsInsertRowsProtected:134217728,IsDeleteColumnsProtected:268435456,IsDeleteRowsProtected:536870912,ArrowKeysNavigateWithinCell:1073741824,IsInNameBox:-2147483648,All:0});$d("spreadsheet.SpreadsheetAction:ea",false,true,{ActivatePreviousPane:0,ActivateNextPane:1,CellInSelectionRight:2,CellInSelectionLeft:3,CellInSelectionAbove:4,CellInSelectionBelow:5,CellRight:6,CellLeft:7,CellAbove:8,CellBelow:9,CellWithDataLeft:10,CellWithDataRight:11,CellWithDataAbove:12,CellWithDataBelow:13,EdgeCellWithDataLeft:14,EdgeCellWithDataRight:15,EdgeCellWithDataAbove:16,EdgeCellWithDataBelow:17,CellPageBelow:18,CellPageAbove:19,CellPageRight:20,CellPageLeft:21,ScrollLeft:22,ScrollRight:23,ScrollUp:24,ScrollDown:25,ScrollPageLeft:26,ScrollPageRight:27,ScrollPageAbove:28,ScrollPageBelow:29,FirstCellInRow:30,FirstCellInView:31,FirstCellInWorksheet:32,FirstScrollableCellInRow:33,FirstScrollableCellInWorksheet:34,LastCellInView:35,EnterEndMode:36,ExitEndMode:37,LastUsedCell:38,LastUsedCellInRow:39,SelectCurrentRegion:40,SelectCellRight:41,SelectCellLeft:42,SelectCellAbove:43,SelectCellBelow:44,SelectCellWithDataLeft:45,SelectCellWithDataRight:46,SelectCellWithDataAbove:47,SelectCellWithDataBelow:48,SelectEdgeCellWithDataLeft:49,SelectEdgeCellWithDataRight:50,SelectEdgeCellWithDataAbove:51,SelectEdgeCellWithDataBelow:52,SelectCellPageBelow:53,SelectCellPageAbove:54,SelectCellPageRight:55,SelectCellPageLeft:56,SelectFirstCellInRow:57,SelectFirstCellInView:58,SelectFirstCellInWorksheet:59,SelectFirstScrollableCellInRow:60,SelectFirstScrollableCellInWorksheet:61,SelectLastCellInView:62,SelectLastUsedCell:63,SelectLastUsedCellInRow:64,SelectRows:65,SelectColumns:66,SelectAllCells:67,SwitchToNormalSelectionMode:68,SwitchToExtendSelectionMode:69,SwitchToAddToSelectionMode:70,FirstCellInViewWithinSelection:71,LastCellInViewWithinSelection:72,EnterEditMode:73,EnterEditModeAndClearValue:74,ExitEditModeAndUpdateActiveCell:75,ExitEditModeAndUpdateSelectedCells:76,ExitEditModeAndCreateArrayFormula:77,ExitEditModeAndDiscardChanges:78,ClearContents:79,SelectCurrentArray:80,CellInNextSelectionRange:81,CellInPreviousSelectionRange:82,SelectVisibleCellsOnly:83,SelectActiveCellOnly:84,Redo:85,Undo:86,EnterKeyNavigation:87,ShiftEnterKeyNavigation:88,HideColumns:89,UnhideColumns:90,HideRows:91,UnhideRows:92,AutoFitRowHeight:93,AutoFitColumnWidth:94,MergeCellsAcross:95,MergeCells:96,MergeCellsAndCenter:97,UnmergeCells:98,AddNewWorksheet:99,InsertNewWorksheets:100,ActivateNextWorksheet:101,ActivatePreviousWorksheet:102,ActivateAndSelectNextWorksheet:103,ActivateAndSelectPreviousWorksheet:104,ScrollNextWorksheet:105,ScrollPreviousWorksheet:106,ScrollToFirstWorksheet:107,ScrollToLastWorksheet:108,ActivatePreviousOutOfViewWorksheet:109,ActivateNextOutOfViewWorksheet:110,SelectAllWorksheets:111,UnselectWorksheets:112,RenameWorksheet:113,DeleteWorksheets:114,ZoomIn:115,ZoomOut:116,ZoomToSelection:117,ZoomTo100:118,ToggleBold:119,ToggleItalic:120,ToggleStrikeThrough:121,
ToggleWrapText:122,IncreaseIndentation:123,DecreaseIndentation:124,IncreaseFontSize:125,DecreaseFontSize:126,AlignHorizontalCenter:127,AlignHorizontalJustify:128,AlignHorizontalLeft:129,AlignHorizontalRight:130,AlignVerticalTop:131,AlignVerticalMiddle:132,AlignVerticalBottom:133,ToggleSplitPanes:134,ToggleFreezePanes:135,FreezeFirstRow:136,FreezeFirstColumn:137,RemoveColumnScrollRegionSplit:138,SnapColumnScrollRegionSplit:139,RemoveRowScrollRegionSplit:140,SnapRowScrollRegionSplit:141,RemoveScrollRegionSplits:142,SnapScrollRegionSplits:143,DeleteRows:144,InsertRows:145,DeleteColumns:146,InsertColumns:147,Cut:148,Copy:149,Paste:150,ToggleCellEditMode:151,InsertCellsShiftRight:152,InsertCellsShiftDown:153,DeleteCellsShiftLeft:154,DeleteCellsShiftUp:155,InsertCells:156,DeleteCells:157,ClearFormats:158,ToggleShowFormulasInCells:159,ToggleUnderline:160,ToggleDoubleUnderline:161,ToggleSuperscript:162,ToggleSubscript:163,OpenHyperlink:164,RemoveHyperlinks:165,ClearHyperlinks:166,FirstUnlockedCell:167,LastUnlockedCell:168,ResetNameBoxWidth:169,CircleInvalidData:170,ClearValidationCircles:171,CancelRenameWorksheet:172,CommitRenameWorksheet:173,InsertTableColumns:174,AddTableColumn:175,InsertTableRows:176,AddTableRow:177,DeleteTableColumns:178,DeleteTableRows:179,SelectTableColumnData:180,SelectEntireTableColumn:181,SelectTableRow:182,ToggleTableTotalRow:183,ConvertTableToRange:184,ToggleFilter:185,SortDescending:186,SortAscending:187,ClearAllFilterAndSort:188,ClearFilter:189,ReapplyFilterAndSort:190,FilterByCellValue:191,FilterByCellColor:192,FilterByCellFontColor:193,FilterByCellIcon:194,SortByCellColor:195,SortByCellFontColor:196,SortByCellIcon:197,ShowFormatCellsDialog:198,CellInTableRight:199,CellInTableLeft:200,ShowCellDropDown:201,PickFromDropDownList:202,ShowCustomSortDialog:203});$d("Spreadsheet_InternalFlags:da",true,false,{NotifyCanExecuteChanged:1,IsInitialized:2,IsUndoEnabled:4,IsVerifyingState:8,NeedsCanUndoRedoVerification:16,CanUndo:32,CanRedo:64,HasPendingChangeNotification:128,ActiveTabChanged:256,SelectedTabsChanged:512,NeedsFormatChangeNotification:1024,NeedsWorkbookDirtiedNotification:2048,NeedsNameBoxValueVerification:4096,NeedsFormulaBarValueVerification:8192,VerifyIsRenamingWorksheet:16384,IsInitializingZoomLevel:32768,NeedsZoomLevelInitialization:65536,IsInitializingShowHeaders:131072,NeedsShowHeadersInitialization:262144,IsInitializingShowGridlines:524288,NeedsShowGridlinesInitialization:1048576,IsInitializing:2097152,IsInEditMode:8388608,ActiveCellValue:16777216,IsInitializingCellEditor:33554432,NeedsInputMsgPosInitialization:67108864,HasDeferredEvents:134217728});$d("SpreadsheetDrawingOperationType:cr",false,false,{Line:0,Icon:1,Ellipse:2});$d("SpreadsheetCellValueInfo_InternalFlags:cz",true,false,{IsMergedCell:1,ClipRows:2,ShrinkToFit:4,ComputedWrapText:8,WrapText:16,HasHyperlink:32,DisplaysHashes:64,IsInvalidDateTime:128,FormattedAsNumber:256,IsGeneralFormat:512});$d("SpreadsheetMenuType:b5",false,false,{Column:0,Row:1,Cell:2,Tab:3,InPlaceEditor:4,FormulaBarEditor:5,SelectAllButton:6,TableCell:7,AutoFilter:8});$d("SortDialogViewModel_SortDirectionCustomListItems:n0",false,false,{CustomListAscending:0,CustomListDescending:1,CustomList:2});$d("MouseButton:ow",false,false,{Left:0,Middle:1,Right:2,XButton1:3,XButton2:4});$d("MessageBoxResult:ov",false,false,{None:0,OK:1,Cancel:2,Yes:6,No:7});$d("MessageBoxImage:ou",false,false,{None:0,Hand:16,Question:32,Exclamation:48,Asterisk:64,Stop:16,Error:16,Warning:48,Information:64});$d("MessageBoxButton:ot",false,false,{OK:0,OKCancel:1,YesNoCancel:3,YesNo:4});$c("SR:a","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a){return null},b:function(a,b){return null},$type:new $.ig.Type("SR",$.ig.$ot)},true);$c("DeferredOperation:b","Object",{h:null,g:0,b:null,c:false,init:function(a){$.ig.$op.init.call(this);this.b=a},d:function(){return this.h!=null},e:function(){return this.c},k:function(){if(this.h==null){return}this.h=null;var a=this.c;this.c=true;try{this.b()}finally{this.c=a}},i:function(){if(this.h!=null){this.h=null;if(this==$$t.$b.a){window.clearTimeout(this.g)}else if($$t.$b.f.remove(this)&&$$t.$b.f.count()==0){$$t.$b.a.i()}}},m:function(){var $self=this;if(this.h!=null){return}if($$t.$b.a==null){$$t.$b.j()}var a={};this.h=a;if(this==$$t.$b.a){this.g=window.setTimeout(function(){$self.l(a)},0)}else{$$t.$b.f.add(this);$$t.$b.a.m()}},j:function(){if($$t.$b.a==null){$$t.$b.f=new $$4.x($$t.$b.$type,0);$$t.$b.a=new $$t.b(function(){var a=$$t.$b.f.toArray();$$t.$b.f.clear();for(var b=0;b<a.length;b++){if(a[b]!=null){a[b].k()}}})}},l:function(a){if(a!=this.h){return}this.k()},$type:new $.ig.Type("DeferredOperation",$.ig.$ot)},true);$c("TimedOperation:c","Object",{b:0,a:null,init:function(a,b){$.ig.$op.init.call(this);this.a=a;this.b=window.setTimeout(this.d.runOn(this),b)},c:function(){if(this.a!=null){window.clearTimeout(this.b)}this.a=null},d:function(){if(this.a!=null){var a=this.a;this.a=null;a()}},$type:new $.ig.Type("TimedOperation",$.ig.$ot)},true);$c("WeakEventHandler$3:d","Object",{$tInstance:null,$tEventSource:null,$tEventArgs:null,h:null,g:null,init:function($tInstance,$tEventSource,$tEventArgs,a,b,c,d){this.$tInstance=$tInstance;this.$tEventSource=$tEventSource;this.$tEventArgs=$tEventArgs;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tInstance,this.$tEventSource,this.$tEventArgs)}$.ig.$op.init.call(this);this.h=new $$6.z(a);this.g=new $$6.z($e(this.$tEventSource,b));this._d=c;this._c=d},a:function(){return $v(this.$tEventSource,$$ak.$c.p(this.g))},b:function(){return $b(this.$tInstance,$$ak.$c.p(this.h))},_d:null,_c:null,f:function(a,b){var c=$b(this.$tInstance,$$ak.$c.p(this.h));if(c!=null){if(this._d!=null){this._d(c,a,b)}}else{this.e()}},e:function(){var a=$v(this.$tEventSource,$$ak.$c.p(this.g));if(this._c!=null&&this.g.a()){this._c(this,a)}this._c=null},$type:new $.ig.Type("WeakEventHandler$3",$.ig.$ot)},true);$c("WeakCollectionChangedHandler$1:e","WeakEventHandler$3",{$tInstance:null,init:function($tInstance,a,b,c){this.$tInstance=$tInstance;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tInstance)}$$t.$d.init.call(this,this.$tInstance,$$4.$ac.$type,$$4.$ae.$type,a,b,c,function(d,e){e.collectionChanged=$.ig.Delegate.prototype.remove(e.collectionChanged,d.f.runOn(d))})},$type:new $.ig.Type("WeakCollectionChangedHandler$1",$$t.$d.$type.specialize(0,$$4.$ac.$type,$$4.$ae.$type))},true);$c("WeakPropertyChangedHandler$1:f","WeakEventHandler$3",{$tInstance:null,init:function($tInstance,a,b,c){this.$tInstance=$tInstance;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tInstance)}$$t.$d.init.call(this,this.$tInstance,$$0.$b6.$type,$$0.$b7.$type,a,b,c,function(d,e){e.propertyChanged=$.ig.Delegate.prototype.remove(e.propertyChanged,d.f.runOn(d))})},$type:new $.ig.Type("WeakPropertyChangedHandler$1",$$t.$d.$type.specialize(0,$$0.$b6.$type,$$0.$b7.$type))},true);$c("ISupportPositioning:g","Object",{$type:new $.ig.Type("ISupportPositioning",null)},true);$c("PositionSorter:h","Object",{i:null,j:null,g:null,f:null,c:null,e:null,d:null,a:false,init:function(){this.g=new $$4.h(String,$$0.$bz.$type.specialize($$t.$g.$type),0);this.f=new $$4.h($$t.$g.$type,$$4.$q.$type.specialize($$t.$g.$type),0);this.c=new $$4.h($$t.$g.$type,$$4.$q.$type.specialize($$t.$g.$type),0);this.e=new $$4.h($$t.$g.$type,$$4.$q.$type.specialize($$t.$g.$type),0);this.d=new $$4.h($$t.$g.$type,$$4.$q.$type.specialize($$t.$g.$type),0);$.ig.$op.init.call(this)},n:function(a,b,c){var d=function(){var $ret=new $$t.h;$ret.j=a;$ret.i=c;return $ret}();b=d.b();return{p1:b}},m:function(a,b){var d=this.f.item(a).getEnumerator();while(d.moveNext()){var c=d.current();if(!b.contains(c)){b.add(c);this.m(c,b)}}},l:function(a,b){var d=this.c.item(a).getEnumerator();while(d.moveNext()){var c=d.current();if(!b.contains(c)){b.add(c);this.l(c,b)}}},k:function(a,b,c){if(a==b){return 0}if(this.e.item(a).contains(b)){return-1}if(this.d.item(a).contains(b)){return 1}if(1==c){if(a.key()!=b.key()){this.a=true}if(this.i!=null){return this.i.compare(a,b)}return 0}return-this.k(b,a,1)},h:function(a,b){var $self=this;var c=b?a.before():a.after();var d=new $$4.q($$t.$g.$type,0);if(null!=c){d.unionWith($$5.$e.p(String,$$t.$g.$type,$$5.$e.u(String,c,function(e){return $self.g.containsKey(e)}),function(e){return $self.g.item(e)}))}return d},b:function(){var $self=this;var a=true;var c=this.j.getEnumerator();while(c.moveNext()){var b=c.current();var d;if(!function(){var e=$self.g.tryGetValue(b.key(),d);d=e.p1;return e.ret}()){this.g.item(b.key(),d=new $$4.x($$t.$g.$type,0))}d.add(b)}var f=this.j.getEnumerator();while(f.moveNext()){var e=f.current();this.f.item(e,this.h(e,true));this.c.item(e,this.h(e,false))}var h=this.j.getEnumerator();while(h.moveNext()){var g=h.current();var j=this.f.item(g).getEnumerator();while(j.moveNext()){var i=j.current();this.c.item(i).add(g)}var l=this.c.item(g).getEnumerator();while(l.moveNext()){var k=l.current();this.f.item(k).add(g)}}var n=this.j.getEnumerator();while(n.moveNext()){var m=n.current();var o=new $$4.q($$t.$g.$type,0);var p=new $$4.q($$t.$g.$type,0);this.m(m,o);this.l(m,p);this.e.item(m,o);this.d.item(m,p);if(o.overlaps(p)){a=false}}this.j.sort2(function(q,r){return $self.k(q,r,0)});if(this.a){}return a},$type:new $.ig.Type("PositionSorter",$.ig.$ot)},true);$c("IntRange:i","ValueType",{init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$0.$bh.init.call(this)},_i:0,_h:0,init1:function(a,b,c){$$0.$bh.init.call(this);if(b<c){this._i=b;this._h=c}else{this._i=c;this._h=b}},equals1:function(a){if($b($$t.$i.$type,a)!==null){return this.equals(a)}return false},getHashCode:function(){return this._i<<16^this._h},toString:function(){return $6("{0}-{1}",this._i,this._h)},_f:function(){if($$t.$i._d==null){$$t.$i._d=new $$t.j($$t.$i.$type,function(a,b){return $x(a._i,b._i)})}return $$t.$i._d},_g:function(){if($$t.$i._e==null){$$t.$i._e=new $$t.j($$t.$i.$type,function(a,b){var c=$x(a._i,b._i);if(c==0){c=$x(a._h,b._h)}return c})}return $$t.$i._e},_c:function(a){return this._i<=a&&a<=this._h},_j:function(a){if(this._h<a._i||this._i>a._h){return $m($$t.$i.$type,null)}var b=this._i<a._i?a._i:this._i;var c=this._h<a._h?this._h:a._h;return $m($$t.$i.$type,new $$t.i(1,b,c))},_a:function(a){if(this._i>=a){return this}var b=a;var c=this._h<a?a:this._h;return new $$t.i(1,b,c)},_b:function(a){if(this._h<=a){return this}var b=this._i<a?this._i:a;var c=a;return new $$t.i(1,b,c)},equals:function(a){return this._i==a._i&&this._h==a._h},$type:new $.ig.Type("IntRange",$$0.$bh.$type,[$$0.$b.$type.specialize(-1)])},true);$$t.$i.$type.initSelfReferences();$c("IntRange_StartComparerImpl:k","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){return $x(a._i,b._i)},$type:new $.ig.Type("IntRange_StartComparerImpl",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$i.$type)])},true);$c("IntRange_StartThenEndComparerImpl:l","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){var c=$x(a._i,b._i);if(c==0){c=$x(a._h,b._h)}return c},$type:new $.ig.Type("IntRange_StartThenEndComparerImpl",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$i.$type)])},true);$c("ComparisonComparer$1:j","Comparer$1",{$t:null,_c:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$6.$ab.init.call(this,this.$t);this._c=a},compare:function(a,b){return this._c(a,b)},$type:new $.ig.Type("ComparisonComparer$1",$$6.$ab.$type.specialize(0))},true);$c("PixelConverter:m","Object",{init:function(){this.b=1;this.a=.5;$.ig.$op.init.call(this)},b:0,a:0,d:function(a){if(arguments.length===1){this.b=a;this.a=a/2;return a}else{return this.b}},c:function(a,b){var c=a%this.b;if($$ak.$c.c(c,0)){return 0}if($$ak.$c.c(Math.abs(c),this.b)){return 0}if(false==b){if(Math.abs(c)<this.a){return-c}return Math.sign(c)*this.b-c}else{if(c<0){return-c}return this.b-c}},f:function(a,b){if($l(b,null)){return this.e(Math.max(a,b.value()))}return this.e(a)},e:function(a){return a+this.c(a,false)},h:function(a){return a+this.c(a,true)},g:function(a){return a+this.c(a,false)},$type:new $.ig.Type("PixelConverter",$.ig.$ot)},true);$c("WorkbookFontSnapshot:oo","Object",{_f:$m($$0.$aq.$type,null),_c:null,_e:0,_g:$m($$0.$aq.$type,null),_i:null,_h:$m($$0.$aq.$type,null),_a:0,_b:0,_j:null,init:function(a){this._f=$m($$0.$aq.$type,null);this._g=$m($$0.$aq.$type,null);this._h=$m($$0.$aq.$type,null);this._j=new $$a.ax;$.ig.$op.init.call(this);this._f=a._c2();this._c=a._bh();this._e=a._cq();this._g=a._c3();this._i=a._df();this._h=a._c4();this._a=a._a0();this._b=a._a1();this._j=$$t.$oo._l(this._c,a.v())},_d:function(a){if($l(this._f,a._c2())||$$a4.$ah.l_op_Inequality(this._c,a._bh())||this._e!=a._cq()||$l(this._g,a._c3())||this._i!=a._df()||$l(this._h,a._c4())||this._a!=a._a0()||this._b!=a._a1()){return new $$t.oo(a)}return this},_l:function(a,b){return $$a4.$ah.l_op_Equality(a,null)?$$a4.$ii.c():$$a4.$k.g2(a._aj(b,true,true))},setFontFormatting:function(a){throw new $$0.r(0)},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._f}},colorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._c}},height:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._e}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._g}},name:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._i}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._h}},superscriptSubscriptStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a}},underlineStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b}},_color:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._j}},$type:new $.ig.Type("WorkbookFontSnapshot",$.ig.$ot,[$$a4.$fx.$type])},true);$c("FormattedStringFontResolved:op","Object",{_b:null,_a:null,init:function(a,b){$.ig.$op.init.call(this);this._a=a;this._b=b},_c:function(a,b){this._a=a;this._b=b},setFontFormatting:function(a){throw new $$0.r(0)},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a._bold$i();if($j(a,null)){a=this._b._c2()}return a}},colorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a.colorInfo();if($$a4.$ah.l_op_Equality(a,null)){a=this._b._bh()}return a}},height:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a.height();if(a<0){a=this._b._cq()}return a}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a._italic$i();if($j(a,null)){a=this._b._c3()}return a}},name:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a.name();if(a==null){a=this._b._df()}return a}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a._strikeout$i();if($j(a,null)){a=this._b._c4()}return a}},superscriptSubscriptStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a.superscriptSubscriptStyle();if(a==-1){a=this._b._a0()}return a}},underlineStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._a.underlineStyle();if(a==-1){a=this._b._a1()}return a}},$type:new $.ig.Type("FormattedStringFontResolved",$.ig.$ot,[$$a4.$fx.$type])},true);$c("ResolvedWorkbookFont:oq","Object",{_a:null,_b:null,_c:null,init:function(a,b,c){$.ig.$op.init.call(this);this._b=a;this._a=b;this._c=c},_d:function(a){this._b=a},setFontFormatting:function(a){throw new $$0.r(0)},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b._bold$i();if($j(a,null)){a=this._a._bold$i()}return a}},colorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b.colorInfo();if($$a4.$ah.l_op_Equality(a,null)){a=this._a.colorInfo()}return a}},height:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b.height();if(a<0){a=this._a.height()}return a}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b._italic$i();if($j(a,null)){a=this._a._italic$i()}return a}},name:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b.name();if(a==null){a=this._a.name()}if(this._c!=null){a=this._c._gv(a)}return a}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b._strikeout$i();if($j(a,null)){a=this._a._strikeout$i()}return a}},superscriptSubscriptStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b.superscriptSubscriptStyle();if(a==-1){a=this._a.superscriptSubscriptStyle()}return a}},underlineStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{var a=this._b.underlineStyle();if(a==-1){a=this._a.underlineStyle()}return a}},$type:new $.ig.Type("ResolvedWorkbookFont",$.ig.$ot,[$$a4.$fx.$type])},true);$c("ResolvedWorksheetCellFormatDataFont:or","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);this._b(a)},_b:function(a){this._a=a},setFontFormatting:function(a){throw new $$0.r(0)},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._c2()}},colorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._bh()}},height:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._cq()}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._c3()}},name:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._df()}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._c4()}},superscriptSubscriptStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._a0()}},underlineStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._a1()}},$type:new $.ig.Type("ResolvedWorksheetCellFormatDataFont",$.ig.$ot,[$$a4.$fx.$type])},true);$c("ReadOnlyResolvedWorksheetCellFormatData:os","Object",{_b:null,_a:null,init:function(a){$.ig.$op.init.call(this);this._c(a)},_c:function(a){this._b=a;if(this._a==null){this._a=new $$t.or(a)}else{this._a._b(a)}},setFormatting:function(a){throw new $$0.r(0)},alignment:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._a4()}},bottomBorderColorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bf()}},bottomBorderStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._al()}},diagonalBorderColorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bg()}},diagonalBorders:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._aw()}},diagonalBorderStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._am()}},fill:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._ar()}},font:function(){return this._a},formatOptions:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bz()}},formatString:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._dg()}},indent:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._ct()}},leftBorderColorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bk()}},leftBorderStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._an()}},locked:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._locked$i.apply(this,arguments);return a}else{return $s(this._locked$i.apply(this,arguments))}},_locked$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._c5()}},rightBorderColorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bl()}},rightBorderStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._ao()}},rotation:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._cw()}},shrinkToFit:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._shrinkToFit$i.apply(this,arguments);return a}else{return $s(this._shrinkToFit$i.apply(this,arguments))}},_shrinkToFit$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._c6()}},style:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bs()}},topBorderColorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._bm()}},topBorderStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._ap()}},verticalAlignment:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._a9()}},wrapText:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._wrapText$i.apply(this,arguments);return a}else{return $s(this._wrapText$i.apply(this,arguments))}},_wrapText$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b._c7()}},$type:new $.ig.Type("ReadOnlyResolvedWorksheetCellFormatData",$.ig.$ot,[$$a4.$f0.$type])},true);$c("LongValue:on","ValueType",{init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$0.$bh.init.call(this)},j:0,i:0,init1:function(a,b,c){$$0.$bh.init.call(this);this.j=b;this.i=c},a:function(){return new $$t.on(1,(-1),(-1))},f:function(a){return(a.j&this.j)==a.j&&(a.i&this.i)==a.i},g:function(a){return(a.j&this.j)!=0||(a.i&this.i)!=0},h:function(a,b){return!this.g(a)&&this.f(b)},c:function(a,b){return new $$t.on(1,a.j|b.j,a.i|b.i)},d:function(a){return new $$t.on(1,this.j,this.i|a)},e:function(a){return new $$t.on(1,this.j|a,this.i)},b:function(a){return new $$t.on(1,$o(a,4294967295),$$6.$g.toInt32(a/Math.pow(2,32)))},k:function(){return $$6.$g.toInt64(this.i*Math.pow(2,32)+this.j)},$type:new $.ig.Type("LongValue",$$0.$bh.$type)},true);$c("LazyReadOnlyNotifyCollection$1:od","Object",{$t:null,_e:null,_b:false,_a:null,_g:0,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this._b=true;$.ig.$op.init.call(this);this._a=new $$ak.m;this._e=new $$4.x(this.$t,0)},item:function(a,b){if(arguments.length===2){$$ak.$c.t();return b}else{this._n();return this._e.__inner[a]}},_d:function(){return this._e},_c:function(){return this._b},_i:function(a,b,c){this._m(a,b,c)},_m:function(a,b,c){if(null!=this._a){$$ak.$k.aj($.ig.$op.$type,String,this._a,a,b,c)}},_h:function(){this._g++;this._b=true;this._j()},_k:function(a){var b=this.collectionChanged;if(null!=b){b(this,a)}this._i(this,$$4.$af.$getName(a.action()),a)},_l:function(a){var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}this._i(this,a,null)},_j:function(){this._k(this.$type.getStaticFields($$t.$od.$type)._f);this._l("Count");this._l("Item[]")},_n:function(){if(this._b){this._b=false;this._o(this._e)}},_o:function(a){},addListener:function(a,b){this._a.b(a,b)},removeListener:function(a){this._a.d(a)},propertyChanged:null,collectionChanged:null,getEnumerator:function(){return new $$t.oe(this.$t,this)},add:function(a){$$ak.$c.t()},clear:function(){$$ak.$c.t()},contains:function(a){this._n();return this._e.contains(a)},copyTo:function(a,b){this._n();this._e.copyTo(a,b)},count:function(){this._n();return this._e.count()},isReadOnly:function(){return true},remove:function(a){$$ak.$c.t();return false},indexOf:function(a){this._n();return this._e.indexOf(a)},insert:function(a,b){$$ak.$c.t()},copyTo1:function(a,b){this._n();this._e.copyTo(a,b)},isSynchronized:function(){return false},syncRoot:function(){return this._e},add1:function(a){$$ak.$c.t();return-1},contains1:function(a){this._n();return this._e.contains(a)},indexOf1:function(a){this._n();return this._e.indexOf(a)},insert1:function(a,b){$$ak.$c.t()},isFixedSize:function(){return false},remove1:function(a){$$ak.$c.t()},removeAt:function(a){$$ak.$c.t()},$type:new $.ig.Type("LazyReadOnlyNotifyCollection$1",$.ig.$ot,[$$0.$bz.$type.specialize(0),$$0.$bv.$type.specialize(0),$$0.$bw.$type.specialize(0),$$0.$bm.$type,$$0.$bk.$type,$$0.$bt.$type,$$4.$ac.$type,$$0.$b6.$type,$$ak.$i.$type],function(){this._f=new $$4.ae(0,4)})},true);$c("LazyReadOnlyNotifyCollection_Enumerator$1:oe","Object",{$t:null,_a:null,_d:0,_b:null,_c:0,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this._a=a;this._a._n();this._d=a._g;this.reset()},_e:function(){if(this._d!=this._a._g){throw new $$6.p(0)}},dispose:function(){},moveNext:function(){this._e();if(this._c<this._a.count()){this._b=this._a.item(this._c);this._c++;return true}this._c=this._a.count();this._b=$f(this.$t);return false},reset:function(){this._e();this._c=0;this._b=$f(this.$t)},current:function(){return this._b},$type:new $.ig.Type("LazyReadOnlyNotifyCollection_Enumerator$1",$.ig.$ot,[$$0.$bx.$type.specialize(0)])},true);$c("WeakList$1:of","Object",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this._b=new $$4.x($$6.$z.$type,0);$.ig.$op.init.call(this)},_b:null,count:function(){return this._b.count()},item:function(a,b){if(arguments.length===2){this._b.__inner[a]=this._g(b);return b}else{return this._a(a)}},syncRoot:function(){return this._b.syncRoot()},_add:function(a){this._b.add(this._g(a));return this._b.count()-1},_addRange:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this._add(b)}},clear:function(){this._b.clear()},_compact:function(){for(var a=0,b=this._b.count();a<b;a++){this._a(a)}$$ak.$c.v($$6.$z.$type,this._b,null)},contains:function(a){return this.indexOf(a)>=0},copyTo:function(a,b){this.copyTo(a,b)},getEnumerator:function(){return new $$t.og(this.$t,this)},indexOf:function(a){for(var b=0,c=this._b.count();b<c;b++){if(a==this._a(b)){return b}}return-1},insert:function(a,b){this._b.insert(a,this._g(b))},remove:function(a){var b=this.indexOf(a);if(b>=0){this.removeAt(b);return true}return false},removeAt:function(a){this._b.removeAt(a)},_removeRange:function(a,b){this._b.removeRange(a,b)},_g:function(a){return new $$6.z(a)},_a:function(a){var b=this._b.__inner[a];var c=null;if(null!=b){c=$v(this.$t,$$ak.$c.p(b));if(null==c){this._b.__inner[a]=null}}return c},add:function(a){this._add(a)},isReadOnly:function(){return false},add1:function(a){return this._add($v(this.$t,a))},contains1:function(a){return $b(this.$t,a)!==null&&this.contains($v(this.$t,a))},copyTo_1:function(a,b){for(var c=0,d=this._b.count();c<d;c++){a[b++]=this._a(c)}},indexOf1:function(a){return $b(this.$t,a)!==null?this.indexOf($v(this.$t,a)):-1},isFixedSize:function(){return false},isReadOnly1:function(){return false},remove1:function(a){if($b(this.$t,a)!==null){this.remove($v(this.$t,a))}},isSynchronized:function(){return this._b.isSynchronized()},$type:new $.ig.Type("WeakList$1",$.ig.$ot,[$$0.$bz.$type.specialize(0),$$0.$bm.$type])},true);$c("WeakList_Enumerator$1:og","Object",{$t:null,_a:null,_b:null,_c:0,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this._a=a;this.reset()},current:function(){return this._b},moveNext:function(){this._b=null;while(++this._c<this._a.count()){this._b=this._a.item(this._c);if(null!=this._b){break}}return null!=this._b},reset:function(){this._c=-1;this._b=null},dispose:function(){},$type:new $.ig.Type("WeakList_Enumerator$1",$.ig.$ot,[$$0.$bx.$type.specialize(0)])},true);$c("IDeferUpdate:oj","Object",{$type:new $.ig.Type("IDeferUpdate",null)},true);$c("ObservableCollectionExtended$1:oh","List$1",{$t:null,_an:0,_ae:false,_af:false,_al:null,_ac:null,_ag:false,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$oh.init2.call(this,this.$t,2,true,false)},init1:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this._an=0;this._ae=false;this._af=false;this._ag=false;$$4.$x.init1.call(this,this.$t,1,b);this._aq(true,false)},init2:function($t,a,b,c){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this._an=0;this._ae=false;this._af=false;this._ag=false;$$4.$x.init.call(this,this.$t,0);this._aq(b,c)},_isUpdating:function(){return this._an!=0},_ai:function(){return false},_ad:function(){if(null==this._ac){this._ac=new $$ak.m}return this._ac},_aj:function(){return this},addRange:function(a){this.insertRange(this.count(),a)},beginUpdate:function(){var a=++this._an;if(a==1){this._ar()}},endUpdate:function(){var a=--this._an;if(a==0){if(this._ae){this._ae=false;this._a0("Count");this._a0("Item[]");this._a1()}this._at()}},insertRange:function(a,b){if(b==null){throw new $$6.e(0,"collection")}var c=this._ai();if(c){var e=b.getEnumerator();while(e.moveNext()){var d=e.current();this._av(d)}}var g=b.getEnumerator();while(g.moveNext()){var f=g.current();this._ap(f);this.r(a++,f);if(c){this._au(f)}}if(false==this._isUpdating()){this._a0("Count");this._a0("Item[]");this._a1()}else{this._ae=true}},_reInitialize:function(a){if(null==a){
throw new $$6.e(0,"collection")}this.beginUpdate();this.clear();this.addRange(a);this.endUpdate()},removeRange:function(a,b){if(a<0){throw new $$6.f(1,"index")}if(b<0){throw new $$6.f(1,"count")}var c=this._ai();for(var d=a+b-1;d>=a;d--){var e=this.__inner[d];if(c){this._ay(e)}this._a4(e);this.u(d);if(c){this._ax(e)}}if(this._isUpdating()==false){this._a0("Count");this._a0("Item[]");this._a1()}else{this._ae=true}},_ar:function(){},_at:function(){},_au:function(a){},_av:function(a){},_ax:function(a){},_ay:function(a){},_ao:function(){},_ap:function(a){if(this._ag){var b=$b($$ak.$i.$type,a);if(null!=b){b.addListener(this._ad(),false)}}if(this._af){var c=$b($$0.$b6.$type,a);if(c!=null){c.propertyChanged=$.ig.Delegate.prototype.combine(c.propertyChanged,this._al)}}},_aq:function(a,b){this._af=a&&$$0.$b6.$type.isAssignableFrom(this.$t);this._ag=b&&$$ak.$i.$type.isAssignableFrom(this.$t);if(this._af||this._ag){if(this._af){this._al=this._a2.runOn(this)}var d=this._aj().getEnumerator();while(d.moveNext()){var c=d.current();this._ap(c)}}},_a0:function(a){this._az(new $$0.b7(a))},_a1:function(){this._as(this.$type.getStaticFields($$t.$oh.$type)._ak)},_a2:function(a,b){this._aw(new $$t.oi(a,b.propertyName()))},_a4:function(a){if(this._ag){var b=$b($$ak.$i.$type,a);if(null!=b){b.removeListener(this._ad())}}if(this._af){var c=$b($$0.$b6.$type,a);if(c!=null){c.propertyChanged=$.ig.Delegate.prototype.remove(c.propertyChanged,this._al)}}},_aw:function(a){if(this._itemPropertyChanged!=null){this._itemPropertyChanged(this,a)}},_itemPropertyChanged:null,n:function(a){this.r(this.count(),a)},p:function(){var a=this._ai();var b=this._aj();var c=a?new Array(b.count()):null;if(null!=c){b.copyTo(c,0)}if(a){for(var d=0;d<c.length;d++){this._ay(c[d])}}if(this._af||this._ag){var e=b;for(var f=0,g=e.count();f<g;f++){this._a4(e.item(f))}}$$4.$x.p.call(this);if(c!=null){for(var h=0;h<c.length;h++){this._ax(c[h])}}if(this._isUpdating()){this._ae=true}else{this._a0("Count");this._a0("Item[]");this._a1()}},r:function(a,b){var c=this._ai();if(c){this._av(b)}$$4.$x.r.call(this,a,b);this._ap(b);if(c){this._au(b)}if(this._isUpdating()){this._ae=true}else{this._a0("Count");this._a0("Item[]");this._as(new $$4.ae(1,0,$e(this.$t,b),a))}},_as:function(a){var b=this.collectionChanged;if(b!=null){b(this,a)}if(null!=this._ac){this._ac.g(this,a)}},_az:function(a){var b=this.propertyChanged;if(b!=null){b(this,a)}if(null!=this._ac){this._ac.onPropertyValueChanged(this,a.propertyName(),null)}},u:function(a){var b=this.__inner[a];var c=this._ai();if(c){this._ay(b)}this._a4(b);$$4.$x.u.call(this,a);if(c){this._ax(b)}if(this._isUpdating()){this._ae=true}else{this._a0("Count");this._a0("Item[]");this._as(new $$4.ae(1,1,$e(this.$t,b),a))}},x:function(a,b){var c=this._ai();if(c){this._ay(this.__inner[a]);this._av(b)}var d=this.__inner[a];this._a4(d);this._ap(b);$$4.$x.x.call(this,a,b);if(c){this._ax(d);this._au(b)}if(this._isUpdating()){this._ae=true}else{this._a0("Item[]");this._as(new $$4.ae(2,2,$e(this.$t,b),$e(this.$t,d),a))}},addListener:function(a,b){this._ad().b(a,b)},removeListener:function(a){this._ad().d(a)},propertyChanged:null,collectionChanged:null,$type:new $.ig.Type("ObservableCollectionExtended$1",$$4.$x.$type.specialize(0),[$$ak.$i.$type,$$t.$oj.$type,$$0.$b6.$type,$$4.$ac.$type],function(){this._ak=new $$4.ae(0,4)})},true);$c("ItemPropertyChangedEventArgs:oi","PropertyChangedEventArgs",{_b:null,init:function(a,b){$$0.$b7.init.call(this,b);this._b=a},_item:function(){return this._b},$type:new $.ig.Type("ItemPropertyChangedEventArgs",$$0.$b7.$type)},true);$c("AdapterIntRangeSet$1:ok","LazyReadOnlyNotifyCollection$1",{$tSource:null,_p:null,_s:null,_r:null,_q:null,init:function($tSource,a,b,c,d){this.$tSource=$tSource;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tSource)}$$t.$od.init.call(this,$$t.$i.$type);$$ak.$c.z(a,"source");$$ak.$c.z(b,"getRange");var e=$b($$4.$ac.$type,a);if(e!=null){e.collectionChanged=$.ig.Delegate.prototype.combine(e.collectionChanged,this._u.runOn(this))}this._p=a;this._s=b;this._r=c;if(d==null){this._q=function(f,g){return $x(g,f)<=0}}else{this._q=d}},_o:function(a){a.clear();var b=this._p.count();if(b==1){var c=this._p.item(0);if(this._r==null||this._r(c)){a.add(this._s(c))}}else if(b>1){var d=new $$4.x($$t.$i.$type,2,b);for(var e=0;e<b;e++){var f=this._p.item(e);if(this._r==null||this._r(f)){d.add(this._s(f))}}b=d.count();if(b>0){var g=function(h,i){var j=$x(h._i,i._i);if(j==0){j=$x(h._h,i._h)}return j};d.sort1($$t.$i._g());var h=d.__inner[0]._i;var i=d.__inner[0]._h;for(var j=1;j<b;j++){if(!this._q(i,d.__inner[j]._i)){a.add(new $$t.i(1,h,i));h=d.__inner[j]._i;i=d.__inner[j]._h}else if($x(i,d.__inner[j]._h)<0){i=d.__inner[j]._h}}a.add(new $$t.i(1,h,i))}}},_t:function(){this._h()},_u:function(a,b){this._h()},$type:new $.ig.Type("AdapterIntRangeSet$1",$$t.$od.$type.specialize($$t.$i.$type))},true);$c("MDList$1:ol","Object",{$t:null,e:0,g:0,a:null,f:0,init:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this.j(a,b)},h:function(){return this.e},c:function(){if(this.a!=null){for(var a=0;a<this.g;a++){var b=this.a[a];if(b!=null){for(var c=0;c<this.e;c++){if(b[c]!=null){return true}}}}}return false},i:function(){return this.g},item:function(a,b,c){if(arguments.length===3){if(a<0||a>=this.g||b<0||b>=this.e){throw new $$6.f(0)}if(this.a==null){if(c==null){return}this.a=new Array(this.g)}var d=this.a[a];if(d==null){if(c==null){return}this.a[a]=d=new Array(this.f)}d[b]=c;return c}else{if(a<0||a>=this.g||b<0||b>=this.e){throw new $$6.f(0)}if(this.a==null){return null}var c=this.a[a];if(c==null){return null}return c[b]}},d:function(a){if(a<0||a>=this.g){throw new $$6.f(0)}return this.a!=null&&this.a[a]!=null},j:function(a,b){if(a<0||b<0){throw new $$6.f(0)}if(this.a!=null){if(a>this.a.length){this.a=null}else if(b<=this.f){for(var c=0;c<this.g;c++){var d=this.a[c];if(d!=null){for(var e=0;e<this.e;e++){d[e]=null}}}}else{$.ig.util.arrayClear1(this.a,0,this.a.length)}}if(b>this.f){this.f=b}this.g=a;this.e=b},$type:new $.ig.Type("MDList$1",$.ig.$ot)},true);$c("MDBitArray:om","Object",{e:0,f:0,a:null,init:function(a,b){$.ig.$op.init.call(this);this.i(a,b)},g:function(){return this.e},b:function(){if(this.a!=null){for(var a=0;a<this.a.length;a++){var b=this.a[a];if(b!=null){for(var c=0;c<this.e;c++){if(b.item(c)){return true}}}}}return false},h:function(){return this.f},item:function(a,b,c){if(arguments.length===3){if(a<0||a>=this.f||b<0||b>=this.e){throw new $$6.f(0)}if(this.a==null){if(c==false){return}this.a=new Array(this.f)}var d=this.a[a];if(d==null){if(c==false){return}this.a[a]=d=new $$5.a(2,this.e)}d.item(b,c);return c}else{if(a<0||a>=this.f||b<0||b>=this.e){throw new $$6.f(0)}if(this.a==null){return false}var c=this.a[a];if(c==null){return false}return c.item(b)}},c:function(a){if(a<0||a>=this.f){throw new $$6.f(0)}return this.a!=null&&this.a[a]!=null},i:function(a,b){if(a<0||b<0){throw new $$6.f(0)}if(this.a!=null){if(a>this.a.length){this.a=null}else{for(var c=0;c<this.a.length;c++){var d=this.a[c];if(d!=null){d.length(b);d.setAll(false)}}}}this.f=a;this.e=b},$type:new $.ig.Type("MDBitArray",$.ig.$ot)},true);$c("ClipboardHelper:n","Object",{init:function(){$.ig.$op.init.call(this)},d:function(){return new $$a.j},e:function(){return $$a.$b.c()},c:function(a,b){$$a.$b.a(a,b);return true},b:function(a,b){var c=$$t.$n.a(a,b,$$a.$i.d);c=$$t.$n.a(a,b,$$a.$i.a)||c;c=$$t.$n.a(a,b,$$a.$i.b)||c;return c},a:function(a,b,c){try{if(a.getDataPresent(c)){b.setData(c,a.getData(c));return true}}catch(d){}return false},$type:new $.ig.Type("ClipboardHelper",$.ig.$ot)},true);$c("spreadsheet.SpreadsheetChartAdapterBase:bx","Object",{init:function(){$.ig.$op.init.call(this)},_a:function(a,b){},_b:function(a){},$type:new $.ig.Type("spreadsheet.SpreadsheetChartAdapterBase",$.ig.$ot)},true);$c("ISpreadsheetResourceProvider:bz","Object",{$type:new $.ig.Type("ISpreadsheetResourceProvider",null,[$$ak.$i.$type])},true);$c("spreadsheet.SpreadsheetVisualDataBase:n2","Object",{init:function(){$.ig.$op.init.call(this)},serialize:function(){},$type:new $.ig.Type("spreadsheet.SpreadsheetVisualDataBase",$.ig.$ot)},true);$c("spreadsheet.SpreadsheetVisualData:n3","spreadsheet.SpreadsheetVisualDataBase",{init:function(){$$t.$n2.init.call(this);this.cellAreas(new $$t.n7);this.rowHeaderAreas(new $$t.n5);this.columnHeaderAreas(new $$t.n5)},_tabArea:null,tabArea:function(a){if(arguments.length===1){this._tabArea=a;return a}else{return this._tabArea}},_cellAreas:null,cellAreas:function(a){if(arguments.length===1){this._cellAreas=a;return a}else{return this._cellAreas}},_rowHeaderAreas:null,rowHeaderAreas:function(a){if(arguments.length===1){this._rowHeaderAreas=a;return a}else{return this._rowHeaderAreas}},_columnHeaderAreas:null,columnHeaderAreas:function(a){if(arguments.length===1){this._columnHeaderAreas=a;return a}else{return this._columnHeaderAreas}},serialize:function(){var a=$$t.$n3._h(["cellAreas","rowHeaderAreas","columnHeaderAreas","tabArea"],[this.cellAreas(),this.rowHeaderAreas(),this.columnHeaderAreas(),this.tabArea()]);return a},_g:function(a){if(a==null){return null}if(typeof a==="string"){return'"'+$5(a,'"','\\"')+'"'}if($b($$0.$s.$type,a)!==null){return a.toJSON()}if($b($$0.$p.$type,a)!==null){return a.toString1($$0.$cf.invariantCulture())}if($b($.ig.IVisualData.prototype.$type,a)!==null){return a.serialize()}if($b($$t.$n2.$type,a)!==null){return a.serialize()}if($b($$0.$bt.$type,a)!==null){return $$t.$n3._f(a)}return null},_f:function(a){var b=false;var c=null;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();if(b){c.u(", ")}else{c=new $$6.aj(0);c.u("[");b=true}var f=$$t.$n3._g(d);if(f==null){f="null"}c.l(f)}if(c==null){return null}c.u("]");return c.toString()},_h:function(a,b){var c=new $$6.aj(0);var d=false;c.u("{");for(var e=0;e<a.length;e++){var f=b[e];if(f==null){continue}if($b($$0.$bw.$type.specialize($.ig.IVisualData.prototype.$type),f)!==null){d=$.ig.AppearanceHelper.prototype.serializeItems(c,a[e],f,!d)||d}else{var g=$$t.$n3._g(f);if(g!=null){if(d){c.u(", ")}c.l(a[e]);c.l(": ");c.l(g);d=true}}}c.u("}");return c.toString()},$type:new $.ig.Type("spreadsheet.SpreadsheetVisualData",$$t.$n2.$type)},true);$c("spreadsheet.SpreadsheetHeaderAreaVisualData:n4","spreadsheet.SpreadsheetVisualDataBase",{init:function(){$$t.$n2.init.call(this);this.items(new $$t.n9);this.shapes(new $.ig.PrimitiveVisualDataList);this.relativeBounds($.ig.RectData.prototype.empty())},_relativeBounds:null,relativeBounds:function(a){if(arguments.length===1){this._relativeBounds=a;return a}else{return this._relativeBounds}},_items:null,items:function(a){if(arguments.length===1){this._items=a;return a}else{return this._items}},_shapes:null,shapes:function(a){if(arguments.length===1){this._shapes=a;return a}else{return this._shapes}},serialize:function(){return $$t.$n3._h(["relativeBounds","items","shapes"],[this.relativeBounds(),this.items(),$$t.$n3._f(this.shapes())])},$type:new $.ig.Type("spreadsheet.SpreadsheetHeaderAreaVisualData",$$t.$n2.$type)},true);$c("spreadsheet.SpreadsheetHeaderAreaVisualDataList:n5","List$1",{init:function(){$$4.$x.init.call(this,$$t.$n4.$type,0)},$type:new $.ig.Type("spreadsheet.SpreadsheetHeaderAreaVisualDataList",$$4.$x.$type.specialize($$t.$n4.$type))},true);$c("spreadsheet.SpreadsheetCellAreaVisualData:n6","spreadsheet.SpreadsheetVisualDataBase",{init:function(){$$t.$n2.init.call(this);this.rows(new $$t.n9);this.columns(new $$t.n9);this.shapes(new $.ig.PrimitiveVisualDataList);this.relativeBounds($.ig.RectData.prototype.empty())},_relativeBounds:null,relativeBounds:function(a){if(arguments.length===1){this._relativeBounds=a;return a}else{return this._relativeBounds}},_columns:null,columns:function(a){if(arguments.length===1){this._columns=a;return a}else{return this._columns}},_rows:null,rows:function(a){if(arguments.length===1){this._rows=a;return a}else{return this._rows}},_shapes:null,shapes:function(a){if(arguments.length===1){this._shapes=a;return a}else{return this._shapes}},serialize:function(){return $$t.$n3._h(["relativeBounds","columns","rows","shapes"],[this.relativeBounds(),this.columns(),this.rows(),$$t.$n3._f(this.shapes())])},$type:new $.ig.Type("spreadsheet.SpreadsheetCellAreaVisualData",$$t.$n2.$type)},true);$c("spreadsheet.SpreadsheetCellAreaVisualDataList:n7","List$1",{init:function(){$$4.$x.init.call(this,$$t.$n6.$type,0)},$type:new $.ig.Type("spreadsheet.SpreadsheetCellAreaVisualDataList",$$4.$x.$type.specialize($$t.$n6.$type))},true);$c("spreadsheet.SpreadsheetRowColumnVisualData:n8","spreadsheet.SpreadsheetVisualDataBase",{init:function(){$$t.$n2.init.call(this)},_index:0,index:function(a){if(arguments.length===1){this._index=a;return a}else{return this._index}},_offset:0,offset:function(a){if(arguments.length===1){this._offset=a;return a}else{return this._offset}},_extent:0,extent:function(a){if(arguments.length===1){this._extent=a;return a}else{return this._extent}},serialize:function(){return $$t.$n3._h(["index","offset","extent"],[this.index(),this.offset(),this.extent()])},$type:new $.ig.Type("spreadsheet.SpreadsheetRowColumnVisualData",$$t.$n2.$type)},true);$c("spreadsheet.SpreadsheetRowColumnVisualDataList:n9","List$1",{init:function(){$$4.$x.init.call(this,$$t.$n8.$type,0)},$type:new $.ig.Type("spreadsheet.SpreadsheetRowColumnVisualDataList",$$4.$x.$type.specialize($$t.$n8.$type))},true);$c("spreadsheet.SpreadsheetTabItemAreaVisualData:oa","spreadsheet.SpreadsheetVisualDataBase",{init:function(){$$t.$n2.init.call(this);this.tabs(new $$t.oc);this.relativeBounds($.ig.RectData.prototype.empty())},_relativeBounds:null,relativeBounds:function(a){if(arguments.length===1){this._relativeBounds=a;return a}else{return this._relativeBounds}},_tabs:null,tabs:function(a){if(arguments.length===1){this._tabs=a;return a}else{return this._tabs}},serialize:function(){return $$t.$n3._h(["relativeBounds","tabs"],[this.relativeBounds(),this.tabs()])},$type:new $.ig.Type("spreadsheet.SpreadsheetTabItemAreaVisualData",$$t.$n2.$type)},true);$c("spreadsheet.SpreadsheetTabVisualData:ob","spreadsheet.SpreadsheetVisualDataBase",{init:function(){$$t.$n2.init.call(this)},_sheetIndex:0,sheetIndex:function(a){if(arguments.length===1){this._sheetIndex=a;return a}else{return this._sheetIndex}},_color:null,color:function(a){if(arguments.length===1){this._color=a;return a}else{return this._color}},_isActive:false,isActive:function(a){if(arguments.length===1){this._isActive=a;return a}else{return this._isActive}},_isEditing:false,isEditing:function(a){if(arguments.length===1){this._isEditing=a;return a}else{return this._isEditing}},_isProtected:false,isProtected:function(a){if(arguments.length===1){this._isProtected=a;return a}else{return this._isProtected}},_isSelected:false,isSelected:function(a){if(arguments.length===1){this._isSelected=a;return a}else{return this._isSelected}},_relativeBounds:null,relativeBounds:function(a){if(arguments.length===1){this._relativeBounds=a;return a}else{return this._relativeBounds}},serialize:function(){return $$t.$n3._h(["relativeBounds","sheetIndex","color","isActive","isEditing","isProtected","isSelected"],[this.relativeBounds(),this.sheetIndex(),this.color(),this.isActive(),this.isEditing(),this.isProtected(),this.isSelected()])},$type:new $.ig.Type("spreadsheet.SpreadsheetTabVisualData",$$t.$n2.$type)},true);$c("spreadsheet.SpreadsheetTabVisualDataList:oc","List$1",{init:function(){$$4.$x.init.call(this,$$t.$ob.$type,0)},$type:new $.ig.Type("spreadsheet.SpreadsheetTabVisualDataList",$$4.$x.$type.specialize($$t.$ob.$type))},true);$c("ActiveRowIndexChangedEventArgs:nw","EventArgs",{_d:$m($$0.$aw.$type,null),_b:$m($$0.$aw.$type,null),init:function(a,b){$$0.$w.init.call(this);this._d=a;this._b=b},_oldActiveRowIndex:function(){return this._d},_newActiveRowIndex:function(){return this._b},$type:new $.ig.Type("ActiveRowIndexChangedEventArgs",$$0.$w.$type)},true);$c("SortConditionWrapper:nx","Object",{_f:0,_s:0,_x:0,_z:null,_d:0,_k:null,_ab:null,_ac:null,_a:null,_ae:null,_b:null,_c:null,init:function(a,b,c){this._ae=null;$.ig.$op.init.call(this);this._k=a;this._aj(b,c)},propertyChanged:null,_ak:function(a){switch(a){case"SortConditionType":switch(this._sortConditionTypeResolved()){case 0:case 1:case 2:case 3:switch(this._sortDirection()){case 2:this._sortDirection(0);break;case 3:this._sortDirection(1);break}break;case 4:break}this._k._cd(this);this._am();break;case"Column":this._k._cd(this);this._am();break}var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},toString:function(){return $6("{0} - {1}",this._w(),$$t.$ni.getBox(this._sortConditionTypeResolved()))},_aj:function(a,b){var $self=this;if(null==a){this._relativeColumnIndex(0);return}var c=null;var d=0;var e=a.getType();if(e==$$t.$nx._ai){var f=a;c=f.value();d=f.key().index()}else if(e==$$t.$nx._ah){var g=a;c=g.value();var h=g.key();d=h.index()}else{}var i=false;if(null!=c){var j=function(){var k=$$t.$nx._p().tryGetValue(c.getType(),$self._f);$self._f=k.p1;return k.ret}();if(!j){return}switch(this._f){case 1:{var k=$b($$a4.$ad6.$type,c);if(null!=k){this._z=k.fill()}else{}}break;case 2:{var l=$b($$a4.$ad7.$type,c);if(null!=l){this._z=l.fontColorInfo()}else{}}break;case 3:{var m=$b($$a4.$aea.$type,c);if(null!=m){var n=$$6.$w.a($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type),m.iconSet(),m._iconIndex$i());this._z=n}else{}}break;case 4:{var o=$b($$a4.$ad3.$type,c);if(null!=o){var p=new $$6.aj(0);var q=new $$6.aj(0);var r=new $$4.x(String,0);var t=o.list().getEnumerator();while(t.moveNext()){var s=t.current();if(p.c()>0){p.l(", ")}p.l(s);if(q.c()>0){q.x(0,", ")}q.x(0,s);r.add(s)}this._ab=p.toString();this._ac=q.toString();this._a=r.toArray();this._f=0;i=true}else{}}break;case 0:break;default:break}var t1=c.sortDirection();L0:while(true){switch(t1){case 0:this._d=i?2:0;break;case 1:this._d=i?3:1;break;default:t1=0;continue L0}break}}d+=b;this._relativeColumnIndex(d)},_ad:function(a){return a?this._ab:this._ac},_v:function(){return this._k._au()},_al:function(a,b){var c=a;var d=c+this._v();var e=this._s!=d;var f=this._x!=c;if(false==b&&false==f&&false==e){return}this._s=d;this._x=c;this._ak("Column");if(b||e){this._ak("AbsoluteColumnIndex")}if(b||f){this._ak("RelativeColumnIndex")}},_am:function(){this._k._b9(this);this._ak("ColorSortingCriteriaListItems")},_an:function(){switch(this._w()){case 0:this._sortByLabelText(this._k._sortByText());break;default:this._sortByLabelText(this._k._thenByText());break}},_clone:function(){var a=new $$t.nx(this._k,null,0);a._d=this._d;a._f=this._f;a._x=this._x;a._s=this._s;a._z=this._z;a._ab=this._ab;a._ac=this._ac;a._a=this._a;a._ae=this._ae;this._k._cd(a);return a},_getColorValueIndex:function(){var a=this._colorValue();var b=a==null;for(var c=0;c<this._colorSortingCriteriaListItems().count();c++){var d=this._colorSortingCriteriaListItems().item(c);var e=d.dataValue();var f=e==null;if(b){if(f){return c}else{continue}}if(e.equals(a)){return c}}return-1},_n:function(a,b){var c=this._l();switch(this._sortConditionTypeResolved()){case 0:a=new $$a4.aed(c);b=null;return{ret:true,p0:a,p1:b};case 1:var d=this._colorValue();if(null==d){var e=this._i()._fs("SpreadsheetSortDialogConditionTypes_FillSortCondition_DisplayText",[]);b=new $$t.n1(1,this,"Cell Color",this._i()._fs("SortDialog_SortConditionError_FieldCannotBeNull",[e]));a=null;return{ret:false,p0:a,p1:b}}a=new $$a4.ad6(d,c);b=null;return{ret:true,p0:a,p1:b};case 2:var f=this._colorValue();if($$a4.$ah.l_op_Equality(null,f)){var g=this._i()._fs("SpreadsheetSortDialogConditionTypes_FontColorSortCondition_DisplayText",[]);b=new $$t.n1(1,this,"Font Color",this._i()._fs("SortDialog_SortConditionError_FieldCannotBeNull",[g]));a=null;return{ret:false,p0:a,p1:b}}a=new $$a4.ad7(f,c);b=null;return{ret:true,p0:a,p1:b};case 3:var h=this._colorValue();if(null==h){var i=this._i()._fs("SpreadsheetSortDialogConditionTypes_IconSortCondition_DisplayText",[]);b=new $$t.n1(1,this,"Conditional Formatting Icon",this._i()._fs("SortDialog_SortConditionError_FieldCannotBeNull",[i]));a=null;return{ret:false,p0:a,p1:b}}a=new $$a4.aea(h._c,h._d,c);b=null;return{ret:true,p0:a,p1:b};case 4:a=new $$a4.ad3(c,this._a);b=null;return{ret:true,p0:a,p1:b};default:a=null;b=null;return{ret:false,p0:a,p1:b}}},_sortByLabelText:function(a){if(arguments.length===1){if($9(this._ae,a,0)==0){return}this._ae=a;this._ak("SortByLabelText");return a}else{return this._ae}},_l:function(){switch(this._d){case 0:case 2:return 0;case 1:case 3:return 1;default:return 0}},_i:function(){return this._k._e()},_p:function(){if(null==$$t.$nx._o){var a=$.ig.$ep.getValues($$t.$ni.$type).length;$$t.$nx._o=new $$4.h($$0.$bc.$type,$$t.$ni.$type,1,a);$$t.$nx._o.add($$a4.$aed.$type,0);$$t.$nx._o.add($$a4.$ad6.$type,1);$$t.$nx._o.add($$a4.$ad7.$type,2);$$t.$nx._o.add($$a4.$aea.$type,3);$$t.$nx._o.add($$a4.$ad3.$type,4)}return $$t.$nx._o},_absoluteColumnIndex:function(a){if(arguments.length===1){var b=a;var c=b-this._v();var d=this._s!=b;var e=this._x!=c;if(false==e&&false==d){return}this._s=b;this._x=c;this._ak("Column");if(d){this._ak("AbsoluteColumnIndex")}if(e){this._ak("RelativeColumnIndex")}return a}else{return this._s}},_colorSortingCriteriaListItems:function(){if(null==this._b){this._b=new $$t.oh($$t.$nk.$type,0);this._am()}return this._b},_colorValue:function(a){if(arguments.length===1){this._z=a;this._ak("ColorValue");return a}else{return this._z}},_w:function(){return this._k._sortConditionWrappers().indexOf(this)},_isActive:function(){return this._k._ae(this)},_relativeColumnIndex:function(a){if(arguments.length===1){this._al(a,false);return a}else{return this._x}},_sortDirection:function(a){if(arguments.length===1){if(a==this._d){return}this._d=a;this._ak("SortDirection");return a}else{return this._d}},_sortConditionType:function(a){if(arguments.length===1){if(a==4){a=0}this._f=a;this._ak("SortConditionType");return a}else{return this._f}},_sortConditionTypeResolved:function(){switch(this._f){case 0:switch(this._sortDirection()){case 0:case 1:break;case 2:case 3:return 4}break}return this._f},_sortDirectionsListItems:function(){if(null==this._c){this._c=new $$t.oh($$t.$nk.$type,0);this._k._cd(this)}return this._c},$type:new $.ig.Type("SortConditionWrapper",$.ig.$ot,[$$0.$b6.$type])},true);$c("SortOptionsDialogViewModel:ny","Object",{_a:null,_e:false,_b:0,init:function(a){$.ig.$op.init.call(this);if(a==null){throw new $$6.e(0,"sortDialogViewModel")}this._a=a;this._caseSensitive(this._a._caseSensitive());this._sortOrientation(this._a._sortOrientation())},propertyChanged:null,_j:function(a,b){return this._a._a8(a,b)},_applyOptions:function(){this._a._caseSensitive(this._caseSensitive());this._a._sortOrientation(this._sortOrientation())},_t:function(a){switch(a){}var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},_allowSortingLeftToRight:function(){return this._a._allowSortingLeftToRight()},_cancelButtonText:function(){return this._j("SortDialog_Cancel",[])},_caseSensitive:function(a){if(arguments.length===1){if(a==this._e){return}this._e=a;this._t("CaseSensitive");return a}else{return this._e}},_isSortingColumns:function(a){if(arguments.length===1){var b=a?1:0;if(this._b==b){return}this._sortOrientation(b);this._t("IsSortingColumns");return a}else{return this._sortOrientation()==1}},_isSortingRows:function(a){if(arguments.length===1){var b=a?0:1;if(this._b==b){return}this._sortOrientation(b);this._t("IsSortingRows");return a}else{return this._sortOrientation()==0}},_okButtonText:function(){return this._j("SortOptionsDialog_OK",[])},_sortOptionsDialogCaseSensitiveText:function(){return this._j("SortOptionsDialog_CaseSensitive",[])},_sortOptionsDialogCancelButtonText:function(){return this._j("SortOptionsDialog_Cancel",[])},_sortOptionsDialogSortLeftToRightText:function(){return this._j("SortOptionsDialog_SortLeftToRight",[])},_sortOptionsDialogSortTopToBottomText:function(){return this._j("SortOptionsDialog_SortTopToBottom",[])},_sortOptionsDialogTitle:function(){return this._j("SortOptionsDialog_Title",[])},_sortOptionsDialogOkButtonText:function(){return this._j("SortOptionsDialog_OK",[])},_sortOptionsDialogOrientationText:function(){return this._j("SortOptionsDialog_Orientation",[])},_sortOrientation:function(a){if(arguments.length===1){if(a==this._b){return}this._b=a;this._t("SortOrientation");return a}else{return this._b}},$type:new $.ig.Type("SortOptionsDialogViewModel",$.ig.$ot,[$$0.$b6.$type])},true);$c("SortDialogViewModel:nz","Object",{_d:null,_n:null,_ad:false,_c:0,_q:null,_i:null,_aq:null,_aw:$m($$0.$aw.$type,null),_ai:false,_ag:false,_j:null,_l:null,_al:false,_aa:false,_o:0,_s:false,_a2:null,_a:null,_am:null,_ao:null,_r:null,init:function(a,b,c){this._n=new $$a4.l0;this._aw=$m($$0.$aw.$type,null);this._ai=true;this._ag=false;this._j=new $$a4.l0;this._l=new $$a4.l0;this._al=true;this._aa=false;$.ig.$op.init.call(this);if(b==null){throw new $$6.e(0,"sortTarget")}this._d=a;this._c=b.a;this._r=c;switch(this._c){case 0:case 1:case 2:this._n=b.d;this._ad=b.f;this._q=null;this._i=b.b;break;case 3:this._q=b.e;this._n=b.d;this._i=this._q.worksheet();break}this._bt()},_activeRowIndexChanged:null,propertyChanged:null,_v:function(a,b){var c=a==null;var d=b==null;if(c&&d){return true}if(c!=d){return false}return a.equals(b)},_h:function(a){var b=$b($$6.$d.$type,a);if(null!=b){var c=this._e()._fs("SortDialog_SortConditionError_DuplicateItemSorted",[]);return new $$t.n1(0,c)}return new $$t.n1(0,a.message())},_br:function(a){if(null!=this._aq){var b=this._aq;b.collectionChanged=$.ig.Delegate.prototype.remove(b.collectionChanged,this._b4.runOn(this))}this._aq=new $$4.f($$t.$nx.$type,0);var c=this._aq;c.collectionChanged=$.ig.Delegate.prototype.combine(c.collectionChanged,this._b4.runOn(this));if(null!=a){var e=a.getEnumerator();while(e.moveNext()){var d=e.current();var f=this._at();var g=new $$t.nx(this,d,f);if(this._af(g)){this._aq.add(g)}}}if(this._aq.count()==0){this._addNewSortCondition()}this._activeRowIndex($m($$0.$aw.$type,0))},_bs:function(){var a;if(null==this._ao){this._ao=new $$4.f($$t.$nk.$type,0)}var b=$.ig.$ep.getValues($$t.$ni.$type);var c="SpreadsheetSortDialogConditionTypes_{0}_DisplayText";for(var e=0;e<b.length;e++){var d=b[e];if(d==4){continue}var f=$6(c,$$t.$ni.$getName(d));var g=this._d._fs(f,[]);a=new $$t.nk($$t.$ni.getBox(d),g);this._ao.add(a)}},_at:function(){switch(this._c){case 0:break;case 1:var a=this._au();var b=this._av(this._i.sortSettings().region()._h());var c=b-a;return c;case 3:break}return 0},_bt:function(){switch(this._c){case 1:{var a=this._i.sortSettings();this._o=a.sortType();this._s=true;this._ag=this._o==0?this._ad:false;this._aa=a.caseSensitive();this._br(a.sortConditions())}break;case 0:{this._o=0;this._s=true;this._ag=this._o==0?this._ad:false;this._aa=false;this._br(null)}break;case 2:{var b=this._i.filterSettings().sortSettings();this._o=0;this._s=false;this._ag=true;this._aa=b.caseSensitive();this._br(b.sortConditions())}break;case 3:{var c=this._q.sortSettings();this._o=0;this._s=false;this._n=this._q._bs()._h();this._ag=true;this._aa=c.caseSensitive();this._br(c.sortConditions())}break;default:return}this._ca();this._cc()},_bw:function(a,b){this._b1(a,b)},_g:function(){var a=this._activeRowIndex();if(a.hasValue()){return this._sortConditionWrappers().__inner[a.value()]}return null},_a6:function(a){if(a.isAutomatic()){return $$t.$dy.dl(this._d,"SortDialog_Text_Automatic",[])}var b=a._getResolvedColor1(this._d.workbook());return this._a7(b)},_a7:function(a){return $$t.$dy.dl(this._d,"SortDialog_Color_RGB",[a.o(),a.n(),a.m()])},_au:function(){var a=this._k()._isValid()?this._k():this._m();return this._av(a)},_av:function(a){switch(this._o){case 1:return a._firstRowIndex();case 0:return a._firstColumnIndex();default:return a._firstColumnIndex()}},_a8:function(a,b){var c=this._d._fs(a,b);c=$$t.$dy.c5(c);return c},_ay:function(a,b,c){switch(c){case 0:case 4:throw new $$6.f(0);case 1:{var d=this._i.rows()._aj(a);var e=this._i._getCellConditionalFormat1(a,b);if(e!=null&&e.cellFormat()!=null&&e.cellFormat().fill()!=null){return e.cellFormat().fill()}else{var f=this._i._b4(d,b);var g=f._ar();if(null==g){return $$a4.$ab.noColor()}var h=$b($$a4.$ac.$type,g);if(null!=h&&0==h.patternStyle()){return $$a4.$ab.noColor()}return g}}case 2:{var i=this._i.rows()._aj(a);var j=this._i._getCellConditionalFormat1(a,b);if(j!=null&&j.cellFormat()!=null&&j.cellFormat().font()!=null&&$$a4.$ah.l_op_Inequality(j.cellFormat().font().colorInfo(),null)){return j.cellFormat().font().colorInfo()}else{var k=this._i._b4(i,b);var l=k._bh();var m=this._i.workbook();var n=$$a4.$ah.automatic()._getResolvedColor1(m);var o=l._getResolvedColor1(m);if($$a.$ax.b(n,o)||$$a.$ax.c($m($$a.$ax.$type,null),$m($$a.$ax.$type,o))){return $$a4.$ah.automatic()}else{return l}}}case 3:{var p=this._i._getCellConditionalFormat1(a,b);if(p!=null){var q=p.iconInfo();if(null!=q){var r=$m($$0.$aw.$type,q.iconIndex());var s=q.iconSet();if(r.hasValue()&&r.value()<0){return $$t.$dy.d4}var t=$$6.$w.a($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type),s,r);return t}}return $$t.$dy.d4}default:return null}},_az:function(a){switch(a){case 0:case 4:throw new $$6.f(0);case 1:{return $$a4.$ab.noColor()}case 2:{return $$a4.$ah.automatic()}case 3:{return $$t.$dy.d4}default:return null}},_a9:function(a){if(null==a){return String.empty()}var b=this._d.workbook();var c=null;var d=$b($$a4.$ab.$type,a);if(null!=d){if(d==$$a4.$ab.noColor()){return $$t.$dy.dl(this._d,"SortDialog_CellFill_NoColor",[])}if($b($$a4.$af.$type,d)!==null||$b($$a4.$ae.$type,d)!==null){return $$t.$dy.dl(this._d,"SortDialog_CellFill_Gradient",[])}var e=$b($$a4.$ac.$type,d);if(null!=e){c=e.backgroundColorInfo()}}if($$a4.$ah.l_op_Equality(null,c)){c=$b($$a4.$ah.$type,a)}if($$a4.$ah.l_op_Inequality(null,c)){return this._a6(c)}var f=$b($$6.$u.$type.specialize($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type)),a);if(null!=f){var g=f._d;if(g.hasValue()){return" "}else{return this._d._fs("SortDialog_ConditionalFormatIcon_NoCellIcon",[])}}return String.empty()},_ae:function(a){var b=this._activeRowIndex();if(false==b.hasValue()){return false}var c=a._w();if(c<0||c>=this._sortConditionWrappers().count()){return false}return c==b.value()},_af:function(a){switch(this._c){case 0:break;case 1:var b=a._absoluteColumnIndex();switch(this._sortOrientation()){case 1:if(b<this._n._firstRowIndex()||b>this._n._lastRowIndex()){return false}break;case 0:if(b<this._n._firstColumnIndex()||b>this._n._lastColumnIndex()){return false}break}break;case 3:break}return true},_ac:function(){return this._activeRowIndex().hasValue()},_bx:function(a,b){this._sortConditionWrappers().insert(a,b)},_by:function(a){var b=a?this._canMoveUp():this._canMoveDown();var c=a?-1:1;if(b){var d=this._activeRowIndex().value();var e=d+c;var f=this._g();this._sortConditionWrappers().remove(f);this._sortConditionWrappers().insert(e,f);this._activeRowIndex($m($$0.$aw.$type,e))}else{var g=a?"CanMoveUp":"CanMoveDown"}},_b3:function(a,b){var c=this._activeRowIndex();this._activeRowIndex(a);if(b&&$j(c,a)){this._bw(c,this._activeRowIndex())}},_b5:function(a,b,c,d){var e;if(d<c.count()){e=c.item(d);e.dataValue(a);e.displayText(b)}else{e=new $$t.nk(a,b);c.add(e)}},_b6:function(){var b=this._sortConditionWrappers().getEnumerator();while(b.moveNext()){var a=b.current();a._am()}},_b7:function(){var b=this._sortConditionWrappers().getEnumerator();while(b.moveNext()){var a=b.current();this._cd(a)}},_b9:function(a){var b=a._sortConditionTypeResolved();switch(b){case 4:case 0:return}var c=a._absoluteColumnIndex();var d;var e=a._colorSortingCriteriaListItems();e.clear();var f=new $$4.q($.ig.$op.$type,0);switch(this._o){case 1:{var g=c;var h=this._k()._firstColumnIndex();var i=this._k()._lastColumnIndex();for(var j=h;j<=i;j++){var k=this._ay(g,j,b);if(false==f.contains(k)){f.add(k);var l=this._a9(k);d=new $$t.nk(k,l);e.add(d)}}}break;case 0:{if(this._k()._isValid()){var m=c;var n=this._k()._firstRowIndex();
var o=this._k()._lastRowIndex();var p=o-n+1;for(var q=n;q<=o;q++){var r=this._ay(q,m,b);if(false==f.contains(r)){f.add(r);var s=this._a9(r);d=new $$t.nk(r,s);if($b($$a4.$ah.$type,d.dataValue())!==null&&d.dataValue().isAutomatic()){e.insert(0,d)}else{e.add(d)}}}}else{var t=this._az(b);f.add(t);var u=this._a9(t);d=new $$t.nk(t,u);e.add(d)}}break;default:break}var v=false;var x=e.getEnumerator();while(x.moveNext()){var w=x.current();if($$t.$nz._v(a._colorValue(),w.dataValue())){v=true;break}}if(false==v){a._colorValue(null)}},_b8:function(){var a;if(null==this._am){this._am=new $$4.f($$t.$nk.$type,0)}var b;switch(this._sortOrientation()){case 1:b="SortDialog_SortDirectionLeftOrRight_{0}";break;case 0:b="SortDialog_SortDirectionTopOrBottom_{0}";break;default:b="SortDialog_SortDirectionTopOrBottom_{0}";break}var c=0;var d=$$t.$nj.getBox(c);var e=$6(b,d.toString());var f=this._d._fs(e,[]);if(this._am.count()>=1){a=this._am.__inner[0];a.displayText(f)}else{a=new $$t.nk(d,f);this._am.add(a)}c=1;d=$$t.$nj.getBox(c);e=$6(b,d.toString());f=this._d._fs(e,[]);if(this._am.count()>=2){a=this._am.__inner[1];a.displayText(f)}else{a=new $$t.nk(d,f);this._am.add(a)}},_ca:function(){var a;switch(this._sortOrientation()){case 1:a="SortDialog_Row_ColumnHeader";break;case 0:a="SortDialog_Column_ColumnHeader";break;default:a="SortDialog_Column_ColumnHeader";break}this._columnColumnHeaderText(this._a8(a,[]))},_cb:function(a){var b;if(null==this._a){this._a=new $$t.oh($$t.$nk.$type,0)}else{if(false==a){this._a.clear();var d=this._sortConditionWrappers().getEnumerator();while(d.moveNext()){var c=d.current();c._al(0,true)}}}switch(this._o){case 1:{var e=this._k();var f=e._firstColumnIndex();var g=e._firstRowIndex();var h=e._lastRowIndex();var i=h-g+1;for(var j=g;j<=h;j++){var k=$$a4.$zf.x(j,false,this._i.workbook().currentFormat(),1,false,this._i.workbook().cellReferenceMode());k=$5(k,"$",String.empty());var l=this._d._fs("SortDialog_RowName",[k]);b=new $$t.nk(j,l);this._a.add(b)}}break;case 0:{var m=this._myDataHasHeadersResolved()?this._m():this._k();var n=m._firstRowIndex();var o=m._firstColumnIndex();var p=m._lastColumnIndex();var q=p-o+1;var r=this._i.rows()._aj(n);for(var s=o;s<=p;s++){var t;if(this._myDataHasHeadersResolved()&&null!=r){t=$$t.$dy.dj(r,s)}else{var u=$$a4.$zf.w(s,false,16384,-1,false,this._i.workbook().cellReferenceMode());u=$5(u,"$",String.empty());t=this._d._fs("SortDialog_ColumnName",[u])}var v=s-o;if(v<this._a.count()){b=this._a.__inner[v];b.dataValue(s);b.displayText(t)}else{b=new $$t.nk(s,t);this._a.add(b)}}}break;default:break}},_cc:function(){switch(this._c){case 1:case 0:{var t1=this._sortOrientation();L0:while(true){switch(t1){case 1:this._myDataHasHeadersEnabled(false);break;case 0:this._myDataHasHeadersEnabled(true);break;default:t1=0;continue L0}break}}break;case 2:case 3:this._myDataHasHeadersEnabled(false);break;default:return}},_cd:function(a){var b;var c;var d;var e=a._sortDirectionsListItems();var f=this._sortOrientation()==0;var g=$$t.$dy.l(this._i,this._j,a._relativeColumnIndex(),f);var h;var t1=g;L0:while(true){switch(t1){case 1:case 3:case 2:h=$6("SortDialog_SortDirection_{0}_{1}",$$t.$e7.$getName(g),"{0}");break;case 0:default:t1=1;continue L0}break}b=0;c=$$t.$nj.getBox(b);var i=$6(h,c.toString());d=this._d._fs(i,[]);this._b5(c,d,e,0);b=1;c=$$t.$nj.getBox(b);i=$6(h,c.toString());d=this._d._fs(i,[]);this._b5(c,d,e,1);if(4==a._sortConditionTypeResolved()){c=$$t.$nj.getBox(2);d=a._ad(true);this._b5(c,d,e,2);c=$$t.$nj.getBox(3);d=a._ad(false);this._b5(c,d,e,3)}else{while(e.count()>2){e.removeAt(2)}}},_ce:function(){if(false==this._al){return}var a=this._n;switch(this._c){case 1:case 0:{var b=a._firstRowIndex();if(this._ad){if(a._firstRowIndex()!=0){b--}else{}}this._l=new $$a4.l0(1,b,b,a._firstColumnIndex(),a._lastColumnIndex());switch(this._sortOrientation()){case 0:var c;if(this._ad){c=this._ag?a._firstRowIndex():b}else{c=this._ag?a._firstRowIndex()+1:a._firstRowIndex()}this._j=new $$a4.l0(1,c,a._lastRowIndex(),a._firstColumnIndex(),a._lastColumnIndex());break;case 1:this._j=new $$a4.l0(1,b,a._lastRowIndex(),a._firstColumnIndex(),a._lastColumnIndex());break}}break;case 2:{var d=this._i.filterSettings();var e=d.sortAndFilterAreaRegion();this._j=e!=null?e._h():$$a4.$l0._b;var f=d.region()._h();this._l=new $$a4.l0(1,f._firstRowIndex(),f._firstRowIndex(),f._firstColumnIndex(),f._lastColumnIndex())}break;case 3:{this._j=this._q.dataAreaRegion()._h();this._l=this._q.headerRowRegion()._h()}break;default:break}if(this._r!=null){this._r(this._j)}this._al=false},_addNewSortCondition:function(){var a=new $$t.nx(this,null,0);this._sortConditionWrappers().add(a);this._activeRowIndex($m($$0.$aw.$type,this._sortConditionWrappers().count()-1));return a},_u:function(a){var b=this._sortConditionWrappers();var c;switch(this._c){case 2:{var d=this._i.filterSettings().sortSettings();d.caseSensitive(this._caseSensitive());var e=new $$4.x($$4.$u.$type.specialize($$a4.$hs.$type,$$a4.$aee.$type),0);var g=b.getEnumerator();while(g.moveNext()){var f=g.current();var h=new $$a4.hs(f._relativeColumnIndex());if(false==function(){var i=f._n(c,a);c=i.p0;a=i.p1;return i.ret}()){return{ret:false,p0:a}}e.add(new $$4.u($$a4.$hs.$type,$$a4.$aee.$type,1,h,c))}if(e.count()>0){try{d.sortConditions().clear();d.sortConditions().addRange(e)}catch(i){a=this._h(i);return{ret:false,p0:a}}}a=null;return{ret:true,p0:a}}case 0:case 1:{var j=this._i.sortSettings();j.caseSensitive(this._caseSensitive());j.sortType(this._sortOrientation());j._setRegion(this._k().toString());var k=new $$4.x($$4.$u.$type.specialize($$a4.$hs.$type,$$a4.$aee.$type),0);var m=b.getEnumerator();while(m.moveNext()){var l=m.current();var n=new $$a4.hs(l._relativeColumnIndex());if(false==function(){var o=l._n(c,a);c=o.p0;a=o.p1;return o.ret}()){return{ret:false,p0:a}}k.add(new $$4.u($$a4.$hs.$type,$$a4.$aee.$type,1,n,c))}if(k.count()>0){try{if(j.sortConditions()!=null){j.sortConditions().clear()}j.sortConditions().addRange(k)}catch(o){a=this._h(o);return{ret:false,p0:a}}}a=null;return{ret:true,p0:a}}case 3:{var p=this._q.sortSettings();p.caseSensitive(this._caseSensitive());var q=new $$4.x($$4.$u.$type.specialize($$a4.$h8.$type,$$a4.$aee.$type),0);var s=b.getEnumerator();while(s.moveNext()){var r=s.current();var t=this._q.columns()._item(r._relativeColumnIndex());if(false==function(){var u=r._n(c,a);c=u.p0;a=u.p1;return u.ret}()){return{ret:false,p0:a}}q.add(new $$4.u($$a4.$h8.$type,$$a4.$aee.$type,1,t,c))}if(q.count()>0){try{p.sortConditions().clear();p.sortConditions().addRange(q)}catch(u){a=this._h(u);return{ret:false,p0:a}}}a=null;return{ret:true,p0:a}}default:a=null;return{ret:false,p0:a}}},_copyActiveCondition:function(){var a=this._g();if(null!=a){var b=this._sortConditionWrappers().__inner[this._aw.value()];if(null!=b){var c=b._clone();var d=this._activeRowIndex().value()+1;this._bx(d,c);this._b3($m($$0.$aw.$type,d),true)}}else{}},_deleteActiveSortCondition:function(){if(this._ac()){var a=this._sortConditionWrappers();var b=this._activeRowIndex().value();var c=$m($$0.$aw.$type,b);a.removeAt(b);if(this._aq.count()==0){c=$m($$0.$aw.$type,null)}else if($j(this._aq.count(),c)){c.postDecrement()}this._b3(c,true)}else{}},_moveActiveRowDown:function(){this._by(false)},_moveActiveRowUp:function(){this._by(true)},_myDataHasHeadersResolved:function(){switch(this._c){case 1:case 0:{var t1=this._sortOrientation();L0:while(true){switch(t1){case 1:return false;case 0:return this._myDataHasHeaders();default:t1=0;continue L0}break}}case 2:case 3:return this._myDataHasHeaders();default:return this._myDataHasHeaders()}},_b1:function(a,b){if(null!=this._activeRowIndexChanged){var c=new $$t.nw(a,b);this._activeRowIndexChanged(this,c)}this._b2("ActiveRowIndex")},_b2:function(a){switch(a){case"SortOrientation":this._al=true;this._cb(false);this._ca();this._b8();this._cc();this._b7();this._b6();break;case"MyDataHasHeaders":this._cb(true);break}var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},_k:function(){this._ce();return this._j},_m:function(){this._ce();return this._l},_e:function(){return this._d},_activeRowIndex:function(a){if(arguments.length===1){var b=this._aw;var c=a;if($j(b,c)){return}this._aw=a;this._bw(b,c);return a}else{return this._aw}},_addLevelButtonText:function(){return this._a8("SortDialog_AddLevel",[])},_allowSortingLeftToRight:function(){return this._s},_cancelButtonText:function(){return this._a8("SortDialog_Cancel",[])},_canCopyLevel:function(){return this._ac()},_canDeleteLevel:function(){return this._ac()},_canMoveDown:function(){if(false==this._ac()){return false}return this._activeRowIndex().value()<this._sortConditionWrappers().count()-1},_canMoveUp:function(){if(false==this._ac()){return false}return this._activeRowIndex().value()>0},_caseSensitive:function(a){if(arguments.length===1){if(a==this._aa){return}this._aa=a;return a}else{return this._aa}},_columnColumnHeaderText:function(a){if(arguments.length===1){if($9(this._a2,a,0)==0){return}this._a2=a;this._b2("ColumnColumnHeaderText");return a}else{return this._a2}},_colorSortDirectionListItems:function(){if(null==this._am){this._b8()}return this._am},_copyLevelButtonText:function(){return this._a8("SortDialog_CopyLevel",[])},_deleteLevelButtonText:function(){return this._a8("SortDialog_DeleteLevel",[])},_headerNamesListItems:function(){if(null==this._a){this._cb(false)}return this._a},_moveDownButtonToolTipText:function(){return this._a8("SortDialog_MoveDown",[])},_moveUpButtonToolTipText:function(){return this._a8("SortDialog_MoveUp",[])},_myDataHasHeaders:function(a){if(arguments.length===1){this._ag=a;this._al=true;this._b2("MyDataHasHeaders");return a}else{return this._ag}},_myDataHasHeadersEnabled:function(a){if(arguments.length===1){if(a==this._ai){return}this._ai=a;this._b2("MyDataHasHeadersEnabled");return a}else{return this._ai}},_myDataHasHeadersText:function(){return this._a8("SortDialog_MyDataHasHeaders",[])},_okButtonText:function(){return this._a8("SortDialog_OK",[])},_optionsText:function(){return this._a8("SortDialog_Options",[])},_orderColumnHeaderText:function(){return this._a8("SortDialog_Order_ColumnHeader",[])},_sortByText:function(){return this._a8("SortDialog_SortBy_Label",[])},_sortConditionTypesListItems:function(){if(null==this._ao){this._bs()}return this._ao},_sortConditionWrappers:function(){return this._aq},_sortDialogTitle:function(){return this._a8("SortDialog_Title",[])},_sortOnColumnHeaderText:function(){return this._a8("SortDialog_SortOn_ColumnHeader",[])},_sortOptionsDialogCaseSensitiveText:function(){return this._a8("SortOptionsDialog_CaseSensitive",[])},_sortOptionsDialogCancelButtonText:function(){return this._a8("SortOptionsDialog_Cancel",[])},_sortOptionsDialogSortLeftToRightText:function(){return this._a8("SortOptionsDialog_SortLeftToRight",[])},_sortOptionsDialogSortTopToBottomText:function(){return this._a8("SortOptionsDialog_SortTopToBottom",[])},_sortOptionsDialogTitle:function(){return this._a8("SortOptionsDialog_Title",[])},_sortOptionsDialogOkButtonText:function(){return this._a8("SortOptionsDialog_OK",[])},_sortOptionsDialogOrientationText:function(){return this._a8("SortOptionsDialog_Orientation",[])},_sortOrientation:function(a){if(arguments.length===1){if(a==this._o){return}this._o=a;this._b2("SortOrientation");return a}else{return this._o}},_thenByText:function(){return this._a8("SortDialog_ThenBy_Label",[])},_b4:function(a,b){switch(b.action()){case 1:if(b.oldStartingIndex()==0&&this._aq.count()>0){this._aq.__inner[0]._an()}break;case 0:var d=b.newItems().getEnumerator();while(d.moveNext()){var c=d.current();var e=c;e._an()}if(b.newStartingIndex()==0&&this._aq.count()>1){this._aq.__inner[1]._an()}break}},$type:new $.ig.Type("SortDialogViewModel",$.ig.$ot,[$$0.$b6.$type])},true);$c("SortDialogViewModel_ApplySortErrorInfo:n1","Object",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this._c=b},init1:function(a,b,c,d){$.ig.$op.init.call(this);this._a=b;this._d=c;this._c=d},_a:null,_d:null,_c:null,b:function(){return null!=this._a?this._a._w():-1},$type:new $.ig.Type("SortDialogViewModel_ApplySortErrorInfo",$.ig.$ot)},true);$c("ISpreadsheetDialogFontsService:na","Object",{$type:new $.ig.Type("ISpreadsheetDialogFontsService",null)},true);$c("SpreadsheetDialogFontsService:nu","Object",{init:function(){$.ig.$op.init.call(this)},getFontNames:function(){return new $$4.x(String,1,["Arial","Arial Black","Bookman","Calibri","Comic Sans MS","Courier","Courier New","Garamond","Georgia","Helvetica","Impact","Palatino","Times","Times New Roman","Trebuchet MS","Verdana"])},getFontSizes:function(){return function(){var $ret=new $$4.x($$0.$aw.$type,0);$ret.add(8);$ret.add(9);$ret.add(10);$ret.add(11);$ret.add(12);$ret.add(14);$ret.add(16);$ret.add(18);$ret.add(20);$ret.add(22);$ret.add(24);$ret.add(26);$ret.add(28);$ret.add(36);$ret.add(48);$ret.add(72);return $ret}()},getHighlightColors:function(){return function(){var $ret=new $$4.x($$a.$ax.$type,0);$ret.add($$a4.$afr.o());$ret.add($$a4.$afr.g());$ret.add($$a4.$afr.u());$ret.add($$a4.$afr.f());$ret.add($$a4.$afr.o());$ret.add($$a4.$afr.o());$ret.add($$a4.$afr.o());$ret.add($$a4.$afr.o());return $ret}()},$type:new $.ig.Type("SpreadsheetDialogFontsService",$.ig.$ot,[$$t.$na.$type])},true);$c("ISpreadsheetDialogServicesManager:m4","Object",{$type:new $.ig.Type("ISpreadsheetDialogServicesManager",null)},true);$c("SpreadsheetDialogServicesManager:nv","Object",{init:function(){$.ig.$op.init.call(this)},a:null,fontsService:function(){if(null==this.a){this.a=new $$t.nu}return this.a},$type:new $.ig.Type("SpreadsheetDialogServicesManager",$.ig.$ot,[$$t.$m4.$type])},true);$c("CellDropDown:b0","Object",{a:null,d:null,init:function(a){$.ig.$op.init.call(this);this.a=a},b:function(){if(this.d!=null){if($$t.$dy.bi(this.d)){return true}var a=this.d.getNativeElement();if(a!=null){var b=$(a);var c=b.selectmenu("menuWidget");if(c!=null){if($$t.$dy.bh(c[0])){return true}}}}return false},e:function(){if(this.d!=null){$(this.d.getNativeElement()).selectmenu("close")}},c:function(a,b,c,d,e){var $self=this;this.e();if(this.a._fa()==null){return false}var f=this.a._n(a);if(f==null||c.count()==0){return false}var g=this.a._fa();var h=document.createElement("select");for(var i=0;i<c.count();i++){var j=document.createElement("option");j.innerText=c.__inner[i];if(i==d){j.selected=true}h.appendChild(j)}h.style.zIndex=1e4;h.style.position="relative";var k=f.a7.getWrapper(h);f.a7.append(k);var l=$.ig.truncate(b.right());var m=$.ig.truncate(b.bottom());var n=$(h);var o=this.a._bh().a7.rootWrapper().getNativeElement();var p=null;n.selectmenu({appendTo:$(o),width:b.width(),position:{my:"right top",at:"left+"+l+" top+"+m,of:$(f.a7.rootWrapper().getNativeElement()),collision:"fit"},select:function(q,r){var s=r.item.index;$self.e();e(s)},close:function(q,r){$self.d=null;p.unbind("blur");p.unbind("keydown");if($self.a._v().hasKeyboardFocusWithin()){$self.a._v().focus()}n.selectmenu("destroy");n.remove()}});p=n.selectmenu("menuWidget");p.bind("blur",function(q){$self.e()});p.bind("keydown",function(q){var r=$.ig.BaseDOMEventProxy.prototype.cz(q);if(r==8){n.selectmenu("close")}q.stopPropagation()});n.selectmenu("widget").css("display","none").css("height","0px");var q=this.a.workbook()._ca()._defaultElement()._cq();var r=Math.max(1,$$a4.$n._es(q)*a.columnScrollRegion()._bx());p.css("font-size",r+"pt");var s=p[0];while(s.parentNode!=null&&s.parentNode!=o){s=s.parentNode}if(s!=null){$(s).css("z-index",1e4)}this.d=k;n.selectmenu("open");p.focus();return true},$type:new $.ig.Type("CellDropDown",$.ig.$ot)},true);$c("ISpreadsheetDialog:b2","Object",{$type:new $.ig.Type("ISpreadsheetDialog",null)},true);$c("IgDialogWrapper:b1","Object",{b:null,c:0,init:function(a){$.ig.$op.init.call(this);this.b=a},closing:null,closed:null,close:function(a){this.c++;try{$(this.b).igDialog("close")}finally{this.c--}},e:function(a,b){if(b.action=="close"){var c=this.closing;if(c!=null){var d=new $$6.ag(0);c(this,d);if(d.cancel()&&this.c==0){return false}}}return null},d:function(a,b){var $self=this;if(b.action=="close"){window.setTimeout(function(){var c=$self.closed;if(c!=null){c($self,$$0.$w.empty)}$($self.b).igDialog("destroy");if($self.b.parentNode!=null){$self.b.parentNode.removeChild($self.b)}},0)}return null},a:function(a,b,c){var d=new $$t.b1(a);var e=$(a);e.igDialog({modal:true,headerText:b,resizable:c,stateChanging:d.e.runOn(d),stateChanged:d.d.runOn(d),width:null});return d},$type:new $.ig.Type("IgDialogWrapper",$.ig.$ot,[$$t.$b2.$type])},true);$c("SpreadsheetCellEditManager:e0","Object",{f:null,a:null,h:null,m:null,n:null,w:null,u:null,s:null,j:null,ak:0,y:false,init:function(a){this.h=new $$t.dz;this.m=new $$t.d1;this.n=new $$t.d1;this.y=false;$.ig.$op.init.call(this);$$ak.$c.y(a);this.f=a},ad:function(){},ae:function(){},i:function(){return this.h},x:function(){return this.w},l:function(){return this.j},o:function(){return this.m},p:function(){return this.n},c:function(){return this.a},ai:function(){},t:function(){return this.s},v:function(){return this.u},g:function(){return this.f},al:function(){},ab:function(a){},b:function(){},at:function(a,b,c,d){},an:function(){var a=String.empty();var b=this.g()._a8();if(b!=null){var c=null;var d=this.g()._am()._c();c=b._fk(d);if(c!=null){var e=b._bc();var f=e.rows().item(d.row());var g=e._b4(f,d.column());a=function(h){return h!=null?h:String.empty()}($$t.$dy.di(c,e,g))}}return a},e:function(){},ao:function(a){if(this.f.isInEditMode()){this.f.cellEditMode(a?1:2)}},aq:function(){},au:function(){},ay:function(a,b){this.f.activeSelectionCellRangeFormat()._u(b)},az:function(){if(this.a!=null&&!this.f._dh()){this.a._m(false);this.f._dr(true);this.f._ge()}},z:function(a,b,c,d,e){try{this.f._hc(true);return this.aa(a,b,c,d,e)}finally{this.f._hc(false)}},aa:function(a,b,c,d,e){if(!this.af(1,true,false,true)){return false}this.f._v().verifyLayout();if(this.f.isInEditMode()){return false}if(this.f._bd()!=null&&!this.f._cx(false,false,false)){return false}if(!this.ai()){return false}var f=this.f._a8();if(f==null){return false}var g=f.getCellRange(a);var h=f._e1(g);if($$t.$dz.l_op_Equality_Lifted(h,$m($$t.$dz.$type,null))){return false}var i=f._ar(h.value());if(i==null){return false}if(!this.ab(i)){return false}this.f.selectionMode(0);this.f.isInEndMode(false);f._b2(i,h.value(),true);this.aq();if(this.g().isInEditMode()){return false}if(f._bc().isProtected()&&f._bc().protection().selectionMode()==2){return false}var j=g._c();var k=new $$t.f4(j);this.f._h3(k);if(k.cancel()){return false}if(this.f._a8()._br(a)==false){return false}if(this.g().isInEditMode()){return false}if(false==d&&!this.f._v().focus()){return false}if(this.a==null){this.a=this.b()}this.h=j;this.m=f.getCellRange(a);this.n=this.m;this.w=(f._a8(a)||$$a4.$ab._createSolidFill1($$a4.$k.gx(255,255,255)))._c(f._bc().workbook());this.u=f;this.s=i;this.j=this.k(f,j);this.f.isInEditMode(true);if(this.j.a.r()==false&&this.j.b._a4()==6&&this.n.lastColumn()<this.j.a.x){this.n=new $$t.d1(this.n.firstRow(),this.n.firstColumn(),this.n.lastRow(),this.j.a.x)}this.ak=NaN;i._al(true);this.ao(b);this.ay(a,this.a);this.at(c,b,d,e);this.f._ge();this.f._h2(new $$t.f5(j));return true},ac:function(a){},k:function(a,b){return a._s(b)},af:function(a,b,c,d){try{this.f._hc(true);return this.ag(a,b,c,d)}finally{this.f._hc(false)}},ag:function(a,b,c,d){if(!this.g().isInEditMode()){if(this.f._bd()!=null){return this.f._cx(a==0,b,false)}return true}if(this.y){return false}var e=this.h;var f=this.d();var g=f!=null?f.unformattedText():null;var h=a!=0;var i=new $$t.f2(e,h,(!b),g);this.f._h5(i);if(i.canCancel()&&i.cancel()){return false}if(i.acceptChanges()!=h){if(!i.acceptChanges()){a=0}else{a=1}}var j;try{this.y=true;j=this.q(a,b,d)}finally{this.y=false}if(!b&&(j&1)==1){if((j&2)==2&&this.f.cellEditMode()==1){this.f._cz(151,null,null)}return false}this.f.isInEditMode(false);this.ay(e,null);this.f.cellEditMode(0);this.f._ds(true);this.f._ge();this.f._h4(new $$t.f3(e));if(c&&(j&4)==4){return false}return true},ah:function(a,b){},d:function(){if(!this.f.isInEditMode()){return null}return this.e()},am:function(){if(this.f.isInEditMode()==false){return NaN}if($.ig.util.isNaN(this.ak)){this.ak=this.al()}return this.ak},ap:function(){},ar:function(){},as:function(){this.ak=NaN;this.f._ge()},av:function(){if(!this.g().isInEditMode()){if(false==this.z(this.g().activeCell(),false,null,true,false)){this.g()._v().focus()}}else{this.ao(false)}},aw:function(a,b){},ax:function(){if(this.a!=null){this.a._o()}},a0:function(){},aj:function(){if(this.f.isInEditMode()&&this.u!=null&&this.u._bc()._d6()){var a=this.u._bc().dataValidationRules()._e($$t.$dy.a1(this.h.row(),this.h.column()));if(a!=null&&a._k()!=0){return true}}return false},q:function(a,b,c){var $self=this;if(!this.f.isInEditMode()){return 0}var d=0;if(a!=0){var e=this.f;var f=this.u._bc();var g=this.h;var h=function(i,j,k,l){var m=$self.aj();var n=1;var o=function(){n=j();if(n==2){var p=f._bi(g.row(),g.column());if(p!=null){d|=2;var q=new $$t.f6(g,p,b);q.action(p.showErrorMessageForInvalidValue()?0:3);e._h6(q);switch(q.action()){case 3:break;case 2:n=0;break;case 1:n=1;break;case 0:n=$self.r(n,p);break}if(n==0){d|=4}if(n!=2){throw new $$t.ef}}}};e._gi(i,o,l,false,k,true,m);return n};var i=new $$t.eq(this.u,this.s,this.h,this.f.isFixedDecimalEnabled(),this.f.fixedDecimalPlaceCount(),this.f._dz.runOn(this.f),h);var j=this.d();if(j!=null){var k=i.e(a,j,b==false,j.unformattedText(),this.j.c);if(k==1&&!b){return d|=1}if(k==2&&f._fd().count()>0&&f._bi(g.row(),g.column())==null){if(f._ei(g.row(),g.column())){if(this.u!=null){this.u._g0()}}}}}var l=this.s;this.w=null;this.j=null;this.s=null;this.u=null;l._al(false);this.au();if(c){this.f._v().focus()}return d},r:function(a,b){var c=String.isNullOrEmpty(b.errorMessageTitle())?String.empty():b.errorMessageTitle();var d=!String.isNullOrEmpty(b.errorMessageDescription());var e=$6(d?"CustomValidation{0}Message":"DefaultValidation{0}Message",$$a4.$bg.$getName(b.errorStyle()));var f=d?this.f._fs(e,[b.errorMessageDescription()]):this.f._fs(e,[]);switch(b.errorStyle()){case 2:if(2==this.f._v().showMessageBox(f,c,1,64,1)){a=0}break;case 1:var g=this.f._v().showMessageBox(f,c,3,48,7);if(g==2){a=0}else if(g==7){a=1}break;default:case 0:if(2==this.f._v().showMessageBox(f,c,1,16,1)){a=0}else{a=1}break}return a},$type:new $.ig.Type("SpreadsheetCellEditManager",$.ig.$ot)},true);$c("JsCellEditManager:b3","SpreadsheetCellEditManager",{init:function(a){$$t.$e0.init.call(this,a)},ad:function(){return true},ae:function(){return true},ai:function(){return!this.g().isDisabled()},a1:function(a,b){a.cg(b.a.e);a.ck(b.a.f);a.dg(new $$a.ah(1,b.a.y,b.a.ac,b.a.z,b.a.v));a.ci(new $$t.oo(b.b));a.c6(this.v()._zoomLevel());a.dc($$a4.$k.ak(b.a.ar)?b.b._bh()._getResolvedColor1(this.g().workbook()):b.a.ar)},at:function(a,b,c,d){var e=this.g()._ay();this.a1(e,this.l());if(!c){this.g()._v().focus()}if(a!=null){var f=this.g()._m();if(a==e.c9()){}else if(f!=null&&f==e&&f.a7!=null){var g=function(h){return h!=null?h:""}(e.c9()).length;$$t.$dy.bk(e.a7.rootWrapper().getNativeElement(),0,g);this.g()._bj().ai(a)}else{e.c9(a)}}else if(false==d){var h=true;var i=this.g()._bh().d5.ci.cf;if(i.a7!=null&&$$t.$dy.a5(i,document.activeElement)){h=false}if(e.a7!=null&&h){var j=function(k){return k!=null?k:""}(e.c9()).length;$$t.$dy.bk(e.a7.rootWrapper().getNativeElement(),j,j)}}},aq:function(){},ab:function(a){this.g()._at().n(false);return this.g()._bh()!=null},al:function(){var a=this.g()._ay();var b=a.c9();var c=this.v()._zoomLevel();var d=a.dg()._c+a.dg()._d;var e=this.g()._a0().i(b,a.ci(),a.dg(),c);e-=d;e/=c;e+=d;return e},b:function(){return null},ac:function(a){var b=$$t.$dy.dg(a);var c=this.g()._ay();if(b!=null&&c!=null){try{if(document.queryCommandSupported&&!document.queryCommandSupported(b)){return false}if(a==150){return true}if(typeof document.queryCommandEnabled==="function"){return document.queryCommandEnabled(b)}}catch(d){}}return true},au:function(){this.ap()},e:function(){var a=String.empty();if(this.g()._ay()!=null){a=this.g()._ay().c9()}return new $$t.b4(a,this.l().b)},ah:function(a,b){if(!this.g().isInEditMode()){return false}var c=$$t.$dy.dg(a);if(c==null){return false}try{switch(a){case 149:this.g()._ga();break;case 148:this.g()._ga();this.g()._bj().ai(null);break;case 150:var d=$$t.$n.e();if(d!=null&&d.getDataPresent($$a.$i.d)){this.g()._bj().ai(d.getData($$a.$i.d))}break;default:document.execCommand(c);break}}catch(e){}return true},ap:function(){var a=this.g()._ay();if(a!=null){var b=this.g()._am()._c();var c=this.g()._a8();var d=c._s(b);if(this.g().isInEditMode()&&this.l()!=null){this.a1(a,d)}else{a.c9($$t.$dy.di(c._fk(b),c._bc(),d.b))}a.cv(true)}},ar:function(){},aw:function(a,b){},a0:function(){var a=this.g()._bh();if(a==null){return}var b=a.d5.ci.cf;var c=this.g()._ay();var d;if(this.g().isInEditMode()&&c!=null){if(this.g()._m()==b){d=b.co()}else{d=c.c9()}}else{d=this.an()}b.co(d)},$type:new $.ig.Type("JsCellEditManager",$$t.$e0.$type)},true);$c("ISpreadsheetEditorValue:ej","Object",{$type:new $.ig.Type("ISpreadsheetEditorValue",null)},true);$c("SpreadsheetEditorValue:b4","Object",{b:null,a:null,init:function(a,b){$.ig.$op.init.call(this);this.b=a;this.a=b},editCellFormat:function(){return this.a},unformattedText:function(){return this.b},createDocument:function(){return null},$type:new $.ig.Type("SpreadsheetEditorValue",$.ig.$ot,[$$t.$ej.$type])},true);$c("SpreadsheetMenuBuilder$1:h0","Object",{$t:null,c:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this.c=a},af:function(a){return a},w:function(a){},x:function(a){},aq:function(a){},ab:function(a){},l:function(a,b,c){},m:function(a,b,c){},d:function(a,b,c){},n:function(a){},e:function(a,b){return this.n(a)},az:function(a,b){},a0:function(a){},o:function(){},p:function(a,b){},q:function(a){},bb:function(a,b){},r:function(a){},bc:function(a,b){},s:function(a){},bd:function(a,b){},v:function(a){},be:function(a,b){},as:function(a,b){var c;switch(b){case 4:case 0:case 1:c=$$t.$hy.$getName(b);break;default:case 5:case 3:case 2:return this.ar(a,this.c.activeCell())}var d;switch(a){case 153:d="ShiftDown";break;case 152:d="ShiftRight";break;case 147:case 146:d="Column";break;case 144:case 145:d="Row";break;case 155:d="ShiftUp";break;case 154:d="ShiftLeft";break;default:d=$$t.$ea.$getName(a);break}return this.af(this.ay("MenuItem_"+c+"_"+d))},ar:function(a,b){var c;switch(a){case 189:return this.af($$t.$dy.de(this.c,b));case 187:return this.af($$t.$dy.dn(true,this.c,b));case 186:return this.af($$t.$dy.dn(false,this.c,b));case 203:c="MenuItem_Sort_Custom";break;case 190:c="MenuItem_ReapplyFilter";break;case 100:c="MenuItem_InsertWorksheets";break;case 89:case 91:c="MenuItem_Hide";break;case 90:case 92:c="MenuItem_Unhide";break;case 94:c="MenuItem_AutoFit_Columns";break;case 93:c="MenuItem_AutoFit_Rows";break;case 145:case 147:c="MenuItem_Insert";break;case 144:case 146:c="MenuItem_Delete";break;default:c="MenuItem_"+$$t.$ea.$getName(a);break}return this.af(this.ay(c))},at:function(a){var b;switch(a){case 0:b="MenuItem_Insert";break;case 1:b="MenuItem_Delete";break;case 11:b="MenuItem_SortByCellColorHeader";break;case 2:case 3:case 4:case 5:case 9:case 8:case 6:case 7:case 10:case 12:case 13:case 14:case 15:case 16:case 17:b="MenuItem_"+$$t.$hy.$getName(a);break;default:b="";break}return this.af(this.ay(b))},av:function(a){if($$a4.$ah.l_op_Equality(a,null)||a.isAutomatic()){return this.c._fs("MenuItem_Automatic",[])}var b=a._getResolvedColor1(this.c.workbook());return this.ax(b)},ax:function(a){return this.c._fs("MenuItem_ColorValue",[a.o(),a.n(),a.m()])},au:function(a){if(a==null||a==$$a4.$ab.noColor()){return this.ay("MenuItem_NoFill")}var b=$b($$a4.$ac.$type,a);if(b!=null){if(b.patternStyle()==0){return this.ay("MenuItem_NoFill")}else if(b.patternStyle()==1){return this.av(b.backgroundColorInfo())}else{return this.av(b.patternColorInfo())}}return this.ay("MenuItem_GradientFill")},aw:function(a){var b=$$t.$dy.ap(a);if(b==-1){return this.ay("MenuItem_NoIcon")}return this.ay("Icon_"+$$a4.$cc.$getName(b))},ay:function(a){var b=this.c._fs(a,[]);return b},k:function(a,b){},i:function(a,b){return this.k(this.af(this.c._fs("MenuItem_Filter_"+$$a4.$yo.$getName(a),[])),this.ao(a))},ao:function(a){return"Op"+"_"+$$a4.$yo.$getName(a)},j:function(a,b,c){return this.k(this.af(this.c._fs("MenuItem_Filter_"+$$a4.$yq.$getName(a)+"_"+$$a4.$yr.$getName(b),[])),this.ap(a,b))},ap:function(a,b){return"RelDate"+"_"+$$a4.$yq.$getName(a)+"_"+$$a4.$yr.$getName(b)},h:function(a,b,c){var d;switch(a){default:case 1:d=this.af(this.c._fs("MenuItem_Filter_QuarterNumber",[b]));break;case 0:d=$$t.$dy.dk(b,this.c.workbook()._e6());break}return this.k(d,this.an(a,b))},an:function(a,b){return"DatePeriod"+"_"+$$a4.$yn.$getName(a)+"_"+b.toString()},g:function(a,b){return this.k(this.af(this.c._fs("MenuItem_Filter_"+$$t.$hz.$getName(a),[])),this.am(a))},am:function(a){return"CustomFilter"+"_"+$$t.$hz.$getName(a)},f:function(a){return this.k(this.ar(a,this.c.activeCell()),"Action"+"_"+$$t.$ea.$getName(a))},a:function(){var a=new Array(0);var b=[this.p(11,a),this.p(12,a),this.p(13,a),this.o(),this.f(203)];var c=[this.p(15,a),this.p(16,a),this.p(17,a)];var d=[this.i(0,7),this.i(1,7),this.o(),this.i(6,7),this.i(8,7),this.o(),this.i(10,7),this.i(11,7),this.o(),this.g(0,7)];var e=[this.i(0,6),this.i(1,6),this.o(),this.i(2,6),this.i(3,6),this.i(4,6),this.i(5,6),this.g(1,6),this.o(),this.g(2,6),this.g(3,6),this.g(4,6),this.o(),this.g(0,6)];var f=[this.i(0,8),this.o(),this.g(5,8),this.g(6,8),this.g(1,8),this.o(),this.j(0,2,8),this.j(0,1,8),this.j(0,0,8),this.o(),this.j(1,2,8),this.j(1,1,8),this.j(1,0,8),this.o(),this.j(2,2,8),this.j(2,1,8),this.j(2,0,8),this.o(),this.j(3,2,8),this.j(3,1,8),this.j(3,0,8),this.o(),this.j(4,2,8),this.j(4,1,8),this.j(4,0,8),this.o(),this.g(7,8),this.o(),this.p(9,[this.h(1,1,9),this.h(1,2,9),this.h(1,3,9),this.h(1,4,9),this.o(),this.h(0,1,9),this.h(0,2,9),this.h(0,3,9),this.h(0,4,9),this.h(0,5,9),this.h(0,6,9),this.h(0,7,9),this.h(0,8,9),this.h(0,9,9),this.h(0,10,9),this.h(0,11,9),this.h(0,12,9)]),this.o(),this.g(0,8)];return[this.f(187),this.f(186),this.p(10,b),this.o(),this.f(189),this.p(14,c),this.p(7,d),this.p(6,e),this.p(8,f)]},a1:function($tArg,a,b,c,d,e,f){this.a0(a);var g=0;var h=new $$4.x($tArg,0);c(function(i){h.add(i)});if(h==null){h.add(f)}var j=h.getEnumerator();while(j.moveNext()){var i=j.current();var k=e(i);var l=d(b,k,i);if(k){g++}this.az(a,l)}this.bc(a,h.count()>1||g>0)},b:function(a){switch(a){case 7:{var b=[this.e(174,0),this.e(175,0),this.e(176,0),this.e(177,0)];var c=[this.e(178,1),this.e(179,1)];var d=[this.e(180,4),this.e(181,4),this.e(182,4)];var e=[this.e(189,3),this.e(190,3),this.o(),this.e(191,3),this.e(192,3),this.e(193,3),this.e(194,3)];var f=[this.e(187,2),this.e(186,2),this.e(195,2),this.e(196,2),this.e(197,2),this.e(203,2)];var g=[this.e(183,5),this.e(184,5)];return[this.n(148),this.n(149),this.n(150),this.o(),this.p(0,b),this.p(1,c),this.p(4,d),this.n(79),this.o(),this.p(2,f),this.p(3,e),this.p(5,g),this.o(),this.n(198),this.n(202),this.n(164),this.n(165)]}case 2:{var h=[this.e(152,0),this.e(153,0),this.e(145,0),this.e(147,0)];var i=[this.e(154,1),this.e(155,1),this.e(144,1),this.e(146,1)];var j=[this.e(189,3),this.e(190,3),this.o(),this.e(191,3),this.e(192,3),this.e(193,3),this.e(194,3)];var k=[this.e(187,2),this.e(186,2),this.e(195,2),this.e(196,2),this.e(197,2),this.e(203,2)];return[this.n(148),this.n(149),this.n(150),this.o(),this.p(0,h),this.p(1,i),this.n(79),this.o(),this.p(3,j),this.p(2,k),this.o(),this.n(198),this.n(202),this.n(164),this.n(165)]}case 0:return[this.n(148),this.n(149),this.n(150),this.o(),this.n(147),this.n(146),this.n(79),this.o(),this.n(198),this.n(89),this.n(90),this.n(94),this.o(),this.n(165)];case 5:return[this.n(148),this.n(149),this.n(150)];case 4:return[this.n(148),this.n(149),this.n(150)];
case 1:return[this.n(148),this.n(149),this.n(150),this.o(),this.n(145),this.n(144),this.n(79),this.o(),this.n(198),this.n(91),this.n(92),this.n(93),this.o(),this.n(165)];case 6:return[this.n(148),this.n(149),this.n(150),this.o(),this.n(198),this.n(156),this.n(157),this.n(79),this.o(),this.n(165)];case 3:return[this.n(100),this.n(114),this.n(113),this.o(),this.n(111),this.o(),this.n(112)]}return null},z:function(a){if(!String.isNullOrEmpty(a)&&a.startsWith("CustomFilter")){var b=$.ig.util.stringSplit(a,["_"],0);if(b.length>0&&b[0]=="CustomFilter"){return $m($$t.$hz.$type,$g($.ig.$ep.parse($$t.$hz.$type,b[1],true)))}}return this.$type.getStaticFields($$t.$h0.$type).ad},aa:function(a){if(a!=null&&a.startsWith("Op")){var b=$.ig.util.stringSplit(a,["_"],0);if(b.length>0&&b[0]=="Op"){return $m($$a4.$yo.$type,$g($.ig.$ep.parse($$a4.$yo.$type,b[1],true)))}}return this.$type.getStaticFields($$t.$h0.$type).ae},y:function(a){var b=this.x(a);if($l(b,null)){return $m($$t.$ea.$type,b.value())}var c=this.aq(a);if(c!=null&&c.indexOf("_")>0){if(c.startsWith("Action")&&c.length>"Action".length+1){var d=c.substr("Action".length+1);var e;if(function(){var f=$.ig.$ep.tryParse$1($$t.$ea.$type,d,true,e);e=f.p2;return f.ret}()){return $m($$t.$ea.$type,e)}}}return this.$type.getStaticFields($$t.$h0.$type).ac},a4:function(a){var b=this.c._bp($$t.$on.a(),null);var c=new $$t.h1(this.$t);c.d=b;c.c=this.c.activeCell();c.e=this.c.activeTable();c.a=0;c.f=null;this.a5(a,c)},a2:function(a,b){var c=this.c._bp($$t.$on.a(),b);var d=$$t.$dy.x(this.c.activeWorksheet(),b.row(),b.column());var e=d.a();if(e==0){e=1}var f=new $$t.h1(this.$t);f.c=b;f.e=$b($$t.$ge.$type,d)!==null?d.ah.table():null;f.a=e;f.d=c;f.f=b.toString();f.b=d;if(d.g()){var g=null;var h=$b($$a4.$yf.$type,d.b());var i=$b($$a4.$zd.$type,d.b());var j=$b($$a4.$y6.$type,d.b());var k=$b($$a4.$yh.$type,d.b());var l=$b($$a4.$ye.$type,d.b());var m=$b($$a4.$y7.$type,d.b());if(i!=null){g=this.am(7)}else if(l!=null){g=this.am(l.type()==0?3:4)}else if(k!=null){g=this.an(k.type(),k.value())}else if(j!=null){g=this.ap(j.duration(),j.offset())}else if(m!=null){g=this.am(2)}else if(h!=null){if(h.condition1()!=null){if(h.condition2()!=null){if(h.condition1().comparisonOperator()==3&&h.condition2().comparisonOperator()==4){g=this.am(1)}}else{g=this.ao(h.condition1().comparisonOperator())}}if(g==null){g=this.am(0)}}f.g=g}this.a5(a,f)},a3:function(a,b,c){var d=this.c._cq(b,c.f,c.d,true);var e=true;switch(b){case 164:case 165:case 112:e=d;break;case 99:case 100:e=this.c.allowAddWorksheet();break;case 114:e=this.c.allowDeleteWorksheet();break;case 189:this.be(a,this.ar(b,c.c));break;case 187:case 186:var f=c.a==0?this.ar(b,c.c):this.af($$t.$dy.dm(b==187,this.c,c.a));this.be(a,f);var g=false;if(c.b!=null){var h=0;var j=c.b.p().getEnumerator();while(j.moveNext()){var i=j.current();var k=$b($$a4.$aed.$type,i);if(k!=null){var l=k.sortDirection()==0;var m=b==187;if(l==m){g=true}}h++}if(h>1){g=false}}this.bb(a,g);break}this.bc(a,d);this.bd(a,e)},a5:function(a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=this.x(c);if($l(e,null)){this.a3(c,e.value(),b)}else{var f=this.aq(c);if(f!=null&&f.indexOf("_")>0){if(f.startsWith("Action")&&f.length>"Action".length+1){var g=f.substr("Action".length+1);var h;if(function(){var i=$.ig.$ep.tryParse$1($$t.$ea.$type,g,true,h);h=i.p2;return i.ret}()){this.a3(c,h,b)}}else if(f.startsWith("CustomFilter")||f.startsWith("DatePeriod")||f.startsWith("Op")||f.startsWith("RelDate")){this.bc(c,0==(b.d.i&64));this.bb(c,f==b.g)}}}var i=this.w(c);if(i!=null){this.a5(i,b);var j=this.ab(c);if($l(j,null)){var k=b.a;switch(j.value()){case 6:this.bd(c,k==0||k==3);break;case 7:this.bd(c,k==0||k==1);break;case 8:this.bd(c,k==0||k==2);break;case 10:case 14:{var l=false;var n=i.getEnumerator();while(n.moveNext()){var m=n.current();if(!this.v(m)&&this.r(m)){l=true;break}}this.bc(c,l);break}case 11:this.a1($$a4.$ab.$type,c,false,b.b.ac.runOn(b.b),this.d.runOn(this),b.b.k.runOn(b.b),$$a4.$ab.noColor());break;case 12:this.a1($$a4.$ah.$type,c,false,b.b.ad.runOn(b.b),this.l.runOn(this),b.b.l.runOn(b.b),$$a4.$ah.automatic());break;case 13:this.a1($$6.$u.$type.specialize($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type)),c,false,b.b.af.runOn(b.b),this.m.runOn(this),b.b.m.runOn(b.b),$$t.$dy.d4);break;case 15:this.a1($$a4.$ab.$type,c,true,b.b.ac.runOn(b.b),this.d.runOn(this),b.b.h.runOn(b.b),$$a4.$ab.noColor());break;case 16:this.a1($$a4.$ah.$type,c,true,b.b.ad.runOn(b.b),this.l.runOn(this),b.b.i.runOn(b.b),$$a4.$ah.automatic());break;case 17:this.a1($$6.$u.$type.specialize($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type)),c,true,b.b.af.runOn(b.b),this.m.runOn(this),b.b.j.runOn(b.b),$$t.$dy.d4);break}if(this.t(j.value())&&this.s(c)){var o=false;var q=i.getEnumerator();while(q.moveNext()){var p=q.current();if(this.q(p)){o=true;break}}if(o==false&&b.g!=null){switch(j.value()){case 7:case 8:case 6:var r=this.am(0);var t=i.getEnumerator();while(t.moveNext()){var s=t.current();if(this.s(s)&&r==this.aq(s)){this.bb(s,true);o=true;break}}break}}this.bb(c,o)}}}this.ba(c)}},t:function(a){switch(a){case 9:case 8:case 3:case 15:case 14:case 16:case 17:case 6:case 2:case 11:case 10:case 12:case 13:case 7:return true;default:return false}},a7:function(a,b){this.c._cz(a,b,null)},a8:function(a,b){var c=$g($.ig.$ep.parse($$t.$ea.$type,a,true));this.a7(c,b)},u:function(a){if(!String.isNullOrEmpty(a)){var b=$.ig.util.stringSplit(a,["_"],0);switch(b[0]){case"Action":case"Op":case"RelDate":case"DatePeriod":case"CustomFilter":return true}}return false},a6:function(a,b,c){var d=$$t.$dy.x(this.c.activeWorksheet(),c.row(),c.column());var e=a?43:34;this.c._gi(e,function(){if($b($$a4.$ab.$type,b)!==null){var f=b;if(a){if(d.h(f)){d.n()}else{d.t(f)}}else{d.ag(new $$a4.ad6(f))}}else if($b($$a4.$ah.$type,b)!==null){var g=b;if(a){if(d.i(g)){d.n()}else{d.v(g)}}else{d.ag(new $$a4.ad7(g))}}else if($b($$6.$u.$type.specialize($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type)),b)!==null){var h=b;if(a){if(d.j(h)){d.n()}else{d.w(h._c,h._d)}}else{d.ag(new $$a4.aea(h._c,h._d))}}else{}},null,false,null,true,false)},a9:function(a,b){if(!String.isNullOrEmpty(a)){var c=$.ig.util.stringSplit(a,["_"],0);var d=$$t.$dy.x(this.c.activeWorksheet(),b.row(),b.column());if(c.length>0){switch(c[0]){case"Action":this.a8(c[1],b);break;case"Op":var e=$g($.ig.$ep.parse($$a4.$yo.$type,c[1],true));this.bf(d,e);break;case"RelDate":var f=$g($.ig.$ep.parse($$a4.$yq.$type,c[1],true));var g=$g($.ig.$ep.parse($$a4.$yr.$type,c[2],true));var h=$b($$a4.$y6.$type,d.b());if(h!=null&&h.duration()==f&&h.offset()==g){d.n()}else{d.x(g,f)}break;case"DatePeriod":var i=$g($.ig.$ep.parse($$a4.$yn.$type,c[1],true));var j=$$0.$aw.parseInt(c[2]);var k=$b($$a4.$yh.$type,d.b());if(k!=null&&k.type()==i&&k.value()==j){d.n()}else{d.u(i,j)}break;case"CustomFilter":var l=$g($.ig.$ep.parse($$t.$hz.$type,c[1],true));switch(l){case 0:this.bf(d,13);break;case 5:this.bf(d,4);break;case 6:this.bf(d,2);break;case 1:this.bf(d,12);break;case 3:var m=$b($$a4.$ye.$type,d.b());if(m!=null&&m.type()==0){d.n()}else{d.s(0)}break;case 4:var n=$b($$a4.$ye.$type,d.b());if(n!=null&&n.type()==1){d.n()}else{d.s(1)}break;case 2:this.bg(d);break;case 7:var o=$b($$a4.$zd.$type,d.b());if(o!=null){d.n()}else{d.z()}break}break}}}},ba:function(a){},bf:function(a,b){var c=$b($$t.$ge.$type,a);if(c!=null){this.c.showFilterDialogForTable(c.ah,b)}else{var d=$b($$t.$gd.$type,a);if(d!=null){this.c.showFilterDialogForWorksheet(d.ai,b)}}},bg:function(a){var b=$b($$t.$ge.$type,a);if(b!=null){this.c.showTopOrBottomDialogForTable(b.ah)}else{var c=$b($$t.$gd.$type,a);if(c!=null){this.c.showTopOrBottomDialogForWorksheet(c.ai)}}},bh:function(a){var b=null;var c=null;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();var f=this.v(d);var g=this.s(d);if(!g){if(f){if(b!=null&&c==null){c=d}}}else if(f){if(c!=null&&this.s(c)){this.bd(c,false)}c=d;b=null}else{if(c!=null&&!this.s(c)){this.bd(c,true)}c=null;b=d;var h=this.w(d);if(h!=null){this.bh(h)}}}if(c!=null){this.bd(c,false)}},$type:new $.ig.Type("SpreadsheetMenuBuilder$1",$.ig.$ot,null,function(){this.ad=$m($$t.$hz.$type,null);this.ae=$m($$a4.$yo.$type,null);this.ac=$m($$t.$ea.$type,null)})},true);$c("JsSpreadsheetMenuBuilder:b6","SpreadsheetMenuBuilder$1",{staticInit:function(){var a=false;var b=$.ui.version;if(!String.isNullOrEmpty(b)){var c=b.split(".");if(c!=null&&c.length>1){var d,e;if(function(){var f=$z(c[0],d);d=f.p1;return f.ret}()&&function(){var f=$z(c[1],e);e=f.p1;return f.ret}()){a=d<1||d==1&&e<=10}}}$$t.$b6.bk=a},init:function(a){$$t.$h0.init.call(this,$$1.$i.$type,a)},br:function(a,b,c){$(a.getNativeElement()).data(b,c)},az:function(a,b){var c=this.bm(a);if(c!=null){c.append(b)}},a0:function(a){var b=this.bm(a);if(b!=null){b.removeChildren()}},af:function(a){return $$t.$dy.c5(a)},d:function(a,b,c){var d=$$t.$dy.bc(c)?null:$$t.$dy.ch(this.c,c,60,16,$$t.$b6.bj);d=this.bn(d);var e=this.bl(this.au(c),null,d,b);$$t.$b6.br(e,"filterColor",$$6.$w.a($$0.$aq.$type,$.ig.$op.$type,a,c));return e},e:function(a,b){var c=this.as(a,b);var d=this.bl(c,$$t.$ea.$getName(a).toLowerCase(),null,false);d.setProperty("id",$$t.$ea.$getName(a));return d},k:function(a,b){var c=this.bl(a,b.toString().toLowerCase(),null,false);c.setProperty("id",b);return c},l:function(a,b,c){var d=$$a4.$ah.l_op_Equality(c,null)||c.isAutomatic()?null:$$t.$dy.cj(this.c,c,60,16,$$t.$b6.bj);d=this.bn(d);var e=this.bl(this.av(c),null,d,b);$$t.$b6.br(e,"filterColor",$$6.$w.a($$0.$aq.$type,$.ig.$op.$type,a,c));return e},m:function(a,b,c){var d=$$t.$dy.ci(this.c,$$t.$dy.ap(c),16,16);d=this.bn(d);var e=this.bl(this.aw(c),null,d,b);$$t.$b6.br(e,"filterColor",$$6.$w.a($$0.$aq.$type,$.ig.$op.$type,a,c));return e},n:function(a){var b=this.ar(a,this.c.activeCell());var c=this.bl(b,$$t.$ea.$getName(a).toLowerCase(),null,false);c.setProperty("id",$$t.$ea.$getName(a));return c},bl:function(a,b,c,d){var e=this.c._fb("li");var f;if(a=="-"){e.setProperty("innerText",a);return e}if($$t.$b6.bk){f=this.c._fb("a");f.setAttribute("href","#")}else{f=this.c._fb("div")}var g=null;if(!String.isNullOrEmpty(b)){g="ui-icon ui-igspreadsheet-"+b+"-icon"}else if(d){g="ui-icon ui-icon-check"}if(g!=null){var h=this.c._fb("span");h.setProperty("className",g);f.append(h)}if(c!=null){f.append(c)}var i=this.c._fb("span");i.setProperty("id","caption");i.setText(a);f.append(i);e.append(f);return e},o:function(){return this.bl("-",null,null,false)},p:function(a,b){var c=this.at(a);var d=this.bl(c,null,null,false);d.setProperty("id","SubItem_"+$$t.$hy.$getName(a));var e=this.c._fb("ul");for(var f=0;f<b.length;f++){e.append(b[f])}d.append(e);return d},x:function(a){var b=a.getProperty("id");var c;if(String.isNullOrEmpty(b)||!function(){var d=$.ig.$ep.tryParse$1($$t.$ea.$type,b,false,c);c=d.p2;return d.ret}()){return this.$type.getStaticFields($$t.$h0.$type).ac}return $m($$t.$ea.$type,c)},bm:function(a){var b=a.getChildCount();for(var c=0;c<b;c++){var d=a.getChildAt(c);if(!$.ig.util.stringCompare1(d.getProperty("tagName"),"ul",1)){return d}}return null},aq:function(a){return a.getProperty("id")},q:function(a){var b=a.findByClass("ui-icon");var c=b!=null&&b.length==1?b[0]:null;if(c!=null){return!c.getProperty("className").contains("ui-icon-check")}return false},r:function(a){return!a.getProperty("className").contains("ui-state-disabled")},s:function(a){return a.getStyleProperty("display")!="none"},w:function(a){var b=a.getChildCount();if(b>0){var c=a.getChildAt(b-1);if(c.getProperty("nodeName")=="UL"){return $$t.$dy.bv(c)}}return $$t.$b6.bi},ab:function(a){var b=a.getProperty("id");var c;if(String.isNullOrEmpty(b)||!b.startsWith("SubItem_")||b.equals("SubItem_")||!function(){var d=$.ig.$ep.tryParse$1($$t.$hy.$type,b.substr("SubItem_".length),false,c);c=d.p2;return d.ret}()){return $$t.$b6.bo}return $m($$t.$hy.$type,c)},bn:function(a){if(a!=null){a.setRawStyleProperty("vertical-align","middle");a.setRawStyleProperty("margin-right","5px")}return a},v:function(a){if($$t.$b6.bk){return a.getProperty("innerText")=="-"}var b=a.getChildCount();return b>0&&a.getChildAt(0).getProperty("innerText")=="-"},be:function(a,b){var c=a.querySelectorAll("#caption");if(c!=null){c[0].setText(b)}},bb:function(a,b){var c=a.findByClass("ui-icon");var d=c!=null&&c.length==1?c[0]:null;if(d!=null){if(!d.getProperty("className").contains("ui-igspreadsheet-")){if(b){d.addClass("ui-icon-check")}else{d.removeClass("ui-icon-check")}}}},bc:function(a,b){if(b){a.removeClass("ui-state-disabled")}else{a.addClass("ui-state-disabled")}},bd:function(a,b){a.setRawStyleProperty("display",b?"":"none")},$type:new $.ig.Type("JsSpreadsheetMenuBuilder",$$t.$h0.$type.specialize($$1.$i.$type))},true);$c("DropDownItem:u","Object",{j:null,a:false,b:false,init:function(){this.a=true;this.b=true;$.ig.$op.init.call(this)},_l:null,c:function(){return this.j!=null&&this.j.count()>0},_n:null,_d:false,_e:false,f:function(a){if(arguments.length===1){this.a=a;return a}else{return this.a}},g:function(){return this._p=="-"},h:function(a){if(arguments.length===1){this.b=a;return a}else{return this.b}},k:function(){if(this.j==null){this.j=new $$4.x($$t.$u.$type,0)}return this.j},_i:false,_p:null,_m:null,$type:new $.ig.Type("DropDownItem",$.ig.$ot)},true);$c("SpreadsheetText:je","Object",{init:function(){$.ig.$op.init.call(this)},b:function(){},c:function(){},a:function(){return false},$type:new $.ig.Type("SpreadsheetText",$.ig.$ot)},true);$c("JsSpreadsheetText:b8","SpreadsheetText",{init:function(){$$t.$je.init.call(this)},e:0,f:0,g:null,d:false,equals:function(a){var b=$b($$t.$b8.$type,a);return b!=null&&b.g==this.g&&b.e==this.e&&b.f==this.f},b:function(){return this.e},c:function(){return this.f},$type:new $.ig.Type("JsSpreadsheetText",$$t.$je.$type)},true);$c("SpreadsheetTabEditManager:e2","Object",{a:null,d:false,init:function(a){$.ig.$op.init.call(this);this.a=a},i:function(){},j:function(){return this.d},b:function(){return this.a},c:function(){return this.a._bf()._p()},e:function(){var $self=this;if(!this.a._d7(true)){return false}if(!this.i()){return false}var a=$$5.$e.ag($$t.$k2.$type,this.a._bf()._tabs(),function(b){return b._j()==$self.a.activeWorksheet()});if(a==null||!this.f(a)){return false}this.a._bf()._a7(a);this.m(a,a._j().name(),31);if(this.c()!=null){this.o()}return this.c()!=null},f:function(a){},g:function(a,b,c){if(this.d){return false}this.d=true;this.a._hc(true);try{return this.h(a,b,c)}finally{this.a._hc(false);this.d=false}},h:function(a,b,c){if(this.c()==null){return true}var d=this.c();var e=this.l();var f=d._j();if(!a){try{$$a4.$jk._aw(e,"name")}catch(g){if(b){return this.h(true,true,c)}this.o();if(this.k(d)==false){var h=new $$t.kx(3,this.a._fs("SheetNameError_Message_Invalid",[e]),g,e,false);this.a._dz(h)}return false}try{if(f.workbook()!=null){f.workbook()._jh(f,e,"value")}}catch(i){if(b){return this.h(true,true,c)}this.o();if(this.k(d)==false){var j=new $$t.kx(4,this.a._fs("SheetNameError_Message_NameIsUsed",[e]),i,e,false);this.a._dz(j)}return false}}if(this.c()==d){this.n(d,c);this.a._bf()._a8();if(!a){f.name(e)}}return this.c()==null},l:function(){},m:function(a,b,c){},n:function(a,b){},o:function(){},k:function(a){},$type:new $.ig.Type("SpreadsheetTabEditManager",$.ig.$ot)},true);$c("JsTabEditManager:b9","SpreadsheetTabEditManager",{init:function(a){$$t.$e2.init.call(this,a)},i:function(){return true},f:function(a){return true},p:function(a){if(a!=null){var b=a._ac();if(b!=null){if(b.cn!=null){return b.cn}return b.cm.getChildAt(0)}}return null},l:function(){var a=this.p(this.c());return a!=null?a.getProperty("value"):""},m:function(a,b,c){var $self=this;var d=a._ac();var e=d.a7.createElement("input");d.cn=e;e.setProperty("type","text");e.setProperty("minlength",1);e.setProperty("maxlength",c);e.setProperty("value",b);e.setAttribute("tabIndex",0);e.setRawStyleProperty("width",this.b()._a0().j(a,b,true)+"px");e.listen("input",function(f){var g=function(h){return h!=null?h:""}($self.l());d.cl=$self.b()._a0().j(a,g,false);d.q(true);d.__parent.cf.aj();var h=$self.b()._a0().j(a,g,true);if(h<3){h=3}e.setRawStyleProperty("width",h+"px")});d.cm.setText("");d.cm.append(e);e.focus(false)},n:function(a,b){var c=this.p(a);if(c!=null){c.unlistenAll();c.remove()}var d=a._ac();d.cn=null;$$t.$dt.ba(d.cm,a._name());d.cw=-1;if(d.__parent!=null){d.__parent.cf.aj()}if(!b){this.b()._v().focus()}},k:function(a){return false},o:function(){var a=this.p(this.c());if(a!=null){var b=a.getNativeElement();var c=a.getProperty("value");var d=c.length;$$t.$dy.bk(b,0,d);a.focus(false)}},q:function(){if(this.c()!=null&&!this.j()){var a=this.p(this.c());if(a!=null){a.focus(false)}}},$type:new $.ig.Type("JsTabEditManager",$$t.$e2.$type)},true);$c("VisualElement:au","Object",{bc:0,ax:0,a2:0,av:0,a3:0,h:null,bv:null,a7:null,ap:null,__parent:null,aq:null,a8:0,ar:null,bx:null,init:function(a,b){this.bc=16|8|8192|32768;$.ig.$op.init.call(this);this.__parent=a;this.bx=b;if(a!=null){if(a.aq==null){a.aq=new $$4.x($$t.$au.$type,0)}a.aq.add(this);this.b1();a.t(true)}},a9:function(){return this.aq!=null?this.aq.count():0},i:function(){return(this.bc&131072)!=0},bw:function(a){if(arguments.length===1){if(a!=this.bv){this.bv=a;this.bc|=1024;this.b1()}return a}else{return this.bv}},j:function(a){if(arguments.length===1){if(a){this.b1()}else{this.bc&=~32768}return a}else{return(this.bc&32768)!=0}},n:function(a){if(arguments.length===1){this.b9(4096,a);return a}else{return(this.bc&4096)!=0}},o:function(a){if(arguments.length===1){this.b9(16384,a);return a}else{return(this.bc&16384)!=0}},k:function(a){if(arguments.length===1){this.b9(1024,a);return a}else{return(this.bc&1024)!=0}},l:function(a){if(arguments.length===1){if(this.ak(512,a)&&a){var b=this.afterHasDescendantChanged;if(b!=null){b(this,$$0.$w.empty)}this.b1()}return a}else{return(this.bc&512)!=0}},m:function(a){if(arguments.length===1){this.b9(32,a);return a}else{return(this.bc&32)!=0}},p:function(a){if(arguments.length===1){this.b9(4,a);return a}else{return(this.bc&4)!=0}},q:function(a){if(arguments.length===1){this.b9(1,a);return a}else{return(this.bc&1)!=0}},r:function(a){if(arguments.length===1){this.b9(64,a);return a}else{return(this.bc&64)!=0}},s:function(a){if(arguments.length===1){this.aj(2048,4096,a);return a}else{return(this.bc&2048)!=0}},t:function(a){if(arguments.length===1){this.b9(65536,a);if(a){this.bc|=512}return a}else{return(this.bc&65536)!=0}},u:function(a){if(arguments.length===1){if(this.aj(16,32,a)){this.b3()}return a}else{return(this.bc&16)!=0}},v:function(){var a=this;while(a!=null){if(!a.u()){return false}a=a.__parent}return true},w:function(a){if(arguments.length===1){this.ak(8,a);return a}else{return(this.bc&8)!=0}},x:function(){return false},y:function(a){if(arguments.length===1){this.aj(2,4,a);return a}else{return(this.bc&2)!=0}},ab:function(a){if(arguments.length===1){if(this.ak(256,a)){if(a){this.b1();var b=$b($$t.$an.$type,this.d());if(b!=null&&b.cs()){b.d0(this)}}else{this.b5()}}return a}else{return(this.bc&256)!=0}},ac:function(a){if(arguments.length===1){if(this.aj(8192,16384,a)&&this.__parent!=null){this.__parent.t(true)}return a}else{return(this.bc&8192)!=0}},ay:function(){return this.h!=null?this.h.l:0},az:function(){return this.h!=null?this.h.m:0},a0:function(){var a=this.av;if(this.h!=null){a+=this.h.b.a}return a},a1:function(){var a=this.a3;if(this.h!=null){a+=this.h.b.d}return a},parent:function(){return this.__parent},aw:function(){var a=this.av;var b=this.h;if(b!=null){a-=b.a.a;a-=b.c.a;if(a<0){a=0}}return a},a4:function(){var a=this.a3;var b=this.h;if(b!=null){a-=b.a.d;a-=b.c.d;if(a<0){a=0}}return a},bu:function(a){if(arguments.length===1){if(a!=this.a8){this.a8=a;this.bc|=64;if(this.__parent!=null){this.__parent.bc|=128}this.b1()}return a}else{return this.a8}},by:function(a){var b=a.visitElement(this);if(b&&this.aq!=null){var c=0;while(c<this.aq.count()){var d=this.aq.__inner[c];d.by(a);if(d.__parent!=null){c++}}}},at:function(a){var b=a;var c=this.h;if(c!=null){b=c.g(b);b=c.e(b)}return b},au:function(a){var b=a;var c=this.h;if(c!=null){b=c.h(b);b=c.f(b)}return b},bz:function(){if(this.aq!=null){for(var a=0;a<this.aq.count();a++){this.aq.__inner[a].bz()}}var b=this.disposed;if(b!=null){b(this,$$0.$w.empty)}},g:function($t){var a=this.__parent;while(a!=null){if($b($t,a)!==null){return a}a=a.__parent}return null},ce:function(){var a=this;var b=0;var c=0;while(a!=null){b+=a.ax;c+=a.a2;a=a.__parent}return new $$a.ae(0,b,c,this.a3,this.av)},b:function(a){return this.aq.__inner[a]},cd:function(a){var b=this;var c=0;var d=0;while(b!=null&&b!=a){c+=b.ax;d+=b.a2;b=b.__parent}return{__x:c,__y:d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},c:function(a){if(this.aq!=null){for(var b=0,c=this.aq.count();b<c;b++){var d=this.aq.__inner[b];if(d.bx==a&&d.ab()){return d}}}return null},d:function(){var a=this;while(a.__parent!=null){a=a.__parent}return a},e:function(a,b,c){var d=a;var e=b;if(!this.aa(d,e)){return null}var f=this;if(c&&(this.bc&24)!=24){return null}while(f!=null){var g=null;var h=f.as();if(h!=null){for(var i=h.count()-1;i>=0;i--){var j=h.__inner[i];if(c&&(j.bc&24)!=24){continue}var k=d-j.ax;if(k>=0&&k<j.a3){var l=e-j.a2;if(l>=0&&l<j.av){if(j.aa(k,l)){d=k;e=l;g=j;break}}}}}if(g!=null){f=g}else{break}}return f},as:function(){if((this.bc&128)!=0){this.cc()}if(this.ar!=null&&this.ar.count()>0){return this.ar}return this.aq},b0:function(){if((this.bc&131072)!=0){var a=$b($$t.$an.$type,this.d());var b=a.ck();while(b!=null){b.bc&=~131072;b=b.__parent}a.dk()}},z:function(){var a=this.y();var b=this.__parent;while(!a&&b!=null){a=b.y();b=b.__parent}return a},aa:function(a,b){if(!this.ac()){return false}return a>=0&&b>=0&&a<this.a3&&b<this.av},b1:function(){this.bc|=32768;var a=this.__parent;while(a!=null&&(a.bc&512)==0){a.bc|=512;var b=a.afterHasDescendantChanged;if(b!=null){b(a,$$0.$w.empty)}a=a.__parent}},b2:function(){},b3:function(){if(this.y()&&!this.v()||!this.y()&&this.z()&&this.v()){var a=$b($$t.$an.$type,this.d());if(a!=null){a._ct=true}}},b4:function(){},ad:function(a){return false},ae:function(a){return false},af:function(a){return false},ag:function(a){return false},ah:function(a){return false},ai:function(a,b,c){return false},b5:function(){if(this.aq!=null){for(var a=0,b=this.aq.count();a<b;a++){var c=this.aq.__inner[a];if((c.bc&256)==0){c.b5()}}}},b6:function(){if(this.t()){this.t(false);var a=0;var b=0;var c=this.a3;var d=this.av;var e=this.h;if(e!=null){a+=e.a.b+e.c.b;b+=e.a.c+e.c.c;c-=e.a.d+e.c.d;d-=e.a.a+e.c.a;if(c<0){c=0}if(d<0){d=0}}this.b7(a,b,c,d)}},b7:function(a,b,c,d){},b8:function(){if(this.__parent!=null){if((this.bc&131072)!=0){this.b0()}var a=this.__parent;this.__parent=null;if(a.aq.remove(this)){if(a.ar!=null){a.ar.remove(this)}}}},aj:function(a,b,c){var d=this.ak(a,c);if(d){this.b9(b,true)}return d},ak:function(a,b){var c=this.bc;if(b){c|=a}else{c&=~a}var d=c!=this.bc;this.bc=c;return d},b9:function(a,b){if(this.ak(a,b)&&b){this.b1()}},am:function(a){return this.al(a.x(),a.y(),a.width(),a.height())},al:function(a,b,c,d){var e=this.h;if(e!=null){return e.d(a,b,c,d,this.an.runOn(this))}else{return this.an(a,b,c,d)}},an:function(a,b,c,d){if(a!=this.ax||b!=this.a2||c!=this.a3&&(!$.ig.util.isNaN(c)||$.ig.util.isNaN(this.a3))||d!=this.av&&(!$.ig.util.isNaN(d)||$.ig.util.isNaN(this.av))){this.q(true);this.t(true);this.ax=a;this.a2=b;this.a3=c;this.av=d;return true}return false},ca:function(a,b,c,d){var e=$b($$t.$an.$type,this.d());if(e==null){return}if(e.ck()!=null){e.ck().b0()}if(e.ck()!=null){return}var f=this;while(f!=null){f.bc|=131072;f=f.__parent}e.du(this,a,b,c,d)},cb:function(){if(this.ab()){return}if(this.t()){this.b6()}if(this.l()&&this.aq!=null){for(var a=0,b=this.aq.count();a<b;a++){this.aq.__inner[a].cb()}}},cc:function(){if((this.bc&128)!=0){this.bc&=~128;if(this.ar!=null){this.ar.clear()}if(this.aq!=null){var a=0;for(var b=0,c=this.aq.count();b<c;b++){var d=this.aq.__inner[b];if(a>0||d.a8!=0){var e;if(a==0){if(this.ar==null){this.ar=new $$4.x($$t.$au.$type,0)}for(var f=0;f<b;f++){this.ar.add(this.aq.__inner[f])}a=this.ar.count();e=d.a8<0?0:this.ar.count()}else{e=this.ar.binarySearch1(d,$$t.$av._a);if(e<0){e=~e}else{while(e<a&&d.a8==this.ar.__inner[e].a8){e++}}}this.ar.insert(e,d);a++}}}}},ao:function(a){if(!a(this)){return false}if(this.aq!=null){for(var b=0;b<this.aq.count();b++){this.aq.__inner[b].ao(a)}}return true},afterHasDescendantChanged:null,disposed:null,$type:new $.ig.Type("VisualElement",$.ig.$ot)},true);$c("SpreadsheetShapeContainerElement:ca","VisualElement",{cf:null,cg:null,cj:0,ch:false,init:function(a,b){$$t.$au.init.call(this,b,"ShapeContainer");this.cg=a;this.cf=new $$t.cb(a,this)},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);this.cf.n();for(var e=0;e<this.a9();e++){var f=$b($$t.$l1.$type,this.b(e));if(f!=null&&f.cg()!=null&&!f.ab()){var g=f.cg();var h=g.d;var i=$$t.$dy.b9(h);i=$$a4.$n._er(h.worksheet().workbook(),i,true,true);f.ck(i);f.cm(g._n);var j=f.cg()._t;f.al(j.x()-i,j.y()-i,j.width()+i*2,j.height()+i*2)}}},ck:function(a){if(arguments.length===1){if(a!=this.cj){this.cj=a;this.ci(true)}return a}else{return this.cj}},ci:function(a){if(arguments.length===1){if(a!=this.ch){this.ch=a;if(a){this.b1()}}return a}else{return this.ch}},$type:new $.ig.Type("SpreadsheetShapeContainerElement",$$t.$au.$type)},true);$c("ShapeVisualManager:kp","Object",{b:null,a:null,c:false,g:null,h:null,init:function(a,b){$.ig.$op.init.call(this);this.b=a;this.c=b;this.g=new $$4.x($$t.$kq.$type,0);this.h=new $$4.g($$t.$kq.$type,1,this.g);this.a=new $$t.ky},_e:false,f:function(){return this.h},k:function(a,b){var d=b.getEnumerator();while(d.moveNext()){var c=d.current();if(c.i&&c._a!=null){b.remove(c);a._a=c._a;a._g=true;a._h=true;return a._a.g()}}return null},n:function(){var a=this.b._r();if(this.i(a,0)!=this.g.count()){var b=new $$4.q($$t.$kq.$type,0);for(var c=0;c<this.g.count();c++){b.add(this.g.__inner[c])}this.g.clear();this.l(a);for(var d=0;d<this.g.count();d++){b.remove(this.g.__inner[d])}for(var e=0;e<this.g.count();e++){var f=this.g.__inner[e];if(f._o==null){f._o=this.j(f,b)}}var h=b.getEnumerator();while(h.moveNext()){var g=h.current();this.m(g);g.m(null)}this._e=true}this.o(a)},p:function(a){var b=a.x()+a.width()/2;var c=a.y()+a.height()/2;return new $$a.ae(0,b-a.height()/2,c-a.width()/2,a.height(),a.width())},q:function(a,b,c,d){return new $$a.ae(0,c?b.left()+(b.right()-a.right()):a.x(),d?b.top()+(b.bottom()-a.bottom()):a.y(),a.width(),a.height())},r:function(a){return a._getBoundsInTwips()},o:function(a){if(a==null){return}var b=this.b._s;var c=this.b.columnScrollRegion();var d=this.b.rowScrollRegion();for(var e=0;e<a.count();e++){var f=a.item(e);var g=f.d;var h=$$t.$kp.r(g);f._v=h;f._e=g.flippedHorizontally();f._f=g.flippedVertically();f._k=g._b6();var i=h.copy();if($$t.$dy.bl(g)){i=$$t.$kp.p(i)}if(f.b!=null){var j=f.c();var k=f.b;var l=k._s;var m=k._v;if($b($$a4.$m1.$type,g)!==null&&$$a4.$k.bc(j.d._b6())&&$$a4.$k.bc(g._b6())&&(j==k||$$a4.$k.bc(k.d._b6()))){var n=i.width()<i.height();var o=n?l.width()/l.height():l.height()/l.width();var p=i.width()*o;var q=i.height()/o;var r=n?(i.width()-p)/2:(i.height()-q)/2;i.x(i.x()-r);i.width(p);i.y(i.y()+r);i.height(q)}else{i.x(l.left()+(i.x()-m.x())/m.width()*l.width());i.width(i.width()/m.width()*l.width());i.y(l.top()+(i.y()-m.y())/m.height()*l.height());i.height(i.height()/m.height()*l.height())}i=$$t.$kp.q(i,l,k._e,k._f);if(k._e!=k._f){f._k=360-f._k}f._f=f._f!=k._f;f._e=f._e!=k._e;if(k._k%360!=0){this.a.h(i.x(),i.y(),i.right(),i.bottom(),k._k,k._s.x()+k._s.width()/2,k._s.y()+k._s.height()/2,false);var s=this.a.m();var t=s.x()+s.width()/2;var u=s.y()+s.height()/2;i.x(t-i.width()/2);i.y(u-i.height()/2)}f._k+=k._k}f._s=i;var v=c._bl();var w=d._bl();var x=g.sheet().workbook();var y=this.c?c._bx():1;var z=(b.convertTwipsToPixels(i.x(),false)-v)*y;var aa=(b.convertTwipsToPixels(i.right(),false)-v)*y;var ab=(b.convertTwipsToPixels(i.y(),true)-w)*y;var ac=(b.convertTwipsToPixels(i.bottom(),true)-w)*y;f._u=new $$a.ae(0,z,ab,aa-z,ac-ab);f._k=f._k%360;if(f._k%360!=0){this.a.g(z,ab,aa,ac,f._k,false);var ad=this.a.m();z=ad.left();ab=ad.top();aa=ad.right();ac=ad.bottom()}f._t=new $$a.ae(0,z,ab,aa-z,ac-ab);if(f.j!=null){this.o(f.j)}}},l:function(a){if(a!=null){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();if(b.d.visible()){if(this.d(b)){this.g.add(b)}if(b.j!=null){this.l(b.j)}}}}},i:function(a,b){if(a==null){return-1}for(var c=0;c<a.count();c++){var d=a.item(c);if(!d.d.visible()||!this.d(d)){if(d._o!=null){return-1}}else{if(b>=this.g.count()){return-1}if(d!=this.g.__inner[b]){return-1}b++}if(d.j!=null){b=this.i(d.j,b);if(b<0){return b}}}return b},d:function(a){},j:function(a,b){},m:function(a){},$type:new $.ig.Type("ShapeVisualManager",$.ig.$ot)},true);$c("PaneShapeVisualManager:cb","ShapeVisualManager",{t:null,s:null,init:function(a,b){$$t.$kp.init.call(this,a._viewModel(),false);this.t=a;this.s=b},d:function(a){if(a.i){return this.b._s.spreadsheetOwnerState()._l()._b(a.d)}else if($b($$a4.$m0.$type,a.d)!==null){return false}return $$t.$dy.a4(a.d,false)},j:function(a,b){if(a.i){var c=this.t._viewModel()._s.spreadsheetOwnerState()._l();if(c==null){return null}var d=new $$t.l3(this.s,c,this.t._viewModel()._s);d.cg(a);return d}else if($$t.$dy.a4(a.d,false)){var e=null;var g=b.getEnumerator();while(g.moveNext()){var f=g.current();e=$b($$t.$l2.$type,f._o);if(e!=null){b.remove(f);e.ci(true);e.cg(a);return e}}e=new $$t.l2(this.s);e.cg(a);return e}return null},m:function(a){var b=$b($$t.$au.$type,a._o);if(b!=null&&!b.ab()){b.ab(true);a.m(null);a._o=null}},$type:new $.ig.Type("PaneShapeVisualManager",$$t.$kp.$type)},true);$c("ElementLayer:bo","Object",{_a:null,_c:null,init:function(a,b){$.ig.$op.init.call(this);$$ak.$c.y(a);$$ak.$c.y(b);this._a=a;this._c=b},_b:function(){return this._a},_d:function(){return this._c},_g:function(a){},_e:function(){this._c.invalidateArrange()},_f:function(){this._c.invalidateMeasure()},_h:function(a){},dispose:function(){},$type:new $.ig.Type("ElementLayer",$.ig.$ot,[$$0.$au.$type])},true);$c("ElementLayer$1:bp","ElementLayer",{$tViewModel:null,_i:null,init:function($tViewModel,a,b,c){this.$tViewModel=$tViewModel;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tViewModel)}$$t.$bo.init.call(this,c,b);$$ak.$c.y(a);this._i=a},_viewModel:function(){return this._i},$type:new $.ig.Type("ElementLayer$1",$$t.$bo.$type)},true);$c("spreadsheet.SpreadsheetPane:i3","PropertyChangeNotifierExtended",{_x:null,_ad:null,_m:null,_ai:null,_i:null,_j:null,_g:null,_v:null,_z:null,_ab:null,_af:null,_o:null,_aj:false,_ak:false,_s:null,_ay:null,_an:0,_n:null,init:function(a,b,c,d){this._ak=true;$$ak.$s.init.call(this);$$ak.$c.z(d,"owner");this._ai=new $$ak.n($$t.$i3.$type,this,$$t.$i3._aq,false);var e=c(this);this._s=d;var f=$$ak.$m.e($$t.$i4.$type,this._ad,a,this._ai,true);this._ad=f.p0;var g=$$ak.$m.e($$t.$i2.$type,this._x,b,this._ai,true);this._x=g.p0;var h=$$ak.$m.e($$t.$oh.$type.specialize($$t.$cp.$type),this._m,new $$t.oh($$t.$cp.$type,0),this,false);this._m=h.p0;var i=$$ak.$m.e($$t.$oh.$type.specialize($$t.$kq.$type),this._o,new $$t.oh($$t.$kq.$type,0),this,false);this._o=i.p0;var j=$$ak.$m.e($$t.$d6.$type,this._af,e,this,true);this._af=j.p0;var k=$$ak.$m.e($$t.$oh.$type.specialize($$t.$ip.$type),this._n,new $$t.oh($$t.$ip.$type,0),this,false);this._n=k.p0},columnScrollRegion:function(){return this._x},rowScrollRegion:function(){return this._ad},selection:function(){return this._af},visibleRange:function(){return new $$t.d1(this._ad.startIndex(),this._x.startIndex(),this._ad.endIndex(),this._x.endIndex())},_ag:function(){return this.rowScrollRegion()._ab()},_ac:function(a){if(arguments.length===1){if(this._ab!=a){this._ab=a;this.a("Background")}return a}else{return this._ab}},_w:function(a){if(arguments.length===1){this._v=a;this.a("CellFillArray");return a}else{return this._v}},_ao:function(a){if(arguments.length===1){if(this._an!=a){this._an=a;this.a("CellTextArrangeVersion")}return a;
}else{return this._an}},_k:function(a){if(arguments.length===1){this._i=a;this.a("CellValueArray");return a}else{return this._i}},_p:function(){return this._m},_q:function(){return this._n},_aa:function(a){if(arguments.length===1){if(this._z!=a){this._z=a;this.a("GridlinePen")}return a}else{return this._z}},_al:function(a){if(arguments.length===1){if(this._aj!=a){this._aj=a;this.a("HideActiveCellContent")}return a}else{return this._aj}},_l:function(a){if(arguments.length===1){this._j=a;this.a("HyperlinkArray");return a}else{return this._j}},_h:function(a){if(arguments.length===1){this._g=a;this.a("InvalidCellArray");return a}else{return this._g}},_ap:function(a){if(arguments.length===1){if(a!=this._ap()){this._ay=a==null?null:new $$6.z(a);this.a("Panel")}return a}else{return $$ak.$c.p(this._ay)}},_r:function(){return this._o},_am:function(a){if(arguments.length===1){this._ak=a;return a}else{return this._ak}},scrollCellIntoView:function(){var n;if(arguments.length===1){if($b($$t.$dz.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._scrollCellIntoView.apply(this,arguments);case 1:return this._scrollCellIntoView1.apply(this,arguments);default:throw new Error("Invalid arguments")}},_scrollCellIntoView:function(a){this._scrollRangeIntoView(new $$t.d1(a.row(),a.column()))},_scrollCellIntoView1:function(a){this._scrollCellIntoView(new $$t.dz(a))},scrollColumnIntoView:function(a){if(a<0){throw new $$6.f(0)}this._s.scrollRangeIntoView(this,$m($$t.$i.$type,null),$m($$t.$i.$type,new $$t.i(1,a,a)))},scrollRangeIntoView:function(){var n;if(arguments.length===1){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._scrollRangeIntoView.apply(this,arguments);case 1:return this._scrollRangeIntoView1.apply(this,arguments);default:throw new Error("Invalid arguments")}},_scrollRangeIntoView:function(a){this._s.scrollRangeIntoView(this,$m($$t.$i.$type,new $$t.i(1,a.firstRow(),a.lastRow())),$m($$t.$i.$type,new $$t.i(1,a.firstColumn(),a.lastColumn())))},_scrollRangeIntoView1:function(a){this._scrollRangeIntoView(new $$t.d1(a))},scrollRowIntoView:function(a){if(a<0){throw new $$6.f(0)}this._s.scrollRangeIntoView(this,$m($$t.$i.$type,new $$t.i(1,a,a)),$m($$t.$i.$type,null))},_t:function(a){return new $$t.dz(this.rowScrollRegion()._ag(a.__y)._index(),this.columnScrollRegion()._ag(a.__x)._index())},_ar:function(a,b,c){switch(b!=null?b:""){case"StartIndex":case"EndIndex":if(a==this.rowScrollRegion()||a==this.columnScrollRegion()){this.a("VisibleRange")}break}},_aq:function(a,b,c,d){a._ar(b,c,d)},$type:new $.ig.Type("spreadsheet.SpreadsheetPane",$$ak.$s.$type)},true);$c("SpreadsheetPaneShapeLayer:cc","ElementLayer$1",{_k:null,_l:null,init:function(a,b){var $self=this;$$t.$bp.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.t());this._l=new $$t.ca(this,b.c);this._k=new $$t.ha(a,function(){$self._e();$self._l.t(true)})},_g:function(a){var b=new $$a.ae(0,0,0,a.width(),a.height());if(this._l!=null){var c=this._viewModel().columnScrollRegion()._bx();this._l.ck(c);this._l.al(0,0,a.width()/c,a.height()/c)}return b},dispose:function(){$$t.$bp.dispose.call(this);this._k.dispose();if(this._l!=null){this._l.ab(true);this._l=null}},_h:function(a){return new $$a.af(0)},$type:new $.ig.Type("SpreadsheetPaneShapeLayer",$$t.$bp.$type.specialize($$t.$i3.$type))},true);$c("ShapeGuideVariables:gp","Object",{init:function(){this.b=new $$4.h(String,$$t.$gj.$type,0);this.a=new $$4.h(String,Number,0);$.ig.$op.init.call(this)},f:0,e:0,b:null,a:null,c:function(a){var $self=this;var b;if(!function(){var c=$self.a.tryGetValue(a,b);b=c.p1;return c.ret}()){b=this.d(a);this.a.item(a,b)}return b},g:function(a,b){this.a.item(a,b)},d:function(a){var $self=this;switch(a){case"w":case"r":return this.f;case"h":case"b":return this.e;case"l":return 0;case"t":return 0;case"3cd4":return 162e5;case"3cd8":return 81e5;case"5cd8":return 135e5;case"7cd8":return 189e5;case"cd2":return 108e5;case"cd4":return 54e5;case"cd8":return 27e5;case"hc":return this.f/2;case"hd2":return this.e/2;case"hd3":return this.e/3;case"hd4":return this.e/4;case"hd5":return this.e/5;case"hd6":return this.e/6;case"hd8":return this.e/8;case"ls":return Math.max(this.f,this.e);case"ss":return Math.min(this.f,this.e);case"ssd2":return this.c("ss")/2;case"ssd4":return this.c("ss")/4;case"ssd6":return this.c("ss")/6;case"ssd8":return this.c("ss")/8;case"vc":return this.e/2;case"wd2":return this.f/2;case"wd4":return this.f/4;case"wd5":return this.f/5;case"wd6":return this.f/6;case"wd8":return this.f/8;case"wd10":return this.f/10;case"dx":return this.f;case"dy":return this.e;default:var b;if(!function(){var c=$self.b.tryGetValue(a,b);b=c.p1;return c.ret}()){if(a.length>2){if(a.startsWith("wd")||a.startsWith("hd")){var c;if(function(){var d=$z(a.substr(2),c);c=d.p1;return d.ret}()){var d=a.startsWith("wd")?this.f:this.e;return d/c}}else if(a.startsWith("ssd")){var e;if(function(){var f=$z(a.substr(3),e);e=f.p1;return f.ret}()){return this.c("ss")/e}}}return parseFloat(a)}return b.b(this)}},$type:new $.ig.Type("ShapeGuideVariables",$.ig.$ot)},true);$c("ShapeGeometryPathBuilder:gi","Object",{a:0,b:0,e:0,f:0,c:0,d:0,init:function(a,b,c,d){$.ig.$op.init.call(this);this.e=a;this.f=b;this.c=c;this.d=d;this.a=c;this.b=d},h:function(a,b,c,d,e,f){},i:function(){},j:function(a,b,c,d,e,f){},k:function(a,b){},l:function(a,b){},m:function(a,b,c,d){var e=this.a+2/3*(a-this.a);var f=this.b+2/3*(b-this.b);var g=c+2/3*(a-c);var h=d+2/3*(b-d);this.j(e,f,g,h,c,d)},g:function(a,b,c){var d=Math.PI*2;var e=Math.PI*a/180;if(Math.abs(Math.cos(e))<1e-5||Math.abs(Math.sin(e))<1e-5){return e}var f=Math.atan2(Math.sin(e)/Math.abs(c),Math.cos(e)/Math.abs(b));var g=$.ig.truncate($$a4.$aa.f(e/d))-$.ig.truncate($$a4.$aa.f(f/d));return f+g*d},visitCT_Path2DArcTo:function(value,argument){return this._visitCT_Path2DArcTo$i.apply(this,arguments)},_visitCT_Path2DArcTo$i:function(a,b){var c=$$t.$ce.l(b,a.wR());var d=$$t.$ce.l(b,a.hR());var e=$$t.$ce.k(b,a.stAng());var f=$$t.$ce.k(b,a.swAng());var g=f/180*Math.PI;var h=$$t.$gi.g(e,c,d);var i=this.a-c*Math.cos(h);var j=this.b-d*Math.sin(h);this.h(i,j,c,d,e,f);var k=$$t.$gi.g(e+f,c,d);var l=i+c*Math.cos(k);var m=j+d*Math.sin(k);this.a=l;this.b=m;return true},visitCT_Path2DClose:function(value,argument){return this._visitCT_Path2DClose$i.apply(this,arguments)},_visitCT_Path2DClose$i:function(a,b){this.i();return true},visitCT_Path2DCubicBezierTo:function(value,argument){return this._visitCT_Path2DCubicBezierTo$i.apply(this,arguments)},_visitCT_Path2DCubicBezierTo$i:function(a,b){var c=$$t.$ce.l(b,a.pt1()._a)+this.c;var d=$$t.$ce.l(b,a.pt1()._b)+this.d;var e=$$t.$ce.l(b,a.pt2()._a)+this.c;var f=$$t.$ce.l(b,a.pt2()._b)+this.d;var g=$$t.$ce.l(b,a.pt3()._a)+this.c;var h=$$t.$ce.l(b,a.pt3()._b)+this.d;this.j(c,d,e,f,g,h);this.a=g;this.b=h;return true},visitCT_Path2DLineTo:function(value,argument){return this._visitCT_Path2DLineTo$i.apply(this,arguments)},_visitCT_Path2DLineTo$i:function(a,b){var c=$$t.$ce.l(b,a.pt()._a)+this.c;var d=$$t.$ce.l(b,a.pt()._b)+this.d;this.k(c,d);this.a=c;this.b=d;return true},visitCT_Path2DMoveTo:function(value,argument){return this._visitCT_Path2DMoveTo$i.apply(this,arguments)},_visitCT_Path2DMoveTo$i:function(a,b){var c=$$t.$ce.l(b,a.pt()._a)+this.c;var d=$$t.$ce.l(b,a.pt()._b)+this.d;this.l(c,d);this.a=c;this.b=d;return true},visitCT_Path2DQuadBezierTo:function(value,argument){return this._visitCT_Path2DQuadBezierTo$i.apply(this,arguments)},_visitCT_Path2DQuadBezierTo$i:function(a,b){var c=$$t.$ce.l(b,a.pt1()._a)+this.c;var d=$$t.$ce.l(b,a.pt1()._b)+this.d;var e=$$t.$ce.l(b,a.pt2()._a)+this.c;var f=$$t.$ce.l(b,a.pt2()._b)+this.d;this.m(c,d,e,f);this.a=e;this.b=f;return true},$type:new $.ig.Type("ShapeGeometryPathBuilder",$.ig.$ot,[$$ae.$e2.$type.specialize($$t.$gp.$type,$$0.$aq.$type)])},true);$c("SvgPathCreator:cd","ShapeGeometryPathBuilder",{n:null,init:function(a,b,c,d,e){$$t.$gi.init.call(this,b,c,d,e);this.n=a},h:function(a,b,c,d,e,f){if(f>=360){this.o(d,c,e,180,a,b);this.o(d,c,e+180,180,a,b)}else{this.o(d,c,e,f,a,b)}},i:function(){this.n.l(" Z")},j:function(a,b,c,d,e,f){this.n.l(" C ");this.p(a,b);this.n.l(", ");this.p(c,d);this.n.l(", ");this.p(e,f)},k:function(a,b){this.n.l(" L ");this.p(a,b)},l:function(a,b){this.n.l(" M ");this.p(a,b)},m:function(a,b,c,d){this.n.l(" Q ");this.p(a,b);this.n.l(", ");this.p(c,d)},o:function(a,b,c,d,e,f){var g=$$t.$gi.g(c+d,b,a);var h=e+b*Math.cos(g);var i=f+a*Math.sin(g);this.n.l(" A ");this.p(b,a);this.n.l(" 0 ");this.n.l(Math.abs(d)>=180?"1 ":"0 ");this.n.l(d>=0?"1 ":"0 ");this.p(h,i)},p:function(a,b){this.n.k(a*this.e);this.n.l(" ");this.n.k(b*this.f)},$type:new $.ig.Type("SvgPathCreator",$$t.$gi.$type)},true);$c("spreadsheet.SpreadsheetCellRange:d1","ValueType",{init:function(){var a;if(arguments.length===0){a=0}else if(arguments.length===1){a=3}else if(arguments.length===2){a=1}else if(arguments.length===4){a=2}if(a>0){switch(a){case 1:this._init1.apply(this,arguments);break;case 2:this._init2.apply(this,arguments);break;case 3:this._init3.apply(this,arguments);break;default:throw new Error("Invalid arguments")}return}$$0.$bh.init.call(this)},_t:0,_w:0,_u:0,_x:0,_v:0,_staticInit:function(){$$t.$d1.empty=new $$t.d1((-1),(-1),(-1),(-1))},_init1:function(a,b){$$t.$d1._init2.call(this,a,b,a,b)},_init2:function(a,b,c,d){$$0.$bh.init.call(this);if(a!=-1||c!=-1||b!=-1||d!=-1){$$t.$d1._ah(a,"firstRow");$$t.$d1._ah(c,"lastRow");$$t.$d1._ah(b,"firstColumn");$$t.$d1._ah(d,"lastColumn")}this._u=Math.min(a,c);this._x=Math.max(a,c);this._t=Math.min(b,d);this._w=Math.max(b,d);this._v=this._u^this._x<<5^this._t<<10^this._w<<15},_init3:function(a){$$0.$bh.init.call(this);var b;var c;var d;var e;var f=$$a4.$k.fu(a,2,$$0.$cf.currentCulture(),b,c,d,e);b=f.p3;c=f.p4;d=f.p5;e=f.p6;if(d<0&&b<0){throw new $$6.d(1,$6("The specified address '{0}' is not a valid A1 cell range address.",a))}if(d<0){d=b;e=c}$$t.$d1._ah(b,"firstRow");$$t.$d1._ah(d,"lastRow");$$t.$d1._ah(c,"firstColumn");$$t.$d1._ah(e,"lastColumn");this._u=Math.min(b,d);this._x=Math.max(b,d);this._t=Math.min(c,e);this._w=Math.max(c,e);this._v=this._u^this._x<<5^this._t<<10^this._w<<15},equals:function(){var n;if(arguments.length===1){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if($b($.ig.$op.$type,arguments[0])!==null){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._equals.apply(this,arguments);case 1:return this.equals1.apply(this,arguments);default:throw new Error("Invalid arguments")}},equals1:function(a){if($b($$t.$d1.$type,a)!==null){return this._equals(a)}return false},getHashCode:function(){return this._v},toString:function(){var n;if(arguments.length===0){n=0}else if(arguments.length===1){n=1}switch(n){case 0:return this._toString.apply(this,arguments);case 1:return this._toString1.apply(this,arguments);default:throw new Error("Invalid arguments")}},_toString:function(){return this._toString1(1)},firstColumn:function(){return this._t},firstRow:function(){return this._u},_aa:function(){return this._x-this._u+1},isSingleCell:function(){return this._t==this._w&&this._u==this._x},isEmpty:function(){return $$t.$d1.l_op_Equality(this,$$t.$d1.empty)},lastColumn:function(){return this._w},lastRow:function(){return this._x},_b:function(){return new $$t.dz(this._x,this._w)},_c:function(){return new $$t.dz(this._u,this._t)},_ad:function(){return this._w-this._t+1},contains:function(){var n;if(arguments.length===1){if($b($$t.$dz.$type,arguments[0])!==null){n=0}else if($b($$t.$d1.$type,arguments[0])!==null){n=1}}else if(arguments.length===2){n=2}switch(n){case 0:return this._contains.apply(this,arguments);case 1:return this._contains1.apply(this,arguments);case 2:return this._contains2.apply(this,arguments);default:throw new Error("Invalid arguments")}},_contains2:function(a,b){return!(b<this._t||b>this._w||a<this._u||a>this._x)},_contains:function(a){return this._contains2(a.row(),a.column())},_contains1:function(a){return!(a.firstColumn()<this._t||a.lastColumn()>this._w||a.firstRow()<this._u||a.lastRow()>this._x)},intersect:function(a){if(!this.intersectsWith(a)){return $$t.$d1.empty}return new $$t.d1(this._u<a._u?a._u:this._u,this._t<a._t?a._t:this._t,this._x>a._x?a._x:this._x,this._w>a._w?a._w:this._w)},intersectsWith:function(a){return a._u<=this._x&&a._x>=this._u&&a._t<=this._w&&a._w>=this._t},_toString1:function(a){return this._af(a,a==1)},_af:function(a,b){var c=function(d,e,f,g,h){return $$a4.$zf.u(d,e,2,g,h,-1,-1,false,f)}(this._u,this._t,a,b,b);if(this.isSingleCell()){return c}return $6("{0}{1}{2}",c,":",function(i,j,k,l,m){return $$a4.$zf.u(i,j,2,l,m,-1,-1,false,k)}(this._x,this._w,a,b,b))},union:function(a){if(this.isEmpty()){return a}return new $$t.d1(this._u>a._u?a._u:this._u,this._t>a._t?a._t:this._t,this._x<a._x?a._x:this._x,this._w<a._w?a._w:this._w)},_a:function(a){var b=null;if(a!=null&&a.length>0){b=$.ig.util.stringSplit(a,[","],1)}var c=b==null?0:b.length;var d=new Array(c);for(var e=0;e<c;e++){var f=b[e].trim();d[e]=new $$t.d1(f)}return d},_j:function(a){for(var b=0,c=a.count();b<c;b++){var d=a.item(b);for(var e=b+1;e<c;e++){var f=a.item(e);if(f.intersectsWith(d)){return true}}}return false},_ag:function(a,b,c){if(a==null||a.count()==0){return String.empty()}if(a.count()==1){return a.item(0)._toString1(b)}var d=new $$6.aj(0);var f=a.getEnumerator();while(f.moveNext()){var e=f.current();if(d.c()>0){d.h(c)}d.l(e._toString1(b))}return d.toString()},_ah:function(a,b){if(a<0){throw new $$6.d(2,"Row and column indexes must be 0 or greater.",b)}},_equals:function(a){return a._u==this._u&&a._x==this._x&&a._t==this._t&&a._w==this._w},l_op_Equality:function(a,b){return a._equals(b)},l_op_Equality_Lifted:function(a,b){a=$t($$t.$d1.$type,a);b=$t($$t.$d1.$type,b);if(!a.hasValue()){return!b.hasValue()}else if(!b.hasValue()){return false}return $$t.$d1.l_op_Equality(a.value(),b.value())},l_op_Inequality:function(a,b){return!$$t.$d1.l_op_Equality(a,b)},l_op_Inequality_Lifted:function(a,b){a=$t($$t.$d1.$type,a);b=$t($$t.$d1.$type,b);if(!a.hasValue()){return b.hasValue()}else if(!b.hasValue()){return true}return $$t.$d1.l_op_Inequality(a.value(),b.value())},$type:new $.ig.Type("spreadsheet.SpreadsheetCellRange",$$0.$bh.$type,[$$0.$b.$type.specialize(-1)])},true);$$t.$d1.$type.initSelfReferences();$$t.d1.l_op_Equality=$$t.d1.prototype.l_op_Equality.runOn($$t.d1.prototype);$$t.d1.l_op_Equality_Lifted=$$t.d1.prototype.l_op_Equality_Lifted.runOn($$t.d1.prototype);$$t.d1.l_op_Inequality=$$t.d1.prototype.l_op_Inequality.runOn($$t.d1.prototype);$$t.d1.l_op_Inequality_Lifted=$$t.d1.prototype.l_op_Inequality_Lifted.runOn($$t.d1.prototype);$c("SpreadsheetDropDownButton:ip","Object",{init:function(){this.g=$$t.$ip.f;$.ig.$op.init.call(this)},d:0,c:0,b:0,a:0,g:null,toString:function(){return $$a4.$zf.u(this.d,this.c,2,true,true,-1,-1,false,1)+" "+$$t.$ir.getBox(this.b)},$type:new $.ig.Type("SpreadsheetDropDownButton",$.ig.$ot)},true);$c("SpreadsheetUtilities:dy","Object",{init:function(){$.ig.$op.init.call(this)},b2:function(a){var b=2.2;var c=Math.pow(a.o()/255,b)*.2126+Math.pow(a.n()/255,b)*.7152+Math.pow(a.m()/255,b)*.0722;return c},b3:function(a,b){if(!String.isNullOrEmpty(a)&&a!="auto"){if(a.contains("px")){a=$5(a,"px","")}var c=parseFloat(a);if(!isNaN(c)){return c}}return b},a5:function(a,b){if(b==null||a==null||a.a7==null){return false}var c=a.a7.rootWrapper().getNativeElement();return c.contains(b)},ck:function(a,b,c,d){var e=a._fa().createElement("canvas");e.setProperty("width",c);e.setProperty("height",d);var f=a._a8()._al._j();var g=a._fa().get2DCanvasContext(e);var h=new $$t.dr(g,f);b(h);return e},ci:function(a,b,c,d){return b==-1?null:$$t.$dy.ck(a,function(e){e.drawIcon(b,0,0,c,d,0,0,c,d)},c,d)},ch:function(a,b,c,d,e){return $$t.$dy.bc(b)?null:$$t.$dy.ck(a,function(f){if($$a4.$ah.l_op_Inequality(e,null)){f.drawRectangle1(6,e,1,.5,.5,c-1,d-1);f.fillRectangle3(b,1,1,c-2,d-2)}else{f.fillRectangle3(b,0,0,c,d)}},c,d)},cj:function(a,b,c,d,e){return $$a4.$ah.l_op_Equality(b,null)?null:$$t.$dy.ck(a,function(f){if($$a4.$ah.l_op_Inequality(e,null)){f.drawRectangle1(6,e,1,.5,.5,c-1,d-1);f.fillRectangle5(b,1,1,c-2,d-2)}else{f.fillRectangle5(b,0,0,c,d)}},c,d)},c9:function(a,b,c){var d="data:"+a+";";if(c){d+="charset=utf-8;base64,";var e=$$8.$a.uTF8().getBytes1(b);d+=$$6.$g.toBase64String(e)}else{d+="utf8,"+b}return d},c8:function(a,b){if(a==null||$b($$a4.$v1.$type,a)!==null){return""}if($b($$a4.$vz.$type,a)!==null){var c=a;return $$t.$dy.e5(c.color(),b,false).colorString()}else if($b($$a4.$v0.$type,a)!==null){var d=a;var e="linear-gradient("+(d.angle()+90)%360+"deg";var g=d.getStops().getEnumerator();while(g.moveNext()){var f=g.current();e+=", "+$$t.$dy.e5(f.color(),b,false).colorString()+" "+f.position()*100+"%"}e+=")";return e}return""},c7:function(a,b){if(a==null){return""}var c=a.lineStyle();if(c==7){return""}var d=$$t.$dy.c8(a._ap(),b);if(String.isNullOrEmpty(d)){return""}var e=$$a4.$n._eq(a.widthInPoints());e=Math.max($$a4.$n._er(b,e,false,true),1);return d+" "+e+"px solid"},dc:function(a){var b="";var c=a;while(c!=null){if(b.length>0){b="->"+b}var d=c;var e=d.className;if(!String.isNullOrEmpty(e)){b="{"+e+"}"+b}var f=d.id;if(!String.isNullOrEmpty(f)){b="("+f+")"+b}b=c.nodeName+b;c=d.parentNode}return b},bv:function(a){var b=new $$4.x($$1.$i.$type,0);var c=a.getChildCount();for(var d=0;d<c;d++){b.add(a.getChildAt(d))}return b},dg:function(a){switch(a){case 148:return"cut";case 149:return"copy";case 150:return"paste";case 86:return"undo";case 85:return"redo";default:return null}},dh:function(a){switch(a){case 149:return"copy";case 148:return"cut";case 150:return"paste";default:return null}},ea:function(a){if(a!=null){var b=a;if(b.focus!=null){b.focus()}}},c4:function(a){if(a!=null&&a.originalEvent!=null){a=a.originalEvent}return a},eb:function(a,b,c,d,e){var f=b==0||c==null?7:c.lineStyle();var g=$$t.$dy.d(f);var h=f==0?$$t.$dy.c7(c,e):"";var i=f==0?d+"px":"";a.setRawStyleProperty("border",h);a.setRawStyleProperty("border-radius",i);if(a.getChildCount()>0){a.removeChildren()}if(g==null){a.setRawStyleProperty("margin","0px")}else{a.setRawStyleProperty("margin",b+"px");var j=$$a4.$n._eq(c.widthInPoints());j=Math.max($$a4.$n._er(e,j,false,true),1);var k=new $$6.aj(0);var l="<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"overflow:visible\" width='100%' height='100%'>"+"<rect width='100%' height='100%' fill='none' stroke='"+$$t.$dy.c8(c._ap(),e)+"' stroke-width='"+j+"px' stroke-dasharray='";for(var m=0;m<g.length;m++){l+=j*g[m]+" "}l+="' rx='"+d+"' ry='"+d+"'></path></svg>";a.setProperty("innerHTML",l)}},ej:function(a){a.setRawStyleProperty("left","0");a.setRawStyleProperty("top","0");a.setRawStyleProperty("right","0");a.setRawStyleProperty("bottom","0");a.setRawStyleProperty("position","absolute")},bf:function(a){switch(a){case 21:case 18:case 19:case 23:case 22:case 20:case 24:return true;default:return false}},bg:function(a){switch(a){case 26:case 25:case 27:case 28:return true;default:return false}},bi:function(a){if(a==null){return false}return $$t.$dy.bh(a.getNativeElement())},bh:function(a){if(a==null){return false}if(a.offsetWidth>0||a.offsetHeight>0){return true}return a.getClientRects().length>0},bj:function(a,b){return $$t.$dy.cg!=null&&$$t.$dy.cg.call(a,b)},e2:function(a){var b=a.originalEvent;if(b.stopPropagation){b.stopPropagation()}},b7:function(a,b,c){return Math.abs(b/2*Math.sin(a))+Math.abs(c/2*Math.cos(a))},bk:function(a,b,c){var d=document.activeElement;var e;try{var f=a;f.setSelectionRange(b,c);e=true}catch(g){e=false}if(d!=document.activeElement&&d!=null){try{$$t.$dy.ea(d)}catch(h){}}return e},cb:function(a,b,c){var d=Math.max(b,c);var e=Math.sin(a)*d;var f=Math.cos(a)*d;var g=b/d;var h=c/d;return Math.atan2(f*h,e*g)},d9:function(a,b,c){a.addListener(b,c)},cl:function(a,b,c,d,e){if(d>b){var f=new $$t.ew;f.f=b;f.e=d-b;a.h.add(f)}var g=new $$t.ew;g.f=d;g.e=e;$$t.$dy.ec(g.a,c);a.h.add(g);b=d+e;return b},c5:function(a){a=$$t.$dy.dx.g(a,"");a=$5($5($5(a,"__","ZZQQQ"),"_",""),"ZZQQQ","_");return a},c6:function(a,b){b=String.empty();a=$$t.$dy.dx.g(a,"");var c="";a=$5(a,"__","ZZQQQ");var d=a.indexOf("_");var e=d+1;if(e<a.length){b=a.charAt(e).toString()}a=$5($5(a,"_",c),"ZZQQQ","_");return{ret:a,p1:b}},a2:function(a){if(String.isNullOrEmpty(a)){return false}for(var b=0,c=a.length;b<c;b++){if("#"!=a.charAt(b)){return false}}return true},a3:function(a){if(a!=null){var c=a.worksheets().getEnumerator();while(c.moveNext()){var b=c.current();var d=b.displayOptions();if(!b._w()&&d.visibility()==0){return false}}}return true},j:function(a){var b=1;var c=new $$4.x($$t.$e7.$type,1,a.keys());c.sort2(function(d,e){return $x(a.item(e),a.item(d))});var d=a.item(c.__inner[0]);if(d==0){b=1}else{var e=new $$4.x($$t.$e7.$type,0);for(var f=0;f<c.count();f++){var g=c.__inner[f];if(a.item(g)==d){e.add(g)}}e.sort2(function(h,i){return $x($$t.$dy.cr(h),$$t.$dy.cr(i))});b=e.__inner[0]}return b},a4:function(a,b){if($b($$a4.$a2.$type,a)!==null){return b}if($b($$a4.$m0.$type,a)!==null){return true}if($$t.$dy.ce!=null&&$$t.$dy.ce(a)){return true}return false},cm:function(a,b){var c=$$t.$dy.bw;var d=c.binarySearch(a);var e=a;if(d<0){d=~d;if(d==0){e=b?c.__inner[0]:a}else if(d==c.count()){e=b?a:c.__inner[d-1]}else if(b){e=c.__inner[d]}else{e=c.__inner[d-1]}}else if(!b&&d>0){e=c.__inner[d-1]}else if(b&&d<c.count()-1){e=c.__inner[d+1]}return e},a6:function(a,b){for(var c=0;c<a.count();c++){if(a.item(c)._c(b)){return true}}return false},a7:function(a,b,c){return!String.isNullOrEmpty(c)&&b.toLowerCase().indexOf(c.toLowerCase())>=0},cn:function(a){return $.ig.truncate($$a4.$aa.f(a))*15},b5:function(a){return a/15},b4:function(a){return a/15},e7:function(a){return new $$a.ae(0,a.x(),a.y(),a.width(),a.height())},br:function(){var a=new $$4.h($$0.$aw.$type,$$t.$e9.$type,0);a.item(0,0);a.item(49,9);var d=[1,2,3,4,37,38,39,40];for(var c=0;c<d.length;c++){var b=d[c];a.item(b,1)}var g=[5,6,7,8];for(var f=0;f<g.length;f++){var e=g[f];a.item(e,2)}var j=[41,42,43,44];for(var i=0;i<j.length;i++){var h=j[i];a.item(h,3)}var m=[9,10];for(var l=0;l<m.length;l++){var k=m[l];a.item(k,6)}var p=[11,48];for(var o=0;o<p.length;o++){var n=p[o];a.item(n,8)}var s=[12,13];for(var r=0;r<s.length;r++){var q=s[r];a.item(q,7)}var v=[18,19,20,21,45,46,47];for(var u=0;u<v.length;u++){var t=v[u];a.item(t,5)}var y=[14,15,16,17,22];for(var x=0;x<y.length;x++){var w=y[x];a.item(w,4)}return a},b:function(){var a=new Array(14);a[0]=0;a[7]=1;a[11]=2;a[9]=3;a[4]=4;a[3]=5;a[1]=6;a[12]=7;a[13]=8;a[10]=9;a[8]=10;a[2]=11;a[5]=12;a[6]=13;return a},bs:function(){var a=new $$4.h($$a4.$b9.$type,Array,0);var c=$.ig.$ep.getValues($$a4.$b9.$type).getEnumerator();while(c.moveNext()){var b=c.current();var d=null;switch(b){case 3:d=function(){var $ret=new Array;$ret.add([1,1,1,0]);$ret.add([1,0,1,1]);return $ret}();break;case 2:d=function(){var $ret=new Array;$ret.add([1,0]);$ret.add([0,1]);return $ret}();break;case 4:d=function(){var $ret=new Array;$ret.add([1,0,0,0]);$ret.add([0,0,1,0]);return $ret}();break;case 17:d=function(){var $ret=new Array;$ret.add([1,0,0,0]);$ret.add([0,0,0,0]);$ret.add([0,0,1,0]);$ret.add([0,0,0,0]);return $ret}();break;case 18:d=function(){var $ret=new Array;$ret.add([1,0,0,0,0,0,0,0]);$ret.add([0,0,0,0,0,0,0,0]);$ret.add([0,0,0,0,1,0,0,0]);$ret.add([0,0,0,0,0,0,0,0]);return $ret}();break;case 6:d=function(){var $ret=new Array;$ret.add([0,1,1,0]);return $ret}();break;case 5:d=function(){var $ret=new Array;$ret.add([1]);$ret.add([0]);$ret.add([0]);$ret.add([1]);return $ret}();break;case 7:d=function(){var $ret=new Array;$ret.add([0,0,1,1]);$ret.add([1,0,0,1]);$ret.add([1,1,0,0]);$ret.add([0,1,1,0]);return $ret}();break;case 8:d=function(){var $ret=new Array;$ret.add([0,0,1,1]);$ret.add([0,1,1,0]);$ret.add([1,1,0,0]);$ret.add([1,0,0,1]);return $ret}();break;case 9:d=function(){var $ret=new Array;$ret.add([0,0,1,1]);$ret.add([0,0,1,1]);$ret.add([1,1,0,0]);$ret.add([1,1,0,0]);return $ret}();break;case 10:d=function(){var $ret=new Array;$ret.add([0,0,1,1]);$ret.add([1,1,1,1]);$ret.add([1,1,0,0]);$ret.add([1,1,1,1]);return $ret}();break;case 11:d=function(){var $ret=new Array;$ret.add([0]);$ret.add([0]);$ret.add([0]);$ret.add([1]);return $ret}();break;case 12:d=function(){var $ret=new Array;$ret.add([0,1,0,0]);return $ret}();break;case 13:d=function(){var $ret=new Array;$ret.add([0,0,1,0]);$ret.add([0,0,0,1]);$ret.add([1,0,0,0]);$ret.add([0,1,0,0]);return $ret}();break;case 14:d=function(){var $ret=new Array;$ret.add([0,0,0,1]);$ret.add([0,0,1,0]);$ret.add([0,1,0,0]);$ret.add([1,0,0,0]);return $ret}();break;case 15:d=function(){var $ret=new Array;$ret.add([0,1,0,0]);$ret.add([0,1,0,0]);$ret.add([0,1,0,0]);$ret.add([1,1,1,1]);return $ret}();break;case 16:d=function(){var $ret=new Array;$ret.add([1,0,1,0]);$ret.add([0,0,0,1]);$ret.add([1,0,1,0]);$ret.add([0,1,0,0]);return $ret}();break;case-1:case 1:case 0:break;default:break}a.item(b,d)}return a},c:function(a){switch(a){case 1:return[1,1];case 2:return[9,3,3,3,3,3];case 3:return[9,3,3,3];case 4:return[2,2];case 5:return[3,1];case 7:return[3,3,9,3,3,3];case 9:return[5,1,11,1];case 8:return[4,2,10,2];case 10:return[5,1,2,1];case 11:return[3,3,9,3];case 12:return[9,3];case 13:case 14:case 6:case 0:return null;default:return null}},d:function(a){switch(a){case 1:return[4,3];case 2:return[4,3,1,3];case 3:return[1,3];case 4:return[8,3];case 5:return[8,3,1,3];case 6:return[8,3,1,3,1,3];case 8:return[3,1];case 9:return[3,1,1,1];case 10:return[3,1,1,1,1,1];case 11:return[1,1];case 7:case 0:return null;default:return null}},bt:function(){var a=new $$4.h(String,$$a.$ax.$type,2,$$6.$t.invariantCultureIgnoreCase);a.item("black",$$a4.$afr.a());a.item("green",$$a.$ax.u(255,0,255,0));a.item("white",$$a4.$afr.t());a.item("blue",$$a4.$afr.b());a.item("magenta",$$a4.$afr.k());a.item("yellow",$$a4.$afr.u());a.item("cyan",$$a4.$afr.d());a.item("red",$$a4.$afr.o());return a},bu:function(){var a=new $$4.h($$a.$ax.$type,String,0);a.item($$a.$ax.u(255,0,0,0),"Black");a.item($$a.$ax.u(255,255,255,255),"White");a.item($$a.$ax.u(255,255,0,0),"Red");a.item($$a.$ax.u(255,0,255,0),"Bright Green");a.item($$a.$ax.u(255,0,0,255),"Blue");a.item($$a.$ax.u(255,255,255,0),"Yellow");a.item($$a.$ax.u(255,255,0,255),"Pink");a.item($$a.$ax.u(255,0,255,255),"Turquoise");a.item($$a.$ax.u(255,128,0,0),"Dark Red");a.item($$a.$ax.u(255,0,128,0),"Green");a.item($$a.$ax.u(255,0,0,128),"Dark Blue");a.item($$a.$ax.u(255,128,128,0),"Dark Yellow");a.item($$a.$ax.u(255,128,0,128),"Violet");a.item($$a.$ax.u(255,0,128,128),"Teal");a.item($$a.$ax.u(255,192,192,192),"Gray-25%");a.item($$a.$ax.u(255,128,128,128),"Gray-50%");a.item($$a.$ax.u(255,153,153,255),"Periwinkle");a.item($$a.$ax.u(255,153,51,102),"Plum");a.item($$a.$ax.u(255,255,255,204),"Ivory");a.item($$a.$ax.u(255,204,255,255),"Light Turquoise");a.item($$a.$ax.u(255,102,0,102),"Dark Purple");a.item($$a.$ax.u(255,255,128,128),"Coral");a.item($$a.$ax.u(255,0,102,204),"Ocean Blue");a.item($$a.$ax.u(255,204,204,255),"Ice Blue");a.item($$a.$ax.u(255,0,204,255),"Sky Blue");a.item($$a.$ax.u(255,204,255,204),"Light Green");a.item($$a.$ax.u(255,255,255,153),"Light Yellow");a.item($$a.$ax.u(255,153,204,255),"Pale Blue");a.item($$a.$ax.u(255,255,153,204),"Rose");a.item($$a.$ax.u(255,204,153,255),"Lavender");a.item($$a.$ax.u(255,255,204,153),"Tan");a.item($$a.$ax.u(255,51,102,255),"Light Blue");a.item($$a.$ax.u(255,51,204,204),"Aqua");a.item($$a.$ax.u(255,153,204,0),"Lime");a.item($$a.$ax.u(255,255,204,0),"Gold");a.item($$a.$ax.u(255,255,153,0),"Light Orange");a.item($$a.$ax.u(255,255,102,0),"Orange");a.item($$a.$ax.u(255,102,102,153),"Blue-Gray");a.item($$a.$ax.u(255,150,150,150),"Gray-40%");a.item($$a.$ax.u(255,0,51,102),"Dark Teal");a.item($$a.$ax.u(255,51,153,102),"Sea Green");a.item($$a.$ax.u(255,0,51,0),"Dark Green");a.item($$a.$ax.u(255,51,51,0),"Olive Green");a.item($$a.$ax.u(255,153,51,0),"Brown");a.item($$a.$ax.u(255,51,51,153),"Indigo");a.item($$a.$ax.u(255,51,51,51),"Gray-80%");return a},df:function(a){if($$t.$dy.bp==null){$$t.$dy.bp=$$t.$dy.bu()}var b;if(!function(){var c=$$t.$dy.bp.tryGetValue(a,b);b=c.p1;return c.ret}()){return null}return b},s:function(a,b){var c=a._getFont(0);var d=a._workbook();var e=d.styles().normalStyle().styleFormat().font();var f=$$t.$dy.v(null,new $$t.oq(c,e,d),d,b);var g=0;var h=0;var j=a.paragraphs().getEnumerator();while(j.moveNext()){var i=j.current();var k=new $$t.ey;k.k=$m($$a4.$ch.$type,i.alignment());k.f=f.i.c();f.i.l(i.unformattedString());k.e=f.i.c()-k.f;f.h.add(k);var l=i._getFormattingRuns(d);for(var m=0;m<l.count();m++){var n=l.__inner[m];var o=m==l.count()-1?k.f+k.e:l.__inner[m+1].i()-h;g=$$t.$dy.cl(k,g,n.d(d),n.i()-h,o-(n.i()-h))}h+=i._n()-k.e;g=$$t.$dy.c0(k,g)}f.e=f.i.c();return f},r:function(a,b,c,d){var e=new $$t.op(a._getFont(0),c);return $$t.$dy.q(a,b,e,d)},q:function(a,b,c,d){var e=c;var f=$$t.$dy.v(a.unformattedString(),e,a._workbook(),d);var g=new $$t.ey;g.k=$m($$a4.$ch.$type,$$t.$dy.as(b));g.e=a._t();f.h.add(g);var h=0;var i=a._owner()!=null&&a._owner().allowDefaultValues()?new $$t.oq(null,c,a._workbook()):null;var k=a.getFormattingRuns().getEnumerator();while(k.moveNext()){var j=k.current();var l=j;if(i!=null){i._d(l);l=i}h=$$t.$dy.cl(g,h,l,j.startIndex(),j.length())}h=$$t.$dy.c0(g,h);return f},w:function(a,b,c,d,e,f,g){var h=new $$t.or(e);var i=$$t.$dy.t(a,c,d,h,f);if(!$$a4.$k.ak(g)){i.h.__inner[0].h.__inner[0].a._d(new $$a4.ah(g))}var j=-1;for(var k=0;k<a.length;k++){if(a.charAt(k)!=b.charAt(k)){if(j<0){j=k}}else if(j!=-1){i.r(j,k-j);var m=i.h.__inner[0].h.getEnumerator();while(m.moveNext()){var l=m.current();if(l.b(j)){l.a._d($$t.$dy.ax)}}j=-1}}if(j!=-1){i.r(j,b.length-j);var o=i.h.__inner[0].h.getEnumerator();while(o.moveNext()){var n=o.current();if(n.b(j)){n.a._d($$t.$dy.ax)}}}return i},u:function(a,b,c,d,e){var f=new $$t.or(d);return $$t.$dy.t(a,b,c,f,e)},t:function(a,b,c,d,e){if(a==null){a=String.empty()}var f=$$t.$dy.v(a,d,b,e);var g=new $$t.ey;g.k=$m($$a4.$ch.$type,$$t.$dy.as(c));g.e=f.e;f.h.add(g);var h=new $$t.ew;h.e=f.e;h.a._aa(f.a);g.h.add(h);return f},v:function(a,b,c,d){if(a==null){a=String.empty()}var e=new $$t.ez;e.i.l(a);e.e=a.length;$$t.$dy.ec(e.a,b);if(d&&c!=null){$$t.$dy.eg(c,e,8,9)}return e},e6:function(a,b){return{__x:a,__y:b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},co:function(){return 500},n:function(a){switch(a){case 1:return 0;case 0:return 1;case 2:return 3;case 3:return 2;default:return a}},da:function(a,b,c){var d=$$a4.$ny._dateTimeToExcelDate(c,b);var e=null;if(d.hasValue()){var f=a.v(d.value(),"",e);e=f.p2}return e},db:function(a,b){var c=$.ig.Date.prototype.fromValues(2e3,1,1,b?0:12,0,0,0);return $.ig.Date.prototype.toStringFormat(c,"tt",a)},bm:function(a,b){if(a==-1){a=0}else if(a>=$$t.$dy.a.length){a=1}if(b==-1){b=0}else if(b>=$$t.$dy.a.length){b=1}var c=$$t.$dy.a[a];var d=$$t.$dy.a[b];return d>c},cp:function(a){switch(a){case 6:case 5:return 3;case 2:case 10:case 12:case 8:case 13:return 2;case 0:return 0;default:return 1}},cq:function(a){if(a==-1){a=0}else if(a>=$$t.$dy.a.length){a=1}return $$t.$dy.a[a]},p:function(a){var b;if(!function(){var c=$$t.$dy.bn.tryGetValue(a,b);b=c.p1;return c.ret}()){b=10}return b},ab:function(a){var b;if(a.cellRanges().count()>1){b=2}if(a._bj().count()>0){b=1}else if(a._bi().count()>0){b=0}else{b=2}if(b==2){var c=a._m().activeTable();if(c!=null){b=7}}return b},k:function(a,b,c){var d=a._getCellValue1(b);var e=new $$a4.me(b);e.c=1;var f=a._av(e);c=f.j;if($b($$0.$aq.$type,d)!==null||$b($$a4.$dk.$type,d)!==null||d==null){return{ret:0,p2:c}}if($$a4.$k.a9(d)||$b($$0.$s.$type,d)!==null){if(f.c()&&(f.b&1)!=0){return{ret:2,p2:c}}else{return{ret:3,p2:c}}}else{return{ret:1,p2:c}}},cr:function(a){switch(a){case 1:return 3;case 3:return 2;case 2:return 1;case 0:return 0;default:return 0}},dd:function(a,b,c){var d=null;switch(b){case 93:d="Undo_InsertCells";break;case 95:d="Undo_InsertColumns";break;case 97:
d="Undo_InsertRows";break;case 94:case 96:case 98:d="Undo_Delete";break;case 28:d="Undo_ConditionalFormat";break;case 4:case 61:case 85:d="Undo_FormatCells";break;case 18:case 50:case 51:d="Undo_MergeCells";break;case 16:case 47:case 48:case 49:d="Undo_Hyperlink";break;case 99:d="Undo_Zoom";break;case 53:case 54:case 17:d="Undo_CreateNamedReference";break;case 62:d="Undo_Shape";break;case 63:d="Undo_ShapeAdd";break;case 64:d="Undo_ShapeRemove";break;case 21:d="Undo_ClearShapes";break;case 6:d="Undo_ChartAdd";break;case 7:d="Undo_ChartModify";break;case 8:d="Undo_ChartRemove";break;case 66:d="Undo_SparklineAdd";break;case 68:d="Undo_SparklineColorChange";break;case 69:d="Undo_SparklineDataChange";break;case 67:d="Undo_SparklineRemove";break;case 70:d="Undo_SparklineStyleChange";break;case 71:d="Undo_SparklineTypeChange";break;case 73:d="Undo_CreateTable";break;case 84:d="Undo_RemoveTable";break;case 25:d="Undo_ClearTables";break;case 35:{switch(c){case"Reset":d="Undo_ResetOptions";break;case"TabColorInfo":d="Undo_TabColor";break;case"View":d="Undo_View";break}break}case 1:case 38:case 39:case 40:case 15:d="Undo_Filter";break;case 80:case 2:case 22:d="Undo_Sort";break;case 24:case 81:case 82:case 83:d="Undo_Style";break;case 26:{switch(c){case"Width":case"Hidden":d="Undo_ResizeColumn";break;case"OutlineLevel":d="Undo_Group";break}break}case 60:{switch(c){case"Height":case"Hidden":d="Undo_ResizeRow";break;case"OutlineLevel":d="Undo_Group";break}break}case 65:{switch(c){case"TabColorInfo":d="Undo_TabColor";break}break}case 90:{switch(c){case"ResizeColumns":d="Undo_ResizeColumn";break;case"ResizeRows":d="Undo_ResizeRow";break}break}}if(d==null){return $$a4.$b8.$getName(b)}return $$t.$dy.dl(a,d,[])},de:function(a,b){var c=a._fs("MenuItem_ClearFilterEmpty",[]);if(a._a8()!=null){var d=a._a8()._fp(b);if(!String.isNullOrEmpty(d)){c=a._fs("MenuItem_ClearFilterForColumn",[d])}}return c},cs:function(a){var b=a.numberFormat().currencySymbol();if(String.isNullOrEmpty(b)){return 0}var c=111.11.toLocaleString(a.name(),{style:"currency",currency:"USD",currencyDisplay:"symbol"});var d=c.indexOf(b);var e=c.indexOf("1");if(d<0||e<0){return 0}if(d<e){return/\s/i.test(c.charAt(d+b.length))?2:0}else{return/\s/i.test(c.charAt(d-1))?3:1}},di:function(a,b,c){var d=String.empty();var e=b.workbook();if(a==null){}else if(typeof a==="string"){d=a}else if($b($$a4.$ed.$type,a)!==null){d=a._toString1(e.cellReferenceMode())}else if($b($$a4.$dk.$type,a)!==null){d=a.toString()}else if($b($$0.$aq.$type,a)!==null){d=a?"TRUE":"FALSE"}else if($b($$a4.$dq.$type,a)!==null){d=a.unformattedString()}else if(a!=null){var f;if(function(){var g=$$a4.$k.bz(e,a,f);f=g.p2;return g.ret}()){var g=e._b2().a(c._cs());if(g.o()){var h=-1;h=g.ab(f);if(h>=0){var i=g.c(h);var j=$m($$0.$s.$type,null);var k=$m($$0.$bb.$type,null);if(i.isDateSection()&&f>=0){if(i.hasAnyDateParts()){j=$$a4.$ny._be(e,f,true,true)}else if(i.hasAnyTimeParts()){var l=$$a4.$ny._be(e,f,true,true);if($l(l,null)){k=$m($$0.$bb.$type,$$a4.$ny._bq(f,true));if($l(k,null)&&$.ig.util.timeSpanTotalDays(k.value())>=1){j=l}}}}if($l(j,null)){if(i.hasAnyTimeParts()||$.ig.Date.prototype.getTimeOfDay(j.value())!=0){d=$$t.$dy.dr(j.value(),b)}else{d=$$t.$dy.dw(j.value(),b)}}else if($l(k,null)){d=$$t.$dy.dt(k.value(),b)}else if(i.isNumberSection()){var m=i.percentCount();if(m==1){d=$$t.$dy.du(f,b._y())}}}}if(String.isNullOrEmpty(d)){d=$ae(f,"r",b._y())}}else{}}return d},av:function(a){return a.styles()._i(9)._i()._bh()},aw:function(a,b){if(String.isNullOrEmpty(a)){return null}if($$t.$dy.bo==null){$$t.$dy.bo=$$t.$dy.bt()}var c=new $$a.ax;if(!function(){var d=$$t.$dy.bo.tryGetValue(a,c);c=d.p1;return d.ret}()){if(a.startsWith1("Color",3)&&a.length>5){a=a.substr(5)}if($aj(a.charAt(0))){var d;if(function(){var e=$z(a,d);d=e.p1;return e.ret}()&&d>=1&&d<=56){c=b._item$i(d-1)}}else{if(!function(){var e=$$t.$dy.bo.tryGetValue(a,c);c=e.p1;return e.ret}()){return null}}}return new $$a4.ah(c)},aq:function(a,b,c,d,e){if(a!=null){if($b($$0.$aq.$type,a)!==null||$b($$a4.$dk.$type,a)!==null){return 2}if($$a4.$k.a9(a)||$b($$0.$s.$type,a)!==null){var f=c!=null?c.workbook():null;if(f!=null){var g=$$t.$dy.ah(b,c,d,e,true);if(g!=null&&g.o()&&g.n(0)&&!g.l(0)){return 1}}return 3}}return 1},dj:function(a,b){var c=a._getCellText(b);c=$5($5(c.trim(),$$6.$h.newLine()," "),"\n"," ");return c},an:function(a,b){if($j(b,null)||a==-1){return-1}return $$t.$dy.ao($$a4.$k.aj(a),$m($$0.$be.$type,$i(b.value())))},ap:function(a){if(a==null||a._c==-1||!a._d.hasValue()){return-1}return $$t.$dy.ao($$a4.$k.aj(a._c),$m($$0.$be.$type,$i(a._d.value())))},ao:function(a,b){if(!b.hasValue()){return-1}var c=b.value();switch(a){default:case 0:switch(c){case 2:return 1;case 1:return 2;default:case 0:return 3}case 1:switch(c){case 2:return 4;case 1:return 5;default:case 0:return 6}case 18:switch(c){case 2:return 45;case 1:return 46;default:case 0:return 47}case 9:switch(c){case 3:return 4;case 2:return 27;case 1:return 28;default:case 0:return 6}case 8:switch(c){case 3:return 1;case 2:return 25;case 1:return 26;default:case 0:return 3}case 14:switch(c){case 4:return 4;case 3:return 27;case 2:return 5;case 1:return 28;default:case 0:return 6}case 13:switch(c){case 4:return 1;case 3:return 25;case 2:return 2;case 1:return 26;default:case 0:return 3}case 3:switch(c){case 2:return 10;case 1:return 11;default:case 0:return 29}case 4:switch(c){case 2:return 14;case 1:return 15;default:case 0:return 16}case 5:switch(c){case 2:return 10;case 1:return 17;default:case 0:return 18}case 12:switch(c){case 3:return 10;case 2:return 17;case 1:return 12;default:case 0:return 13}case 10:switch(c){case 3:return 29;case 2:return 30;case 1:return 31;default:case 0:return 32}case 6:switch(c){case 2:return 19;case 1:return 20;default:case 0:return 21}case 7:switch(c){case 2:return 22;case 1:return 23;default:case 0:return 24}case 2:switch(c){case 2:return 7;case 1:return 8;default:case 0:return 9}case 17:switch(c){case 2:return 42;case 1:return 43;default:case 0:return 44}case 11:switch(c){default:case 0:return 38;case 1:return 39;case 2:return 40;case 3:return 41}case 16:switch(c){case 4:return 32;case 3:return 33;case 2:return 34;case 1:return 35;default:case 0:return 36}case 15:switch(c){default:case 0:return 37;case 1:return 38;case 2:return 39;case 3:return 40;case 4:return 41}case 19:switch(c){case 4:return 48;case 3:return 49;case 2:return 50;case 1:return 51;default:case 0:return 52}}},d0:function(a){if(a==null){return null}if(a.iconSet()==-1||a.iconIndex()<0){return $$t.$dy.d4}return $$6.$w.a($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type),a.iconSet(),$m($$0.$aw.$type,a.iconIndex()))},d1:function(a){if(a==null){return null}if(a.iconSet()==-1||$j(a._iconIndex$i(),null)){return $$t.$dy.d4}return $$6.$w.a($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type),a.iconSet(),a._iconIndex$i())},d2:function(a){if(a==null){return null}if(a.iconSet()==-1||$j(a._iconIndex$i(),null)){return $$t.$dy.d4}return $$6.$w.a($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type),a.iconSet(),a._iconIndex$i())},dk:function(a,b){return $.ig.Date.prototype.toStringFormat($.ig.Date.prototype.fromValues(2017,a,1,0,0,0,0),"MMMM",b)},l:function(a,b,c,d){var e=new $$4.h($$t.$e7.$type,$$0.$aw.$type,0);e.item(2,0);e.item(3,0);e.item(1,0);var f;var g;var h;var i;if(d){f=b._firstRowIndex();g=b._lastRowIndex();h=b._firstColumnIndex()+c;i=h}else{f=b._firstRowIndex()+c;g=f;h=b._firstColumnIndex();i=b._lastColumnIndex()}var k=a.rows()._m(f,g).getEnumerator();while(k.moveNext()){var j=k.current();var m=j._ch(h,i,false).getEnumerator();while(m.moveNext()){var l=m.current();var n=l.r();var o;var p=function(){var q=$$t.$dy.k(j,n,o);o=q.p2;return q.ret}();if(p!=0){e.item(p,e.item(p)+1)}}}var q=$$t.$dy.j(e);return q},by:function(a){var b=a.table();var c=b.wholeTableRegion();var d=a.index()+c.firstColumn();var e=c.firstColumn();var f=c.lastColumn();var g=new $$4.x($$a4.$y5.$type,0);for(var h=e;h<=f;h++){if(h==d){continue}var i=b.columns()._item(h-e);if(null!=i.filter()){g.add(i)}}return g},bx:function(a,b){var c=new $$4.x($$a4.$y5.$type,0);var d=a.filterSettings();var e=d.sortAndFilterAreaRegion();if(e!=null){var f=e.firstColumn()+b;var g=e.firstColumn();var h=e.lastColumn();for(var i=g;i<=h;i++){if(i==f){continue}var j=d.getFilter(i-g);if(null!=j){c.add(j._b())}}}return c},b8:function(a,b){switch(a){case 7:case 10:case 11:case 12:case 13:b*=2;break;case 14:b*=3;break}return b},ct:function(a){var b=$ae(a,"r",$$0.$cf.invariantCulture());var c=b.indexOf(".");return c<0?0:b.length-(c+1)},c1:function(a,b){for(var c=0;c<a.count();c++){if(a.item(c)._c(b)){return $m($$t.$i.$type,a.item(c))}}return $m($$t.$i.$type,null)},e5:function(a,b,c){if($$a4.$ah.l_op_Equality(a,null)){return $$a4.$k.gw}return $$a4.$k.g2(a._aj(b,c,true))},dl:function(a,b,c){if(a!=null){return a._fs(b,c)}return $$6.$ak.getString("spreadsheet",b,c)},e:function(a){var b=null;var c=null;var e=a.worksheets().getEnumerator();while(e.moveNext()){var d=e.current();if(d._w()){if(b==null){b=d}else{if(c==null){c=new $$4.x($$a4.$jk.$type,0);c.add(b)}c.add(d)}}}if(c!=null){return c.toArray()}else if(b!=null){return[b]}else{return new Array(0)}},at:function(a){var b=null;if(a._ar()){b=a._k();if(b==$$a4.$hi._e){b=null}}return b},ak:function(a){var b=null;if(a!=null&&a.chartArea()!=null){b=a.chartArea()._ap();if($b($$a4.$v1.$type,b)!==null){b=null}}return b},au:function(a){var b=null;if(a._as()){b=a._n();if(b==$$a4.$hn._i){b=null}}return b},aj:function(a){var b=null;if(a!=null&&a.chartArea()!=null){b=a.chartArea().border();if(b!=null&&b.lineStyle()==7){b=null}}return b},b9:function(a){if($b($$a4.$a2.$type,a)!==null){var b=$$t.$dy.aj(a);if(b==null||b.lineStyle()==7||b.widthInPoints()<=0){return 0}return $$a4.$n._eq(b.widthInPoints())/2}if(a==null||!a._as()){return 0}var c=a.outline();if(c==null||c==$$a4.$hn._i){return 0}var d=$$a4.$k.c0(c.__d);if($b($$a4.$lm.$type,a)!==null==false){d/=2}return d},x:function(a,b,c){var d=a._de(b,c);if(d!=null){return new $$t.ge(d.columns()._item(c-d._by()._firstColumnIndex()))}else if(a.filterSettings().region()!=null&&a.filterSettings().region()._q(b,c)){return new $$t.gd(a,c-a.filterSettings().region()._v())}else{return null}},cu:function(a,b,c){if(b._aa()>1){var d=new Array(b._ad());var e=a?new Array(b._ad()):null;for(var f=0;f<d.length;f++){d[f]=0}var g;var h=c.rows()._aj(b.firstRow());if(h!=null){var j=h._ch(b.firstColumn(),b.lastColumn(),true).getEnumerator();while(j.moveNext()){var i=j.current();d[i.r()-b.firstColumn()]=function(){var k=$$t.$dy.k(h,i.r(),g);g=k.p2;return k.ret}();if(e!=null){e[i.r()-b.firstColumn()]=c._b4(h,i.r()).fill()}}}var k=a?b.firstRow()+1:Math.min(b.lastRow(),b.firstRow()+2);var m=c.rows()._m(b.firstRow()+1,k).getEnumerator();while(m.moveNext()){var l=m.current();var n;var o=b.firstColumn();var q=l._ch(b.firstColumn(),b.lastColumn(),true).getEnumerator();while(q.moveNext()){var p=q.current();for(;o<=p.r();o++){n=function(){var r=$$t.$dy.k(l,o,g);g=r.p2;return r.ret}();if(d[o-b.firstColumn()]==0){d[o-b.firstColumn()]=n}else if(d[o-b.firstColumn()]!=n){return l.index()-b.firstRow()}else if(e!=null&&e[o-b.firstColumn()]!=c._b4(l,o).fill()){return l.index()-b.firstRow()}}}for(;o<=b.lastColumn();o++){n=function(){var r=$$t.$dy.k(l,o,g);g=r.p2;return r.ret}();if(d[o-b.firstColumn()]==0){d[o-b.firstColumn()]=n}else if(d[o-b.firstColumn()]!=n){return l.index()-b.firstRow()}else if(e!=null&&e[o-b.firstColumn()]!=c._b4(l,o).fill()){return l.index()-b.firstRow()}}}}return 0},dn:function(a,b,c){var d=1;if(b._a8()!=null){var e=b._a8()._bc().rows()._aj(c.row());if(e!=null){var f=new $$a4.me(c.column());f.c=1;var g=e._av(f);if(!$.ig.util.isNaN(g.e)){if(g.c()&&(g.b&1)!=0){d=2}else{d=3}}}}return $$t.$dy.dm(a,b,d)},dm:function(a,b,c){var d;switch(c){case 2:d=a?"MenuItem_SortAscending_Date":"MenuItem_SortDescending_Date";break;case 3:d=a?"MenuItem_SortAscending_Number":"MenuItem_SortDescending_Number";break;default:case 1:d=a?"MenuItem_SortAscending_Text":"MenuItem_SortDescending_Text";break}return $$t.$dy.dl(b,d,[])},y:function(a){if(a!=null&&a._cx()){var b=a._a0();if($b($$a4.$fz.$type,b)!==null){b=b.a()}return $b($$t.$c3.$type,b)}return null},ai:function(a){return $b($$a4.$hd.$type,a._s())!==null?32:0},ah:function(a,b,c,d,e){var f=c!=null&&b!=null?b._be(c.index(),d,true):null;var g;if(f!=null&&f._h()!=null&&f._h().formatString()!=null){g=f._h()._cs()}else{g=a._cs()}if(!e||g!=0){var h=b.workbook();if(h!=null){return h._b2().a(g)}}return null},bz:function(a,b,c){var d=a.filterSettings();var e=d!=null?d.sortAndFilterAreaRegion():null;if(null==d||null==e){c=0;return{ret:null,p2:c}}var f=e.firstRow();var g=e.lastRow();var h=e.firstColumn()+b;var i=$$t.$dy.bx(a,b);return{ret:function(){var j=$$t.$dy.b0(a,f,g,h,i,c);c=j.p5;return j.ret}(),p2:c}},b1:function(a,b){var c=a._worksheet();var d=a.table();var e=a.table().dataAreaRegion();var f=e.firstRow();var g=e.lastRow();var h=$$t.$dy.by(a);return{ret:function(){var i=$$t.$dy.b0(c,f,g,a._at(),h,b);b=i.p5;return i.ret}(),p1:b}},b0:function(a,b,c,d,e,f){var g=new $$4.q(String,0);var h=new $$4.h($$t.$e7.$type,$$0.$aw.$type,0);h.item(2,0);h.item(3,0);h.item(1,0);var j=a.rows()._m(b,c).getEnumerator();while(j.moveNext()){var i=j.current();var k=false;var m=e.getEnumerator();while(m.moveNext()){var l=m.current();if(false==l.filter()._e(l.worksheet(),i,i.index(),l.columnIndex())){k=true;break}}if(k){continue}var n;var o=function(){var p=$$t.$dy.k(i,d,n);n=p.p2;return p.ret}();if(o!=0){g.add(n);h.item(o,h.item(o)+1)}}f=$$t.$dy.j(h);var p=new $$4.x($.ig.$op.$type,1,g);p.sort();return{ret:p,p5:f}},f:function(a,b){var c=new Array(b.count());for(var d=0;d<c.length;d++){var e=b.item(d);c[d]=a._cx(e.firstRow(),e.firstColumn(),e.lastRow(),e.lastColumn())}return c},a8:function(a,b,c){if(a!=null){for(var d=b,e=Math.min(a.length,b+c);d<e;d++){if(/\s/i.test(a.charAt(d))){return true}}}return false},cv:function(a,b){var c=a.indexOf("\r",b);if(c<0){c=a.indexOf("\n",b)}return c},cw:function(a,b,c){var d=a.indexOf("\r",b);if(d<0||d>=b+c-1){d=a.indexOf("\n",b);if(d>=b+c-1){d=-1}}return d},ec:function(a,b){var c=b._bold$i();if($l(c,null)){a._o($m($$0.$aq.$type,$j(c,true)))}var d=b.colorInfo();if($$a4.$ah.l_op_Inequality(d,null)){a._d(d)}var e=b.height();if(e>=0){a._p($m(Number,e))}var f=b._italic$i();if($l(f,null)){a._q($m($$0.$aq.$type,$j(f,true)))}var g=b.name();if(!String.isNullOrEmpty(g)){a._v(g)}var h=b._strikeout$i();if($l(h,null)){a._r($m($$0.$aq.$type,$j(h,true)))}var i=b.superscriptSubscriptStyle();if(i!=-1){a._s($m($$a4.$ca.$type,i))}var j=b.underlineStyle();if(j!=-1){a._t($m($$a4.$cb.$type,j))}},a9:function(a,b){return b._firstRowIndex()<=a.lastRow()&&b._lastRowIndex()>=a.firstRow()&&b._firstColumnIndex()<=a.lastColumn()&&b._lastColumnIndex()>=a.firstColumn()},ba:function(a){return a==2||a==34},bc:function(a){if(a==null||$.ig.$op.referenceEquals(a,$$a4.$ab.noColor())){return true}return $b($$a4.$ac.$type,a)!==null&&a.patternStyle()==0},bb:function(a){if(a.startsWith("\\\\")){return false}var b;if(a.length>1&&(b=a.indexOf("@",1))>0&&(b==a.length-1||a.charAt(b+1)!="@")&&!$$t.$dy.a8(a,0,b)){return true}return false},bd:function(a){if(String.isNullOrEmpty(a)||/\s/i.test(a.charAt(0))){return false}var b=false;var c;if(a.startsWith("\\\\")){var d=a.length==2?String.empty():a.substr(2);b=String.isNullOrWhiteSpace(d)||$$6.$x.isWellFormedUriString(d,0)}else if($$t.$dy.bb(a)){b=true}else if(function(){var e=$$6.$x.tryCreate(a,0,c);c=e.p2;return e.ret}()){if(c.isAbsoluteUri()){if(a.length>c.scheme().length+1){try{if(!String.isNullOrEmpty(c.localPath())&&/\s/i.test(c.localPath().charAt(0))){}else if($$b.$a.a(c.scheme())){b=true}}catch(e){b=false}}}else{var f=a.trimEnd([]);if(f!=a){var g=$$6.$x.tryCreate(f,0,c);c=g.p2}if(f.length>4){if(c.isWellFormedOriginalString()){if(a.startsWith1("www.",3)||a.startsWith1("ftp",3)){b=true}}else if(f.startsWith("ftp.")){var h=f.substr(4);if(!/\s/i.test(h.charAt(0))){b=true}}}else if(f.length==0){b=false}}}else{var i=a.indexOf($$6.$x.schemeDelimiter);if(i>0){var j=a.substr(0,i);if($$b.$a.a(j)){var k=String.empty();if(i+$$6.$x.schemeDelimiter.length<a.length){k=a.substr(i+$$6.$x.schemeDelimiter.length).trim()}if(k.length==0||!$.ig.util.stringCompare1("ftp",j,1)){b=true}}}else if(a.startsWith1("mailto:",3)){if(a.length>7&&!/\s/i.test(a.charAt(7))){b=true}}}return b},be:function(a){return a==3||a==2},ed:function(a,b,c){if(performance!==undefined&&performance.measure!==undefined)performance.measure(a,b,c)},c0:function(a,b){if(b<a.f+a.e){var c=new $$t.ew;c.f=b;c.e=a.f+a.e-b;a.h.add(c);b=c.f+c.e}return b},ee:function(a,b){var c=a.conditionalFormats();var d=new $$a4.lw(a);var e=$$a4.$zk.bx(a._y()).toString();for(var f=c.count()-1;f>=0;f--){var g=c.item(f);if(g._ab(b)){d.clear();var i=g.regions().getEnumerator();while(i.moveNext()){var h=i.current();d._add(h)}var j=false;for(var l=0;l<b.length;l++){var k=b[l];j=d._remove2(k)||j}if(j){if(d._t().count()==0){a.conditionalFormats().removeAt(f)}else{var m=$$a4.$lw._ab(1,a,d._t(),e);g.setRegions(m,$m($$a4.$b0.$type,1))}}}}},ef:function(a,b){a.removeListener(b)},eg:function(a,b,c,d){var e=a.styles()._i(c)._i()._bh()._aj(a,false,false);var f=null;b.l(function(g){var h=g._d();if($$a4.$ah.l_op_Inequality(h,null)){if($$a.$ax.b(h._aj(a,false,false),e)){if($$a4.$ah.l_op_Equality(f,null)){f=a.styles()._i(d)._i()._bh()}g._d(f)}}})},eh:function(a,b){a._setAlignment(b,true,$$t.$dy.ai(a))},ei:function(a,b){a._u()._setBold(b,true,$$t.$dy.ai(a))},ek:function(a,b){a._setDiagonalBorders(b,true,$$t.$dy.ai(a))},el:function(a,b){a._setFill(b,true,$$t.$dy.ai(a))},em:function(a,b){a._u()._setColorInfo(b,true,$$t.$dy.ai(a))},en:function(a,b){a._u()._setName(b,true,$$t.$dy.ai(a))},eo:function(a,b){a._u()._setHeight(b,true,$$t.$dy.ai(a))},ep:function(a,b){a._setFormatString(b,true,$$t.$dy.ai(a))},eq:function(a,b){a._setIndent(b,true,$$t.$dy.ai(a))},er:function(a,b){a._u()._setItalic(b,true,$$t.$dy.ai(a))},es:function(a,b){a._setLocked(b,true,$$t.$dy.ai(a))},et:function(a){if(performance!==undefined&&performance.mark!==undefined)performance.mark(a)},eu:function(a,b){a._setRotation(b,true,$$t.$dy.ai(a))},ev:function(a,b){a._setShrinkToFit(b,true,$$t.$dy.ai(a))},ew:function(a,b){a._u()._setStrikeout(b,true,$$t.$dy.ai(a))},ex:function(a,b){a._bh(b,true,$$t.$dy.ai(a))},ey:function(a,b){a._u()._setSuperscriptSubscriptStyle(b,true,$$t.$dy.ai(a))},ez:function(a,b){a._u()._setUnderlineStyle(b,true,$$t.$dy.ai(a))},e0:function(a,b){a._setVerticalAlignment(b,true,$$t.$dy.ai(a))},e1:function(a,b){a._setWrapText(b,true,$$t.$dy.ai(a))},bl:function(a){var b=a._ao();if($b($$a4.$m0.$type,b._f())!==null){return false}return $$a4.$k.bc(a._b6())},dp:function(a){if(!String.isNullOrEmpty(a)){var b=0;var c=a.length;var d;var e=null;while(b<c&&(d=$$t.$dy.cv(a,b))>=0){if(e==null){e=new $$6.aj(0)}if(d>b){e.m(a,b,d-b)}if(a.charAt(d)=="\r"&&d<c-1&&a.charAt(d+1)=="\n"){d++}b=d+1}if(e!=null){if(b<c){e.m(a,b,c-b)}a=e.toString()}}return a},i:function(a){switch(a){case 0:return 0;case 7:return 1;case 9:return 3;case 11:return 2;case 3:return 5;case 4:return 4;case 2:return 13;case 10:return 11;case 12:return 7;case 8:return 12;case 5:return 14;case 1:return 6;default:case 6:case 13:case-1:return 0}},m:function(a){switch(a){case 7:return 3;case 3:return 1;case 5:return 2;default:case 1:return 0}},dr:function(a,b){return $$t.$dy.dw(a,b)+" "+$$t.$dy.ds(a,b)},dt:function(a,b){var c=$$0.$s.today();c=$.ig.Date.prototype.addHours(c,$.ig.util.timeSpanTotalHours(a));return $$t.$dy.ds(c,b)},ds:function(a,b){var c=a.toLocaleTimeString(b._y().name());if($$t.$aa.c){c=$$t.$dy.dy.g(c,"")}return c},du:function(a,b){var c=a*100;return c.toLocaleString(b.name(),{maximumFractionDigits:20,maximumSignificantDigits:15})+b.numberFormat().percentSymbol()},d3:function(a){if($$t.$dy.dz==null||$$t.$dy.dz._d!=a){var b=$$a4.$i3.af(a);$$t.$dy.dz=new $$6.u($$a4.$nd.$type,$$0.$cf.$type,new $$a4.nd(1,b,a,null),a)}return $$t.$dy.dz},dw:function(a,b){return $$t.$dy.da($$t.$dy.d3(b._y())._c,a,b.workbook())},dv:function(a,b){return $$t.$dy.da($$t.$dy.d3(b._e6())._c,a,b)},c3:function(a){return $m($$0.$aq.$type,$j(a,true)?false:true)},ar:function(a,b){return a==b?0:b},am:function(a,b){return a==1||a==33?0:b?33:1},al:function(a,b){return a==2||a==34?0:b?34:2},o:function(a){switch(a){case 3:return 0;case 1:return 1;default:case 0:return 3;case 2:return 2}},ad:function(a){var b;switch(a){default:case 1:b=0;break;case 4:b=5;break;case 2:case 6:b=2;break;case 3:b=1;break;case 5:b=3;break;case 7:b=4;break}return b},ag:function(a){switch(a){case 0:return 0;case 1:return 1;default:case 2:return 2;case 4:return 4;case 3:return 3}},cc:function(a){return a*Math.PI/180},z:function(a){return new $$t.dz(a.o(),a.m())},aa:function(a){return new $$t.d1(a._firstRowIndex(),a._firstColumnIndex(),a._lastRowIndex(),a._lastColumnIndex())},g:function(a){var b=new Array(a.count());for(var c=0;c<b.length;c++){b[c]=$$t.$dy.aa(a.item(c))}return b},as:function(a){switch(a){case 3:return 2;case 4:return 1;case 0:case 5:return 4;case 1:return 5;case 2:return 0;default:return 4}},ac:function(a){switch(a){case-4130:return 3;case-4117:return 4;case-4131:return 0;case-4152:return 1;default:case-4108:return 2}},ae:function(a){switch(a){case 2:case 3:return 3;case 1:case 6:return 4;case 4:return 0;case 5:return 1;default:case 0:return 2}},af:function(a){switch(a){case-4130:return 3;case-4117:return 4;case-4160:return 0;case-4107:return 2;default:case-4108:return 1}},ay:function(a){return new $$a4.j2(1,a.row(),a.column())},a0:function(a){return new $$a4.l0(1,a.firstRow(),a.lastRow(),a.firstColumn(),a.lastColumn())},az:function(a){return $$t.$dy.a1(a.row(),a.column())},a1:function(a,b){return new $$a4.l0(1,a,a,b,b)},h:function(a){var b=new Array(a.count());for(var c=0;c<b.length;c++){b[c]=$$t.$dy.a0(a.item(c))}return b},e4:function(a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=c.key();var f=new Array(c.value().length);for(var g=0;g<f.length;g++){f[g]=c.value()[g]._h()}$$t.$dy.e3(c.key(),f,b)}},e3:function(a,b,c){var d=null;var f=a.tables().getEnumerator();while(f.moveNext()){var e=f.current();if(c!=null&&c.contains(e.name())){continue}var g=e.dataAreaRegion()._h();for(var h=0;h<b.length;h++){var i=b[h];if(i._intersectsWith(g)){var k=e.columns().getEnumerator();while(k.moveNext()){var j=k.current();if(i._contains1(j.dataAreaRegion()._h())){if(d==null){d=new $$4.q($$a4.$h8.$type,0)}d.add(j)}}}}}if(d!=null){var m=d.getEnumerator();while(m.moveNext()){var l=m.current();var n=null;var o=l.dataAreaRegion();var p=o.firstRow();for(var q=p;q<=o.lastRow();q++){var r=a.rows()._aj(q);if(r==null){n=null;break}else{var s=r._ar(l._at());if(q==p&&s!=null){n=s}else if(s==null||!s._ao(n)){n=null;break}}}if(n!=null){n=n._g()}l._setColumnFormula1(n,false)}}},$type:new $.ig.Type("SpreadsheetUtilities",$.ig.$ot)},true);$c("ShapeGeometry:ce","Object",{staticInit:function(){$$t.$dy.ce=$$t.$ce.h;$$t.$dy.cf=$$t.$ce.w;$$t.$dy.cd=$$t.$ce.g},p:function(a,b,c,d){if(b==null||$b($$a4.$hi.$type,b)!==null){a.l(' fill-opacity="0"')}else if($b($$a4.$hj.$type,b)!==null){var e=b;var f=c!=null?c.workbook():null;var g=e.colorInfo()._aj(f,false,true);a.l(' fill="');a.l(g.l()==0?"none":g.colorString());a.l('"')}else if($b($$a4.$hk.$type,b)!==null){var h=b._f();var i=d(h);a.l(' fill="');a.l("url(#"+i+")");a.l('"')}},r:function(a,b,c,d){if(b==null||$b($$a4.$hn.$type,b)!==null){}else if($b($$a4.$ho.$type,b)!==null){var e=1;var f=b;var g=c!=null?c.workbook():null;var h=f.colorInfo()._aj(g,false,true);var i=$$a4.$k.c0(f.__d);i=Math.max($$a4.$n._er(c.workbook(),i,true,true)*d,e);if(h.l()!=0){a.l(' stroke="');a.l(h.colorString());a.l('"')}a.l(' stroke-width="');a.k(i);a.l('"');a.l(' stroke-linejoin="miter" stroke-miterlimit="10"')}},w:function(a,b,c,d,e,f,g){var h=a.c();var i=null;var j=function(k){if(i==null){i=new $$4.h($$v.$aj.$type,String,0)}var l;if(!function(){var m=i.tryGetValue(k,l);l=m.p1;return m.ret}()){var m=String.isNullOrEmpty(g.__b8)?"img":$$2.$ae.v(g.__b8);l=m+i.count();i.item(k,l)}return l};var k=$b($$a4.$lm.$type,g);var l=k!=null&&k._image()!=null?new $$a4.hk(new $$v.aj(0,k._image().d(),k._image().b())):null;var m;if(l==null||$$t.$dy.au(g)==null){m=$$t.$ce.v($$6.$aj.$type,a,b*15,c*15,g,function(n,o,p,q,r,s,t,u,v){$$t.$ce.t(n,o,p,q,r,s,t,u,v,d/r,e/s,f,j,l)})}else{m=$$t.$ce.v($$6.$aj.$type,a,b*15,c*15,g,function(n,o,p,q,r,s,t,u,v){$$t.$ce.t(n,o,p,q,r,s,t,null,v,d/r,e/s,f,j,l)});$$t.$ce.v($$6.$aj.$type,a,b*15+d*15,c*15+e*15,g,function(n,o,p,q,r,s,t,u,v){$$t.$ce.t(n,o,p,q,r,s,null,u,null,d/r/2,e/s/2,f,j,null)})}if(i!=null&&i.count()>0){var n="<defs>";var p=i.getEnumerator();while(p.moveNext()){var o=p.current();n+='<pattern patternUnits="userSpaceOnUse" x="'+d+'" y="'+e+'" width="'+b+'" height="'+c+'" id="'+o.value()+'">';n+='   <image preserveAspectRatio="none"';n+=' xlink:href="';n+="data:"+$$v.$cw.s(o.key().d())+";base64,"+$$6.$g.toBase64String(o.key().b());n+='"';n+=' width="'+b+'"';n+=' height="'+c+'"';n+="/>";n+="</pattern>"}n+="</defs>";a.x(h,n)}return m},t:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=new $$6.aj(0);var p=new $$t.cd(o,e,f,j,k);var r=c.b().getEnumerator();while(r.moveNext()){var q=r.current();q._accept$2$i($$t.$gp.$type,$$0.$aq.$type,p,d)}if(g!=null||h!=null){a.l('<path d="');a.l(o.toString());a.l('"');$$t.$ce.p(a,g,b,m);$$t.$ce.r(a,h,b,l);a.l("/>")}if(i!=null){a.l('<path d="');a.l(o.toString());a.l('"');$$t.$ce.p(a,i,b,m);$$t.$ce.r(a,h,b,l);a.l("/>")}if(n!=null){a.l('<path d="');a.l(o.toString());a.l('"');$$t.$ce.p(a,n,b,m);a.l("/>")}},e:null,o:null,i:null,j:null,init:function(a,b){$.ig.$op.init.call(this);this.o=a;this.e=b;this.i=new $$4.x($$t.$gj.$type,0);this.j=new $$4.x($$t.$gj.$type,0)},g:function(a){var b=false;if(a!=null&&$b($$ae.$d6.$type,a._o())!==null){var c=a._o()._q;if($j(c,null)||c.value()==0){b=true}}return b},v:function($t,a,b,c,d,e){if(d==null){return $$a.$ae.empty()}var f=null;if($b($$a4.$ig.$type,d)!==null&&$b($$ae.$b6.$type,d.__en)!==null){f=$$t.$gh.b().c(d.__en)}else if($l(d._b1(),null)){f=$$t.$gh.b().d($$v.$cl.$getName(d._b1().value()))}else if($b($$a4.$lm.$type,d)!==null){f=$$t.$gh.b().d($$v.$cl.$getName(4))}if(f==null){return $$a.$ae.empty()}var g=$$t.$dy.at(d);var h=$$t.$dy.au(d);var i=$$t.$ce.f(d);var j=d.worksheet();var k=$$a4.$k.dl(b);var l=$$a4.$k.dl(c);var m=new $$t.gp;m.f=k;m.e=l;if(f.j.count()==0&&f.i.count()==0){f.u()}$$t.$ce.q(m,f.i);if(i!=null){var n=new $$4.x($$t.$gj.$type,0);$$t.$ce.s(i,n);$$t.$ce.q(m,n)}$$t.$ce.q(m,f.j);if(f.e.pathLst()!=null){var o=f.e.pathLst().b();for(var p=0;p<o.count();p++){var q=o.__inner[p];var r=$$v.$cc.g(q._g,$m($$v.$cc.$type,null))?k/$$v.$cc.o(q._g.value()):1;var s=$$v.$cc.g(q._e,$m($$v.$cc.$type,null))?l/$$v.$cc.o(q._e.value()):1;var t=g;var u=null;var v=h;if($j(q._f,false)){v=null}var w=q._d;switch(!$k(w)?w.value():1){case 0:t=null;break;case 1:break;case 4:u=$$t.$ce.a;break;case 5:u=$$t.$ce.b;break;case 2:u=$$t.$ce.c;break;case 3:u=$$t.$ce.d;break}e(a,j,q,m,r,s,t,v,u)}}var x;if(f.e.rect()==null){x=$$a.$ae.empty()}else{var y=$b($$a4.$nb.$type,d);if(y==null||!y._d0()){x=$$a.$ae.empty()}else{var z=y.text();var aa=f.e.rect();var ab=$$t.$ce.l(m,aa._b);var ac=$$t.$ce.l(m,aa._d);var ad=$$t.$ce.l(m,aa._c);var ae=$$t.$ce.l(m,aa._a);var af=$b($$ae.$d6.$type,z._o());if(af!=null){var ag=$$t.$ce.m(af._j,9.6);var ah=$$t.$ce.m(af._s,4.8);var ai=$$t.$ce.m(af._m,9.6);var aj=$$t.$ce.m(af._f,4.8);ab+=ag;ad-=ai;ac+=ah;ae-=aj}if(ad<=ab||ae<=ac){x=$$a.$ae.empty()}else{x=new $$a.ae(0,ab,ac,ad-ab,ae-ac)}}}return x},h:function(a){if($b($$a4.$lm.$type,a)!==null){return true}if($l(a._b1(),null)){return $$t.$gh.b().d($$v.$cl.$getName(a._b1().value()))!=null}if($b($$a4.$ig.$type,a)!==null){return a.__en!=null}return false},k:function(a,b){if($l(b.e(),null)){return a.c(b.e().value().a)/6e4}if($$v.$ci.g(b.d(),$m($$v.$ci.$type,null))){return b.d().value().n()}return 0},l:function(a,b){return $$t.$ce.n(a,b)/15},m:function(a,b){if($l(a,null)){var c=a.value().j();c=$$a4.$k.c0(c);return c/15}return b},n:function(a,b){if($l(b.e(),null)){var c=a.c(b.e().value().a);c=$$a4.$k.c0($.ig.truncate(c));return c}if($l(b.d(),null)){return b.d().value().k()}return 0},q:function(a,b){var d=b.getEnumerator();while(d.moveNext()){var c=d.current();var e=c.b(a);a.b.item(c.c,c);a.g(c.c,e)}},s:function(a,b){if(a!=null){var d=a.b().getEnumerator();while(d.moveNext()){var c=d.current();b.add($$t.$gj.a(c._b,c._a))}}},f:function(a){var b=null;if(a!=null){var c=$b($$ae.$e3.$type,a.__b3);if(c!=null&&c.spPr()!=null){var d=$b($$ae.$dm.$type,c.spPr()._e);if(d!=null&&d.avLst()!=null){b=d.avLst()}}}return b},u:function(){$$t.$ce.s(this.e.avLst(),this.i);$$t.$ce.s(this.e.gdLst(),this.j)},$type:new $.ig.Type("ShapeGeometry",$.ig.$ot)},true);$c("SpreadsheetContextMenu:cf","Object",{b:null,e:null,j:null,k:null,m:null,a:null,d:0,c:null,init:function(a){this.c=new $$t.dz;$.ig.$op.init.call(this);this.b=a;this.a=new $$t.b6(a)},n:function(a){if(this.j!=null){if(a){this.q()}var b=$(this.j);b.menu("collapseAll",null,true);b.hide()}},q:function(){if(this.f(document.activeElement)){if(this.d==5){this.b._bh().d5.ci.cf.a7.rootWrapper().focus(false)}else{this.b._v().focus()}}},o:function(){if(this.j!=null){var a=$(this.j);a.unbind("blur");if(this.k!=null){a[0].removeEventListener("keydown",this.k,true);this.k=null}a.menu("destroy");a.remove();this.j=null}},g:function(){return $$t.$dy.bh(this.j)},h:function(a){return this.g()&&this.d==a},f:function(a){return a!=null&&this.j!=null&&this.j.contains(a)},p:function(){this.o()},i:function(a,b,c,d){var $self=this;if(this.b._bh()==null||this.b._bh().a7==null){return false}if(b==null){return false}if(a!=8){var e=new $$t.c4(a);this.b._g1(e);if(e.cancel()){return false}}var f=b.cd(null);f.__x+=c.__x;f.__y+=c.__y;if(this.d!=a){this.o()}var g;if(this.j==null){this.d=a;if(a==8){g=this.a.a()}else{g=this.a.b(a)}var h=this.b._fb("ul");h.setRawStyleProperty("position","absolute");h.setRawStyleProperty("width","auto");h.setRawStyleProperty("z-index",2e4);var i=h.getNativeElement();if(h.addEventListener){var j=function(k){$self.m=$self.j.getAttribute("aria-activedescendant")};this.k=j;i.addEventListener("keydown",this.k,true)}var l=g.getEnumerator();while(l.moveNext()){var k=l.current();h.append(k)}this.j=i;this.b._bh().a7.rootWrapper().append(h);$(this.j).menu({position:{my:"left top",at:"right top",collision:"flipfit"},select:function(m,n){var o=n.item[0].id;if(!String.isNullOrEmpty(o)){if(a==8){if($self.a.u(o)){$self.n(true);$self.a.a9(o,$self.c)}else{var p=n.item.data("filterColor");if(p!=null){$self.n(true);$self.a.a6(p._c,p._d,$self.c)}}}else{var q;if(function(){var r=$.ig.$ep.tryParse$1($$t.$ea.$type,o,true,q);q=r.p2;return r.ret}()){$self.n(true);$self.b.executeCommand(q)}}}}});$(this.j).bind("blur",function(m){if($self.g()&&!$self.f(document.activeElement)){$self.n(true)}})}else{g=$$t.$dy.bv(this.b._fa().getWrapper(this.j))}if(a==8){this.c=new $$t.dz(d.d,d.c);this.a.a2(g,this.c);$(this.j).menu("refresh")}else{this.a.a4(g)}this.a.bh(g);this.b._fy(true);var m=$(this.b._bh().a7.rootWrapper().getNativeElement());var n=m.offset();var o=jQuery.Event("mousedown",{which:1,pageX:n.left+Math.round(f.__x),pageY:n.top+Math.round(f.__y)});var p=$(this.j);p.show();p.position({my:a==8?"right top":"left top",of:o,collision:a==8?"fit flip":"flipfit"});p.focus();return true},l:function(a,b,c){if(this.j!=null){if(this.g()){if(a==8){var d=this.j.getAttribute("aria-activedescendant");if(d==this.m){this.n(true);return $m($$0.$aq.$type,true)}}return $m($$0.$aq.$type,false)}if(c!=null){var e=this.j;var f=c.target;if(e.contains(f)){return $m($$0.$aq.$type,true)}}}return $$t.$dy.c2},$type:new $.ig.Type("SpreadsheetContextMenu",$.ig.$ot)},true);$c("SpreadsheetMeasureHelper:cg","Object",{d:null,k:null,r:null,q:null,p:null,n:null,o:null,m:null,l:null,a:null,e:null,init:function(a){$.ig.$op.init.call(this);this.d=a;this.e=new $.ig.LRUCache$2(String,Number,0,100);var b=$.ig.$ep.getValues($$t.$k0.$type);var c=new Array(b.length);for(var e=0;e<b.length;e++){var d=b[e];var f=$$t.$k1.getDefaultColor(d);c[d]=$$a.$at.create(f.colorString());
}this.a=c},s:function(){return this.r},u:function(){this.e.i()},b:function(a,b){var c=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,"width"),NaN);var d=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,"min-width"),NaN);var e=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,"max-width"),NaN);var f=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,"height"),NaN);var g=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,"min-height"),NaN);var h=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,"max-height"),NaN);var i=this.c(a,b,"margin-","");var j=this.c(a,b,"border-","-width");var k=this.c(a,b,"padding-","");if(i==null&&$.ig.util.isNaN(c)&&$.ig.util.isNaN(d)&&$.ig.util.isNaN(e)&&$.ig.util.isNaN(f)&&$.ig.util.isNaN(g)&&$.ig.util.isNaN(h)){return null}return new $$t.as(c,d,e,f,g,h,i,j,k)},c:function(a,b,c,d){var e=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,c+"left"+d),0);var f=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,c+"right"+d),0);var g=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,c+"top"+d),0);var h=$$t.$dy.b3(a.getCssDefaultPropertyValue(b,c+"bottom"+d),0);return new $$t.at(e,g,f,h)},f:function(a,b,c,d){a.addClass(b);var e=c?d?a.outerWidthWithMargin():a.outerWidth():d?a.outerHeightWithMargin():a.outerHeight();a.removeClass(b);return e},t:function(){return this.l==null?null:this.l.getNativeElement()},g:function(a,b,c,d,e){if(this.m==null){return 0}if(a!=null&&a.length>0&&a.charCodeAt(a.length-1)==10){a+=" "}else if(String.isNullOrEmpty(a)){a=" "}$$t.$dt.a8(this.m,b,d);$$t.$dt.a9(this.m,c);this.m.setAttribute("wrap","soft");this.m.setRawStyleProperty("width",e+"px");this.m.setProperty($$t.$aa.l,a);return this.m.getProperty("scrollHeight")},ab:function(a,b,c){a.addClass(b);var d=c?a.outerWidthWithMargin():a.outerWidth();var e=c?a.outerHeightWithMargin():a.outerHeight();a.removeClass(b);return new $$a.af(1,d,e)},h:function(a,b){var c;if(this.e.d(a)){c=this.e.item(a)}else{this.p.setAttribute("style",a);this.q.setRawStyleProperty("font",b);c=this.q.getProperty("scrollHeight");this.e.item(a,c)}return c},v:function(a){this.w();var b=a.createElement("div");b.setAttribute("style","display:block;position:absolute;visibility:hidden;opacity:0");a.append(b);this.k=a.getSubRenderer(b);this.r=a.createElement("div");this.r.setAttribute("style","display:block;position:absolute;visibility:hidden;");b.append(this.r);this.q=a.createElement("div");this.q.setAttribute("style","display:block;position:absolute;visibility:hidden;white-space:nowrap;border:0;padding:0;margin:0;");this.p=a.createElement("span");this.p.setProperty("innerHTML","Wj");this.q.append(this.p);b.append(this.q);this.n=a.createElement("div");this.n.addClass(this.d.css.tabItem);this.n.addClass(this.d.css.tabItemSelected);this.n.addClass(this.d.css.tabItemActive);this.n.addClass("ui-state-default");this.o=$$t.$dt.al(a.getSubRenderer(this.n),this.d.css);this.k.append(this.n);this.m=a.createElement("textarea");this.m.setRawStyleProperty("height","1px");this.m.setRawStyleProperty("overflow","hidden");$$t.$dt.a7(this.m);this.k.append(this.m);this.l=a.createElement("img");var c=$$t.$jb.ao;this.l.setAttribute("src","data:image/png;base64,"+c);this.k.append(this.l);this.aa()},i:function(a,b,c,d){if(this.m==null){return 0}$$t.$dt.a8(this.m,b,d);$$t.$dt.a9(this.m,c);this.m.setAttribute("wrap","off");this.m.setRawStyleProperty("width","1px");this.m.setProperty($$t.$aa.l,String.isNullOrEmpty(a)?" ":a);return this.m.getProperty("scrollWidth")},j:function(a,b,c){if(this.n==null){return 18}if(a._isProtected()){this.n.addClass(this.d.css.tabItemProtected)}else{this.n.removeClass(this.d.css.tabItemProtected)}$$t.$dt.ba(this.o,b!=null?b:a._name());return c?this.o.outerWidthWithMargin():this.n.outerWidthWithMargin()},w:function(){if(this.k!=null){this.k.rootWrapper().remove();this.k=null;this.n=null;this.m=null;this.o=null;this.l=null}},x:function(a,b,c,d,e,f){this.y(a,b,c,"background-color");this.y(a,b,d,"color");this.y(a,b,e,f?"border-right-color":"border-bottom-color")},y:function(a,b,c,d){if(c>=0){var e=a.getCssDefaultPropertyValue(b,d);if(String.isNullOrEmpty(e)){e=$$t.$k1.getDefaultColor(c).colorString()}this.a[c]=$$a.$at.create(e)}},aa:function(){if(this.k==null){return}var a=this.k;var b=this.d.css;var c=this.d._a1;a.startCSSQuery();var d=a.createElement("div");d.setAttribute("style","display:block;position:absolute;");var e=a.createElement("div");d.append(e);try{this.x(a,b.columnHeader,24,28,33,true);this.x(a,b.columnHeaderSelected,25,29,34,true);this.x(a,b.columnHeaderSelectedCells,26,30,35,true);this.x(a,b.columnHeaderHover,27,31,36,true);this.x(a,b.columnHeaderSelected+" "+"ui-state-highlight",-1,32,-1,true);this.x(a,b.rowHeader,11,15,19,false);this.x(a,b.rowHeaderSelected,12,16,20,false);this.x(a,b.rowHeaderSelectedCells,13,17,21,false);this.x(a,b.rowHeaderHover,14,18,22,false);this.x(a,b.rowHeaderSelected+" "+"ui-state-highlight",-1,23,-1,false);this.x(a,b.invalidData,-1,-1,64,true);this.x(a,b.automaticGridline,38,-1,-1,true);this.x(a,b.headerResizeLine,39,-1,-1,true);this.x(a,b.headerResizeLine,40,-1,-1,false);this.x(a,b.cellSelection,0,-1,1,true);this.y(a,b.cellSelection,2,"outline-color");this.x(a,b.cellSelectionHandle,5,-1,6,true);this.x(a,b.dropDownButton,66,67,65,true);this.x(a,b.dropDownButtonOpen,69,70,68,true);this.y(a,b.cellSelection+" "+"ui-state-highlight",3,"outline-color");this.a[37]=this.a[4]=this.a[3];a.append(d);var f=" "+"ui-state-disabled";c.x=this.f(e,b.tabAreaBorder,false,false);c.v=this.f(e,b.columnSplitter,true,false);c.t=this.f(e,b.rowSplitter,false,false);c.w=this.f(e,b.columnSplitter+f,true,false);c.u=this.f(e,b.rowSplitter+f,false,false);c.aa=this.f(e,b.tabAreaSplitter,true,false);c.z=this.f(e,b.tabAreaSplitter,false,false);c.b=this.b(a,b.formulaBar);c.c=this.b(a,b.nameBoxContainer);c.a=this.b(a,b.formulaBarButtonContainer);c.ap=this.ab(e,b.nameBoxSplitter,true);c.ao=this.ab(e,b.formulaBarTextAreaSplitter,true);c.an=this.ab(e,b.formulaBarExpandButton,true);c.al=this.ab(e,b.formulaBarCancelButton,true);c.am=this.ab(e,b.formulaBarEnterButton,true);this.z(a,b,c);c.s=this.f(e,b.scrollBarVertical,true,true);c.r=this.f(e,b.scrollBarHorizontal,false,true);c.d=this.b(a,b.scrollBarHorizontal);c.e=this.b(a,b.scrollBarVertical);c.p=this.f(e,b.scrollBarArrowRight,true,false);c.q=this.f(e,b.scrollBarArrowLeft,true,false);c.aj=this.f(e,b.scrollBarArrowDown,false,false);c.ak=this.f(e,b.scrollBarArrowUp,false,false);c.ai=this.f(e,b.scrollPreviousTabButton,true,false);c.ah=this.f(e,b.scrollPreviousTabButton,false,false);c.ag=this.f(e,b.scrollNextTabButton,true,false);c.af=this.f(e,b.scrollNextTabButton,false,false);c.ac=this.f(e,b.scrollFirstTabButton,true,false);c.ab=this.f(e,b.scrollFirstTabButton,false,false);c.ae=this.f(e,b.scrollLastTabButton,true,false);c.ad=this.f(e,b.scrollLastTabButton,false,false);c.i=this.f(e,b.activatePreviousHiddenTabButton,true,false);c.h=this.f(e,b.activatePreviousHiddenTabButton,false,false);c.g=this.f(e,b.activateNextHiddenTabButton,true,false);c.f=this.f(e,b.activateNextHiddenTabButton,false,false);c.k=this.f(e,b.addNewWorksheetButton,true,false);c.j=this.f(e,b.addNewWorksheetButton,false,false)}finally{d.remove();a.endCSSQuery()}$$t.$dt.ba(this.o,"Wj");var g=["","ui-state-hover","ui-state-active","ui-state-active"+" "+"ui-state-hover",b.tabItemProtected,b.tabItemProtected+" "+"ui-state-hover",b.tabItemProtected+" "+"ui-state-active",b.tabItemProtected+" "+"ui-state-active"+" "+"ui-state-hover"];var h=this.n.getAttribute("className");var i=0;for(var j=0;j<g.length;j++){var k=g[j];if(j>0){this.n.addClass(g[j])}i=Math.max(this.n.outerHeightWithMargin(),i);if(j>0){this.n.removeClass(g[j])}}this.n.setAttribute("className",h);c.y=i},z:function(a,b,c){var d=new $$t.ch(a);var e=d.e("div",b.formulaBar);var f=d.e("div",b.formulaBarTextAreaContainer);var g=d.e("textarea",null).rootWrapper();$$t.$dt.a5(g);g.setProperty("rows",1);g.setProperty("value","Wj");this.d._a1.m=g.getProperty("scrollHeight");g.setProperty("rows",2);g.setProperty("value","Wj\r\nWj");this.d._a1.n=g.getProperty("scrollHeight");g.setProperty("rows",3);g.setProperty("value","Wj\r\nWj\r\nWj");this.d._a1.o=g.getProperty("scrollHeight");d.c();d.c();var h=d.e("div",b.nameBoxContainer).rootWrapper();var i=d.e("div",null);var j=i.rootWrapper();var k=$$t.$dt.am(i);this.d._a1.l=j.getProperty("scrollHeight");$$t.$dt.as(k);d.f()},$type:new $.ig.Type("SpreadsheetMeasureHelper",$.ig.$ot)},true);$c("SpreadsheetMeasureHelper_MeasureStack:ch","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=new $$4.aa($$1.$g.$type);this.a.push(a)},b:function(){return this.a.peek()},e:function(a,b){var c=this.b().createElement(a);if(b!=null){c.addClass(b)}return this.d(c)},f:function(){while(this.a.count()>2){this.a.pop()}if(this.a.count()>1){var a=this.a.pop();a.rootWrapper().remove()}},d:function(a){this.b().append(a);this.a.push(this.b().getSubRenderer(a));return this.b()},c:function(){var a=this.a.pop();a.rootWrapper().remove();return this.b()},$type:new $.ig.Type("SpreadsheetMeasureHelper_MeasureStack",$.ig.$ot)},true);$c("ISpreadsheetView:g0","Object",{$type:new $.ig.Type("ISpreadsheetView",null)},true);$c("SpreadsheetView:ci","Object",{b:null,a:null,init:function(a){$.ig.$op.init.call(this);this.b=a},beforeExecuteCommand:function(command,commandParameter,sourceElement){return $s(this._beforeExecuteCommand$i.apply(this,arguments))},_beforeExecuteCommand$i:function(a,b,c){switch(a){case 148:case 149:case 150:var d=$$t.$dy.dg(a);var e=this.b._bj();if(e!=null&&!e.af(a)&&typeof document.queryCommandSupported==="function"&&document.queryCommandSupported(d)){var f=e.aj;e.aj=new $$4.x(String,0);try{document.execCommand(d);if(e.aj!=null&&e.aj.contains($$t.$dy.dh(a))){return $m($$0.$aq.$type,true)}}finally{e.aj=f}}break}return $$t.$dy.c2},createChartTitleElement:function(a,b){if(a==null){return null}var c=a.wrapText();var d=$$t.$dy.ac(a._aj());var e=false;var f=a.workbook();var g=new $$t.oq(a.defaultFont(),f.styles().normalStyle().styleFormat().font(),f);var h=a.text();var i=h!=null?$$t.$dy.q(h,d,g,e):$$t.$dy.t(this.b._fr(a),f,d,g,e);var j=a.border();var k=j==null?7:j.lineStyle();var l=k==7||j.widthInPoints()==0?0:Math.max($$a4.$n._er(f,$$a4.$n._eq(j.widthInPoints())/2,false,true),1);var m=this.b._fa().createElement("div");m.setRawStyleProperty("position","relative");m.setRawStyleProperty("display","inline-block");var n=this.b._fa().createElement("div");n.setRawStyleProperty("display","table");n.setRawStyleProperty("position","relative");var o=$$t.$dy.c8(a._ad(),f);var p=!String.isNullOrEmpty(o)?"background:"+o+";":"";var q=$$t.$dw.be(i,this.b.workbook(),1,c,NaN,p);n.setProperty("innerHTML",q);n.setRawStyleProperty("padding",l+"px");n.setRawStyleProperty("margin","auto");m.append(n);var r=this.b._fa().createElement("div");$$t.$dy.ej(r);$$t.$dy.eb(r,l,j,0,f);m.append(r);return m.getNativeElement()},createRenderCache:function(){return new $$t.dw(this.b)},hasKeyboardFocusWithin:function(){return $$t.$dy.a5(this.b._bh(),document.activeElement)},isCellDropDownOpen:function(){return this.b._at().h(8)||this.b._c6()},isInNameBox:function(){if(this.b._bh()!=null){return $$t.$dy.a5(this.b._bh().d5.cg,document.activeElement)}return false},isScrollLockToggled:function(){return this.b.isScrollLocked()},updateEditorValueMode:function(){return 0},addCellTextLocations:function(a,b){var c=$b($$t.$cl.$type,b._ap());if(c!=null){var d=c.e;for(var e=0,f=d.a9();e<f;e++){var g=d.b(e);if(g.bx=="SpreadsheetCellValueLayer"){var h=g.a9();for(var i=0,j=g.a9();i<j;i++){var k=g.b(i);if(k.bx=="SpreadsheetCellValue"){var l=k;var m=new $$a.ae(0,l.co+l.ax,l.cp+l.a2,l.cq,l.cn);a.item(new $$t.dz(l.cg().ak,l.cg().ab),m)}}}}}},closeMenu:function(){this.b._at().n(true)},createCellEditManager:function(){return new $$t.b3(this.b)},createTabEditManager:function(){return new $$t.b9(this.b)},focus:function(){if(this.b._ay()!=null&&this.b._ay().a7!=null){$$t.$dy.ea(this.b._ay().a7.rootWrapper().getNativeElement());return true}return true},getLayoutManager:function(){return this.b._ad()},notifyCanExecuteChanged:function(){this.b.scheduleArrange()},onDataObjectPasting:function(a){},onHasPendingChangeNotification:function(){this.b.scheduleArrange()},onNameBoxValueChanged:function(){},onNameBoxWidthChanged:function(){},onSheetManagerChanged:function(a,b){if(a!=null){a._al._j().aq()}if(this.b._ad()!=null){this.b._ad().e3=false;this.b._ad().e2=false}},onStateVerified:function(){},remeasureRootPanel:function(){this.b._fy(false)},shouldIncludeClipboardFormat:function(a,b){return true},shouldCopyToClipboard:function(a,b){return true},showCellDropDown:function(a,b,c,d,e){b=$.ig.util.rectFromLiteral(b);return this.b._d5(a,b,c,d,e)},showSelectAllContextMenu:function(a,b){b=$.ig.util.pointFromLiteral(b);this.b._at().i(6,a,b,null)},ShowPaneContextMenu:function(a,b,c){c=$.ig.util.pointFromLiteral(c);var d=this.b._n(a);this.b._at().i(b,d,c,null)},ShowHeaderContextMenu:function(a,b){b=$.ig.util.pointFromLiteral(b);var c=a._aw()?1:0;var d=this.b._o(a);this.b._at().i(c,d,b,null)},ShowTabContextMenu:function(a,b){b=$.ig.util.pointFromLiteral(b);this.b._at().i(3,a._ac(),b,null)},showFilterMenu:function(a,b){var c=this.b._n(a);return this.b._at().i(8,c,{__x:b.g.right(),__y:b.g.bottom(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},b)},showMessageBox:function(a,b,c,d,e){$$t.$aw.q++;switch(c){case 0:{window.alert(a);return e}case 1:{return window.confirm(a)?1:2}case 4:{return window.confirm(a)?6:7}case 3:{return window.confirm(a)?6:2}}return e},usesLogicalPixels:function(){return false},verifyLayout:function(){},showFilterDialog:function(a){var b=new $$t.mb(this.b,a);b.u()},showTopOrBottomDialog:function(a){var b=new $$t.my(this.b,a);b.q()},showCustomSortDialog:function(a,b){var c=new $$t.mx(this.b,a);c.aj(b)},showFormatCellsDialog:function(a,b){var c=new $$t.mc(this.b,a,b);c.ea()},spreadsheetDialogServicesManager:function(){if(null==this.a){this.a=new $$t.nv}return this.a},getRect:function(scrollRegion){return $.ig.util.rectToLiteral(this._getRect$i.apply(this,arguments))},_getRect$i:function(a){var b=this.b._o(a);return b!=null?b.ce():$$a.$ae.empty()},getTabItemAreaRect:function(){return $.ig.util.rectToLiteral(this._getTabItemAreaRect$i.apply(this,arguments))},_getTabItemAreaRect$i:function(){var a=this.b._bh();if(a==null){return $$a.$ae.empty()}return a.d7.cf.e1().cm.ce()},getPaneRect:function(pane){return $.ig.util.rectToLiteral(this._getPaneRect$i.apply(this,arguments))},_getPaneRect$i:function(a){var b=this.b._n(a);return b!=null?b.ce():$$a.$ae.empty()},initializeEditFont:function(a,b){},$type:new $.ig.Type("SpreadsheetView",$.ig.$ot,[$$t.$g0.$type])},true);$c("SpreadsheetAreaLayoutManager:ks","Object",{b:null,m:null,v:null,g:null,f:null,ao:null,aq:0,o:null,ei:null,ar:0,d:0,as:0,at:0,ep:null,en:null,w:null,au:0,t:null,s:null,et:null,eo:null,y:null,a:0,init:function(){this.g=new $$t.kv(true);this.f=new $$t.kv(false);this.et=new $$a.af;$.ig.$op.init.call(this);this.v=new $$ak.n($$t.$ks.$type,this,$$t.$ks.ds,false);this.ao=new $$4.x($$t.$kw.$type.specialize($$t.$i3.$type),0)},h:function(){return this.f},e:function(){return this.d},aj:function(){return this.ag},ev:function(){return this.et},ap:function(){return this.ao},x:function(a){if(arguments.length===1){this.w=a;return a}else{return this.w}},er:function(){return this.eo},i:function(){return this.g},n:function(a){if(arguments.length===1){if(a!=this.m){var b=this.m;var c=$$ak.$m.e($$t.$ik.$type,this.m,a,this.v,true);this.m=c.p0;if(this.m!=null){this.f.e=this.m._columnItems();this.g.e=this.m._rowItems()}else{this.g.e=this.f.e=new Array(0)}this.cs();this.dm(b,a)}return a}else{return this.m}},c:function(a){if(arguments.length===1){if(a!=this.b){var b=$$ak.$m.e($$t.$c3.$type,this.b,a,this.v,true);this.b=b.p0;this.n(this.b!=null?this.b._a8():null);this.p(this.b!=null?this.b._bf():null)}return a}else{return this.b}},p:function(a){if(arguments.length===1){if(a!=this.o){var b=this.o;var c=$$ak.$m.e($$t.$k4.$type,this.o,a,this.v,true);this.o=c.p0;this.du(b,a)}return a}else{return this.o}},be:function(){return this.m!=null?this.m._zoomLevel():1},z:false,cf:function(){},dw:function(){},cz:function(a){},bv:function(a,b){},ay:function(){},aa:false,cg:function(){},dx:function(){},c0:function(a){},bw:function(a,b){},ab:false,ai:false,ch:function(){},dy:function(){},bz:function(a){},c2:function(a){},cr:function(){},d9:function(a,b){},a8:function(){},a7:function(){},eq:function($t,a){},q:function(a){},r:function(a){},dl:function($t,a){},c3:function($t,a,b){},b0:function($t,a,b){},u:function(a){},dz:function(a){},ct:function(a,b){},b2:function(a,b){},c5:function(a,b){},a0:function(a){},az:function(a){},ac:false,ci:function(){},d1:function(){},b4:function(a){},c7:function(a){},cy:function(){},cu:function(a,b,c,d){},cj:function(a){},d2:function(a){},b5:function(a,b){},c8:function(a,b){},a1:function(a){},cl:function(a){},d4:function(a){},b7:function(a,b){},da:function(a,b){},ad:false,cv:function(a){},ck:function(){},d3:function(){},b6:function(a){},c9:function(a){},ag:false,co:function(){},d7:function(){},ca:function(a){},dd:function(a){},ba:function(){},bd:function(){},ah:false,cp:function(){},d8:function(){},cb:function(a){},de:function(a){},bb:function(){},bc:function(){},ae:false,cm:function(){},d5:function(){},b8:function(a){},db:function(a){},af:false,cn:function(){},d6:function(){},b9:function(a){},dc:function(a){},a9:function(){},du:function(a,b){},dm:function(a,b){},cw:function(){},cx:function(){},cd:function(){},am:function(a){},ek:function(a,b){},el:function(a,b){},es:function(a,b){},em:function(a,b){},ej:function(a){},bt:function(a,b,c,d,e,f,g){var h=f;var i=g;var j=c/b;var k=this.b._ai().l();var l=k.a.e==7?k.a.t():k.a.j();if(l){return{p5:f,p6:g}}switch(k.a.e){case 5:break;case 1:case 4:{if(f+d>g){g=f+d;var m=a.columnScrollRegion()._ag(g);g=a.columnScrollRegion()._bn(m._index(),false,true)}break}case 3:{f=Math.max(Math.min(f,g-d),0);if(h>f){var n=a.columnScrollRegion()._ag(f);f=Math.max(a.columnScrollRegion()._bn(n._index(),true,true),0)}break}case 2:case 7:case 6:{if(g-f<d){var o=(g-f)/2+f;var p=Math.min(d,j);if(f>o-p/2){f=o-p/2;g=o+p/2;var q=g-j;var r=0-f;var s=Math.max(q,r);if(s>0){f+=s;g-=s}var t=a.columnScrollRegion()._ag(f);var u=a.columnScrollRegion()._bn(t._index(),true,true);var v=a.columnScrollRegion()._ag(g-e);var w=a.columnScrollRegion()._bn(v._index(),false,true);var x=o-u;var y=w-o;var z=Math.min(x,y);f=o-z;g=o+z}}break}}return{p5:f,p6:g}},df:function(a){},eu:function(a){var $self=this;this.df(a);var b=a;var c=new $$a.ae(0,0,0,a.width(),a.height());var d=this.g.i;var e=this.aq;var f=0;if(this.ag||this.ae){var g,h;var i=function(){var j=$self.aw(Math.max(a.width()-d,0),g,h);g=j.p1;h=j.p2;return j.ret}();if(this.ah){this.cb(new $$a.ae(0,i,a.height()-e,g,e))}if(this.ag){this.ca(new $$a.ae(0,0,a.height()-e,Math.min(i,this.bd()),e));f=i+g}if(this.af){this.b9(new $$a.ae(0,0,a.height()-e,a.width()-d,this.a9()))}if(this.ae){this.b8(new $$a.ae(0,0,a.height()-e,a.width(),e))}}if(this.g.a!=null){this.b3(this.g,true,this.f.g,a,d,0,this.t,this.aq);c.width(Math.max(c.width()-d,0))}if(this.f.a!=null){this.b3(this.f,false,this.g.g,a,e,f,this.s,this.f.i)}c.height(Math.max(c.height()-e,0));this.eo=c.copy();var j=this.bu(this.g,$$t.$dy.e6(c.x(),c.y()+this.f.g),c);c=j.p2;var k=this.bu(this.f,$$t.$dy.e6(c.x(),c.y()),c);c=k.p2;if(this.ac){var l=new $$a.ae(0,c.x()-this.g.h,c.y()-this.f.h,this.g.h,this.f.h);this.b4(l)}var m=30;var n=new $$a.ae(0,c.x()-this.g.h,c.y()-this.f.h,c.width()+this.g.h+d,c.height()+this.f.h+e);n.inflate(m,m);this.ep=n;var o=$$a.$ae.empty();if(this.g.c){o=new $$a.ae(0,c.x()-this.g.h,c.y()+this.m._rows().item(0).actualExtent(),c.width()+this.g.h,this.m._d3());var p=o.copy();if(!this.g.e.item(0).isFrozen()){o.width(o.width()+d)}if($$ak.$c.f(o.top(),c.bottom())){o.height(0)}this.b5(true,o);if(this.g.d){var q=new $$a.ae(0,p.x(),this.at-p.height()/2,p.width(),p.height());if(this.f.d){if(this.as<n.x()||this.as>=n.right()){q=p}}if(this.at<n.y()||this.at>=n.bottom()){q=p}if(q.y()<c.y()){q.y(c.y())}else if(q.bottom()>c.bottom()){q.y(c.bottom()-q.height())}this.b7(true,q)}}var r=$$a.$ae.empty();if(this.f.c){r=new $$a.ae(0,c.x()+this.m._columns().item(0).actualExtent(),c.y()-this.f.h,this.m._d4(),c.height()+this.f.h);var s=r.copy();if(!this.f.e.item(0).isFrozen()){r.height(r.height()+e)}if($$ak.$c.f(r.left(),c.right())){r.width(0)}this.b5(false,r);if(this.f.d){var t=new $$a.ae(0,this.as-s.width()/2,s.y(),s.width(),s.height());if(this.g.d){if(this.at<n.y()||this.at>=n.bottom()){t=s}}if(this.as<n.x()||this.as>=n.right()){t=s}if(t.x()<c.x()){t.x(c.x())}else if(t.right()>c.right()){t.x(c.right()-t.width())}this.b7(false,t)}}var u=$$a.$ae.empty();if(this.ad){var v=new $$a.ae(0,r.x(),o.y(),r.width(),o.height());this.b6(v);var w=r.x()-o.x()+r.width()/2;var x=o.y()-r.y()+o.height()/2;u=new $$a.ae(0,w-9,x-9,18,18)}this.cv(u);this.en=c;this.b1(c);this.bx(a);this.by(this.en);return b},bu:function(a,b,c){var d=b.__x;var e=b.__y;var f=0;var g=0;if(a.f.count()>0){var h=this.be();var i=a.e;var j=a.h;var k=a.b;if(k){f=j}else{g=j}var l=-1;var n=i.getEnumerator();while(n.moveNext()){var m=n.current();l++;if(k){g=m.actualExtent()+1;e-=1}else{f=m.actualExtent()+1;d-=1}var o=new $$a.ae(0,d,e,f,g);this.b0($$t.$i6.$type,a.f.__inner[l].b,o);if(k){e+=g+this.m._d3()}else{d+=f+this.m._d4()}}if(k){c.x(c.x()+j);c.width(Math.max(c.width()-j,0))}else{c.y(c.y()+j);c.height(Math.max(c.height()-j,0))}}return{p2:c}},bx:function(a){var b=this.l();var c=this.j();var d=new $$a.ae(4);var e=$$a.$ae.empty();if(b!=null){var f=$$5.$e.ag($$t.$kw.$type.specialize($$t.$i3.$type),this.ao,function(g){return g.a==b});if(f!=null){var g=this.b.isInEditMode();var h=this.x();var i=1/h.d();var j=-this.a2(f.c.x());var k=-this.a3(f.c.y());var l=b.rowScrollRegion()._bx();var m=f.c.width();var n=f.c.height();var o=b.columnScrollRegion()._bn(c.firstColumn(),true,true);var p=b.rowScrollRegion()._bn(c.firstRow(),true,true);var q=b.columnScrollRegion()._bn(c.lastColumn(),false,true);var r=b.rowScrollRegion()._bn(c.lastRow(),false,true);var s=q;var t=r;r=Math.max(r,p+this.ay());if(g){var u=this.bt(b,l,m,this.b._ai().am(),i,o,q);o=u.p5;q=u.p6}var v=Math.max(Math.min(q-o,(m-o*l)/l)-i,0);var w=Math.max(Math.min(r-p,(n-p*l)/l)-i,0);var x=f.c.x()+h.h(o*l)-j;var y=f.c.x()+h.h(o*l+v)-j;var z=f.c.y()+h.h(p*l)-k;var aa=f.c.y()+h.h(p*l+w)-k;d.x(x);d.y(z);d.width(Math.max(y-x,0));d.height(Math.max(aa-z,0));var ab=f.c.x()+h.h(s*l)-j;var ac=f.c.y()+h.h(t*l)-k;var ad=new $$a.ae(0,x,z,Math.max(ab-x-i,0),Math.max(ac-z-i,0));var ae=b.rowScrollRegion()._ag(r-i);if(ae._index()>c.lastRow()){var af=b.rowScrollRegion()._bn(ae._index(),false,true);w=Math.max(Math.min(af-p,(n-p*l)/l)-i,0)}ad.union(new $$a.ae(0,x,z,Math.max(v*l,0),Math.max(w*l,0)));e=f.c;this.bw(ad,e)}}this.bv(d,e)},by:function(a){var $self=this;if(this.m!=null){var b=this.a8();var c=this.a7();var d=$$5.$e.ag($$t.$kw.$type.specialize($$t.$i3.$type),this.ao,function(e){return e.a==$self.m._ao()});var e=d!=null?d.a._ag():null;var f=this.m._bc()._jg();if(!this.ai){this.bz(new $$a.ae(0,(-1e4),(-1e4),b,c))}else if(this.d==2){this.bz(new $$a.ae(0,this.as-this.ei.__x,this.at-this.ei.__y,b,c))}else if($$a.$y.l_op_Inequality(f,null)){this.bz(new $$a.ae(0,f.__x+this.en.x(),f.__y+this.en.y(),b,c))}else if(e!=null){var g=d.c;var h=e._r();var i=d.a.rowScrollRegion()._bx();var j=d.a.rowScrollRegion()._bn(h.firstRow(),true,true)*i;var k=d.a.rowScrollRegion()._bn(h.lastRow(),false,true)*i;var l=d.a.columnScrollRegion()._bn(h.firstColumn(),true,true)*i;var m=d.a.columnScrollRegion()._bn(h.lastColumn(),false,true)*i;var n=5;var o=$$t.$dy.e6(l+(m-l)/2,k+n);var p=this.es(d,new $$a.ae(2,$$t.$dy.e6(l,j),$$t.$dy.e6(m,k)));var q=this.em(d,o);var r=new $$a.ae(0,q.__x,q.__y,b,c);if(!a.containsRect(r)){if(r.y()<a.y()){r.y(a.y())}else if(r.bottom()>a.bottom()){r.y(Math.max(a.y(),a.bottom()-r.height()))}if(r.x()<a.x()){r.x(a.x())}else if(r.right()>a.right()){r.x(Math.max(a.x(),a.right()-r.width()))}var s=new $$a.ae(0,a.x(),a.y(),a.width(),g.height());s.intersect(p);if(s.isEmpty()==false&&s.intersectsWith(r)){var t=Math.max(a.y(),Math.min(this.em(d,$$t.$dy.e6(0,j+(k-j)/2)).__y,a.bottom()-r.height()));if(a.right()-s.right()>=n+r.width()){r.x(s.right()+n);r.y(t)}else if(s.top()>=n+r.height()){r.y(s.y()-(n+r.height()))}else if(s.left()>=n+r.width()){r.x(s.left()-(n+r.width()));r.y(t)}else{var u=new Array(4);u[0]=new $$a.ae(0,s.left()-(n+r.width()),t,r.width(),r.height());u[1]=new $$a.ae(0,r.x(),s.y()-(n+r.height()),r.width(),r.height());u[2]=new $$a.ae(0,s.right()+n,t,r.width(),r.height());u[3]=new $$a.ae(0,r.x(),s.bottom()+n,r.width(),r.height());var v=-1;var w=0;for(var x=0;x<u.length;x++){var y=new $$a.ae(0,a.x(),a.y(),a.width(),a.height());y.intersect(u[x]);if(y.isEmpty()==false){var z=y.width()*y.height();if(z>w){v=x;w=z}}}if(v>=0){r=u[v]}}}}this.bz(r)}}},b1:function(a){var b=a.x();var c=a.y();var d=this.be();var e=this.f.e.count();for(var f=0;f<this.ao.count();f++){var g=$a(f,e);var h=f%e;var i=this.g.e.item(g);var j=this.f.e.item(h);var k=new $$a.ae(0,b,c,j.actualExtent(),i.actualExtent());this.ao.__inner[f].c=k;this.b0($$t.$i3.$type,this.ao.__inner[f].b,k);if(h==e-1){b=a.x();c+=i.actualExtent()+this.m._d3()}else{b+=j.actualExtent()+this.m._d4()}}},b3:function(a,b,c,d,e,f,g,h){var i=a.a;if(i==null){return}var j=a.e;var k=(j||new Array(0)).getEnumerator();var l=i.e().getEnumerator();var m=0;var n=b?new $$a.ae(0,d.width()-e,f,e,0):new $$a.ae(0,f,d.height()-e,0,e);var o=c;while(k.moveNext()){l.moveNext();var p=l.current().b();var q=k.current();var r=q.actualExtent();if(p!=null){r=Math.max(r+o-f,0);o=0;if(b){n.height(r)}else{n.width(r)}this.b2(p,n);if(b){n.y(n.y()+(r+this.m._d3()))}else{n.x(n.x()+(r+this.m._d4()))}f=0}else{o+=r}m++}if(m==0&&g!=null){var s=b?d.height():d.width();o-=h;s=Math.max(s+o-f,0);o=0;if(b){n.height(s)}else{n.width(s)}this.b2(g,n)}},av:function(a,b){var $self=this;return{ret:function(){var c=$self.aw($self.au,a,b);a=c.p1;b=c.p2;return c.ret}(),p0:a,p1:b}},aw:function(a,b,c){this.au=a;b=0;c=a;var d=0;if(this.g!=null&&this.g.e.count()>0){c=this.g.g}if(this.ag){if(this.f.e!=null){for(var e=0;e<this.f.e.count();e++){var f=this.f.e.item(e);c+=f.actualExtent();if(e>0){c+=this.m._d4()}if(this.f.a!=null&&this.f.a.e().item(e).b()!=null){break}}}if(this.ah){b=this.bc();c=Math.max(c-b,0)}d=this.p()._width()/1e3*c}return{ret:d,p1:b,p2:c}},cc:function(){if(this.d!=0){var a=this.d;this.d=0;if(this.g.d){this.g.d=false;this.d4(true)}if(this.f.d){this.f.d=false;this.d4(false)}this.cd();this.di(a,0)}},ce:function(){if(this.y!=null){this.y.c();this.y=null}},cq:function(a){var c=this.g.a.e().getEnumerator();while(c.moveNext()){var b=c.current();if(b.b()!=null){a(b.b())}}var e=this.f.a.e().getEnumerator();while(e.moveNext()){var d=e.current();if(d.b()!=null){a(d.b())}}if(this.s!=null){a(this.s)}if(this.t!=null){a(this.t)}},j:function(){if(this.b==null){return $$t.$d1.empty}if(this.b.isInEditMode()){return this.b._ai().p()}return this.b._am()},l:function(){if(this.b==null){return null}if(this.b.isInEditMode()){return this.b._ai().t()}return this.b._a5()},ax:function(){this.m._jn(this.m._jo());return this.f.h+this.aq+2},a2:function(a){return 0},a3:function(a){return 0},k:function(a){var b=this.ej(a);for(var c=0;c<this.ao.count();c++){var d=this.ao.__inner[c];var e=this.eq($$t.$i3.$type,d.b);if(e.containsPoint(b)){var f=d.a;var g=this.ek(d,b);var h=new $$a4.lq;if(!function(){var i=f.rowScrollRegion()._az(g.__y/f.rowScrollRegion()._bx(),h);h=i.p1;return i.ret}()){return null}var i=h._index();if(!function(){var j=f.columnScrollRegion()._az(g.__x/f.columnScrollRegion()._bx(),h);h=j.p1;return j.ret}()){return null}var j=h._index();return new $$t.ig(new $$t.dz(i,j),f)}}for(var k=0;k<2;k++){var l=k==0;var m=l?this.g:this.f;if(m!=null){for(var n=0;n<m.f.count();n++){var o=m.f.__inner[n];var p=this.eq($$t.$i6.$type,o.b);if(p.containsPoint(b)){var q=o.a;var r=this.el(o,b);var s=new $$a4.lq;if(!function(){var t=q._az((l?r.__y:r.__x)/q._bx(),s);s=t.p1;return t.ret}()){return null}return new $$t.ih(s._index(),q)}}}}return null},cs:function(){if(!this.ab){return}var a=this.m!=null?this.m._fu():null;this.ai=a!=null;if(!this.ai){this.cr()}else{this.d9(a._d,a._c)}},dg:function(a){},ew:function(a){var $self=this;this.dg(a);var b=new $$a.af(0);this.et=new $$a.af(1,a.width(),a.height());var c=this.m;if(c!=null){c._i5()}var d=c!=null?c._bc().workbook():null;{var e=$$a4.$n._fc(d);try{var f,g;if(c!=null){g=c._hasHorizontalScrollBar();f=c._hasVerticalScrollBar()}else if(this.o!=null&&this.o._y()!=null){f=(this.o._y().windowOptions().scrollBars()&2)!=0;g=(this.o._y().windowOptions().scrollBars()&1)!=0}else{f=g=false}if(f==false){var h=this.d0(this.g,this.t);this.t=h.p1}else{var i=this.c6(this.g,this.t);this.t=i.p1}if(g==false){var j=this.d0(this.f,this.s);this.s=j.p1}else{var k=this.c6(this.f,this.s);this.s=k.p1}var l=this.g.i;var m=this.f.i;var n=new $$a.af(1,a.width(),a.height());if(c!=null&&c._hasVerticalScrollBar()){n.width(Math.max(n.width()-l,0))}var o=new $$a.af(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);var p=this.o!=null&&this.o._isVisible();if(p!=this.ag){this.ag=p;if(!p){this.d7()}else{this.co()}}if(this.ag){if(m>0){m+=this.w.d()}this.dd(o);m=Math.max(m,this.ba())}var q=p;if(q!=this.af){this.af=q;if(!q){this.d6()}else{this.cn()}}if(this.af){this.dc(o)}var r=p||g;if(r!=this.ae){this.ae=r;if(!r){this.d5()}else{this.cm()}}if(this.ae){this.db(o)}var s=p&&g;if(s!=this.ah){this.ah=s;if(!s){this.d8()}else{this.cp()}}if(this.ah){this.de(o);m=Math.max(m,this.bb())}this.aq=m;if(g||p){n.height(Math.max(n.height()-m,0))}var t=this.a6(this.f);var u=this.a6(this.g);if(c!=null){c._d4(t);c._d3(u)}var v=this.f.c&&this.g.c;if(v!=this.ad){this.ad=v;if(!v){this.d3()}else{this.ck()}}if(this.ad){this.c9(new $$a.af(1,c._d4(),c._d3()))}var w=c!=null&&c._bc().displayOptions().showRowAndColumnHeaders();var x=c!=null&&w?c._al._j().ab(c._bc(),c._d1()):0;this.f.h=x;var y=Math.max(n.height()-x,0);var z=c!=null?c._eh(y):0;var aa=c!=null&&w?c._al._j().af(z,c._bc(),c._d0()):0;this.g.h=aa;this.f.g=this.f.h;this.g.g=this.g.h;if(c!=null){c.__dx=this.f.g;c.__d2=this.g.g;c._rows().item(0)._bv(c._rows().item(0)._v()==2?this.f.g:0);c._columns().item(0)._bv(c._columns().item(0)._v()==2?this.g.g:0)}n.height(Math.max(n.height()-this.f.g,0));n.width(Math.max(n.width()-this.g.g,0));var ab=c!=null?c._jn(n):new $$a.af(0);b.width(b.width()+(ab.width()+l+this.g.h));b.height(b.height()+(ab.height()+m+this.f.h));this.c4();this.a5(this.f);this.a5(this.g);var ac=this.f.f.count()>0&&this.g.f.count()>0;if(ac!=this.ac){this.ac=ac;if(!ac){this.d1()}else{this.ci()}}if(this.ac){this.c7(new $$a.af(1,this.g.h,this.f.h))}this.c1(a);if(this.ag){var ad,ae;var af=Number.isInfinity(a.width())?0:Math.max(a.width()-l,0);var ag=function(){var ah=$self.aw(af,ad,ae);ad=ah.p1;ae=ah.p2;return ah.ret}();if(this.o!=null){this.o._as(Math.max(ag-this.bd(),0))}if(this.bd()>ag){this.dd(new $$a.af(1,ag,Number.POSITIVE_INFINITY))}}if(!this.ab){this.ab=true;this.ch()}this.cs();this.c2(o)}finally{if(e!=null){e.dispose()}}}return b},c1:function(a){if(!this.z){this.z=true;this.cf()}var b=this.l();var c=new $$a.af(0);if(b!=null){var d=this.b.isInEditMode();var e=this.j();var f=1/this.x().d();var g=b.rowScrollRegion()._bx();var h=b.columnScrollRegion().actualExtent();var i=b.rowScrollRegion().actualExtent();var j=b.columnScrollRegion()._bn(e.firstColumn(),true,true);var k=b.rowScrollRegion()._bn(e.firstRow(),true,true);var l=b.columnScrollRegion()._bn(e.lastColumn(),false,true);var m=b.rowScrollRegion()._bn(e.lastRow(),false,true);if(d){var n=this.bt(b,g,h,this.b._ai().am(),f,j,l);j=n.p5;l=n.p6}var o=Math.max(Math.min(l-j,(h-j*g)/g)-f,0);var p=Math.max((i-k*g)/g-f,0);c.width(o);c.height(p)}this.cz(c);if(!this.aa){this.aa=true;this.cg()}this.c0(new $$a.af(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY))},a5:function(a){var b=a.e;var c=b.count();var d=a.f;var e=this.m!=null&&this.m._bc().displayOptions().showRowAndColumnHeaders();var f=a.b;var g=0;this.eg($$t.$i6.$type,e?b:new Array(0),d,function(h){},function(h){},this.q.runOn(this));
if(c>0){var h=new $$a.af(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);var j=d.getEnumerator();while(j.moveNext()){var i=j.current();this.c3($$t.$i6.$type,i.b,h)}}return g},c4:function(){var a=this.m!=null?this.m._panes():new Array(0);var b=this.ao;this.eg($$t.$i3.$type,a,b,function(c){c.a._ap(c.b)},function(c){c.a._ap(null)},this.r.runOn(this));if(this.m!=null){var c=this.be();var e=b.getEnumerator();while(e.moveNext()){var d=e.current();var f=d.a;var g=new $$a.af(1,f.columnScrollRegion().actualExtent(),f.rowScrollRegion().actualExtent());this.c3($$t.$i3.$type,d.b,g)}}},c6:function(a,b){var c=a.a;if(c==null){c=a.a=new $$t.a6}var d=a.e;var e=a.b;this.ef(d,c,e?1:0);var f=(d||new Array(0)).getEnumerator();var g=c.e().getEnumerator();var h=0;var i=0;var j=0;while(f.moveNext()){g.moveNext();var k=g.current().b();var l=f.current();var m=l.actualExtent();if(k!=null){var n=Math.max(m+i,0);if(n==0){n=Number.POSITIVE_INFINITY}var o=e?new $$a.af(1,Number.POSITIVE_INFINITY,n):new $$a.af(1,n,Number.POSITIVE_INFINITY);this.c5(k,o);i=0;j=Math.max(j,e?this.a0(k):this.az(k))}else{i+=m}h++}if(h==0){if(b==null){b=this.u(e?1:0);this.ct(b,null)}this.c5(b,new $$a.af(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY));j=Math.max(j,e?this.a0(b):this.az(b))}else{var p=this.dv(b);b=p.p0}a.i=j;return{p1:b}},a6:function(a){var b=a.e;var c=b.count()>1;if(c!=a.c){a.c=c;if(c){this.cj(a.b)}else{this.d2(a.b)}}if(a.c){this.cu(a.b,b.item(0)._v()==2,b.item(0),b.item(1));this.c8(a.b,new $$a.af(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY));if(a.d){this.da(a.b,new $$a.af(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY))}return this.a1(a.b)}else{return 0}},dh:function(){if(this.m!=null){this.m._bc()._jg(null)}},di:function(a,b){},dj:function(a){this.as=a.__x;this.at=a.__y;if(this.d==2){var b=this.as;var c=this.at;if(this.as<this.en.x()){b=this.en.x()}else if(this.as>this.en.right()){b=this.en.right()}if(this.at<this.en.y()){c=this.en.y()}else if(this.at>this.en.bottom()){c=this.en.bottom()}this.as=b;this.at=c}else if(this.d==3){var d=Math.max(Math.min(a.__x-this.ei.__x,this.ar),0);var e=$.ig.truncate(Math.max(Math.min($$a4.$aa.f(d/this.ar*1e3),1e3),0));if(this.p()!=null&&this.p()._y()!=null){this.p()._y().windowOptions().tabBarWidth(e)}}this.cw()},dk:function(){switch(this.d){default:case 0:case 3:this.cc();break;case 1:this.dn();break;case 2:var a=$$t.$dy.e6(this.as-this.ei.__x-this.en.x(),this.at-this.ei.__y-this.en.y());this.cc();if(this.m!=null){this.m._bc()._jg(a)}break}},ak:function(a,b,c){this.ce();if(b.a()==1){this.a=a;if(b.e()==2){this.b._g5(a==0||a==2,a==1||a==2)}else if(!this.b._d7(true)){}else{this.ei=b.h();this.as=c.__x;this.at=c.__y;if(b.d()){this.y=new $$t.c(this.dr.runOn(this),$$t.$dy.co())}}return true}return false},al:function(a){if(this.y!=null){var b=a.h();var c=this.ei;if(Math.abs(b.__x-c.__x)>16||Math.abs(b.__y-c.__y)>16){this.ec()}return true}return false},dq:function(a){this.ce()},dp:function(){this.ce()},dn:function(){var a=this.as;var b=this.at;var c=this.g.d;var d=this.f.d;var e=this.ep;var f=this.en;this.cc();if(!e.containsLocation(a,b)){if(c&&d){return}if(c&&(b<e.y()||b>=e.bottom())){return}if(d&&(a<e.x()||a>=e.right())){return}}var g=$m($$0.$aw.$type,null);var h=$m($$0.$aw.$type,null);if(c){g=$m($$0.$aw.$type,this.m._ei(true,b-f.y(),f.height()-this.m._d3(),this.f.g))}if(d){h=$m($$0.$aw.$type,this.m._ei(false,a-f.x(),f.width()-this.m._d4(),this.g.g))}var i=this.m._bc().displayOptions().unfrozenPaneSettings();if($l(g,null)){i.topPaneHeight(g.value())}if($l(h,null)){i.leftPaneWidth(h.value())}},dr:function(){this.ec()},dt:function(a,b,c){var d=false;switch(b!=null?b:""){case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(this.m!=null&&this.m._cl(a)){d=true}else if(a.getType()==$$t.$dy.d8){d=true}break;case"":if(a==this.m||$b($$t.$i6.$type,a)!==null){d=true}break;case"Extent":case"IsFrozen":if($b($$t.$i6.$type,a)!==null){d=true}break;case"ActiveCellPane":case"HasHorizontalScrollBar":case"HasVerticalScrollBar":case"IsLayoutDirty":case"ZoomLevel":case"ActiveCellInputMessage":if(a==this.m){d=true}break;case"ActiveCellInputMessagePosition":if(a==this.m){this.cw()}break;case"HasSingleSelectionWithAllRowsAndColumns":if(this.ac&&a==this.m){this.cy()}break;case"Offset":if($b($$t.$i5.$type,a)!==null){d=true}break;case"IsVisible":case"Width":case"ScrollBars":if(a==this.o){d=true}break;case"ActiveCellAsRange":if($b($$t.$d6.$type,a)!==null){if(this.z){d=true}if(this.m!=null&&this.m._fu()!=null){this.cw()}}break;case"SheetManager":if(a==this.b){this.n(a._a8())}break;case"IsInEditMode":if(a==this.b){d=true}break}if(d){this.cx()}},ds:function(a,b,c,d){a.dt(b,c,d)},dv:function(a){if(a!=null){var b=a;a=null;this.dz(b)}return{p0:a}},d0:function(a,b){var c=a.a;if(c!=null){var d=$$5.$e.a($$t.$a5.$type,c.e());for(var f=0;f<d.length;f++){var e=d[f];var g=e.b();c.h(e);e.k();if(g!=null){this.dz(g)}}a.a=null;a.i=0}var h=this.dv(b);b=h.p0;return{p1:b}},ea:function(a,b,c){this.cc();var d=this.d;this.d=a;this.as=c.__x;this.at=c.__y;if(!this.am(b)){this.cc()}if(this.d==a){this.di(d,a)}},eb:function(a,b){this.ei=a;this.ea(2,0,b)},ec:function(){this.ed(this.a==0||this.a==2,this.a==1||this.a==2,$$t.$dy.e6(this.as,this.at))},ed:function(a,b,c){this.ce();if(a&&!this.g.c){a=false}if(b&&!this.f.c){b=false}if(a==false&&b==false){return}if(a){this.g.d=true;this.cl(true)}if(b){this.f.d=true;this.cl(false)}var d=a?b?16:15:14;this.ea(1,d,c)},an:function(a,b){if(this.b._de()){return false}this.ei=a;var c;var d=this.av(c,this.ar);c=d.p0;this.ar=d.p1;this.ea(3,18,b);return true},ee:function(a,b,c){var d=b.e();var e=new $$4.x($$t.$a7.$type,0);var f=a==null?new Array(0):$$5.$e.a($$t.$i6.$type,a);var g=$$5.$e.a($$t.$i5.$type,$$5.$e.o($$t.$i6.$type,$$t.$i5.$type,f,function(h){return h._x()}));var h=new $$4.h($$t.$a1.$type,$$t.$a5.$type,0);for(var i=d.count()-1;i>=0;i--){var j=d.item(i);var k=$.ig.util.arrayIndexOf1($$t.$a1.$type,g,j.d());if(k>=0&&f[k].isFrozen()==(j.b()==null)){h.item(j.d(),j)}else{if(j.b()!=null){e.add(j.b())}j.k()}b.h(j)}for(var l=0;l<g.length;l++){var m=g[l];var n;if(!function(){var o=h.tryGetValue(m,n);n=o.p1;return o.ret}()){n=new $$t.ba(m);n.g(function(){});if(!f[l].isFrozen()){var o;if(e.count()>0){var p=e.count()-1;o=e.__inner[p];e.removeAt(p)}else{o=this.u(c)}n.b(o);this.ct(o,m)}}b.f(n)}var r=e.getEnumerator();while(r.moveNext()){var q=r.current();this.dz(q)}},ef:function(a,b,c){var d=b.e();if(a==null){if(d.count()==0){return}}else{var e=a.getEnumerator();var f=d.getEnumerator();var g=false;do{var h=e.moveNext();var i=f.moveNext();if(h!=i){g=true}else if(!h){break}else if(e.current()._x()!=f.current().d()){g=true}else{var j=f.current().b()!=null;var k=!e.current().isFrozen();if(j!=k){g=true}}}while(!g);if(!g){return}}this.ee(a,b,c)},eg:function($t,a,b,c,d,e){var f=a.count()!=b.count();var g=$$4.$m.defaultEqualityComparerValue($t);if(!f){for(var h=0;h<b.count();h++){if(!g.equalsC(b.__inner[h].a,a.item(h))){f=true;break}}}if(f){var i=$$5.$e.z($$t.$kw.$type.specialize($t),b);b.clear();for(var j=0;j<a.count();j++){var k=i.findIndex(function(l){return g.equalsC(l.a,a.item(j))});b.add(null);if(k>=0){b.__inner[j]=i.__inner[k];i.removeAt(k)}}for(var l=0;l<i.count();l++){var m=i.__inner[l];if(null!=d){d(m)}this.dl($t,m.b)}for(var n=0;n<a.count();n++){if(b.__inner[n]==null){var o=e(a.item(n));b.__inner[n]=new $$t.kw($t,a.item(n),o);if(null!=c){c(b.__inner[n])}}}}},eh:function(){this.n(this.b!=null?this.b._a8():null)},$type:new $.ig.Type("SpreadsheetAreaLayoutManager",$.ig.$ot)},true);$c("VisualElementSpreadsheetAreaLayoutManager:cj","SpreadsheetAreaLayoutManager",{ez:null,init:function(a){this.e2=false;this.e3=false;$$t.$ks.init.call(this);this.ez=a},ey:function(a){var b=a._aw()?this.i():this.h();var d=b.f.getEnumerator();while(d.moveNext()){var c=d.current();if(c.a==a){return c.b.e}}return null},ex:function(a){var c=this.ap().getEnumerator();while(c.moveNext()){var b=c.current();if(b.a==a){return b.b.e}}return null},e0:function(){},dg:function(a){$$t.$ks.dg.call(this,a);this.e3=true},df:function(a){if(!this.e3){this.ew(a)}$$t.$ks.df.call(this,a);this.e2=true},e2:false,cw:function(){this.ez.q(true);this.e2=false;var a=this.c();if(a!=null){a.scheduleArrange()}},e3:false,cx:function(){this.ez.q(true);this.e3=false;this.e2=false;var a=this.c();if(a!=null){a.scheduleArrange()}},e4:function(){this.cx()},e1:function(){},$type:new $.ig.Type("VisualElementSpreadsheetAreaLayoutManager",$$t.$ks.$type)},true);$c("JsSpreadsheetAreaLayoutManager:ck","VisualElementSpreadsheetAreaLayoutManager",{init:function(a){this.fn=new $$a.af(0);$$t.$cj.init.call(this,a)},fa:function(a){if(a!=null){a.ab(true)}return null},fc:null,cf:function(){this.fc=new $$t.lw(this.ez);this.fc.bu(1e3);var a=this.fc;a.cellValueChanged=$.ig.Delegate.prototype.combine(a.cellValueChanged,this.fl.runOn(this))},fl:function(a,b){this.c()._ai().as();this.cx()},dw:function(){this.fc=this.fa(this.fc)},fn:null,cz:function(a){this.fn.width(a.width());this.fn.height(a.height())},bv:function(a,b){var c=this.be();var d=a.copy();d.width(d.width()*c);d.height(d.height()*c);if(b.containsRect(d)){this.fc.am(d);this.fc.de(null)}else{if(b.intersectsWith(d)){this.fc.am(d);d.intersect(b);this.fc.de(d)}else{if(d.bottom()<b.y()){d.y(b.y());d.height(0)}if(d.y()>b.bottom()){d.y(b.bottom());d.height(0)}if(d.right()<b.x()){d.x(b.x());d.width(0)}if(d.x()>b.right()){d.x(b.right());d.width(0)}this.fc.am(d);this.fc.de($$a.$ae.empty())}}},ay:function(){var a=this.c()._ai().l();if(a==null){return 0}var b=this.be();var c=this.fn.width();var d=$.ig.truncate(Math.ceil(c*b));var e=this.c()._ay();var f=e.c9();var g=e.dg()._e+e.dg()._b;var h=this.c()._a0().g(f,e.ci(),e.dg(),b,d);h-=g;h/=b;h+=g;return h},fb:null,cg:function(){this.fb=new $$t.lv(this.ez);this.fb.bu(900)},dx:function(){this.fb=this.fa(this.fb)},c0:function(a){},bw:function(a,b){var c=a.copy();this.fb.am(c);if(b.containsRect(c)){this.fb.cn(null)}else{c.intersect(b);this.fb.cn(c)}},e0:function(){return this.fc},fd:null,ch:function(){this.fd=new $$t.lx(this.ez);this.fd.bu(800);this.fd.ac(false)},dy:function(){this.fd=this.fa(this.fd)},bz:function(a){this.fd.am(a)},c2:function(a){},cr:function(){this.fd.ac(false)},d9:function(a,b){this.fd.cm(b,a);this.fd.ac(true)},a8:function(){return this.fd.cj},a7:function(){return this.fd.ci},eq:function($t,a){var b=a;var c=b.e;return new $$a.ae(0,c.ax,c.a2,c.a3,c.av)},q:function(a){var b=a._aw()?"SpreadsheetRowHeaderContainer":"SpreadsheetColumnHeaderContainer";var c=this.ez.c(b);var d=null;if(c!=null){c.ab(false);d=c.b(0);this.fm($$t.$i6.$type,d)}else{c=new $$t.dn($$t.$i6.$type,this.ez,b);c.bu(200)}if(d==null){d=new $$t.lr($$t.$i6.$type,$$t.$dq.$type,c,"SpreadsheetRenderer")}this.fj($$t.$i6.$type,d,new $$t.g1(a,new $$t.ls($$t.$i6.$type,d)));this.fj($$t.$i6.$type,d,new $$t.g5(a,new $$t.ls($$t.$i6.$type,d)));this.fj($$t.$i6.$type,d,new $$t.cm(a,new $$t.ls($$t.$i6.$type,d)));this.fj($$t.$i6.$type,d,new $$t.g6(a,new $$t.ls($$t.$i6.$type,d)));var e=new $$t.c2(c,a);c.cg(e.d);return e},fm:function($t,a){var b=new $$4.x($$t.$bu.$type.specialize($t,$$t.$dq.$type),1,a.cp());var d=b.getEnumerator();while(d.moveNext()){var c=d.current();a.cs(c);c.dispose();c._d().detach(c)}},fj:function($t,a,b){b._d().attach(b);a.cr(b)},r:function(a){var b=this.ez.c("SpreadsheetPaneContainer");var c=null;var d=null;var e=null;var f=null;var g=null;var h=null;if(b!=null){b.ab(false);c=b.b(0);d=b.b(1).cf;e=b.b(2);f=b.b(3).cf;g=b.b(4).cf;h=b.b(5).cf;this.fm($$t.$i3.$type,c);d.d();this.fm($$t.$i3.$type,e);f.d();g.d();h.d()}else{b=new $$t.dn($$t.$i3.$type,this.ez,"SpreadsheetPaneContainer");c=new $$t.lr($$t.$i3.$type,$$t.$dq.$type,b,"SpreadsheetRenderer");d=new $$t.cx(b).cf;e=new $$t.lr($$t.$i3.$type,$$t.$dq.$type,b,"SpreadsheetRenderer");f=new $$t.cw(b,"Layer").cf;g=new $$t.cy(b).cf;h=new $$t.cy(b).cf}this.fj($$t.$i3.$type,c,new $$t.hd(a,new $$t.ls($$t.$i3.$type,c)));this.fj($$t.$i3.$type,c,new $$t.hh(a,new $$t.ls($$t.$i3.$type,c)));d.attach(new $$t.cq(a,d));this.fj($$t.$i3.$type,e,new $$t.he(a,new $$t.ls($$t.$i3.$type,e)));this.fj($$t.$i3.$type,e,new $$t.hc(a,new $$t.ls($$t.$i3.$type,e)));this.fj($$t.$i3.$type,e,new $$t.hk(a,new $$t.ls($$t.$i3.$type,e)));f.attach(new $$t.cc(a,f));g.attach(new $$t.hj(a,g));h.attach(new $$t.hi(a,h));var i=new $$t.cl(b,a);b.cg(i.d);return i},dl:function($t,a){var b=a;this.fa(b.e)},c3:function($t,a,b){var c=a;c.f(b)},b0:function($t,a,b){var c=a;c.e.am(b)},u:function(a){var b=new $$t.bc(new $$t.bd(a,this.ez));var c=b.a.a;c.bu(300);this.fk(c);return b},fk:function(a){var b=a.cl==0;var c=this.c()._a1;a.h=b?c.d:c.e;if(b){a.cg.a3=c.q;a.cf.a3=c.p}else{a.cg.av=c.ak;a.cf.av=c.aj}},dz:function(a){var b=a;b.dispose()},ct:function(a,b){a.setIsEnabled(b!=null)},b2:function(a,b){var c=a;c.a.a.am(b)},c5:function(a,b){},a0:function(a){return this.c()._a1.s},az:function(a){return this.c()._a1.r},fh:null,ci:function(){this.fh=new $$t.l0(this.ez);this.fh.bu(100)},d1:function(){this.fh=this.fa(this.fh)},b4:function(a){this.fh.am(a)},c7:function(a){this.cy()},cy:function(){if(this.fh!=null){this.fh.cg(this.n()._cd())}},ff:null,fe:null,cu:function(a,b,c,d){var e=a?this.ff:this.fe;e.u(b)},cj:function(a){var b;if(a){this.ff=b=new $$t.lz(this.ez,0)}else{this.fe=b=new $$t.lz(this.ez,1)}b.bu(400)},d2:function(a){if(a){this.ff=this.fa(this.ff)}else{this.fe=this.fa(this.fe)}},b5:function(a,b){var c=a?this.ff:this.fe;c.am(b)},c8:function(a,b){},a1:function(a){var b=a?this.ff:this.fe;var c=this.c()._a1;return b.u()?a?c.t:c.v:a?c.u:c.w},e6:null,e5:null,cl:function(a){var b=new $$t.au(this.ez,a?"RowSplitterPreview":"ColSplitterPreview");b.bu(600);b.w(false);if(a){this.e6=b}else{this.e5=b}},d4:function(a){if(a){this.e6=this.fa(this.e6)}else{this.e5=this.fa(this.e5)}},b7:function(a,b){var c=a?this.e6:this.e5;c.am(b)},da:function(a,b){},fg:null,cv:function(a){},ck:function(){this.fg=new $$t.lz(this.ez,2);this.fg.bu(500)},d3:function(){this.fg=this.fa(this.fg)},b6:function(a){this.fg.am(a)},c9:function(a){},fi:null,co:function(){this.fi=new $$t.l5(this.ez,"TabItemArea");this.fi.cm.cf.h(this.c()._bf());this.fi.ch.ac(this.c().allowAddWorksheet());this.fi.bu(330);this.fi.cq()},d7:function(){this.fi.cm.cf.h(null);this.fi=this.fa(this.fi)},ca:function(a){this.fi.al(a.x(),a.y(),a.width(),a.height())},dd:function(a){this.fi.cm.cf.a8()},ba:function(){var a=this.c()._a1.y;if(this.fi.co>a){a=this.fi.co}return a},bd:function(){var a=this.fi.cp;if(!this.fi.ch.ac()){a-=this.fi.ch.a3}return a+this.fi.cm.cf.bb},e1:function(){return this.fi},e9:null,cp:function(){this.e9=new $$t.l4(this.ez);this.e9.bu(370)},d8:function(){this.e9=this.fa(this.e9)},cb:function(a){this.e9.am(a)},de:function(a){},bb:function(){return this.c()._a1.z},bc:function(){return this.c()._a1.aa},e7:null,cm:function(){this.e7=new $$t.au(this.ez,"TabAreaBackground");this.e7.bu(225);this.e7.w(false)},d5:function(){this.e7=this.fa(this.e7)},b8:function(a){this.e7.am(a)},db:function(a){},e8:null,cn:function(){this.e8=new $$t.au(this.ez,"TabAreaBorder");this.e8.bu(250);this.e8.w(false)},d6:function(){this.e8=this.fa(this.e8)},b9:function(a){this.e8.am(a)},dc:function(a){},a9:function(){return this.c()._a1.x},du:function(a,b){this.cx();this.cw()},dm:function(a,b){this.cx();this.cw()},cd:function(){this.ez.bw(null);this.ez.d().d0(this.ez)},di:function(a,b){$$t.$cj.di.call(this,a,b);switch(a){case 2:if(this.fd!=null){this.fd.s(false)}break;case 3:if(this.e9!=null){this.e9.s(false)}break;case 1:if(this.ff!=null){this.ff.s(false)}if(this.fe!=null){this.fe.s(false)}if(this.fg!=null){this.fg.s(false)}break}switch(b){case 2:if(this.fd!=null){this.fd.s(true)}break;case 3:if(this.e9!=null){this.e9.s(true)}break;case 1:if(this.e6!=null){this.ff.s(true)}if(this.e5!=null){this.fe.s(true)}if(this.e6!=null&&this.e5!=null){this.fg.s(true)}break}},am:function(a){if(this.ez.d().cr(this.ez)){this.ez.bw($$t.$ee.a(a));return true}return false},ek:function(a,b){var c=a.b.e;return{__x:b.__x-c.ax,__y:b.__y-c.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},el:function(a,b){var c=a.b.e;return{__x:b.__x-c.ax,__y:b.__y-c.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},es:function(a,b){var c=a.b.e;return new $$a.ae(0,b.x()+c.ax,b.y()+c.a2,b.width(),b.height())},em:function(a,b){var c=a.b.e;return{__x:b.__x+c.ax,__y:b.__y+c.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},ej:function(a){return{__x:a.__x-this.ez.ax,__y:a.__y-this.ez.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},dt:function(a,b,c){$$t.$cj.dt.call(this,a,b,c);switch(b){case"AllowAddWorksheet":if(this.fi!=null){this.fi.ch.ac(this.c().allowAddWorksheet())}break;case"IsInEditMode":if(a==this.c()){if(this.fc!=null){this.fc.c3(this.c().isInEditMode());this.fc.cw(true)}if(this.fb!=null){this.fb.cg(this.c()._ai().x())}}break}},e4:function(){var $self=this;$$t.$cj.e4.call(this);if(this.fi!=null){this.fi.cm.cf.bd();this.fi.cm.cf.aj();this.fi.cq()}this.cq(function(a){var b=a.a.a;$self.fk(b);b.t(true)})},$type:new $.ig.Type("JsSpreadsheetAreaLayoutManager",$$t.$cj.$type)},true);$c("ISpreadsheetInteractionManagerOwner:hw","Object",{$type:new $.ig.Type("ISpreadsheetInteractionManagerOwner",null)},true);$c("IElementLayerContainer:bg","Object",{$type:new $.ig.Type("IElementLayerContainer",null)},true);$c("SpreadsheetElementLayerContainer$1:dp","Object",{$t:null,e:null,b:null,d:null,a:null,init:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);$$ak.$c.y(a);$$ak.$c.y(b);this.e=a;this.b=b;this.d=this.c()},c:function(){},f:function(a){for(var b=0,c=this.e.a9();b<c;b++){var d=$b($$t.$lp.$type,this.e.b(b));if(d!=null){d.cg(a)}}},focusControlIfNeeded:function(){var a=document.activeElement;var b=$b($$t.$ma.$type,this.e.d());if(b!=null&&(a==null||b.d6._v().hasKeyboardFocusWithin())){b.d6._v().focus()}},getRelativeSpreadsheetControlBounds:function(){return $.ig.util.rectToLiteral(this._getRelativeSpreadsheetControlBounds$i.apply(this,arguments))},_getRelativeSpreadsheetControlBounds$i:function(){var a=this.e.d();return new $$a.ae(0,a.ax-this.e.ax,a.a2-this.e.a2,a.a3,a.av)},getLayerContainerSize:function(){return $.ig.util.sizeToLiteral(this._getLayerContainerSize$i.apply(this,arguments))},_getLayerContainerSize$i:function(){return new $$a.af(1,this.e.a3,this.e.av)},hideToolTip:function(){this.e.b0()},isMouseOver:function(){return this.e.y()},isToolTipAllowed:function(){return true},onCursorChanged:function(a){this.e.bw($$t.$ee.a(a))},showToolTip:function(a){this.e.ca(a._b.toString(),a._d.__x,a._d.__y,a._c)},$type:new $.ig.Type("SpreadsheetElementLayerContainer$1",$.ig.$ot,[$$t.$hw.$type,$$t.$bg.$type])},true);$c("PaneLayerContainer:cl","SpreadsheetElementLayerContainer$1",{init:function(a,b){$$t.$dp.init.call(this,$$t.$i3.$type,a,b)},c:function(){return new $$t.h9(this.b,this)},$type:new $.ig.Type("PaneLayerContainer",$$t.$dp.$type.specialize($$t.$i3.$type))},true);$c("RendererElementLayer$2:bu","ElementLayer$1",{$tViewModel:null,$tGraphics:null,_k:null,init:function($tViewModel,$tGraphics,a,b,c){this.$tViewModel=$tViewModel;this.$tGraphics=$tGraphics;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tViewModel,this.$tGraphics)}$$t.$bp.init.call(this,this.$tViewModel,a,b,c)},_g:function(a){var b=new $$a.ae(0,0,0,a.width(),a.height());this._k.arrange(a);return b},dispose:function(){if(this._k!=null){this._d().releaseRenderer(this._k);this._k.onUnloaded()}this._p()},_h:function(a){if(this._k==null){this._k=this._d().createRenderer()}this._k.measure(a);return new $$a.af(0)},_l:function(){return this._k},_m:function(){},_r:function(a){return a},_p:function(){},_q:function(a,b,c,d){},_o:function(){if(this._k!=null){this._k.invalidateRender()}},_n:function(){if(this._k!=null){this._k.invalidateLayout()}},$type:new $.ig.Type("RendererElementLayer$2",$$t.$bp.$type.specialize(0))},true);$c("ISpreadsheetGraphics:dq","Object",{$type:new $.ig.Type("ISpreadsheetGraphics",null)},true);$c("SpreadsheetRendererElementLayer$1:ho","RendererElementLayer$2",{$tViewModel:null,init:function($tViewModel,a,b,c){this.$tViewModel=$tViewModel;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tViewModel)}$$t.$bu.init.call(this,this.$tViewModel,$$t.$dq.$type,a,b,c)},_s:function(){},$type:new $.ig.Type("SpreadsheetRendererElementLayer$1",$$t.$bu.$type.specialize(0,$$t.$dq.$type))},true);$c("spreadsheet.SpreadsheetScrollRegion:i6","PropertyChangeNotifierExtended",{_w:null,_cd:0,_ca:0,_bb:0,_bc:0,_a3:0,_ao:false,_a6:0,_bd:0,_k:null,_j:null,_p:null,_q:null,_u:0,_by:null,_bz:null,_b1:null,_b2:null,_b3:null,_be:0,_a5:0,_a4:0,_a9:0,_ba:0,_b0:null,_ae:null,_aa:null,_y:null,_n:null,_cc:0,_cb:0,_ac:null,_ck:$m($$0.$aw.$type,null),_g:null,_h:null,_cl:$m($$0.$aw.$type,null),_a7:0,_cn:$m($$0.$aw.$type,null),_cm:$m($$0.$aw.$type,null),_an:false,_ah:0,init:function(){this._a9=1;this._ba=1;this._an=true;$$ak.$s.init.call(this);var a=$$ak.$m.e($$t.$i5.$type,this._w,new $$t.i5(this),this,false);this._w=a.p0;var b=$$ak.$m.e($$t.$oh.$type.specialize($$a4.$lq.$type),this._k,new $$t.oh($$a4.$lq.$type,2,false,false),this,false);this._k=b.p0;this._l(this._k)},e:function(a,b,c){switch(b!=null?b:""){case"":case"Offset":if(a==this._w){this._g=this._h=null}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._k){this._g=this._h=null}break}$$ak.$s.e.call(this,a,b,c)},actualExtent:function(a){if(arguments.length===1){if(this._a3!=a){this._a3=a;this.a("ActualExtent")}return a}else{return this._a3}},endIndex:function(a){if(arguments.length===1){if(this._ca!=a){this._ca=a;this.a("EndIndex")}return a}else{return this._ca}},isFrozen:function(a){if(arguments.length===1){if(this._ao!=a){this._ao=a;this.a("IsFrozen")}return a}else{return this._ao}},startIndex:function(a){if(arguments.length===1){if(this._cd!=a){this._cd=a;this.a("StartIndex")}return a}else{return this._cd}},_ab:function(a){if(arguments.length===1){if(a!=this._aa){var b=this._aa;var c=$$ak.$m.e($$t.$d6.$type,this._aa,a,this,true);this._aa=c.p0;this.a("ActiveSelection")}return a}else{return this._aa}},_l:function(a){if(arguments.length===1){if(this._j!=a){if(this._j!=this._m()&&this._j!=null){$$t.$dy.ef(this._j,this)}this._j=a;if(a!=null&&a!=this._m()){$$t.$dy.d9(this._j,this,true)}this.a("ActualItemPositions")}return a}else{return this._j}},_z:function(a){if(arguments.length===1){if(this._y!=a){this._y=a;this.a("AdjacentRowColumn")}return a}else{return this._y}},_ap:function(a){if(arguments.length===1){if(this._an!=a){this._an=a;this.a("AreHeadersVisible")}return a}else{return this._an}},__bg:0,__bh:0,_b4:function(a){if(arguments.length===1){this._by=a;return a}else{return this._by}},_b5:function(a){if(arguments.length===1){this._bz=a;return a}else{return this._bz}},_r:function(a){if(arguments.length===1){if(this._p!=a){this._p=a;this.a("CurrentScrollPageCache")}return a}else{return this._p}},_bi:function(a){if(arguments.length===1){if(this._a4!=a){this._a4=a;this.a("DpiX")}return a}else{return this._a4}},_bj:function(a){if(arguments.length===1){if(this._a5!=a){this._a5=a;this.a("DpiY")}return a}else{return this._a5}},_bk:function(a){if(arguments.length===1){this._a6=a;return a}else{return this._a6}},_b6:function(a){if(arguments.length===1){if(this._b0!=a){this._b0=a;this.a("GetHeaderText")}return a}else{return this._b0}},_b7:function(a){if(arguments.length===1){this._b1=a;return a}else{return this._b1}},_b8:function(a){if(arguments.length===1){this._b2=a;return a}else{return this._b2}},_b9:function(a){if(arguments.length===1){this._b3=a;return a}else{return this._b3}},_af:function(a){if(arguments.length===1){if(this._ae!=a){this._ae=a;this.a("HeaderFont")}return a}else{return this._ae}},_co:function(a){if(arguments.length===1){if($l(this._ck,a)){this._ck=a;this.a("HotTrackedIndex")}return a}else{return this._ck}},_aw:function(){},_cp:function(a){if(arguments.length===1){if($l(a,this._cl)){this._cl=a;if($j(this._cl,null)){this._l(this._m())}else{var b=new $$t.oh($$a4.$lq.$type,0);b._reInitialize(this._m());this._l(b)}this.a("ItemBeingResized")}return a}else{return this._cl}},_bp:function(a){if(arguments.length===1){if(this._a7!=a){this._a7=a;this.a("ItemBeingResizedRelativeEdge")}return a}else{return this._a7}},_m:function(){return this._k},_ch:function(a){if(arguments.length===1){if(this._cb!=a){this._cb=a;this.a("MaxItemExtent")}return a}else{return this._cb}},_a8:0,_bq:function(a){if(arguments.length===1){if(this._a8!=a){this._a8=a;this.a("MaxScrollRangeExtent")}return a}else{return this._a8}},_ci:function(a){if(arguments.length===1){if(this._cc!=a){this._cc=a;this.a("MaxItemIndex")}return a}else{return this._cc}},_s:function(a){if(arguments.length===1){if(this._q!=a){this._q=a;this.a("MaxScrollPageCache")}return a}else{return this._q}},_cq:function(a){if(arguments.length===1){if($l(this._cm,a)){this._cm=a;this.a("NextVisibleItemIndex")}return a}else{return this._cm}},_br:function(a){if(arguments.length===1){if(this._a9!=a){this._a9=a;this.a("PixelSizeX")}return a}else{return this._a9}},_bs:function(a){if(arguments.length===1){if(this._ba!=a){this._ba=a;this.a("PixelSizeY")}return a}else{return this._ba}},_bt:function(a){if(arguments.length===1){if(this._bb!=a){this._bb=a;this.a("PreferredExtent");this.a("PreferredExtentResolved")}return a}else{return this._bb}},_bu:function(){return Math.max(this._bb-this._bc,0)},_cr:function(a){if(arguments.length===1){if($l(this._cn,a)){this._cn=a;this.a("PreviousVisibleItemIndex")}return a}else{return this._cn}},_bv:function(a){if(arguments.length===1){if(this._bc!=a){this._bc=a;this.a("ReservedExtent");this.a("PreferredExtentResolved")}return a}else{return this._bc}},_ad:function(a){if(arguments.length===1){if(a!=this._ac){var b=this._ac;var c=$$ak.$m.e($$t.$bz.$type,this._ac,a,this,true);this._ac=c.p0;this.a("ResourceProvider")}return a}else{return this._ac}},_x:function(){return this._w},_ai:function(a){if(arguments.length===1){if(this._ah!=a){this._ah=a;this.a("SelectionMode")}return a}else{return this._ah}},__ak:null,__am:null,__al:null,_o:function(a){if(arguments.length===1){this._n=a;return a}else{return this._n}},_v:function(a){if(arguments.length===1){if(this._u!=a){this._u=a;this.a("SizingMode")}return a}else{return this._u}},_bw:function(a){if(arguments.length===1){this._bd=a;return a}else{return this._bd}},_bx:function(a){if(arguments.length===1){if(a!=this._be){this._be=a;this._g=null;this.a("ZoomLevel")}return a}else{return this._be}},_aq:function(a,b){var c=null;if(b!=null&&b.count()>0){c=function(d,e){if(d._h<e){return-1}else if(d._i>e){return 1}else{return 0}};return $$ak.$c.n($$t.$i.$type,$$0.$aw.$type,b,c,a)>=0}return false},_a0:function(){},_t:function(a){var b=$j(a,this._ck);if(this._ar()){if(this._as(a)){if(this._ax(a)){return b?4:2}else if(!b){return 1}}}if(b){return 3}return 0},_ag:function(a){var b=new $$a4.lq;var c=this._az(a,b);b=c.p1;return b},_cf:function(a){if(a>=this.startIndex()&&a<=this.endIndex()){for(var b=0,c=this._k.count();b<c;b++){if(this._k.__inner[b]._index()==a){return b}}}return-1},_aj:function(a){var b=this.startIndex();var c=this.endIndex();if(a){if(this._bk()>0&&c>b){c--}if(this._bw()>0&&b<c){b++}}return new $$t.i(1,b,c)},_a1:function(a){if(a>this._ci()){return new Array(0)}var b=this.actualExtent()/this._bx();var c=this._b5()(b);return this._b3(a,c)},_a2:function(){},_bl:function(){return this._b4()($.ig.truncate($$a4.$aa.f(this._w._offset())))},_i:function(a,b){var c=b?this._j:this._k;var d=a?this._g:this._h;if(c!=this._k){d=null}if(d==null){var e=c.count();if(e==0){d=new Array(0)}else{var f=a?this._bx():1;d=new Array(e+1);for(var g=0;g<e;g++){d[g]=this._bm(c.__inner[g],true,true)*f}d[e]=this._bm(c.__inner[e-1],false,true)*f;if(c==this._k){if(a){this._g=d}else{this._h=d}}}}return d},_bm:function(a,b,c){var d=a._offset();if(!b){d+=a._extent()}if(c){d-=$.ig.truncate($$a4.$aa.f(this._w._offset()))}return this._b4()(d)},_bn:function(a,b,c){var d=this._m().count();var e=this._m();var f=new $$a4.lq;if(d==0||a<e.__inner[0]._index()||a>e.__inner[d-1]._index()){f=this._b7()(a)}else{var g=$$ak.$c.n($$a4.$lq.$type,$$0.$aw.$type,e,function(h,i){return $x(h._index(),i)},a);if(g<0){b=true;g=~g}f=e.__inner[g]}return this._bm(f,b,c)},_bo:function(a,b){if(b<=0){return this._bn(a,true,true)}else if(b>=100){return this._bn(a,false,true)}else{var c=this._bn(a,true,true);var d=this._bn(a,false,true);return c+(d-c)*(b/100)}},_cg:function(a,b){if(b>=this.startIndex()&&a<=this.endIndex()){for(var c=0,d=this._k.count();c<d;c++){var e=this._k.__inner[c]._index();if(a<=e){return e<=b?c:-1}}}return-1},_ar:function(){var a=this._a2();if(a!=null&&a.count()>0){var b=a.item(0);var c=a.item(a.count()-1);return b._i<=this.endIndex()&&c._h>=this.startIndex()}return false},_as:function(a){if(this._ai()==2){return false}var b=this._a2();return $$t.$i6._aq(a,b)},_au:function(a,b){var c=b?this._j:this._k;if(c.count()>0&&a<c.count()){if(a==c.count()-1){var d=c.__inner[c.count()-1]._index();if($j(this._cm,null)){return d!=this._ci()}return this._cm.value()-d>1}return c.__inner[a+1]._index()-c.__inner[a]._index()>1}return false},_av:function(a,b){var c=b?this._j:this._k;if(c.count()>0&&a<c.count()){if(a==0){if($j(this._cn,null)){return c.__inner[0]._index()>0}return c.__inner[0]._index()-this._cn.value()>1}return c.__inner[a]._index()-c.__inner[a-1]._index()>1}return false},_ax:function(a){if(this._ai()==2){return false}var b=this._a0();return $$t.$i6._aq(a,b)},_ay:function(a){return a==this._a0()||a==this._a2()},_az:function(a,b){var c=this._b4()($.ig.truncate($$a4.$aa.f(this._w._offset())));c+=a;var d=this._b5()(Math.max(c,0));b=this._b8()(d);return{ret:b._offset()<=d&&d<b._l(),p1:b}},$type:new $.ig.Type("spreadsheet.SpreadsheetScrollRegion",$$ak.$s.$type)},true);$c("SpreadsheetHeaderContentLayerBase$1:g3","SpreadsheetRendererElementLayer$1",{$tVisual:null,_x:null,_z:null,_u:null,_y:false,init:function($tVisual,a,b,c){this.$tVisual=$tVisual;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tVisual)}$$t.$ho.init.call(this,$$t.$i6.$type,a,b,$$t.$g7.o());this._y=c;this._z=new $$4.h($$0.$aw.$type,$$t.$g4.$type.specialize(this.$tVisual),0);this._x=new $$ak.n($$t.$g3.$type.specialize(this.$tVisual),this,this._af.runOn(this),false);$$t.$dy.d9(a,this._x,true)},_g:function(a){if(this._y){$$t.$ho._g.call(this,a)}var b=new $$a.ae(0,0,0,a.width(),a.height());var c=this._viewModel();var d=c._bx();var e=c._aw();var f=0;var g=0;var h=a.width()/d;var i=a.height()/d;var j=c._i(false,true);var k=j.length-1;var l=c._l();var m=c._ar();var n=c._ad();var o=1;var p=1;if(e){g+=p}else{f+=p}var q=Math.max(h-f,0);var r=Math.max(i-g-o,0);for(var s=0;s<k;s++){var t=j[s];var u=j[s+1];var v=l.__inner[s];var w=this._z.item(v._index());if(e){g=t+p;i=u+p;r=Math.max(i-g-o,0)}else{f=t+p;h=u+p;q=Math.max(h-f,0)}var x=c._t(v._index());if(w.c){if(w.b!=x){w.c=false;w.b=x;this._ab(c,w,v._index(),c._b6()(v._index()))}}else{w.b=x}if(w.e>q||w.d>r){var y=Math.min(q,w.e);var z=Math.min(r,w.d);w.f(w.e/2-y/2,w.d/2-z/2,y,z)}else{w.g()}w.h(f+q/2-w.e/2,g+r/2-w.d/2);w.c=true}return b},_h:function(a){var $self=this;if(this._y){$$t.$ho._h.call(this,a)}var b=this._viewModel();var c=new $$a.af(0);var d=b._aw();var e=b._bx();if(b==null||b._l().count()==0){this._ah();this._z.clear()}else{var f=new $$4.h($$0.$aw.$type,$$t.$g4.$type.specialize(this.$tVisual),3,this._z);this._z.clear();var h=b._l().getEnumerator();while(h.moveNext()){var g=h.current();var i;if(function(){var j=f.tryGetValue(g._index(),i);i=j.p1;return j.ret}()){this._z.add(g._index(),i);f.remove(g._index())}}var j=$$5.$e.z(this.$tVisual,$$5.$e.o($$t.$g4.$type.specialize(this.$tVisual),this.$tVisual,f.values(),function(k){return k.a}));f.clear();var k=j.count()-1;var m=b._l().getEnumerator();while(m.moveNext()){var l=m.current();var n;if(!function(){var o=$self._z.tryGetValue(l._index(),n);
n=o.p1;return o.ret}()||this._u==null){if(n==null){this._z.item(l._index(),n=this._v());if(k>=0){n.a=j.__inner[k];j.removeAt(k--)}else{n.a=this._t()}}var o=l._index();n.c=false;this._ab(b,n,o,b._b6()(o))}if(d){var p=n.e*e;if(p>c.width()){c.width(p)}}else if(!d){var q=n.d*e;if(q>c.height()){c.height(q)}}}for(var r=0,s=j.count();r<s;r++){this._ai(j.__inner[r])}}if(this._u==null){this._u=this._v();this._ab(b,this._u,100,b._b6()(100))}if(d){var t=this._u.e*e;if(t>c.width()){c.width(t)}}else if(!d){var u=this._u.d*e;if(u>c.height()){c.height(u)}}if(d){c.width(c.width()+3*b._br())}else{c.height(c.height()+3*b._bs())}if(d){c.width(c.width()+b._br())}else{c.height(c.height()+b._bs())}var v=d?c.width():c.height();return c},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._x)}},_m:function(){return 2},_q:function(a,b,c,d){},_s:function(){return this._viewModel()._o().renderCache()},_v:function(){},_t:function(){},_ab:function(a,b,c,d){},_ad:function(){},_ac:function(){},_ae:function(){},_ah:function(){},_ai:function(a){},_aa:function(){return this._z.values()},_w:function($tVisual,a,b){var c;switch(b){default:case 0:c=a?15:28;break;case 2:c=a?16:29;break;case 4:c=a?23:32;break;case 1:c=a?17:30;break;case 3:c=a?18:31;break}return c},_ag:function(a,b,c){var d=false;var e=false;switch(b!=null?b:""){case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._viewModel()._l()){e=d=true}else if(this._viewModel()._ay(a)){e=true}break;case"ZoomLevel":if(a==this._viewModel()){e=d=true;this._ae();if(this._viewModel()._o().renderCache().s){this._u=null}}break;case"HeaderFont":case"GetHeaderText":case"ResourceProvider":if(a==this._viewModel()){this._u=null;e=d=true}break;case"ActualItemPositions":if(a==this._viewModel()){e=d=true}break;case"HotTrackedIndex":case"SelectionMode":if(a==this._viewModel()){e=true}break;case"ResourceVersion":if(a==this._viewModel()._ad()){this._u=null;e=d=true}break;case"":case"Offset":if(a==this._viewModel()._x()){e=true}break}if(d){this._ac()}if(e){this._ad()}},_af:function(a,b,c,d){a._ag(b,c,d)},$type:new $.ig.Type("SpreadsheetHeaderContentLayerBase$1",$$t.$ho.$type.specialize($$t.$i6.$type))},true);$c("HeaderVisual:co","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("HeaderVisual",$.ig.$ot)},true);$c("SpreadsheetHeaderContentLayer:cm","SpreadsheetHeaderContentLayerBase$1",{init:function(a,b){$$t.$g3.init.call(this,$$t.$co.$type,a,b,true)},_v:function(){return new $$t.cn},_t:function(){return new $$t.co},_ab:function(a,b,c,d){var e=b;var f=a._o().renderCache();e.p=c;e.q=d;var g=a._bx();b.d=f.aa(f.o(),$.ig.truncate(g*100),a._bs());b.e=f.ad(a,d)},_ad:function(){this._e();this._o()},_ac:function(){this._f()},_ae:function(){},_q:function(a,b,c,d){var e=this._viewModel()._aw();var f=this._viewModel()._bx();var g=this._viewModel()._af();var i=this._aa().getEnumerator();while(i.moveNext()){var h=i.current();var j=h;var k=$$t.$g3._w($$t.$co.$type,e,j.b);var l=(j.n+j.e/2)*f;var m=(j.o+j.d/2)*f;a.drawHeaderText(g,j.q,l,m,k,f)}$$t.$g3._q.call(this,a,b,c,d)},_ah:function(){},_ai:function(a){},$type:new $.ig.Type("SpreadsheetHeaderContentLayer",$$t.$g3.$type.specialize($$t.$co.$type))},true);$c("SpreadsheetHeaderContentLayerBase_HeaderInfo$1:g4","Object",{$tVisual:null,init:function($tVisual){this.$tVisual=$tVisual;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tVisual)}$.ig.$op.init.call(this)},e:0,d:0,c:false,b:0,a:null,g:function(){},f:function(a,b,c,d){},h:function(a,b){},$type:new $.ig.Type("SpreadsheetHeaderContentLayerBase_HeaderInfo$1",$.ig.$ot)},true);$c("HeaderVisualInfo:cn","SpreadsheetHeaderContentLayerBase_HeaderInfo$1",{init:function(){$$t.$g4.init.call(this,$$t.$co.$type)},q:null,p:0,n:0,o:0,i:false,l:0,m:0,k:0,j:0,f:function(a,b,c,d){this.i=true;this.l=a;this.m=b;this.k=c;this.j=d},g:function(){this.i=false},h:function(a,b){this.n=a;this.o=b},$type:new $.ig.Type("HeaderVisualInfo",$$t.$g4.$type.specialize($$t.$co.$type))},true);$c("SpreadsheetCellValueInfo:cp","Object",{init:function(){this.an=null;this.ar=new $$a.ax;$.ig.$op.init.call(this)},o:function(a){return this.b==a.b&&this.e==a.e&&this.f==a.f&&this.c==a.c},an:null,d:null,h:null,w:0,af:0,ab:0,ak:0,x:0,ag:0,r:function(a){if(arguments.length===1){this.aq(1,a);return a}else{return this.m(1)}},ao:null,ap:null,aa:0,ae:0,ad:0,am:$m($$0.$av.$type,null),al:$m($$0.$av.$type,null),i:function(a){if(arguments.length===1){this.aq(2,a);return a}else{return this.m(2)}},v:0,ac:0,y:0,z:0,ah:0,ai:0,aj:function(){var a=this.y;switch(this.e){case 0:case 1:case 4:case 5:case 7:case 3:a+=this.ah+this.ai;break}return a},s:function(a){if(arguments.length===1){this.aq(4,a);return a}else{return this.m(4)}},j:function(a){if(arguments.length===1){this.aq(8,a);return a}else{return this.m(8)}},t:function(a){if(arguments.length===1){this.aq(16,a);return a}else{return this.m(16)}},e:0,f:0,g:null,ar:null,c:null,u:0,a:null,b:0,n:function(a){if(arguments.length===1){this.aq(32,a);return a}else{return this.m(32)}},k:function(a){if(arguments.length===1){this.aq(64,a);return a}else{return this.m(64)}},q:function(a){if(arguments.length===1){this.aq(128,a);return a}else{return this.m(128)}},l:function(a){if(arguments.length===1){this.aq(256,a);return a}else{return this.m(256)}},p:function(a){if(arguments.length===1){this.aq(512,a);return a}else{return this.m(512)}},m:function(a){return(this.b&a)!=0},aq:function(a,b){if(b){this.b|=a}else{this.b&=~a}},$type:new $.ig.Type("SpreadsheetCellValueInfo",$.ig.$ot)},true);$c("SpreadsheetPaneCellValueLayerBase$1:hf","SpreadsheetRendererElementLayer$1",{$tVisual:null,_u:null,_x:null,_v:false,init:function($tVisual,a,b,c){this.$tVisual=$tVisual;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tVisual)}$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.o());this._v=c;this._x=new $$4.x($$t.$hg.$type.specialize(this.$tVisual),0);this._u=new $$ak.n($$t.$hf.$type.specialize(this.$tVisual),this,this._ac.runOn(this),false);$$t.$dy.d9(a,this._u,true)},_m:function(){return 2},_p:function(){if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._u)}},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){var e=this._viewModel();if(e!=null){var f=e.columnScrollRegion()._br();var g=d.__x;var h=d.__y;var i=e.columnScrollRegion();var j=e.rowScrollRegion();var k=i._bx();var l=b.d();var m=l/2;var n=-g;var o=-h;var p=$$a4.$k.gw;var q=this._v;var s=this._x.getEnumerator();while(s.moveNext()){var r=s.current();var t=r.a;var u=t.a;var v=t.d!=null&&t.d.iconInfo()!=null?t.d.iconInfo().icon():-1;if(u==null&&v==-1){continue}var w=c.x()+i._bn(t.ab,true,q)*k;var x=t.e==4?t.ab:t.x;var y=c.x()+i._bn(x,false,q)*k;var z=c.y()+j._bn(t.ak,true,q)*k;var aa=c.y()+j._bn(t.ag,false,q)*k;var ab=y-w;var ac=aa-z;z+=t.ac*k;aa-=t.v*k;if(v!=-1){var ad=Math.floor(t.ah*k);var ae=w+(t.y+$a(t.ai,2))*k;var af=z;var ag=($a(t.ai,2)+3)*k;switch(t.f){default:case-1:case 2:case 4:case 3:af=aa-(ad+ag);break;case 0:z+=ag;break;case 1:af=z+(aa-z)/2-ad/2;break}a.drawIcon(v,b.h(ae)-n,b.h(af)-o,ad,ad,w,z,y-w,aa-z)}if(u==null||t.ap==null){continue}var ah=u.a&&t.c!=null&&t.c.c()*k<ab;var ai=ah?t.c.c()*k:0;var aj=u.b?1:2;if(ah&&t.e==4){if(t.k()){continue}var ak=ai;var al=c.x()+i._bn(t.x,false,q)*k;var am=al-w;while(am>ak){ai+=ak;am-=ak}}var an=Math.max(u.c/1.5,1);if(ah){w+=t.aj()*k;y-=t.z*k;ab=ai;switch(t.e){default:case-1:case 1:case 0:case 4:y=w+ab;break;case 2:case 6:case 5:case 7:w=w+(y-w)/2-ab/2;y=w+ab;break;case 3:y-=l;w=y-ab;break}}else{y-=l;w+=an;y-=an}w=b.h(w)-n;y=b.h(y)-n;var ao=u.c*k;var ap=ao;ao/=3;var aq=ao%l;if(aq!=0){ao+=aq<ao/2?-aq:l-aq}if(ao<l){ao=l}if(ab>ao*2){p=t.ar;var ar=ao/2;var as=t.u*k;var at;switch(t.f){default:case-1:case 2:case 4:case 3:at=aa-ap;break;case 0:at=z+as;break;case 1:at=z+(aa-z)/2+as/2-l;break}aa=b.h(aa);if(aj==1){var au=b.h(at+ao);au-=ar-h;if(au<=aa){a.drawLine4(ao,p,f,w,au,y,au)}}else{var av=b.h(at);av-=ar-h;if(av<=aa){a.drawLine4(ao,p,f,w,av,y,av)}av+=ao*2;if(av<=aa){a.drawLine4(ao,p,f,w,av,y,av)}}}}}},_w:function(){return this._x},_t:function(){},_aa:function(a,b,c,d,e,f){},_ab:function(a,b,c){},_af:function(){},_ag:function(a){},_z:function(a,b,c){var d=0;var f=b.getEnumerator();while(f.moveNext()){var e=f.current();var g;while(d<c.count()&&c.__inner[d]==null){d++}if(d<c.count()){g=c.__inner[d];g.a=e;c.__inner[d]=null;d++}else{g=new $$t.hg(this.$tVisual,e,this._t())}a.add(g)}},_ad:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._viewModel().rowScrollRegion()._x()||a==this._viewModel().columnScrollRegion()._x()){d=true}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._viewModel()._k()||a==this._viewModel()._p()){d=true}break;case"HideActiveCellContent":if(a==this._viewModel()){d=true}break}if(d){this._e();this._o();this._n()}},_ac:function(a,b,c,d){a._ad(b,c,d)},_ae:function(){var a=this._viewModel();if(a!=null){(function($obj){var $value=$obj._ao();$obj._ao($value+1);return $value})(a)}if(a==null||a._p().count()==0){this._af();this._x.clear()}else{var b=$m($$t.$dz.$type,null);if(a._al()){b=$m($$t.$dz.$type,a.rowScrollRegion()._ab()._r()._c())}var c=a._p();for(var d=0,e=this._x.count();d<e;d++){var f=this._x.__inner[d];var g=f.a;if($$t.$dz.l_op_Inequality_Lifted(b,$m($$t.$dz.$type,null))&&g.w==b.value().column()&&g.ak==b.value().row()){continue}g.an=$e(this.$tVisual,f.b)}var h=new $$4.x($$t.$cp.$type,0);for(var i=0,j=c.count();i<j;i++){var k=c.__inner[i];if(k.an==null){if(k.ap==null){if(k.d==null||k.d.iconInfo()==null||k.d.iconInfo().icon()==-1){continue}}if($$t.$dz.l_op_Inequality_Lifted(b,$m($$t.$dz.$type,null))&&k.w==b.value().column()&&k.ak==b.value().row()){continue}var l=$b(String,k.ap);if(l!=null&&l.length==0){continue}h.add(k)}else{k.an=this.$type.getStaticFields($$t.$hf.$type)._y}}var m=new $$4.x($$t.$hg.$type.specialize(this.$tVisual),0);for(var n=0,o=this._x.count();n<o;n++){var p=this._x.__inner[n];if(p.a.an==this.$type.getStaticFields($$t.$hf.$type)._y){m.add(p);this._x.__inner[n]=null}else{p.a.an=null}}var q=this._x;this._x=m;if(h.count()>0){this._z(this._x,h,q)}var r=a.rowScrollRegion()._br();var s=a.columnScrollRegion()._bx();var t=this._v;for(var u=0,v=this._x.count();u<v;u++){var w=this._x.__inner[u];var x=w.a;var y=a.columnScrollRegion()._bn(x.ab,true,t)+x.aj();var z=a.rowScrollRegion()._bn(x.ak,true,t)+x.ac;var aa=a.columnScrollRegion()._bn(x.x,false,t)-x.z-r;if(w.a.an==this.$type.getStaticFields($$t.$hf.$type)._y){w.a.an=null}else{var ab=a.rowScrollRegion()._bn(x.ag,false,t)-x.v-r;this._aa(w.b,x,y,z,aa,ab)}if(x.e==3&&aa<y){y=aa}this._ab(w.b,y,z)}for(var ac=0,ad=q.count();ac<ad;ac++){var ae=q.__inner[ac];if(ae!=null){this._ag(ae.b)}}}},$type:new $.ig.Type("SpreadsheetPaneCellValueLayerBase$1",$$t.$ho.$type.specialize($$t.$i3.$type),null,function(){this._y={}})},true);$c("SpreadsheetCellValueElement:ds","VisualElement",{cv:null,ck:false,cr:0,cu:null,cp:0,co:0,ct:null,cq:0,cn:0,cs:null,cm:0,cl:0,ci:false,cf:null,ch:null,init:function(a,b){$$t.$au.init.call(this,a,"SpreadsheetCellValue");this.ch=b},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.ci=true;this.cf=a;this.b1()}return a}else{return this.cf}},cj:function(a){if(arguments.length===1){if(a!=this.ci){this.ci=a;if(a){this.b1()}}return a}else{return this.ci}},$type:new $.ig.Type("SpreadsheetCellValueElement",$$t.$au.$type)},true);$c("SpreadsheetPaneCellValueLayer:cq","SpreadsheetPaneCellValueLayerBase$1",{init:function(a,b){$$t.$hf.init.call(this,$$t.$ds.$type,a,b,false)},_g:function(a){this._ae();var b=this._ah().cg;var c=this._ah().ci;c.g(this._s());this._q(c,$$t.$cq._ai,new $$a.ae(1,0,0,a),new $$a.y(0));c.f();$$t.$cu.a(b,c,0);var d=this._viewModel();var e=d.columnScrollRegion()._bx();var f=e*d.columnScrollRegion()._b4()($.ig.truncate($$a4.$aa.f(d.columnScrollRegion()._x()._offset())));var g=e*d.rowScrollRegion()._b4()($.ig.truncate($$a4.$aa.f(d.rowScrollRegion()._x()._offset())));var h=e*d.columnScrollRegion()._b4()($.ig.truncate(Math.ceil(d.columnScrollRegion()._bq())));var i=e*d.rowScrollRegion()._b4()($.ig.truncate(Math.ceil(d.rowScrollRegion()._bq())));b.al(-f,-g,h,i);return $$t.$hf._g.call(this,a)},_t:function(){return this._ah().ch(null)},_z:function(a,b,c){var d=c.count();var e=b.count();for(var f=0,g=b.count();f<g;f++){var h=b.__inner[f];for(var i=0;i<d;i++){var j=c.__inner[f];if(j!=null&&j.f(h)){e--;c.__inner[f]=null;b.__inner[f]=null;j.c(h);a.add(j);break}}}if(e>0){var k=this._ah();var l=0;for(var m=0,n=b.count();m<n;m++){if(b.__inner[m]!=null){while(l<d&&c.__inner[l]==null){l++}var o;if(l<d){o=c.__inner[l];c.__inner[l]=null;l++;o.c(b.__inner[m])}else{o=new $$t.c0(b.__inner[m],k.ch(b.__inner[m]))}a.add(o)}}}},_aa:function(a,b,c,d,e,f){var g=this._viewModel().columnScrollRegion();var h=g._bx();a.ab(false);a.cg(b);a.al(c*h,d*h,(e-c)*h,(f-d)*h)},_ab:function(a,b,c){var d=this._viewModel().rowScrollRegion()._bx();a.al(b*d,c*d,a.a3,a.av)},_af:function(){this._ah().cl()},_ag:function(a){this._ah().ck(a)},_ah:function(){return this._d().c},$type:new $.ig.Type("SpreadsheetPaneCellValueLayer",$$t.$hf.$type.specialize($$t.$ds.$type))},true);$c("SpreadsheetPaneCellValueLayerBase_CellInfo$1:hg","Object",{$tVisual:null,a:null,b:null,init:function($tVisual,a,b){this.$tVisual=$tVisual;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tVisual)}$.ig.$op.init.call(this);this.a=a;this.b=b},$type:new $.ig.Type("SpreadsheetPaneCellValueLayerBase_CellInfo$1",$.ig.$ot)},true);$c("SpreadsheetPaneCellValueLayer_JsCellInfo:c0","SpreadsheetPaneCellValueLayerBase_CellInfo$1",{e:false,d:null,init:function(a,b){$$t.$hg.init.call(this,$$t.$ds.$type,a,b);this.c(a)},c:function(a){this.a=a;this.e=a.e==4;this.d=a.c;return this},f:function(a){var b=a.e==4;return b==this.e&&this.d.equals(a.c)},$type:new $.ig.Type("SpreadsheetPaneCellValueLayer_JsCellInfo",$$t.$hg.$type.specialize($$t.$ds.$type))},true);$c("SpreadsheetDrawingOperation:cs","Object",{init:function(){$.ig.$op.init.call(this)},b:0,a:0,i:null,d:0,e:0,g:0,f:0,h:0,c:0,$type:new $.ig.Type("SpreadsheetDrawingOperation",$.ig.$ot)},true);$c("SpreadsheetInstructionGraphics:ct","Object",{a:null,e:null,d:null,b:null,init:function(a){$.ig.$op.init.call(this);this.a=a;this.e=new $$4.x($$t.$cs.$type,0);this.d=new $$4.x($$t.$cs.$type,0)},g:function(a){this.b=a;this.d.addRange(this.e);this.e.clear()},f:function(){this.b=null},c:function(a){var b;var c=this.d.count()-1;if(c>=0){b=this.d.__inner[c];this.d.removeAt(c)}else{b=new $$t.cs}b.b=a;return b},drawDropDownGlyph:function(a,b,c,d,e){throw new $$6.q(0)},drawEllipse:function(a,b,c,d,e,f,g){var h=this.c(2);h.a=6;h.i=this.b.bi(b);h.d=c*a;h.e=d;h.g=e;h.f=d+f;h.h=e+g;this.e.add(h)},drawHeaderText:function(a,b,c,d,e,f){f=f!==void 0?f:1;throw new $$6.q(0)},drawIcon:function(a,b,c,d,e,f,g,h,i){if(a!=-1){var j=this.c(1);j.c=a;j.i=null;j.e=b;j.g=c;j.f=b+d;j.h=c+e;this.e.add(j)}},drawLine3:function(a,b,c,d,e,f){throw new $$6.q(0)},drawLine4:function(a,b,c,d,e,f,g){b=$$a.$ax.create(b);this.drawLine2(6,b,c*a,d,e,f,g)},drawLine2:function(a,b,c,d,e,f,g){b=$$a.$ax.create(b);var h=this.c(0);h.a=a;h.i=b.colorString();h.d=c;h.e=d;h.g=e;h.f=f;h.h=g;this.e.add(h)},drawLine1:function(a,b,c,d,e,f,g){throw new $$6.q(0)},drawLine:function(a,b,c,d,e,f,g){var h=this.c(0);h.a=a;h.i=this.b.bi(b);h.d=c;h.e=d;h.g=e;h.f=f;h.h=g;this.e.add(h)},drawRectangle1:function(a,b,c,d,e,f,g){throw new $$6.q(0)},drawRectangle:function(a,b,c,d,e,f,g){throw new $$6.q(0)},fillRectangle1:function(a,b,c,d,e){throw new $$6.q(0)},fillRectangle5:function(a,b,c,d,e){throw new $$6.q(0)},fillRectangle3:function(a,b,c,d,e){throw new $$6.q(0)},fillRectangle4:function(a,b,c,d,e,f,g){throw new $$6.q(0)},fillRectangle:function(a,b,c,d,e,f,g){throw new $$6.q(0)},fillRectangle2:function(a,b,c,d,e,f,g,h,i){throw new $$6.q(0)},getFarPixelAdjustment:function(a){throw new $$6.q(0)},$type:new $.ig.Type("SpreadsheetInstructionGraphics",$.ig.$ot,[$$t.$dq.$type])},true);$c("SpreadsheetDrawingElementHelper:cu","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a,b,c){var d=a.a9();var e=0;var f=0;var g=0;for(var h=0,i=b.e.count();h<i;h++){var j=b.e.__inner[h];var k,l,m,n;switch(j.b){case 0:var o=Math.max(c,j.d);if(j.g==j.h){k=j.e;m=j.f-k;l=j.g-o/2;n=j.d}else if(j.e==j.f){l=j.g;n=j.h-l;k=j.e-o/2;m=j.d}else{continue}var p=null;for(;e<d;e++){var q=a.b(e);if(q.bx=="Line"){p=q;e++;break}}if(p==null){p=new $$t.ah(a,"Line")}p.ci(j.i);p.al(k,l,m,n);break;case 1:k=j.e;m=j.f-k;l=j.g;n=j.h-l;var r=null;for(;f<d;f++){var s=a.b(f);if(s.bx=="Icon"){r=s;f++;break}}if(r==null){r=new $$t.lu(a)}r.cg(j.c);r.al(k,l,m,n);break;case 2:k=j.e;m=j.f-k;l=j.g;n=j.h-l;var t=null;for(;g<d;g++){var u=a.b(g);if(u.bx=="InvalidData"){t=u;g++;break}}if(t==null){t=new $$t.ly(a)}t.cm(j.i);t.ck(Math.max(j.d,c));var v=t.ck();t.al(k-v/2,l-v/2,m+v,n+v);break}}var w=e;if(f<w){w=f}if(g<w){w=g}for(var x=w;x<d;x++){var y=a.b(x).bx;if(x>=e&&y=="Line"||x>=f&&y=="Icon"||x>=g&&y=="InvalidData"){a.b(x).ab(true)}}},$type:new $.ig.Type("SpreadsheetDrawingElementHelper",$.ig.$ot)},true);$c("IElementLayerView:bq","Object",{$type:new $.ig.Type("IElementLayerView",null)},true);$c("ElementLayerView:br","Object",{init:function(){$.ig.$op.init.call(this)},attach:function(a){},detach:function(a){},invalidateMeasure:function(){},invalidateArrange:function(){},$type:new $.ig.Type("ElementLayerView",$.ig.$ot,[$$t.$bq.$type])},true);$c("ElementLayerViewSingle:bs","ElementLayerView",{a:null,init:function(){$$t.$br.init.call(this)},attach:function(a){this.a=a},detach:function(a){this.a=null},b:function(){return this.a},$type:new $.ig.Type("ElementLayerViewSingle",$$t.$br.$type)},true);$c("IRendererElementLayerView$2:bt","Object",{$type:new $.ig.Type("IRendererElementLayerView$2",null,[$$t.$bq.$type])},true);$c("SpreadsheetSingleLayerView:cv","ElementLayerViewSingle",{c:null,init:function(a){$$t.$bs.init.call(this);this.c=a},d:function(){var a=this.b();a.dispose();this.detach(a)},invalidateMeasure:function(){this.c.t(true)},invalidateArrange:function(){this.c.t(true)},createRenderer:function(){return new $$t.c1(this)},releaseRenderer:function(a){},$type:new $.ig.Type("SpreadsheetSingleLayerView",$$t.$bs.$type,[$$t.$bt.$type.specialize($$t.$i3.$type,$$t.$dq.$type)])},true);$c("ILayerRenderer:bv","Object",{$type:new $.ig.Type("ILayerRenderer",null)},true);$c("SpreadsheetSingleLayerView_Renderer:c1","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},onUnloaded:function(){this.a=null},invalidateLayout:function(){if(this.a!=null){this.a.invalidateArrange()}},invalidateRender:function(){if(this.a!=null){this.a.invalidateArrange()}},measure:function(a){a=$.ig.util.sizeFromLiteral(a)},arrange:function(a){a=$.ig.util.sizeFromLiteral(a)},$type:new $.ig.Type("SpreadsheetSingleLayerView_Renderer",$.ig.$ot,[$$t.$bv.$type])},true);$c("SpreadsheetSingleLayerElement:cw","VisualElement",{cf:null,init:function(a,b){$$t.$au.init.call(this,a,b);this.cf=new $$t.cv(this);this.w(false)},bz:function(){var a=this.cf.b();if(a!=null){a.dispose();this.cf.detach(a)}$$t.$au.bz.call(this)},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);var e=new $$a.af(1,c,d);this.cf.b()._h(e);this.cf.b()._g(e)},b5:function(){$$t.$au.b5.call(this);this.t(true)},$type:new $.ig.Type("SpreadsheetSingleLayerElement",$$t.$au.$type)},true);$c("SpreadsheetCellValueLayerElement:cx","SpreadsheetSingleLayerElement",{cg:null,cj:null,ci:null,init:function(a){$$t.$cw.init.call(this,a,"SpreadsheetCellValueLayer");this.ci=new $$t.ct(this);this.cj=new $$4.x($$t.$ds.$type,0);this.cg=new $$t.au(this,"CellContainer");this.w(false)},b5:function(){$$t.$cw.b5.call(this);this.cl()},ch:function(a){var b=this.cf.b();for(var c=0,d=this.cj.count();c<d;c++){var e=this.cj.__inner[c];if(a.o(e.cg())){this.cj.removeAt(c);e.ch=b._viewModel();e.ac(true);return e}}if(this.cj.count()>300){var f=this.cj.count()-1;var g=this.cj.__inner[f];this.cj.removeAt(f);g.ch=b._viewModel();g.ac(true);return g}return new $$t.ds(this.cg,b._viewModel())},ck:function(a){if(this.cj.count()<1e3){a.ac(false);this.cj.add(a)}else{a.ab(true)}},cl:function(){for(var a=0,b=this.cg.a9();a<b;a++){var c=this.cg.b(a);if(c.ac()&&c.bx=="SpreadsheetCellValue"){c.ac(false);this.cj.add1(c)}}},$type:new $.ig.Type("SpreadsheetCellValueLayerElement",$$t.$cw.$type)},true);$c("SpreadsheetDrawingLayerElement:cy","SpreadsheetSingleLayerElement",{cg:null,init:function(a){$$t.$cw.init.call(this,a,"SpreadsheetDrawingLayer");this.cg=new $$t.ct(this)},b7:function(a,b,c,d){$$t.$cw.b7.call(this,a,b,c,d);var e=this.cf.b();var f=this.cg;f.g(e._s());e._q(f,$$t.$cy.ch,new $$a.ae(0,0,0,c,d),new $$a.y(0));f.f();$$t.$cu.a(this,f,1)},$type:new $.ig.Type("SpreadsheetDrawingLayerElement",$$t.$cw.$type)},true);$c("ScrollRegionLayerContainer:c2","SpreadsheetElementLayerContainer$1",{init:function(a,b){$$t.$dp.init.call(this,$$t.$i6.$type,a,b)},c:function(){return new $$t.ia(this.b,this)},$type:new $.ig.Type("ScrollRegionLayerContainer",$$t.$dp.$type.specialize($$t.$i6.$type))},true);$c("Spreadsheet:c3","PropertyChangeNotifierExtended",{_az:null,_e9:null,_cc:false,_jc:null,_bg:null,_bi:null,_as:null,css:null,createRendererContainer:null,_a1:null,_at:function(){if(this._as==null){this._as=new $$t.cf(this)}return this._as},_cd:false,isDisabled:function(a){if(arguments.length===1){if(a!=this._cd){this._cd=a;if(this._bg!=null){if(this._bg.cp()!=null){this._bg.cp().ae(a)}this._bg.d5.cg.cf.u(!a);this._bg.u(!a);if(a){this._c1(false)}}}return a}else{return this._cd}},_eb:null,brushes:function(a){if(arguments.length===1){if(a!=this._eb){this._eb=a;if(this._a7!=null){this._a7._al._j().aq()}}return a}else{return this._eb}},_cj:false,isScrollLocked:function(a){if(arguments.length===1){if(a!=this._cj){this._cj=a;this._hw(1);this.a("IsScrollLocked")}return a}else{return this._cj}},_bj:function(){return this._bi},_fa:function(){return this._e9},_height:0,height:function(a){if(arguments.length===1){this._height=a;return a}else{return this._height}},_width:0,width:function(a){if(arguments.length===1){this._width=a;return a}else{return this._width}},_a0:function(){return this._az},_ad:function(){return this._bg!=null?this._bg.d7.cf:null},_bh:function(){return this._bg},_ay:function(){return this._bg!=null?this._bg.d7.cf.e0():null},_jd:function(a){if(arguments.length===1){if($$a.$ae.l_op_Inequality(this._jc,a)){this._jc=a;if(this._bg!=null){this._bg.al(a.left(),a.top(),a.width(),a.height())}this.scheduleArrange()}return a}else{return this._jc}},_c3:function(){return this._c2(256)},_fm:null,_language:function(a){if(arguments.length===1){if(this._fm!=a){this._fm=a;this._at().p();if(this._bg!=null){var b=this._bg.d5.cg.cf.a7;if(b!=null){var c=$(b.rootWrapper().getNativeElement());if(c.data("igCombo")){c.igCombo("option","language",this._language())}}}}return a}else{return this._fm}},containerResized:function(){if(this._e9!=null){var a=this._ek();if(window.devicePixelRatio!=window.undefined&&window.devicePixelRatio!=a){this._ek(window.devicePixelRatio)}var b=this._e9.rootWrapper().getNativeElement().getBoundingClientRect();var c=b.width;var d=b.height;this._jd(new $$a.ae(0,0,0,c,d))}},destroy:function(){this.provideContainer(null)},executeCommand:function(a){return this._cz(a,null,null)},flush:function(){if(this._cc){this._fx()}},onInitialized:function(){this._gn()},_gq:function(){if(this._bg!=null){this._bg.ao(function(a){if(a.bx=="SpreadsheetRenderer"){a.ck();return false}return a.bx!="SpreadsheetCellValueLayer"&&a.bx!="TabItemArea"})}},_ei:0,_ek:function(a){if(arguments.length===1){if(a!=this._ei){this._ei=a;this._gq();this.scheduleArrange()}return a}else{return this._ei}},provideContainer:function(a){var $self=this;var b=this._e9;var c=a;this._e9=c;if(b!=null){this._at().o();if(this._bg!=null){this._bg.ab(true);this._bg.b8();this._bg.bz();this._bg.d7.cf.c(null);this._bg=null}if(this._az!=null){this._az.w()}if(this._a7!=null){this._a7._al._j().aq()}}if(c!=null){if(this._bi==null){this._bi=new $$t.dt(this)}this._bi.ad(this.css);if(this._az==null){this._az=new $$t.cg(this)}if(this._as==null){this._as=new $$t.cf(this)}this._az.v(c);var d=c.rootWrapper();d.setRawStyleProperty("position","relative");var e=c.createElement("div");e.setAttribute("style","position:absolute;outline:0");e.setAttribute("tabIndex",0);c.append(e);var f=c.getSubRenderer(e);e=f.rootWrapper();e.listen("focus",function(g){if($self.isRenamingWorksheet()&&!$self._bc().j()){$self._bc().q()}});var g=new $$t.ma(this);this._bg=g;g.a7=f;var h=new $$t.dm(this,f.rootWrapper(),f);g.cp(h);h.ae(this.isDisabled());var i=this._ek();if(window.devicePixelRatio!=window.undefined&&window.devicePixelRatio!=i){this._ek(window.devicePixelRatio)}var j=new $$t.ck(g.d7);g.d7.cf=j;j.c(this);j.x(this._b2());this.containerResized();g.afterHasDescendantChanged=$.ig.Delegate.prototype.combine(g.afterHasDescendantChanged,function(k,l){$self.scheduleArrange()});this._hl();this._fy(true)}},scheduleArrange:function(){if(!this._cc){this._cc=true;window.setTimeout(this._fx.runOn(this),0)}},styleUpdated:function(){if(this._az!=null){this._az.u()}if(this._a7!=null){this._a7._hv()}if(this._bi!=null){this._bi.ad(this.css)}if(this._az!=null){this._az.aa()}if(this._bg!=null){this._bg.d5.cp();this._bg.d7.cf.e4();this._gq()}},_ga:function(){if(this.isInEditMode()){var a=this._m();if(a!=null){var b=a.a7.rootWrapper().getNativeElement();var c=b.selectionStart;var d=b.selectionEnd;var e=b.value;var f=e.substring(c,d);var g=$$t.$n.d();g.setData($$a.$i.d,f);$$t.$n.c(g,true)}}},_fb:function(a){return this._fa().createElement(a)},_m:function(){var a=null;var b=document.activeElement;if($$t.$dy.a5(this._ay(),b)){a=this._ay()}else if($$t.$dy.a5(this._bh().d5.ci.cf,b)){a=this._bh().d5.ci.cf}return a},_o:function(a){return this._bg==null?null:this._bg.d7.cf.ey(a)},_n:function(a){return this._bg==null?null:this._bg.d7.cf.ex(a)},_di:function(){if(this._v().isInNameBox()){var a=this._bg.d5.cg;if(a.cf.a7!=null){var b=a.cf.a7.rootWrapper().getNativeElement();if($(b).igCombo("dropDownOpened")){return true}}}return false},_p:null,_c6:function(){return this._p!=null&&this._p.b()},_f7:function(){if(this._p!=null){this._p.e()}},_d5:function(a,b,c,d,e){if(this._p==null){this._p=new $$t.b0(this)}return this._p.c(a,b,c,d,e)},_hd:function(a){var b=this._ay();if(b!=null&&this._m()!=b){b.c9(a)}this._ai().as();if(this._bg!=null){this._bg.d7.cf.cx()}},_dy:function(a,b,c){if(this._as!=null){var d=this._as.l(a,b,c);if(d.hasValue()){return d.value()}}return this._d0(a,b)},_eg:null,_ib:function(a,b){this._eg.add(new $$t.c8(a,b,this))},_r:function(a,b,c){var $self=this;var d=function(){$self._v().focus()};return this._q(a,b,d,c)},_q:function(a,b,c,d){if(this._e9==null){throw new $$6.p(0)}var e=this._fa().getWrapper(a);this._e9.append(e);var f=$$t.$b1.a(a,b,d);if(null!=c){f.closed=$.ig.Delegate.prototype.combine(f.closed,function(g,h){c()})}return f},_fx:function(){if(this._cc){this._fy(true)}},_fy:function(a){var b=this._cc;this._cc=false;this._ht();if(this._bg!=null){var c=this._bp($$t.$on.a(),null);for(var d=0;d<this._eg.count();d++){var e=this._eg.__inner[d];e.a.u(this._cq(e.c,null,c,true))}this._bg.al(this._jc.left(),this._jc.top(),this._jc.width(),this._jc.height());if(this._bg.t()){this._bg.b6()}var f=new $$a.af(1,this._bg.d7.a3,this._bg.d7.av);if(!this._bg.d7.cf.e3){this._bg.d7.cf.ew(f)}if(!this._bg.d7.cf.e2){this._bg.d7.cf.eu(f)}this._bg.cb();if(a){this._bg.d2();this._bg.by(this._bi)}else{if(this._bg.l()&&b&&!this._cc){this._cc=true}}}},_i8:null,_g2:function(a,b){if(this._i8!=null){$$t.$n.b(a,this._i8)}else{}},_g3:function(){this._u(new $$t.ci(this));if($$t.$n.e()==null){var a=$$t.$n.d();a.setData($$a.$i.d,String.empty());$$t.$n.c(a,false)}},contextMenuOpening:null,_g1:function(a){var b=this.contextMenuOpening;if(null!=b){b(this,a)}},_s:null,_t:null,_a7:null,_b1:null,_ac:null,_bs:null,_j:null,_b0:null,_l:null,_z:0,_bq:null,_ah:null,_bb:null,_b6:null,_b3:null,_be:null,_ab:null,_ao:null,_eh:null,_aa:null,_fe:0,_y:null,_a2:null,_fu:null,_ec:null,_fl:null,init:function(){this._jc=new $$a.ae(0,0,0,0,0);this._a1=new $$t.dv;this._cd=false;this._ei=1;this._eg=new $$4.x($$t.$c7.$type,0);this._fl=null;this._ae=new $$t.dz;this._al=new $$t.d1;this._b8=true;this._b9=true;this._ca=true;this._cb=true;this._aj=0;this._bm=null;this._av=0;this._fd=2;this._ce=true;this._cf=false;this._cg=true;this._ch=false;this._ci=false;this._ck=true;this._ej=102;this._aq=0;this._b4=null;this._i9=null;this._ff=100;this._fp=null;$$ak.$s.init.call(this);this._v(new $$t.dh(this));this._b0=new $$ak.n($$t.$c3.$type,this,$$t.$c3._hg,false);this._bq=new $$t.b(this._i3.runOn(this));this._l=$$t.$d9.b();this._j=new $$ak.u($$t.$i3.$type,new Array(0));this._b1=new $$t.m;this._ac=new $$t.c9(this);this._bs=this._ac;this._aa=new $$t.dd(this);this._ab=new $$t.db(this);this._ao=new $$t.gz(this._ab);var a=$$ak.$m.e($$t.$k4.$type,this._be,new $$t.k4(this),this._b0,false);this._be=a.p0;this.undoManager(new $$ak.ag);this._ih(4,true);this._iv();this._g3()},_ae:null,activeCell:function(a){if(arguments.length===1){if($$t.$dz.l_op_Inequality(a,this._ae)){var b=this.activeSelection();var c=this._ae;var d=a;this._ae=a;this._gd();this._c1(true);if(b!=null){b._setActiveCell(d,$m($$0.$aw.$type,null))}this._i3();this.a("ActiveCell");this.a("ActiveCellAddress");this._fv("ActiveCellChanged",c)}return a}else{return this._ae}},activeCellAddress:function(a){if(arguments.length===1){this.activeCell(new $$t.dz(a));return a}else{return this._ae.toString()}},_al:null,_am:function(a){if(arguments.length===1){if($$t.$d1.l_op_Inequality(a,this._al)){this._al=a;this._hw(4096|8192|16777216);this._i3();this.a("ActiveCellAsRange")}return a}else{return this._al}},_a4:null,activePane:function(a){if(arguments.length===1){if(a!=this._a4){var b=this._a4;var c=a;this._a4=a;this.activeSelection(c!=null?c.selection():null);this._c1(true);this._i3();this.a("ActivePane");this._fv("ActivePaneChanged",b)}return a}else{return this._a4}},_a9:null,activeSelection:function(a){if(arguments.length===1){if(a!=this._a9){var b=this._a9;var c=a;this._a9=a;if(b!=null){b._x(0)}this._gd();this._hw(4096);var d=b;var e=$$ak.$m.f($$t.$d6.$type,d,c,this._b0,false);d=e.p0;this.activeCell(c!=null?c.activeCell():new $$t.dz);this._am(c!=null?c._r():new $$t.d1);if(c!=null){c._x(this.selectionMode())}this._i3();this.a("ActiveSelection")}return a}else{return this._a9}},activeSelectionCellRangeFormat:function(){return this._ao},_by:null,activeTable:function(a){if(arguments.length===1){if(a!=this._by){var b=this._by;this._by=a;this.a("ActiveTable");this._fv("ActiveTableChanged",b)}return a}else{return this._by}},_bv:null,activeWorksheet:function(a){if(arguments.length===1){if(a!=this._bv){var b=this._bv;var c=a;this._bv=a;this._eh=null;this._hw(4096|8192|16777216);if(c!=null&&c.workbook()!=null){c.workbook().windowOptions()._ae(c,false)}this._i3();this.a("ActiveWorksheet");this._fv("ActiveWorksheetChanged",b)}return a}else{return this._bv}},_b8:false,allowAddWorksheet:function(a){if(arguments.length===1){if(a!=this._b8){this._b8=a;this._hw(1);this.a("AllowAddWorksheet")}return a}else{return this._b8}},_b9:false,allowDeleteWorksheet:function(a){if(arguments.length===1){if(a!=this._b9){this._b9=a;this._hw(1);this.a("AllowDeleteWorksheet")}return a}else{return this._b9}},_ca:false,areGridlinesVisible:function(a){if(arguments.length===1){if(a!=this._ca){this._ca=a;if(!this._c2(524288)){this._i1();if(this._a7!=null){this._a7._iq(this.areGridlinesVisible())}}this.a("AreGridlinesVisible")}return a}else{return this._ca}},_cb:false,areHeadersVisible:function(a){if(arguments.length===1){if(a!=this._cb){this._cb=a;if(!this._c2(131072)){this._i1();if(this._a7!=null){this._a7._ir(this.areHeadersVisible())}}this.a("AreHeadersVisible")}return a}else{return this._cb}},_aj:0,cellEditMode:function(a){if(arguments.length===1){if(a!=this._aj){this._aj=a;this._ah.ar();this.a("CellEditMode")}return a}else{return this._aj}},_bm:null,chartAdapter:function(a){if(arguments.length===1){if(a!=this._bm){this._bm=a;if(this._a7!=null){this._a7._al._l(a);
}this.a("ChartAdapter")}return a}else{return this._bm}},_av:0,enterKeyNavigationDirection:function(a){if(arguments.length===1){if(a!=this._av){this._av=a;this.a("EnterKeyNavigationDirection")}return a}else{return this._av}},_fd:0,fixedDecimalPlaceCount:function(a){if(arguments.length===1){if(a!=this._fd){this._fd=a;this.a("FixedDecimalPlaceCount")}return a}else{return this._fd}},_ce:false,isEnterKeyNavigationEnabled:function(a){if(arguments.length===1){if(a!=this._ce){this._ce=a;this._hw(1);this.a("IsEnterKeyNavigationEnabled")}return a}else{return this._ce}},_cf:false,isFixedDecimalEnabled:function(a){if(arguments.length===1){if(a!=this._cf){this._cf=a;this.a("IsFixedDecimalEnabled")}return a}else{return this._cf}},_cg:false,isFormulaBarVisible:function(a){if(arguments.length===1){if(a!=this._cg){this._cg=a;this.a("IsFormulaBarVisible")}return a}else{return this._cg}},isInEditMode:function(a){if(arguments.length===1){if(a!=this.isInEditMode()){var b=a;this._ih(8388608,b);this._hw(1);if(this._a7!=null){this._a7._al._s(b)}this.a("IsInEditMode")}return a}else{return this._c2(8388608)}},_ch:false,isInEndMode:function(a){if(arguments.length===1){if(a!=this._ch){this._ch=a;this._hw(1);this.a("IsInEndMode")}return a}else{return this._ch}},_ci:false,isRenamingWorksheet:function(a){if(arguments.length===1){if(a!=this._ci){this._ci=a;this.a("IsRenamingWorksheet")}return a}else{return this._ci}},_ck:false,isUndoEnabled:function(a){if(arguments.length===1){if(a!=this._ck){this._ck=a;this._f5(this.undoManager());this._ih(4,a);this.a("IsUndoEnabled")}return a}else{return this._ck}},_ej:0,nameBoxWidth:function(a){if(arguments.length===1){if(a!=this._ej){this._ej=a;this._t.onNameBoxWidthChanged();this.a("NameBoxWidth")}return a}else{return this._ej}},panes:function(){return this._j},_getPanesAsArray:function(){return $$5.$e.a($$t.$i3.$type,this.panes())},_aq:0,selectionMode:function(a){if(arguments.length===1){if(a!=this._aq){this._aq=a;var b=this.activeSelection();if(b!=null){b._x(a)}this._hw(1);this.a("SelectionMode")}return a}else{return this._aq}},_g:null,selectedWorksheets:function(a){if(arguments.length===1){if(a!=this._g){var b=this._g;var c=a;var d=b!=null&&b.length>1;var e=c!=null&&c.length>1;if(e!=d){this._hw(1)}if(c!=null&&c.length>0){for(var g=0;g<c.length;g++){var f=c[g];if(f==null){throw new $$6.d(0)}}for(var h=1;h<c.length;h++){if(c[h].workbook()!=c[h-1].workbook()){throw new $$6.p(0)}}this._g=a;var i=c[0].workbook();var k=i.worksheets().getEnumerator();while(k.moveNext()){var j=k.current();j._w($.ig.util.arrayIndexOf1($$a4.$jk.$type,c,j)>=0)}if(this._dn()==false&&(i.windowOptions().selectedWorksheet()==null||$.ig.util.arrayIndexOf1($$a4.$jk.$type,c,i.windowOptions().selectedWorksheet())<0)){this.activeWorksheet($$5.$e.ad($$a4.$jk.$type,c))}}else{this._g=a}this._i3();this.a("SelectedWorksheets")}return a}else{return this._g}},_b4:null,undoManager:function(a){if(arguments.length===1){if(a!=this._b4){if(a==null){throw new $$6.p(1,"UndoManager property can not be set to null. Set IsUndoEnabled to false instead.")}var b=this._b4;var c=a;this._b4=a;if(b!=null){this._f5(b);if(this._b6!=null){this._b6.e();this._b6=null}}this._b3=c;if(c!=null){this._b6=new $$t.f($$t.$c3.$type,this,c,$$t.$c3._hj);c.propertyChanged=$.ig.Delegate.prototype.combine(c.propertyChanged,this._b6.f.runOn(this._b6))}this._hw(16|1);this.a("UndoManager")}return a}else{return this._b4}},_i9:null,validationInputMessagePosition:function(a){if(arguments.length===1){if($$a.$y.l_op_Inequality(a,this._i9)){this._i9=a;this._i1();if(this._a7!=null){this._a7._bc()._jg(this.validationInputMessagePosition())}this.a("ValidationInputMessagePosition")}return a}else{return this._i9}},_hn:function(a,b){if(a!=null){this._f6(this._b3,a);a._i9(this._bs);var d=a.worksheets().getEnumerator();while(d.moveNext()){var c=d.current();c._fd().clear()}}if(b!=null){b._it(this._bs)}this._c1(false);this._ih(2048,false);this._be._y(b);if(this._u()!=null){if(!this._c2(2)){this._i1()}this._i3()}else{this._hv()}},_bt:null,workbook:function(a){if(arguments.length===1){if(a!=this._bt){var b=this._bt;var c=a;this._bt=c;this._hw(1);this._hn(b,c);this.a("Workbook")}return a}else{return this._bt}},_ff:0,zoomLevel:function(a){if(arguments.length===1){var $self=this;if(a!=this._ff){this._ff=a;if(!this._c2(32768)){this._i1();if(this._a7!=null){this._gi(5,function(){$self._a7._is($self.zoomLevel())},null,false,null,true,false)}}this.a("ZoomLevel")}return a}else{return this._ff}},_a5:function(){return this._a7!=null?this._a7._ao():null},_ai:function(){return this._ah},_de:function(){return this._bd()!=null||this.isInEditMode()},_dg:function(){return this._c2(2097152)},_dh:function(){return this._c2(33554432)},_dn:function(){return this._fe>0},_a3:function(a){if(arguments.length===1){if(a!=this._a2){this._a2=a;if(a==null&&this._c2(1)){this._hv()}}return a}else{return this._a2}},_ef:function(){return this._aa},_fp:null,_ft:function(a){if(arguments.length===1){if(a!=this._fp){this._fp=a;this._t.onNameBoxValueChanged();this.a("NameBoxValue")}return a}else{return this._fp}},_dr:function(a){if(arguments.length===1){this._hw(1024);return a}else{return this._c2(1024)}},_ds:function(a){if(arguments.length===1){this._hw(8192);return a}else{return this._c2(8192)}},_b2:function(){return this._b1},_bk:null,_bl:function(a){if(arguments.length===1){if(a!=this._bk){this._bk=a;if(this._a7!=null){this._a7._a6(a)}this.a("ResourceProvider")}return a}else{return this._bk}},_a8:function(){return this._a7},_bc:function(){return this._bb},_bd:function(){return this._be!=null?this._be._p():null},_bf:function(){return this._be},_u:function(a){if(arguments.length===1){this._s=a;this._v(this._s);if(a!=null){if(!this._c2(2)){this._i1()}this._i3()}return a}else{return this._s}},_v:function(a){if(arguments.length===1){var b=a||new $$t.dh(this);if(b!=this._t||this._t==null){this._c1(false);this._t=b;if(this._a7!=null){this._a7._al._j(this._t.createRenderCache())}this._go()}return a}else{return this._t}},_w:null,_x:function(){if(this._w==null){this._w=new $$t.lh}return this._w},exportVisualData:function(){return this._x().exportVisualData(this)},_hitTest:function(a){var b=this._v().getLayoutManager();return b!=null?b.k(a):null},showFilterDialogForWorksheet:function(a,b){this._ix();var c=new $$t.nl(0,this.activeWorksheet(),a,b);var d=this._v();d.showFilterDialog(c)},showFilterDialogForTable:function(a,b){this._ix();if(a==null){throw new $$6.e(1)}if(a._worksheet()!=this.activeWorksheet()){throw new $$6.p(1,"Cannot show the filter dialog for a table column that is not in the active worksheet.")}var c=new $$t.nl(1,a,b);var d=this._v();d.showFilterDialog(c)},showTopOrBottomDialogForWorksheet:function(a){this._iy();var b=new $$t.nt(0,this.activeWorksheet(),a);var c=this._v();c.showTopOrBottomDialog(b)},showTopOrBottomDialogForTable:function(a){this._iy();if(a==null){throw new $$6.e(1)}if(a._worksheet()!=this.activeWorksheet()){throw new $$6.p(1,"Cannot show the Top or Bottom Dialog for a table column that is not in the active worksheet.")}var b=new $$t.nt(1,a);var c=this._v();c.showTopOrBottomDialog(b)},_il:function(a){this._iw();if(a==null){throw new $$6.e(0,"sortTarget")}var b=this._v();var c=this._a7;var d=c._a1();var e=c.activePane();var f;if(e==null){f=function(g){}}else{var g=e.selection();var h=g.activeCell();var i=new $$t.d6(this,c.activePane(),true);c._a1(i);f=function(j){if(j._isValid()){var k=$$t.$dy.aa(j);var l=h.row();var m=h.column();if(!k._contains2(l,m)){m=Math.max(k.firstColumn(),Math.min(k.lastColumn(),m));l=Math.max(k.firstRow(),Math.min(k.lastRow(),l))}i._resetSelection2(k,new $$t.dz(l,m),false)}}}var j=new $$t.nz(this,a,f);var k=function(){c._a1(d)};b.showCustomSortDialog(j,k)},_onDetachedFromUI:function(){},_onAttachedToUI:function(){var a=this._ek();if(window.devicePixelRatio!=window.undefined&&window.devicePixelRatio!=a){this._ek(window.devicePixelRatio)}},_cl:function(a){return this._a7.activatePane(a)},_f0:function(){if(this._c2(2097152)){throw new $$6.p(0)}this._iu();this._ih(2097152,true)},_f1:function(a,b,c,d,e,f){this._i1();if(this._a7!=null){this._a7._f4(a,b,c,d,e,f)}},_cw:function(a,b){if(b){this._iz()}return this._c2(a?32:64)},_cr:function(a,b,c){var d=this._bo(a,b);return this._cq(a,b,d,c)},_cq:function(a,b,c,d){if(false==this._l.c(a,c)){return false}switch(a){case 96:case 98:case 95:case 97:if(this._a7!=null&&!this._a7._bu()){return false}break;case 164:if(!this._cs()){return false}break;case 165:if(this._a7!=null&&!this._a7._bv(true,null)){return false}break;case 114:if($$t.$dy.a3(this.workbook())){return false}break;case 150:if(this._c7()){return false}break;case 156:case 157:if(this._a7!=null&&!this._a7._bs(a==156)){return false}break;case 176:case 177:case 179:if(this._a7==null||!this._a7._bt(a!=179)){return false}break;case 188:case 190:if(this._a7==null||!this._a7._b8(false)){return false}break;case 189:if(this._a7==null||!this._a7._cx(true,this._ag(b))){return false}break;case 187:case 186:case 195:case 196:case 197:case 203:if((16&c.i)!=0){if($$t.$dz.l_op_Equality_Lifted(this._fk(b),$m($$t.$dz.$type,null))){return false}}break;case 198:break}if(this._bd()!=null){switch(a){case 86:case 85:return false}}if(d&&this.isInEditMode()){if(false==this._ah.ac(a)){return false}}return true},_ct:function(a){if(this._a7==null){return false}if($l(this._a7._en(),false)){var b=a?16:8;if($l(this._a7._fj(b),true)){return false}}return true},_cv:function(a){return this._a7!=null&&this._a7._canSelect1(a)},_cu:function(a){return this._a7!=null&&this._a7._canSelect(a)},_f8:function(){this._t.closeMenu()},_ge:function(){this._hw(16|1)},_gf:function(){this._ih(2097152,false);this._id(true)},_cx:function(a,b,c){return this._bb.g(a,b,c)},_gg:function(a){var b=this.activePane();if(null!=b&&!b.visibleRange()._contains(a)){this._f1(b,a,.5,.5,.5,.5)}},_gh:function(a,b){if(this._a7!=null&&this._a7._panes().contains(b)&&(this._a7.activePane()==b||this._a7.canActivatePane(b)==false)){var c=a.__y/b.rowScrollRegion()._bx();var d=a.__x/b.columnScrollRegion()._bx();var e=new $$a4.lq,f=new $$a4.lq;var g=function(){var h=b.rowScrollRegion()._az(c,e);e=h.p1;return h.ret}();var h=function(){var i=b.columnScrollRegion()._az(d,f);f=i.p1;return i.ret}();if(g&&h){var i=b._ag().activeCell();var j=this._a7._fk(i)==null;if(this._ah.z(i,j,null,false,false)){this._ah.aw(a,true)}}}},_cz:function(a,b,c){var d=this._bo(a,b);return this._c0(a,b,c,d)},_c0:function(a,b,c,d){var $self=this;var e=this._v()._beforeExecuteCommand$i(a,b,c);if(e.hasValue()){return e.value()}if(!this._cq(a,b,d,true)){return false}this._i3();var f=new $$t.f1(a,b,c);this._gu(f);if(f.cancel()){return true}var g=true;try{this._iu();if(this._ah.ah(a,false)){}else{if(!this._d8(a)){return true}if(this._v().isInNameBox()){if(!this._v().focus()||this._v().isInNameBox()){return true}}switch(a){case 1:this._a7._fw();this._gg(this.activeCell());break;case 0:this._a7._fx();this._gg(this.activeCell());break;case 9:this._a7._g3(3,0,false);break;case 8:this._a7._g3(2,0,false);break;case 7:this._a7._g3(0,0,false);break;case 6:this._a7._g3(1,0,false);break;case 13:this._a7._g3(3,1,false);break;case 12:this._a7._g3(2,1,false);break;case 10:this._a7._g3(0,1,false);break;case 11:this._a7._g3(1,1,false);break;case 17:this._a7._g3(3,2,false);break;case 16:this._a7._g3(2,2,false);break;case 14:this._a7._g3(0,2,false);break;case 15:this._a7._g3(1,2,false);break;case 19:this._a7._g4(2,false);break;case 18:this._a7._g4(3,false);break;case 21:this._a7._g4(0,false);break;case 20:this._a7._g4(1,false);break;case 3:this._a7._hc(0,$m($$0.$aq.$type,null));break;case 2:this._a7._hc(1,$m($$0.$aq.$type,null));break;case 4:this._a7._hc(2,$m($$0.$aq.$type,null));break;case 5:this._a7._hc(3,$m($$0.$aq.$type,null));break;case 29:this._a7._ia(3);break;case 28:this._a7._ia(2);break;case 26:this._a7._ia(0);break;case 27:this._a7._ia(1);break;case 25:this._a7._h9(3);break;case 24:this._a7._h9(2);break;case 22:this._a7._h9(0);break;case 23:this._a7._h9(1);break;case 30:this._a7._g6(false,false);break;case 33:this._a7._g6(false,true);break;case 31:this._a7._g5(true,false);break;case 35:this._a7._g5(false,false);break;case 32:this._a7._g7(false,false);break;case 34:this._a7._g7(false,true);break;case 36:this.isInEndMode(true);break;case 37:this.isInEndMode(false);break;case 68:this.selectionMode(0);break;case 69:this.selectionMode(1);break;case 70:this.selectionMode(2);break;case 39:this._a7._hb(false);break;case 38:this._a7._ha(false);break;case 40:this._a7._id();break;case 44:this._a7._g3(3,0,true);break;case 43:this._a7._g3(2,0,true);break;case 42:this._a7._g3(0,0,true);break;case 41:this._a7._g3(1,0,true);break;case 48:this._a7._g3(3,1,true);break;case 47:this._a7._g3(2,1,true);break;case 45:this._a7._g3(0,1,true);break;case 46:this._a7._g3(1,1,true);break;case 52:this._a7._g3(3,2,true);break;case 51:this._a7._g3(2,2,true);break;case 49:this._a7._g3(0,2,true);break;case 50:this._a7._g3(1,2,true);break;case 54:this._a7._g4(2,true);break;case 53:this._a7._g4(3,true);break;case 56:this._a7._g4(0,true);break;case 55:this._a7._g4(1,true);break;case 58:this._a7._g5(true,true);break;case 62:this._a7._g5(false,true);break;case 57:this._a7._g6(true,false);break;case 60:this._a7._g6(true,true);break;case 59:this._a7._g7(true,false);break;case 61:this._a7._g7(true,true);break;case 63:this._a7._ha(true);break;case 64:this._a7._hb(true);break;case 66:this._a7._ie(false);break;case 65:this._a7._ie(true);break;case 67:this._a7._ic();break;case 71:this._a7._g9(true);break;case 72:this._a7._g9(false);break;case 73:this._ah.z(this.activeCell(),false,null,false,false);break;case 151:this.cellEditMode(this.cellEditMode()==1?2:1);break;case 74:this._ah.z(this.activeCell(),true,String.empty(),false,false);break;case 75:this._ah.af(1,false,false,true);break;case 76:this._ah.af(2,false,false,true);break;case 77:this._ah.af(3,false,false,true);break;case 78:this._ah.af(0,false,false,true);break;case 79:this._f3();break;case 158:this._gi(28,function(){$self._a7._gc(true,true,true)},null,false,null,true,false);break;case 80:this._a7._c4();break;case 83:this._a7._ii();break;case 81:this._a7._f6(true);break;case 82:this._a7._f6(false);break;case 84:this._a7._ib();break;case 86:this.undoManager().undo(1);break;case 85:this.undoManager().redo(1);break;case 87:case 88:this._hr(a==88);break;case 92:case 91:this._gl(a==91,true);break;case 90:case 89:this._gl(a==89,false);break;case 93:case 94:this._fz(a==93);break;case 96:this._gr(1);break;case 95:this._gr(2);break;case 97:this._gr(3);break;case 98:this._gr(0);break;case 99:this._gj(0);break;case 100:this._gj(1);break;case 101:this._gj(8);break;case 102:this._gj(9);break;case 103:this._gj(10);break;case 104:this._gj(11);break;case 105:this._gj(5);break;case 106:this._gj(4);break;case 107:this._gj(2);break;case 108:this._gj(3);break;case 109:this._gj(6);break;case 110:this._gj(7);break;case 111:this._gj(12);break;case 112:this._gj(13);break;case 114:this._gj(14);break;case 113:this._ic();break;case 115:this._i7(0);break;case 116:this._i7(1);break;case 117:this._i7(2);break;case 118:this._i7(3);break;case 119:this._ig($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.c3(this._bx()._c2()),$$t.$dy.ei,6,128);break;case 120:this._ig($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.c3(this._bx()._c3()),$$t.$dy.er,7,1024);break;case 121:this._ig($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.c3(this._bx()._c4()),$$t.$dy.ew,8,4096);break;case 160:this._ig($$a4.$cb.$type,$$t.$dy.am(this._bx()._a1(),this._d3()),$$t.$dy.ez,20,16384);break;case 161:this._ig($$a4.$cb.$type,$$t.$dy.al(this._bx()._a1(),this._d3()),$$t.$dy.ez,20,16384);break;case 122:this._ig($$0.$ai.$type.specialize($$0.$aq.$type),$m($$0.$aq.$type,this._bx()._b8()?false:true),$$t.$dy.e1,9,536870912);break;case 162:this._ig($$a4.$ca.$type,this._bx()._a0()==1?0:1,$$t.$dy.ey,19,8192);break;case 163:this._ig($$a4.$ca.$type,this._bx()._a0()==2?0:2,$$t.$dy.ey,19,8192);break;case 123:this._gm(true);break;case 124:this._gm(false);break;case 125:this._ig($$0.$aw.$type,$$t.$dy.cm(this._bx()._cq(),true),$$t.$dy.eo,11,512);break;case 126:this._ig($$0.$aw.$type,$$t.$dy.cm(this._bx()._cq(),false),$$t.$dy.eo,11,512);break;case 127:this._ig($$a4.$cg.$type,$$t.$dy.ar(this._bx()._a4(),2),$$t.$dy.eh,15,1);break;case 129:this._ig($$a4.$cg.$type,$$t.$dy.ar(this._bx()._a4(),1),$$t.$dy.eh,13,1);break;case 130:this._ig($$a4.$cg.$type,$$t.$dy.ar(this._bx()._a4(),3),$$t.$dy.eh,14,1);break;case 128:this._ig($$a4.$cg.$type,$$t.$dy.ar(this._bx()._a4(),5),$$t.$dy.eh,12,1);break;case 131:this._ig($$a4.$c7.$type,0,$$t.$dy.e0,16,268435456);break;case 133:this._ig($$a4.$c7.$type,2,$$t.$dy.e0,17,268435456);break;case 132:this._ig($$a4.$c7.$type,1,$$t.$dy.e0,18,268435456);break;case 134:this._a7._iy(false);break;case 135:this._a7._iy(true);break;case 137:this._a7._gm(0,1);break;case 136:this._a7._gm(1,0);break;case 142:case 140:case 138:this._a7._hy(a!=138,a!=140);break;case 141:case 139:case 143:this._a7._it(a!=139,a!=141);break;case 145:this._gi(24,this._a7._gy.runOn(this._a7),null,false,null,true,false);break;case 144:this._gi(22,this._a7._gh.runOn(this._a7),null,false,null,true,false);break;case 147:this._gi(25,this._a7._gx.runOn(this._a7),null,false,null,true,false);break;case 146:this._gi(22,this._a7._gg.runOn(this._a7),null,false,null,true,false);break;case 156:this._gi(23,function(){$self._a7._gw($m($$0.$aq.$type,null))},null,false,null,true,false);break;case 157:this._gi(22,function(){$self._a7._gf($m($$0.$aq.$type,null))},null,false,null,true,false);break;case 153:this._gi(23,function(){$self._a7._gw($m($$0.$aq.$type,false))},null,false,null,true,false);break;case 154:this._gi(22,function(){$self._a7._gf($m($$0.$aq.$type,true))},null,false,null,true,false);break;case 152:this._gi(23,function(){$self._a7._gw($m($$0.$aq.$type,true))},null,false,null,true,false);break;case 155:this._gi(22,function(){$self._a7._gf($m($$0.$aq.$type,false))},null,false,null,true,false);break;case 150:this._hq();break;case 149:this._gb(false);break;case 148:this._gb(true);break;case 159:this._a7._ix();break;case 164:this._hp();break;case 165:this._gi(29,function(){$self._a7._hw(true,true)},null,false,null,true,false);break;case 166:this._gi(30,function(){$self._a7._hw(false,true)},null,false,null,true,false);break;case 167:case 168:this._a7._g8(a==167);break;case 169:this.nameBoxWidth(102);break;case 171:this._a7._ge();break;case 170:this._a7._gb();break;case 173:this._cx(false,false,false);break;case 172:this._cx(true,false,false);break;case 174:this._gi(35,function(){$self._a7._gz(true)},null,false,null,true,false);break;case 175:this._gi(36,function(){$self._a7._fy(true)},null,false,null,true,false);break;case 176:this._gi(37,function(){$self._a7._gz(false)},null,false,null,true,false);break;case 177:this._gi(38,function(){$self._a7._fy(false)},null,false,null,true,false);break;case 178:this._gi(39,function(){$self._a7._gi(true)},null,false,null,true,false);break;case 179:this._gi(40,function(){$self._a7._gi(false)},null,false,null,true,false);break;case 180:case 181:this._a7._ig(a==181);break;case 182:this._a7._ih();break;case 183:this._gi(32,function(){$self._a7._activeTable().isTotalsRowVisible(!$self._a7._activeTable().isTotalsRowVisible())},null,false,null,true,false);break;case 184:this._gi(33,function(){$self._a7._bc().tables().remove($self._a7._activeTable(),true)},null,false,null,true,false);break;case 185:if(this._a7._cg()){this._gi(41,function(){$self._a7._il(false)},null,false,null,true,false)}else{this._gi(42,function(){$self._a7._il(true)},null,false,null,true,false)}break;case 187:this._gi(34,function(){$self._a7._iu(0,true,$self._fk(b))},null,false,null,true,false);break;case 186:this._gi(34,function(){$self._a7._iu(0,false,$self._fk(b))},null,false,null,true,false);break;case 188:this._gi(44,function(){$self._a7._gd()},null,false,null,true,false);break;case 189:this._gi(43,function(){$self._a7._cx(false,$self._ag(b))},null,false,null,true,false);break;case 190:this._gi(45,function(){$self._a7._hu()},null,false,null,true,false);break;case 192:this._gi(43,function(){$self._a7._gl(2)},null,false,null,true,false);break;case 193:this._gi(43,function(){$self._a7._gl(1)},null,false,null,true,false);break;case 194:this._gi(43,function(){$self._a7._gl(3)},null,false,null,true,false);break;case 191:this._gi(43,function(){$self._a7._gl(0)},null,false,null,true,false);break;case 196:this._gi(34,function(){$self._a7._iu(1,true,$self._fk(b))},null,false,null,true,false);break;case 197:this._gi(34,function(){$self._a7._iu(3,true,$self._fk(b))},null,false,null,true,false);break;case 195:this._gi(34,function(){$self._a7._iu(2,true,$self._fk(b))},null,false,null,true,false);break;case 200:this._gs(false);break;case 199:this._gs(true);break;case 201:this._ij();break;case 202:this._ik();break;case 198:this._ip();break;case 203:this._iq(this._fk(b));break;default:g=false;break}}}finally{this._id(true)}this._gt(new $$t.f0(a,b,c));return g},_c1:function(a){if(this.isInEditMode()&&!this._ah.af(a?1:0,true,false,true)){return false}if(this._bd()!=null&&!this._cx(a,true,false)){return false}return true},_ja:function(a,b){if(a==null){return new $$a.y(0)}var c=a._ag();var d=$$t.$dy.ab(c);var e=a.rowScrollRegion()._bx();var f=c.activeCell();var g=Math.min(Math.max(f.column(),a.columnScrollRegion().startIndex()),a.columnScrollRegion().endIndex());var h=Math.min(Math.max(f.row(),a.rowScrollRegion().startIndex()),a.rowScrollRegion().endIndex());var i=false;var j=false;if(b){d=2}switch(d){case 7:case 2:break;case 0:h=a.rowScrollRegion().startIndex();i=true;break;case 1:g=a.columnScrollRegion().startIndex();j=true;break}var k=a.columnScrollRegion()._bn(g,j,true)*e;var l=a.rowScrollRegion()._bn(h,i,true)*e;return $$t.$dy.e6(k,l)},_an:function(){if(this._a7==null){return $$t.$d1.empty}return this._a7._aa()},_fr:function(a){if(a!=null){var b=a.chart();var c=b.chartTitle();if(c==null){return""}if(b.seriesCollection().count()==1){var d=b.seriesCollection().item(0).name();if(d!=null){return d.toString()}}else{var e=-1;for(var f=0;f<b.seriesCollection().count();f++){var g=b.seriesCollection().item(f).values().getValues();if(g!=null&&g.length>0){if(e>=0){e=-1;break}else{e=f}}}if(e>=0){var h=b.seriesCollection().item(e).name();if(h!=null){return h.toString()}}}}return this._fs("DefaultChartTitle",[])},_fs:function(a,b){var c;if(this._e9!=null){c=this._e9.getResourceString(a)}else{c=$.ig.util.getLocaleValue("Spreadsheet",a)}if(!String.isNullOrEmpty(c)&&b!=null&&b.length>0){c=$7(c,b)}return c},_gn:function(){if(this._c2(2)){return}this._ih(2,true);this._i3()},_dt:function(a){if(!this._d7(true)){return false}return true},_g5:function(a,b){var c=$m($$t.$ea.$type,null);if(a&&this._a7._ct(true)||b&&this._a7._ct(false)){if(a&&b){c=$m($$t.$ea.$type,143)}else if(a){c=$m($$t.$ea.$type,141)}else if(b){c=$m($$t.$ea.$type,139)}}else{if(a&&b){c=$m($$t.$ea.$type,142)}else if(a){c=$m($$t.$ea.$type,140)}else if(b){c=$m($$t.$ea.$type,138)}}if($l(c,null)){this._cz(c.value(),null,null)}},_fc:0,_e7:null,_hc:function(a){var $self=this;if(a){if(this._fc==0){this._e7=$$6.$ak.b;$$6.$ak.b=function(b,c){var d="";if($self._e9!=null){d=$self._e9.getResourceString(c);if(String.isNullOrEmpty(d)){var e=$.ig.locale[$self._language()];var f=e!=null?e[b]:null;d=f!=null?f[c]:""}}if(String.isNullOrEmpty(d)){d=$.ig.util.getLocaleValue(b,c)}return d}}this._fc++}else{this._fc--;if(this._fc==0){$$6.$ak.b=this._e7;this._e7=null}}},_dv:function(a,b){if(this._d7(true)){this._t.focus();var c=this.activePane();if(c!=null){var d=a.g();var e=c.rowScrollRegion()._ab();var f=e._x();var g=(d&4)!=0||f==1;var h=(d&2)!=0||f==2;var i=false;if(h==g||!g){var j=this.panes().item(0);var k=j.rowScrollRegion()._o();if(k.canActivatePane(j)){if(k.activatePane(j)){if(j==this.activePane()){c=j;e=j.selection()}}else{i=true}}}if(!i){var l=this._an();var m=g&&!h?e.activeCell():c.visibleRange()._c();if(this._cv(l)){if(h&&!g){e._addActiveCellRange1(l,m,true)}else{e._resetSelection2(l,m,true)}}if(a.a()==2){this._v().showSelectAllContextMenu(b,a.h())}return true}}}return false},_dw:function(a,b,c){var $self=this;var d=$9(a,this._ft(),1)==0;if(d&&this._c2(8)&&$9(a,this._ft(),0)==0){return true}var e=this.activeCell();var f=this.workbook();var g=this.activeWorksheet();if(g==null){return false}var h=this.activeSelection();var i=this.activePane();if(h==null||i==null){return false}if(!b&&this.selectionMode()==1){b=true}else if(!c&&this.selectionMode()==2){c=true}if(b&&c){b=c=false}var j=null;var k=null;if(String.isNullOrWhiteSpace(a)){if(this._y!=null){j=this._y}}else{var l=a;var m;a=a.trim();if(a.startsWith("=")){if(a.length==1){return this._dz(new $$t.kx(9,null,null,l,false))}a=a.substr(1)}var n=b?1:c?2:0;var o=$$t.$d7._d(g,h);var p=f.getTable(a);if(p!=null){var q=$$t.$dy.aa(p.dataAreaRegion()._h());j=o._e(p.worksheet(),q,n)}else if($9(a,"c",1)==0){var r=this._an();j=o._f(g,new $$t.d1(r.firstRow(),e.column(),r.lastRow(),e.column()),new $$t.dz(this.activePane().rowScrollRegion().startIndex(),e.column()),n)}else if($9(a,"r",1)==0){var s=this._an();j=o._f(g,new $$t.d1(e.row(),s.firstColumn(),e.row(),s.lastColumn()),new $$t.dz(e.row(),this.activePane().columnScrollRegion().startIndex()),n)}else{var t=g.rows().item(e.row());var u=e.column();var v=function(){var w=f._ar(a,f.cellReferenceMode(),g,t,u,m,true,false);m=w.p5;return w.ret}();if(v==null){var w=f.cellReferenceMode()==1?0:1;v=function(){var x=f._ar(a,w,g,t,u,m,false,false);m=x.p5;return x.ret}();if(v!=null&&w==1){return this._dz(new $$t.kx(9,null,null,l,false))}}if(v!=null){if(m){v=this._br(v,t,u);if(v==null){return false}}if(!function(){var x=$self._d6(v,j,n);j=x.p1;return x.ret}()){return this._dz(new $$t.kx(9,null,null,l,false))}}else{if(g.isProtected()){return false}try{f._jg(a,null)}catch(x){return this._dz(new $$t.kx(9,null,x,l,false))}var y=$$a4.$gi._s(a);var z=y?g:null;var aa=$$a4.$k.d4(null,g.name());var ab=$$a4.$zk.bx(f._e6());var ac=new $$6.aj(0);ac.l("=");for(var ad=0,ae=h.cellRanges().count();ad<ae;ad++){if(ad>0){ac.h(ab)}ac.l(aa);ac.l(h.cellRanges().item(ad)._af(f.cellReferenceMode(),false))}try{var af=ac.toString();if(y){k=f.namedReferences()._add2(a,af,f.cellReferenceMode(),g)}else{k=f.namedReferences()._add1(a,af,f.cellReferenceMode())}}catch(ag){return this._dz(new $$t.kx(9,null,ag,l,false))}}}}var ah=false;if(k!=null){ah=true}else if(j!=null){this._y=$$t.$d7._d(g,h);ah=j!=null&&false==j._i(g,h);var ai=this._ft();this._ii(j,true);if(ah&&ai!=this._ft()){ah=false}}if(this._t.hasKeyboardFocusWithin()){this._t.focus()}if(ah&&k!=null&&this.selectionMode()!=0){this._cz(68,null,null)}return ah},_du:function(a){if(this._a7==null){return false}if(a.b==1||a.b==0){var b=this._a7._bc();if(!b.isProtected()||b.protection().allowFiltering()){if(!this._d7(false)||this.selectedWorksheets()==null||this.selectedWorksheets().length>1){return false}return true}}else{if(!this._d7(false)){return false}}return true},_dz:function(a){this._h9(a);if(a.e()){var b=a._h;var c=a._b?1:0;var d=a._b&&a._c?2:1;var e=this._u().showMessageBox(a._i,b,c,0,d);if(this.isInEditMode()&&this.cellEditMode()==1){this._cz(151,null,null)}if(e==2){return true}return false}else{if(a._b){return a._c}return false}},_hl:function(){if(this._a7!=null){this._a7._hk()}this._hw(8192|16777216)},_hr:function(a){var b=$$t.$dy.o(this.enterKeyNavigationDirection());if(a){b=$$t.$dy.n(b)}this._a7._hm(b)},_d0:function(a,b){var c=false;var d=this._bp($$t.$on.a(),null);var e=this._l.e(a,b,d);if(null!=e){var g=e.getEnumerator();while(g.moveNext()){var f=g.current();c=this._c0(f,null,this,d)||c}}return c},_d1:function(a,b,c){if(this._a7==null||this._bd()!=null||this._a2!=null){return false}this._a7._cu(a,b,c);return true},_ht:function(){if(this._c2(128)){this._ih(128,false);this._i3()}},_d2:function(a,b){if(this.isInEditMode()){return false}var c=false;if(!String.isNullOrEmpty(a)&&!b){for(var d=0;d<a.length;d++){var e=a.charAt(d);var f=false;if(/\s/i.test(e)||$an(e)){f=true}else{var g=$$a4.$afd.e(e);if($$t.$dy.bf(g)||$$t.$dy.bg(g)){f=true}}if(f){c=true;break}}}if(!c&&!b){return false}var h=null;if(!String.isNullOrEmpty(a)&&a!=$$6.$h.newLine()&&(a.length>1||a.indexOfAny(["\r","\n"])<0)){h=a}else if(b){h=a}this._ah.z(this.activeCell(),true,h,false,false);return true},_id:function(a){this._fe--;if(this._fe==0){this._hc(false)}if(this._fe==0&&a&&!this._c2(8)){this._i4()}},_d4:function(a,b){var $self=this;if(!this._du(b)){return false}if(b.b==1||b.b==0){return this._v().showFilterMenu(a,b)}var c=this._a7;var d=c._bc();var e=c._getCellRange1(b.d,b.c);var f=d.rows()._aj(e.firstRow());var g=new $$4.x(String,0);var h=-1;var i=null;switch(b.b){case 4:{var j=-1;var k=new $$4.q(String,0);var l=d._de(e.firstRow(),e.firstColumn());var m=function(n,o){if(n.index()!=o){return false}var p=n._getCellValue1(e.firstColumn());if(p==null){return false}if(l==null){var q=d._de(o,e.firstColumn());if(q!=null){return false}}if(typeof p==="string"){k.add(p)}else if($b($$a4.$dq.$type,p)!==null){k.add(p.unformattedString())}return true};var n=l!=null?l.dataAreaRegion().firstRow():0;var o=l!=null?l.dataAreaRegion().lastRow():d.workbook().maxRowCount()-1;if(e.firstRow()>n&&(l==null||!l.isHeaderRowVisible()||e.firstRow()>l._by()._firstRowIndex())){j=e.firstRow()-1;var q=d.rows()._n(n,e.firstRow()-1,false).getEnumerator();while(q.moveNext()){var p=q.current();if(m(p,j)){j--}else{break}}}if(e.firstRow()<o&&(l==null||!l.isTotalsRowVisible()||e.firstRow()<l._by()._lastRowIndex())){j=e.firstRow()+1;var s=d.rows()._m(e.firstRow()+1,o).getEnumerator();while(s.moveNext()){var r=s.current();if(m(r,j)){j++}else{break}}}g.addRange(k);g.sort();i=function(t){if(t<0||t>=g.count()){return}var u=g.__inner[t];var v=function(){d.rows().item(e.firstRow()).setCellValue(e.firstColumn(),u)};$self._gi(0,v,[e],false,u,true,false)}}break;case 2:{var t=$b($$a4.$bl.$type,d.dataValidationRules()._e(new $$a4.l0(1,e.firstRow(),e.firstRow(),e.firstColumn(),e.firstColumn())));if(t==null){return false}var u=new $$t.df(this,d._b4(f,e.firstColumn()));var v=t._bj(u.parseValue.runOn(u));if(v!=null){for(var w=0;w<v.length;w++){var x=v[w];if($b($$t.$dg.$type,x)!==null){g.add(x.c)}else{g.add(x!=null?x.toString():"")}}}else{var y=t._bl(new $$a4.j2(1,e.firstRow(),e.firstColumn()),true);if(y==null){return false}var z=new $$4.x($.ig.$op.$type,0);var ab=y.getEnumerator();while(ab.moveNext()){var aa=ab.current();if(aa.isReference()){var ac=aa._j(false);var ad=$b($$a4.$z0.$type,$$a4.$pl.u(ac));if(ad!=null){z.add1(ad._row()._getCellValue1(ad._columnIndex()));g.add(ad._row()._getCellText1(ad._columnIndex(),1));continue}}var ae=$$a4.$zz.m(aa._bj(false,false),true);z.add1(ae);g.add(ae!=null?ae.toString():"")}v=z.toArray()}var af=f!=null?f._getCellText1(e.firstColumn(),1):"";h=g.indexOf(af);i=function(ag){if(ag<0||ag>=v.length){return}$self._gi(48,function(){var ah=v[ag];if($b($$t.$dg.$type,ah)!==null){var ai=ah;ah=ai.b;if(ai.a!=-1){var aj=d.workbook()._b2().item(ai.a);d.rows().item(e.firstRow())._cellFormatInternal().formatString(aj)}}d.rows().item(e.firstRow()).setCellValue(e.firstColumn(),ah)},null,false,null,true,false)}}break;case 3:{var ag=d._de(e.firstRow(),e.firstColumn());if(ag==null){return false}var ah=$$a4.$zk.bx(d.workbook()._e6());var ai=f==null?null:f.getCellFormula(e.firstColumn());var aj=ai!=null?ai._toString1(1):null;h=0;var ak=new $$4.x(String,0);var al=function(am,an){g.add($self._fs(am,[]));var ao=ag.columns()._item(e.firstColumn()-ag._by()._firstColumnIndex());var ap=$$a4.$adl.ad(ao.name());var aq="=SUBTOTAL("+an+ah+"["+ap+"])";if(aq==aj){h=ak.count()}ak.add(aq)};g.add(this._fs("TotalRow_None",[]));ak.add(null);al("TotalRow_Average",101);al("TotalRow_Count",103);al("TotalRow_CountNumbers",102);al("TotalRow_Max",104);al("TotalRow_Min",105);al("TotalRow_Sum",109);al("TotalRow_StdDev",107);al("TotalRow_Var",110);i=function(am){if(am<0||am>=ak.count()){return}$self._gi(47,function(){var an=ak.__inner[am];var ao=d.rows().item(e.firstRow());if(String.isNullOrEmpty(an)){ao.setCellValue(e.firstColumn(),null)}else{ao.applyCellFormula(e.firstColumn(),an,$m($$a4.$b0.$type,1));
}},null,false,null,true,false)}}break}var am=a.columnScrollRegion()._b7()(e.firstColumn());var an=e._ad()==1?am:a.columnScrollRegion()._b7()(e.lastColumn());var ao=a.rowScrollRegion()._b7()(e.firstRow());var ap=ao;var aq=a.columnScrollRegion()._bx();var ar=a.columnScrollRegion()._bm(am,true,true)*aq;var as=a.columnScrollRegion()._bm(an,false,true)*aq;var at=a.rowScrollRegion()._bm(ao,true,true)*aq;var au=a.rowScrollRegion()._bm(ap,false,true)*aq;var av=new $$a.ae(0,ar,at,as-ar,au-at);av.union(b.g);var aw=function(ax){if(ax>=0&&ax<g.count()){if(!$self._a8()._br(e._c())){return}$self._g0(e._c(),g.__inner[ax])}i(ax)};return this._v().showCellDropDown(a,av,g,h,aw)},_ip:function(){var $self=this;var a=this._v();var b=false;var c=false;var d=false;var e=63;var f=null;var g;var h;if(this.isInEditMode()){h=$$t.$gq.g(this);e=4;g=function(i){$$t.$gv.g($self.activeSelectionCellRangeFormat().font(),i,h)}}else{var i=this.activeSelection();var j=$$5.$e.a($$t.$d1.$type,i.cellRanges());h=$$t.$gq.f(this.selectedWorksheets(),j);var k=this.activeWorksheet().rows()._g(i.activeCell().row(),false);for(var m=0;m<j.length;m++){var l=j[m];if(l._ad()>1){b=true}if(l._aa()>1){c=true}}d=this._cr(96,null,true);var p=this.selectedWorksheets();for(var o=0;o<p.length;o++){var n=p[o];if(n.isProtected()){e&=~32}}if(k!=null){f=k._getCellValue1(i.activeCell().column());if($b($$a4.$dq.$type,f)!==null){f=f.unformattedString()}}g=function(q){$self._gi(10,function(){var r=new $$t.gv;r.e=$self._a7;r.a=j;r.c=q;r.b=h;r.f()},j,false,null,true,false)}}h._o=this.workbook();var q=h.a();var r=function(){var $ret=new $$t.no;$ret._i=$m($$t.$nd.$type,null);$ret._b=true;$ret._c=true;$ret._d=c;$ret._e=b;$ret._f=d;$ret._g=true;$ret._h=true;return $ret}();r._a=e;var s=new $$t.np(r,h,a.spreadsheetDialogServicesManager(),f,this._fl);a.showFormatCellsDialog(s,function(t){if(!t._a){g(q)}$self._fl=s.__q._b})},_iu:function(){if(this._fe==0){this._hc(true)}this._fe++},_d7:function(a){if(this.isInEditMode()&&!this._ah.af(a?1:0,false,true,true)){return false}if(this._bd()!=null){if(!this._cx(false,false,false)||this._bd()!=null){return false}}return true},_iv:function(){var a=new $$a4.n(2);var b=a.worksheets()._add(this._fs("NewSheetName",[1]));a.windowOptions().selectedWorksheet(b);this.workbook(a)},_i3:function(){if(this._dn()||this._c2(8)){return}try{this._iu();this._i4()}finally{this._id(true)}},_fv:function(a,b){if(this._ec==null){this._ec=new $$4.h(String,$.ig.$op.$type,0)}if(!this._ec.containsKey(a)){this._ec.item(a,b);this._hw(134217728)}},_fw:function(){if(this._a7!=null&&!this._a7._isLayoutDirty()){if(this._c2(134217728)){this._ih(134217728,false);this._h1()}}},_fz:function(a){var $self=this;var b=a?2:3;this._gi(b,function(){$self._a7._f1(a)},null,false,null,true,false)},_f2:function(){if(this._fu!=null){var a=this._fu;this._fu=null;a._c.c()}},_cs:function(){if(this._a7!=null){var a=this._a7.activePane();if(a!=null){var b=a._ag();if(b.cellRanges().count()==1){var c=b.cellRanges().item(0);var d=b.activeCell();var e;if(c.isSingleCell()){e=true}else{var f=b._t(d);e=$$t.$d1.l_op_Equality(f,c)}if(e){var g=this._a7._bc().rows()._aj(d.row());return this._a7._bc()._ck(g,d.row(),d.column())!=null}}}}return false},_f3:function(){var $self=this;if(this._a7._c9()==false){return}this._gi(1,function(){$self._a7._ak(0,false,null,null)},null,true,null,true,false)},_f5:function(a){this._f6(a,this.workbook())},_f6:function(a,b){if(b!=null){a.removeAll(function(c){return c.d()==b},true)}},_f4:function(a){var b=this.undoManager();if(a!=null){b.removeAll(function(c){var d=$b($$t.$lc.$type,c);return d!=null?d.sheet()==a:false},true)}},_gb:function(a){var $self=this;var b=this._a7;if(a&&b._b1(false,true,null)){return}if(!a){var c=b.activePane();var d=c!=null?c.selection():null;if(null!=d&&d.cellRanges().count()>1&&b._b1(false,true,null)){return}}if(a&&!b._da()){return}var e=new $$t.kf(this.workbook());e.beforeCopying=$.ig.Delegate.prototype.combine(e.beforeCopying,function(f,g){if(b._b8(true)){if($self._cz(83,null,null)){b._i2()}}});e.copying=$.ig.Delegate.prototype.combine(e.copying,function(f,g){if(!$self._t.shouldCopyToClipboard(g._dataObject(),g._isDragDrop())){g._cancel(true)}else if(a){var h=1;$self._gi(27,function(){h=b._ak(0,false,null,null);if(h==2){b._h1(true);b._h0(true);b._gc(false,false,true)}},null,true,null,true,false);if(h!=2){g._cancel(true)}}if(!g._cancel()){$self._g2(g._dataObject(),g._isDragDrop())}});e.settingData=$.ig.Delegate.prototype.combine(e.settingData,function(f,g){if(!$self._t.shouldIncludeClipboardFormat(g._dataObject(),g._format())){g._cancel(true)}});e.error=$.ig.Delegate.prototype.combine(e.error,function(f,g){var h=$m($$t.$fs.$type,null);if($b($$t.$jj.$type,g._exception())!==null){h=$m($$t.$fs.$type,18)}var i=$l(h,null)?new $$t.kx(h.value(),null,g._exception(),null,false):new $$t.kx(14,$self._fs("PasteError_General_Message",[g._exception().message()]),g._exception(),null,false);$self._dz(i)});var f=function(){var g=new $$t.kx(31,null,null,null,true);g._c=true;g._d=false;return!$self._dz(g)};e.c(f)},_gd:function(){this._hw(1024|8192);this._ab._ah(false)},_gi:function(a,b,c,d,e,f,g){var h=g&&!this._c2(4);if(h){this._ih(4,true)}try{if(this._c2(4)){var i=null;var j=this.activePane();if(j!=null&&f){var k=j.selection();var l=$$5.$e.a($$t.$d1.$type,k.cellRanges());if(c==null&&d){c=l}var m=new $$t.d7(this._a7._bc(),l,k.activeCell(),k.activeCellRangeIndex());i=new $$t.lb(this,this._a7._bc(),a,e,c,m,this._ii.runOn(this))}else{if(j!=null&&c==null&&d){c=$$5.$e.a($$t.$d1.$type,j.selection().cellRanges())}i=new $$t.la(this,this._a7._bc(),a,e,c)}this._b3.executeInTransaction(i,b);if(h){this._b3.removeAll(function(n){return n==i},true)}}else{b()}}catch(n){if(!($b($$t.$ef.$type,n)!==null)){this._dz(new $$t.kx(19,null,n,$$t.$fr.getBox(a),false))}}finally{if(h){this._ih(4,this.isUndoEnabled())}}},_gj:function(a){if(this._bd()!=null&&!this._cx(false,false,false)){return}switch(a){case 14:if(this._dz(new $$t.kx(5,null,null,null,true))){return}break}this._be._a5(a)},_fk:function(a){if(a!=null){if(typeof a==="string"){return $m($$t.$dz.$type,new $$t.dz(a))}if($b($$t.$dz.$type,a)!==null){return $m($$t.$dz.$type,a)}}return $m($$t.$dz.$type,null)},_ag:function(a){var b=this._fk(a);if(b.hasValue()){return b.value()}return this.activeCell()},_bo:function(a,b){var c=this._l.b(a);var d=c==null?$$t.$on.a():$$t.$on.c(c.a,c.b);return this._bp(d,b)},_bp:function(a,b){this._iz();var c=new $$t.on(0);if((a.j&(1|1048576))!=0){var d=this.workbook();if((a.j&1)!=0&&d!=null){c.j|=1}if((a.j&1048576)!=0&&d!=null&&this.workbook().protection().allowEditStructure()==false){c.j|=1048576}}if((a.i&2)!=0&&this.allowAddWorksheet()){c.i|=2}if((a.i&4)!=0&&this.allowDeleteWorksheet()){c.i|=4}if((a.j&4)!=0&&this.panes().count()>1){c.j|=4}if(this._a7!=null){if((a.j&2)!=0){c.j|=2}if((a.j&65536)!=0&&this._a7._columns().count()>1){c.j|=65536}if((a.j&32768)!=0&&this._a7._rows().count()>1){c.j|=32768}if((a.j&8)!=0&&this._a7._b9()){c.j|=8}if((a.j&-2147483648)!=0&&this._v().isInNameBox()){c.j|=-2147483648}if((a.j&(262144|524288))!=0){if(this._a7.activePane()!=null){var e=this._a7.activePane().selection();if((a.j&262144)!=0&&e._bj().count()>0){c.j|=262144}if((a.j&524288)!=0&&e._bi().count()>0){c.j|=524288}}}if((a.i&(128|256))!=0){if(this._a7.activePane()!=null){var f=this._a7.activePane().selection();if((a.i&128)!=0&&f.cellRanges().count()>1){c.i|=128}if((a.i&256)!=0&&f.cellRanges().count()==1&&$$t.$d1.l_op_Equality(f._r(),f.cellRanges().item(0))){c.i|=256}}}if(this._a7._bc().isProtected()){if((a.j&2097152)!=0){c.j|=2097152}var g=this._a7._bc().protection();if((a.j&4194304)!=0&&g.selectionMode()==1){c.j|=4194304}if((a.j&8388608)!=0&&g.allowFormattingCells()==false){c.j|=8388608}if((a.j&16777216)!=0&&g.allowFormattingColumns()==false){c.j|=16777216}if((a.j&33554432)!=0&&g.allowFormattingRows()==false){c.j|=33554432}if((a.j&67108864)!=0&&g.allowInsertingColumns()==false){c.j|=67108864}if((a.j&134217728)!=0&&g.allowInsertingRows()==false){c.j|=134217728}if((a.j&268435456)!=0&&g.allowDeletingColumns()==false){c.j|=268435456}if((a.j&536870912)!=0&&g.allowDeletingRows()==false){c.j|=536870912}if((a.i&32)!=0&&g.allowSorting()==false){c.i|=32}if((a.i&64)!=0&&g.allowFiltering()==false){c.i|=64}}if((a.i&8)!=0&&this.activeTable()!=null){c.i|=8}if((a.i&16)!=0){if(this._a7._cb()){c.i|=16}}}if((a.j&16)!=0){if(this._v().isScrollLockToggled()){c.j|=16}}if((a.j&32)!=0&&this.isInEndMode()){c.j|=32}var h=64|128|256;if((a.j&h)!=0){switch(this.selectionMode()){case 0:c.j|=64;break;case 1:c.j|=128;break;case 2:c.j|=256;break}}if((a.j&512)!=0&&this.isInEditMode()){c.j|=512}if((a.i&1)!=0&&this._bd()!=null){c.i|=1}if((a.j&1024)!=0&&this._c2(32)){c.j|=1024}if((a.j&2048)!=0&&this._c2(64)){c.j|=2048}if((a.j&4096)!=0&&this.isEnterKeyNavigationEnabled()){c.j|=4096}if((a.j&8192)!=0&&this._be._ae()){c.j|=8192}if((a.j&16384)!=0&&this._be._ac()){c.j|=16384}if((a.j&131072)!=0&&this._be._j().count()>1){c.j|=131072}if((a.j&1073741824)!=0&&this.cellEditMode()==2){c.j|=1073741824}return c},_c2:function(a){return(this._z&a)!=0},_br:function(a,b,c){var d=$b($$a4.$aal.$type,a);if(d==null){return null}var e=b._as(c);return d._a3()._bo(true,e)},_bx:function(){var a=this._a7.activePane().selection();var b=a.activeCell();var c=this._a7._bc().rows()._aj(b.row());var d=this._a7._bc()._b4(c,b.column());return d},_ee:function(){var a=this.activeSelection();return a!=null?a.cellRanges():new Array(0)},_gl:function(a,b){var $self=this;var c=b?2:3;this._gi(c,function(){$self._a7._gp(a,b)},null,false,null,true,false)},_gm:function(a){var $self=this;if(this._a7==null||this._a7.activePane()==null){return}var b=this._a7.activePane().selection();this._gi(10,function(){$self._a7._f7(a)},null,false,null,true,false)},_go:function(){this._ah=this._t.createCellEditManager()||new $$t.di(this);this._bb=this._t.createTabEditManager()||new $$t.dj(this);this.a("CellEditManager");this.a("TabEditManager")},_gp:function(a,b){if(this._a7!=null){var c=this._a7._bc();var d=this._c2(a);this._ih(a,true);try{b(c)}finally{this._ih(a,d)}}},_c4:function(a){switch(a.a){case 5:case 24:case 81:case 82:case 83:case 89:case 4:case 27:case 61:case 85:case 88:case 87:case 66:case 68:case 69:case 67:case 70:case 71:case 16:case 47:case 48:case 49:case 42:case 43:case 44:case 45:case 72:case 73:case 74:case 75:case 76:case 84:case 77:case 78:return true}return false},_c5:function(a){switch(a.a){case 4:case 27:case 61:case 66:case 68:case 69:case 67:case 70:case 71:case 85:case 88:case 87:return true}return false},_b7:false,_c7:function(){if(this._b7){return false}try{var a=$$t.$n.e();return $$t.$kf.d(a)==false}catch(b){this._b7=true;return false}},_dc:function(a){switch(a.a){case 5:return true}return $$t.$c3._c5(a)},_dj:function(a){switch(a.a){case 87:case 90:case 9:case 65:if(a.c=="IsProtected"){return true}break;case 103:if(a.c=="SelectionMode"){return true}break;case 1:case 23:case 38:case 2:case 22:case 80:case 73:case 84:case 79:case 75:case 76:case 77:case 78:return true}return false},_dm:function(a){switch(a.a){case 17:case 53:case 54:case 25:case 73:case 84:case 79:case 92:case 91:return true;case 87:switch(a.c){case"":case"CellReferenceMode":case"CurrentFormat":return true}break;case 52:case 72:switch(a.c){case"Name":return true}break}return false},_dq:function(a){switch(a.a){case 99:return false;case 86:switch(a.c){case"BoundsInTwips":case"FirstVisibleTabIndex":case"Minimized":case"TabBarWidth":case"SelectedSheet":return false}break;case 65:switch(a.c){case"IsTabSelected":return false}break}return true},_gr:function(a){var $self=this;this._gi(4,function(){$self._a7._g2(a)},null,false,null,true,false)},_gs:function(a){if(this._a7==null){return}var b=this._a7.activePane().selection();b._by();if(this._a7._activeTable()==null){return}var c=this._a7._activeTable();var d=b.activeCell();var e=c._by();var f=c.dataAreaRegion();var g=f!=null&&f._q(d.row(),d.column());var h=!g&&c.isHeaderRowVisible()&&d.row()==e._firstRowIndex();var i=this._a7._bc();if(!g&&!h){this._a7._hc(a?1:0,$m($$0.$aq.$type,null));return}var j=e._lastRowIndex();var k=e._firstRowIndex();var l=false;if(a){var m=i.rows()._aj(e._lastRowIndex());var n=i._dv()&&m==null||m!=null&&m.hidden();l=!n;if(l&&!c.isTotalsRowVisible()){j=Math.min(this._a7._aa().lastRow(),e._lastRowIndex()+1)}}else{if(c.isTotalsRowVisible()){j=e._lastRowIndex()-1}}if(!h){k+=1}var o=new $$t.d1(k,e._firstColumnIndex(),j,e._lastColumnIndex());var p=a?this._a7._getNextCellInRange(o,$m($$t.$dz.$type,d)):this._a7._fg(o,$m($$t.$dz.$type,d));if($$t.$dz.l_op_Equality_Lifted(p,$m($$t.$dz.$type,null))){p=a?this._a7._getNextCellInRange(o,$m($$t.$dz.$type,null)):this._a7._fg(o,$m($$t.$dz.$type,null))}else if(a){if(l&&p.value().row()==o.lastRow()&&e._lastRowIndex()<this._a7._aa().lastRow()){this._gi(38,function(){var q=false;var r=i.rows()._aj(o.lastRow());if(r!=null){var t=r._ch(o.firstColumn(),o.lastColumn(),true).getEnumerator();while(t.moveNext()){var s=t.current();if(s.o()){q=true;break}}}if(q){c.insertDataRows(f._aa(),1)}else{var u=new $$a4.lz(i,e._firstRowIndex(),e._firstColumnIndex(),e._lastRowIndex()+1,e._lastColumnIndex());c._resize(u)}},null,false,null,true,false)}}if($$t.$dz.l_op_Equality_Lifted(p,$m($$t.$dz.$type,null))){return}this._a7._ik(p.value(),false,$m($$t.$d1.$type,new $$t.d1(p.value().row(),p.value().column())))},_hp:function(){var a=this.activeSelection();if(a!=null&&a.cellRanges().count()==1){var b=a.cellRanges().item(0);var c=a.activeCell();var d=a._t(c);if($$t.$d1.l_op_Equality(d,b)){var e=this._a7._bc();var f=e.rows()._aj(c.row());var g=e._ck(f,c.row(),c.column());if(g!=null){this._i5(g)}}}},_dx:function(a){var b=a.e(true);var c=new $$t.f7(b,$$5.$e.a($$a4.$jk.$type,$$5.$e.o($$t.$em.$type,$$a4.$jk.$type,a.c(),function(d){return d.b})));this._h7(c);return c.cancel()==false},_hh:function(a,b,c){switch(b!=null?b:""){case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(this._a7!=null&&this._a7._ck(a)){this._hw(1)}else if(this._be._af(a)){this._hw(512)}else{var d=a.getType();if(d==$$t.$dy.d6||d==$$t.$dy.d5){this._hw(4096|1)}}break;case"ActivePane":if(a==this._a7){this.activePane(this._a7.activePane())}break;case"ActiveTable":if(a==this._a7){this.activeTable(this._a7._activeTable())}break;case"ZoomLevel":if(a==this._a7){this._hw(65536)}break;case"ActiveCellInputMessagePosition":if(a==this._a7){this._hw(67108864)}break;case"ActiveCell":if(a==this.activeSelection()){this.activeCell(this.activeSelection().activeCell())}break;case"ActiveCellAsRange":if(a==this.activeSelection()){this._am(this.activeSelection()._r())}break;case"ActiveTab":if(a==this._be){this._hw(256)}break;case"IsNextItemOutOfView":case"IsPreviousItemOutOfView":if(a==this._be){this._hw(1)}break;case"TabInEdit":if(a==this._be){this._hw(16384)}break}},_hg:function(a,b,c,d){a._hh(b,c,d)},_hj:function(a,b,c){var d=c.propertyName();if(String.isNullOrEmpty(d)||d=="CanUndo"||d=="CanRedo"){a._hw(16)}},_hm:function($tContext,$tValue,a,b){var c=this._a7;var d=b.k(a);if(c!=null&&(c._bc()==d||d==null)){c._hd($tContext,$tValue,a,b);if(!this._c2(16777216|8192)&&$$t.$c3._c4(b)){this._hw(16777216|8192)}}if(this._be!=null){this._be._a6(b)}if(!this._ab._aa()){if($$t.$c3._c5(b)){this._gd()}}if(this._eh!=null||!this._c2(4096)){if($$t.$c3._dm(b)){this._eh=null;this._hw(4096)}}if(!this._c2(1)){if($$t.$c3._dj(b)){this._hw(1)}}if(!this._c2(8192)){if($$t.$c3._dc(b)){this._hw(8192)}}if(!this._c2(2048)){if($$t.$c3._dq(b)){this._hw(2048)}}if(!this._c2(128)){this._ih(128,true);this._v().onHasPendingChangeNotification()}switch(b.a){case 87:if(b.c=="CurrentFormat"){this._iu();try{if(this._a7!=null){this._a7._hg()}}finally{this._id(true)}this._f6(this._b3,this.workbook())}break;case 35:this._hw(1048576|262144);break;case 9:case 90:case 65:if(b.c=="IsProtected"){if(d!=null&&d.isProtected()){this._f4(d)}}break}},_hq:function(){var $self=this;var a=this._a7;var b=new $$t.kf(this.workbook());var c=null;b.error=$.ig.Delegate.prototype.combine(b.error,function(d,e){if($self._a7!=null){$self._a7._gt()}var f=$b($$t.$km.$type,e._exception());var g=$m($$t.$fs.$type,null);if(f!=null){switch(f.__c){case 2:g=$m($$t.$fs.$type,10);break;case 1:g=$m($$t.$fs.$type,11);break;case 0:g=$m($$t.$fs.$type,13);break;case 3:g=$m($$t.$fs.$type,12);break;case 5:g=$m($$t.$fs.$type,15);break;case 4:g=$m($$t.$fs.$type,16);break;case 6:g=$m($$t.$fs.$type,7);break;default:break}}else if($b($$t.$jj.$type,e._exception())!==null){g=$m($$t.$fs.$type,12)}var h=$l(g,null)?new $$t.kx(g.value(),null,e._exception(),null,false):new $$t.kx(14,$self._fs("PasteError_General_Message",[e._exception().message()]),e._exception(),null,false);$self._dz(h);if(c!=null){$self._ii(c,false)}});b.pasting=$.ig.Delegate.prototype.combine(b.pasting,function(d,e){$self._v().onDataObjectPasting(e);if(!e._cancel()&&e._dataObject()!=null){if(a._b8(true)){c=$$t.$d7._d($self.activeWorksheet(),$self.activeSelection());if($self._cz(83,null,null)){a._i2()}}}});var d=null;var e=function(f,g,h){var i=$$5.$e.a($$a4.$jk.$type,f);var j=$$5.$e.a($$a4.$l0.$type,g);var k=f.item(0).workbook().windowOptions().selectedWorksheet();var l=k.displayOptions()._af().a(k.displayOptions()._z());var m=$self._ea(f,g,h);if(m){$$t.$e3.f(i,j,l._b);d=$$t.$e3.a(i,j)}return m};var f=function(){var $ret=new $$t.ko;$ret._b=8370167;$ret._g=$self.fixedDecimalPlaceCount();$ret._c=$self.isFixedDecimalEnabled();$ret._d=false;$ret._a=0;$ret._e=$self._d9.runOn($self);$ret._f=$self._ea.runOn($self);return $ret}();var g=false;this._gi(26,function(){g=b.e(f)},null,false,null,true,false);if(g){if(this._a7!=null){this._a7._gt()}if(d!=null){this._gi(46,d.g.runOn(d),null,false,null,true,false)}}},_hs:function(a){var $self=this;if(this._c2(16777216)){if(a){this._f2();this._ih(16777216,false);var b=this._c2(33554432);this._ih(33554432,true);try{this._ah.ap()}finally{this._ih(33554432,b)}}else{if(this._fu==null||$$t.$dz.l_op_Inequality(this._fu._d,this.activeCell())){this._f2();this._fu=$$6.$w.a($$t.$c.$type,$$t.$dz.$type,new $$t.c(function(){$self._hs(true)},250),this.activeCell())}}}},_hv:function(){if(!this._c2(8)){this._bq.m()}},_hw:function(a){if((this._z&a)!=a){this._ih(a,true);this._hv()}},_h1:function(){var a=this._ec;this._ec=null;var b;if(a!=null){var c=this.activeCell();var d=this.activePane();var e=this.activeTable();var f=this.activeWorksheet();if(function(){var g=a.tryGetValue("ActiveCellChanged",b);b=g.p1;return g.ret}()&&a.remove("ActiveCellChanged")){this._gv(new $$t.fv(b,c))}if(function(){var g=a.tryGetValue("ActivePaneChanged",b);b=g.p1;return g.ret}()&&a.remove("ActivePaneChanged")){this._gw(new $$t.fw(b,d))}if(function(){var g=a.tryGetValue("ActiveTableChanged",b);b=g.p1;return g.ret}()&&a.remove("ActiveTableChanged")){this._gx(new $$t.fx(b,e))}if(function(){var g=a.tryGetValue("ActiveWorksheetChanged",b);b=g.p1;return g.ret}()&&a.remove("ActiveWorksheetChanged")){this._gy(new $$t.fy(b,f))}}},_ic:function(){this._bb.e()},_ig:function($t,a,b,c,d){var $self=this;if(this._a7!=null&&this._a7.activePane()!=null){var e=this._a7.activePane().selection();this._gi(c,function(){$self._a7._io($t,a,b,e.cellRanges(),d,false)},null,false,null,true,false);this._hw(1024)}},_ih:function(a,b){if(b){this._z|=a}else{this._z&=~a}},_ii:function(a,b){if(a==null){return}var c=a._h();if(c==null){return}var d=this.workbook();if(d==null||d!=c.workbook()){return}var e=false;if(c!=null&&c!=this.activeWorksheet()){d.windowOptions().selectedWorksheet(c);e=true;this._i4()}var f=this.activeSelection();if(f!=null){f._resetSelection(a._a,a._g,a._j,b);if(this._a7!=null&&this._a7._bc()==c){if(e){this._v().remeasureRootPanel()}this._a7._f5(null,a._a[a._j])}}},_d3:function(){return $$t.$dy.p(this._bx()._cs())==3},_ij:function(){if(this._a7==null){return}var a=new $$4.x($$t.$ip.$type,0);var b=this._a7._ao();var c=b._ag().activeCell();this._a7._b6(a,b,c.row(),c.row(),c.column(),c.column(),null);if(a.count()>0){this._v().focus();var d=a.__inner[0];$$t.$hc._w(b,d,this._b2());this._d4(this._a5(),d)}else{this._ik()}},_ik:function(){if(this._a7==null){return}if(this._a7._bc().isProtected()){return}var a=this._a7._ao();var b=a._ag().activeCell();this._v().focus();var c=new $$t.ip;c.b=4;c.d=b.row();c.c=b.column();$$t.$hc._w(a,c,this._b2());this._d4(this._a5(),c)},_iq:function(a){var b=this._a7;if(b==null){return}var c=b._q(a);if(c==null){return}this._il(c)},_d6:function(a,b,c){var d=a._getRegionGroup();if(d==null||d.count()==0){b=null;return{ret:false,p1:b}}var e=a._worksheet();var f=-1;var g=new $$4.x($$t.$d1.$type,0);var h=new $$t.dz;switch(c){default:case 0:{var i=a._getLastRegionGroup();for(var j=0;j<d.count();j++){g.add($$t.$ik._extendRangeForMergedCells1(e,$$t.$dy.aa(d.item(j)._h()),null))}f=d.indexOf(i);if(f<0){f=g.count()-1}h=g.__inner[f]._c();break}case 2:{if(e!=this.activeWorksheet()){b=null;return{ret:false,p1:b}}g.addRange(this.activeSelection().cellRanges());for(var k=0;k<d.count();k++){g.add($$t.$ik._extendRangeForMergedCells1(e,$$t.$dy.aa(d.item(k)._h()),null))}f=g.count()-1;h=g.__inner[f]._c();break}case 1:{if(e!=this.activeWorksheet()){b=null;return{ret:false,p1:b}}g.addRange(this.activeSelection().cellRanges());h=this.activeSelection().activeCell();f=this.activeSelection().activeCellRangeIndex();g.__inner[f]=$$t.$ik._getCellRange2(h.row(),h.column(),e);for(var l=0;l<d.count();l++){g.__inner[f]=g.__inner[f].union($$t.$dy.aa(d.item(l)._h()))}g.__inner[f]=$$t.$ik._extendRangeForMergedCells1(e,g.__inner[f],null);break}}if(f<0){f=g.count()-1}b=new $$t.d7(e,g.toArray(),h,f);return{ret:true,p1:b}},_d8:function(a){if(!this.isInEditMode()){return true}switch(a){default:return true;case 0:case 1:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 30:case 31:case 32:case 33:case 34:case 35:case 2:case 3:case 4:case 5:case 38:case 39:case 71:case 72:case 87:case 88:case 85:case 86:case 79:case 81:case 82:case 104:case 103:case 110:case 109:case 101:case 102:case 199:case 200:case 201:return this._d7(true);case 107:case 108:case 106:case 105:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:return true;case 36:case 37:return this._d7(true);case 68:case 69:case 70:return true;case 202:return false;case 198:return true;case 73:case 74:case 151:case 75:case 76:case 77:case 78:case 173:case 172:return true;case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 40:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 83:case 84:case 80:return this._d7(true)}},_d9:function(a){if(a>16384e3){var b=new $$t.kx(29,null,null,null,true);b._c=true;b._d=false;if(this._dz(b)){return false}}return true},_ea:function(a,b,c){if(this._a7!=null&&!this._a7._c8(a,b,c)){return false}return true},_ix:function(){if(this.workbook()==null){throw new $$6.p(1,"The Workbook property cannot be null")}if(this.selectedWorksheets().length!=1){throw new $$6.p(1,"Showing the filter dialog requires one (and one only) selected worksheet.")}},_iy:function(){if(this.workbook()==null){throw new $$6.p(1,"The Workbook property cannot be null")}if(this.selectedWorksheets().length!=1){throw new $$6.p(1,"Showing the filter dialog requires one (and one only) selected worksheet.")}},_iw:function(){if(this.workbook()==null){throw new $$6.p(1,"The Workbook property cannot be null")}if(this.selectedWorksheets().length!=1){throw new $$6.p(1,"Showing the filter dialog requires one (and one only) selected worksheet.")}},_iz:function(){if(this._c2(16)){var a=this.undoManager();this._ih(16,false);var b,c;if(!this.isInEditMode()){b=a!=null&&a.canUndo();c=a!=null&&a.canRedo()}else{c=this._ai().ad();b=this._ai().ae()}if(b!=this._c2(32)||c!=this._c2(64)){this._ih(64,c);this._ih(32,b);this._ih(1,true)}}},_i0:function(){var a=this._bt;if(a==null){return}var b=a.windowOptions().selectedWorksheet();if(b==null){var d=a.worksheets().getEnumerator();while(d.moveNext()){var c=d.current();if(c._w()){b=c;break}}if(b==null){var f=a.worksheets().getEnumerator();while(f.moveNext()){var e=f.current();if(e.displayOptions().visibility()==0){b=e;break}}}if(b==null){b=$$5.$e.af($$a4.$jk.$type,a.worksheets())}if(b!=null){a.windowOptions()._ae(b,true)}}},_i1:function(){var $self=this;var a=this._a7;var b=a;var c=this.workbook();if(c==null||c.worksheets().count()==0){a=null}else{this._i0();var d=c.windowOptions().selectedWorksheet()||$$5.$e.ad($$a4.$jk.$type,c.worksheets());if(a==null||a._bc()!=d){var e=function(){var $ret=new $$t.i8;$ret._afterPaneManagerLayout($self._fw.runOn($self));$ret._l($self.chartAdapter());$ret._s($self.isInEditMode());$ret._visitHyperlinkAction($self._i5.runOn($self));$ret._passwordNeededAction($self._dx.runOn($self));$ret._j($self._v().createRenderCache());$ret._getCellText(function(f){var g=d.rows()._aj(f.row());return g==null?null:g._getCellText1(f.column(),1)});$ret._spreadsheet($self);$ret._usesLogicalPixels($self._v().usesLogicalPixels());return $ret}();a=new $$t.ik(d,function(f){return new $$t.d6($self,f,false)},function(f){return $self._d7(true)},this._dz.runOn(this),this._be,e)}}if(this._a7!=a){if(this._a7!=null){this._a7._hv();this._a7._gj()}this._y=null}var f=$$ak.$m.e($$t.$ik.$type,this._a7,a,this._b0,false);this._a7=f.p0;if(this._a7!=null){this._a7._a6(this._bl());if(this._y!=null&&this._y._h()==null){this._y=null}}if(b!=this._a7){this._t.onSheetManagerChanged(b,this._a7)}var g=this._a7!=null;this._j.m(g?this._a7._panes():new Array(0));this.activePane(g?this._a7.activePane():null);this.activeTable(g?this._a7._activeTable():null);if(b!=this._a7){if(b!=null){b._al._afterPaneManagerLayout(null);b._hh()}this._hw(1|4096|65536|67108864|262144|16777216|1048576);this.a("SheetManager")}},_i2:function(){if(this._eh==null){this._eh=new $$4.x($$t.$dc.$type,0);var a=this.workbook();if(a!=null){var b=a.windowOptions().selectedWorksheet();var d=a.namedReferences().getEnumerator();while(d.moveNext()){var c=d.current();if(c._p()){continue}var e=c._j();if(e==null||e._af()){continue}var f=c._bo(false,null);if(f!=null&&$b($$a4.$aaz.$type,f)!==null){}else{var g=c._bh(f,b);if(g!=null&&g.length==1){this._eh.add(new $$t.dc(1,c,g[0]))}}}this._eh.sort()}}},_i4:function(){var $self=this;this._bq.i();var a=this._c2(8);try{this._ih(8,true);this._be._bd();this._i1();if(this._a7!=null){this._a7._i5()}if(this._a7!=null){this._a7._i3(false)}this._iz();if(this._c2(256)){var b=this._be._activeTab();this.activeWorksheet(b!=null?b._j():null);this._ih(256,false)}if(this._c2(512)){this.selectedWorksheets($$5.$e.a($$a4.$jk.$type,$$5.$e.o($$t.$k2.$type,$$a4.$jk.$type,this._be._j(),function(c){return c._j()})));this._ih(512,false)}if(this._c2(65536)){this._ih(65536,false);this._gp(32768,function(c){$self.zoomLevel(c.displayOptions().magnificationInNormalView())})}if(this._c2(67108864)){this._ih(67108864,false);this.validationInputMessagePosition(this._a7==null?null:this._a7._jh())}if(this._c2(1048576)){this._ih(1048576,false);this._gp(524288,function(c){$self.areGridlinesVisible(c.displayOptions().showGridlines())})}if(this._c2(262144)){this._ih(262144,false);this._gp(131072,function(c){$self.areHeadersVisible(c.displayOptions().showRowAndColumnHeaders())})}if(this._c2(1024)){this._ih(1024,false);this._ab._ai();this._ah.ax()}if(this._c2(8192)){this._ih(8192,false);this._ah.a0()}if(this._c2(4096)){this._ih(4096,false);var c=this.activeSelection();var d=null;if(c!=null){var e=this.workbook();var f=e.windowOptions().selectedWorksheet();if(c.cellRanges().count()==1){var g=$$t.$dy.a0(c.cellRanges().item(0));if(f!=null&&f.tables().count()>0){var i=f.tables().getEnumerator();while(i.moveNext()){var h=i.current();if(h._by()._contains1(g)&&$$a4.$l0._l_op_Equality(g,h.dataAreaRegion()._h())){d=h.name();break}}}if(d==null&&e._cv()){this._i2();var k=this._eh.getEnumerator();while(k.moveNext()){var j=k.current();if($$a4.$l0._l_op_Equality(g,j._b)){d=j._a.name();break}}if(d==null&&$$t.$d1.l_op_Equality(c._r(),c.cellRanges().item(0))){var l=c.activeCell();var n=this._eh.getEnumerator();while(n.moveNext()){var m=n.current();var o=m._b;if(o._isSingleCell()&&o._firstRowIndex()==l.row()&&o._firstColumnIndex()==l.column()){d=m._a.name();break}}}}}if(d==null){var p=c._r()._c();var q=e.cellReferenceMode();var r=q==1;d=function(s,t,u,v,w,x){return $$a4.$zf.u(s,t,u,w,x,-1,-1,false,v)}(p.row(),p.column(),e.currentFormat(),q,r,r)}}this._ft(d);this._aa._q()}this._hs(this._t.updateEditorValueMode()==0);if(this._c2(1)&&this._a3()==null){this._ih(1,false);this._v().notifyCanExecuteChanged()}}finally{this._ih(8,a)}if(this._c2(16384)){this._ih(16384,false);this.isRenamingWorksheet(this._bd()!=null)}if(this._c2(2048)){this._ih(2048,false);this._ia()}if(this._c2(134217728)){if(this._a7==null||!this._a7._isLayoutDirty()){this._ih(134217728,false);this._h1()}}this._t.onStateVerified()},_i5:function(a){var $self=this;var b=new $$t.f8(a);var c=this.workbook()!=null?this.workbook().__gw:null;if(!String.isNullOrEmpty(c)){b.workingDirectory($$7.$b.getDirectoryName(c))}this._he(b);if(b.cancel()==false){var d=null;if(a.targetNamedReference()!=null){var e=a.worksheet().rows().item(0);var f=e._as(0);var g=a.targetNamedReference()._bo(true,f);if(g!=null){var h=this._d6(g,d,0);d=h.p1}else{this._dz(new $$t.kx(22,null,null,a,false))}}else if(a.targetRegion()!=null){var i=a.targetRegion();var j=$$t.$dy.aa(i._h());if(i.worksheet().workbook()==this.workbook()){d=new $$t.d7(i.worksheet(),[j],j._c(),0)}else{this._dz(new $$t.kx(22,null,null,a,false))}}else if($$a4.$j1.l_op_Inequality(a.targetCell(),null)){var k=a.targetCell();if($$a4.$j1.l_op_Inequality(k,null)&&k.worksheet()!=null&&k.worksheet().workbook()==this.workbook()){var l=new $$t.d1(k.rowIndex(),k.columnIndex());d=new $$t.d7(k.worksheet(),[l],l._c(),0)}else{this._dz(new $$t.kx(22,null,null,a,false))}}else if(a.__t){this._dz(new $$t.kx(22,null,null,a,false))}else{var m=a.targetAddress();if(a.isSealed()&&!String.isNullOrEmpty(m)){var n=this.workbook();var o=this.activeWorksheet();var p;var q=function(){var r=n._ar(m,n.cellReferenceMode(),o,null,0,p,true,false);p=r.p5;return r.ret}();if(q!=null){if(p){q=this._br(q,o.rows().item(0),0)}if(q!=null){if(!function(){var r=$self._d6(q,d,0);d=r.p1;return r.ret}()){this._dz(new $$t.kx(22,null,null,a,false))}}}}if(d==null){var r=false;if(!String.isNullOrEmpty(m)){try{this._i6(m,b.workingDirectory());r=true}catch(s){this._dz(function(t,u,v){return new $$t.kx(t,null,v,u,false)}(21,m,s))}}if(r){a._av()}}}if(d!=null){this._ii(d,true);a._av()}}},_i6:function(a,b){var c;if(function(){var d=$$6.$x.tryCreate(a,0,c);c=d.p2;return d.ret}()){if(!c.isAbsoluteUri()){if($$t.$dy.bb(a)){a="mailto:"+a}else if(a.startsWith("www.")){a="http://"+a}else if(a.startsWith("ftp.")){a="ftp://"+a}}}window.open(a,"_blank")},_i7:function(a){var $self=this;this._gi(5,function(){$self._a7._je(a)},null,false,null,true,false)},actionExecuted:null,_gt:function(a){var b=this.actionExecuted;if(null!=b){b(this,a)}},actionExecuting:null,_gu:function(a){var b=this.actionExecuting;if(null!=b){b(this,a)}},_hx:function(a){this._gv(a)},activeCellChanged:null,_gv:function(a){var b=this.activeCellChanged;if(null!=b){b(this,a)}},_hy:function(a){this._gw(a)},activePaneChanged:null,_gw:function(a){var b=this.activePaneChanged;if(null!=b){b(this,a)}},_hz:function(a){this._gx(a)},activeTableChanged:null,_gx:function(a){var b=this.activeTableChanged;if(null!=b){b(this,a)}},_h0:function(a){this._gy(a)},activeWorksheetChanged:null,_gy:function(a){var b=this.activeWorksheetChanged;if(null!=b){b(this,a)}},_g0:function(a,b){var c=this._cellDropDownItemSelecting;if(c!=null){c(this,new $$t.fz(a,b))}},_cellDropDownItemSelecting:null,_h5:function(a){this._g9(a)},editModeExiting:null,_g9:function(a){var b=this.editModeExiting;if(null!=b){b(this,a)}},_h4:function(a){this._g8(a)},editModeExited:null,_g8:function(a){var b=this.editModeExited;if(null!=b){b(this,a)}},_h3:function(a){this._g7(a)},editModeEntering:null,_g7:function(a){var b=this.editModeEntering;if(null!=b){b(this,a)}},_h2:function(a){this._g6(a)},editModeEntered:null,
_g6:function(a){var b=this.editModeEntered;if(null!=b){b(this,a)}},_h6:function(a){this._ha(a)},editModeValidationError:null,_ha:function(a){var b=this.editModeValidationError;if(null!=b){b(this,a)}},_h7:function(a){this._hb(a)},editRangePasswordNeeded:null,_hb:function(a){var b=this.editRangePasswordNeeded;if(null!=b){b(this,a)}},hyperlinkExecuting:null,_he:function(a){var b=this.hyperlinkExecuting;if(null!=b){b(this,a)}},_h8:function(a){this._hi(a)},selectionChanged:null,_hi:function(a){var b=this.selectionChanged;if(null!=b){b(this,a)}},_h9:function(a){this._hk(new $$t.ga(a))},userPromptDisplaying:null,_hk:function(a){var b=this.userPromptDisplaying;if(null!=b){b(this,a)}},_ia:function(){this._ho(new $$t.gb)},workbookDirtied:null,_ho:function(a){var b=this.workbookDirtied;if(null!=b){b(this,a)}},$type:new $.ig.Type("Spreadsheet",$$ak.$s.$type)},true);$c("Spreadsheet_ElementCommandInfo:c7","Object",{a:null,c:0,b:null,init:function(a,b,c){$.ig.$op.init.call(this);this.a=a;this.c=b;this.b=c;a.disposed=$.ig.Delegate.prototype.combine(a.disposed,this.d.runOn(this))},d:function(a,b){var c=this.a;c.disposed=$.ig.Delegate.prototype.remove(c.disposed,this.d.runOn(this));this.b._eg.remove(this)},$type:new $.ig.Type("Spreadsheet_ElementCommandInfo",$.ig.$ot)},true);$c("Spreadsheet_ButtonElementCommandInfo:c8","Spreadsheet_ElementCommandInfo",{init:function(a,b,c){$$t.$c7.init.call(this,a,b,c);var d=this.a;d.click=$.ig.Delegate.prototype.combine(d.click,this.e.runOn(this))},d:function(a,b){var c=this.a;c.click=$.ig.Delegate.prototype.remove(c.click,this.e.runOn(this));$$t.$c7.d.call(this,a,b)},e:function(a,b){this.b.executeCommand(this.c)},$type:new $.ig.Type("Spreadsheet_ButtonElementCommandInfo",$$t.$c7.$type)},true);$c("Spreadsheet_WorkbookOwner:c9","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},isUndoEnabled:function(){return this.a._c2(4)},onCellValueChange:function(a,b){var c=this.a._a7;if(c!=null){c._he(a.worksheet(),a.index(),b)}},onChange$2:function($tContext,$tValue,a,b,c,d,e){if(b&&e.s&&this.a._c2(4)){var f=new $$t.le($tContext,$tValue,a,c,e);this.a._b3.addChange3(f)}this.a._hm($tContext,$tValue,a,e)},onConditionalFormatChange:function(a){var b=this.a._a7;if(b!=null&&b._bc()==a.worksheet()){b._hf(a)}},onCustomViewApplied:function(a){this.a.isFormulaBarVisible(a.windowOptions().showFormulaBar()?true:false)},onTransactionalChangeBegin:function(a,b){if(this.a._c2(4)){if(this.a._b3.currentTransaction()==null){var c=new $$t.lf($$t.$dy.dd(this.a,a,b));this.a._b3.startTransaction1(c);return c}}return null},onTransactionalChangeEnd:function(a){var b=$b($$ak.$ak.$type,a);if(b!=null){b.commit()}},onTransactionalChangeRollback:function(a){var b=$b($$ak.$ak.$type,a);if(b!=null){b.rollback()}},onSheetRemoving:function(a){if(this.a._c2(4)){this.a._f4(a)}},$type:new $.ig.Type("Spreadsheet_WorkbookOwner",$.ig.$ot,[$$a4.$fy.$type])},true);$c("RangeWorksheetCellFormatBase:gw","PropertyChangeNotifierExtended",{_z:false,_o:0,_s:null,_h:0,_t:null,_n:0,_i:0,_m:null,_g:null,_ag:null,_ab:0,_u:null,_j:0,_ad:$m($$0.$aq.$type,null),_v:null,_k:0,_ac:0,_ae:$m($$0.$aq.$type,null),_y:null,_w:null,_l:0,_q:0,_af:$m($$0.$aq.$type,null),init:function(){this._z=true;this._ad=$m($$0.$aq.$type,null);this._ae=$m($$0.$aq.$type,null);this._af=$m($$0.$aq.$type,null);$$ak.$s.init.call(this);this._g=new $$t.gx(this)},alignment:function(a){if(arguments.length===1){this._ak($$a4.$cg.$type,$$t.$dy.eh,a,1);return a}else{this._am();return this._o}},bottomBorderColorInfo:function(a){if(arguments.length===1){this._ak($$a4.$ah.$type,function(b,c){b._setBottomBorderColorInfo(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,2);return a}else{this._am();return this._s}},bottomBorderStyle:function(a){if(arguments.length===1){this._ak($$a4.$by.$type,function(b,c){b._setBottomBorderStyle(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,4);return a}else{this._am();return this._h}},diagonalBorderColorInfo:function(a){if(arguments.length===1){this._ak($$a4.$ah.$type,function(b,c){b._setDiagonalBorderColorInfo(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,8);return a}else{this._am();return this._t}},diagonalBorders:function(a){if(arguments.length===1){this._ak($$a4.$b7.$type,$$t.$dy.ek,a,16);return a}else{this._am();return this._n}},diagonalBorderStyle:function(a){if(arguments.length===1){this._ak($$a4.$by.$type,function(b,c){b._setDiagonalBorderStyle(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,32);return a}else{this._am();return this._i}},fill:function(a){if(arguments.length===1){this._ak($$a4.$ab.$type,$$t.$dy.el,a,64);return a}else{this._am();return this._m}},font:function(){return this._g},formatOptions:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return 63}},formatString:function(a){if(arguments.length===1){this._ak(String,$$t.$dy.ep,a,65536);return a}else{this._am();return this._ag}},indent:function(a){if(arguments.length===1){this._ak($$0.$aw.$type,$$t.$dy.eq,a,131072);return a}else{this._am();return this._ab}},_aa:function(){return this._z},leftBorderColorInfo:function(a){if(arguments.length===1){this._ak($$a4.$ah.$type,function(b,c){b._setLeftBorderColorInfo(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,262144);return a}else{this._am();return this._u}},leftBorderStyle:function(a){if(arguments.length===1){this._ak($$a4.$by.$type,function(b,c){b._setLeftBorderStyle(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,524288);return a}else{this._am();return this._j}},locked:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._locked$i.apply(this,arguments);return a}else{return $s(this._locked$i.apply(this,arguments))}},_locked$i:function(a){if(arguments.length===1){this._ak($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.es,a,1048576);return a}else{this._am();return this._ad}},rightBorderColorInfo:function(a){if(arguments.length===1){this._ak($$a4.$ah.$type,function(b,c){b._setRightBorderColorInfo(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,2097152);return a}else{this._am();return this._v}},rightBorderStyle:function(a){if(arguments.length===1){this._ak($$a4.$by.$type,function(b,c){b._setRightBorderStyle(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,4194304);return a}else{this._am();return this._k}},rotation:function(a){if(arguments.length===1){this._ak($$0.$aw.$type,$$t.$dy.eu,a,8388608);return a}else{this._am();return this._ac}},shrinkToFit:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._shrinkToFit$i.apply(this,arguments);return a}else{return $s(this._shrinkToFit$i.apply(this,arguments))}},_shrinkToFit$i:function(a){if(arguments.length===1){this._ak($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.ev,a,16777216);return a}else{this._am();return this._ae}},style:function(a){if(arguments.length===1){this._ak($$a4.$ja.$type,$$t.$dy.ex,a,33554432);return a}else{this._am();return this._y}},topBorderColorInfo:function(a){if(arguments.length===1){this._ak($$a4.$ah.$type,function(b,c){b._setTopBorderColorInfo(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,67108864);return a}else{this._am();return this._w}},topBorderStyle:function(a){if(arguments.length===1){this._ak($$a4.$by.$type,function(b,c){b._setTopBorderStyle(c,true,$b($$a4.$hd.$type,b._s())!==null?32:0)},a,134217728);return a}else{this._am();return this._l}},verticalAlignment:function(a){if(arguments.length===1){this._ak($$a4.$c7.$type,$$t.$dy.e0,a,268435456);return a}else{this._am();return this._q}},_r:function(){},wrapText:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._wrapText$i.apply(this,arguments);return a}else{return $s(this._wrapText$i.apply(this,arguments))}},_wrapText$i:function(a){if(arguments.length===1){this._ak($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.e1,a,536870912);return a}else{this._am();return this._af}},_setBorders:function(a,b,c){},setFormatting:function(a){this._ak($$a4.$f0.$type,function(b,c){b.setFormatting(c)},a,2147483647)},_ah:function(a){if(this._z==false){this._z=true;if(a){this._ai()}}},_ai:function(){this.a(String.empty())},_p:function(){},_am:function(){if(this._z){this._z=false;var a=this._p()||$$t.$gy._ao;this._al(a)}},_ak:function($t,a,b,c){},_al:function(a){$$ak.$c.z(a,"source");this._o=a.alignment();this._s=a.bottomBorderColorInfo();this._h=a.bottomBorderStyle();this._t=a.diagonalBorderColorInfo();this._n=a.diagonalBorders();this._i=a.diagonalBorderStyle();this._m=a.fill();this._ag=a.formatString();this._ab=a.indent();this._u=a.leftBorderColorInfo();this._j=a.leftBorderStyle();this._ad=a._locked$i();this._v=a.rightBorderColorInfo();this._k=a.rightBorderStyle();this._ac=a.rotation();this._ae=a._shrinkToFit$i();this._y=a.style();this._w=a.topBorderColorInfo();this._l=a.topBorderStyle();this._q=a.verticalAlignment();this._af=a._wrapText$i();this._g._k(a.font())},_an:function(a){return $$t.$oo._l(a,this._r())},_x:function(a){a=$$a4.$k.g1(a);return $$a4.$k.af(a)},$type:new $.ig.Type("RangeWorksheetCellFormatBase",$$ak.$s.$type,[$$a4.$f0.$type])},true);$c("Spreadsheet_SelectionWorksheetCellFormat:db","RangeWorksheetCellFormatBase",{_ao:null,init:function(a){$$t.$gw.init.call(this);$$ak.$c.y(a);this._ao=a},_p:function(){var a=this._ao.activeSelection();if(a!=null){var b=a.activeCell();var c=this._ao._a7;if(c!=null){var d=c._bc().rows()._aj(b.row());return new $$t.os(c._bc()._b4(d,b.column()))}}return null},_setBorders:function(a,b,c){var d=this._ao._a7;if(d==null||d.activePane()==null){return}var e=d.activePane().selection();this._ao._gi(21,function(){d._im(e.cellRanges(),a,b,c)},null,false,null,true,false)},_ak:function($t,a,b,c){var d=10;switch(c){case 536870912:d=9;break;case 128:d=6;break;case 1024:d=7;break;case 4096:d=8;break;case 16384:d=19;break;case 256:case 512:case 2048:case 8192:case 32640:d=19;break;default:if(c!=0){if((c&~32640)==0){d=19}}break}this._ao._ig($t,b,a,d,c)},_r:function(){return this._ao.workbook()},$type:new $.ig.Type("Spreadsheet_SelectionWorksheetCellFormat",$$t.$gw.$type)},true);$c("Spreadsheet_SimpleNamedReference:dc","ValueType",{init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}this._b=new $$a4.l0;$$0.$bh.init.call(this)},_a:null,_b:null,init1:function(a,b,c){this._b=new $$a4.l0;$$0.$bh.init.call(this);this._a=b;this._b=c},compareTo:function(a){return $9(this._a.name(),a._a.name(),1)},$type:new $.ig.Type("Spreadsheet_SimpleNamedReference",$$0.$bh.$type,[$$0.$a.$type.specialize(-1)])},true);$$t.$dc.$type.initSelfReferences();$c("Spreadsheet_NameBoxList:dd","LazyReadOnlyNotifyCollection$1",{_p:null,init:function(a){$$t.$od.init.call(this,String);this._p=a},_o:function(a){a.clear();var b=this._p.workbook();if(b!=null){var c=this._p.activeWorksheet();var e=b.namedReferences().getEnumerator();while(e.moveNext()){var d=e.current();if(d.scope()!=b&&d.scope()!=c){continue}if(d._p()){continue}if(d._bo(false,null)==null){continue}a.add(d.name())}var g=b.worksheets().getEnumerator();while(g.moveNext()){var f=g.current();var i=f.tables().getEnumerator();while(i.moveNext()){var h=i.current();a.add(h.name())}}if(a.count()>1){var j=$b($$4.$x.$type.specialize(String),a)||new $$4.x(String,1,a);j.sort1($$6.$t.currentCultureIgnoreCase);if(j!=a){a.clear();var l=j.getEnumerator();while(l.moveNext()){var k=l.current();a.add(k)}}}}},_q:function(){this._h()},$type:new $.ig.Type("Spreadsheet_NameBoxList",$$t.$od.$type.specialize(String))},true);$c("Spreadsheet_SynchronizationSuspender:de","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);this._a=a;a._iu()},dispose:function(){if(this._a!=null){var a=this._a;this._a=null;a._id(true)}},$type:new $.ig.Type("Spreadsheet_SynchronizationSuspender",$.ig.$ot,[$$0.$au.$type])},true);$c("ISpreadsheetEditInfo:ek","Object",{$type:new $.ig.Type("ISpreadsheetEditInfo",null)},true);$c("Spreadsheet_CustomEditValueParser:df","Object",{a:null,b:null,c:null,e:null,init:function(a,b){$.ig.$op.init.call(this);this.b=a;this.c=b},parseValue:function(a){var $self=this;if(this.a==null){this.a=new $$t.er(this)}this.e=a;var b;var c=function(){var d=$$t.$eq.ad($self.a,$self,false,true,b);b=d.p4;return d.ret}();if(c!=this){if(b!=-1||c!=null&&!(typeof c==="string")){var d=new $$t.dg;d.c=a;d.b=c;d.a=b;return d}}return null},unformattedText:function(){return this.e},editCellFormat:function(){return this.c},createDocument:function(){return null},workbook:function(){return this.b.workbook()},isFixedDecimalEnabled:function(){return this.b.isFixedDecimalEnabled()},fixedDecimalPlaceCount:function(){return this.b.fixedDecimalPlaceCount()},$type:new $.ig.Type("Spreadsheet_CustomEditValueParser",$.ig.$ot,[$$t.$ej.$type,$$t.$ek.$type])},true);$c("Spreadsheet_CustomEditValue:dg","Object",{init:function(){$.ig.$op.init.call(this)},c:null,b:null,a:0,$type:new $.ig.Type("Spreadsheet_CustomEditValue",$.ig.$ot)},true);$c("Spreadsheet_NullView:dh","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},beforeExecuteCommand:function(command,commandParameter,sourceElement){return $s(this._beforeExecuteCommand$i.apply(this,arguments))},_beforeExecuteCommand$i:function(a,b,c){return $$t.$dy.c2},createRenderCache:function(){return new $$t.dl},isCellDropDownOpen:function(){return false},isInNameBox:function(){return false},isScrollLockToggled:function(){return false},updateEditorValueMode:function(){return 1},addCellTextLocations:function(a,b){},closeMenu:function(){},getLayoutManager:function(){return null},onSheetManagerChanged:function(a,b){},remeasureRootPanel:function(){},onNameBoxValueChanged:function(){},onNameBoxWidthChanged:function(){},hasKeyboardFocusWithin:function(){return false},focus:function(){return false},onHasPendingChangeNotification:function(){},onDataObjectPasting:function(a){},notifyCanExecuteChanged:function(){},onStateVerified:function(){},shouldIncludeClipboardFormat:function(a,b){return true},shouldCopyToClipboard:function(a,b){return true},showCellDropDown:function(a,b,c,d,e){b=$.ig.util.rectFromLiteral(b);return false},showSelectAllContextMenu:function(a,b){b=$.ig.util.pointFromLiteral(b)},ShowPaneContextMenu:function(a,b,c){c=$.ig.util.pointFromLiteral(c)},ShowHeaderContextMenu:function(a,b){b=$.ig.util.pointFromLiteral(b)},ShowTabContextMenu:function(a,b){b=$.ig.util.pointFromLiteral(b)},showFilterMenu:function(a,b){return false},createCellEditManager:function(){return new $$t.di(this.a)},createTabEditManager:function(){return new $$t.dj(this.a)},showMessageBox:function(a,b,c,d,e){return e},usesLogicalPixels:function(){return true},verifyLayout:function(){},showFilterDialog:function(a){throw new $$6.q(0)},showTopOrBottomDialog:function(a){throw new $$6.q(0)},showCustomSortDialog:function(a,b){throw new $$6.q(0)},showFormatCellsDialog:function(a,b){throw new $$6.q(0)},spreadsheetDialogServicesManager:function(){throw new $$6.q(0)},getRect:function(scrollRegion){return $.ig.util.rectToLiteral(this._getRect$i.apply(this,arguments))},_getRect$i:function(a){return $$a.$ae.empty()},getPaneRect:function(pane){return $.ig.util.rectToLiteral(this._getPaneRect$i.apply(this,arguments))},_getPaneRect$i:function(a){return $$a.$ae.empty()},getTabItemAreaRect:function(){return $.ig.util.rectToLiteral(this._getTabItemAreaRect$i.apply(this,arguments))},_getTabItemAreaRect$i:function(){return $$a.$ae.empty()},initializeEditFont:function(a,b){},createChartTitleElement:function(a,b){return null},$type:new $.ig.Type("Spreadsheet_NullView",$.ig.$ot,[$$t.$g0.$type])},true);$c("Spreadsheet_NullCellEditManager:di","SpreadsheetCellEditManager",{init:function(a){$$t.$e0.init.call(this,a)},ad:function(){return false},ae:function(){return false},ai:function(){return false},at:function(a,b,c,d){},aq:function(){},ab:function(a){return false},al:function(){return 0},b:function(){return null},ac:function(a){return false},au:function(){},e:function(){return null},ah:function(a,b){return false},ap:function(){},ar:function(){},aw:function(a,b){},a0:function(){},$type:new $.ig.Type("Spreadsheet_NullCellEditManager",$$t.$e0.$type)},true);$c("Spreadsheet_NullTabEditManager:dj","SpreadsheetTabEditManager",{init:function(a){$$t.$e2.init.call(this,a)},i:function(){return false},f:function(a){return false},l:function(){return null},m:function(a,b,c){},n:function(a,b){},k:function(a){return true},o:function(){},$type:new $.ig.Type("Spreadsheet_NullTabEditManager",$$t.$e2.$type)},true);$c("Spreadsheet_NullSpreadsheetText:dk","SpreadsheetText",{init:function(){$$t.$je.init.call(this)},b:function(){return 0},c:function(){return 0},$type:new $.ig.Type("Spreadsheet_NullSpreadsheetText",$$t.$je.$type)},true);$c("SpreadsheetRenderCache:jb","Object",{ak:0,u:null,t:null,f:null,z:0,e:null,s:false,init:function(a){$.ig.$op.init.call(this);this.s=a;this.u=new $$4.h($.ig.$op.$type,$.ig.$op.$type,0);this.t=new $$4.h($.ig.$op.$type,$.ig.$op.$type,0)},q:function(){return this.ak>0},o:function(){},ah:function(a){if(arguments.length===1){if(a!=this.z){this.z=a;this.as()}return a}else{return this.z}},ap:function(){this.ak++},a:function($t,a,b,c){return this.b($t,a?this.u:this.t,b,c!=null?c:$t)},b:function($t,a,b,c){a.item(c,b);return b},p:null,l:0,y:0,v:0,w:0,aj:0,x:0,ab:function(a,b){if(a==null){return 0}return this.aa(a.workbook(),a.displayOptions().magnificationInNormalView(),b)},aa:function(a,b,c){if(a==null){return 0}var d=b/100;var e=a.cellReferenceMode();var f=a.styles().normalStyle()._i();var g=this.p==null?new $$t.oo(f):this.p._d(f);if(this.p!=g||this.l!=e||this.y!=d||this.w!=c){this.p=g;this.l=e;this.y=d;this.aj=-1;this.w=c;var h=e==1?$$t.$ik._fn(0):$$t.$ik._fo(0);var i=this.ac(this.p,this.y,h)*this.y;i+=3*c;i+=c;this.v=i}return this.v},af:function(a,b,c){if(a<100){a=100}if(this.aj!=a){this.aj=a;var d=$$t.$ik._fo(a);var e=this.ae(this.p,this.y,d)*this.y;e+=3*c;e+=c;this.x=e}return this.x},aq:function(){this.p=null;this.y=0;this.aj=-1;this.w=-2147483648;this.t.clear();this.aw();this.ar()},as:function(){if(this.f!=null){var a=this.f;this.f=null;a._h.dispose()}},at:function(){this.ak--;if(this.ak==0){this.au()}},al:function(){return new $$7.e(2,$$6.$g.fromBase64String($$t.$jb.an))},n:function(){if(this.q()){if(this.f==null){var a=this.s?this.ah():1;this.f=new $$t.jd(this.m(a),this.o())}return this.f}else{var b=this.s?this.ah():1;return this.m(b)}},ai:function(){return this.e||(this.e=new $$t.jc(this))},c:function($t,a,b){return this.d($t,a?this.u:this.t,b!=null?b:$t)},d:function($t,a,b){var c;var d=a.tryGetValue(b,c);c=d.p1;return $v($t,c)},am:function(){return new $$7.e(2,$$6.$g.fromBase64String($$t.$jb.ao))},au:function(){this.aw();this.as()},av:function(a){var $self=this;var b;if(function(){var c=$self.u.tryGetValue(a,b);b=c.p1;return c.ret}()){if($b($$0.$au.$type,b)!==null){b.dispose()}this.u.remove(a)}},aw:function(){var a=$$5.$e.a($.ig.$op.$type,this.u.values());this.u.clear();for(var c=0;c<a.length;c++){var b=a[c];var d=$b($$0.$au.$type,b);if(d!=null){d.dispose()}}},ad:function(a,b){},ac:function(a,b,c){},ae:function(a,b,c){},ar:function(){},r:function(a){},m:function(a){},ag:function(a,b){},j:function(a,b,c,d,e,f,g,h){},k:function(a,b,c,d,e,f,g,h){},i:function(a,b,c,d,e,f,g,h){},g:function(a,b,c,d,e,f,g,h,i,j){var k=$$t.$dy.w(a,b,c,f,d,h,j);return this.i(k,d,e,f,g,h,i,j)},h:function(a,b,c,d,e,f,g,h,i,j,k,l){var m=$$t.$dy.w(a,b,e,h,f,j,l);var n=this.i(m,f,g,h,i,j,k,l);var o=$$t.$dy.w(c,d,e,1,f,j,l);var p=this.i(o,f,g,1,i,j,k,l);return new $$t.jf(n,p)},$type:new $.ig.Type("SpreadsheetRenderCache",$.ig.$ot)},true);$c("Spreadsheet_NullRenderCache:dl","SpreadsheetRenderCache",{ay:null,init:function(){$$t.$jb.init.call(this,false);this.ay=new $$a4.n},ad:function(a,b){return 0},ac:function(a,b,c){return 0},ae:function(a,b,c){return 0},ar:function(){},r:function(a){return false},m:function(a){return $$a4.$n._br(this.ay)},j:function(a,b,c,d,e,f,g,h){return new $$t.dk},k:function(a,b,c,d,e,f,g,h){return new $$t.dk},i:function(a,b,c,d,e,f,g,h){return new $$t.dk},ag:function(a,b){return 0},o:function(){return this.ay},$type:new $.ig.Type("Spreadsheet_NullRenderCache",$$t.$jb.$type)},true);$c("SpreadsheetContextMenuOpeningEventArgs:c4","CancelEventArgs",{_c:0,init:function(a){$$6.$ag.init.call(this,0);this._c=a},menuArea:function(){return this._c},$type:new $.ig.Type("SpreadsheetContextMenuOpeningEventArgs",$$6.$ag.$type)},true);$c("JSDataObject:c5","Object",{_c:null,_b:false,init:function(a,b){$.ig.$op.init.call(this);this._c=a;this._b=b},_f:function(a){if(a==$$a.$i.d||a==$$a.$i.c||a==$$a.$i.e){return this._b?"Text":"text/plain"}else if(this._b){return null}else if(a==$$a.$i.b){return"text/html"}else if(a==$$a.$i.a){return"text/csv"}return null},getData:function(a){var b=this._f(a);if(String.isNullOrEmpty(b)){return $$t.$c5._e}try{return this._c.getData(b)}catch(c){return $$t.$c5._d}},getDataPresent:function(a){var b=this._f(a);if(!String.isNullOrEmpty(b)){if(this._c.types){var c=this._c.types.length;for(var d=0;d<c;d++){if(b==this._c.types[d]){return true}}}else if(this._b){try{this._c.getData(b);return true}catch(e){}}}return false},setData:function(a,b){var c=this._f(a);if(!String.isNullOrEmpty(c)){var d;if(b==null){d=null}else if(typeof b==="string"){d=b}else if($b($$0.$dc.$type,b)!==null){d=$$6.$g.toBase64String($$v.$ap.c(b))}else{d=b.toString()}try{this._c.setData(c,d)}catch(e){}}},_a:function(a){var b=a.originalEvent;var c=b.clipboardData;if(c!=null){return new $$t.c5(c,false)}c=window.clipboardData;return c==null?null:new $$t.c5(c,true)},$type:new $.ig.Type("JSDataObject",$.ig.$ot,[$$a.$x.$type])},true);$c("RendererContainer:c6","Object",{_f:null,_a:null,init:function(a){$.ig.$op.init.call(this);this._a=a},dispose:function(){if(!this.isDisposed()){this.isDisposed(true);var a=this._e;if(a!=null&&this.isReady()&&a.parentNode!=this._f){if(a.parentNode!=null){a.parentNode.removeChild(a)}if(this._f!=null){this._f.appendChild(a)}}if(this._a!=null){this._a()}}},_onReady:null,onReady:function(a){if(arguments.length===1){this._onReady=a;return a}else{return this._onReady}},_isDisposed:false,isDisposed:function(a){if(arguments.length===1){this._isDisposed=a;return a}else{return this._isDisposed}},_isReady:false,isReady:function(a){if(arguments.length===1){this._isReady=a;return a}else{return this._isReady}},_container:null,container:function(a){if(arguments.length===1){this._container=a;return a}else{return this._container}},_e:null,containerElement:function(a){if(arguments.length===1){this._e=a;return a}else{return this._e}},initialize:function(a,b){if(a==this.container()&&b==this.containerElement()){return}if(!this.isDisposed()){var c=this._e;if(c!=null&&this.isReady()&&c.parentNode!=this._f){if(c.parentNode!=null){c.parentNode.removeChild(c)}if(this._f!=null){this._f.appendChild(c);this._f=null}}this.isReady(false)}this.container(a);this._e=b;if(!this.isDisposed()&&a!=null){this._f=this._e.parentElement;if(this._e.parentNode!=null){this._e.parentNode.removeChild(this._e)}this.isReady(true);if(this.onReady()!=null){this.onReady()()}}},$type:new $.ig.Type("RendererContainer",$.ig.$ot,[$$0.$au.$type])},true);$c("CustomDOMEventProxy:s","CanvasGestureDOMEventProxy",{init:function(a,b,c){$.ig.CanvasGestureDOMEventProxy.prototype.init.call(this,a,b,c)},__d7:null,ct:function(a){$.ig.CanvasGestureDOMEventProxy.prototype.ct.call(this,a);if(!this.ae()&&a.stopPropagation!=null){a.stopPropagation()}},cu:function(a){if(this.__d7!=null&&this.__d7(a)){return}$.ig.CanvasGestureDOMEventProxy.prototype.cu.call(this,a)},$type:new $.ig.Type("CustomDOMEventProxy",$.ig.CanvasGestureDOMEventProxy.prototype.$type)},true);$c("SpreadsheetDOMEventProxy:dm","CustomDOMEventProxy",{_d8:null,init:function(a,b,c){var $self=this;$$t.$s.init.call(this,b,c,false);this._d8=a;this.__d7=function(d){$self._ed(d);return true};this._an=function(d){var e=$$t.$dy.c4($self._ar);if($self._d9(e)){return false}if($self._d8._di()){return false}if($self._d8._c6()){return false}var f=e.target;if(f!=null&&$self._d8._at().f(f)){return false}if(f!=null&&$$t.$dy.a5($self._d8._bh().d5.cg,f)){return false}return true}},du:function(a,b,c){if(a==this._b3){c.add(this._b3.listen("contextmenu",this._ec.runOn(this)))}$$t.$s.du.call(this,a,b,c)},_d9:function(a){var b=a.target;if(b!=null){var c=b.nodeName;switch(c){case"TEXTAREA":if(!this._d8.isInEditMode()&&this._d8._ay()!=null&&this._d8._ay().a7!=null&&this._d8._ay().a7.rootWrapper().getNativeElement()==b){break}return true;case"INPUT":case"SELECT":case"OPTION":case"LI":case"UL":return true}}return false},_ea:function(a){var b=a.type;return typeof b==="string"&&b.startsWith1("key",3)},_ec:function(a){if(this.ae()){return}var b=a.originalEvent.target;if(this._d8.isInEditMode()){if($$t.$dy.a5(this._d8._ay(),b)||$$t.$dy.a5(this._d8._bh().d5.ci.cf,b)){return}}if(this._d8.isRenamingWorksheet()){var c=this._d8._bf()._p();var d=c!=null?$b($$t.$l6.$type,c._ac()):null;if(d!=null&&d.cm!=null){var e=d.cm.getNativeElement();if(e!=null&&e.contains(b)){return}}}var f;if(a.originalEvent.pointerType===undefined){f=a.button==0}else if(a.originalEvent.pointerType==""){f=$$t.$aa.c||a.button==0}else{f=false}if(f){var g=this._d8.activePane();var h=$$t.$c3._ja(g,this._d8.isInEditMode());if(this._d8.isInEditMode()){var i=this._d8._bh().d5.ci.cf;if($$t.$dy.a5(i,document.activeElement)){this._d8._at().i(5,i,{__x:0,__y:i.av,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},null)}else{this._d8._at().i(4,this._d8._n(g),h,null)}}else{this._d8._v().ShowPaneContextMenu(this._d8.activePane(),$$t.$dy.ab(this._d8.activeSelection()),h)}}else if(this._d8._at().g()){}else{if(this.bq(a)){this.cx(a)}else{this.cw(a)}var j=a.offsetX;var k=a.offsetY;this._d8._bh().dh(this._c2)}a.preventDefault();a.stopPropagation()},_ed:function(a){if(a.originalEvent!=null&&this._d9(a.originalEvent)){return}if(this._d8._di()){return}if(this._d8._at().g()){return}if(this.ae()){return}if(this._d8._v().hasKeyboardFocusWithin()){$$t.$dy.ea(document.activeElement)}else{this._d8._v().focus()}},$type:new $.ig.Type("SpreadsheetDOMEventProxy",$$t.$s.$type)},true);$c("SpreadsheetLayerContainerElement$1:dn","VisualElement",{$t:null,cf:null,init:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$au.init.call(this,a,b)},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a}return a}else{return this.cf}},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);for(var e=0,f=this.a9();e<f;e++){var g=this.b(e);g.al(a,b,c,d)}},ae:function(a){this.cf.q(a);return true},af:function(a){this.cf.r(a);return true},ag:function(a){this.cf.s(a);return true},ad:function(a){return this.cf.l(a)},ah:function(a){this.cf.t(a);return true},$type:new $.ig.Type("SpreadsheetLayerContainerElement$1",$$t.$au.$type)},true);$c("CanvasSpreadsheetGraphics:dr","Object",{e:null,a:null,b:false,h:$m($$a.$ax.$type,null),j:null,d:null,init:function(ctx_,a){this.j=null;$.ig.$op.init.call(this);this.b=ctx_.setLineDash!=null&&ctx_.getLineDash!=null;this.e=ctx_;this.a=a},c:function(a,b,c,d,e,f,g,h,i){var j=false;if(b!=f||c!=g||d!=h||e!=i){var k=this.e;j=true;if(a){k.save()}k.beginPath();k.moveTo(f,g);k.lineTo(f+h,g);k.lineTo(f+h,g+i);k.lineTo(f,g+i);k.lineTo(f,g);k.lineTo(b,c);k.lineTo(b,c+e);k.lineTo(b+d,c+e);k.lineTo(b+d,c);k.lineTo(b,c);k.clip()}return j},drawIcon:function(a,b,c,d,e,f,g,h,i){var j=this.c(true,b,c,d,e,f,g,h,i);var k=this.a.ba();this.e.drawImage(k,(a-1)*16,0,16,16,b,c,d,e);if(j){this.e.restore()}},getFarPixelAdjustment:function(a){return a.d()/2},fillRectangle3:function(a,b,c,d,e){if(a!=$$a4.$ab.noColor()){var f=a._c(this.a.o());var g=$b($$a4.$ac.$type,f);if(g!=null){var h=g.patternStyle();var i=g.patternColorInfo()._getResolvedColor();var j=g.backgroundColorInfo()._getResolvedColor();switch(g.patternStyle()){case 0:break;case 1:this.fillRectangle7(j.colorString(),b,c,d,e);break;default:var k=this.i(g.patternStyle(),i,j);if(k!=null){this.fillRectangle7(k,b,c,d,e)}break}}else{var l=$b($$a4.$ae.$type,f);if(l!=null){var m=this.f(b,c,d,e,l);this.fillRectangle7(m,b,c,d,e)}else{var n=$b($$a4.$af.$type,f);if(n!=null){this.fillRectangle6(n,b,c,d,e)}}}}},fillRectangle1:function(a,b,c,d,e){var f=this.a.bi(a);this.fillRectangle7(f,b,c,d,e)},drawLine:function(a,b,c,d,e,f,g){this.drawLine5(a,this.a.bi(b),c,d,e,f,g)},drawLine2:function(a,b,c,d,e,f,g){b=$$a.$ax.create(b);this.drawLine5(a,b.colorString(),c,d,e,f,g)},drawLine1:function(a,b,c,d,e,f,g){this.drawLine5(a,b._getResolvedColor1(this.a.o()).colorString(),c,d,e,f,g)},drawLine4:function(a,b,c,d,e,f,g){b=$$a.$ax.create(b);this.drawLine5(6,b.colorString(),c*a,d,e,f,g)},drawLine3:function(a,b,c,d,e,f){if(this.j==null||$$a.$ax.e(this.h,a.b())){this.h=a.b();this.j=$$a.$ax.c(a.b(),$m($$a.$ax.$type,null))?this.a.bi(38):a.b().value().colorString()}var g=$$a.$ax.c(a.b(),$m($$a.$ax.$type,null))?6:1;this.drawLine5(g,this.j,b,c,d,e,f)},drawRectangle:function(a,b,c,d,e,f,g){this.drawRectangle2(a,this.a.bi(b),c,d,e,f,g)},drawRectangle1:function(a,b,c,d,e,f,g){this.drawRectangle2(a,b._getResolvedColor1(this.a.o()).colorString(),c,d,e,f,g)},drawRectangle2:function(a,b,c,d,e,f,g){var h=null;var i=0;if(this.b){h=this.e.getLineDash();var j=$$t.$dy.c(a)||new Array(0);this.e.setLineDash(j);i=this.e.lineDashOffset;this.e.lineDashOffset=a==8?1:0}this.e.lineWidth=$$t.$dy.b8(a,c);this.e.strokeStyle=b;this.e.strokeRect(d,e,f,g);if(this.b){this.e.setLineDash(h);this.e.lineDashOffset=i}},fillRectangle2:function(a,b,c,d,e,f,g,h,i){var j=b+d;var k=f+h;var l=c+e;var m=g+i;var n=this.a.bi(a);if(b<f){this.fillRectangle7(n,b,c,f-b,e)}if(j>k){this.fillRectangle7(n,k,c,j-k,e)}if(c<g){this.fillRectangle7(n,f,c,h,g-c)}if(l>m){this.fillRectangle7(n,f,m,h,l-m)}},fillRectangle5:function(a,b,c,d,e){var f=a._getResolvedColor1(this.a.o()).colorString();this.fillRectangle7(f,b,c,d,e)},drawEllipse:function(a,b,c,d,e,f,g){this.e.beginPath();this.e.lineWidth=a*c;this.e.strokeStyle=this.a.bi(b);var h=.5522848;var i=d+f/2;var j=e+g/2;var k=f/2*h;var l=g/2*h;var m=d+f;var n=e+g;this.e.moveTo(d,j);this.e.bezierCurveTo(d,j-l,i-k,e,i,e);this.e.bezierCurveTo(i+k,e,m,j-l,m,j);this.e.bezierCurveTo(m,j+l,i+k,n,i,n);this.e.bezierCurveTo(i-k,n,d,j+l,d,j);this.e.closePath();this.e.stroke()},fillRectangle:function(a,b,c,d,e,f,g){},drawHeaderText:function(a,b,c,d,e,f){f=f!==void 0?f:1;var g=this.a.bi(e);this.e.font=this.a.bd(a,f);this.e.textAlign="center";this.e.textBaseline="middle";this.e.fillStyle=g;this.e.fillText(b,c,d)},drawDropDownGlyph:function(a,b,c,d,e){var f=(a&2)==0?67:70;var g=this.a.bi(f);var h=this.e;h.save();h.translate(b,c);h.scale(Math.min(1,d/15),Math.min(1,e/15));h.fillStyle=g;h.strokeStyle=g;h.beginPath();var i=(a&16)!=0;var j=(a&4)!=0;var k=(a&8)!=0;var l=j||k;if(i){h.moveTo(5,3);h.lineTo(14,3);h.lineTo(11,6);h.lineTo(11,11);h.lineTo(8,11);h.lineTo(8,6);if(l){h.fill();h.beginPath();h.moveTo(3.5,4);h.lineTo(3.5,12);h.stroke();h.beginPath();h.moveTo(2,j?5.5:10.5);h.lineTo(5,j?5.5:10.5);h.stroke()}else{h.moveTo(2,9);h.lineTo(7,9);h.lineTo(4.5,12);h.fill()}}else if(l){h.moveTo(3,9);h.lineTo(8,9);h.lineTo(5.5,12);h.fill();h.beginPath();h.moveTo(10.5,3);h.lineTo(10.5,11);h.stroke();h.beginPath();h.moveTo(9,j?4.5:9.5);h.lineTo(12,j?4.5:9.5);h.stroke()}else{h.moveTo(4,6);h.lineTo(11,6);h.lineTo(7.5,10);h.fill()}h.restore()},i:function(a,b,c){var d=$$t.$dy.bq.item(a);if(d==null){return null}var e=d.getLength(0);var f=d.getLength(1);if(this.d==null){this.d=document.createElement("canvas")}var g=this.d.getContext("2d");this.d.width=f;this.d.height=e;var h=g.createImageData(f,e);var i=h.data;var j=0;for(var k=0;k<e;k++){for(var l=0;l<f;l++){var m=d[k][l]==1?b:c;i[j++]=m.o();i[j++]=m.n();i[j++]=m.m();i[j++]=m.l()}}g.putImageData(h,0,0);return this.e.createPattern(this.d,"repeat")},f:function(a,b,c,d,e){var f=$$t.$dy.cc(e.angle());var g=$$t.$dy.cb(f,c,d);var h=$$t.$dy.b7(g,c,d);var i=c/2+Math.sin(g)*h;var j=d/2+Math.cos(g)*h;var k=c/2+Math.sin(g+Math.PI)*h;var l=d/2+Math.cos(g+Math.PI)*h;var m=e.stops();return this.g(a,b,1,1,i,j,k,l,m)},g:function(a,b,c,d,e,f,g,h,i){var j=a+g*c;var k=b+h*d;var l=a+e*c;var m=b+f*d;var n=this.e.createLinearGradient(j,k,l,m);
for(var o=0;o<i.count();o++){var p=i.item(o);n.addColorStop(p.offset(),p.colorInfo()._color$i().value().colorString())}return n},drawLine5:function(a,b,c,d,e,f,g){this.e.beginPath();var h=null;var i=0;if(this.b){h=this.e.getLineDash();var j=$$t.$dy.c(a)||new Array(0);this.e.setLineDash(j);i=this.e.lineDashOffset;this.e.lineDashOffset=a==8?1:0}this.e.lineWidth=$$t.$dy.b8(a,c);this.e.strokeStyle=b;this.e.moveTo(d,e);this.e.lineTo(f,g);this.e.stroke();if(this.b){this.e.setLineDash(h);this.e.lineDashOffset=i}},fillRectangle7:function(a,b,c,d,e){this.e.fillStyle=a;this.e.fillRect(b,c,d,e)},fillRectangle4:function(a,b,c,d,e,f,g){var h=a._getResolvedColor1(this.a.o()).colorString();var i;if($$a4.$ah.l_op_Equality(a,b)){i=h}else{var j,k,l,m;if(c){j=d;l=d+f;k=m=e+g/2}else{k=e;m=e+g;j=l=d+f/2}var n=this.e.createLinearGradient(j,k,l,m);n.addColorStop(0,h);n.addColorStop(1,b._getResolvedColor1(this.a.o()).colorString());i=n}this.fillRectangle7(i,d,e,f,g)},fillRectangle6:function(a,b,c,d,e){var f=Math.abs(a.bottom()-a.top());var g=Math.abs(a.right()-a.left());var h=a.top();var i=Math.max(h,a.bottom());var j=a.left();var k=Math.max(j,a.right());var l=.01;if(g>0&&f>0){var m=$$5.$e.a($$a4.$ag.$type,$$5.$e.x($$a4.$ag.$type,Number,a.stops(),function(n){return n.offset()}));var n=m[0];var o=new $$a.ax;if(m[1].offset()!=n.offset()){o=$$5.$e.ad($$a4.$ag.$type,$$5.$e.x($$a4.$ag.$type,Number,a.stops(),function(p){return p.offset()})).colorInfo()._getResolvedColor()}else{var p=new $$4.x($$a.$ax.$type,0);for(var q=0,r=m.length;q<r;q++){var s=m[q];if(s.offset()!=n.offset()){break}p.add(s.colorInfo()._getResolvedColor())}var t=$.ig.truncate($$5.$e.ab($$a.$ax.$type,p,function(u){return u.o()})/p.count());var u=$.ig.truncate($$5.$e.ab($$a.$ax.$type,p,function(v){return v.n()})/p.count());var v=$.ig.truncate($$5.$e.ab($$a.$ax.$type,p,function(w){return w.m()})/p.count());o=$$a.$ax.u(255,t,u,v)}this.fillRectangle7(o.colorString(),b+j*d,c+h*e,g*d,f*e)}if(j>0){this.e.beginPath();this.e.moveTo(b,c);this.e.lineTo(b+(j+l)*d,c+h*e);this.e.lineTo(b+(j+l)*d,c+i*e);this.e.lineTo(b,c+e);this.e.closePath();this.e.fillStyle=this.g(b,c,d,e,0,.5,j,.5,a.stops());this.e.fill()}if(h>0){this.e.beginPath();this.e.moveTo(b,c);this.e.lineTo(b+j*d,c+(h+l)*e);this.e.lineTo(b+k*d,c+(h+l)*e);this.e.lineTo(b+d,c);this.e.closePath();this.e.fillStyle=this.g(b,c,d,e,.5,0,.5,h,a.stops());this.e.fill()}if(k<1){this.e.beginPath();this.e.moveTo(b+d,c);this.e.lineTo(b+(k-l)*d,c+h*e);this.e.lineTo(b+(k-l)*d,c+i*e);this.e.lineTo(b+d,c+e);this.e.closePath();this.e.fillStyle=this.g(b,c,d,e,1,.5,k,.5,a.stops());this.e.fill()}if(i<1){this.e.beginPath();this.e.moveTo(b,c+e);this.e.lineTo(b+j*d,c+(i-l)*e);this.e.lineTo(b+k*d,c+(i-l)*e);this.e.lineTo(b+d,c+e);this.e.closePath();this.e.fillStyle=this.g(b,c,d,e,.5,1,.5,i,a.stops());this.e.fill()}},$type:new $.ig.Type("CanvasSpreadsheetGraphics",$.ig.$ot,[$$t.$dq.$type])},true);$c("IVisualElementVisitor:al","Object",{$type:new $.ig.Type("IVisualElementVisitor",null)},true);$c("VisualElementDomBuilder:aa","Object",{init:function(){$.ig.$op.init.call(this)},n:function(){return"ui-tooltip"},m:function(){return"ui-tooltip-body"},o:function(){return"ui-tooltip-title"},createAbsoluteDiv:function(a,b){$$t.$aa.createPlatformElement1(a,"div",b,true,true)},createPlatformElement1:function(a,b,c,d,e){var f=a.__parent.a7;a.a7=$$t.$aa.createPlatformElement(f,b,c,d,e)},createPlatformElement:function(a,b,c,d,e){if(a==null){return null}var f=a.createElement(b);if(c!=null){f.addClass(c)}var g=a.getSubRenderer(f);if(d){f.setRawStyleProperty("position","absolute")}if(e){f.setRawStyleProperty("overflow","hidden")}a.append(f);return g},r:function(a){if(a.a7==null){switch(a.bx){case"TextBox":$$t.$aa.createPlatformElement1(a,"textarea",this.h(a),true,false);a.a7.rootWrapper().listen("input",function(b){var c=b.originalEvent.target;var d=c.value;a.co(d);a.cp()});break;case"ComboBox":{$$t.$aa.createPlatformElement1(a,"select",null,true,false);a.a7.rootWrapper().listen("change",function(b){var c=b.originalEvent.target;var d=c.selectedIndex;a.co(d<0?null:c.options[d].text);a.cq()})}break;case"ToolTip":$$t.$aa.createAbsoluteDiv(a,this.n());$$t.$aa.createPlatformElement1(a.cg,"div",this.o(),false,false);$$t.$aa.createPlatformElement1(a.cf,"div",this.m(),false,false);break;case"ScrollBar":case"ScrollBarFarButton":case"ScrollBarFarTrack":case"ScrollBarNearButton":case"ScrollBarNearTrack":case"ScrollBarThumb":$$t.$aa.createAbsoluteDiv(a,this.g(a));break;default:case"Button":case"RepeatButton":case"ToggleButton":case"Line":$$t.$aa.createAbsoluteDiv(a,null);break}}},g:function(a){return null},h:function(a){return null},s:function(a){if(a.ch()){a.ch(false);var b=a.a7.rootWrapper();this.y(a);if(a.ck()!=null){a.ci(false);var d=a.ck().getEnumerator();while(d.moveNext()){var c=d.current();var e=a.a7.createElement("option");if(c==a.co()){e.setAttribute("selected","true")}e.setText(c);$(e.getNativeElement()).bind("click",function(f){a.co($(this).prop("text"));a.cq()});b.append(e)}}}if(a.ci()){a.ci(false);var f=a.a7.rootWrapper().getNativeElement();if(a.ck()!=null&&a.ck().count()>0&&!String.isNullOrEmpty(a.co())){$(f).val(a.co())}else{$(f).val([])}}},t:function(a){if(a.cg()){a.a7.rootWrapper().setRawStyleProperty("background-color",a.ci())}},u:function(a){if(a.ci()){a.ci(false);var b=String.isNullOrEmpty(a.co())?"":a.co();var c=a.a7.rootWrapper();if(c.getProperty("value")!=b){c.setProperty($$t.$aa.l,b)}}if(a.ch()){a.ch(false);a.a7.rootWrapper().setProperty("rows",a.cl())}},v:function(a){if(a.ck()){a.ck(false);if(a.cl()){a.a7.rootWrapper().removeClass("Off")}else{a.a7.rootWrapper().addClass("Off")}}},w:function(a){if(a.cj()){a.cj(false);a.cf.a7.rootWrapper().setText(function(b){return b!=null?b:""}(a.cq()))}if(a.ck()){a.ck(false);a.cg.a7.rootWrapper().setText(function(b){return b!=null?b:""}(a.cr()))}},x:function(a){var b=a.a7.rootWrapper();if(!a.u()){b.addClass("ui-state-disabled")}else{b.removeClass("ui-state-disabled")}},y:function(a){var b=a.a7.rootWrapper();for(var c=0,d=b.getChildCount();c<d;c++){var e=b.getChildAt(c);$(e.getNativeElement()).unbind("click")}b.removeChildren()},z:function(a){a.a7.rootWrapper().unlistenAll();a.a7.rootWrapper().remove();a.ap=null;a.a7=null},visitElement:function(a){if(a.ab()){if(a.a7!=null){this.z(a)}a.b8();a.bz();return false}else{if(a.a7==null){this.r(a);if(a.x()&&a.a7!=null){a.a7.rootWrapper().addClass("ui-state-default")}if(a.h!=null&&a.a7!=null){var b=a.a7.rootWrapper();b.setRawStyleProperty("margin","0px");b.setRawStyleProperty("padding","0px")}}if(a.a7!=null){var c=a.a7.rootWrapper();if(a.q()){a.q(false);var d=a.ax;var e=a.a2;if(a.__parent!=null){var f=a.__parent.h;if(f!=null){d-=f.a.b;e-=f.a.c}}$$t.$aa.aa(a,"left",d+"px");$$t.$aa.aa(a,"top",e+"px");var g=$.ig.util.isNaN(a.a3)?"auto":a.a3+"px";var h=$.ig.util.isNaN(a.av)?"auto":a.av+"px";$$t.$aa.aa(a,"width",g);$$t.$aa.aa(a,"height",h)}if(a.r()){a.r(false);c.setRawStyleProperty("z-index",a.bu()==0?"auto":a.bu())}if(a.k()){a.k(false);var i=function(j){return j!=null?j:""}(a.bw());c.setRawStyleProperty("cursor",i)}if(a.m()){a.m(false);this.x(a)}if(a.x()){if(a.p()){a.p(false);if(a.y()){c.addClass("ui-state-hover")}else{c.removeClass("ui-state-hover")}}if(a.n()){a.n(false);if(a.s()){c.addClass("ui-state-active")}else{c.removeClass("ui-state-active")}}}switch(a.bx){case"ToolTip":this.w(a);break;case"TextBox":this.u(a);break;case"ToggleButton":this.v(a);break;case"ComboBox":this.s(a);break;case"Line":this.t(a);break}if(a.o()){a.o(false);if(a.ac()){c.show()}else{c.hide()}}}}var j=a.l();a.l(false);a.j(false);return j},aa:function(a,b,c){if(a!=null&&a.a7!=null){if(a.ap==null){a.ap=new $$4.h(String,$.ig.$op.$type,0)}if(a.ap.item(b)!=c){a.ap.item(b,c);a.a7.rootWrapper().setRawStyleProperty(b,c)}}},$type:new $.ig.Type("VisualElementDomBuilder",$.ig.$ot,[$$t.$al.$type])},true);$c("SpreadsheetVisualElementDomBuilder:dt","VisualElementDomBuilder",{ab:null,ac:null,init:function(a){this.ak=new $$4.aa(String);this.aj=null;$$t.$aa.init.call(this);this.ab=a},r:function(a){var $self=this;switch(a.bx){case"TextBox":if(a.__parent!=null&&a.__parent.bx=="FormulaBarTextAreaContainer"){$$t.$aa.r.call(this,a);this.bc(a,"ToolTip_FormulaBarTextEditor");$$t.$dt.a5(a.a7.rootWrapper());this.at(a.a7.rootWrapper());a.a7.rootWrapper().listen("focus",function(b){$self.ab._ai().av()})}break;case"ToggleButton":if(a.__parent!=null&&a.__parent.bx=="FormulaBarTextAreaContainer"){$$t.$aa.createAbsoluteDiv(a,this.ac.formulaBarExpandButton)}break;case"ComboBox":if(this.ag(a)){this.aq(a)}break;case"FormulaBarButtonContainer":$$t.$aa.createAbsoluteDiv(a,this.ac.formulaBarButtonContainer);break;case"FormulaBarNameBoxContainer":this.ar(a);break;case"FormulaBarTextAreaContainer":$$t.$aa.createAbsoluteDiv(a,this.ac.formulaBarTextAreaContainer);break;case"FormulaBarTextBoxSplitter":$$t.$aa.createAbsoluteDiv(a,this.ac.formulaBarTextAreaSplitter);break;case"FormulaBarNameBoxSplitter":$$t.$aa.createAbsoluteDiv(a,this.ac.nameBoxSplitter);break;case"FormulaBarEnterButton":$$t.$aa.createAbsoluteDiv(a,this.ac.formulaBarEnterButton);this.bc(a,"ToolTip_FormulaBarEnterButton");break;case"FormulaBarCancelButton":$$t.$aa.createAbsoluteDiv(a,this.ac.formulaBarCancelButton);this.bc(a,"ToolTip_FormulaBarCancelButton");break;case"FormulaBar":$$t.$aa.createPlatformElement1(a,"div",this.ac.formulaBar,true,false);break;case"InputMessage":$$t.$aa.createAbsoluteDiv(a,this.ac.inputMessage);break;case"InputMessageBody":$$t.$aa.createPlatformElement1(a,"div",this.ac.inputMessageContent,false,false);break;case"InputMessageTitle":$$t.$aa.createPlatformElement1(a,"div",this.ac.inputMessageTitle,false,false);break;case"SelectAllButton":$$t.$aa.createAbsoluteDiv(a,this.ac.selectAll);break;case"PaneSplitter":{var b=a.cf;var c=b==2?this.ac.splitterIntersection:b==0?this.ac.rowSplitter:this.ac.columnSplitter;$$t.$aa.createAbsoluteDiv(a,c);break}case"ColSplitterPreview":$$t.$aa.createAbsoluteDiv(a,this.ac.columnSplitterPreview);break;case"RowSplitterPreview":$$t.$aa.createAbsoluteDiv(a,this.ac.rowSplitterPreview);break;case"TabItemArea":$$t.$aa.createAbsoluteDiv(a,this.ac.tabItemArea);break;case"TabScrollFirst":$$t.$aa.createAbsoluteDiv(a,this.ac.scrollFirstTabButton);break;case"TabScrollPrev":$$t.$aa.createAbsoluteDiv(a,this.ac.scrollPreviousTabButton);break;case"TabScrollNext":$$t.$aa.createAbsoluteDiv(a,this.ac.scrollNextTabButton);break;case"TabScrollLast":$$t.$aa.createAbsoluteDiv(a,this.ac.scrollLastTabButton);break;case"TabActivatePrev":$$t.$aa.createAbsoluteDiv(a,this.ac.activatePreviousHiddenTabButton);break;case"TabItemPanel":$$t.$aa.createAbsoluteDiv(a,null);break;case"TabActivateNext":$$t.$aa.createAbsoluteDiv(a,this.ac.activateNextHiddenTabButton);break;case"AddWorksheetButton":$$t.$aa.createAbsoluteDiv(a,this.ac.addNewWorksheetButton);break;case"TabAreaSplitter":$$t.$aa.createAbsoluteDiv(a,this.ac.tabAreaSplitter);break;case"TabAreaBackground":$$t.$aa.createAbsoluteDiv(a,this.ac.tabAreaBackground);break;case"TabAreaBorder":$$t.$aa.createAbsoluteDiv(a,this.ac.tabAreaBorder);break;case"TabDropIndicator":$$t.$aa.createPlatformElement1(a,"div",this.ac.tabDropIndicator,true,false);break;case"SheetTabItem":$$t.$aa.createAbsoluteDiv(a,this.ac.tabItem);a.cm=$$t.$dt.al(a.a7,this.ac);break;case"SpreadsheetColumnHeaderContainer":$$t.$aa.createAbsoluteDiv(a,this.ac.columnHeaderArea);break;case"SpreadsheetRowHeaderContainer":$$t.$aa.createAbsoluteDiv(a,this.ac.rowHeaderArea);break;case"SpreadsheetPaneContainer":$$t.$aa.createAbsoluteDiv(a,this.ac.paneArea);break;case"SpreadsheetArea":$$t.$aa.createAbsoluteDiv(a,null);break;case"Icon":case"SpreadsheetRenderer":{$$t.$aa.createPlatformElement1(a,"canvas",null,true,false);var d=new $$t.du;d.d=a.a7.get2DCanvasContext(a.a7.rootWrapper());if(a.bx=="Icon"){a.cj=d}else{a.ci=d}break}case"SpreadsheetCellValue":$$t.$aa.createPlatformElement1(a,"div",null,true,false);break;case"SpreadsheetCellValueLayer":$$t.$aa.createPlatformElement1(a,"div",null,true,true);break;case"CellContainer":$$t.$aa.createPlatformElement1(a,"div",null,true,false);break;case"InplaceEditor":$$t.$aa.createPlatformElement1(a,"textarea",null,true,true);this.a6(a);break;case"InplaceBackground":$$t.$aa.createPlatformElement1(a,"div",null,true,true);break;case"InvalidData":$$t.$aa.createPlatformElement1(a,"img",null,true,false);break;case"SpreadsheetDrawingLayer":case"Layer":$$t.$aa.createPlatformElement1(a,"div",null,true,true);break;case"ShapeContainer":case"Shape":case"Chart":$$t.$aa.createPlatformElement1(a,"div",null,true,false);break}$$t.$aa.r.call(this,a)},g:function(a){var b;if(a.bx=="ScrollBar"){b=a.cn}else{b=a.g($$t.$aq.$type).cn}switch(a.bx){case"ScrollBar":return b?this.ac.scrollBarVertical:this.ac.scrollBarHorizontal;case"ScrollBarFarButton":return b?this.ac.scrollBarArrowDown:this.ac.scrollBarArrowRight;case"ScrollBarFarTrack":return b?this.ac.scrollBarTrackDown:this.ac.scrollBarTrackRight;case"ScrollBarNearButton":return b?this.ac.scrollBarArrowUp:this.ac.scrollBarArrowLeft;case"ScrollBarNearTrack":return b?this.ac.scrollBarTrackUp:this.ac.scrollBarTrackLeft;case"ScrollBarThumb":return b?this.ac.scrollBarThumbVertical:this.ac.scrollBarThumbHorizontal}return $$t.$aa.g.call(this,a)},s:function(a){if(this.ag(a)){var b=$(a.a7.rootWrapper().getNativeElement());var c=false;if(a.ch()){a.ch(false);var d=null;if(a.ck()!=null){d=new Array(a.ck().count());a.ck().copyTo(d,0)}var e=b.igCombo("option","dataSource");if(d!=e){if(d!=null&&e!=null){if(d.length!=e.length){c=true}else{for(var f=0;f<d.length;f++){if(d[f]!=e[f]){c=true;break}}}if(c){b.igCombo("option","dataSource",d)}}}}if(a.ci()||c){a.ci(false);var g=document.activeElement;b.igCombo("text",a.co());if(g!=null&&g!=document.activeElement){$$t.$dy.ea(g)}}b.igCombo("option","width",a.a3+"px");b.igCombo("option","height",a.av+"px")}$$t.$aa.s.call(this,a)},v:function(a){if(a.__parent!=null&&a.__parent.bx=="FormulaBarTextAreaContainer"){if(a.ck()){if(a.cl()){a.a7.rootWrapper().addClass(this.ac.formulaBarExpandButtonOpen)}else{a.a7.rootWrapper().removeClass(this.ac.formulaBarExpandButtonOpen)}}}$$t.$aa.v.call(this,a)},bb:function(a,b){var c=a;if(c.cr!=null){var d=c.cr;c.cr=null;$$t.$dt.as(d)}c.disposed=$.ig.Delegate.prototype.remove(c.disposed,this.bb.runOn(this))},x:function(a){if(this.ag(a)){var b=$(a.a7.rootWrapper().getNativeElement());b.igCombo("option","disabled",!a.u());return}else if(a.bx=="Spreadsheet"){return}$$t.$aa.x.call(this,a)},z:function(a){if(this.ag(a)){var b=a;var c=b.cr;b.cr=null;$$t.$dt.as(c);a.disposed=$.ig.Delegate.prototype.remove(a.disposed,this.bb.runOn(this))}$$t.$aa.z.call(this,a)},n:function(){return this.ac.tooltip},m:function(){return this.ac.tooltipBody},o:function(){return this.ac.tooltipTitle},visitElement:function(a){var b=a.j();var c=$$t.$aa.visitElement.call(this,a);if(b&&a.a7!=null){switch(a.bx){case"InputMessage":this.a0(a);break;case"SheetTabItem":this.a4(a);break;case"SpreadsheetRenderer":this.au(a);break;case"SpreadsheetCellValue":this.av(a);break;case"InplaceEditor":this.az(a);break;case"InplaceBackground":this.ay(a);break;case"Icon":this.ax(a);break;case"InvalidData":this.a1(a);break;case"ShapeContainer":this.a2(a);break;case"Shape":this.a3(a);break;case"Chart":this.aw(a,true);break}}return c},ad:function(a){if(arguments.length===1){this.ac=a;return a}else{return this.ac}},ap:function(a){try{var b=$$t.$c5._a(a);if(b!=null&&b.getDataPresent($$a.$i.d)){var c=$$t.$n.e();if(c==null||!c.getDataPresent($$a.$i.d)||c.getData($$a.$i.d)!=b.getData($$a.$i.d)){var d=$$t.$n.d();$$t.$n.b(b,d);$$t.$n.c(d,false)}}}catch(e){}},am:function(a){var b=$(a.rootWrapper().getNativeElement());b.igCombo({filteringType:"none",mode:"editable",autoSelectFirstMatch:false,highlightMatchesMode:null,dropDownAttachedToBody:false,allowCustomValue:true});b.igCombo("option","locale",{dropDownButtonTitle:"",noMatchFoundText:"",clearButtonTitle:"",placeHolder:""});b.igCombo("option","autoComplete",true);return a.rootWrapper()},aq:function(a){var $self=this;$$t.$aa.createPlatformElement1(a,"div",null,true,false);a.cr=$$t.$dt.am(a.a7);var b=$(a.a7.rootWrapper().getNativeElement());var c=function(d,e){if(d.originalEvent.type=="keyup"){return false}return null};b.igCombo("option","dropDownOpening",c);b.igCombo("option","language",this.ab._language());var d=function(e,f){var g=e.originalEvent.target||e.originalEvent.srcElement;if(g.nodeName=="LI"&&$(this).igCombo("isSelected",$(g))){var h=$(this).igCombo("itemsFromElement",$(g));a.co(h==null?null:h.data.text);a.cq()}return true};b.igCombo("option","dropDownClosed",d);a.a7.rootWrapper().listen("keydown",function(e){var f=$.ig.BaseDOMEventProxy.prototype.cz(e);if(f==3){a.co($(a.a7.rootWrapper().getNativeElement()).igCombo("text"));a.cq();e.preventDefault();e.stopPropagation()}else if(f==8){$self.ab._v().focus();e.preventDefault();e.stopPropagation()}});a.disposed=$.ig.Delegate.prototype.combine(a.disposed,this.bb.runOn(this))},ar:function(a){$$t.$aa.createPlatformElement1(a,"div",this.ac.nameBoxContainer,true,false);var b=a.a7.rootWrapper();this.bc(a,"ToolTip_FormulaBarNameBox");b.listen("focusout",function(c){var d=a.g($$t.$ma.$type);var e=c.originalEvent.relatedTarget;if(d!=null&&!b.getNativeElement().contains(e)){a.cf.co(d.d6._ft());a.cf.ci(true)}});b.listen("focusin",function(c){var d=c.originalEvent.relatedTarget;if(!b.getNativeElement().contains(d)){var e=a.cf;var f=$(e.a7.rootWrapper().getNativeElement()).igCombo("textInput");var g=function(h){return h!=null?h:""}(f[0].value);$$t.$dy.bk(f[0],0,g.length)}})},al:function(a,b){var c=a.createElement("div");c.addClass(b.tabItemContent);a.append(c);var d=a.createElement("span");c.append(d);return d},as:function(a){var b=a;var c=$(b.getNativeElement());if(c.data("igCombo")){c.igCombo("destroy")}},ak:null,aj:null,at:function(a){var $self=this;a.listen("keydown",function(b){var c=false;var d=$.ig.BaseDOMEventProxy.prototype.cz(b);if($self.ab.isInEditMode()&&d==3&&b.altKey){var e=b.originalEvent.target;$self.ah(e,"\n");var f=$self.ab._ay();if(f!=null){f.c9(e.value);f.cv(true);f.da()}c=true}else if(!$self.ab.isInEditMode()){switch(d){case 55:case 54:if(b.ctrlKey){if(!$self.ab._cw(d==55,true)){c=true}}break;case 1:if(!b.ctrlKey&&!b.altKey&&!b.shiftKey){var g=b.originalEvent.target;var h=g&&g.value;if(String.isNullOrEmpty(h)){$self.ab._cz(74,null,null);c=true}}break}}if(c){b.preventDefault();b.stopPropagation()}});var b=function(c){var d=c.originalEvent.type;$self.ak.push(d);if($self.aj!=null){$self.aj.add(d)}try{if($self.ab.isInEditMode()){switch(d){case"cut":case"copy":$self.ab._ga();break;case"paste":$self.ap(c);break}}else{switch(d){case"cut":case"copy":var e=$self.ab._i8;$self.ab._i8=$$t.$c5._a(c);try{$self.ab._cz(d=="cut"?148:149,c,null);c.preventDefault()}finally{$self.ab._i8=e}break;case"paste":$self.ap(c);$self.ab._cz(150,c,null);c.preventDefault();break}}}finally{$self.ak.pop()}};a.listen("copy",b);a.listen("cut",b);a.listen("paste",b)},au:function(a){if(a.ch()){var b=a.ci;var c=this.ab._ek();var d=$.ig.truncate(Math.ceil(a.a3*c));var e=$.ig.truncate(Math.ceil(a.av*c));if(d!=b.c){a.a7.rootWrapper().setAttribute("width",d)}if(e!=b.a){a.a7.rootWrapper().setAttribute("height",e)}if(c!=b.b){b.b=c;b.d=a.a7.get2DCanvasContext(a.a7.rootWrapper())}if(c!=1){b.d.save();b.d.scale(c,c)}var f=a.co();b.d.clearRect(f.x(),f.y(),f.width(),f.height());var g=new $$t.dr(b.d,this.ab._a8()._al._j());a.cl(g,$$t.$dt.ae,new $$a.y(0));if(c!=1){b.d.restore()}b.a=e;b.c=d;b.b=c}},a1:function(a){if(a.ch()||a.ci()){a.ch(false);a.ci(false);var b=a.ck();var c=b/2;var d=b/2;var e=a.a3-b;var f=a.av-b;var g=.5522848;var h=c+e/2;var i=d+f/2;var j=e/2*g;var k=f/2*g;var l=c+e;var m=d+f;var n=new $$6.aj(0);n.l('<svg xmlns="http://www.w3.org/2000/svg">');n.l("<path");n.l(' fill="none"');n.l(' stroke="');n.l(a.cm());n.l('"');n.l(' stroke-width="');n.k(b);n.l('"');n.l(' d="');n.l(" M "+c+" "+i);n.l(" C "+c+" "+(i-k)+", "+(h-j)+" "+d+", "+h+" "+d);n.l(" C "+(h+j)+" "+d+", "+l+" "+(i-k)+", "+l+" "+i);n.l(" C "+l+" "+(i+k)+", "+(h+j)+" "+m+", "+h+" "+m);n.l(" C "+(h-j)+" "+m+", "+c+" "+(i+k)+", "+c+" "+i);n.l('" />');n.l("</svg>");a.a7.rootWrapper().setAttribute("src",$$t.$dy.c9("image/svg+xml",n.toString(),true))}},a4:function(a){var b=a.a7.rootWrapper();if(a.ch()){a.ch(false);a.cm.setText(function(c){return c!=null?c:""}(a.cf._name()))}if(a.ck()){a.ck(false);if(a.cf._isSelected()){b.addClass(this.ac.tabItemSelected)}else{b.removeClass(this.ac.tabItemSelected)}}if(a.ci()){a.ci(false);if(a.cf._isActive()){b.addClass(this.ac.tabItemActive)}else{b.removeClass(this.ac.tabItemActive)}}if(a.cj()){a.cj(false);if(a.cf._isProtected()){b.addClass(this.ac.tabItemProtected)}else{b.removeClass(this.ac.tabItemProtected)}}if(a.cg()){a.cg(false);var c="";if($$a4.$ah.l_op_Equality(a.cf._h(),null)){b.removeClass(this.ac.tabItemLight);b.removeClass(this.ac.tabItemDark)}else{var d=a.cf._color();c=d.colorString();var e=$$t.$dy.b2(d);var f=1.05/(e+.05);var g=(e+.05)/.05;var h=g>f?this.ac.tabItemLight:this.ac.tabItemDark;b.addClass(h)}b.setRawStyleProperty("color",c)}},a0:function(a){if(a.ch){a.ch=false;a.cg.a7.rootWrapper().setText(a.cl!=null?a.cl:"");a.cf.a7.rootWrapper().setText(a.ck!=null?a.ck:"");var b=a.cj;var c=a.ci;var d=a.a7.rootWrapper();d.setRawStyleProperty("width","auto");d.setRawStyleProperty("height","auto");a.cj=d.getProperty("clientWidth");a.ci=d.getProperty("clientHeight");if(b!=a.cj||c!=a.ci){a.a3=a.cj;a.av=a.ci;if($$a.$y.l_op_Equality(this.ab.validationInputMessagePosition(),null)){this.ab.scheduleArrange()}}}},av:function(a){if(a.cj()){a.cj(false);var b=a.cg();var c=a.ch.columnScrollRegion();var d=c._bx();var e=b.c;var f=a.a3;var g=a.av;var h=e.c()*d;var i=e.b()*d;var j=1;var k;var l="0% 0%";if(b.s()&&(h>f||i>g)){var m=f/h;var n=g/i;j=Math.min(m,n);k="scale("+j+","+j+")"}else{k="none"}if(j<1){h*=j;i*=j}var o,p;var q=0;switch(b.f){default:case 0:o=0;p=g;break;case 2:q=g-i;o=Math.max(0,i-g);p=Math.max(g,i);break;case 3:case 4:case 1:q=g/2-i/2;var r=Math.max(0,i/2-g/2);o=r;p=Math.max(g,i-r);break}var s=0;var t=h;var u=false;switch(b.e){case 0:case 1:break;case 5:case 7:t=f;break;case 3:s=f-h;break;case 2:case 6:s=f/2-h/2;break;case 4:u=true;break}var v;if(b.i()||$l(b.al,null)||$l(b.am,null)||h>f){var w=!$k(b.am)?b.am.value():b.ae;var x=!$k(b.al)?b.al.value():b.ad;if(w==x&&o==0&&p==g&&s==0){v="rect(auto, auto, auto, auto)"}else{var y=w==b.ab?0:c._bn(w,true,true)-c._bn(b.ab,true,true);var z=c._bn(x,false,true)-c._bn(b.ab,true,true);var aa=a.ch.rowScrollRegion();p=aa._bn(b.ag,false,true)-aa._bn(b.ak,true,true);v="rect("+0+"px, "+z*d+"px, "+(p*d-b.v)+"px, "+y*d+"px)"}}else{v="auto"}var ab=f-h;var ac=e.g;var ad=ac!=a.cv||u!=a.ck||u&&(ab!=a.cr||q!=a.cp);a.ck=u;a.cr=ab;var ae=a.a7.rootWrapper();if(ad){ae.setProperty("innerHTML",ac);a.cv=ac}var af=b.ar.colorString();var ag=t;var ah=i;var ai=ad||a.cu!=k||a.cp!=q||a.co!=s||a.ct!=af||a.cq!=ag||a.cn!=ah;if(ai){var aj=ae.getChildAt(0);if(ad||a.cu!=k){aj.setRawStyleProperty("transform",k);a.cu=k;aj.setRawStyleProperty("transformOrigin",l)}if(ad||q!=a.cp){a.cp=q;aj.setRawStyleProperty("top",a.cp+"px")}if(ad||s!=a.co){a.co=s;aj.setRawStyleProperty("left",s+"px")}if(u&&ad){var ak=h;var al=f-h;while(al>h){var am=aj.clone();am.setRawStyleProperty("left",ak+"px");am.setRawStyleProperty("top",q+"px");ae.append(am);ak+=h;al-=h}}if(ad||af!=a.ct){a.ct=af;aj.setRawStyleProperty("color",af)}if(ad||ag!=a.cq){a.cq=ag;if(e.d){aj.setRawStyleProperty("width","100%")}else{aj.setRawStyleProperty("width",ag+"px")}}if(ad||ah!=a.cn){a.cn=ah;aj.setRawStyleProperty("height",ah+"px")}}if(v!=a.cs){a.cs=v;ae.setRawStyleProperty("clip",v)}if(f!=a.cm){a.cm=f;ae.setRawStyleProperty("width",f+"px")}if(g!=a.cl){a.cl=g;ae.setRawStyleProperty("height",g+"px")}}},ax:function(a){if(a.ci()){a.ci(false);var b=a.cj;var c=$.ig.truncate(Math.ceil(a.a3));var d=$.ig.truncate(Math.ceil(a.av));if(c!=b.c){a.a7.rootWrapper().setAttribute("width",c)}if(d!=b.a){a.a7.rootWrapper().setAttribute("height",d)}b.d.clearRect(0,0,b.c,b.a);var e=this.ab._a0().t();b.d.drawImage(e,(a.cg()-1)*16,0,16,16,0,0,c,d);b.a=d;b.c=c}},ay:function(a){var b=a.a7.rootWrapper();if(a.ck()){a.ck(false);var c;if($$a.$ae.l_op_Equality(a.cn(),null)){c="auto"}else if(a.cn().isEmpty()){c="rect(0px, 0px, 0px, 0px)"}else{var d=a.cn();c="rect("+(d.top()-a.a2)+"px, "+(d.right()-a.ax)+"px, "+(d.bottom()-a.a2)+"px, "+(d.left()-a.ax)+"px)"}b.setRawStyleProperty("clip",c)}if(a.cj()){a.cj(false);var e="transparent";var f=a.cg();var g=true;if($$t.$dy.bc(f)){}else if($b($$a4.$ac.$type,f)!==null&&f.patternStyle()==1){e=f.backgroundColorInfo()._getResolvedColor().colorString()}else if($b($$a4.$ae.$type,f)!==null){var h=f;var i=$$t.$dy.cc(h.angle());var j=$$t.$dy.cb(i,a.a3,a.av);e="linear-gradient("+(180-$$a4.$aa.g(j*180/Math.PI,2))+"deg";var l=h.stops().getEnumerator();while(l.moveNext()){var k=l.current();e+=", "+k.colorInfo()._color$i().value().colorString()+" "+k.offset()*100+"%"}e+=")"}else{if(a.cl==null){var m=a.a7;var n=a.cl=m.createElement("canvas");n.setRawStyleProperty("position","absolute");m.append(n)}var o=this.ab._ek();var p=$.ig.truncate(Math.ceil(a.a3*o));var q=$.ig.truncate(Math.ceil(a.av*o));a.cl.setAttribute("width",p);a.cl.setAttribute("height",q);a.cl.setRawStyleProperty("width",a.a3+"px");a.cl.setRawStyleProperty("height",a.av+"px");var r=a.a7.get2DCanvasContext(a.cl);if(o!=1){r.save();r.scale(o,o)}r.clearRect(0,0,a.a3,a.av);var s=new $$t.dr(r,this.ab._a8()._al._j());s.fillRectangle3(f,0,0,a.a3,a.av);if(o!=1){r.restore()}g=false}if(g&&a.cl!=null){var t=a.cl;a.cl=null;t.remove()}b.setRawStyleProperty("background",e)}},az:function(a){var b=a.a7.rootWrapper();if(a.cw()){a.cw(false);var c;if(!a.c3()){c="rect(0px, 0px, 0px, 0px)"}else if($$a.$ae.l_op_Equality(a.de(),null)){c="auto"}else if(a.de().isEmpty()){c="rect(0px, 0px, 0px, 0px)"}else{var d=a.de();c="rect("+(d.top()-a.a2)+"px, "+(d.right()-a.ax)+"px, "+(d.bottom()-a.a2)+"px, "+(d.left()-a.ax)+"px)"}b.setRawStyleProperty("clip",c)}if(a.cv()){a.cv(false);var e=function(f){return f!=null?f:""}(a.c9());if(b.getProperty("value")!=e){if(a.c3()){b.setProperty($$t.$aa.l,e)}else{b.setProperty("value",e)}}if(!a.c3()){var f=b.getNativeElement();var g=f.selectionStart;var h=f.selectionEnd;if(g!=0||h!=e.length){$$t.$dy.bk(f,0,e.length)}}}if(a.c4()){a.c4(false);b.setRawStyleProperty("opacity",a.c3()?1:0);if(!a.c3()){b.setRawStyleProperty("clip","rect(0px, 0px, 0px, 0px)");$$t.$dy.bk(b.getNativeElement(),0,a.c9()==null?0:a.c9().length)}}if(a.cy()){a.cy(false);b.setRawStyleProperty("color",a.dc().colorString())}if(a.cx()||a.c2()){a.cx(false);a.c2(false);$$t.$dt.a8(b,a.ci(),a.c6())}if(a.cz()){a.cz(false);var i;switch(a.cg()){case 3:i="right";break;default:case 1:case 4:case 5:i="left";break;case 2:case 6:case 7:i="center";break}b.setRawStyleProperty("text-align",i)}if(a.c0()){a.c0(false);$$t.$dt.a9(b,a.dg())}},a9:function(a,b){if(b!=null){a.setRawStyleProperty("padding-left",b._c+"px");a.setRawStyleProperty("padding-top",b._e+"px");a.setRawStyleProperty("padding-right",b._d+"px");a.setRawStyleProperty("padding-bottom",b._b+"px")}},a8:function(a,b,c){if(b!=null){var d=b.height()/20*c;switch(b.superscriptSubscriptStyle()){case 2:case 1:d*=.66;break}a.setRawStyleProperty("font-family",'"'+b.name()+'", sans-serif');a.setRawStyleProperty("font-size",d+"pt");a.setRawStyleProperty("font-weight",$j(b._bold$i(),true)?"bold":"normal");a.setRawStyleProperty("font-style",$j(b._italic$i(),true)?"italic":"normal");var e=$j(b._strikeout$i(),true);var f="none";switch(b.underlineStyle()){case 2:case 1:if(e){f="line-through underline"}else{f="underline"}break;default:if(e){f="line-through"}break}a.setRawStyleProperty("text-decoration",f)}},aw:function(a,b){var $self=this;var c=a.cg();var d=false;if(a.ci()){a.ci(false)}if(c.m()==null){if(c._a==null||c._g||c._h){if(b){c.m(a.cn.queueExpensiveOperation(function(){c.m(null);if(!a.ab()){$self.aw(a,false)}}))}else{d=true;if(c._a==null){a.cs();var e=a.cn.spreadsheetOwnerState()._spreadsheet();c._a=a.cp._a(c.d,e);c._g=c._h=false}else{c.q()}}}if(!b&&c._a!=null&&c._a.g()!=null&&a.cq==null){a.cq=$$t.$aa.createPlatformElement(a.a7,"div",null,true,true);var f=a.cq.rootWrapper();f.setRawStyleProperty("height","100%");f.setRawStyleProperty("width","100%");var g=a.cq.getWrapper(c._a.g());$$t.$dy.ej(g);f.append(g);var h=a.cq.createElement("div");$$t.$dy.ej(h);f.append(h);d=true}if(d&&a.cq!=null){var i=c.d;var j=i.chartArea()!=null&&i.chartArea().roundedCorners();var k=j?12:0;var l=a.ck();var m=$$t.$dy.ak(i);var n=$$t.$dy.aj(i);var o=a.cq.rootWrapper();var p=this.ab.workbook();var q=o.getChildAt(0);q.setRawStyleProperty("margin",l+"px");q.setRawStyleProperty("border-radius",k+"px");q.setRawStyleProperty("background",$$t.$dy.c8(m,p));var r=o.getChildAt(1);$$t.$dy.eb(r,l,n,k,p)}}var s=c._a==null;var t=a.cr!=null;if(s!=t){if(s){a.cr=$$t.$aa.createPlatformElement(a.a7,"div",null,false,true);var u=a.cr.rootWrapper();u.setRawStyleProperty("background-color",$$t.$jb.ax.colorString());u.setRawStyleProperty("background-image","url('data:image/png;base64,"+$$t.$jb.an+"')");u.setRawStyleProperty("background-size","contain");u.setRawStyleProperty("background-position","center");u.setRawStyleProperty("background-repeat","no-repeat");u.setRawStyleProperty("-ms-interpolation-mode","nearest-neighbor");u.setRawStyleProperty("image-rendering","pixelated");u.setRawStyleProperty("height","100%");u.setRawStyleProperty("width","100%")}else{var v=a.cr;a.cr=null;v.rootWrapper().remove()}}},a2:function(a){if(a.ci()){var b=a.a7.rootWrapper();b.setRawStyleProperty("transform","scale("+a.ck()+", "+a.ck()+")");b.setRawStyleProperty("transform-origin","0 0")}},a3:function(a){if(a.ci()){a.ci(false);if(a.cn==null){var b=a.a7;a.cn=$$t.$aa.createPlatformElement(a.a7,"div",null,true,false)}var c=a.cg();var d=c._t;var e=c._u;var f=a.ck();var g=new $$6.aj(0);g.l('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow:visible;width:100%;height:100%;">');var h=$$t.$dy.cf(g,Math.max(e.width(),f*2+1),Math.max(e.height(),f*2+1),f,f,1,c.d);g.l("</svg>");a.cn.rootWrapper().setProperty("innerHTML",g.toString());var i=(d.width()-e.width())/2;var j=(d.height()-e.height())/2;a.cn.rootWrapper().setRawStyleProperty("left",i-0+"px");a.cn.rootWrapper().setRawStyleProperty("top",j-0+"px");a.cn.rootWrapper().setRawStyleProperty("width",e.width()+f*2+"px");a.cn.rootWrapper().setRawStyleProperty("height",e.height()+f*2+"px");var k="";if(c._k%360!=0){k+="rotate("+c._k+"deg) "}if(c._f||c._e){k+="scale("+(c._e?-1:1)+", "+(c._f?-1:1)+") "}if(k.length==0){k="none"}a.a7.rootWrapper().setRawStyleProperty("transform",c._k%360!=0?"rotate("+c._k+"deg)":"none");a.cn.rootWrapper().setRawStyleProperty("transform",c._f||c._e?"scale("+(c._e?-1:1)+", "+(c._f?-1:1)+")":"none");var l=null;if(h.width()>0&&h.height()>0){var m=$b($$a4.$nb.$type,c.d);if(m!=null&&m._d0()){var n="position:absolute;";n+="width:"+h.width()+"px;";switch(m.text().verticalAlignment()){default:case 2:n+="top:0;";break;case 0:n+="bottom:0;";break;case 1:n+="top:50%;transform:translateY(-50%);";break}var o=$$t.$dy.s(m.text(),false);l=$$t.$dw.be(o,this.ab.workbook(),1,true,h.width(),n)}}if(String.isNullOrEmpty(l)){if(a.co!=null){a.co.rootWrapper().remove();a.co=null}}else{if(a.co==null){a.co=$$t.$aa.createPlatformElement(a.a7,"div",null,true,false)}if(c._f||c._e){h=$$t.$kp.q(h,new $$a.ae(0,0,0,e.width(),e.height()),c._e,c._f)}var p="";if(c._f){p+="scale(-1, -1) "}if(p.length==0){p="none"}var q=a.co.rootWrapper();q.setProperty("innerHTML",l);q.setRawStyleProperty("transform",p);q.setRawStyleProperty("left",i+h.left()+"px");q.setRawStyleProperty("top",j+h.top()+"px");q.setRawStyleProperty("width",h.width()+"px");q.setRawStyleProperty("height",h.height()+"px");var r=$$t.$dy.cd==null||!$$t.$dy.cd(c.d.text());q.setRawStyleProperty("clip",r?"rect(auto, auto, auto, auto)":"auto");q.setRawStyleProperty("clip-path",r?"inset(0 0 0 0)":"none")}}},a5:function(a){a.setAttribute("spellcheck",false)},a7:function(a){a.setAttribute("spellcheck",false);a.setRawStyleProperty("resize","none");a.setRawStyleProperty("border","none");
a.setRawStyleProperty("outline","none");a.setRawStyleProperty("max-width","none");a.setRawStyleProperty("max-height","none");a.setRawStyleProperty("background-color","transparent");a.setRawStyleProperty("box-sizing","border-box");a.setRawStyleProperty("margin",0);a.setRawStyleProperty("padding",0)},a6:function(a){var $self=this;var b=a.a7.rootWrapper();$$t.$dt.a7(b);b.setAttribute("id","SpreadsheetInplaceEditor");this.at(b);b.listen("input",function(c){var d=c.originalEvent;var e=d.inputType;if(e!=null&&!$self.ab.isInEditMode()&&(e=="historyUndo"||e=="historyRedo")){a.cv(true);return}var f=c.originalEvent.target;var g=f.value;a.c9(g);if(!$$t.$dy.a5(a,document.activeElement)){return}$self.ab._ds(true);if(!a.c3()){if(!$self.ab._d2(g,String.isNullOrEmpty(g))||!$self.ab.isInEditMode()){a.cv(true)}}a.da()})},ba:function(a,b){if(a!=null){a.setText(b!=null?b:"")}},af:function(a){var b=$$t.$dy.dh(a);return b!=null&&this.ak.contains(b)},ag:function(a){return a!=null&&a.bx=="ComboBox"&&a.__parent!=null&&a.__parent.bx=="FormulaBarNameBoxContainer"},bc:function(a,b){var c=a.a7.rootWrapper();c.setAttribute("title",this.ab._fs(b,[]));c.setAttribute("data-localeid",b);c.setAttribute("data-localeattr","title")},ai:function(a){var b=this.ab._m();return b!=null&&this.ah(b.a7.rootWrapper().getNativeElement(),a)},ah:function(a,b){if(a!=null){var c=b==null?"":b;var d=!$$t.$aa.b&&a==document.activeElement&&document.queryCommandSupported("insertText");if(d&&c.length>0&&c.charAt(c.length-1)=="\n"){d=false}if(d){document.execCommand("insertText",false,c)}else{var e=a.value;var f=a.selectionStart;var g=a.selectionEnd;var h=e.substring(0,f)+c+e.substr(g);a[$$t.$aa.l]=h;$$t.$dy.bk(a,g+c.length,g+c.length)}return true}return false},$type:new $.ig.Type("SpreadsheetVisualElementDomBuilder",$$t.$aa.$type)},true);$c("SpreadsheetVisualElementDomBuilder_CanvasCache:du","Object",{init:function(){this.b=1;$.ig.$op.init.call(this)},d:null,c:0,a:0,b:0,$type:new $.ig.Type("SpreadsheetVisualElementDomBuilder_CanvasCache",$.ig.$ot)},true);$c("SpreadsheetMetricsCache:dv","Object",{init:function(){this.ap=new $$a.af;this.al=new $$a.af;this.am=new $$a.af;this.ao=new $$a.af;this.an=new $$a.af;$.ig.$op.init.call(this)},x:0,y:0,v:0,t:0,w:0,u:0,z:0,aa:0,r:0,s:0,e:null,d:null,q:0,p:0,ak:0,aj:0,ac:0,ab:0,ae:0,ad:0,ai:0,ah:0,ag:0,af:0,i:0,h:0,g:0,f:0,k:0,j:0,ap:null,al:null,am:null,ao:null,an:null,m:0,n:0,o:0,b:null,c:null,a:null,l:0,$type:new $.ig.Type("SpreadsheetMetricsCache",$.ig.$ot)},true);$c("JsSpreadsheetRenderCache:dw","SpreadsheetRenderCache",{a3:null,a9:null,bb:null,ay:null,a6:null,a5:null,a4:null,a7:null,init:function(a){$$t.$jb.init.call(this,true);this.a3=a;this.a6=new $$a4.o(null,0);this.a6._dk();this.a5=new $$t.or(this.a6);this.a4=new $$t.op(null,this.a6);this.a7=new $.ig.LRUCache$2(String,$$t.$b8.$type,0,250)},o:function(){return this.a3.workbook()},ac:function(a,b,c){var d=this.bd(a,b);return this.a3._a0().h("font:"+d,d)/b},ae:function(a,b,c){var d=b;var e=this.bc();e.font=this.bd(a,d);var f=e.measureText(c);return Math.ceil(f.width/d)},ad:function(a,b){return this.ae(a._af(),a._bx(),b)},ar:function(){this.ay=null;this.a7.i()},r:function(a){if(this.a3._a0()==null){return false}if(this.ay==null){this.ay=this.az()}return $.ig.BrushUtilCore.prototype.a(this.ay[a])},m:function(a){var b=this.a3.workbook();return new $$a4.q(b,a)},ag:function(a,b){var c=this.c($$a4.$ic.$type,true,null)||this.a($$a4.$ic.$type,true,this.m(1),null);return c._getUnderlineHeight(a)},j:function(a,b,c,d,e,f,g,h){var i=a.unformattedString();var j="";var l=a.getFormattingRuns().getEnumerator();while(l.moveNext()){var k=l.current();this.a4._c(k,b);var m=i.substr(k.startIndex(),k.length());if(!e){m=$5(m,"\r\n"," ")}j+=$$t.$dw.bj(this.a4,m,g,true,this.o(),null)}this.a4._c(null,this.a6);this.a5._b(b);var n=$$t.$dw.bf(this.a5,g);this.a5._b(this.a6);return this.a1(c,d,e,j,g,null,i,n,null)},i:function(a,b,c,d,e,f,g,h){c*=g;var i=$$t.$dw.be(a,this.o(),g,e,c,"");var j=this.a2(i,c,g);return j},k:function(a,b,c,d,e,f,g,h){if(a!=null&&a.length>0&&a.charCodeAt(a.length-1)==10){a+=" "}this.a5._b(b);var i=$$t.$dw.bf(this.a5,g);var j=$$t.$dw.bj(this.a5,a,g,false,this.o(),null);var k=this.a1(c,d,e,j,g,this.a5,a,i,null);this.a5._b(this.a6);return k},g:function(a,b,c,d,e,f,g,h,i,j){return this.a0(a,b,c,d,e,f,g,h,i,j,null)},a0:function(a,b,c,d,e,f,g,h,i,j,k){var l=a.length;var m=-1;var n=0;var o="";this.a5._b(d);for(var p=0;p<l;p++){if(a.charAt(p)!=b.charAt(p)){if(m<0){if(p>0){o+=$$t.$dw.bj(this.a5,a.substr(n,p-n),i,false,c,null)}m=p}}else if(m>=0){n=p;o+=$$t.$dw.bj(this.a5,a.substr(m,p-m),i,true,c,"transparent");m=-1}}if(m>=0){o+=$$t.$dw.bj(this.a5,a.substr(m,l-m),i,true,c,"transparent")}else{o+=$$t.$dw.bj(this.a5,a.substr(n,l-n),i,false,c,null)}this.a5._b(d);var q=$$t.$dw.bf(this.a5,i);var r=this.a1(e,f,g,o,i,this.a5,a,q,k);this.a5._b(this.a6);return r},h:function(a,b,c,d,e,f,g,h,i,j,k,l){var m=this.a0(a,b,e,f,g,h,i,j,k,l,"width:100%;display:table-cell;");var n=this.a0(c,d,e,f,g,1,i,j,k,l,"width:auto;display:table-cell;");var o=new $$t.b8;o.f=m.f+n.f;o.e=Math.max(m.e,n.e);o.g="<div style='display:table;width:100%'>"+m.g+n.g+"</div>";o.d=true;return o},bh:function(a,b,c,d,e){if(!String.isNullOrEmpty(e)){a+="font:"+e+";"}switch(b){case 0:case 5:a+="text-align: left;";break;case 1:a+="text-align: right;";break;case 2:a+="text-align: center;";break;case 3:a+="text-align: justify;";break;case 4:a+="text-align: justify;";break}if(c){if(!$.ig.util.isNaN(d)){a+="max-width:"+d+"px;"}a+="overflow-wrap:break-word;word-wrap:break-word;";if(b==3||b==4){a+="white-space:pre-line;"}else{a+="white-space:pre-wrap;"}}else{a+="white-space:pre;"}return a},a1:function(a,b,c,d,e,f,g,h,i){a*=e;if(i==null){i="position:absolute;"}var j=$$t.$dw.bh(i,b,c,a,h);var k="<div style='"+j+"'>"+d+"</div>";var l=this.a7.item(k);if(l!=null){return l}var m;if(f!=null&&!c&&g.indexOf("\n")<0){var n=this.bc();var o=$$t.$dw.bf(f,e);n.font=o;var p=n.measureText(g);var q=p.width;var r=this.a3._a0().h($$t.$dw.bg(f,e),o);m=new $$t.b8;m.g=k;m.f=q/e;m.e=r/e}else{m=this.a2(k,a,e)}this.a7.item(k,m);return m},a2:function(a,b,c){var d=this.a3._a0().s();var e=d.getStyleProperty("width");d.setRawStyleProperty("width",Math.ceil(b)+"px");d.setProperty("innerHTML",a);var f=d.getChildAt(0);var g=f.getNativeElement().getBoundingClientRect();var h=Math.ceil(g.width);var i=Math.ceil(g.height);d.setProperty("innerHTML","");d.setRawStyleProperty("width",e);var j=new $$t.b8;j.g=a;j.f=h/c;j.e=i/c;return j},bd:function(a,b){return""+a.height()/20*b+'pt "'+a.name()+'", sans-serif'},bf:function(a,b){var c="";var d=a.height()/20*b;switch(a.superscriptSubscriptStyle()){case 2:case 1:d*=.66;break}if($j(a._italic$i(),true)){c+="italic "}if($j(a._bold$i(),true)){c+="bold "}c+=d+'pt "'+a.name()+'", sans-serif';return c},bg:function(a,b){var c="";var d=a.height()/20*b;switch(a.superscriptSubscriptStyle()){case 2:d*=.66;c+="vertical-align: sub;";break;case 1:d*=.66;c+="vertical-align: super;";break}c+='font-family:"'+a.name()+'", sans-serif;';c+="font-size:"+d+"pt;";if($j(a._bold$i(),true)){c+="font-weight:bold;"}if($j(a._italic$i(),true)){c+="font-style:italic;"}var e=$j(a._strikeout$i(),true);switch(a.underlineStyle()){case 2:if(e){c+="text-decoration:line-through underline;"}else{c+="text-decoration:underline;"}c+="border-bottom: solid "+Math.max(1,$$a4.$aa.f(b))+"px;";break;case 1:if(e){c+="text-decoration:line-through underline;"}else{c+="text-decoration:underline;"}break;default:if(e){c+="text-decoration:line-through;"}break}return c},bc:function(){if(this.bb==null){var a=this.a3._fa();this.a9=a.getSubRenderer(a.createElement("canvas"));this.bb=this.a9.get2DCanvasContext(this.a9.rootWrapper())}return this.bb},az:function(){var a=this.a3._a0().a;var b=this.a3.brushes();var c=new Array(a.length);$.ig.util.arrayCopyTo(a,c,0);if(b!=null){var e=b.getEnumerator();while(e.moveNext()){var d=e.current();var f=d.value();if(f==null){f=$$t.$dw.bk}var g=$.ig.util.getValue(d.key());c[g]=f}}return c},be:function(a,b,c,d,e,f){a.p();var g=new $$6.aj(0);var h=new $$t.dx;h._a=a.a;g.l("<div style='");if(!String.isNullOrEmpty(f)){g.l(f)}g.l("font:");g.l($$t.$dw.bf(h,c));g.l(";");g.l("'>");for(var i=0;i<a.h.count();i++){var j=a.h.__inner[i];h._a=j.a;var k=$$t.$dw.bf(h,c);var l=$$t.$dy.ae(!$k(j.k)?j.k.value():4);var m=$$t.$dw.bh("",l,d,e,k);g.l("<p style='margin:0;padding:0;");g.l(m);g.l("'>");a.j(j.f,j.e,function(n){var o=a.i.f(n.f,n.e);h._a=n.a;g.l($$t.$dw.bj(h,o,c,true,b,null))});if(j.e==0){g.l(" ")}g.l("</p>")}g.l("</div>");return g.toString()},ba:function(){return this.a3._a0().t()},bi:function(a){if(this.ay==null){this.ay=this.az()}return this.ay[a].__fill},bj:function(a,b,c,d,e,f){b=$5($5($5(b,"&","&amp;"),"'","&apos;"),'"',"&quot;");var g=$$t.$dw.bg(a,c);if(d){var h=f;if(h==null){var i=a.colorInfo()._g(e,false)._color$i().value();h=i.colorString()}g+="color:"+h+";"}return"<span style='"+g+"'>"+b+"</span>"},$type:new $.ig.Type("JsSpreadsheetRenderCache",$$t.$jb.$type)},true);$c("IGFormattedTextFont:dx","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_b:function(a){if(!a.hasValue()){return $m($$0.$aq.$type,null)}return $m($$0.$aq.$type,a.value()?true:false)},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b(this._a._o())}},colorInfo:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._d()}},height:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return $.ig.truncate($$a4.$aa.f(function(a){return!$k(a)?a.value():0}(this._a._p())))}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b(this._a._q())}},name:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._a._v()}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return this._b(this._a._r())}},superscriptSubscriptStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return function(a){return!$k(a)?a.value():-1}(this._a._s())}},underlineStyle:function(a){if(arguments.length===1){throw new $$0.r(0);return a}else{return function(a){return!$k(a)?a.value():-1}(this._a._t())}},setFontFormatting:function(a){throw new $$6.q(0)},$type:new $.ig.Type("IGFormattedTextFont",$.ig.$ot,[$$a4.$fx.$type])},true);$c("spreadsheet.SpreadsheetCell:dz","ValueType",{init:function(){var a;if(arguments.length===0){a=0}else if(arguments.length===1){a=2}else if(arguments.length===2){a=1}if(a>0){switch(a){case 1:this._init1.apply(this,arguments);break;case 2:this._init2.apply(this,arguments);break;default:throw new Error("Invalid arguments")}return}$$0.$bh.init.call(this)},_g:0,_h:0,_staticInit:function(){},_init1:function(a,b){$$0.$bh.init.call(this);$$t.$dz._k(a,"row");$$t.$dz._k(b,"column");this._h=a;this._g=b},_init2:function(a){$$0.$bh.init.call(this);var b;var c;if(!function(){var d=$$a4.$k.bl(a,2,$$0.$cf.currentCulture(),b,c);b=d.p3;c=d.p4;return d.ret}()){throw new $$6.d(1,$6("The specified address '{0}' is not a valid A1 cell address.",a))}this._h=c;this._g=b},equals:function(){var n;if(arguments.length===1){if($b($$t.$dz.$type,arguments[0])!==null){n=0}else if($b($.ig.$op.$type,arguments[0])!==null){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._equals.apply(this,arguments);case 1:return this.equals1.apply(this,arguments);default:throw new Error("Invalid arguments")}},equals1:function(a){if($b($$t.$dz.$type,a)!==null){return this._equals(a)}return false},getHashCode:function(){return this._h^this._g<<8},toString:function(){return $$a4.$zf.u(this._h,this._g,2,true,true,-1,-1,false,1)},row:function(){return this._h},column:function(){return this._g},_k:function(a,b){if(a<0){throw new $$6.d(2,"Row and column indexes must be 0 or greater.",b)}},_equals:function(a){return a._h==this._h&&a._g==this._g},l_op_Equality:function(a,b){return a._equals(b)},l_op_Equality_Lifted:function(a,b){a=$t($$t.$dz.$type,a);b=$t($$t.$dz.$type,b);if(!a.hasValue()){return!b.hasValue()}else if(!b.hasValue()){return false}return $$t.$dz.l_op_Equality(a.value(),b.value())},l_op_Inequality:function(a,b){return!$$t.$dz.l_op_Equality(a,b)},l_op_Inequality_Lifted:function(a,b){a=$t($$t.$dz.$type,a);b=$t($$t.$dz.$type,b);if(!a.hasValue()){return b.hasValue()}else if(!b.hasValue()){return true}return $$t.$dz.l_op_Inequality(a.value(),b.value())},$type:new $.ig.Type("spreadsheet.SpreadsheetCell",$$0.$bh.$type,[$$0.$b.$type.specialize(-1)])},true);$$t.$dz.$type.initSelfReferences();$$t.dz.l_op_Equality=$$t.dz.prototype.l_op_Equality.runOn($$t.dz.prototype);$$t.dz.l_op_Equality_Lifted=$$t.dz.prototype.l_op_Equality_Lifted.runOn($$t.dz.prototype);$$t.dz.l_op_Inequality=$$t.dz.prototype.l_op_Inequality.runOn($$t.dz.prototype);$$t.dz.l_op_Inequality_Lifted=$$t.dz.prototype.l_op_Inequality_Lifted.runOn($$t.dz.prototype);$c("SpreadsheetCellEditInfo:d0","Object",{a:null,b:null,c:false,init:function(a,b,c){$.ig.$op.init.call(this);this.a=a;this.b=b;this.c=c},$type:new $.ig.Type("SpreadsheetCellEditInfo",$.ig.$ot)},true);$c("SpreadsheetResolvedRenderFormat:d2","Object",{init:function(){this.j=new $$a.ax;this.l=new $$a.ax;this.k=new $$a.ax;this.h=new $$a.ax;this.i=new $$a.ax;$.ig.$op.init.call(this)},g:null,d:0,j:null,f:0,l:null,e:0,k:null,b:0,h:null,c:0,i:null,a:0,$type:new $.ig.Type("SpreadsheetResolvedRenderFormat",$.ig.$ot)},true);$c("SpreadsheetCellRenderInfo:d3","Object",{init:function(){this.m=new $$a.ax;this.n=new $$a.ax;this.l=new $$a.ax;$.ig.$op.init.call(this)},f:null,d:0,m:null,e:0,n:null,k:0,h:0,i:0,j:0,g:null,c:0,l:null,a:0,b:function(){var a=new $$t.d3;a.l=a.m=a.n=$$a4.$k.gw;return a},$type:new $.ig.Type("SpreadsheetCellRenderInfo",$.ig.$ot)},true);$c("SpreadsheetCellRenderInfoArray:d4","Object",{a:null,init:function(a,b){$.ig.$op.init.call(this);this.h(a,b)},e:function(){return this.a.h()},f:function(){return this.a.i()},item:function(a,b){return this.a.item(a,b)||$$t.$d4.b},g:function(a,b,c,d){if(this.a.item(a,b)==null&&this.a.item(c,d)==null){return}var e=this.c(a,b);var f=this.c(c,d);f.f=e.f;f.g=e.g;f.a=e.a;f.c=e.c;f.l=e.l},h:function(a,b){if(this.a==null){this.a=new $$t.ol($$t.$d3.$type,a,b)}else{this.a.j(a,b)}},p:function(a,b,c,d){if(c==0&&this.a.item(a,b)==null){return}var e=this.c(a,b);e.e=c;e.n=d},m:function(a,b,c,d){if(c==0&&this.a.item(a,b)==null){return}var e=this.c(a,b);e.d=c;e.m=d},i:function(a,b,c){if(c==null&&this.a.item(a,b)==null){return}this.c(a,b).f=c},k:function(a,b,c){if(c==null&&this.a.item(a,b)==null){return}this.c(a,b).g=c},l:function(a,b,c,d,e){if(c==0&&this.a.item(a,b)==null){return}var f=this.c(a,b);f.a=c;f.c=d;f.l=e},n:function(a,b,c){if(c==0&&this.a.item(a,b)==null){return}this.c(a,b).i=c},o:function(a,b,c){if(c==0&&this.a.item(a,b)==null){return}this.c(a,b).j=c},q:function(a,b,c){if(c==0&&this.a.item(a,b)==null){return}this.c(a,b).k=c},j:function(a,b,c){if(c==0&&this.a.item(a,b)==null){return}this.c(a,b).h=c},c:function(a,b){var c=this.a.item(a,b);if(c==null){this.a.item(a,b,c=$$t.$d3.b())}return c},$type:new $.ig.Type("SpreadsheetCellRenderInfoArray",$.ig.$ot)},true);$c("AccountingUnderlineInfo:d5","Object",{init:function(){$.ig.$op.init.call(this)},b:false,c:0,a:false,d:function(a,b,c,d,e){var f=d.a;if(f==null){d.a=f=new $$t.d5}f.c=a;f.b=b;var g=false;if(c!=null&&!c.displayOptions().showFormulasInCells()){if(d.l()){g=true}else{var h=d.ap;if(h!=null&&$$a4.$k.a9(h)){var i=c.workbook();if(d.p()){g=true}else if(i!=null){g=true;var j=$$t.$dy.ah(e,c,d.h,d.ab,true);if(j!=null&&j.o()&&j.k(0)){g=false}}}}}f.a=g},$type:new $.ig.Type("AccountingUnderlineInfo",$.ig.$ot)},true);$c("spreadsheet.SpreadsheetSelection:d6","PropertyChangeNotifierExtended",{_l:null,_y:null,_k:null,_be:null,_g:null,_h:null,_i:null,_j:null,_n:null,_p:null,_bl:0,_aa:null,_ab:null,_w:0,_bo:$m($$0.$aq.$type,null),_bn:$m($$0.$aq.$type,null),_bp:null,_q:null,_ag:false,init:function(a,b,c){this._n=new $$t.dz;this._p=new $$t.d1;this._aa=new $$t.i(1,0,0);this._ab=new $$t.i(1,0,0);this._q=$$t.$d1.empty;$$ak.$s.init.call(this);$$ak.$c.y(a);$$ak.$c.y(b);var d=$$ak.$m.e($$t.$oh.$type.specialize($$t.$d1.$type),this._k,new $$t.oh($$t.$d1.$type,0),this,false);this._k=d.p0;var e=$$ak.$m.e($$t.$ok.$type.specialize($$t.$d1.$type),this._g,new $$t.ok($$t.$d1.$type,this._k,this._ae.runOn(this),null,this._ar.runOn(this)),this,false);this._g=e.p0;var f=$$ak.$m.e($$t.$ok.$type.specialize($$t.$d1.$type),this._h,new $$t.ok($$t.$d1.$type,this._k,this._af.runOn(this),null,this._ar.runOn(this)),this,false);this._h=f.p0;var g=$$ak.$m.e($$t.$ok.$type.specialize($$t.$d1.$type),this._i,new $$t.ok($$t.$d1.$type,this._k,this._ae.runOn(this),this._az.runOn(this),this._ar.runOn(this)),this,false);this._i=g.p0;var h=$$ak.$m.e($$t.$ok.$type.specialize($$t.$d1.$type),this._j,new $$t.ok($$t.$d1.$type,this._k,this._af.runOn(this),this._a0.runOn(this),this._ar.runOn(this)),this,false);this._j=h.p0;this._ag=c;this._l=a;this._y=b;this._be=new $$ak.u($$t.$d1.$type,this._k);this._k.add(new $$t.d1(this._n.row(),this._n.column()))},e:function(a,b,c){if(a==this){switch(b){case"AvailableColumnRange":this._i._t();break;case"AvailableRowRange":this._j._t();break}}else if(a==this._k){this._bp=null}$$ak.$s.e.call(this,a,b,c)},activeCell:function(){return this._n},_r:function(){return this._p},activeCellRangeIndex:function(){return this._bl},cellRanges:function(){return this._be},cellRangesAddress:function(a){if(arguments.length===1){if(String.isNullOrEmpty(a)){throw new $$6.e(1)}var b=$$t.$d1._a(a);this._resetSelection(b,b[0]._c(),0,true);return a}else{if(this._bp==null){this._bp=$$t.$d1._ag(this._be,1,",")}return this._bp}},_bf:function(){return this._g},_bg:function(){return this._h},_al:function(){var a=this._bf();return a.count()==1&&a.item(0)._i<=this._ac()._i&&a.item(0)._h>=this._ac()._h},_am:function(){var a=this._bg();return a.count()==1&&a.item(0)._i<=this._ad()._i&&a.item(0)._h>=this._ad()._h},_ac:function(a){if(arguments.length===1){if(!this._aa.equals(a)){this._aa=a;this.a("AvailableColumnRange")}return a}else{return this._aa}},_ad:function(a){if(arguments.length===1){if(!this._ab.equals(a)){this._ab=a;this.a("AvailableRowRange")}return a}else{return this._ab}},_x:function(a){if(arguments.length===1){if(this._w!=a){this._w=a;this.a("CellSelectionMode");if(a==2){this.__av=false}}return a}else{return this._w}},__av:false,_ax:function(){if($j(this._bo,null)){this._bo=$m($$0.$aq.$type,$$t.$d1._j(this._be))}return this._bo.value()},_aw:function(){if($j(this._bn,null)){this._bn=$m($$0.$aq.$type,this._au())}return this._bn.value()},_z:function(){return this._y},_v:function(a){if(arguments.length===1){if($$t.$d1.l_op_Inequality(this._q,a)){this._q=a;this.a("RangeToUnselect")}return a}else{return this._q}},_bi:function(){return this._i},_bj:function(){return this._j},_m:function(){return this._l},addActiveCellRange:function(){var n;if(arguments.length===2){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}else if(arguments.length===3){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._addActiveCellRange1.apply(this,arguments);case 1:return this._addActiveCellRange2.apply(this,arguments);default:throw new Error("Invalid arguments")}},_addActiveCellRange2:function(a,b,c){c=c!==void 0?c:true;return this._addActiveCellRange1(new $$t.d1(a),new $$t.dz(b),c)},_addActiveCellRange1:function(a,b,c){c=c!==void 0?c:true;if(!a._contains(b)){throw new $$6.d(0)}if(c){var d=this._bt(a);a=d.p0}return this._ak(a,b,this._t(b))},addCellRange:function(){var n;if(arguments.length===1){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}else if(arguments.length===2){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._addCellRange.apply(this,arguments);case 1:return this._addCellRange1.apply(this,arguments);default:throw new Error("Invalid arguments")}},_addCellRange1:function(a,b){b=b!==void 0?b:true;this._addCellRange(new $$t.d1(a),b)},_addCellRange:function(a,b){b=b!==void 0?b:true;if(b){var c=this._bt(a);a=c.p0}{var d=this._bk();try{try{this._k.beginUpdate();this._k.add(a)}finally{this._k.endUpdate()}}finally{if(d!=null){d.dispose()}}}this._bu()},clearCellRanges:function(){return this._a9(this.activeCell())},replaceActiveCellRange:function(){var n;if(arguments.length===2){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}else if(arguments.length===3){if($b($$t.$d1.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._replaceActiveCellRange1.apply(this,arguments);case 1:return this._replaceActiveCellRange2.apply(this,arguments);default:throw new Error("Invalid arguments")}},_replaceActiveCellRange2:function(a,b,c){c=c!==void 0?c:true;return this._replaceActiveCellRange1(new $$t.d1(a),new $$t.dz(b),c)},_replaceActiveCellRange1:function(a,b,c){c=c!==void 0?c:true;if(c){var d=this._bt(a);a=d.p0}if(!a._contains(b)){throw new $$6.d(0)}return this._a7(a,b)},resetSelection:function(){var n;if(arguments.length===2){n=1}else if(arguments.length===3){if(arguments[0]instanceof Array){n=0}else if($b($$t.$d1.$type,arguments[0])!==null){n=1}else if(typeof arguments[0]==="string"){n=2}else if(arguments[0]==null){if($b($$t.$dz.$type,arguments[1])!==null){n=0}else if(typeof arguments[1]==="string"){n=2}else if(arguments[1]==null){n=2}}}else if(arguments.length===4){if(arguments[0]instanceof Array){n=0}else if(typeof arguments[0]==="string"){n=2}else if(arguments[0]==null){if($b($$t.$dz.$type,arguments[1])!==null){n=0}else if(typeof arguments[1]==="string"){n=2}else if(arguments[1]==null){n=2}}}switch(n){case 0:return this._resetSelection.apply(this,arguments);case 1:return this._resetSelection2.apply(this,arguments);case 2:return this._resetSelection3.apply(this,arguments);default:throw new Error("Invalid arguments")}},_resetSelection2:function(a,b,c){c=c!==void 0?c:true;if(!a._contains(b)){throw new $$6.d(0)}return this._resetSelection([a],b,0,c)},_resetSelection3:function(a,b,c,d){d=d!==void 0?d:true;return this._resetSelection($$t.$d1._a(a),new $$t.dz(b),c,d)},_resetSelection:function(a,b,c,d){d=d!==void 0?d:true;$$ak.$c.z(a,"ranges");if(a.length==0){throw new $$6.d(0)}if(c<0||c>=a.length){throw new $$6.f(0)}if(!a[c]._contains(b)){throw new $$6.d(0)}var e=$$t.$dz.l_op_Inequality(b,this.activeCell());var f=this.cellRanges().count()!=a.length;if(!f){for(var g=0;g<a.length;g++){if(!a[g]._equals(this._be.item(g))){f=true;break}}}if(e&&!this._a2(b)){return false}var h=d?this._t(b):new $$t.d1(b.row(),b.column());if(d){if(a.length!=1||$$t.$d1.l_op_Inequality(a[c],h)){for(var i=0;i<a.length;i++){var j=this._bt(a[i]);a[i]=j.p0}}}{var k=this._bk();try{try{if(f){this._k.beginUpdate();this._k.clear();this._k._reInitialize(a)}this._bv(b,c,h)}finally{if(f){this._k.endUpdate()}}}finally{if(k!=null){k.dispose()}}}if(f){this._bu()}return true},setActiveCell:function(){var n;if(arguments.length===1){if($b($$t.$dz.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}else if(arguments.length===2){if($b($$t.$dz.$type,arguments[0])!==null){n=0}else if(typeof arguments[0]==="string"){n=1}else if(arguments[0]==null){n=1}}switch(n){case 0:return this._setActiveCell.apply(this,arguments);case 1:return this._setActiveCell1.apply(this,arguments);default:throw new Error("Invalid arguments")}},_setActiveCell1:function(a,b){b=b!==void 0?b:null;b=$t($$0.$aw.$type,b);return this._setActiveCell(new $$t.dz(a),b)},_setActiveCell:function(a,b){b=b!==void 0?b:null;b=$t($$0.$aw.$type,b);var c=!$k(b)?b.value():this.activeCellRangeIndex();var d=this._be.count();var e=d;for(var f=c,g=c+this._be.count();f<g;f++){if(this._be.item(f%d)._contains(a)){e=f%d;break}}if(e==d){return this._a9(a)}else{if($$t.$dz.l_op_Inequality(a,this.activeCell())&&!this._a2(a)){return false}this._bv(a,e,this._t(a));return true}},unselectRange:function(a){var b=null;var c=-1;var d=this._n;for(var e=0;e<this._be.count();e++){var f=this._be.item(e);if(f.intersectsWith(a)){if(b==null){b=new $$4.x($$t.$d1.$type,0);for(var g=0;g<e;g++){b.add(this._be.item(g))}}if(a._contains1(f)){continue}var h=b.count();if(a.firstRow()>f.firstRow()){b.add(new $$t.d1(f.firstRow(),f.firstColumn(),a.firstRow()-1,f.lastColumn()))}if(a.firstColumn()>f.firstColumn()){b.add(new $$t.d1(Math.max(a.firstRow(),f.firstRow()),f.firstColumn(),Math.min(a.lastRow(),f.lastRow()),a.firstColumn()-1))}if(a.lastColumn()<f.lastColumn()){b.add(new $$t.d1(Math.max(a.firstRow(),f.firstRow()),a.lastColumn()+1,Math.min(a.lastRow(),f.lastRow()),f.lastColumn()))}if(a.lastRow()<f.lastRow()){b.add(new $$t.d1(a.lastRow()+1,f.firstColumn(),f.lastRow(),f.lastColumn()))}if(c<0&&e>=this._bl){if(e>this._bl||a._contains(this._n)){c=h;d=b.__inner[c]._c()}else{for(var i=h;i<b.count();i++){if(b.__inner[i]._contains(this._n)){c=i;break}}}}}else{if(c<0&&e>=this._bl){c=b==null?e:b.count();d=e==this._bl?this._n:f._c()}if(b!=null){b.add(f)}}}if(b!=null){if(b.count()==0){b.add(new $$t.d1(d.row(),d.column()))}if(c<0){c=0;d=b.__inner[0]._c()}this._resetSelection(b.toArray(),d,c,false)}},_ah:function(a){var b=this._t(a);return this._ak(b,a,b)},_ao:function(a){for(var b=0;b<this._be.count();b++){if(this._be.item(b)._contains(a)){return true}}return false},_ap:function(a){for(var b=0;b<this._be.count();b++){if(this._be.item(b)._contains1(a)){return true}}return false},_bk:function(){return new $$t.de(this._l)},_as:function(a,b){var c=b?this._t(a):new $$t.d1(a.row(),a.column());return this._at(c,b)},_at:function(a,b){a=a.union(this._r());if(b){var c=this._bt(a);a=c.p0}return this._a7(a,this.activeCell())},_bt:function(a){a=this._y._s.extendRangeForMergedCells(a);return{p0:a}},_s:function(){this._by();return this.cellRanges().item(this.activeCellRangeIndex())},_t:function(a){return this._y._s.getCellRange(a)},_u:function(a){var b=$$t.$d1.empty;var c=this.activeCell();var e=this.cellRanges().getEnumerator();while(e.moveNext()){var d=e.current();var f=this._a0(d);var g=this._az(d);if(f==g||a==false){b=b.union(d)}else if(g){if(this._bj().count()>0){var i=this._bj().getEnumerator();while(i.moveNext()){var h=i.current();b=b.union(new $$t.d1(h._i,d.firstColumn(),h._h,d.lastColumn()))}}else{b=b.union(new $$t.d1(c.row(),d.firstColumn(),c.row(),d.lastColumn()))}}else{if(this._bi().count()>0){var k=this._bi().getEnumerator();while(k.moveNext()){var j=k.current();b=b.union(new $$t.d1(d.firstRow(),j._i,d.lastRow(),j._h))}}else{b=b.union(new $$t.d1(d.firstRow(),c.column(),d.lastRow(),c.column()))}}}return b},_ay:function(a){for(var b=0;b<this._be.count();b++){if(this._be.item(b).intersectsWith(a)){return true}}return false},_az:function(a){return a.firstRow()<=this._ab._i&&a.lastRow()>=this._ab._h},_a0:function(a){return a.firstColumn()<=this._aa._i&&a.lastColumn()>=this._aa._h},_a1:function(a){return a==this._k||a==this._be},_a2:function(a){if(this._ag){return true}return this._l._dt(a)},_a3:function(){return this._l._d7(true)},_bu:function(){this._bn=$m($$0.$aq.$type,null);this._bo=$m($$0.$aq.$type,null);if(!this._y._am()&&!this._ag){this._l._h8(new $$t.f9(this._y))}},_a4:function(a){return this._a7(this._t(a),a)},_a9:function(a){var b=this._t(a);return this._resetSelection2(b,a,true)},_bw:function(a,b){var c=new Array(this.cellRanges().count());for(var d=0;d<c.length;d++){var e=this.cellRanges().item(d);c[d]=new $$t.d1(e.firstRow()+a,e.firstColumn()+b,e.lastRow()+a,e.lastColumn()+b)}var f=new $$t.dz(this.activeCell().row()+a,this.activeCell().column()+b);this._resetSelection(c,f,this.activeCellRangeIndex(),false)},_by:function(){for(var a=this._bl;a<this._k.count();a++){if(this._k.__inner[a]._contains(this._n)){this._bl=a;return}}if(this._bl>0){for(var b=this._bl-1;b>=0;b--){if(this._k.__inner[b]._contains(this._n)){this._bl=b;return}}}this._a9(this._n)},_bz:function(){this._bv(this.activeCell(),this.activeCellRangeIndex(),this._t(this.activeCell()))},_ak:function(a,b,c){if($$t.$dz.l_op_Inequality(b,this.activeCell())&&!this._a2(b)){return false}{var d=this._bk();try{try{this._k.beginUpdate();this._k.add(a);this._bv(b,this._k.count()-1,c)}finally{this._k.endUpdate()}}finally{if(d!=null){d.dispose()}}}this._bu();return true},_ar:function(a,b){return a+1>=b},_ae:function(a){return new $$t.i(1,a.firstColumn(),a.lastColumn())},_au:function(){if(this._be.count()<2){return false}var a=false;var b=false;var c=false;var e=this._be.getEnumerator();while(e.moveNext()){var d=e.current();var f=true;if(this._az(d)){a=true;f=false}if(this._a0(d)){b=true;f=false}if(f){c=true}}return c&&(b||a)},_af:function(a){return new $$t.i(1,a.firstRow(),a.lastRow())},_aq:function(a){return this._be.count()==1&&a._equals(this._be.item(0))},_a7:function(a,b){var c=!this._k.__inner[this.activeCellRangeIndex()]._equals(a);var d=$$t.$dz.l_op_Inequality(b,this.activeCell());if(d&&!this._a2(b)){return false}{var e=this._bk();try{try{if(c){this._k.beginUpdate();this._k.item(this.activeCellRangeIndex(),a)}if(d){this._bv(b,this.activeCellRangeIndex(),this._t(b))}}finally{if(c){this._k.endUpdate()}}}finally{if(e!=null){e.dispose()}}}if(c){this._bu()}return true},_bv:function(a,b,c){var d=this.activeCellRangeIndex();var e=this._r();var f=this.activeCell();this._bl=b;this._p=c;this._n=a;if(d!=b){this.a("ActiveCellRangeIndex")}if($$t.$d1.l_op_Inequality(e,c)){this.a("ActiveCellAsRange")}if($$t.$dz.l_op_Inequality(f,a)){this.a("ActiveCell")}},$type:new $.ig.Type("spreadsheet.SpreadsheetSelection",$$ak.$s.$type)},true);$c("SelectionSnapshot:d7","Object",{_a:null,_j:0,_g:null,_k:null,init:function(a,b,c,d){this._g=new $$t.dz;$.ig.$op.init.call(this);this._k=new $$6.z(a);this._g=c;this._a=b;this._j=d},_h:function(){return $b($$a4.$jk.$type,$$ak.$c.p(this._k))},_d:function(a,b){return new $$t.d7(a,$$5.$e.a($$t.$d1.$type,b.cellRanges()),b.activeCell(),b.activeCellRangeIndex())},_b:function(a,b){return $$t.$d7._c(a,b,b._c())},_c:function(a,b,c){return new $$t.d7(a,[b],c,0)},equals:function(a){return a!=null&&this._g._equals(a._g)&&this._j==a._j&&$$ak.$c.d($$t.$d1.$type,this._a,a._a,null)&&a._h()==this._h()},_i:function(a,b){return this._g._equals(b.activeCell())&&this._j==b.activeCellRangeIndex()&&$$ak.$c.d($$t.$d1.$type,this._a,b.cellRanges(),null)&&a==this._h()},_f:function(a,b,c,d){if(d!=0&&a!=this._h()){return this}switch(d){default:case 0:return $$t.$d7._c(a,b,c);case 1:var e=$$t.$ik._getCellRange2(c.row(),c.column(),a);var f=$$5.$e.z($$t.$d1.$type,this._a);var g=b.union(e);g=$$t.$ik._extendRangeForMergedCells1(a,g,null);f.__inner[this._j]=g;return new $$t.d7(a,f.toArray(),this._g,this._j);case 2:var h=$$5.$e.z($$t.$d1.$type,this._a);h.add($$t.$ik._extendRangeForMergedCells1(a,b,null));return new $$t.d7(a,h.toArray(),c,h.count()-1)}},_e:function(a,b,c){return this._f(a,b,b._c(),c)},$type:new $.ig.Type("SelectionSnapshot",$.ig.$ot,[$$0.$b.$type.specialize(-1)])},true);$$t.$d7.$type.initSelfReferences();$c("SpreadsheetChartElementInfo:d8","Object",{init:function(){$.ig.$op.init.call(this)},c:null,f:null,a:null,d:function(){return this.c},b:function(){return this.a},g:function(){return this.f},h:function(){},i:function(){},e:function(a,b,c){},$type:new $.ig.Type("SpreadsheetChartElementInfo",$.ig.$ot)
},true);$c("SpreadsheetCommandBuilder:d9","Object",{d:null,f:null,init:function(){$.ig.$op.init.call(this);this.f=new $$4.x($$t.$q.$type,0);this.d=new $$4.h($$0.$aw.$type,$$t.$p.$type,0)},n:function(){this.i(8,4,[1,0]);this.i(8,65536,[139]);this.i(8,32768,[141]);this.i(8,4,[143]);this.i(0,65536,[138]);this.i(0,32768,[140]);this.i(0,4,[142]);this.h(512|2097152,1,2,0,[202]);this.h(0,0,2,8,[200,199]);this.i(0,2,[4,5,2,3,87,88,71,72,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,40,67,80,83,81,82,84,167,168,66,65]);this.i(33554432,2,[93]);this.i(16777216,2,[94]);this.h(0,1,2,0,[148,149,150]);this.h(8388608,1,2,0,[119,120,121,161,160,163,162,126,125]);this.h(512,1,2,0,[156,157,159]);this.h(8388608,0,2,0,[198]);this.h(512|8388608,1,2,0,[127,128,129,130,133,132,122,131,124,123]);this.h(512|134217728,1,2,0,[145]);this.h(512|67108864,1,2,0,[147]);this.h(512|536870912,1,2,0,[144]);this.h(512|268435456,1,2,0,[146]);this.h(512|524288|2097152,1,2,0,[153,155]);this.h(512|262144|2097152,1,2,0,[152,154]);this.h(512,1,2,0,[115,116,118,117,134,135,137,136,166,165]);this.h(512|16777216,1,2,0,[89,90]);this.h(512|33554432,1,2,0,[91,92]);this.h(512|2097152,1,2,0,[97,95,96,98]);this.i(0,2,[8,9,7,6,12,13,10,11,16,17,14,15,21,20,19,18,31,35,30,32]);this.i(0,2,[24,25,22,23,26,27,28,29]);this.i(32,0,[36]);this.i(0,32,[37]);this.h(512|1048576,0,1,2,[99]);this.h(512|1048576,1,1,2,[100]);this.h(512|1048576,1,1,4,[114]);this.h(512|1048576,1,1,0,[113]);this.i(0,2,[101,102,103,104,111]);this.i(0,131072,[112]);this.h(131072|512,1,2,0,[164,170,171]);this.i(0,2|8192,[106,107,109]);this.i(0,2|16384,[105,108,110]);this.h(512,1,2,0,[201,73,74,79]);this.i(0,512,[151,78,75,76,77]);this.i(64,0,[68]);this.i(128,0,[69]);this.i(256,0,[70]);this.h(0,1,1024,0,[86]);this.h(0,1,2048,0,[85]);this.g(0,1,[172,173]);this.h(512|131072|2097152,16,0,8,[176,177,179,184]);this.h(512|131072|2097152,16|128,0,8,[174,175,178]);this.h(512|131072,0,0,8,[180,181,182]);this.h(512|131072|2097152,0,0,8,[183]);this.h(512|131072,32,0,0,[187,186,203]);this.h(512|131072,16|32,0,0,[195,197,196]);this.h(512|131072,16|64,0,0,[185]);this.h(512|131072,64,2,0,[188,189,190,192,193,194,191])},i:function(a,b,c){this.h(a,0,b,0,c)},g:function(a,b,c){this.h(0,a,0,b,c)},h:function(a,b,c,d,e){var f=new $$t.on(0);f.j=a;f.i=b;var g=new $$t.on(0);g.j=c;g.i=d;this.j(f,g,e)},j:function(a,b,c){var d=new $$t.p(a,b);for(var f=0;f<c.length;f++){var e=c[f];this.d.item(e,d)}},m:function(){var a=1;var b=4|2;var c=4|a;var d=2;var e=a;var f=4;var g=0;var h=86;var i=87;var j=$$t.$d9.c;var k=new $$t.on(1,0,8);var l=new $$t.on(1,0,1);var m=new $$t.on(1,2,0);var n=new $$t.on(1,16,0);var o=new $$t.on(1,32,0);var p=o.e(128);var q=new $$t.on(1,512,0);var r=new $$t.on(1,8,0);var s=new $$t.on(1,4194304,0);var t=new $$t.on(1,256,0);var u=new $$t.on(1,4096,0);var v=new $$t.on(1,128,0);var w=v.e(8);var x=new $$t.on(1,16|128,0);var y=x.d(1);var z=new $$t.on(1,512,1);var aa=new $$t.on(1,32,1);var ab=aa.e(1073741824);var ac=ab.e(16);var ad=ac.e(8);var ae=new $$t.on(1,1073741824,1);var af=ae.e(8);var ag=ae.e(128);var ah=ag.e(8);var ai=new $$t.on(1,16|1073741824,1);var aj=ai.e(128);var ak=aj.e(4194304|256);var al=aj.e(32);var am=al.e(4194304);var an=am.e(8);var ao=l.e(4194304);var ap=ao.d(8);var aq=ao.d(256);var ar=k.d(256);var as=new $$t.on(1,0,128);this.l(70,63,f,m,j,false);this.l(68,63,f,t,j,false);this.l(69,63,g,m,j,false);this.l(68,63,g,v,j,false);this.l(68,8,g,j,z,false);this.l(68,15,f,t,ae,false);this.l(68,17,f,t,ae,false);this.l(68,14,f,t,ae,false);this.l(68,16,f,t,ae,false);this.l(68,10,f,t,ae,false);this.l(68,11,f,t,ae,false);this.l(68,13,f,t,ae,false);this.l(68,12,f,t,ae,false);this.l(36,12,g,j,ak,false);this.l(37,12,g,j,y,false);this.l(36,12,f,j,ai,false);this.l(37,12,f,j,ai,false);this.k(201,17,e);this.k(73,57,g);this.k(78,8,g);this.k(76,3,d);this.k(77,3,b);this.l(75,3,g,j,u,false);this.k(151,57,g);this.k(172,8,g);this.k(173,3,g);this.k(173,3,f);this.k(173,3,d);this.k(173,2,g);this.k(173,2,f);this.k(173,2,d);this.k(79,19,g);this.k(185,41,b);this.k(156,i,b);this.k(156,79,d);this.k(157,88,d);this.k(157,80,d);this.l(7,14,g,j,al,false);this.l(6,16,g,j,al,false);this.l(8,15,g,j,al,false);this.l(9,17,g,j,al,false);this.l(42,14,f,j,ac,false);this.l(41,16,f,j,ac,false);this.l(43,15,f,j,ac,false);this.l(44,17,f,j,ac,false);this.l(42,14,g,v,ac,false);this.l(41,16,g,v,ac,false);this.l(43,15,g,v,ac,false);this.l(44,17,g,v,ac,false);this.l(14,14,d,j,aj,false);this.l(15,16,d,j,aj,false);this.l(16,15,d,j,aj,false);this.l(17,17,d,j,aj,false);this.l(49,14,b,j,ae,false);this.l(50,16,b,j,ae,false);this.l(51,15,b,j,ae,false);this.l(52,17,b,j,ae,false);this.l(49,14,d,v,ai,false);this.l(50,16,d,v,ai,false);this.l(51,15,d,v,ai,false);this.l(52,17,d,v,ai,false);this.l(2,2,g,j,ap,false);this.l(3,2,f,j,ap,false);this.l(2,2,g,k,aq,false);this.l(3,2,f,k,aq,false);this.l(199,2,g,ar,ao,false);this.l(200,2,f,ar,ao,false);this.l(81,16,d|e,j,ae,false);this.l(82,14,d|e,j,ae,false);this.l(84,1,f,j,z,true);this.l(83,83,e,j,z,false);this.l(80,84,d,j,z,false);this.k(159,h,d);this.l(66,9,d,j,ae,false);this.l(65,9,f,j,ae,false);var at=q;this.l(86,55,d,$$t.$d9.c,at,false);this.l(85,54,d,$$t.$d9.c,at,false);this.k(198,21,d);this.k(119,22,d);this.k(119,31,d);this.k(120,23,d);this.k(120,38,d);this.k(160,24,d);this.k(160,50,d);this.k(121,25,d);this.k(101,11,d);this.k(102,10,d);this.k(103,11,b);this.k(104,10,b);this.k(100,66,f);this.k(100,56,c);this.k(89,20,d);this.k(90,20,b);this.k(91,29,d);this.k(92,29,b);this.l(87,3,g,u,aa,false);this.l(88,3,f,u,aa,false);this.l(18,11,g,j,aj,false);this.l(19,10,g,j,aj,false);this.l(21,10,e,j,aj,false);this.l(20,11,e,j,aj,false);this.l(53,11,f,j,ai,false);this.l(54,10,f,j,ai,false);this.l(56,10,c,j,ai,false);this.l(55,11,c,j,ai,false);this.l(53,11,g,v,ai,false);this.l(54,10,g,v,ai,false);this.l(56,10,e,v,ai,false);this.l(55,11,e,v,ai,false);this.l(32,13,d,j,ah,false);this.l(30,13,g,j,an,false);this.l(34,13,d,r,ag,false);this.l(33,13,g,r,am,false);this.l(59,13,b,j,af,false);this.l(57,13,f,j,ad,false);this.l(59,13,d,v,af,false);this.l(57,13,g,v,ad,false);this.l(61,13,b,r,ae,false);this.l(60,13,f,r,ac,false);this.l(61,13,d,w,ae,false);this.l(60,13,g,w,ac,false);this.l(167,13,g,s,al,false);this.l(168,12,g,s,al,false);this.l(6,2,g,s,l,false);this.l(7,2,f,s,l,false);this.l(38,12,d,j,ag,false);this.l(63,12,b,j,ae,false);this.l(63,12,d,v,ae,false);this.l(64,12,g,v,ai,false);this.l(40,30,d,j,z,false);this.l(40,9,b,j,z,false);this.l(22,14,g,n,ab,false);this.l(23,16,g,n,ab,false);this.l(24,15,g,n,ab,false);this.l(25,17,g,n,ab,false);this.l(26,14,d,n,ae,false);this.l(27,16,d,n,ae,false);this.l(28,15,d,n,ae,false);this.l(29,17,d,n,ae,false);this.l(29,11,g,n,ae,false);this.l(28,10,g,n,ae,false);this.l(26,10,a,n,ae,false);this.l(27,11,a,n,ae,false);this.l(31,13,g,n,ab,false);this.l(35,12,g,n,ae,false);this.l(58,13,f,n,ab,false);this.l(62,12,f,n,ae,false);this.l(14,14,g,o,ag,true);this.l(15,16,g,o,ag,true);this.l(16,15,g,o,ag,true);this.l(17,17,g,o,ag,true);this.l(38,13,g,o,ag,true);this.l(39,3,g,o,ae,true);this.l(49,14,f,o,ai,true);this.l(50,16,f,o,ai,true);this.l(51,15,f,o,ai,true);this.l(52,17,f,o,ai,true);this.l(63,13,f,o,ae,true);this.l(64,3,f,o,ae,true);this.l(49,14,g,p,ai,true);this.l(50,16,g,p,ai,true);this.l(51,15,g,p,ai,true);this.l(52,17,g,p,ai,true);this.l(63,13,g,p,ae,true)},k:function(a,b,c){this.l(a,b,c,$$t.$d9.c,$$t.$d9.c,false)},l:function(a,b,c,d,e,f){e=e.e(-2147483648);this.f.add(new $$t.q(a,e,d,b,c,15&~c));if(f){this.l(37,b,c,d,e,false)}},e:function(){var a=new $$t.d9;a.n();return a.d},a:function(){var a=new $$t.d9;a.m();return a.f.toArray()},b:function(){var a=new $$t.d9;a.n();a.m();return new $$t.o(a.f.toArray(),a.d)},$type:new $.ig.Type("SpreadsheetCommandBuilder",$.ig.$ot)},true);$c("SpreadsheetCursorHelper:ee","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a){var b=$.ig.util.isIE&&$.ig.util.browserVersion<10;switch(a){case 0:return"default";case 1:return"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAkAAAAJAAAACQAAAAkAAAH5+AABAAgAAQAIAAH5+AAACQAAAAkAAAAJAAAACQAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////w////8P////D////w////8P///gAH//4AB//+AAf//gAH///w////8P////D////w////8P/////////////////////////////////////////////////8=), crosshair";case 2:return b?"move":"url(data:application/cur;base64,AAACAAEAICAAABAACQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAFVQAACqqAAAQBAAAIAIAABAEAAAhggAAEYQAACMKAAATFAAABgAAAIYAAADMAAAA7AAAAPwAAAD/gAAA/wAAAP4AAAD8AAAA+cAAAPFAAADncAAAxBAAAIdwAAABQAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///AAf//wAH//8/5///P+f//znn//8w5///MOf//yGH//shB//5w///+MP///gH///4B///+AB///gA///4Af//+AP///gH///4CP//+Bj///ggP//4YD//+OA///n4////+P/////////////////////////////////////8=), copy";case 3:return"url(data:application/cur;base64,AAACAAEAICAAAA8ACgAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAYAAAAGAAAADAAAAIwAAADYAAAA+AAAAP8AAAL+AAAE/AAACPgAAA7wAAAA4AAAYMwAAKCKAAE8eQACBECAATx5AACjigAAYowAAAKAAAAO4AAACCAAAARAAAACgAAAAQAA/////////////////////////H////h////4f///8P///vD///5h///+If///gP///4AP//+AH///AD///gB///wA///8Af///4P//+eE///HjH//gIA//wCgH/+A4D//xxx//+cc////H////Af///wH///+D////x////+//8=), move";case 4:return"url(data:application/cur;base64,AAACAAEAICAAAA8ACQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAIAAAAGAAAABAAAAIwAAADIAAAA+AAAAP8AAAD+AAAA/AAAAPgAAADwAAAe6AAAHtgAAB64AAAeeAAAHvgAAB/4AAAf+AAAH/gAAB/4AAAf+AAAH8AAAB/QAAAfwAAAAAAA/////////////////////////P////x////4f///+P///vD///5x///+If///gP///4AP//+AH///gD///4B///+A///wAP//8AD///AA///wAP//8AD///AA///wAP//8AD///AA///wAP//8AD///AA///wAf//8AP///AH/8=), pointer";case 17:case 19:return"pointer";case 5:return b?"ne-resize":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAJAAAACQAAAAkAAAAJAAAAyTAAAUkoAAJ55AAEAAIABAACAAJ55AABSSgAAMkwAAAJAAAACQAAAAkAAAAJAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////////////////////////////8P////D////w////8P////D///8wz//+MMf//AAD//gAAf/4AAH//AAD//4wx///MM////D////w////8P////D////w///////////////////////////////////////8=), ew-resize";case 14:case 18:case 13:return b?"nw-resize":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+AAAAWgAAAFoAAABaAAAAWgAABlpgAApaUAAT28gAIBgEACAYBAAT28gAClpQAAZaYAAAWgAAAFoAAABaAAAAWgAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////////////////////////////4H///+B////gf///4H///+B///5gZ//8YGP/+AAB//AAAP/wAAD/+AAB//xgY//+YGf//+B////gf///4H///+B////gf//////////////////////////////////////8=), col-resize";case 15:case 12:return b?"sw-resize":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAkAAAAQgAAAIEAAADnAAAAJAAAACQAAB/n+AAQAAgAH//4AB//+AAQAAgAH+f4AAAkAAAAJAAAAOcAAACBAAAAQgAAACQAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////5////8P///+B////AP///wD////D////w///4AAH/+AAB//gAAf/4AAH/+AAB//gAAf//8P////D////AP///wD///+B////w////+f/////////////////////////////////8=), row-resize";case 16:return"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAJAAAAEIAAACBAAAA5wAAAyTAAAUkoAAJ55AAEAAIABAACAAJ55AABSSgAAMkwAAA5wAAAIEAAABCAAAAJAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////////////////////////////+f////D////gf///wD///8A///8wz//+MMf//AAD//gAAf/4AAH//AAD//4wx///MM///8A////AP///4H////D////5///////////////////////////////////////8=), move";case 6:return b?"se-resize":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAJAAAAEIAAACBAAAA5wAAACQAAAAkAAAf5/gAEAAIABAACAAf5/gAACQAAAAkAAAA5wAAAIEAAABCAAAAJAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////////////////////////////+f////D////gf///wD///8A////w////8P//+AAB//gAAf/4AAH/+AAB///w////8P///8A////AP///4H////D////5///////////////////////////////////////8=), ns-resize";case 7:return b?"pointer":"url(data:application/cur;base64,AAACAAEAICAAAA8AEAAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPgAAAMGAAAEAQAACPiAAAkEgAASAkAAEgJAABICQAASA8AAEsJAAAmnwAAIlIAABA+AAAMIAAAAkAAAAKAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////////B////AH///gA///wAH//8Ph//+H8P//h/D//4fw//+H8P//hPD//8Bg///AIf//4AH///Af///8P////H////z///////////////////////////////////////8=), grab";case 8:return b?"pointer":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAUAAAHZAAAGUMAACFAgABHZEAAzBZAAAILIACEASAASAEgADAB4AAAAAAAeADAAEgBIABIAhAASQQIACaDMAAiTiAAEChAAAwpgAACTgAAAoAAAAEAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////9////+P///iD///ggP//wIB//4CAP/8D4D//AfQf/wP+H/+H/h//z/4f//////+H/z//h/4f/4f8D/+G+Af/wHwP/8AwH//gED//8BB///wx///8f////v///////////////////////8=), grabbing";case 9:return b?"pointer":"url(data:application/cur;base64,AAACAAEAICAAAA8AEAAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAoAAAARAAAAIIAAAEBAAABxwAAAEQAAABEAAAARAAAAEQAAABEAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////7////8f///+D////Af///gD///4A////g////4P///+D////g////4P///+D////////////////////////////8=), cell";case 10:return b?"crosshair":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAPAAAADwAAAA8AAAD/8AAA//AAAP/wAAD/8AAADwAAAA8AAAAPAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////////A////gP///4D///+A///8AA//+AAP//gAD//4AA//+AAP//gAD//4AB///4D///+A////gP///4H/////////////////////////////////////////////////8=), cell";case 11:return b?"pointer":"url(data:application/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAKAAAD+QAAAgCAAAIAQAACAIAAA/kAAAAKAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////////////////////////////8/////H///wA///8AH///AA///wAf//8AP////H////z/////////////////////////////////////////////////////////////8=), cell";default:return"help"}},$type:new $.ig.Type("SpreadsheetCursorHelper",$.ig.$ot)},true);$c("EditModeDataValidationException:ef","Error",{init:function(){$$0.$n.init.call(this,0)},$type:new $.ig.Type("EditModeDataValidationException",$$0.$n.$type)},true);$c("EditModeWorkbookFont:eg","PropertyChangeNotifierExtended",{_k:false,_g:null,_h:null,_i:null,init:function(a){this._k=true;$$ak.$s.init.call(this);$$ak.$c.y(a);this._i=a;this._g=new $$t.ei;this._h=new $$t.ei},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){this._p($j(a,true));return a}else{this._x();return this._g.e}},_j:function(){return this._i},colorInfo:function(a){if(arguments.length===1){this._q(a);return a}else{this._x();return this._g.c}},_l:function(){return $$a4.$o._getDefaultValue(2048)},height:function(a){if(arguments.length===1){this._r(a);return a}else{this._x();return this._g.d}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){this._s($j(a,true));return a}else{this._x();return this._g.f}},name:function(a){if(arguments.length===1){this._t(a);return a}else{this._x();return this._g.i}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){this._u($j(a,true));return a}else{this._x();return this._g.g}},superscriptSubscriptStyle:function(a){if(arguments.length===1){if(a==-1){a=0}this._v(a);return a}else{this._x();return this._g.a}},underlineStyle:function(a){if(arguments.length===1){if(a==-1){a=0}this._w(a);return a}else{this._x();return this._g.b}},setFontFormatting:function(a){},_m:function(a){if(this._k==false){this._k=true;if(a){this._o()}}},_o:function(){this.a(String.empty())},_n:function(a){},_p:function(a){},_q:function(a){},_r:function(a){},_s:function(a){},_t:function(a){},_u:function(a){},_v:function(a){},_w:function(a){},_x:function(){if(this._k){this._k=false;this._y()}},_y:function(){this._n(this._h);var a=this._g.h(this._h)},$type:new $.ig.Type("EditModeWorkbookFont",$$ak.$s.$type,[$$a4.$fx.$type])},true);$c("EditModeWorkbookFont$1:eh","EditModeWorkbookFont",{$tEditor:null,init:function($tEditor,a){this.$tEditor=$tEditor;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tEditor)}$$t.$eg.init.call(this,a)},_z:function(){return this._j()},$type:new $.ig.Type("EditModeWorkbookFont$1",$$t.$eg.$type)},true);$c("EditModeWorkbookFontInfo:ei","Object",{init:function(){this.e=$m($$0.$aq.$type,null);this.f=$m($$0.$aq.$type,null);this.g=$m($$0.$aq.$type,null);$.ig.$op.init.call(this)},e:$m($$0.$aq.$type,null),c:null,d:0,f:$m($$0.$aq.$type,null),i:null,g:$m($$0.$aq.$type,null),a:0,b:0,h:function(a){var b=null;var c=this.k($$0.$ai.$type.specialize($$0.$aq.$type),this.e,a.e,"Bold",b);this.e=c.p0;b=c.p3;var d=this.k($$a4.$ah.$type,this.c,a.c,"ColorInfo",b);this.c=d.p0;b=d.p3;var e=this.k($$0.$aw.$type,this.d,a.d,"Height",b);this.d=e.p0;b=e.p3;var f=this.k($$0.$ai.$type.specialize($$0.$aq.$type),this.f,a.f,"Italic",b);this.f=f.p0;b=f.p3;var g=this.k(String,this.i,a.i,"Name",b);this.i=g.p0;b=g.p3;var h=this.k($$0.$ai.$type.specialize($$0.$aq.$type),this.g,a.g,"Strikeout",b);this.g=h.p0;b=h.p3;var i=this.k($$a4.$ca.$type,this.a,a.a,"SuperscriptSubscriptStyle",b);this.a=i.p0;b=i.p3;var j=this.k($$a4.$cb.$type,this.b,a.b,"UnderlineStyle",b);this.b=j.p0;b=j.p3;return b},j:function(){this.e=$m($$0.$aq.$type,false);this.c=$$a4.$ah.automatic();this.d=$h($$a4.$o._getDefaultValue(512));this.f=$m($$0.$aq.$type,false);this.i=$$a4.$o._getDefaultValue(2048);this.g=$m($$0.$aq.$type,false);this.a=0;this.b=0},k:function($t,a,b,c,d){if(!$$4.$m.defaultEqualityComparerValue($t).equalsC(a,b)){a=b;if(d==null){d=c}else{d=String.empty()}}return{p0:a,p3:d}},$type:new $.ig.Type("EditModeWorkbookFontInfo",$.ig.$ot)},true);$c("LockedEditRangeInfoForOperation:el","Object",{d:null,f:null,init:function(){$.ig.$op.init.call(this);this.d=new $$4.x($$t.$em.$type,0);this.f=new $$4.g($$t.$em.$type,1,this.d)},c:function(){return this.d},b:function(){var b=this.d.getEnumerator();while(b.moveNext()){var a=b.current();if(a.d()){return false}if(a.h()!=null&&$$5.$e.af($$a4.$y.$type,a.h())==null){return false}}return true},e:function(a){var b=new $$4.x($$a4.$y.$type,0);var d=this.c().getEnumerator();while(d.moveNext()){var c=d.current();var e=a?c.h():c.g();if(e!=null){var g=e.getEnumerator();while(g.moveNext()){var f=g.current();if(f.isProtected()){b.add(f)}}}}return b},a:function(a){var c=this.d.getEnumerator();while(c.moveNext()){var b=c.current();if(b.b==a){return b}}var d=new $$t.em(this,a);this.d.add(d);return d},$type:new $.ig.Type("LockedEditRangeInfoForOperation",$.ig.$ot)},true);$c("LockedEditRangeInfoForWorksheet:em","Object",{a:null,b:null,f:null,i:null,c:false,init:function(a,b){$.ig.$op.init.call(this);this.a=a;this.b=b;this.f=new $$4.q($$a4.$y.$type,0)},g:function(){return this.f},d:function(){return this.c},h:function(){return this.i},j:function(a){if(a!=null){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.f.add(b)}}},k:function(){this.c=true},e:function(a,b){var c=b;if(this.i==null){this.i=new $$4.x($$a4.$y.$type,0);var e=this.f.getEnumerator();while(e.moveNext()){var d=e.current();if(d.isProtected()==false){continue}var g=d.ranges().getEnumerator();while(g.moveNext()){var f=g.current();if(f._h()._contains2(a,c)){this.i.add(d);break}}}}if(this.i.count()>0){for(var h=this.i.count()-1;h>=0;h--){var i=false;var k=this.i.__inner[h].ranges().getEnumerator();while(k.moveNext()){var j=k.current();if(j._h()._contains2(a,c)){i=true;break}}if(i==false){this.i.removeAt(h)}}}return this.i.count()>0},$type:new $.ig.Type("LockedEditRangeInfoForWorksheet",$.ig.$ot)},true);$c("LockedEditRangeInfoForCellRange:en","Object",{init:function(){$.ig.$op.init.call(this)},f:function(a,b){},b:function(a,b,c){var d=a.index();for(var e=b;e<=c;e++){if(!this.c(d,e)){return false}}return true},c:function(a,b){},d:function(a,b){},a:function(a,b,c,d,e){if(a!=null&&a.b.protection().allowedEditRanges().count()>0){var f=new $$t.d1(b,c,d,e);var g=new $$4.x($$a4.$y.$type,0);var h=new $$4.x($$a4.$y.$type,0);var i=$$t.$dy.a0(f);var k=a.b.protection().allowedEditRanges().getEnumerator();while(k.moveNext()){var j=k.current();var m=j.ranges().getEnumerator();while(m.moveNext()){var l=m.current();if(l._h()._intersectsWith(i)){var n=j.isProtected()&&j.hasPassword()?g:h;n.add(j);break}}}if(h.count()>0||g.count()>0){var o=new $$t.eo(a,g,h);return o}}return a==null?$$t.$ep.g:new $$t.ep(a)},e:function(a,b){return false},$type:new $.ig.Type("LockedEditRangeInfoForCellRange",$.ig.$ot)},true);$c("LockedEditRangeInfoForCellRange_WithRanges:eo","LockedEditRangeInfoForCellRange",{h:null,j:null,g:null,i:null,init:function(a,b,c){$$t.$en.init.call(this);a.j(b);a.j(c);this.g=a;this.j=$$t.$eo.k(c);this.h=$$t.$eo.k(b)},f:function(a,b){if(this.i==null){this.i=new $$4.x($$t.$i.$type,0)}this.i.add(new $$t.i(1,a,b))},c:function(a,b){if(this.j!=null){var d=this.j.getEnumerator();while(d.moveNext()){var c=d.current();if(c._contains2(a,b)){return true}}}if(this.h!=null){var f=this.h.getEnumerator();while(f.moveNext()){var e=f.current();if(e._contains2(a,b)){return this.g.e(a,b)}}}this.g.k();return false},d:function(a,b){if(this.i!=null){var d=this.i.getEnumerator();while(d.moveNext()){var c=d.current();for(var e=c._i;e<=c._h;e++){for(var f=a;f<=b;f++){if(!this.c(e,f)){return false}}}}}return true},k:function(a){if(a!=null&&a.count()!=0){var b=new $$4.x($$t.$d1.$type,0);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var f=c.ranges().getEnumerator();while(f.moveNext()){var e=f.current();b.add($$t.$dy.aa(e._h()))}}for(var g=b.count()-1;g>=1;g--){var h=b.__inner[g];for(var i=g-1;i>=0;i--){var j=b.__inner[i];if(j._contains1(h)||$$t.$d1.l_op_Equality(j,h)){b.removeAt(g);break}else if(h._contains1(j)){b.removeAt(i);g--}}}if(b.count()>0){return b}}return null},e:function(a,b){if(this.j!=null){var d=this.j.getEnumerator();while(d.moveNext()){var c=d.current();if(c._contains2(a,b)){return true}}}return false},$type:new $.ig.Type("LockedEditRangeInfoForCellRange_WithRanges",$$t.$en.$type)},true);$c("LockedEditRangeInfoForCellRange_WithoutRanges:ep","LockedEditRangeInfoForCellRange",{h:null,init:function(a){$$t.$en.init.call(this);this.h=a},c:function(a,b){if(this.h!=null){this.h.k()}return false},d:function(a,b){if(this.h!=null){this.h.k()}return false},b:function(a,b,c){if(this.h!=null){this.h.k()}return false},$type:new $.ig.Type("LockedEditRangeInfoForCellRange_WithoutRanges",$$t.$en.$type)},true);$c("SpreadsheetEditHelper:eq","Object",{m:false,z:0,j:null,i:null,k:null,a:null,c:null,y:null,x:null,init:function(a,b,c,d,e,f,g){this.c=new $$t.dz;$.ig.$op.init.call(this);$$ak.$c.z(a,"sheetManager");$$ak.$c.z(b,"editPane");$$ak.$c.z(f,"promptCallback");$$ak.$c.z(g,"executeInUndo");this.j=a;this.i=b;this.a=$$5.$e.a($$a4.$jk.$type,$$5.$e.o($$t.$k2.$type,$$a4.$jk.$type,this.j._a3()._j(),function(h){return h._j()}));this.c=c;this.k=a._bc().workbook();this.y=f;this.m=d;this.z=e;this.x=g},ad:function(a,b,c,d,e){e=-1;var f=b.unformattedText();var g=a.g;var h=b.editCellFormat()._dg();var i=new $$a4.nd(1,h,g,null);var j=false;var k=false;if(i.o()){k=i.k(0);for(var l=0;l<4;l++){if(i.m(l)){j=true;break}}}var m=$$a4.$j3.q(h);if(String.isNullOrEmpty(f)){return{ret:null,p4:e}}else if(String.isNullOrWhiteSpace(f)||j==false&&m==false&&i.j()){}else if(f.length>1&&f.startsWith("=")){var n=$$t.$eq.ac(a,c,f,true);if($b($$a4.$ed.$type,n)!==null||d==false){return{ret:n,p4:e}}}else if(f.indexOf("\r")>=0||f.indexOf("\n")>=0){}else if($9("true",f,3)==0){return{ret:$$t.$eq.ae,p4:e}}else if($9("false",f,3)==0){return{ret:$$t.$eq.ab,p4:e}}else{if(f.startsWith("#")){var o=$$a4.$zk.b(f,g);if(o!=null){if($$a4.$dk.circularity()!=o){return{ret:o,p4:e}}return{ret:b,p4:e}}}var p;var q;var r=false;if(m||k){if(!r&&function(){var s=$$t.$eq.t(f,true,a,p,e,r);p=s.p3;e=s.p4;r=s.p5;return s.ret}()){return{ret:p,p4:e}}if(!r&&function(){var s=$$t.$eq.r(f,a,q,e);q=s.p2;e=s.p3;return s.ret}()){return{ret:q,p4:e}}}else{if(!r&&function(){var s=$$t.$eq.t(f,false,a,p,e,r);p=s.p3;e=s.p4;r=s.p5;return s.ret}()){return{ret:p,p4:e}}if(!r&&function(){var s=$$t.$eq.r(f,a,q,e);q=s.p2;e=s.p3;return s.ret}()){return{ret:q,p4:e}}}var s=new $$0.bb;if(!r&&function(){var t=$$t.$eq.w(f,a,s,e);s=t.p2;e=t.p3;return t.ret}()){return{ret:$$a4.$ny._ay(s,true),p4:e}}if(!r){if(function(){var t=$$t.$eq.v(f,a,p,e);p=t.p2;e=t.p3;return t.ret}()){return{ret:p,p4:e}}if(function(){var t=$$t.$eq.s(f,a,p,e);p=t.p2;e=t.p3;return t.ret}()){return{ret:p,p4:e}}if(function(){var t=$$t.$eq.q(f,a,p,e,r);p=t.p2;e=t.p3;r=t.p4;return t.ret}()){return{ret:p,p4:e}}var t=a.f?a.j:0;if(!r&&function(){var u=$$t.$eq.u(f,a,t,p,e);p=u.p3;e=u.p4;return u.ret}()){return{ret:p,p4:e}}}if(f.length>1&&(f.startsWith("-")||f.startsWith("+"))){var u=$$t.$eq.ac(a,c,"="+f,true);if($b($$a4.$ed.$type,u)!==null||d==false){return{ret:u,p4:e}}}}return{ret:b,p4:e}},e:function(a,b,c,d,e){var $self=this;if(a==0){return 0}var f;var g=function(){var h=$$t.$eq.ad(new $$t.er($self),b,a==3,false,f);f=h.p4;return h.ret}();var h=false;if(g==b){var i=$$t.$eq.d(b,this.k,e);if(i!=null&&i.c.contains("\n")){h=true}g=i}var j=b.editCellFormat();var k=this.c;if($b($$t.$kx.$type,g)!==null){var l=$b($$t.$kx.$type,g);this.y(l);return 1}var m=this.i._ag();var n=this.j;var o=$$5.$e.a($$t.$d1.$type,m.cellRanges());var p=o;var q;var r=$l(n._en(),false);var s=r?new $$t.el:null;var t=new $$4.q($$a4.$f2.$type,0);if($b($$a4.$d8.$type,g)!==null){var u=m._s();var v=$b($$a4.$d8.$type,g);var w=new $$4.x($$a4.$lz.$type,0);if(n._bq(u)==false){q=1}else{if(s!=null&&!function(){var x=n._c7(s,[u],c,q);q=x.p3;return x.ret}()){return q}var y=n._a3()._j().getEnumerator();while(y.moveNext()){var x=y.current();w.add(x._j()._cx(u.firstRow(),u.firstColumn(),u.lastRow(),u.lastColumn()))}q=this.g(w.toArray(),c,t)}if(q==2){q=this.h([u])}if(q!=2){return q}var z=false;var aa=this.aj(s,t,z);z=aa.p2;return this.f(p,d,function(){for(var ab=0;ab<w.count();ab++){var ac=ab==0?v:v._g();ac._applyTo3(w.__inner[ab])}return 2})}var ab=a==1;var ac;switch(a){case 3:ac=[m._s()];break;case 1:ac=[new $$t.d1(k.row(),k.column())];break;default:ac=o;break}if(s!=null&&!function(){var ad=n._c7(s,ac,c,q);q=ad.p3;return ad.ret}()){return q}q=this.h(ac);if(q!=2){return q}if(g==null){var ad=function(){return n._ak(2,c,ac,s)};return this.x(0,ad,String.empty(),p)}var ae=new $$4.x($$a4.$lz.$type,0);var af=new $$4.h($$a4.$jk.$type,Array,0);var ah=n._a3()._j().getEnumerator();while(ah.moveNext()){var ag=ah.current();ae.addRange(af.item(ag._j(),$$t.$dy.f(ag._j(),ac)))}var ai=ae.toArray();q=this.g($$5.$e.a($$a4.$lz.$type,ai),c,t);if(q!=2){return q}var aj=false;var ak=$$5.$e.a($$a4.$jk.$type,$$5.$e.o($$t.$k2.$type,$$a4.$jk.$type,n._a3()._j(),function(al){return al._j()}));var al;if(a==1){al=[new $$a4.l0(1,k.row(),k.row(),k.column(),k.column())]}else{al=$$t.$dy.h(p)}var am=null;if($b($$a4.$ed.$type,g)!==null){var an=this.aj(s,t,aj);aj=an.p2;var ao=$b($$a4.$ed.$type,g);var ap=k.column();if(f==-1){f=$$t.$eq.aa(ao,this.j._bc(),k.row(),k.column())}q=this.f(p,d,function(){$$t.$e3.f(ak,al,$$t.$dy.ay(k));am=$$t.$e3.a(ak,al);var ar=af.getEnumerator();while(ar.moveNext()){var aq=ar.current();var as=aq.key();var at=as.rows().item(k.row());var au=a==2;if(s!=null&&as.isProtected()&&as==n._bc()){var ax=aq.value();for(var aw=0;aw<ax.length;aw++){var av=ax[aw];var ay=s.a(as);var az=av._h();if($$t.$ik._cp(as,az._firstRowIndex(),az._firstColumnIndex(),az._lastRowIndex(),az._lastColumnIndex(),ay)){$$t.$eq.ag(ao,au?[av]:null,at,ap,f)}else{aj=true;var a0=$$t.$en.a(ay,az._firstRowIndex(),az._firstColumnIndex(),az._lastRowIndex(),az._lastColumnIndex());var a2=$$t.$ik._dd(aq.key(),[$$t.$dy.aa(az)],null).getEnumerator();while(a2.moveNext()){var a1=a2.current();var a3=as.rows().item(a1.row());var a4=as._b4(a3,a1.column());if($j(a4._c5(),false)||a0.e(a1.row(),a1.column())){$$t.$eq.ah(ao,a3,a1.column(),at,ap,f)}}}}}else{$$t.$eq.ag(ao,au?aq.value():null,at,ap,f)}}$$t.$dy.e4(af,null);return 2});if(q==2){if(am!=null){this.x(46,function(){am.g();return 2},null,null)}if(a==1){}if(aj){this.y(new $$t.kx(23,null,null,null,false))}}return q}try{$$a4.$j3.ax(g);$$a4.$j3.a0(g)}catch(aq){var ar=new $$t.kx(2,null,aq,null,c);if(this.y(ar)==false){return 1}return 0}var as=this.aj(s,t,aj);aj=as.p2;var at=null;if(n._a3()._j().count()==1){var au=n._a3()._j().item(0)._j();if(au.isProtected()==false||au.protection().allowInsertingHyperlinks()){at=au}}q=this.f(p,d,function(){$$t.$e3.f(ak,al,$$t.$dy.ay(k));am=$$t.$e3.a(ak,al);var aw=n._a3()._j().getEnumerator();while(aw.moveNext()){var av=aw.current();var ax=av._j();if(a==1){var ay=ax.rows().item(k.row());var az=ay._getCellValue1(k.column());$$t.$eq.ak(ay,k.column(),j,g,f,h);if(az==null&&n._a3()._j().count()==1&&f==-1&&$$a4.$j3.q(j._dg())){var a0=$$a4.$k.a9(g);if(a0||typeof g==="string"){var a1=new $$4.x($$a4.$w7.$type,0);ax.conditionalFormats()._ad(a1,k.row(),k.column(),a0)}}}else{var a2=s!=null&&ax.isProtected()&&ax==n._bc()?s.a(ax):null;var a3=-1;var a4=null;var a5=null;var a6=a2!=null?function(a7){a5=$$t.$en.a(a2,a7.firstRow(),a7.firstColumn(),a7.lastRow(),a7.lastColumn())}:null;var a7=$$t.$ik._dd(ax,ac,a6);var a8=null;var a9=$b($$t.$es.$type,g);var ba=null;var bb=null;var bc=null;var bd=false;var be=null;var bf=null;$$t.$eq.ak(ax.rows().item(k.row()),k.column(),j,g,f,h);if(a9!=null){a4=ax.rows().item(k.row());var bg=a4._getResolvedCellFormat1(k.column());bb=ax._b4(a4,k.column());bd=(bb.formatOptions()&4)!=0;be=bg.style();bf=new $$t.or(bb);ba=new $$a4.iv(0,ax.workbook());ba.setFontFormatting(bg.font());bc=$b($$a4.$dq.$type,a4._getCellValue1(k.column()))}var bh=$$t.$dy.p(f);var bi=f!=-1?ax.workbook()._b2().item(f):null;var bj=$$t.$eq.p(bh);var bl=a7.getEnumerator();while(bl.moveNext()){var bk=bl.current();if(bk.row()!=a3){a3=bk.row();a4=ax.rows().item(a3)}if(bj||a5!=null){a8=ax._b4(a4,bk.column());if(a5!=null&&$j(a8._c5(),true)&&a5.e(a3,bk.column())==false){aj=true;continue}var bm=$$t.$dy.p(a8._cs());if(bm!=bh&&!$$t.$eq.o(bm)){a4.getCellFormat(bk.column()).formatString(bi)}}if(ba!=null){if(bj==false){a8=ax._b4(a4,bk.column())}if($.ig.$op.referenceEquals(a8,bb)==false){var bn;if(bd==false&&(a8.formatOptions()&4)==0){bn=be!=a8.style()&&$.ig.$op.referenceEquals(be._i()._bp().d(),a8.style()._i()._bp().d())==false}else{if(bd==false&&(be==a8.style()||$.ig.$op.referenceEquals(be._i()._bp().d(),a8.style()._i()._bp().d()))){a4._bc(bk.column()).formatOptions(a4._bc(bk.column()).formatOptions()&~4);bn=false}else{bf._b(a8);bn=$$a4.$i1._l(ba,bf)!=0}}if(bn){a4._bc(bk.column()).font().setFontFormatting(ba);
}}}var bo;if(a9==null){bo=g}else if(bc==null){bo=a9.c}else{bo=bc.clone()}a4.setCellValue(bk.column(),bo);if(h){a4.getCellFormat(bk.column())._wrapText$i($m($$0.$aq.$type,true))}}}}$$t.$dy.e4(af,null);return 2});if(q==2){if(am!=null){this.x(46,function(){am.g();return 2},null,null)}if(aj){this.y(new $$t.kx(23,null,null,null,false))}else if(at!=null){var av=at.rows().item(k.row());var aw=av._c6(k.column());if($b($$a4.$ds.$type,aw)!==null||$b($$a4.$dq.$type,aw)!==null){var ax=$b($$a4.$dq.$type,aw)!==null?aw.unformattedString():aw._unformattedString();var ay=null;var az=null;if($$t.$dy.bd(ax)){var a0=$$t.$eq.l(av,k.column());if(a0==null||a0.isSealed()){var a1=av.getCellAssociatedMergedCellsRegion(k.column());if(a1!=null){ay=new $$a4.li(at._cw(a1._h()),ax,null,null)}else{ay=new $$a4.li(av.cells().item(k.column()),ax,null,null)}}else{az=a0}this.x(31,function(){if(ay!=null){at.hyperlinks().add(ay)}else if(az!=null){az.targetAddress(ax)}if($b($$a4.$dt.$type,aw)!==null||$b($$a4.$dq.$type,aw)!==null){av.setCellValue(k.column(),ax)}return 2},null,null)}}}}return q},ak:function(a,b,c,d,e,f){var g=$b($$t.$es.$type,d);if(g!=null){g.e(a,b)}if(e!=-1){$$t.$eq.ai(a,b,e,c)}if(g!=null){if(g.a==null){d=g.c}else{d=new $$a4.dq(g.c)}}a.setCellValue(b,d);if(g!=null&&g.a!=null){g.f($b($$a4.$dq.$type,d))}if(f){a.getCellFormat(b)._wrapText$i($m($$0.$aq.$type,true))}},ag:function(a,b,c,d,e){var f=a._ab()==null?a:a._g();if(b!=null){f._bm(b,c,d,1);if(e!=-1){for(var g=0;g<b.length;g++){var h=b[g]._h();var i=b[g].worksheet();for(var j=h._firstRowIndex();j<=h._lastRowIndex();j++){var k=i.rows().item(j);for(var l=h._firstColumnIndex();l<=h._lastColumnIndex();l++){$$t.$eq.ai(k,l,e,i._b4(k,l))}}}}}else{f._bp(c,d,1);if(e!=-1){$$t.$eq.ai(c,d,e,c.worksheet()._b4(c,d))}}},ah:function(a,b,c,d,e,f){var g=a._ab()==null?a:a._g();g._bq(d,e,b,c,1);if(f!=-1){$$t.$eq.ai(b,c,f,d.worksheet()._b4(b,c))}},ai:function(a,b,c,d){var e=$$a4.$j3.q(d._dg());var f=a.worksheet().workbook()._b2().item(c);if(!e){var g=$$t.$dy.p(c);var h=$$t.$dy.p(d._cs());if($$t.$eq.p(g)&&!$$t.$eq.o(h)&&g!=h){e=true}}if(e){var i=a.getCellFormat(b);i.formatString(f)}},n:function(a,b,c){var d=c==0||c==2;var e=a.indexOf(b);var f=a.indexOfAny($$t.$eq.b);if(f>=0&&e>=0){if(d&&e>f){return false}else if(!d&&e<f){return false}}return true},l:function(a,b){var c=a._bi(b);if(c==null){var d=a.worksheet();var e=d._cr(a.index(),b);var f=e!=null;var g=e!=null?e._h():new $$a4.l0(1,a.index(),a.index(),b,b);var i=d.hyperlinks().getEnumerator();while(i.moveNext()){var h=i.current();var j=h.sourceRegion()._h();if($$a4.$l0._l_op_Equality(g,j)||f&&g._contains1(j)){c=h;break}}}return c},ac:function(a,b,c,d){var e=a.a;var f=a.g;var g;if(b){var h;if(function(){var i=$$a4.$d8._cs(c,e.cellReferenceMode(),e.currentFormat(),f,h,g);h=i.p4;g=i.p5;return i.ret}()){return h}}else{var i;if(function(){var j=$$a4.$ed._a4(c,e.cellReferenceMode(),e.currentFormat(),f,i,g);i=j.p4;g=j.p5;return j.ret}()){return i}}if(d&&c.indexOf(")")<0){var j=$b($$a4.$ed.$type,$$t.$eq.ac(a,b,c+")",false));if(j!=null){return j}}return new $$t.kx(1,null,g,null,false)},aa:function(a,b,c,d){var e=14;var f=0;var g=new $$4.aa($$0.$aw.$type);var h=new $$a4.zj(4,b,c,d,b._o(),a,b._y(),b._c());var k=a._e();for(var j=0;j<k.length;j++){var i=k[j];var l=-1;var m=0;var n=null;var o=$b($$a4.$acm.$type,i);if(o!=null){n=o.$function();m=o.argumentCount()}else if($b($$a4.$ac7.$type,i)!==null){m=1}else if($b($$a4.$ac6.$type,i)!==null){m=2}if(m>0){for(var p=0;p<m;p++){var q=g.pop();if(q!=-1){l=q}}if(n!=null){var r=n._name();if(!$.ig.util.stringCompare1("DATE",r,1)){f++;l=e}else if(!$.ig.util.stringCompare1("TIME",r,1)){l=18}else if(n._isOptimizableSelector()){l=-1}}}else{var s=$b($$a4.$adi.$type,i);var t=-1;var u=-1;if(s!=null){var v=s.y().e(h,s.v(),true);t=v.o();u=v.m()}else{var w=$b($$a4.$abn.$type,i);if(w!=null){var x=w.x().k(h,w.v(),true);t=x._firstRowIndex();u=x._firstColumnIndex()}}if(t>=0){var y=b.rows()._aj(t);var z=b._b4(y,u);if(z._cs()!=0){l=z._cs();if(l==e){f++}}}else if(i.h()==255){continue}}g.push(l)}if(g.count()>0){var aa=g.pop();if(aa!=e||f<2){return aa}}return-1},d:function(a,b,c){var d=a.createDocument();if(d!=null){var e=new $$t.or(a.editCellFormat());var f=new $$t.eu;$$t.$dy.ec(f,e);d.a._aa(f);d.p()}if(d!=null&&d.c()){if(c){$$t.$dy.eg(b,d,9,8)}var g=d.a;var h=d.g();if(h==null||h.equals(g)){}else{var i=g._b();var j=h._b();h._z(g);d.o();var k=d.i.toString();if(i!=j){return new $$t.es(k,h,d)}return new $$t.es(k,h,null)}}return new $$t.es(a.unformattedText(),new $$t.eu,null)},aj:function(a,b,c){var e=b.getEnumerator();while(e.moveNext()){var d=e.current();if(a!=null){var f=d.blockedRegion().worksheet();if(f.isProtected()){var g=a.a(f);var h=d.blockedRegion()._h();if($$t.$ik._cp(f,h._firstRowIndex(),h._firstColumnIndex(),h._lastRowIndex(),h._lastColumnIndex(),g)==false){c=true;continue}}}d.removeFromRegion()}return{p2:c}},o:function(a){switch(a){case 3:case 2:case 4:case 7:case 6:case 8:case 5:case 0:case 9:return false;case 10:case 1:return true;default:return true}},p:function(a){switch(a){case 3:case 2:case 4:case 7:case 6:case 8:case 5:case 0:return true;case 10:case 1:case 9:return false;default:return false}},q:function(a,b,c,d,e){var f=b.g;if(f==null){f=$$0.$cf.currentCulture()}e=false;var g=$b($$0.$ch.$type,f.getFormat($$0.$ch.$type));var h=g.currencySymbol();if(a.contains(h)){var i=4|1|16|64|2|256;if(function(){var j=$ad(a,i,f,c);c=j.p3;return j.ret}()){if($$t.$eq.n(a,h,b.i())&&!b.e(a)){d=6;return{ret:true,p2:c,p3:d,p4:e}}else{e=true}}else{var j=i|32;if($$t.$eq.n(a,h,b.i())&&!b.e(a)){if(function(){var k=$ad(a,j,f,c);c=k.p3;return k.ret}()){d=8;return{ret:true,p2:c,p3:d,p4:e}}}else{e=true}}}c=NaN;d=-1;return{ret:false,p2:c,p3:d,p4:e}},r:function(a,b,c,d){d=-1;if(a!=null&&a.length>0&&!/\s/i.test(a.charAt(0))){var e=b.g;var f=b.a;if(e==null){e=$$0.$cf.currentCulture()}var g;var h;if(function(){var i=$$0.$s.tryParse(a,h);h=i.p1;return i.ret}()){g=true}else if(a!=null&&a.length<3){g=false}else{var i;var j;var k=b.f?b.j:0;if(function(){var l=$$t.$eq.u(a,b,k,i,j);i=l.p3;j=l.p4;return l.ret}()){g=false}else{var l=$$t.$dy.dv($$0.$s.minValue(),f)+" "+a;g=function(){var m=$$0.$s.tryParse(l,h);h=m.p1;return m.ret}()}}if(g){var m=$b($$0.$cg.$type,e.getFormat($$0.$cg.$type));var n=true;if(+$.ig.Date.prototype.getDate(h)==+$$0.$s.minValue()){c=$$a4.$ny._ay($.ig.Date.prototype.getTimeOfDay(h),false)}else if(h>$$0.$s.maxValue()){c=null}else{c=$s($$a4.$ny._dateTimeToExcelDate(f,h))}if(c==null){n=false}else if(m!=null){var o=m.dateSeparator();var p=m.timeSeparator();var q=String.isNullOrWhiteSpace(o)||a.contains(o);var r=String.isNullOrWhiteSpace(p)||a.contains(p);if((r||q)&&!b.c(a)){var s=b.n();var t=b.o();var u=!String.isNullOrWhiteSpace(s)&&$$t.$dy.a7(e,a,s)||!String.isNullOrWhiteSpace(t)&&$$t.$dy.a7(e,a,t);var v=0;var w=a.indexOf(p,0);while(w>=0){v++;w=w<a.length?a.indexOf(p,w+1):-1}if(+$.ig.Date.prototype.getDate(h)==+$$0.$s.minValue()){if(u){d=v>1?19:18}else{d=v>1?21:20}}else{if(u||v>0){d=22}else{d=14}}}else{n=false}}if(n){return{ret:true,p2:c,p3:d}}}}c=null;return{ret:false,p2:c,p3:d}},s:function(a,b,c,d){var e=b.g;var f;f=a.indexOf("E");if(f<0){f=a.indexOf("e")}if(f>=0){if(e==null){e=$$0.$cf.currentCulture()}var g=128|16|64|32|4|1|2;if(function(){var h=$ad(a,g,e,c);c=h.p3;return h.ret}()&&!b.e(a)){d=11;return{ret:true,p2:c,p3:d}}}d=-1;c=NaN;return{ret:false,p2:c,p3:d}},t:function(a,b,c,d,e,f){f=false;if(a!=null){var g=1;var h=2;var i=3;var j=4;if($$t.$eq.af==null){$$t.$eq.af=new $$8.l("^(\\+|-)?\\s*(\\S+\\s+)?(\\d+)/(\\d+)\\s*$",0)}var k=$$t.$eq.af.i(a);if(k.i()){if(b==false||k.m().item(h).d()>0){var l=c.g;if(l==null){l=$$0.$cf.currentCulture()}var m=function(n){return n!=null?n:String.empty()}(k.m().item(h).g());var n=0;if(String.isNullOrEmpty(m)||function(){var o=$0(k.m().item(h).g(),64|2,l,n);n=o.p3;return o.ret}()&&!c.e(k.m().item(h).g())){var o,p;if(function(){var q=$0(k.m().item(i).g(),1,l,o);o=q.p3;return q.ret}()&&function(){var q=$0(k.m().item(j).g(),1,l,p);p=q.p3;return q.ret}()&&o<=32767&&p<=32767&&p!=0){d=n+o/p;if(k.m().item(g).g()=="-"){d=-d}var q=0;for(var r=m.length-1;r>=0;r--){if(/\s/i.test(m.charAt(r))){q++}else{break}}if(q>1){f=true}else{e=p<10?12:13;return{ret:true,p3:d,p4:e,p5:f}}}}}}}e=-1;d=NaN;return{ret:false,p3:d,p4:e,p5:f}},u:function(a,b,c,d,e){var f=b.g;e=-1;if(f==null){f=$$0.$cf.currentCulture()}var g=4|1|16|64|2;if(c!=0){if(function(){var h=$ad(a,g,f,d);d=h.p3;return h.ret}()){if(b.e(a)){return{ret:false,p3:d,p4:e}}d*=Math.pow(10,-c);return{ret:true,p3:d,p4:e}}}var h=g|32;if(function(){var i=$ad(a,h,f,d);d=i.p3;return i.ret}()){if(b.e(a)){return{ret:false,p3:d,p4:e}}return{ret:true,p3:d,p4:e}}return{ret:false,p3:d,p4:e}},v:function(a,b,c,d){var e=b.g;if(e==null){e=$$0.$cf.currentCulture()}var f=$b($$0.$ch.$type,e.getFormat($$0.$ch.$type));var g=f.percentSymbol();if(!String.isNullOrWhiteSpace(g)){a=a.trim();var h=a.indexOf(g);var i;if(h<0||a.length==1){i=false}else if(h==a.length-1){i=true}else if(a.indexOf(g,h+1)!=-1){i=false}else if(h==0){i=true}else{if(!String.isNullOrWhiteSpace(f.currencySymbol())&&a.indexOf(f.currencySymbol())>=0){i=false}else{var j=false;var k=false;for(var l=0;l<h;l++){var m=a.charAt(l);if(m!="("&&!/\s/i.test(m)){j=true;break}}for(var n=h+g.length;n<a.length;n++){var o=a.charAt(n);if(o!=")"&&!/\s/i.test(o)){k=true;break}}i=j!=k}}if(i){var p=$5(a,g,"");var q=16|64|4|1|2;if(function(){var r=$ad(p,q,e,c);c=r.p3;return r.ret}()&&!b.e(p)){d=9;c=c/100;return{ret:true,p2:c,p3:d}}var r=q|32;if(function(){var s=$ad(p,r,e,c);c=s.p3;return s.ret}()&&!b.e(p)){d=10;c=c/100;return{ret:true,p2:c,p3:d}}}}d=-1;c=NaN;return{ret:false,p2:c,p3:d}},w:function(a,b,c,d){var e=b.g;if(e==null){e=$$0.$cf.currentCulture()}var f=$b($$0.$cg.$type,e.getFormat($$0.$cg.$type));if(f!=null){var g=f.timeSeparator();if(a.contains(g)){var h=$.ig.util.stringSplit(a,[g],1);if(h!=null&&h.length>1&&h.length<=3){var i,j,k;i=j=k=0;var l=2;var m=1|2;var n=1|2|32;if(function(){var o=$ad(h[0],l,e,i);i=o.p3;return o.ret}()&&i>=0&&i<=9999){var o=h.length==2?n:m;if(function(){var p=$ad(h[1],o,e,j);j=p.p3;return p.ret}()&&j>=0&&j<60){if(h.length==2||function(){var p=$ad(h[2],n,e,k);k=p.p3;return p.ret}()&&k>=0&&k<60){d=46;c=$.ig.util.timeSpanFromHours(i+j/60+k/3600);return{ret:true,p2:c,p3:d}}}}}}}d=-1;c=-9007199254740991;return{ret:false,p2:c,p3:d}},f:function(a,b,c){var d=b==null||b.length<30?b:b.substr(0,30);return this.x(0,c,d,a)},g:function(a,b,c){try{$$a4.$k.gg(a,c)}catch(d){var e=new $$t.kx(2,null,d,null,true);if(this.y(e)==false){return 1}return 0}return 2},h:function(a){if(this.j._a3()._j().count()>1){var b=$$t.$dy.h(a);var d=this.j._a3()._j().getEnumerator();while(d.moveNext()){var c=d.current();if($$t.$ik._cf(c._j(),b)){var e=new $$t.kx(20,null,null,null,false);if(this.y(e)){return 1}return 0}}}return 2},workbook:function(){return this.k},isFixedDecimalEnabled:function(){return this.m},fixedDecimalPlaceCount:function(){return this.z},$type:new $.ig.Type("SpreadsheetEditHelper",$.ig.$ot,[$$t.$ek.$type])},true);$c("SpreadsheetEditHelper_TextChangeWithOptions:es","Object",{b:null,a:null,c:null,init:function(a,b,c){$.ig.$op.init.call(this);this.a=c;this.b=b;this.c=a},d:function(a,b){if(!String.isNullOrEmpty(b._v())){a.name(b._v())}if($$a4.$ah.l_op_Inequality(b._d(),null)){a.colorInfo(b._d())}if($l(b._p(),null)){a.height($.ig.truncate($$a4.$aa.f(b._p().value())))}if($l(b._r(),null)){a._strikeout$i($m($$0.$aq.$type,$j(b._r(),true)?true:false))}if($l(b._t(),null)){a.underlineStyle(b._t().value())}if($l(b._o(),null)){a._bold$i($m($$0.$aq.$type,$j(b._o(),false)?false:true))}if($l(b._q(),null)){a._italic$i($m($$0.$aq.$type,$j(b._q(),false)?false:true))}if($l(b._s(),null)){a.superscriptSubscriptStyle(b._s().value())}},e:function(a,b){if(this.b._f()){var c=a.getCellFormat(b);var d=c.font();var e=this.b;this.d(d,e)}},f:function(a){this.g(a,this.a.h)},g:function(a,b){if(a._owner()==null){return}var d=b.getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$ew.$type,c);if(e!=null){if(e.e>0){this.d(a._getFont1(e.f,e.e),e.a)}}else{var f=$b($$t.$ex.$type,c);if(f!=null){this.g(a,f.h)}}}},$type:new $.ig.Type("SpreadsheetEditHelper_TextChangeWithOptions",$.ig.$ot)},true);$c("ParseEditValueCache:er","Object",{a:null,f:false,j:0,g:null,h:0,k:null,m:null,q:null,p:null,l:null,b:false,init:function(a){this.h=-1;$.ig.$op.init.call(this);this.a=a.workbook();this.g=this.a._e6();this.f=a.isFixedDecimalEnabled();this.j=a.fixedDecimalPlaceCount()},n:function(){if(this.k==null){this.k=function(a){return a!=null?a:""}($$t.$dy.db(this.g,true))}return this.k},i:function(){if(this.h<0){this.h=$$t.$dy.cs(this.g)}return this.h},o:function(){if(this.m==null){this.m=function(a){return a!=null?a:""}($$t.$dy.db(this.g,false))}return this.m},c:function(a){if(this.p==null){var b=$$a4.$k.eb(this.g.dateTimeFormat());var c=$$a4.$k.eb(this.g.dateTimeFormat());var d=!String.isNullOrEmpty(b);var e=!String.isNullOrEmpty(c);var f="";if(d||e){f=d&&e?$$8.$l.f(b)+"|"+$$8.$l.f(c):d?$$8.$l.f(b):$$8.$l.f(c);f=$6("({0})\\s*({0})",f)}var g=!String.isNullOrEmpty(f)?"(\\+|("+f+"))":"(\\+)";this.p=new $$8.l(g,0)}var h=this.p.i(a);if(h.i()){return true}return false},e:function(a){if(this.l!=a){this.l=a;this.b=this.d(a)}return this.b},d:function(a){var b=this.g;var c=b.numberFormat();if(a!=null){a=$5($5($5(a,c.positiveSign(),""),c.negativeSign(),""),c.currencySymbol(),"").trim();if(!String.isNullOrEmpty(c.numberDecimalSeparator())){var d=a.indexOf(c.numberDecimalSeparator());if(d>=0){var e=c.numberDecimalSeparator().length;if(e==a.length){return true}if(d<a.length-e&&/\s/i.test(a.charAt(d+e))){return true}if(d>0&&/\s/i.test(a.charAt(d=1))){return true}}}if(!String.isNullOrEmpty(c.numberGroupSeparator())){var f=a.indexOf(c.numberGroupSeparator());if(f>=0){var g=c.numberGroupSeparator().length;if(g==a.length){return true}if(f==0||f==a.length-g){return true}if(f<a.length-g&&/\s/i.test(a.charAt(f+g))){return true}if(f>0&&/\s/i.test(a.charAt(f-1))){return true}if(this.q==null){var h=$$8.$l.f(c.numberGroupSeparator());var i=$$8.$l.f(c.numberDecimalSeparator());var j=String.isNullOrEmpty(c.currencySymbol())?"":"|"+$$8.$l.f(c.currencySymbol());this.q=new $$8.l("^(?:(?:\\+|-"+j+"|\\(|\\s)*)((?:\\d+"+h+"?)+)(?:"+i+"\\d*)?(?:(?:e|E)(?:-|\\+|\\d)+)?(?:(?:\\+|-"+j+"|\\)|\\s)*)$",0)}var k=this.q.i(a);var l=c.numberGroupSizes()||[3];if(k.i()){var m=$.ig.util.stringSplit(k.m().item(1).g(),[c.numberGroupSeparator()],0);for(var n=m.length-1,o=n;o>=0;o--){var p=l[Math.min(o,l.length-1)];if(p==0){continue}else if(m[o].length>p){return true}else if(m[o].length<p&&o!=0){return true}}}}}}return false},$type:new $.ig.Type("ParseEditValueCache",$.ig.$ot)},true);$c("IGFormattedTextSettings:eu","Object",{init:function(){$.ig.$op.init.call(this)},_u:null,_i:$m($$0.$aq.$type,null),_j:$m(Number,null),_k:$m($$0.$aq.$type,null),_l:$m($$0.$aq.$type,null),_m:$m($$a4.$ca.$type,null),_n:$m($$a4.$cb.$type,null),_c:null,_a:0,equals1:function(a){var b=$b($$t.$eu.$type,a);return b!=null&&this.equals(b)},getHashCode:function(){return this._a.getHashCode()},_v:function(a){if(arguments.length===1){if(this._u!=a){this._u=a;this._ab(String,a,2)}return a}else{return this._u}},_o:function(a){if(arguments.length===1){if($l(this._i,a)){this._i=a;this._ab($$0.$ai.$type.specialize($$0.$aq.$type),a,4)}return a}else{return this._i}},_p:function(a){if(arguments.length===1){if($l(this._j,a)){this._j=a;this._ab($$0.$ai.$type.specialize(Number),a,8)}return a}else{return this._j}},_b:function(){return this._a},_q:function(a){if(arguments.length===1){if($l(this._k,a)){this._k=a;this._ab($$0.$ai.$type.specialize($$0.$aq.$type),a,16)}return a}else{return this._k}},_r:function(a){if(arguments.length===1){if($l(this._l,a)){this._l=a;this._ab($$0.$ai.$type.specialize($$0.$aq.$type),a,32)}return a}else{return this._l}},_s:function(a){if(arguments.length===1){if($l(this._m,a)){this._m=a;this._ab($$0.$ai.$type.specialize($$a4.$ca.$type),a,64)}return a}else{return this._m}},_t:function(a){if(arguments.length===1){if($l(this._n,a)){this._n=a;this._ab($$0.$ai.$type.specialize($$a4.$cb.$type),a,256)}return a}else{return this._n}},_d:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(this._c,a)){this._c=a;this._ab($$a4.$ah.$type,a,128)}return a}else{return this._c}},_w:function(a){this._x(a,false)},_x:function(a,b){var c=this._y(String,this._u,a._u,b,2,null);this._u=c.p0;var d=this._y($$0.$ai.$type.specialize($$0.$aq.$type),this._i,a._i,b,4,null);this._i=d.p0;var e=this._y($$0.$ai.$type.specialize(Number),this._j,a._j,b,8,null);this._j=e.p0;var f=this._y($$0.$ai.$type.specialize($$0.$aq.$type),this._l,a._l,b,32,null);this._l=f.p0;var g=this._y($$0.$ai.$type.specialize($$0.$aq.$type),this._k,a._k,b,16,null);this._k=g.p0;var h=this._y($$0.$ai.$type.specialize($$a4.$ca.$type),this._m,a._m,b,64,null);this._m=h.p0;var i=this._y($$0.$ai.$type.specialize($$a4.$cb.$type),this._n,a._n,b,256,null);this._n=i.p0;var j=this._y($$a4.$ah.$type,this._c,a._c,b,128,null);this._c=j.p0},_y:function($t,a,b,c,d,e){if((e||$$4.$m.defaultEqualityComparerValue($t)).equalsC(a,b)==c){this._a&=~d;a=$f($t)}return{p0:a}},_z:function(a){this._x(a,true)},equals:function(a){if(a._a!=this._a){return false}if($l(a._j,this._j)||$l(a._l,this._l)||$l(a._k,this._k)||$l(a._m,this._m)||$l(a._n,this._n)||$l(a._i,this._i)){return false}if(!$.ig.$op.equalsStatic(a._u,this._u)){return false}if(!$.ig.$op.equalsStatic(a._c,this._c)){return false}return true},_f:function(){return this._a!=0},_g:function(a){return(a&this._a)!=0},_aa:function(a){if(a._a!=0){if(!this._g(2)){this._v(a._v())}if(!this._g(4)){this._o(a._o())}if(!this._g(8)){this._p(a._p())}if(!this._g(32)){this._r(a._r())}if(!this._g(64)){this._s(a._s())}if(!this._g(256)){this._t(a._t())}if(!this._g(16)){this._q(a._q())}if(!this._g(128)){this._d(a._d())}}},_ab:function($t,a,b){if($$4.$m.defaultEqualityComparerValue($t).equalsC(a,$f($t))){this._a&=~b}else{this._a|=b}},$type:new $.ig.Type("IGFormattedTextSettings",$.ig.$ot,[$$0.$b.$type.specialize(-1)])},true);$$t.$eu.$type.initSelfReferences();$c("IGFormattedTextElement:ev","Object",{a:null,f:0,e:0,init:function(){this.a=new $$t.eu;$.ig.$op.init.call(this)},b:function(a){return this.f<=a&&a<this.f+this.e},c:function(){return this.a._f()},d:function($t,a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();if(b.c()){return true}}return false},$type:new $.ig.Type("IGFormattedTextElement",$.ig.$ot)},true);$c("IGFormattedTextRun:ew","IGFormattedTextElement",{init:function(){$$t.$ev.init.call(this)},$type:new $.ig.Type("IGFormattedTextRun",$$t.$ev.$type)},true);$c("IGFormattedTextSpan:ex","IGFormattedTextElement",{init:function(){this.h=new $$4.x($$t.$ev.$type,0);$$t.$ev.init.call(this)},h:null,c:function(){return $$t.$ev.c.call(this)||$$t.$ev.d($$t.$ev.$type,this.h)},g:function(){if(this.h.count()==0){return this}var a=$b($$t.$ex.$type,this.h.__inner[this.h.count()-1]);if(a==null){return this}return a.g()},i:function(){for(var a=this.h.count()-1;a>=0;a--){var b=this.h.__inner[a];var c=$b($$t.$ex.$type,b);if(c!=null){c.i();if(c.h.count()==0){this.h.removeAt(a)}}}},j:function(a,b){for(var c=0;c<this.h.count();c++){var d=this.h.__inner[c];if(d.b(a)||d.b(b)){var e=$b($$t.$ex.$type,d);if(e!=null){e.j(a,b)}else{var f=$b($$t.$ew.$type,d);if(f!=null){if(f.f<a){var g=f.e;f.e=a-f.f;var h=new $$t.ew;h.f=a;h.e=g-f.e;h.a._aa(f.a);f=h;c++;this.h.insert(c,f)}if(b<f.f+f.e-1){var i=f.e;f.e=b-f.f+1;var j=new $$t.ew;j.f=b+1;j.e=i-f.e;j.a._aa(f.a);f=j;c++;this.h.insert(c,f)}}}}}},$type:new $.ig.Type("IGFormattedTextSpan",$$t.$ev.$type)},true);$c("IGFormattedTextParagraph:ey","IGFormattedTextSpan",{init:function(){$$t.$ex.init.call(this)},k:$m($$a4.$ch.$type,null),c:function(){if($$t.$ex.c.call(this)){return true}return $l(this.k,null)},$type:new $.ig.Type("IGFormattedTextParagraph",$$t.$ex.$type)},true);$c("IGFormattedTextDocument:ez","IGFormattedTextElement",{h:null,i:null,init:function(){this.h=new $$4.x($$t.$ey.$type,0);this.i=new $$6.aj(0);$$t.$ev.init.call(this)},c:function(){return $$t.$ev.c.call(this)||$$t.$ev.d($$t.$ey.$type,this.h)},g:function(){var a=null;var b=this.n(a,this.h);a=b.p0;return a},n:function(a,b){var d=b.getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$ew.$type,c);if(e!=null){if(a==null){a=new $$t.eu;a._aa(e.a)}else{a._w(e.a)}}else{var f=$b($$t.$ex.$type,c);if(f!=null){var g=this.n(a,f.h);a=g.p0}}}return{p0:a}},l:function(a){a(this.a);$$t.$ez.m(a,this.h)},m:function(a,b){var d=b.getEnumerator();while(d.moveNext()){var c=d.current();a(c.a);var e=$b($$t.$ex.$type,c);if(e!=null){$$t.$ez.m(a,e.h)}}},j:function(a,b,c){$$t.$ez.k(a,b,c,this.h)},k:function(a,b,c,d){var e=false;var f=a+b-1;var h=d.getEnumerator();while(h.moveNext()){var g=h.current();if(!e){if(g.b(a)){e=true}}if(e){if(f<g.f){return}var i=$b($$t.$ew.$type,g);if(i!=null){c(i)}else{var j=$b($$t.$ex.$type,g);if(j!=null){$$t.$ez.k(a,b,c,j.h)}}}}},o:function(){var a=this.i;var b=a.c();if(b>0){var d=this.h.getEnumerator();while(d.moveNext()){var c=d.current();c.i()}var e=this.h.__inner[this.h.count()-1].g();if(e!=null){var f=$b($$t.$ew.$type,e.h.__inner[e.h.count()-1]);if(f.e>0){var g=false;if(a.item(f.f)=="\r"){g=f.e==1||f.e==2&&a.item(f.f+1)=="\n"}else if(a.item(f.f)=="\n"){g=f.e==1}if(g){e.h.removeAt(e.h.count()-1);a.y(b-f.e,f.e)}else{var h=f.f+f.e-1;if(a.item(h)=="\r"){f.e-=1}else if(a.item(h)=="\n"&&f.e>1&&a.item(h-1)=="\r"){f.e-=2}}}}}},p:function(){$$t.$ez.q(this.h,this.a)},q:function(a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();c.a._aa(b);if($b($$t.$ex.$type,c)!==null){$$t.$ez.q(c.h,c.a)}}},r:function(a,b){var c=a+b-1;var e=this.h.getEnumerator();while(e.moveNext()){var d=e.current();if(d.b(a)||d.b(c)){d.j(a,c)}}},$type:new $.ig.Type("IGFormattedTextDocument",$$t.$ev.$type)},true);$c("SpreadsheetCellEditManager$1:e1","SpreadsheetCellEditManager",{$tEditor:null,init:function($tEditor,a){this.$tEditor=$tEditor;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tEditor)}$$t.$e0.init.call(this,a)},ac:function(a){var $self=this;var b;if(!function(){var c=$self.a4(b);b=c.p0;return c.ret}()){return false}return this.a2(a,b)},ah:function(a,b){var $self=this;var c;if(!function(){var d=$self.a4(c);c=d.p0;return d.ret}()){return false}switch(a){case 86:case 85:b=false;break}if(b){var d=new $$t.f1(a,null,c);this.g()._gu(d);if(d.cancel()){return true}}if(!this.a3(a,c)){return false}if(b){this.g()._gt(new $$t.f0(a,null,c))}return true},a1:function(){},a2:function(a,b){if(this.g().isInEditMode()){switch(a){case 198:case 125:case 126:case 119:case 161:case 120:case 121:case 163:case 162:case 160:return true}}return true},a3:function(a,b){if(this.g().isInEditMode()){var c=this.g().activeSelectionCellRangeFormat().font();switch(a){case 119:c._bold$i($m($$0.$aq.$type,$j(c._bold$i(),true)?false:true));return true;case 120:c._italic$i($m($$0.$aq.$type,$j(c._italic$i(),true)?false:true));return true;case 121:c._strikeout$i($m($$0.$aq.$type,$j(c._strikeout$i(),true)?false:true));return true;case 125:c.height($$t.$dy.cm(c.height(),true));return true;case 126:c.height($$t.$dy.cm(c.height(),false));return true;case 163:c.superscriptSubscriptStyle(c.superscriptSubscriptStyle()==2?0:2);return true;case 162:c.superscriptSubscriptStyle(c.superscriptSubscriptStyle()==1?0:1);return true;case 161:c.underlineStyle($$t.$dy.al(c.underlineStyle(),this.g()._d3()));return true;case 160:c.underlineStyle($$t.$dy.am(c.underlineStyle(),this.g()._d3()));return true;case 198:this.g()._ip();return true}}return false},a4:function(a){if(!this.g().isInEditMode()){a=null;return{ret:false,p0:a}}else{a=this.a1();return{ret:a!=null,p0:a}}},$type:new $.ig.Type("SpreadsheetCellEditManager$1",$$t.$e0.$type)},true);$c("TableExpansionInfo:e3","Object",{d:null,b:null,c:null,init:function(){this.b=new $$a4.l0;this.c=new $$a4.l0;$.ig.$op.init.call(this)},e:function(a,b,c){var d=a._by();if(c){return d._firstRowIndex()<=b._firstRowIndex()&&d._lastRowIndex()>=b._lastRowIndex()}else{return d._firstColumnIndex()<=b._firstColumnIndex()&&d._lastColumnIndex()>=b._lastColumnIndex()}},a:function(a,b){if(a==null||a.length>1){return null}if(b==null||b.length>1){return null}var c=a[0];var d=b[0];var e=false;var f=null;if(c.isProtected()){return null}var h=c.tables().getEnumerator();while(h.moveNext()){var g=h.current();if(g._by()._intersectsWith(d)){if(f==null){f=g}else if(f!=g){return null}}}if(f!=null){if(f._by()._contains1(d)){return null}if($$t.$e3.e(f,d,true)){if(d._firstColumnIndex()<f._by()._firstColumnIndex()){return null}e=true}else{if(!$$t.$e3.e(f,d,false)){return null}if(d._firstRowIndex()<f._by()._firstRowIndex()){return null}e=false}}else{if(d._firstColumnIndex()>0){var j=c.tables().getEnumerator();while(j.moveNext()){var i=j.current();var k=i._by();if(i._by()._lastColumnIndex()+1==d._firstColumnIndex()&&$$t.$e3.e(i,d,true)){e=true;f=i;break}}}if(f==null&&d._firstRowIndex()>0){var m=c.tables().getEnumerator();while(m.moveNext()){var l=m.current();var n=l._by();if(l._by()._lastRowIndex()+1==d._firstRowIndex()&&!l.isTotalsRowVisible()&&$$t.$e3.e(l,d,false)){e=false;f=l;break}}}if(f==null){return null}}var o=f._by();var p=e?new $$a4.l0(1,o._firstRowIndex(),o._lastRowIndex(),o._lastColumnIndex()+1,d._lastColumnIndex()):new $$a4.l0(1,o._lastRowIndex()+1,d._lastRowIndex(),o._firstColumnIndex(),o._lastColumnIndex());var r=c.rows()._m(p._firstRowIndex(),p._lastRowIndex()).getEnumerator();while(r.moveNext()){var q=r.current();var t=q._ch(p._firstColumnIndex(),p._lastColumnIndex(),true).getEnumerator();while(t.moveNext()){var s=t.current();if(s.o()&&!d._contains2(q.index(),s.r())){return null}}}var v=c.mergedCellsRegions().getEnumerator();while(v.moveNext()){var u=v.current();if(u._t(p._firstRowIndex(),p._firstColumnIndex(),p._lastRowIndex(),p._lastColumnIndex())){return null}}var w=new $$t.e3;w.d=f;if(e){w.b=o._withLastColumnIndex(d._lastColumnIndex())}else{w.b=o._withLastRowIndex(d._lastRowIndex())}w.c=p;return w},f:function(a,b,c){if(a==null||a.length>1){return false}var d=a[0];var e=d._de(c.o(),c.m());if(e==null){return false}var f=e._by();var g=0;var h=e.isTotalsRowVisible()?f._withLastRowIndex(f._lastRowIndex()-1):f;for(var j=0;j<b.length;j++){var i=b[j];if(h._contains1(i)){continue}if(!f._intersectsWith(i)){continue}if(!h._intersectsWith(i)&&f._intersectsWith(i)&&i._height()==1){continue}g=Math.max(g,i._lastRowIndex()-h._lastRowIndex())}if(g==0){return false}var k=f._lastRowIndex()+g;var m=d.rows()._m(f._lastRowIndex()+1,f._lastRowIndex()+g).getEnumerator();while(m.moveNext()){var l=m.current();var o=l._ch(f._firstColumnIndex(),f._lastColumnIndex(),true).getEnumerator();while(o.moveNext()){var n=o.current();if(n.o()){k=l.index();break}}if(k>f._lastRowIndex()){break}}var p=k-f._lastRowIndex();var q=g-p;if(q>0){e.insertDataRows(e.dataAreaRegion()._aa(),q)}if(p>0){var r=e._by();r=r._withLastRowIndex(r._lastRowIndex()+p);e._resize2(r._toString1(true,true,2,1,null),1)}return true},g:function(){if(this.d.worksheet()==null){return}var b=this.d.worksheet().tables().getEnumerator();while(b.moveNext()){var a=b.current();var c=a._by();if(c._intersectsWith(this.c)){return}}var d=true;var f=this.d.worksheet().rows()._m(this.c._firstRowIndex(),this.c._lastRowIndex()).getEnumerator();while(f.moveNext()){var e=f.current();var h=e._ch(this.c._firstColumnIndex(),this.c._lastColumnIndex(),true).getEnumerator();while(h.moveNext()){var g=h.current();if(g.o()){d=false;break}}if(!d){break}}if(d){return}if($$a4.$l0._l_op_Inequality(this.d._by(),this.b)){this.d._resize2(this.b._toString1(true,true,2,1,null),1)}},$type:new $.ig.Type("TableExpansionInfo",$.ig.$ot)},true);$c("TextAnalyzer:e4","Object",{n:null,b:0,c:0,d:0,k:null,m:null,l:null,init:function(a,b,c){this.k=null;this.m=null;this.l=null;$.ig.$op.init.call(this);this.n=a;this.b=b;this.d=Math.max(0,this.j()-(b+c));this.c=c},a:function(a,b,c,d,e){var f=a.length;var g=b+c<=f;if(g){return new $$t.e4(a,b,f-c-b)}return new $$t.e4(a,d,e)},toString:function(){var a=new $$6.aj(0);a.l("'");a.l(this.n);a.l("' (");a.l(this.o());a.l(",");a.l(this.p());a.l(",");a.l(this.q());a.l(")");return a.toString()},e:function(){return this.b},o:function(){if(this.k==null){if(String.isNullOrEmpty(this.n)){this.k=String.empty()}else if(this.e()==0||this.e()>this.j()){this.k=String.empty()}else{this.k=this.n.substr(0,this.e())}}return this.k},p:function(){if(this.l==null){if(String.isNullOrEmpty(this.n)){this.l=String.empty()}else if(this.f()==0||this.e()+this.f()>this.j()){this.l=String.empty()}else{this.l=this.n.substr(this.e(),this.f())}}return this.l},f:function(){return this.c},g:function(){return this.e()},h:function(){return this.d},i:function(){return Math.max(-1,this.j()-this.h())},q:function(){if(this.m==null){if(String.isNullOrEmpty(this.n)){this.m=String.empty()}else if(this.h()==0||this.h()>this.j()){this.m=String.empty()}else{this.m=this.n.substr(this.j()-this.h(),this.h())}}return this.m},j:function(){return this.n.length},$type:new $.ig.Type("TextAnalyzer",$.ig.$ot)},true);$c("SpreadsheetActiveCellChangedEventArgs:fv","EventArgs",{_c:null,_b:null,init:function(a,b){this._c=new $$t.dz;this._b=new $$t.dz;$$0.$w.init.call(this);this._c=a;this._b=b},newValue:function(){return this._b},oldValue:function(){return this._c},$type:new $.ig.Type("SpreadsheetActiveCellChangedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetActivePaneChangedEventArgs:fw","EventArgs",{_c:null,_b:null,init:function(a,b){$$0.$w.init.call(this);this._c=a;this._b=b},newValue:function(){return this._b},oldValue:function(){return this._c},$type:new $.ig.Type("SpreadsheetActivePaneChangedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetActiveTableChangedEventArgs:fx","EventArgs",{_c:null,_b:null,init:function(a,b){$$0.$w.init.call(this);this._c=a;this._b=b},newValue:function(){return this._b},oldValue:function(){return this._c},$type:new $.ig.Type("SpreadsheetActiveTableChangedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetActiveWorksheetChangedEventArgs:fy","EventArgs",{_c:null,_b:null,init:function(a,b){$$0.$w.init.call(this);this._c=a;this._b=b},newValue:function(){return this._b},oldValue:function(){return this._c},$type:new $.ig.Type("SpreadsheetActiveWorksheetChangedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetCellDropDownItemSelectingEventArgs:fz","EventArgs",{_b:null,_d:null,init:function(a,b){this._b=new $$t.dz;$$0.$w.init.call(this);this._b=a;this._d=b},_cell:function(){return this._b},_selectedItem:function(){return this._d},$type:new $.ig.Type("SpreadsheetCellDropDownItemSelectingEventArgs",$$0.$w.$type)},true);$c("SpreadsheetCommandExecutedEventArgs:f0","EventArgs",{_b:0,_d:null,_e:null,init:function(a,b,c){$$0.$w.init.call(this);this._b=a;this._d=b;this._e=c},command:function(){return this._b},commandParameter:function(){return this._d},sourceElement:function(){return this._e},$type:new $.ig.Type("SpreadsheetCommandExecutedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetCommandExecutingEventArgs:f1","CancelEventArgs",{_c:0,_e:null,_f:null,init:function(a,b,c){$$6.$ag.init.call(this,0);this._c=a;this._e=b;this._f=c},command:function(){return this._c},commandParameter:function(){return this._e},sourceElement:function(){return this._f},$type:new $.ig.Type("SpreadsheetCommandExecutingEventArgs",$$6.$ag.$type)},true);$c("SpreadsheetEditModeExitingEventArgs:f2","CancelEventArgs",{_c:null,_f:false,_e:false,_i:null,init:function(a,b,c,d){this._c=new $$t.dz;$$6.$ag.init.call(this,0);this._c=a;this._f=c;this._e=b;this._i=d},acceptChanges:function(a){if(arguments.length===1){this._e=a;return a}else{return this._e}},canCancel:function(){return this._f},cell:function(){return this._c},editText:function(){return this._i},$type:new $.ig.Type("SpreadsheetEditModeExitingEventArgs",$$6.$ag.$type)},true);$c("SpreadsheetEditModeExitedEventArgs:f3","EventArgs",{_b:null,init:function(a){this._b=new $$t.dz;$$0.$w.init.call(this);this._b=a},cell:function(){return this._b},$type:new $.ig.Type("SpreadsheetEditModeExitedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetEditModeEnteringEventArgs:f4","CancelEventArgs",{_c:null,
init:function(a){this._c=new $$t.dz;$$6.$ag.init.call(this,0);this._c=a},cell:function(){return this._c},$type:new $.ig.Type("SpreadsheetEditModeEnteringEventArgs",$$6.$ag.$type)},true);$c("SpreadsheetEditModeEnteredEventArgs:f5","EventArgs",{_b:null,init:function(a){this._b=new $$t.dz;$$0.$w.init.call(this);this._b=a},cell:function(){return this._b},$type:new $.ig.Type("SpreadsheetEditModeEnteredEventArgs",$$0.$w.$type)},true);$c("SpreadsheetEditModeValidationErrorEventArgs:f6","EventArgs",{init:function(a,b,c){this._cell=new $$t.dz;$$0.$w.init.call(this);this.action(0);this.cell(a);this.validationRule(b);this.canStayInEditMode(!c)},_action:0,action:function(a){if(arguments.length===1){this._action=a;return a}else{return this._action}},_canStayInEditMode:false,canStayInEditMode:function(a){if(arguments.length===1){this._canStayInEditMode=a;return a}else{return this._canStayInEditMode}},_cell:null,cell:function(a){if(arguments.length===1){this._cell=a;return a}else{return this._cell}},_validationRule:null,validationRule:function(a){if(arguments.length===1){this._validationRule=a;return a}else{return this._validationRule}},$type:new $.ig.Type("SpreadsheetEditModeValidationErrorEventArgs",$$0.$w.$type)},true);$c("SpreadsheetEditRangePasswordNeededEventArgs:f7","CancelEventArgs",{_e:null,_f:null,_g:null,init:function(a,b){$$6.$ag.init.call(this,0);this._f=b;this._e=a;this._g=new $$4.g($$a4.$y.$type,1,this._e)},ranges:function(){return $$5.$e.a($$a4.$y.$type,this._g)},_i:function(a){var b=new $$4.x($$a4.$y.$type,0);this._j(a,this._e,b);if(b.count()>0){var c=new $$4.x($$a4.$y.$type,0);$$a4.$k.fn($$a4.$jk.$type,this._f,function(d){c.addRange(d.protection().allowedEditRanges())});this._j(a,c,null)}},_j:function(a,b,c){var d=$b($$a4.$j.$type,a);var f=b.getEnumerator();while(f.moveNext()){var e=f.current();if(e.isProtected()){e.unprotect();if(c!=null&&!e.isProtected()){c.add(e)}}}},_getRangesArray:function(){return this.ranges()},unprotect:function(){this._i(null)},$type:new $.ig.Type("SpreadsheetEditRangePasswordNeededEventArgs",$$6.$ag.$type)},true);$c("SpreadsheetHyperlinkExecutingEventArgs:f8","CancelEventArgs",{_c:null,init:function(a){$$6.$ag.init.call(this,0);this._c=a},hyperlink:function(){return this._c},_workingDirectory:null,workingDirectory:function(a){if(arguments.length===1){this._workingDirectory=a;return a}else{return this._workingDirectory}},$type:new $.ig.Type("SpreadsheetHyperlinkExecutingEventArgs",$$6.$ag.$type)},true);$c("SpreadsheetSelectionChangedEventArgs:f9","EventArgs",{_b:null,init:function(a){$$0.$w.init.call(this);this._b=a},pane:function(){return this._b},$type:new $.ig.Type("SpreadsheetSelectionChangedEventArgs",$$0.$w.$type)},true);$c("SpreadsheetUserPromptDisplayingEventArgs:ga","EventArgs",{_b:null,init:function(a){$$0.$w.init.call(this);$$ak.$c.y(a);this._b=a},canCancel:function(){return this._b._b},cancel:function(a){if(arguments.length===1){this._b._c=a;return a}else{return this._b._c}},caption:function(a){if(arguments.length===1){this._b._h=a;return a}else{return this._b._h}},displayMessage:function(a){if(arguments.length===1){this._b._d=a;return a}else{return this._b._d}},exception:function(){return this._b._f},message:function(a){if(arguments.length===1){this._b._i=a;return a}else{return this._b._i}},trigger:function(){return this._b._a},$type:new $.ig.Type("SpreadsheetUserPromptDisplayingEventArgs",$$0.$w.$type)},true);$c("SpreadsheetWorkbookDirtiedEventArgs:gb","EventArgs",{init:function(){$$0.$w.init.call(this)},$type:new $.ig.Type("SpreadsheetWorkbookDirtiedEventArgs",$$0.$w.$type)},true);$c("SortFilterAreaBase:gc","Object",{init:function(){$.ig.$op.init.call(this)},r:$m($$t.$e7.$type,null),a:function(){if(!this.r.hasValue()){this.aa()}return this.r.value()},g:function(){},b:function(){},o:function(){},p:function(){},ag:function(a){},q:function(){},d:function(){},c:function(){},s:function(a){},u:function(a,b){},x:function(a,b){},y:function(a,b){},z:function(){},v:function(a){},t:function(a){},w:function(a,b){},aa:function(){},ab:function(a){this.r=$m($$t.$e7.$type,a)},n:function(){},ac:function(a){var $self=this;var b=new $$4.q($$a4.$ab.$type,0);this.ae(function(c,d){var e=d._h()!=null?d._h().fill():null;if(e==null){e=c._ar()}if(e==null||$$t.$dy.bc(e)){e=$$a4.$ab.noColor()}else{e=e._c($self.c().workbook())}if(b.add(e)){a(e)}})},ad:function(a){var $self=this;var b=new $$4.q($$a4.$ah.$type,0);this.ae(function(c,d){var e=d._h()!=null&&d._h().font()!=null?d._h().font().colorInfo():null;if($$a4.$ah.l_op_Equality(e,null)){e=c._bh()}if($$a4.$ah.l_op_Equality(e,null)||e.isAutomatic()||e.equals($self.c().workbook().styles().normalStyle()._i().font().colorInfo())){e=$$a4.$ah.automatic()}else{e=$$a4.$ah.l_op_Implicit_WorkbookColorInfo_Color(e._getResolvedColor1($self.c().workbook()))}if(b.add(e)){a(e)}})},af:function(a){var b=new $$4.q($$6.$u.$type.specialize($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type)),0);this.ae(function(c,d){var e=$$t.$dy.d0(d.iconInfo())||$$t.$dy.d4;if(b.add(e)){a(e)}})},ae:function(a){var b=this.d();if(b!=null){var c=this.c();var d=this.q();var e=b.firstRow();var f=b.lastRow();var g=false;var i=c.conditionalFormats().getEnumerator();while(i.moveNext()){var h=i.current();for(var j=0;j<h.regions().count();j++){if(h.regions().item(j)._s(b)){g=true}}if(g){break}}var k=new $$4.x($$a4.$y5.$type,1,this.o());for(var l=e;l<=f;l++){var m=c.rows()._aj(l);var n=false;for(var o=0;o<k.count();o++){if(!k.__inner[o].filter()._e(c,m,l,k.__inner[o].columnIndex())){n=true;break}}if(!n){var p=c._b4(m,d);var q=g?c._getCellConditionalFormat1(l,d)||$$a4.$xd._a:$$a4.$xd._a;a(p,q)}}}},m:function(a){var c=this.p().getEnumerator();while(c.moveNext()){var b=c.current();var d=$b($$a4.$aea.$type,b);if(d!=null){if(d.iconSet()==-1||!d._n().hasValue()){if($$t.$dy.ap(a)==-1){return true}}else if(d.iconSet()==a._c&&$j(d._iconIndex$i(),a._d)){return true}}}return false},j:function(a){var b=$b($$a4.$y4.$type,this.b());if(b==null){return false}if(b.iconSet()==-1||!b._p().hasValue()){return $$t.$dy.ap(a)==-1}return a!=null&&b.iconSet()==a._c&&$j(b._iconIndex$i(),a._d)},l:function(a){var c=this.p().getEnumerator();while(c.moveNext()){var b=c.current();var d=$b($$a4.$ad7.$type,b);if(d!=null){if(this.f(a,d.fontColorInfo())){return true}}}return false},i:function(a){var b=$b($$a4.$y1.$type,this.b());return b!=null&&this.f(a,b.fontColorInfo())},f:function(a,b){var c=$$a4.$ah.l_op_Equality(a,null)||a.isAutomatic();var d=$$a4.$ah.l_op_Equality(b,null)||b.isAutomatic();if(c!=d){return false}if(c){return true}var e=a._getResolvedColor1(this.c().workbook());var f=b._getResolvedColor1(this.c().workbook());return e.equals(f)},k:function(a){var c=this.p().getEnumerator();while(c.moveNext()){var b=c.current();var d=$b($$a4.$ad6.$type,b);if(d!=null){if(this.e(a,d.fill())){return true}}}return false},h:function(a){var b=$b($$a4.$yt.$type,this.b());return b!=null&&this.e(a,b.fill())},e:function(a,b){var c=$$t.$dy.bc(a);var d=$$t.$dy.bc(b);if(c!=d){return false}if(c){return true}var e=a._c(this.c().workbook());var f=b._c(this.c().workbook());return e.equals(f)},$type:new $.ig.Type("SortFilterAreaBase",$.ig.$ot)},true);$c("WorksheetSortFilterArea:gd","SortFilterAreaBase",{ah:null,ai:0,init:function(a,b){$$t.$gc.init.call(this);this.ah=a;this.ai=b},t:function(a){this.c().filterSettings().applyFillFilter(this.ai,a)},v:function(a){this.c().filterSettings()._applyFontColorFilter(this.ai,a)},w:function(a,b){this.c().filterSettings().applyIconFilter(this.ai,a,b)},s:function(a){this.c().filterSettings().applyAverageFilter(this.ai,a)},u:function(a,b){this.c().filterSettings().applyDatePeriodFilter(this.ai,a,b)},x:function(a,b){this.c().filterSettings().applyRelativeDateRangeFilter(this.ai,a,b)},y:function(a,b){this.c().filterSettings()._applyTopOrBottomFilter1(this.ai,a,b)},z:function(){this.c().filterSettings().applyYearToDateFilter(this.ai)},q:function(){return this.c().filterSettings().region().firstColumn()+this.ai},d:function(){return this.c().filterSettings()._ad(new $$a4.hs(this.ai))},aa:function(){var a;var b=$$t.$dy.bz(this.c(),this.ai,a);a=b.p2;this.ab(a)},g:function(){return this.c().filterSettings().getFilter(this.ai)!=null},b:function(){return this.c().filterSettings().getFilter(this.ai)},o:function(){return $$t.$dy.bx(this.c(),this.ai)},p:function(){var d__=new $$t.gf((-2));d__.___4__this=this;return d__},n:function(){var a=this.g();if(a){this.c().filterSettings().clearFilter(this.ai)}return a},ag:function(a){var b=this.c().filterSettings().sortSettings().sortConditions();b.clear();b.add(new $$a4.hs(this.ai),a)},c:function(){return this.ah},$type:new $.ig.Type("WorksheetSortFilterArea",$$t.$gc.$type)},true);$c("TableSortFilterArea:ge","SortFilterAreaBase",{ah:null,init:function(a){$$t.$gc.init.call(this);this.ah=a},t:function(a){this.ah.applyFillFilter(a)},v:function(a){this.ah._applyFontColorFilter(a)},w:function(a,b){this.ah.applyIconFilter(a,b)},s:function(a){this.ah.applyAverageFilter(a)},u:function(a,b){this.ah.applyDatePeriodFilter(a,b)},x:function(a,b){this.ah.applyRelativeDateRangeFilter(a,b)},y:function(a,b){this.ah._applyTopOrBottomFilter1(a,b)},z:function(){this.ah.applyYearToDateFilter()},q:function(){return this.ah._at()},d:function(){return this.ah.dataAreaRegion()},aa:function(){var a;var b=$$t.$dy.b1(this.ah,a);a=b.p1;this.ab(a)},g:function(){return this.ah.filter()!=null},b:function(){return this.ah.filter()},o:function(){return $$t.$dy.by(this.ah)},p:function(){var d__=new $$t.gg((-2));d__.___4__this=this;return d__},ag:function(a){var b=this.ah.table().sortSettings().sortConditions();b.clear();b.add(this.ah,a)},n:function(){var a=this.g();if(a){this.ah.clearFilter()}return a},c:function(){return this.ah._worksheet()},$type:new $.ig.Type("TableSortFilterArea",$$t.$gc.$type)},true);$c("PredefinedShapes:gh","Object",{f:null,init:function(){$.ig.$op.init.call(this);this.f=new $$4.h(String,$$t.$ce.$type,0)},b:function(){if($$t.$gh.a==null){{if($$t.$gh.a==null){var a=new $$t.gh;$$t.$gh.a=a}}}return $$t.$gh.a},c:function(a){if(a.ahLst()==null&&a.avLst()==null){var b=a.xmlCache();var c=new $$2.a7(b);var d=new $$2.at(3,c);if(!d.isEmptyElement()){d.moveToContent();this.j(a,d)}}return new $$t.ce(null,a)},d:function(a){var $self=this;if(!this.f.containsKey(a)){this.k(null)}var b;if(function(){var c=$self.f.tryGetValue(a,b);b=c.p1;return c.ret}()){return b}return null},h:function(){var a=new $$7.e(0);{var b=new $$7.e(2,$$6.$g.fromBase64String($$t.$gh.i));try{if(b==null){return null}try{{var c=new $$ae.b(b,0);try{var d=new Array(4096);while(true){var e=c.read(d,0,d.length);if(e==0){break}a.write(d,0,e)}}finally{if(c!=null){c.dispose()}}}}catch(f){}}finally{if(b!=null){b.dispose()}}}a.position(0);return a},j:function(a,b){var $self=this;this.l($$ae.$b6.$type,a,b,function(c){switch(b.localName()){case"avLst":a.avLst(new $$ae.cd);$self.o(b,a.avLst());return true;case"gdLst":a.gdLst(new $$ae.cd);$self.o(b,a.gdLst());return true;case"pathLst":a.pathLst(new $$ae.da);$self.n(b,a.pathLst());return true;default:case"ahLst":case"cxnLst":return b.isEmptyElement();case"rect":a.rect(function(){var $ret=new $$ae.ce;$ret._b=$$ae.$ge.a(b.getAttribute1("l"));$ret._d=$$ae.$ge.a(b.getAttribute1("t"));$ret._c=$$ae.$ge.a(b.getAttribute1("r"));$ret._a=$$ae.$ge.a(b.getAttribute1("b"));return $ret}());return b.isEmptyElement()}})},k:function(a){{var b=$$t.$gh.h();try{var c=new $$2.at(1,b);c.moveToContent();var d=false;while(d||c.read()){d=false;if(c.nodeType()==1&&!c.isEmptyElement()){var e=c.name();if(a!=null&&!a.contains(e)){d=true;c.skip();continue}var f=new $$ae.b6;this.j(f,c);this.f.item(e,new $$t.ce(e,f))}}}finally{if(b!=null){b.dispose()}}}},l:function($t,a,b,c){if(b.isEmptyElement()){return}b.moveToElement();var d=b.depth();var e=false;while(d<=b.depth()&&(e||b.read())){e=false;if(b.nodeType()==1){if(!c(a)){e=true;b.skip()}}if(b.nodeType()==15){if(b.depth()==d){break}}}},m:function(a,b){var $self=this;this.l($$4.$x.$type.specialize($$ae.$e1.$type),b,a,function(c){switch(a.localName()){case"close":c.add(new $$ae.c7);return true;case"arcTo":var d=new $$ae.c6;d.wR($$ae.$ge.a(a.getAttribute1("wR")));d.hR($$ae.$ge.a(a.getAttribute1("hR")));d.stAng($$ae.$gd.a(a.getAttribute1("stAng")));d.swAng($$ae.$gd.a(a.getAttribute1("swAng")));c.add(d);return a.isEmptyElement()}var e=new $$4.x($$ae.$bt.$type,0);$self.p(a,e);switch(a.localName()){case"moveTo":var f=new $$ae.db;f.pt(e.__inner[0]);c.add(f);return true;case"lnTo":var g=new $$ae.c9;g.pt(e.__inner[0]);c.add(g);return true;case"quadBezTo":var h=new $$ae.dc;h.pt1(e.__inner[0]);h.pt2(e.__inner[1]);c.add(h);return true;case"cubicBezTo":var i=new $$ae.c8;i.pt1(e.__inner[0]);i.pt2(e.__inner[1]);i.pt3(e.__inner[2]);c.add(i);return true;default:return a.isEmptyElement()}})},n:function(a,b){var $self=this;this.l($$ae.$da.$type,b,a,function(c){if(a.localName()=="path"){var d=new $$ae.c5;d._c=$m($$0.$aq.$type,$$t.$gh.e(a,"extrusionOk",true));d._d=$m($$ae.$hg.$type,$g($.ig.$ep.parse($$ae.$hg.$type,function(e){return e!=null?e:"norm"}(a.getAttribute1("fill")),false)));d._f=$m($$0.$aq.$type,$$t.$gh.e(a,"stroke",true));var e=a.getAttribute1("w");if(!String.isNullOrEmpty(e)){d._g=$m($$v.$cc.$type,new $$v.cc(1,$$2.$ae.n(e)))}var f=a.getAttribute1("h");if(!String.isNullOrEmpty(f)){d._e=$m($$v.$cc.$type,new $$v.cc(1,$$2.$ae.n(f)))}$self.m(a,d.b());c.b().add(d);return true}return false})},p:function(a,b){this.l($$4.$x.$type.specialize($$ae.$bt.$type),b,a,function(c){if(a.localName()=="pt"){var d=new $$ae.bt;d._a=$$ae.$ge.a(a.getAttribute1("x"));d._b=$$ae.$ge.a(a.getAttribute1("y"));c.add(d);return true}else{return a.isEmptyElement()}})},o:function(a,b){this.l($$ae.$cd.$type,b,a,function(c){if(a.localName()=="gd"){var d=new $$ae.cc;d._b=a.getAttribute1("name");d._a=a.getAttribute1("fmla");c.b().add(d);return true}return a.isEmptyElement()})},e:function(a,b,c){var d=a.getAttribute1(b);return d!=null?$$2.$ae.d(d):c},g:function(a,b,c){var d=a.getAttribute1(b);return d!=null?$$2.$ae.o(d):c},$type:new $.ig.Type("PredefinedShapes",$.ig.$ot)},true);$c("ShapeGuide:gj","Object",{c:null,init:function(a){$.ig.$op.init.call(this);this.c=a},a:function(a,b){var c=$.ig.util.stringSplit(b,[" "],1);var d=c[0];switch(c.length){case 2:{if(d=="val"){var e;if(function(){var f=$ac(c[1],e);e=f.p1;return f.ret}()){return new $$t.gk(a,e)}}return new $$t.gl(a,c[1],$$t.$go.j(d))}case 3:{return new $$t.gm(a,c[1],c[2],$$t.$go.k(d))}case 4:{return new $$t.gn(a,c[1],c[2],c[3],$$t.$go.l(d))}case 0:case 1:{return new $$t.gk(a,NaN)}default:{return new $$t.gn(a,c[1],c[2],c[3],$$t.$go.l(d))}}},b:function(a){},$type:new $.ig.Type("ShapeGuide",$.ig.$ot)},true);$c("ShapeGuide_ConstantShapeGuide:gk","ShapeGuide",{d:0,init:function(a,b){$$t.$gj.init.call(this,a);this.d=b},b:function(a){return this.d},$type:new $.ig.Type("ShapeGuide_ConstantShapeGuide",$$t.$gj.$type)},true);$c("ShapeGuide_ShapeGuide1:gl","ShapeGuide",{e:null,d:null,init:function(a,b,c){$$t.$gj.init.call(this,a);this.e=b;this.d=c},b:function(a){var b=a.c(this.e);return this.d(b)},$type:new $.ig.Type("ShapeGuide_ShapeGuide1",$$t.$gj.$type)},true);$c("ShapeGuide_ShapeGuide2:gm","ShapeGuide",{e:null,f:null,d:null,init:function(a,b,c,d){$$t.$gj.init.call(this,a);this.e=b;this.f=c;this.d=d},b:function(a){var b=a.c(this.e);var c=a.c(this.f);return this.d(b,c)},$type:new $.ig.Type("ShapeGuide_ShapeGuide2",$$t.$gj.$type)},true);$c("ShapeGuide_ShapeGuide3:gn","ShapeGuide",{e:null,f:null,g:null,d:null,init:function(a,b,c,d,e){$$t.$gj.init.call(this,a);this.e=b;this.f=c;this.g=d;this.d=e},b:function(a){var b=a.c(this.e);var c=a.c(this.f);var d=a.c(this.g);return this.d(b,c,d)},$type:new $.ig.Type("ShapeGuide_ShapeGuide3",$$t.$gj.$type)},true);$c("ShapeGuideFormula:go","Object",{init:function(){$.ig.$op.init.call(this)},j:function(a){var t1=a;L0:while(true){switch(t1){case"abs":return $$t.$go.d;case"sqrt":return $$t.$go.u;case"val":return $$t.$go.w;default:t1="val";continue L0}break}},k:function(a){switch(a){case"at2":return $$t.$go.g;case"cos":return $$t.$go.i;case"max":return $$t.$go.n;case"min":return $$t.$go.o;case"sin":return $$t.$go.t;case"tan":return $$t.$go.v;default:return null}},l:function(a){switch(a){case"*/":return $$t.$go.q;case"+-":return $$t.$go.f;case"+/":return $$t.$go.e;case"?:":return $$t.$go.m;case"cat2":return $$t.$go.h;case"mod":return $$t.$go.p;case"pin":return $$t.$go.r;case"sat2":return $$t.$go.s;default:return null}},b:function(a){return a/6e4/180*Math.PI},a:function(a){return a*180/Math.PI*6e4},$type:new $.ig.Type("ShapeGuideFormula",$.ig.$ot)},true);$c("FormatCellsDialogDataBuilder:gq","Object",{b:null,a:null,j:false,h:0,i:null,k:false,l:false,init:function(a,b){this.j=true;this.h=2147483647&~(208404486|32768|33554432);$.ig.$op.init.call(this);this.b=a;this.a=b;this.i=new $$a4.o(a[0].workbook(),0)},f:function(a,b){if(a==null||a.length==0||b==null||b.length==0){return new $$t.nn}var c=new $$t.gq(a,b);var d,e,f,g,h,i;d=e=f=g=h=i=null;var j=new $$t.gt;var k=new $$t.gt;var l=new $$t.gu;var m=new $$t.gu;for(var n=0;n<a.length;n++){var o=a[n];for(var p=0;p<b.length;p++){var q=b[p];var r=q.firstRow();var s=q.lastRow();var t=q.firstColumn();var u=q.lastColumn();var v=r;c.k=false;var w=false;var y=o.rows()._m(r,s).getEnumerator();while(y.moveNext()){var x=y.current();var z=x.index();if(z>r){i=c.e(o,z-1,z,t,u,j,k,4,2,134217728,67108864,true,i)}if(z!=v){if(!c.k){c.q(o,t,u);if(t<u){h=c.c(o,v,t,u,j,true,h)}}if(!w&&z-v>1){w=true;i=c.e(o,v,v+1,t,u,j,k,4,2,134217728,67108864,true,i)}}c.l=false;var aa=t;var ac=x._ch(t,u,true).getEnumerator();while(ac.moveNext()){var ab=ac.current();if(!ab.n()){continue}if(aa<ab.r()){c.p(x,aa,ab.r()-1)}c.o(ab.j());aa=ab.r()+1}if(aa<=u){c.p(x,aa,u)}if(t<u){h=c.c(o,x.index(),t,u,j,true,h)}v=x.index()+1}if(v<=s){if(!c.k){c.q(o,t,u);if(t<u){h=c.c(o,v,t,u,j,true,h)}}if(v>0){i=c.e(o,v-1,v,t,u,j,k,4,2,134217728,67108864,true,i)}if(!w&&v<s){w=true;i=c.e(o,v,v+1,t,u,j,k,4,2,134217728,67108864,true,i)}}if(r==0){d=c.d(o,r,t,u,j,134217728,67108864,d)}else{d=c.e(o,r-1,r,t,u,j,k,4,2,134217728,67108864,false,d)}if(s<o.workbook().maxRowCount()-1){e=c.e(o,s,s+1,t,u,j,k,4,2,134217728,67108864,true,e)}else{e=c.d(o,s,t,u,j,4,2,e)}if(t==0){f=c.d(o,t,r,s,l,524288,262144,f)}else{f=c.e(o,t-1,t,r,s,l,m,4194304,2097152,524288,262144,false,f)}if(u<o.workbook().maxColumnCount()-1){g=c.e(o,u,u+1,r,s,l,m,4194304,2097152,524288,262144,true,g)}else{g=c.d(o,u,r,s,l,4194304,2097152,g)}}}var ad=new $$t.nn;ad._ad=$$t.$gq.m(a,b);if(h!=null){ad._t=h._b;ad._e=h._a}if(i!=null){ad._s=i._b;ad._d=i._a}var ae=c.i;for(var af=1;af!=1073741824;af=af<<1){switch(af){case 1:ad._m=ae.alignment();break;case 2:ad._p=e._b;break;case 4:ad._b=e._a;break;case 8:ad._q=ae.diagonalBorderColorInfo();break;case 16:ad._j=ae.diagonalBorders();break;case 32:ad._c=ae.diagonalBorderStyle();break;case 64:ad._i=ae.fill();break;case 128:ad._z=ae.font()!=null?ae.font()._bold$i():$m($$0.$aq.$type,null);break;case 256:ad._r=ae.font()!=null?ae.font().colorInfo():null;break;case 512:ad._x=ae.font()!=null?ae.font().height():-1;break;case 1024:ad._aa=ae.font()!=null?ae.font()._italic$i():$m($$0.$aq.$type,null);break;case 2048:ad._ah=ae.font()!=null?ae.font().name():null;break;case 4096:ad._ab=ae.font()!=null?ae.font()._strikeout$i():$m($$0.$aq.$type,null);break;case 8192:ad._k=ae.font()!=null?ae.font().superscriptSubscriptStyle():-1;break;case 16384:ad._l=ae.font()!=null?ae.font().underlineStyle():-1;break;case 65536:ad._ai=ae.formatString();break;case 131072:ad._y=ae.indent();break;case 262144:ad._u=f._b;break;case 524288:ad._f=f._a;break;case 1048576:ad._ac=ae._locked$i();break;case 2097152:ad._v=g._b;break;case 4194304:ad._g=g._a;break;case 8388608:ad._ae=$m($$0.$aw.$type,ae.rotation());break;case 16777216:ad._af=ae._shrinkToFit$i();break;case 67108864:ad._w=d._b;break;case 134217728:ad._h=d._a;break;case 268435456:ad._n=ae.verticalAlignment();break;case 536870912:ad._ag=ae._wrapText$i();break}}return ad},g:function(a){var b=new $$t.ei;a._v().initializeEditFont(b,false);var c=new $$t.nn;c._z=b.e;c._r=b.c;c._x=b.d;c._aa=b.f;c._ah=b.i;c._ab=b.g;c._k=b.a;c._l=b.b;return c},m:function(a,b){var c=0;for(var d=0;d<a.length;d++){if(a[d].mergedCellsRegions().count()==0){continue}for(var e=0;e<b.length;e++){var f=b[e];var g=a[d].mergedCellsRegions();for(var h=0;h<g.count();h++){if(g.item(h)._t(f.firstRow(),f.firstColumn(),f.lastRow(),f.lastColumn())){c++;if(b.length>1){return $m($$0.$aq.$type,null)}var i=g.item(h)._h();if(i._firstColumnIndex()!=f.firstColumn()||i._firstRowIndex()!=f.firstRow()||i._lastColumnIndex()!=f.lastColumn()||i._lastRowIndex()!=f.lastRow()){return $m($$0.$aq.$type,null)}}}}}if(c==0){return $m($$0.$aq.$type,false)}if(a.length==c){return $m($$0.$aq.$type,true)}return $m($$0.$aq.$type,null)},n:function(a,b,c){var d=a._ff();var e=a._f9(b);var f=null;while(f==null||f.r()<c){f=d.__inner[e];this.o(f.b());e++}},c:function(a,b,c,d,e,f,g){if(g!=null&&g._d){return g}var h=g!=null?g:new $$t.gr;var i=f?4194304:4;var j=f?2097152:2;var k=f?524288:134217728;var l=f?262144:67108864;e.h(a,b,c,d);e.c();var m=c;var n;while(m<d){n=e.b();if(m==e.f()){e.c()}m++;var o=e.b();var p=$g(n._da(i,null));var q=$$t.$dy.cq(p);var r=$g(o._da(k,null));var s=$$t.$dy.cq(r);var t;var u;if(q>=s){u=p;t=n._da(j,null)}else{u=r;t=o._da(l,null)}if(!h.e(u,t)){break}if($.ig.$op.referenceEquals(n,o)){m=e.f()}}return h},o:function(a){for(var b=1;b!=1073741824;b=b<<1){if((this.h&b)!=0){var c=a._da(b,null);if(this.j){this.i._setValue(b,c)}else if(!$.ig.$op.equalsStatic(c,this.i._getValue(b))){this.h&=~b;this.i._ds(b)}}}this.j=false},d:function(a,b,c,d,e,f,g,h){if(h!=null&&h._d){return h}var i=h==null?new $$t.gr:h;e.h(a,b,c,d);while(e.c()){var j=e.b();if(!i.e($g(j._da(f,null)),j._da(g,null))){break}}return i},p:function(a,b,c){if(a._hasCellFormat()){if(!this.l){this.l=true;this.o(a._cellFormatInternal().d())}}else if(!this.k){this.n(a.worksheet(),b,c)}},q:function(a,b,c){this.k=true;this.n(a,b,c)},e:function(a,b,c,d,e,f,g,h,i,j,k,l,m){if(m!=null&&m._d){return m}var n=m==null?new $$t.gr:m;f.h(a,b,d,e);f.c();g.h(a,c,d,e);g.c();var o=d;while(o<=e){if(o>g.f()){g.c()}if(o>f.f()){f.c()}var p=$g(f.b()._da(h,null));var q=$$t.$dy.cq(p);var r=$g(g.b()._da(j,null));var s=$$t.$dy.cq(r);var t;var u;if(q==s&&!l||s>q){u=r;t=g.b()._da(k,null)}else{u=p;t=f.b()._da(i,null)}if(!n.e(u,t)){break}o=Math.min(f.f()+1,g.f()+1)}return n},$type:new $.ig.Type("FormatCellsDialogDataBuilder",$.ig.$ot)},true);$c("CellBorderValue:gr","Object",{init:function(){$.ig.$op.init.call(this)},c:false,_a:0,_b:null,_d:false,e:function(a,b){if(!this.c){this.c=true;this._a=a;this._b=b}else if(this._d){return false}else if(this._a!=a||!$.ig.$op.equalsStatic(this._b,b)){this._d=true;this._a=-1;this._b=null;return false}return true},$type:new $.ig.Type("CellBorderValue",$.ig.$ot)},true);$c("RowColumnBaseCellFormatEnumerator:gs","Object",{init:function(){$.ig.$op.init.call(this)},a:null,e:0,d:0,b:function(){return this.a},g:function(){return this.e},f:function(){return this.d},h:function(a,b,c,d){},c:function(){},$type:new $.ig.Type("RowColumnBaseCellFormatEnumerator",$.ig.$ot)},true);$c("RowCellFormatEnumerator:gt","RowColumnBaseCellFormatEnumerator",{init:function(){$$t.$gs.init.call(this)},i:null,n:0,o:0,k:null,l:null,m:0,j:null,h:function(a,b,c,d){this.i=a;this.k=a.rows()._aj(b);this.n=c;this.o=d;this.m=-1;this.l=null;this.j=null;this.a=null;this.e=-1;this.d=-1},c:function(){if(this.d>=this.o){this.a=null;this.e=this.d=this.o+1;return false}else if(this.m<0){this.m=this.n;if(this.k!=null){this.l=this.k._ch(this.n,this.o,false).getEnumerator();if(!this.l.moveNext()){this.l=null}}}else{this.m=this.d+1}while(this.l!=null){var a=this.l.current();if(a.r()>=this.m&&a.n()){break}if(!this.l.moveNext()){this.l=null}}if(this.l!=null){var b=this.l.current();if(b.r()==this.m){this.e=this.d=this.m;this.a=b.j();return true}}if(this.j==null||this.j.r()<this.m){this.j=this.i._cb(this.m)}if(this.k!=null&&this.k._hasCellFormat()){this.a=this.k._cellFormatInternal().d()}else{this.a=this.j.b()}this.e=this.m;if(this.l!=null&&this.l.current().r()<=this.j.r()){this.d=this.l.current().r()-1}else{this.d=this.j.r()}return true},$type:new $.ig.Type("RowCellFormatEnumerator",$$t.$gs.$type)},true);$c("ColumnCellFormatEnumerator:gu","RowColumnBaseCellFormatEnumerator",{init:function(){$$t.$gs.init.call(this)},i:null,n:0,o:0,m:0,l:0,j:null,k:null,h:function(a,b,c,d){this.i=a;this.l=b;this.j=a._cb(b);this.n=c;this.o=d;this.m=-1;this.k=null;this.a=null;this.e=-1;this.d=-1},c:function(){if(this.d>=this.o){this.a=null;this.e=this.d=this.o+1;return false}else if(this.m<0){this.m=this.n;this.k=this.i.rows()._m(this.n,this.o).getEnumerator();if(!this.k.moveNext()){this.k=null}}else{this.m=this.d+1}while(this.k!=null){var a=this.k.current();if(a.index()>=this.m){break}if(!this.k.moveNext()){this.k=null}}if(this.k!=null){var b=this.k.current();if(b.index()==this.m){var c=b._a8(this.l);if(c==null&&b._hasCellFormat()){c=b._cellFormatInternal().d()}if(c!=null){this.e=this.d=this.m;this.a=c;return true}}}this.a=this.j.b();this.e=this.m;if(this.k!=null&&this.m==this.k.current().index()&&!this.k.moveNext()){this.k=null}this.d=this.k!=null?this.k.current().index()-1:this.o;return true},$type:new $.ig.Type("ColumnCellFormatEnumerator",$$t.$gs.$type)},true);$c("SetFormatCellsDialogDataHelper:gv","Object",{init:function(){$.ig.$op.init.call(this)},e:null,c:null,b:null,a:null,f:function(){var $self=this;var a=this.c;var b=this.b;if($l(a._ad,b._ad)){if($j(b._ad,true)){this.e._g2(1)}else{this.e._g2(0)}}this.j(a._p,a._b,b._p,b._b);this.j(a._w,a._h,b._w,b._h);this.j(a._u,a._f,b._u,b._f);this.j(a._v,a._g,b._v,b._g);this.j(a._t,a._e,b._t,b._e);this.j(a._s,a._d,b._s,b._d);if(b._j!=0&&(b._j!=a._j||$$a4.$ah.l_op_Inequality(b._q,a._q)||b._c!=a._c)){this.k($$a4.$b7.$type,a._j,b._j,16,$$t.$dy.ek);this.j(a._q,a._c,b._q,b._c)}var c=0;var d=function(e){c++};this.i(d);if(c==1){this.k($$a4.$ab.$type,a._i,b._i,64,$$t.$dy.el);this.k($$0.$ai.$type.specialize($$0.$aq.$type),a._z,b._z,128,$$t.$dy.ei);this.k($$a4.$ah.$type,a._r,b._r,256,$$t.$dy.em);this.k($$0.$aw.$type,a._x,b._x,512,$$t.$dy.eo);this.k($$0.$ai.$type.specialize($$0.$aq.$type),a._aa,b._aa,1024,$$t.$dy.er);this.k(String,a._ah,b._ah,2048,$$t.$dy.en);this.k($$0.$ai.$type.specialize($$0.$aq.$type),a._ab,b._ab,4096,$$t.$dy.ew);this.k($$a4.$ca.$type,a._k,b._k,8192,$$t.$dy.ey);this.k($$a4.$cb.$type,a._l,b._l,16384,$$t.$dy.ez);this.k(String,a._ai,b._ai,65536,$$t.$dy.ep);this.k($$a4.$cg.$type,a._m,b._m,1,$$t.$dy.eh);this.k($$0.$aw.$type,a._y,b._y,131072,$$t.$dy.eq);this.k($$0.$ai.$type.specialize($$0.$aq.$type),a._ac,b._ac,1048576,$$t.$dy.es);this.k($$0.$ai.$type.specialize($$0.$aw.$type),a._ae,b._ae,8388608,function(e,f){$$t.$dy.eu(e,f.value())});this.k($$0.$ai.$type.specialize($$0.$aq.$type),a._af,b._af,16777216,$$t.$dy.ev);this.k($$a4.$c7.$type,a._n,b._n,268435456,$$t.$dy.e0);this.k($$0.$ai.$type.specialize($$0.$aq.$type),a._ag,b._ag,536870912,$$t.$dy.e1)}else if(c>1){var e=0;var f=function(g){e|=g};this.i(f);var g=new $$4.x($$0.$d.$type.specialize($$a4.$kl.$type),0);for(var h=1;h!=1073741824;h=h<<1){var i=null;if((e&h)!=0){switch(h){case 64:i=function(j){j._setFill($self.b._i,false,$$t.$dy.ai(j))};break;case 128:i=function(j){j._a2($$0.$ai.$type.specialize($$0.$aq.$type),$self.b._z,128,false,$$t.$dy.ai(j),function(k){return k._bold$i()},function(k,l){k._bold$i(l)})};break;case 256:i=function(j){j._a2($$a4.$ah.$type,$self.b._r,256,false,$$t.$dy.ai(j),function(k){return k.colorInfo()},function(k,l){k.colorInfo(l)})};break;case 512:i=function(j){j._a2($$0.$aw.$type,$self.b._x,512,false,$$t.$dy.ai(j),function(k){return k.height()},function(k,l){k.height(l)})};break;case 1024:i=function(j){j._a2($$0.$ai.$type.specialize($$0.$aq.$type),$self.b._aa,1024,false,$$t.$dy.ai(j),function(k){return k._italic$i()},function(k,l){k._italic$i(l)})};break;case 2048:i=function(j){j._a2(String,$self.b._ah,2048,false,$$t.$dy.ai(j),function(k){return k.name()},function(k,l){k.name(l)})};break;case 4096:i=function(j){j._a2($$0.$ai.$type.specialize($$0.$aq.$type),$self.b._ab,4096,false,$$t.$dy.ai(j),function(k){return k._strikeout$i()},function(k,l){k._strikeout$i(l)})};break;case 8192:i=function(j){j._a2($$a4.$ca.$type,$self.b._k,8192,false,$$t.$dy.ai(j),function(k){return k.superscriptSubscriptStyle()},function(k,l){k.superscriptSubscriptStyle(l)})};break;case 16384:i=function(j){j._a2($$a4.$cb.$type,$self.b._l,16384,false,$$t.$dy.ai(j),function(k){return k.underlineStyle()},function(k,l){k.underlineStyle(l)})};break;case 65536:i=function(j){j._setFormatString($self.b._ai,false,$$t.$dy.ai(j))};break;case 1:i=function(j){j._setAlignment($self.b._m,false,$$t.$dy.ai(j))};break;case 131072:i=function(j){j._setIndent($self.b._y,false,$$t.$dy.ai(j))};break;case 1048576:i=function(j){j._setLocked($self.b._ac,false,$$t.$dy.ai(j))};break;case 8388608:i=function(j){j._setRotation($self.b._ae.value(),false,$$t.$dy.ai(j))};break;case 16777216:i=function(j){j._setShrinkToFit($self.b._af,false,$$t.$dy.ai(j))};break;case 268435456:i=function(j){j._setVerticalAlignment($self.b._n,false,$$t.$dy.ai(j))};break;case 536870912:i=function(j){j._setWrapText($self.b._ag,false,$$t.$dy.ai(j))};break;default:break}if(i!=null){g.add(i)}}}this.e._io($$4.$x.$type.specialize($$0.$d.$type.specialize($$a4.$kl.$type)),g,function(j,k){var l=j.b(true);for(var m=0;m<k.count();m++){k.__inner[m](j)}j.g(l)},this.a,e,false)}},g:function(a,b,c){if($l(b._z,c._z)){a._bold$i(c._z)}if($$a4.$ah.l_op_Inequality(b._r,c._r)){a.colorInfo(c._r)}if(b._x!=c._x){a.height(c._x)}if($l(b._aa,c._aa)){a._italic$i(c._aa)}if(b._ah!=c._ah){a.name(c._ah)}if($l(b._ab,c._ab)){a._strikeout$i(c._ab)}if(b._k!=c._k){a.superscriptSubscriptStyle(c._k)}if(b._l!=c._l){a.underlineStyle(c._l)}},h:function($t,a,b,c,d){if(!$.ig.$op.equalsStatic($e($t,b),$e($t,a))){d(c)}},i:function(a){var b=this.c;var c=this.b;this.h($$a4.$ab.$type,b._i,c._i,64,a);this.h($$0.$ai.$type.specialize($$0.$aq.$type),b._z,c._z,128,a);this.h($$a4.$ah.$type,b._r,c._r,256,a);this.h($$0.$aw.$type,b._x,c._x,512,a);this.h($$0.$ai.$type.specialize($$0.$aq.$type),b._aa,c._aa,1024,a);this.h(String,b._ah,c._ah,2048,a);this.h($$0.$ai.$type.specialize($$0.$aq.$type),b._ab,c._ab,4096,a);this.h($$a4.$ca.$type,b._k,c._k,8192,a);this.h($$a4.$cb.$type,b._l,c._l,16384,a);this.h(String,b._ai,c._ai,65536,a);this.h($$a4.$cg.$type,b._m,c._m,1,a);this.h($$0.$aw.$type,b._y,c._y,131072,a);this.h($$0.$ai.$type.specialize($$0.$aq.$type),b._ac,c._ac,1048576,a);this.h($$0.$ai.$type.specialize($$0.$aw.$type),b._ae,c._ae,8388608,a);this.h($$0.$ai.$type.specialize($$0.$aq.$type),b._af,c._af,16777216,a);this.h($$a4.$c7.$type,b._n,c._n,268435456,a);this.h($$0.$ai.$type.specialize($$0.$aq.$type),b._ag,c._ag,536870912,a)},d:function(a,b){var c=this.b;var d=this.c;var e=0;if($$a4.$ah.l_op_Equality(c._p,a)&&c._b==b){d._b=c._b;d._p=c._p;e|=8}if($$a4.$ah.l_op_Equality(c._w,a)&&c._h==b){d._h=c._h;d._w=c._w;e|=2}if($$a4.$ah.l_op_Equality(c._u,a)&&c._f==b){d._f=c._f;d._u=c._u;e|=1}if($$a4.$ah.l_op_Equality(c._v,a)&&c._g==b){d._g=c._g;d._v=c._v;e|=4}if($$a4.$ah.l_op_Equality(c._s,a)&&c._d==b){d._d=c._d;d._s=c._s;e|=16}if($$a4.$ah.l_op_Equality(c._t,a)&&c._e==b){d._e=c._e;d._t=c._t;e|=32}if(c._j!=0&&$$a4.$ah.l_op_Equality(c._q,a)&&c._c==b){d._q=c._q;d._c=c._c;if(3==(c._j&3)){e|=64}if(5==(c._j&5)){e|=128}}return e},j:function(a,b,c,d){if($$a4.$ah.l_op_Inequality(a,c)||b!=d){var e=this.d(c,d);this.e._im(this.a,e,c,d)}},k:function($t,a,b,c,d){if(!$.ig.$op.equalsStatic($e($t,b),$e($t,a))){this.e._io($t,b,d,this.a,c,false)}},$type:new $.ig.Type("SetFormatCellsDialogDataHelper",$.ig.$ot)},true);$c("RangeWorksheetCellFormatBase_RangeWorksheetCellFormatFont:gx","PropertyChangeNotifier",{_g:$m($$0.$aq.$type,null),_e:null,_f:0,_h:$m($$0.$aq.$type,null),_j:null,_i:$m($$0.$aq.$type,null),_c:0,_d:0,_b:null,init:function(a){this._g=$m($$0.$aq.$type,null);this._h=$m($$0.$aq.$type,null);this._i=$m($$0.$aq.$type,null);$$ak.$r.init.call(this);$$ak.$c.y(a);this._b=a},bold:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._bold$i.apply(this,arguments);
return a}else{return $s(this._bold$i.apply(this,arguments))}},_bold$i:function(a){if(arguments.length===1){this._b._ak($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.ei,a,128);return a}else{this._b._am();return this._g}},colorInfo:function(a){if(arguments.length===1){this._b._ak($$a4.$ah.$type,$$t.$dy.em,a,256);return a}else{this._b._am();return this._e}},height:function(a){if(arguments.length===1){this._b._ak($$0.$aw.$type,$$t.$dy.eo,a,512);return a}else{this._b._am();return this._f}},italic:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._italic$i.apply(this,arguments);return a}else{return $s(this._italic$i.apply(this,arguments))}},_italic$i:function(a){if(arguments.length===1){this._b._ak($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.er,a,1024);return a}else{this._b._am();return this._h}},name:function(a){if(arguments.length===1){this._b._ak(String,$$t.$dy.en,a,2048);return a}else{this._b._am();return this._j}},strikeout:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._strikeout$i.apply(this,arguments);return a}else{return $s(this._strikeout$i.apply(this,arguments))}},_strikeout$i:function(a){if(arguments.length===1){this._b._ak($$0.$ai.$type.specialize($$0.$aq.$type),$$t.$dy.ew,a,4096);return a}else{this._b._am();return this._i}},superscriptSubscriptStyle:function(a){if(arguments.length===1){this._b._ak($$a4.$ca.$type,$$t.$dy.ey,a,8192);return a}else{this._b._am();return this._c}},underlineStyle:function(a){if(arguments.length===1){this._b._ak($$a4.$cb.$type,$$t.$dy.ez,a,16384);return a}else{this._b._am();return this._d}},setFontFormatting:function(a){this._b._ak($$a4.$fx.$type,function(b,c){b.font().setFontFormatting(c)},a,32640)},_k:function(a){$$ak.$c.z(a,"source");this._g=a._bold$i();this._e=a.colorInfo();this._f=a.height();this._h=a._italic$i();this._j=a.name();this._i=a._strikeout$i();this._c=a.superscriptSubscriptStyle();this._d=a.underlineStyle()},$type:new $.ig.Type("RangeWorksheetCellFormatBase_RangeWorksheetCellFormatFont",$$ak.$r.$type,[$$a4.$fx.$type])},true);$c("RangeWorksheetCellFormatBase_EmptyFormat:gy","RangeWorksheetCellFormatBase",{init:function(){$$t.$gw.init.call(this)},_r:function(){return null},_p:function(){return this},_setBorders:function(a,b,c){throw new $$0.r(0)},_ak:function($t,a,b,c){throw new $$0.r(0)},$type:new $.ig.Type("RangeWorksheetCellFormatBase_EmptyFormat",$$t.$gw.$type)},true);$c("spreadsheet.SpreadsheetCellRangeFormat:gz","PropertyChangeNotifierExtended",{_g:null,_j:null,init:function(a){$$ak.$s.init.call(this);$$ak.$c.y(a);var b=$$ak.$m.e($$t.$gw.$type,this._g,a,this,true);this._g=b.p0},e:function(a,b,c){if(a==this._g){this.a(b)}$$ak.$s.e.call(this,a,b,c)},alignment:function(a){if(arguments.length===1){this._g.alignment(a);return a}else{return this._g.alignment()}},fill:function(a){if(arguments.length===1){this._g.fill(a);return a}else{return this._g.fill()}},font:function(){return this._j||this._g.font()},formatString:function(a){if(arguments.length===1){this._g.formatString(a);return a}else{return this._g.formatString()}},indent:function(a){if(arguments.length===1){this._g.indent(a);return a}else{return this._g.indent()}},locked:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._locked$i.apply(this,arguments);return a}else{return $s(this._locked$i.apply(this,arguments))}},_locked$i:function(a){if(arguments.length===1){this._g._locked$i(a);return a}else{return this._g._locked$i()}},rotation:function(a){if(arguments.length===1){this._g.rotation(a);return a}else{return this._g.rotation()}},shrinkToFit:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._shrinkToFit$i.apply(this,arguments);return a}else{return $s(this._shrinkToFit$i.apply(this,arguments))}},_shrinkToFit$i:function(a){if(arguments.length===1){this._g._shrinkToFit$i(a);return a}else{return this._g._shrinkToFit$i()}},style:function(a){if(arguments.length===1){this._g.style(a);return a}else{return this._g.style()}},verticalAlignment:function(a){if(arguments.length===1){this._g.verticalAlignment(a);return a}else{return this._g.verticalAlignment()}},wrapText:function(a){if(arguments.length===1){arguments[0]=$t($$0.$aq.$type,arguments[0]);this._wrapText$i.apply(this,arguments);return a}else{return $s(this._wrapText$i.apply(this,arguments))}},_wrapText$i:function(a){if(arguments.length===1){this._g._wrapText$i(a);return a}else{return this._g._wrapText$i()}},setBorders:function(a,b,c){this._g._setBorders(a,b,c)},_u:function(a){if(a!=this._j){this._j=a;this.a("Font")}},$type:new $.ig.Type("spreadsheet.SpreadsheetCellRangeFormat",$$ak.$s.$type)},true);$c("SpreadsheetHeaderBackgroundLayer:g1","SpreadsheetRendererElementLayer$1",{_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i6.$type,a,b,$$t.$g7.m());this._t=new $$t.g2(a,this._o.runOn(this))},_m:function(){return 0},_p:function(){$$t.$ho._p.call(this);this._t.dispose()},_q:function(a,b,c,d){$$t.$hp.b(this._viewModel(),a,b,c,d)},_s:function(){return this._viewModel()._o().renderCache()},$type:new $.ig.Type("SpreadsheetHeaderBackgroundLayer",$$t.$ho.$type.specialize($$t.$i6.$type))},true);$c("SpreadsheetItemLayerObserver:hl","Object",{_a:null,init:function(){$.ig.$op.init.call(this);this._a=new $$ak.n($$t.$hl.$type,this,$$t.$hl._c,false)},dispose:function(){},_b:function(a){$$t.$dy.d9(a,this._a,true)},_d:function(a,b,c){},_c:function(a,b,c,d){a._d(b,c,d)},_e:function(a){$$t.$dy.ef(a,this._a)},$type:new $.ig.Type("SpreadsheetItemLayerObserver",$.ig.$ot,[$$0.$au.$type])},true);$c("SpreadsheetScrollRegionLayerObserver:hn","SpreadsheetItemLayerObserver",{_f:null,init:function(a){$$t.$hl.init.call(this);this._f=a},$type:new $.ig.Type("SpreadsheetScrollRegionLayerObserver",$$t.$hl.$type)},true);$c("SpreadsheetHeaderBackgroundObserver:g2","SpreadsheetScrollRegionLayerObserver",{_g:null,init:function(a,b){$$t.$hn.init.call(this,a);this._b(a);this._g=b},dispose:function(){this._e(this._f)},_d:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._f._x()){d=true}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._f._l()){d=true}else if(this._f._ay(a)){d=true}break;case"ActiveSelection":case"HotTrackedIndex":case"ActualItemPositions":case"SelectionMode":case"ResourceProvider":if(a==this._f){d=true}break;case"ResourceVersion":if(a==this._f._ad()){d=true}break}if(d){this._g()}},_h:function(a,b,c,d){a._d(b,c,d)},$type:new $.ig.Type("SpreadsheetHeaderBackgroundObserver",$$t.$hn.$type)},true);$c("SpreadsheetHeaderGridlineLayer:g5","SpreadsheetRendererElementLayer$1",{_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i6.$type,a,b,$$t.$g7.p());this._t=new $$ak.n($$t.$g5.$type,this,$$t.$g5._u,false);$$t.$dy.d9(a,this._t,true)},_m:function(){return 1},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._t)}},_q:function(a,b,c,d){var e=this._viewModel();var f=e._i(true,true);var g=f.length;var h=e._aw();var i=e._ad();var j=e._o().renderCache();var k=e._br();var l=6;var m=h?19:33;var n=h?21:35;var o=h?20:34;var p=h?22:36;var q=e._co();var r=$$t.$dy.b8(6,e._br());if(g>0){var s=r/2;var t=!e._aw();var u=e._ar();var v=e._l();var w=v.count();var x=d.__x;var y=d.__y;var z=b.d();var aa=z*2;var ab=new Array(g);var ac=0;for(var ad=0;ad<g-1;ad++){var ae=e._t(v.__inner[ad]._index());var af=ae<ac?ac:ae;var ag;switch(af){default:case 0:ag=m;break;case 1:ag=n;break;case 2:ag=o;break;case 3:case 4:ag=p;break}ab[ad]=ag;ac=ae}if(g>0){ab[g-1]=ab[g-2]}if(t){var ah=s-x;var ai=-y;var aj=c.y()-ai;var ak=b.h(c.bottom()-s)-ai;var al=1;for(var am=0;am<g;am++){var an;if(am<w&&e._av(am,true)||am==w&&e._au(am-1,true)){an=b.h(c.x()+al+f[am]-aa)-ah;a.drawLine(l,ab[am],k,an,aj,an,ak);an=b.h(c.x()+al+f[am]+aa)-ah}else{an=b.h(c.x()+al+f[am])-ah}a.drawLine(l,ab[am],k,an,aj,an,ak)}var ao=b.h(c.bottom())-(s-y);a.drawLine(l,m,k,b.h(c.x())-(s-x),ao,b.h(c.x()+f[g-1])-x+s,ao)}else{var ap=-x;var aq=s-y;var ar=c.x()-ap;var as=b.h(c.right()-s)-ap;var at=1;for(var au=0;au<g;au++){var av;if(au<w&&e._av(au,true)||au==w&&e._au(au-1,true)){av=b.h(c.y()+at+f[au]-aa)-aq;a.drawLine(l,ab[au],k,ar,av,as,av);av=b.h(c.y()+at+f[au]+aa)-aq}else{av=b.h(c.y()+at+f[au])-aq}a.drawLine(l,ab[au],k,ar,av,as,av)}var aw=b.g(c.right())-(s-x);a.drawLine(l,m,k,aw,b.h(c.y())-(s-y),aw,b.h(c.y()+f[g-1])-y+s)}}},_s:function(){return this._viewModel()._o().renderCache()},_v:function(a,b,c){var d=false;switch(b!=null?b:""){case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._viewModel()._l()){d=true}else if(this._viewModel()._ay(a)){d=true}break;case"Offset":if(a==this._viewModel()._x()){d=true}break;case"PreviousVisibleItemIndex":case"NextVisibleItemIndex":case"HotTrackedIndex":case"ActualItemPositions":case"SelectionMode":case"ResourceProvider":if(a==this._viewModel()){d=true}break;case"ResourceVersion":if(a==this._viewModel()._ad()){d=true}break}if(d){this._o()}},_u:function(a,b,c,d){a._v(b,c,d)},$type:new $.ig.Type("SpreadsheetHeaderGridlineLayer",$$t.$ho.$type.specialize($$t.$i6.$type))},true);$c("SpreadsheetHeaderSelectionLayer:g6","SpreadsheetRendererElementLayer$1",{_u:null,_t:null,_v:false,init:function(a,b){$$t.$ho.init.call(this,$$t.$i6.$type,a,b,$$t.$g7.s());this._u=new $$ak.n($$t.$g6.$type,this,$$t.$g6._x,false);$$t.$dy.d9(a,this._u,true)},_r:function(a){var b=!this._viewModel()._aw();var c=this._viewModel()._br();var d=this._viewModel()._bs();if(!b){a.width(a.width()+c)}else{a.height(a.height()+d)}return a},_m:function(){return 0},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._u)}},_q:function(a,b,c,d){var e=this._viewModel();if(e._ar()&&e._ai()!=2){var f=e._bx();var g=4;var h=b.d();var i=-d.__x;var j=-d.__y;var k=e._aw();var l=c.x();var m=c.y();var n=c.right()-h/2;var o=c.bottom()-h/2;var p=e._l();var q=e._ab().cellRanges();var r=q.count()==1;var s=1;if(k){m+=s}else{l+=s}l=b.h(l)-i;m=b.h(m)-j;n=b.h(n)-i;o=b.h(o)-j;if(k){l=n-h*2}else{m=o-h*2}var t=false;if(r){var u=$$5.$e.ad($$t.$d1.$type,q);var v=e._z();if(v!=null){if(k){if(v.startIndex()>u.firstColumn()&&v.startIndex()<=u.lastColumn()){t=true}else{m=e._bn(u.firstRow(),true,true)*f+c.y()+s;o=e._bn(u.lastRow(),false,true)*f+c.y()+s;var w=100;if(m<-w){m=-w}if(o>c.bottom()+w){o=c.bottom()+w}m=b.h(m)-j;o=b.h(o)-j;m-=h;if(v.startIndex()==u.firstColumn()){m-=h;o+=h}}}else{if(v.startIndex()>u.firstRow()&&v.startIndex()<=u.lastRow()){t=true}else{l=e._bn(u.firstColumn(),true,true)*f+c.x()+s;n=e._bn(u.lastColumn(),false,true)*f+c.x()+s;l=b.h(l)-i;n=b.h(n)-i;l-=h;if(v.startIndex()==u.firstRow()){l-=h;n+=h}}}if(!t){t=true;a.fillRectangle1(g,l,m,Math.max(n-l,0),Math.max(o-m,0))}}}if(!t){var x=e._i(true,false);var y=x.length-1;for(var z=0;z<y;z++){if(!e._as(p.__inner[z]._index())){continue}var aa=z==0||!e._as(p.__inner[z-1]._index());var ab=x[z];var ac=x[z+1];if(k){ab+=c.y()+s;ac+=c.y()+s;m=b.h(ab)-j;o=b.h(ac)-j;if(aa){m-=h}}else{ab+=c.x()+s;ac+=c.x()+s;l=b.h(ab)-i;n=b.h(ac)-i;if(aa){l-=h}}a.fillRectangle1(g,l,m,Math.max(n-l,0),Math.max(o-m,0))}}this._w(r)}else{this._w(false)}},_s:function(){return this._viewModel()._o().renderCache()},_w:function(a){if(arguments.length===1){if(a!=this._v){this._v=a;if(a){var b=$$ak.$m.e($$t.$i6.$type,this._t,this._viewModel()._z(),this._u,true);this._t=b.p0}else{var c=$$ak.$m.e($$t.$i6.$type,this._t,null,this._u,true);this._t=c.p0}}return a}else{return this._v}},_y:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._viewModel()._x()||this._viewModel()._z()!=null&&a==this._viewModel()._z()._x()){d=true}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._viewModel()._l()){d=true}else if(this._viewModel()._ay(a)){d=true}break;case"AdjacentRowColumn":if(this._v&&a==this._viewModel()){var e=$$ak.$m.e($$t.$i6.$type,this._t,this._viewModel()._z(),this._u,true);this._t=e.p0;d=true}break;case"ActiveSelection":case"SelectionMode":case"ResourceProvider":if(a==this._viewModel()){d=true}break;case"ResourceVersion":if(a==this._viewModel()._ad()){d=true}break}if(d){this._o()}},_x:function(a,b,c,d){a._y(b,c,d)},$type:new $.ig.Type("SpreadsheetHeaderSelectionLayer",$$t.$ho.$type.specialize($$t.$i6.$type))},true);$c("ElementLayerInfo:bi","Object",{f:null,b:null,a:null,init:function(a,b,c,d){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$bi.init1.call(this,1,b,c,d,null,null)},init1:function(a,b,c,d,e,f){$.ig.$op.init.call(this);$$ak.$c.z(b,"identifier");this.f=b;this.b=new $$t.bk(this,d,c);this.a=new $$t.bk(this,e,f)},g:function(){return this.f},c:function(){return this.a},d:function(){return this.b},$type:new $.ig.Type("ElementLayerInfo",$.ig.$ot)},true);$c("PredefinedSpreadsheetLayers:g7","Object",{init:function(){$.ig.$op.init.call(this)},k:function(){return $$t.$g7.a},l:function(){return $$t.$g7.b},m:function(){return $$t.$g7.c},n:function(){return $$t.$g7.d},o:function(){return $$t.$g7.e},p:function(){return $$t.$g7.f},r:function(){return $$t.$g7.h},q:function(){return $$t.$g7.g},s:function(){return $$t.$g7.i},t:function(){return $$t.$g7.j},$type:new $.ig.Type("PredefinedSpreadsheetLayers",$.ig.$ot)},true);$c("SpreadsheetPaneLayerObserver:hm","SpreadsheetItemLayerObserver",{_f:null,init:function(a){$$t.$hl.init.call(this);this._f=a},$type:new $.ig.Type("SpreadsheetPaneLayerObserver",$$t.$hl.$type)},true);$c("InvalidDataLayerObserver:g8","SpreadsheetPaneLayerObserver",{_g:null,init:function(a,b){$$t.$hm.init.call(this,a);this._g=b;this._b(a.columnScrollRegion()._x());this._b(a.rowScrollRegion()._x());this._b(a)},_d:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._f.rowScrollRegion()._x()||a==this._f.columnScrollRegion()._x()){d=true}break;case"InvalidCellArray":if(a==this._f){d=true}break;case"ResourceProvider":if(a==this._f.rowScrollRegion()||a==this._f.columnScrollRegion()){d=true}break;case"ResourceVersion":if(a==this._f.rowScrollRegion()._ad()){d=true}break}if(d){this._g()}},dispose:function(){this._e(this._f.columnScrollRegion()._x());this._e(this._f.rowScrollRegion()._x());this._e(this._f)},$type:new $.ig.Type("InvalidDataLayerObserver",$$t.$hm.$type)},true);$c("PaneInteractionLayerObserver:g9","SpreadsheetPaneLayerObserver",{_g:null,_h:false,init:function(a,b){$$t.$hm.init.call(this,a);this._g=b;this._b(a.columnScrollRegion());this._b(a.rowScrollRegion());this._b(a)},_d:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(this._h){if(a==this._f.rowScrollRegion()._x()||a==this._f.columnScrollRegion()._x()){d=true}}break;case"ItemBeingResized":case"ItemBeingResizedRelativeEdge":if(a==this._f.rowScrollRegion()||a==this._f.columnScrollRegion()){d=true}break}if(d){this._g()}},dispose:function(){this._e(this._f.columnScrollRegion());this._e(this._f.rowScrollRegion());this._e(this._f)},$type:new $.ig.Type("PaneInteractionLayerObserver",$$t.$hm.$type)},true);$c("ShapeLayerObserver:ha","SpreadsheetPaneLayerObserver",{_g:null,init:function(a,b){$$t.$hm.init.call(this,a);this._g=b;this._b(a);this._b(a.columnScrollRegion()._x());this._b(a.rowScrollRegion()._x())},dispose:function(){this._e(this._f);this._e(this._f.columnScrollRegion()._x());this._e(this._f.rowScrollRegion()._x())},_d:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._f.rowScrollRegion()._x()||a==this._f.columnScrollRegion()._x()){d=true}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._f._r()){d=true}break}if(d){this._g()}},$type:new $.ig.Type("ShapeLayerObserver",$$t.$hm.$type)},true);$c("PaneBackgroundLayerObserver:hb","SpreadsheetPaneLayerObserver",{_g:null,init:function(a,b){$$t.$hm.init.call(this,a);this._g=b;this._b(a.columnScrollRegion()._x());this._b(a.rowScrollRegion()._x());this._b(a)},_d:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(this._f._ac()!=null){if(a==this._f.rowScrollRegion()._x()||a==this._f.columnScrollRegion()._x()){d=true}}break;case"Background":if(a==this._f){d=true}break}if(d){this._g()}},dispose:function(){this._e(this._f.columnScrollRegion()._x());this._e(this._f.rowScrollRegion()._x());this._e(this._f)},$type:new $.ig.Type("PaneBackgroundLayerObserver",$$t.$hm.$type)},true);$c("SpreadsheetPaneButtonLayer:hc","SpreadsheetRendererElementLayer$1",{_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.l());this._t=new $$ak.n($$t.$hc.$type,this,$$t.$hc._y,false);$$t.$dy.d9(a,this._t,true);$$t.$dy.d9(a.columnScrollRegion(),this._t,true);$$t.$dy.d9(a.rowScrollRegion(),this._t,true)},_m:function(){return 2},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._t);$$t.$dy.ef(this._viewModel().columnScrollRegion(),this._t);$$t.$dy.ef(this._viewModel().rowScrollRegion(),this._t)}},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){var e=this._viewModel();var f=e._q();if(f.count()>0){var g=e.columnScrollRegion();var h=e.rowScrollRegion();var i=h._bx();var j=e.visibleRange();var k=g._ad();var l=$$t.$dy.b8(6,g._br());var m=l/2;var n=b.d();var o=-d.__x;var p=-d.__y;var q=$$t.$hc._v(b);var r=$$t.$hc._u(b);for(var s=0;s<f.count();s++){var t=f.__inner[s];var u=$$t.$hc._x(e,t,l,g,h,q,r);if(u>0){var v=t.g;var w=b.h(v.x()+c.x())-o;var x=b.h(v.x()+c.x()+v.width())-o;var y=b.h(v.y()+c.y())-p;var z=b.h(v.y()+c.y()+v.height())-p;var aa=x-w;var ab=z-y;var ac=(t.a&2)==0;a.drawRectangle(6,ac?65:68,g._br(),w+m,y+m,Math.max(aa-l,0),Math.max(ab-l,0));w+=n;y+=n;aa=Math.max(0,aa-n*2);ab=Math.max(0,ab-n*2);if(aa>0&&ab>0){a.fillRectangle1(ac?66:69,w,y,aa,ab);a.drawDropDownGlyph(t.a,w,y,aa,ab)}}}}},_u:function(a){return a.d()*2},_v:function(a){return a.d()},_z:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._viewModel().rowScrollRegion()._x()||a==this._viewModel().columnScrollRegion()._x()){d=true}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._viewModel().rowScrollRegion()._l()){d=true}else if(a==this._viewModel().columnScrollRegion()._l()){d=true}else if(a.getType()==$$t.$dy.d7){d=true}break;case"ActualItemPositions":if(a==this._viewModel().rowScrollRegion()){d=true}else if(a==this._viewModel().columnScrollRegion()){d=true}break;case"ResourceProvider":if(this._viewModel().rowScrollRegion()==a){d=true}break;case"ActiveCellAsRange":if(a==this._viewModel().rowScrollRegion()._ab()){d=true}break;case"ResourceVersion":if(a==this._viewModel().rowScrollRegion()._ad()){d=true}break}if(d){this._o()}},_y:function(a,b,c,d){a._z(b,c,d)},_w:function(a,b,c){var d=a.columnScrollRegion();var e=a.rowScrollRegion();var f=$$t.$dy.b8(6,d._br());return $$t.$hc._x(a,b,f,d,e,$$t.$hc._v(c),$$t.$hc._u(c))},_x:function(a,b,c,d,e,f,g){var h=d._bx();var i=a.selection()._t(new $$t.dz(b.d,b.c));var j=d._bn(i.firstColumn(),true,true)*h;var k=d._bn(i.lastColumn(),false,true)*h;var l=e._bn(i.firstRow(),true,true)*h;var m=e._bn(i.firstRow(),false,true)*h;var n=Math.max(0,Math.min(17,m-l-g));var o;switch(b.b){default:case 2:case 3:o=new $$a.ae(0,k+c,m-n,n,n);break;case 4:case 1:case 0:n=Math.max(0,Math.min(n,k-j-f));o=new $$a.ae(0,k-n-f,m-n-g,n,n);break}b.g=new $$a.ae(0,o.x(),o.y(),o.width(),o.height());return n},$type:new $.ig.Type("SpreadsheetPaneButtonLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetPaneCellBackgroundLayer:hd","SpreadsheetRendererElementLayer$1",{_u:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.m());this._u=new $$ak.n($$t.$hd.$type,this,$$t.$hd._v,false);$$t.$dy.d9(a,this._u,true);$$t.$dy.d9(a.columnScrollRegion()._x(),this._u,true);$$t.$dy.d9(a.rowScrollRegion()._x(),this._u,true)},_m:function(){return 0},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._u);$$t.$dy.ef(this._viewModel().columnScrollRegion()._x(),this._u);$$t.$dy.ef(this._viewModel().rowScrollRegion()._x(),this._u)}},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){var e=this._viewModel();var f=e._w();var g=e._k();var h=e.columnScrollRegion();var i=e.rowScrollRegion();var j=i._i(true,false);var k=h._i(true,false);var l=j.length-1;var m=k.length-1;var n=i._bx();if(l>0&&m>0&&g!=null){var o=b.d();var p=o/2;var q=-d.__x;var r=-d.__y;var s=i._br();for(var t=1;t<=l;t++){var u=g.d(t);for(var v=1;v<=m;v++){var w=f.item(t,v);var x=w.f;var y=w.g;if(x!=null||y!=null){var z,aa,ab,ac;var ad,ae,af,ag;var ah=u?g.item(t,v):null;if(ah!=null&&ah.r()){if(t>1&&g.item(t-1,v)==ah){continue}if(v>1&&g.item(t,v-1)==ah){continue}z=h._bn(ah.ab,true,true)*n+c.x();aa=h._bn(ah.x,false,true)*n+c.x();ab=i._bn(ah.ak,true,true)*n+c.y();ac=i._bn(ah.ag,false,true)*n+c.y()}else{z=k[v-1]+c.x();aa=k[v]+c.x();ab=j[t-1]+c.y();ac=j[t]+c.y()}ad=z;ae=aa;af=ab;ag=ac;z=b.h(z)-q;aa=b.h(aa)-q;ab=b.h(ab)-r;ac=b.h(ac)-r;z-=o;ab-=o;if(ah==null||!ah.r()){if(t!=l-1&&f.item(t+1,v).f!=null){ac-=o}if(v!=m-1&&f.item(t,v+1).f!=null){aa-=o}}if(x!=null){a.fillRectangle3(x,z,ab,Math.max(aa-z,0),Math.max(ac-ab,0))}if(y!=null){z=ad;aa=ae;ab=af;ac=ag;z+=o*2;aa-=o*2;if(z<aa){var ai=$$a4.$ah.l_op_Inequality(y.axisColor(),null);var aj=0;var ak=y.direction()==-5004;if(ai){var al=(aa-z)*y.axisPosition();aj=b.h(ak?aa-al:z+al)-q;a.drawLine1(5,y.axisColor(),s,aj-p,b.h(ab)-r,aj-p,b.h(ac)-r)}ab+=o*1;ac-=o*3;if(ab<ac){ab=b.h(ab)-r;ac=b.h(ac)-r;var am=ai&&y.barPositionTo()>y.barPositionFrom();var an,ao;if(ak){an=am&&y.barPositionTo()==y.axisPosition()?aj+o:b.h(aa-(aa-z)*y.barPositionTo())-q;ao=am&&y.barPositionFrom()==y.axisPosition()?aj-o:b.h(aa-(aa-z)*y.barPositionFrom())-q}else{an=am&&y.barPositionFrom()==y.axisPosition()?aj+o:b.h(z+(aa-z)*y.barPositionFrom())-q;ao=am&&y.barPositionTo()==y.axisPosition()?aj-o:b.h(z+(aa-z)*y.barPositionTo())-q}if(ao-an>=o){if($$a4.$ah.l_op_Inequality(y.barColor(),null)){var ap,aq;if(y.barFillType()==1){if(ak){aq=am&&y.barPositionFrom()==y.axisPosition()?$$t.$hd._t:y.barColor();ap=am&&y.barPositionFrom()==y.axisPosition()?y.barColor():$$t.$hd._t}else{ap=am&&y.barPositionTo()==y.axisPosition()?$$t.$hd._t:y.barColor();aq=am&&y.barPositionTo()==y.axisPosition()?y.barColor():$$t.$hd._t}}else{ap=aq=y.barColor()}a.fillRectangle4(ap,aq,true,an,ab,ao-an,ac-ab)}if($$a4.$ah.l_op_Inequality(y.barBorder(),null)){a.drawRectangle1(6,y.barBorder(),s,an-p,ab+p,ao-an,ac-ab-o)}}}}}}}}}},_w:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._viewModel().rowScrollRegion()._x()||a==this._viewModel().columnScrollRegion()._x()){d=true}break;case"CellFillArray":if(a==this._viewModel()){d=true}break}if(d){this._o()}},_v:function(a,b,c,d){a._w(b,c,d)},$type:new $.ig.Type("SpreadsheetPaneCellBackgroundLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetPaneCellBorderLayer:he","SpreadsheetRendererElementLayer$1",{_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.n());this._t=new $$ak.n($$t.$he.$type,this,$$t.$he._u,false);$$t.$dy.d9(a,this._t,true);$$t.$dy.d9(a.columnScrollRegion()._x(),this._t,true);$$t.$dy.d9(a.rowScrollRegion()._x(),this._t,true)},_m:function(){return 1},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._t);$$t.$dy.ef(this._viewModel().columnScrollRegion()._x(),this._t);$$t.$dy.ef(this._viewModel().rowScrollRegion()._x(),this._t)}},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){var e=this._viewModel();var f=e._w();var g=e._k();var h=e.columnScrollRegion();var i=e.rowScrollRegion();var j=i._i(true,false);var k=h._i(true,false);var l=j.length-1;var m=k.length-1;var n=i._bx();var o=h._br();var p=i._bs();if(l>0&&m>0){var q=b.d();var r=a.getFarPixelAdjustment(b);var s=q*2;var t=q*3;var u=q*4;var v=-d.__x;var w=-d.__y;var x=new $$a.y(0);var y=new $$a.y(0);var z=h._br();var aa=h._bs();var ab=c.y();var ac=c.x();var ad=l+1;var ae=m+1;var af=false;var ag=$$t.$dy.b8(6,p);for(var ah=1;ah<=ad;ah++){var ai=b.h(j[ah-1]+ab);var aj=ah<=l?b.h(j[ah]+ab):ai;for(var ak=1;ak<=ae;ak++){var al=b.h(k[ak-1]+ac);var am=f.item(ah,ak);if(am.a!=0){af=true}if(am.e!=0&&ak<=m){var an=b.h(k[ak]+ac);switch(am.e){case 6:{var ao=f.item(ah-1,ak);var ap=am.n;var aq=ag/2;x.__x=al-v+am.i*q;y.__x=an-r-v-am.j*q;y.__y=x.__y=ai-(q+aq+w);var ar=f.item(ah,ak-1).e==6;var as=ao.d==6;var at=am.d==6;var au=f.item(ah,ak+1).e==6;var av=f.item(ah-1,ak+1).d==6;var aw=f.item(ah,ak+1).d==6;if(as){x.__x-=q}else if(at){x.__x-=t}if(av){y.__x-=s}if(ao.c==6){var ax=g.item(ah-1,ak-1)!=g.item(ah-1,ak)||g.item(ah-1,ak-1)==null||g.item(ah-1,ak)==null;if(ax&&(ao.a&2)!=0){x.__x=Math.max(x.__x,al-v+u)}var ay=g.item(ah-1,ak+1)!=g.item(ah-1,ak)||g.item(ah-1,ak+1)==null||g.item(ah-1,ak)==null;if(ay&&(ao.a&1)!=0){y.__x=Math.min(y.__x,an-v-u)}}a.drawLine2(6,ap,p,x.__x,x.__y,y.__x,y.__y);x.__x=al-v+am.i*q;y.__x=an-r-v-am.j*q;x.__y+=s;y.__y=x.__y;if(at){x.__x-=q}else if(ar){}else if(as){x.__x-=t}if(aw){y.__x-=s}if(am.c==6){var az=g.item(ah,ak-1)!=g.item(ah,ak)||g.item(ah,ak-1)==null||g.item(ah,ak)==null;if(az&&(am.a&2)!=0){x.__x=Math.max(x.__x,al-v+u)}var a0=g.item(ah,ak+1)!=g.item(ah,ak)||g.item(ah,ak+1)==null||g.item(ah,ak)==null;if(a0&&(am.a&1)!=0){y.__x=Math.min(y.__x,an-v-u)}}a.drawLine2(6,ap,p,x.__x,x.__y,y.__x,y.__y);break}case 13:{var a1=am.n;var a2=$$t.$dy.b8(9,p)/2;x.__x=al-v+am.i*q;y.__x=an-r-v-am.j*q;y.__y=x.__y=ai-(a2+w)-q;a.drawLine2(9,a1,p,x.__x,x.__y,y.__x,y.__y);y.__y=x.__y=ai-(a2+w);a.drawLine2(8,a1,p,x.__x,x.__y,y.__x,y.__y);break}default:{var a3=$$t.$dy.i(am.e);var a4=am.n;var a5=$$t.$dy.b8(a3,p)/2;x.__x=al-v+am.i*q;y.__x=an-r-v-am.j*q;y.__y=x.__y=ai-(a5+w);if(a5>aa){y.__y=x.__y=x.__y+aa}a.drawLine2(a3,a4,p,x.__x,x.__y,y.__x,y.__y);break}}}if(am.d!=0&&ah<=l){switch(am.d){case 6:{var a6=f.item(ah,ak-1);var a7=am.m;var a8=ag/2;var a9=am.e==6;var ba=f.item(ah-1,ak).d==6;var bb=a6.e==6;var bc=f.item(ah+1,ak).e==6;var bd=f.item(ah+1,ak).d==6;var be=f.item(ah+1,ak-1).e==6;y.__x=x.__x=al-(q+a8+v);y.__y=aj-r-w-am.h*q;x.__y=ai-w+am.k*q;var bf=x.__y;var bg=y.__y;if(a6.c==6){var bh=g.item(ah,ak-1)!=g.item(ah,ak)||g.item(ah,ak-1)==null||g.item(ah,ak)==null;if(bh&&(a6.a&2)!=0){x.__y=Math.max(x.__y,ai+w+s)}var bi=g.item(ah,ak-1)!=g.item(ah,ak)||g.item(ah,ak-1)==null||g.item(ah,ak)==null;if(bi&&(a6.a&1)!=0){y.__y=Math.min(y.__y,aj-w-s)}}a.drawLine2(6,a7,o,x.__x,x.__y,y.__x,y.__y);x.__x+=s;y.__x=x.__x;x.__y=bf;y.__y=bg;if(a9){if(am.k<0){x.__y+=s}}else if(ba){if(bb){x.__y-=q}}else if(bb){if(am.k>=0){x.__y-=s}}if(bc){if(am.h<0){y.__y-=s}}else if(bd){if(be){y.__y+=s}}else if(be){y.__y+=s}if(am.c==6&&ak<ae){var bj=g.item(ah,ak+1)!=g.item(ah,ak)||g.item(ah,ak+1)==null||g.item(ah,ak)==null;if(bj&&(am.a&1)!=0){x.__y=Math.max(x.__y,ai+w+s)}var bk=g.item(ah,ak+1)!=g.item(ah,ak)||g.item(ah,ak+1)==null||g.item(ah,ak)==null;if(bk&&(am.a&2)!=0){y.__y=Math.min(y.__y,aj-w-s)}}a.drawLine2(6,a7,o,x.__x,x.__y,y.__x,y.__y);break}case 13:{var bl=am.m;var bm=$$t.$dy.b8(9,o)/2;y.__x=x.__x=al-(bm+v)-q;y.__y=aj-r-w-am.h*q;x.__y=ai-w+am.k*q;a.drawLine2(9,bl,o,x.__x,x.__y,y.__x,y.__y);y.__x=x.__x=al-(bm+v);a.drawLine2(8,bl,o,x.__x,x.__y,y.__x,y.__y);break}default:{var bn=$$t.$dy.i(am.d);var bo=am.m;var bp=$$t.$dy.b8(bn,o)/2;y.__x=x.__x=al-(bp+v);y.__y=aj-r-w-am.h*q;x.__y=ai-w+am.k*q;if(bp>z){y.__x=x.__x=x.__x+z}a.drawLine2(bn,bo,o,x.__x,x.__y,y.__x,y.__y);break}}}}}if(af){for(var bq=1;bq<ad;bq++){var br=b.h(j[bq-1]+ab);for(var bs=1;bs<ae;bs++){var bt=f.item(bq,bs);if(bt.a!=0){var bu=g.item(bq,bs);if(bu==null||!bu.r()||bq==1&&bs==1||bq==1&&g.item(bq,bs-1)!=bu||bs==1&&g.item(bq-1,bs)!=bu||g.item(bq-1,bs)!=bu&&g.item(bq,bs-1)!=bu){var bv=br;if($$t.$dy.cp(bt.e)>1){bv+=q}var bw=b.h(k[bs-1]+ac);var bx,by;if(bu!=null&&bu.r()){if(g.item(bq-1,bs)==bu){bv=b.h(i._bn(bu.ak,true,true)*n+ab)}if(g.item(bq,bs-1)==bu){bw=b.h(h._bn(bu.ab,true,true)*n+ac)}var bz=h._cf(bu.x);if(bz<0){bx=h._bn(bu.x,false,true)*n+ac}else{bx=k[bz+1]+ac;bx-=q*Math.min($$t.$dy.cp(f.item(bq,bz+1).d),2)}var b0=i._cf(bu.ag);if(b0<0){by=i._bn(bu.ag,false,true)*n+ab}else{by=j[b0+1]+ab;if($$t.$dy.cp(f.item(b0+1,bs).e)>1){by-=q}}}else{bx=k[bs]+ac;by=j[bq]+ab;bx-=q*Math.min($$t.$dy.cp(f.item(bq,bs+1).d),2);if($$t.$dy.cp(f.item(bq+1,bs).e)>1){by-=q}}var b1=b.h(bx);var b2=b.h(by);switch(bt.c){case 6:{var b3=bt.l;switch(bt.a){case 1:a.drawLine2(6,b3,o,bw+u,bv,b1,b2-q);a.drawLine2(6,b3,o,bw,bv+q,b1-u,b2);break;case 2:a.drawLine2(6,b3,o,bw,b2-q,b1-u-q,bv);a.drawLine2(6,b3,o,bw+u,b2,b1,bv+q);break;case 3:var b4=b1-bw;var b5=b2-bv;a.drawLine2(6,b3,o,bw+u,bv,bw+b4/2,bv+b5/2-q);a.drawLine2(6,b3,o,bw+b4/2,bv+b5/2-q,b1-u-q,bv);a.drawLine2(6,b3,o,b1,bv+q,bw+b4/2+u,bv+b5/2);a.drawLine2(6,b3,o,bw+b4/2+u,bv+b5/2,b1,b2-q);a.drawLine2(6,b3,o,b1-u,b2,bw+b4/2,bv+b5/2+q);a.drawLine2(6,b3,o,bw+b4/2,bv+b5/2+q,bw+u,b2);a.drawLine2(6,b3,o,bw,b2-q,bw+b4/2-u,bv+b5/2);a.drawLine2(6,b3,o,bw+b4/2-u,bv+b5/2,bw,bv+q);break}break}case 0:break;default:{var b6=bt.c==13?10:$$t.$dy.i(bt.c);var b7=bt.l;if(bt.a!=2){a.drawLine2(b6,b7,o,bw,bv,b1,b2)}if(bt.a!=1){a.drawLine2(b6,b7,o,bw,b2,b1,bv)}break}}}}}}}}},_v:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._viewModel().rowScrollRegion()._x()||a==this._viewModel().columnScrollRegion()._x()){d=true}break;case"CellFillArray":if(a==this._viewModel()){d=true}break}if(d){this._o()}},_u:function(a,b,c,d){a._v(b,c,d)},$type:new $.ig.Type("SpreadsheetPaneCellBorderLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetPaneGridlineLayer:hh","SpreadsheetRendererElementLayer$1",{_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.p());this._t=new $$ak.n($$t.$hh.$type,this,$$t.$hh._u,false);$$t.$dy.d9(a,this._t,true)},_m:function(){return 1},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._t)}},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){var e=this._viewModel();var f=e._k();var g=e._aa();var h=e._w();var i=e.rowScrollRegion()._i(true,false);var j=e.columnScrollRegion()._i(true,false);var k=i.length-1;var l=j.length-1;if(f!=null&&g!=null&&k>0&&l>0&&e.rowScrollRegion()._bx()>=.4){var m=e.rowScrollRegion()._br();var n=$$t.$dy.b8(6,m);var o=n/2;var p,q;var r=d.__x;var s=d.__y;var t=b.d();var u=t*2;p=-r;q=o-s;for(var v=0;v<k;v++){var w=b.h(i[v+1]+c.y())-q;var x=-1;var y=0;for(var z=1;z<=l;z++){var aa=h.item(v+1,z).f!=null||h.item(v+2,z).f!=null;var ab=h.item(v+2,z).e!=0;var ac=h.item(v+1,z).d!=0||h.item(v+2,z).d!=0;var ad=f.item(v+1,z)!=null&&f.item(v+1,z)==f.item(v+2,z);if(aa||ab||x>=0&&ac||ad){if(x<0){continue}var ae=0;var af=0;if(ac){af=Math.max($$t.$dy.cp(h.item(v+1,z).d),$$t.$dy.cp(h.item(v+2,z).d));if(af>1){ae=-u}else{ae=-t}}else if(aa||ab){ae=-t}a.drawLine3(g,m,b.h(j[x]+y+c.x())-p,w,b.h(j[z-1]+ae+c.x())-p,w);if(ac&&!ab&&!ad&&!aa){x=z-1;y=af>2?1:0}else{x=-1;y=0}}else if(x<0){x=z-1;y=ac&&Math.max($$t.$dy.cp(h.item(v+1,z).d),$$t.$dy.cp(h.item(v+2,z).d))>2?1:0}}if(x>=0){a.drawLine3(g,m,b.h(j[x]+y+c.x())-p,w,b.h(j[l]+c.x())-p,w)}}p=o-r;q=-s;for(var ag=1;ag<=l;ag++){var ah=b.h(j[ag]+c.x())-p;var ai=-1;var aj=0;for(var ak=0;ak<k;ak++){var al=h.item(ak+1,ag).f!=null||h.item(ak+1,ag+1).f!=null;var am=h.item(ak+1,ag+1).d!=0;var an=h.item(ak+1,ag).e!=0||h.item(ak+1,ag+1).e!=0;var ao=f.item(ak+1,ag)!=null&&f.item(ak+1,ag)==f.item(ak+1,ag+1);if(al||am||ai>=0&&an||ao){if(ai<0){continue}var ap=0;var aq=0;if(an){aq=Math.max($$t.$dy.cp(h.item(ak+1,ag).e),$$t.$dy.cp(h.item(ak+1,ag+1).e));if(aq>1){ap=-u}else{ap=-t}}else if(al||am){ap=-t}a.drawLine3(g,m,ah,b.h(i[ai]+aj+c.y())-q,ah,b.h(i[ak]+ap+c.y())-q);if(an&&!am&&!ao&&!al&&h.item(ak+1,ag+1).d==0){ai=ak;aj=aq>2?1:0}else{ai=-1;aj=0}}else if(ai<0){ai=ak;aj=an&&Math.max($$t.$dy.cp(h.item(ak+1,ag).e),$$t.$dy.cp(h.item(ak+1,ag+1).e))>2?1:0}}if(ai>=0){a.drawLine3(g,m,ah,b.h(i[ai]+aj+c.y())-q,ah,b.h(i[k]+c.y())-q)}}}},_v:function(a,b,c){var d=false;switch(b!=null?b:""){case"CellValueArray":case"GridlinePen":if(a==this._viewModel()){d=true}break}if(d){this._o()}},_u:function(a,b,c,d){a._v(b,c,d)},$type:new $.ig.Type("SpreadsheetPaneGridlineLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetPaneInteractionOverlayLayer:hi","SpreadsheetRendererElementLayer$1",{
_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.q());this._t=new $$t.g9(a,this._o.runOn(this))},_m:function(){return 2},_p:function(){$$t.$ho._p.call(this);this._t.dispose()},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){this._t._h=$$t.$hp.a(this._viewModel(),a,b,c,d)},$type:new $.ig.Type("SpreadsheetPaneInteractionOverlayLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetPaneInvalidDataLayer:hj","SpreadsheetRendererElementLayer$1",{_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.r());this._t=new $$t.g8(a,this._o.runOn(this))},_m:function(){return 2},_p:function(){$$t.$ho._p.call(this);this._t.dispose()},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){$$t.$hp.c(this._viewModel(),a,b,c,d)},$type:new $.ig.Type("SpreadsheetPaneInvalidDataLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetPaneSelectionLayer:hk","SpreadsheetRendererElementLayer$1",{_u:null,_t:null,init:function(a,b){$$t.$ho.init.call(this,$$t.$i3.$type,a,b,$$t.$g7.s());this._u=new $$ak.n($$t.$hk.$type,this,$$t.$hk._v,false);$$t.$dy.d9(a,this._u,true);$$t.$dy.d9(a.columnScrollRegion(),this._u,true);$$t.$dy.d9(a.rowScrollRegion(),this._u,true);var c=$$ak.$m.e($$t.$d6.$type,this._t,a.rowScrollRegion()._ab(),this._u,true);this._t=c.p0},_r:function(a){var b=this._viewModel().columnScrollRegion()._br();var c=this._viewModel().rowScrollRegion()._bs();a.x(a.x()-b);a.width(a.width()+b);a.y(a.y()-c);a.height(a.height()+c);return a},_m:function(){return 0},_p:function(){$$t.$ho._p.call(this);if(this._viewModel()!=null){$$t.$dy.ef(this._viewModel(),this._u);$$t.$dy.ef(this._viewModel().columnScrollRegion(),this._u);$$t.$dy.ef(this._viewModel().rowScrollRegion(),this._u);if(this._t!=null){$$t.$dy.ef(this._t,this._u)}}},_s:function(){return this._viewModel()._s.renderCache()},_q:function(a,b,c,d){var e=this._viewModel();var f=e._ag()||e.selection();var g=f.cellRanges();var h=g.count();if(h>0&&e.columnScrollRegion()._ai()!=2){var i=e.columnScrollRegion();var j=e.rowScrollRegion();var k=j._bx();var l=e.visibleRange();var m=h==1;var n=i._ad();var o=4;var p=m&&i._o().renderCache().r(o);var q=m?p?14:13:6;var r=m?3:2;var s=1;var t=0;var u=$$t.$dy.b8(q,i._br())/2;var v=b.d();var w=v/2;var x=v*2;var y=v*3;var z=v+w;var aa=-d.__x;var ab=-d.__y;var ac=10;l=new $$t.d1(Math.min(l.firstRow(),j._ag(-ac/k)._index()),Math.min(l.firstColumn(),i._ag(-ac/k)._index()),Math.max(l.lastRow(),j._ag((c.height()+ac)/k)._index()),Math.max(l.lastColumn(),i._ag((c.width()+ac)/k)._index()));var ad;if(p){ad=u/3}else if(m){ad=0}else{ad=u}for(var ae=0;ae<h;ae++){var af=g.item(ae);af=af.intersect(l);if(af.isEmpty()){continue}var ag=i._bn(af.firstColumn(),true,true)*k+c.x();var ah=i._bn(af.lastColumn(),false,true)*k+c.x();var ai=j._bn(af.firstRow(),true,true)*k+c.y();var aj=j._bn(af.lastRow(),false,true)*k+c.y();if(p==false&&ae==f.activeCellRangeIndex()&&i._ap()==false){if(af.firstRow()==j.startIndex()){ai+=v}if(af.firstColumn()==i.startIndex()){ag+=v}}ag=b.h(ag)-aa;ah=b.h(ah)-aa;ai=b.h(ai)-ab;aj=b.h(aj)-ab;ag-=v;ai-=v;var ak=ah-ag;var al=aj-ai;if(ak>x&&al>x){var am=new $$a.ae(0,ag+x,ai+x,Math.max(ak-x*2,0),Math.max(al-x*2,0));if(ae==f.activeCellRangeIndex()){var an=f._r();var ao=af.intersect(an);if(!ao.isEmpty()){var ap=i._bn(ao.firstColumn(),true,true)*k+c.x();var aq=i._bn(ao.lastColumn(),false,true)*k+c.x();var ar=j._bn(ao.firstRow(),true,true)*k+c.y();var as=j._bn(ao.lastRow(),false,true)*k+c.y();as-=v;aq-=v;ap=b.h(ap)-aa;aq=b.h(aq)-aa;ar=b.h(ar)-ab;as=b.h(as)-ab;if(p==false&&ae==f.activeCellRangeIndex()&&i._ap()==false){if(ao.firstRow()==j.startIndex()){ar+=v}if(ao.firstColumn()==i.startIndex()){ap+=v}}var at=new $$a.ae(0,ap,ar,Math.max(aq-ap,0),Math.max(as-ar,0));at.intersect(am);if(at.isEmpty()){a.fillRectangle1(t,am.x(),am.y(),am.width(),am.height())}else{a.fillRectangle2(t,am.x(),am.y(),am.width(),am.height(),at.x(),at.y(),at.width(),at.height())}if(!m){a.drawRectangle(6,37,i._br(),ap+z,ar+z,Math.max(aq-ap-y,0),Math.max(as-ar-y,0))}am=$$a.$ae.empty()}}if(!am.isEmpty()){a.fillRectangle1(t,am.x(),am.y(),am.width(),am.height())}a.drawRectangle(6,s,i._br(),ag+z,ai+z,Math.max(ak-y,0),Math.max(al-y,0))}a.drawRectangle(q,r,i._br(),ag+ad,ai+ad,Math.max(ak-ad*2,0),Math.max(al-ad*2,0));if(m){var au=6;var av;if(g.item(0).firstColumn()==0&&g.item(0).lastColumn()==i._ci()){av=new $$a.ae(0,ag,aj-y,5*v,5*v);a.drawLine(6,au,i._br(),av.right()+w,av.y()-v,av.right()+w,av.bottom());a.drawLine(6,au,i._br(),av.x()-v,av.y()-w,av.right(),av.y()-w)}else if(g.item(0).firstRow()==0&&g.item(0).lastRow()==j._ci()){av=new $$a.ae(0,ah-y,ai,5*v,5*v);a.drawLine(6,au,i._br(),av.x()-w,av.y()-v,av.x()-w,av.bottom());a.drawLine(6,au,i._br(),av.x()-v,av.bottom()+w,av.right(),av.bottom()+w)}else{av=new $$a.ae(0,ah-y,aj-y,5*v,5*v);a.drawLine(6,au,i._br(),av.x()-v,av.y()-w,av.right(),av.y()-w);a.drawLine(6,au,i._br(),av.x()-w,av.y()-v,av.x()-w,av.bottom())}var aw=5;a.fillRectangle1(aw,av.x(),av.y(),av.width(),av.height())}}if(!f._v().isEmpty()){var ax=f._v().intersect(l);if(!ax.isEmpty()){var ay=i._bn(ax.firstColumn(),true,true)*k+c.x();var az=i._bn(ax.lastColumn(),false,true)*k+c.x();var a0=j._bn(ax.firstRow(),true,true)*k+c.y();var a1=j._bn(ax.lastRow(),false,true)*k+c.y();ay=b.h(ay)-aa-v;az=b.h(az)-aa;a0=b.h(a0)-ab-v;a1=b.h(a1)-ab;var a2=az-ay;var a3=a1-a0;if(a2>0&&a3>0){a.fillRectangle1(71,ay,a0,a2,a3);ay+=z;a0+=z;a2-=y;a3-=y;if(a2>0&&a3>0){a.drawRectangle(6,72,i._br(),ay,a0,a2,a3)}}}}}},_w:function(a,b,c){var d=false;switch(b!=null?b:""){case"":case"Offset":if(a==this._viewModel().rowScrollRegion()._x()||a==this._viewModel().columnScrollRegion()._x()){d=true}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(this._viewModel().rowScrollRegion()._ab()!=null&&this._viewModel().rowScrollRegion()._ab()._a1(a)){d=true}else if(a.getType()==$$t.$dy.d8){d=true}break;case"ActiveSelection":if(this._viewModel().rowScrollRegion()==a){var e=$$ak.$m.e($$t.$d6.$type,this._t,this._viewModel().rowScrollRegion()._ab(),this._u,true);this._t=e.p0;d=true}break;case"SelectionMode":case"ResourceProvider":if(this._viewModel().rowScrollRegion()==a){d=true}break;case"ActiveCellAsRange":case"RangeToUnselect":if(a==this._viewModel().rowScrollRegion()._ab()){d=true}break;case"ResourceVersion":if(a==this._viewModel().rowScrollRegion()._ad()){d=true}break}if(d){this._o()}},_v:function(a,b,c,d){a._w(b,c,d)},$type:new $.ig.Type("SpreadsheetPaneSelectionLayer",$$t.$ho.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetRenderUtilities:hp","Object",{init:function(){$.ig.$op.init.call(this)},b:function(a,b,c,d,e){var f=a._i(true,true);var g=f.length-1;var h=a._bx();var i=a._ad();var j,k,l,m;if(a._aw()){j=11;k=13;l=12;m=14}else{j=24;k=26;l=25;m=27}var n=c.d();var o=-e.__x;var p=-e.__y;var q=a._aw();var r=d.left();var s=d.top();var t=d.right()-n/2;var u=d.bottom()-n/2;var v=a._ar();var w=a._l();var x=a._co();var y=1;if(q){s+=y}else{r+=y}r=c.h(r)-o;t=c.h(t)-o;s=c.h(s)-p;u=c.h(u)-p;for(var z=0;z<g;z++){var aa=f[z];var ab=f[z+1]-n;if(q){aa+=d.y()+y;ab+=d.y()+y;s=c.h(aa)-p;u=c.h(ab)-p}else{aa+=d.x()+y;ab+=d.x()+y;r=c.h(aa)-o;t=c.h(ab)-o}var ac=j;if(v||$l(x,null)){switch(a._t(w.__inner[z]._index())){case 3:case 4:ac=m;break;case 1:ac=k;break;case 2:ac=l;break}}var ad=Math.max(t-r,0);var ae=Math.max(u-s,0);b.fillRectangle1(ac,r,s,ad,ae)}},a:function(a,b,c,d,e){var f=a.columnScrollRegion();var g=a.rowScrollRegion();var h=$l(f._cp(),null)?f:$l(g._cp(),null)?g:null;var i=h!=null;if(h!=null){var j=c.d();var k=-e.__x;var l=-e.__y;var m=h._aw();var n=h._bx();var o=h._bn(h._cp().value(),true,true)*n;var p=d.x();var q=d.y();var r=d.right();var s=d.bottom();var t=h._br();p=c.h(p)-k;q=c.h(q)-l;r=c.h(r)-k;s=c.h(s)-l;var u=m?40:39;var v=6;var w=$$t.$dy.b8(v,t)/2;if(m){q=s=c.h(o+d.y())-l-w}else{p=r=c.h(o+d.x())-k-w}b.drawLine(v,u,t,p,q,r,s);var x=h._bp();if(!$.ig.util.isNaN(x)){x*=n;if(m){q=s=c.h(x+d.y())-l-w}else{p=r=c.h(x+d.x())-k-w}b.drawLine(v,u,t,p,q,r,s)}}return i},c:function(a,b,c,d,e){var f=a._h();var g=a._k();var h=a.columnScrollRegion();var i=a.rowScrollRegion();var j=i._i(true,false);var k=h._i(true,false);var l=j.length-1;var m=k.length-1;var n=i._bx();var o=Math.max(n,1);if(l>0&&m>0){var p=64;var q=c.d();var r=-e.__x;var s=-e.__y;var t=$$t.$dy.b8(13,h._br())*n;for(var u=1;u<=l;u++){if(f.c(u)==false){continue}var v=g.d(u);for(var w=1;w<=m;w++){if(f.item(u,w)){var x,y,z,aa;var ab=v?g.item(u,w):null;if(ab!=null&&ab.r()){if(u>1&&g.item(u-1,w)==ab){continue}if(w>1&&g.item(u,w-1)==ab){continue}x=h._bn(ab.ab,true,true)*n+d.x();y=h._bn(ab.x,false,true)*n+d.x();z=i._bn(ab.ak,true,true)*n+d.y();aa=i._bn(ab.ag,false,true)*n+d.y()}else{x=k[w-1]+d.x();y=k[w]+d.x();z=j[u-1]+d.y();aa=j[u]+d.y()}x=c.h(x-1)-r;z=c.h(z-1)-s;y=c.h(y)-r;aa=c.h(aa)-s;b.drawEllipse(t,p,h._br(),x-5,z-2,y-x+10,aa-z+4)}}}}},$type:new $.ig.Type("SpreadsheetRenderUtilities",$.ig.$ot)},true);$c("SpreadsheetMouseOperation:h4","PropertyChangeNotifierExtended",{init:function(){$$ak.$s.init.call(this)},_h:0,_j:null,_currentState:function(a){if(arguments.length===1){if(this._h!=a){var b=this._h;this._h=a;this._o(b,a);this.a("CurrentState")}return a}else{return this._h}},__l:null,_toolTip:function(a){if(arguments.length===1){if(this._j!=a){this._j=a;this.a("ToolTip")}return a}else{return this._j}},_n:function(){if(this._currentState()==2||this._currentState()==1){this._currentState(4);this._currentState(0)}},_p:function(a){if(a.b()){a.f()}this._currentState(1);if(this._m(a)&&a.c()&&this._currentState()==1){this._currentState(2);if(!a.b()){a.d()}}else if(this._currentState()==1){this._currentState(0)}},_q:function(a){},_r:function(a){},_s:function(a){},_t:function(a){if(this._currentState()==2){this._currentState(3);if(a.b()){a.f()}this._u(a);this._currentState(0)}},_g:function(a){return 0},_o:function(a,b){},_m:function(a){},_u:function(a){},$type:new $.ig.Type("SpreadsheetMouseOperation",$$ak.$s.$type)},true);$c("SpreadsheetMouseOperation$1:h5","SpreadsheetMouseOperation",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$h4.init.call(this)},_aa:null,_aw:null,_ax:null,_w:null,_v:null,_ad:null,_ac:null,_ag:null,_o:function(a,b){switch(b){case 3:case 4:case 0:this._at();break}},_s:function(a){this._au(a);if(a.b()){var b=a.h();var c=this._av(this._ac,this._columnScrollRegion(),b.__x,this._aw.left(),this._aw.right(),this._ai());this._ac=c.p0;var d=this._av(this._ad,this._rowScrollRegion(),b.__y,this._aw.top(),this._aw.bottom(),this._aj());this._ad=d.p0;if(this._ad!=null&&this._ad.e()||this._ac!=null&&this._ac.e()){this._w=a}else{this._w=null}}else{this._w=null}},_g:function(a){this._au(a);return $$t.$h4._g.call(this,a)},_ai:function(){},_aj:function(){},_columnScrollRegion:function(){},_ay:function(){return this._ax},_cursor:function(){},_x:function(){return this._v},_rowScrollRegion:function(){},_view:function(){return this._aa},_am:function(a,b,c){var d=this._aa;this._aa=a;this._ax=c;this._aw=b;if(this._aa==null){this._ap(d)}else{this._an(a)}},_ah:function(){var a=this._rowScrollRegion();var b=this._columnScrollRegion();if(a==null){if(b==null){return false}a=$b($$t.$i4.$type,b._z())}else if(b==null){b=$b($$t.$i2.$type,a._z())}var c=a._o();var d=c.getPane(a,b);if(d==null){return false}if(!c.canActivatePane(d)){return c.activePane()!=null&&(a.isFrozen()||b.isFrozen())}return c.activatePane(d)},_af:function(){return null},_al:function(){if(this._ag!=null){this._ag.c();this._ag=null}this._toolTip(null)},_an:function(a){},_ao:function(a,b){},_ap:function(a){this._al();this._at()},_ar:function(){var $self=this;if(this._ag!=null){this._ag.c()}this._ag=new $$t.c(function(){var a=$self._af();if(a==null){$self._al()}else{$self._toolTip(a)}},250)},_ak:function(a){var b=118;a=Math.min(b-2,Math.abs(a));return Math.pow((b-a)/b,3)*500},_aq:function(){var a=this._columnScrollRegion()||this._rowScrollRegion();if(a!=null){a._o().verifyScrollPositions()}if(this._w!=null){this._s(this._w)}},_as:function(a){if(a!=null){a.h()}a=null;return{p0:a}},_at:function(){this._w=null;var a=this._as(this._ad);this._ad=a.p0;var b=this._as(this._ac);this._ac=b.p0},_au:function(a){if(this._view()!=null){var b=this._v;this._v=a;this._ao(b,this._v)}else if(this._v!=null){var c=this._v;this._v=null;this._ao(c,this._v)}},_av:function(a,b,c,d,e,f){if(b==null||!f){var g=this._as(a);a=g.p0}else{if(a==null){a=new $$t.h8(this.$t,this._aq.runOn(this))}var h=c>=e;if(!h&&c>=d){a.h()}else{var i=h?c-e:d-c;var j=this._ak(i);a.g(b,h,$.ig.truncate(Math.abs(j)))}}return{p0:a}},$type:new $.ig.Type("SpreadsheetMouseOperation$1",$$t.$h4.$type)},true);$c("SpreadsheetPaneMouseOperation:h6","SpreadsheetMouseOperation$1",{init:function(){$$t.$h5.init.call(this,$$t.$i3.$type)},_columnScrollRegion:function(){return this._view().columnScrollRegion()},_rowScrollRegion:function(){return this._view().rowScrollRegion()},$type:new $.ig.Type("SpreadsheetPaneMouseOperation",$$t.$h5.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetCellDropDownOperation:hq","SpreadsheetPaneMouseOperation",{init:function(){$$t.$h6.init.call(this)},_az:null,_cursor:function(){return 19},_ai:function(){return false},_aj:function(){return false},_a0:function(a){var b=a.h();var c=this._view();var d=c._q();for(var e=0;e<d.count();e++){if(d.__inner[e].g.containsLocation(b.__x,b.__y)){return d.__inner[e]}}return null},_al:function(){this._az=null;$$t.$h6._al.call(this)},_m:function(a){if(a.a()==1){var b=this._a0(a);var c=this._view()._s.spreadsheetOwnerState()._spreadsheet();var d=c._a8()._bc();if(c._du(b)){this._al();c._d4(this._view(),b);return false}}return false},_a1:function(a,b){return $$a4.$ah.l_op_Inequality(b,null)?$$t.$dy.df(b._getResolvedColor1(a)):null},_af:function(){var $self=this;var a=this._x();if(this._az!=null&&this._view()!=null&&a!=null&&this._currentState()==0){var b=this._a3(this._az);if(!String.isNullOrEmpty(b)){var c=a.h();return function(){var $ret=new $$t.ii;$ret._d={__x:c.__x-7,__y:c.__y+20,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};$ret._a=4;$ret._c=$self._view()._s.getHeaderCaption($self._az.d,$self._az.c)+":";$ret._b=b;return $ret}()}}return null},_a3:function(a){if(a!=null){if(a.b==1||a.b==0){var b=this._view()._s.getFilter(a.d,a.c);if(b!=null){return this._a4(b)}return this._view()._s.spreadsheetOwnerState()._spreadsheet()._fs("DefaultAutoFilterToolTip",[])}}return null},_a4:function(a){var b=this._view()._s.spreadsheetOwnerState()._spreadsheet();if($b($$a4.$ye.$type,a)!==null){return b._fs(a.type()==0?"FilterDescription_AboveAverage":"FilterDescription_BelowAverage",[])}else if($b($$a4.$yf.$type,a)!==null){var c=a;if(c.condition2()==null){return this._a2(b,c.condition1())}else{return b._fs(c.conditionalOperator()==0?"FilterDescription_Custom_And":"FilterDescription_Custom_Or",[this._a2(b,c.condition1()),this._a2(b,c.condition2())])}}else if($b($$a4.$y0.$type,a)!==null){var d=b.workbook()._e6();var e=a;var f=new $$6.aj(0);var h=e.dateGroups().getEnumerator();while(h.moveNext()){var g=h.current();if(f.c()>0){f.l(", ")}switch(g._f()){case 0:f.l(b._fs("FilterDescription_FixedValues_Year",[g.value()]));break;case 1:f.l(b._fs("FilterDescription_FixedValues_Month",[g.value()]));break;case 2:f.l(b._fs("FilterDescription_FixedValues_Day",[g.value()]));break;case 3:f.l(b._fs("FilterDescription_FixedValues_Hour",[g.value()]));break;case 4:f.l(b._fs("FilterDescription_FixedValues_Minute",[g.value()]));break;case 5:f.l(b._fs("FilterDescription_FixedValues_Second",[g.value()]));break}}var j=e.displayValues().getEnumerator();while(j.moveNext()){var i=j.current();if(f.c()>0){f.l(", ")}f.l(i)}if(e.includeBlanks()){if(f.c()>0){f.l(", ")}f.l(b._fs("FilterDescription_FixedValues_Blanks",[]))}return b._fs("FilterDescription_FixedValues",[f.toString()])}else if($b($$a4.$y7.$type,a)!==null){var k=a;var l;switch(k.type()){case 3:l="FilterDescription_BottomPercent";break;case 1:l="FilterDescription_BottomItems";break;case 2:l="FilterDescription_TopPercent";break;default:case 0:l="FilterDescription_TopItems";break}return b._fs(l,[k.value()])}else if($b($$a4.$yh.$type,a)!==null){var m=a;if(m.type()==1){return b._fs("FilterDescription_QuarterNumber",[m.value()])}else{return b._fs("FilterDescription_MonthNumber",[$$t.$dy.dk(m.value(),b.workbook()._e6())])}}else if($b($$a4.$y6.$type,a)!==null){var n=a;return b._fs("FilterDescription_RelativeDate_"+$$a4.$yr.$getName(n.offset())+$$a4.$yq.$getName(n.duration()),[])}else if($b($$a4.$zd.$type,a)!==null){return b._fs("FilterDescription_YearToDate",[])}else if($b($$a4.$yt.$type,a)!==null){var o=a;if(o.fill()==$$a4.$ab.noColor()){return b._fs("FilterDescription_CellFill_NoFill",[])}if($b($$a4.$ac.$type,o.fill())!==null){var p=o.fill();if(p.patternStyle()==0){return b._fs("FilterDescription_CellFill_NoFill",[])}else if(p.patternStyle()==1){var q=this._a1(b.workbook(),p.backgroundColorInfo());if(!String.isNullOrEmpty(q)){return b._fs("FilterDescription_CellFill_Named",[q])}}}return b._fs("FilterDescription_CellFill_Unknown",[])}else if($b($$a4.$y1.$type,a)!==null){var r=a;if(r.fontColorInfo().isAutomatic()){return b._fs("FilterDescription_FontColor_Automatic",[])}var s=this._a1(b.workbook(),r.fontColorInfo());if(!String.isNullOrEmpty(s)){return b._fs("FilterDescription_FontColor_Named",[s])}return b._fs("FilterDescription_FontColor_Unknown",[])}else if($b($$a4.$y4.$type,a)!==null){var t=a;var u=$$t.$dy.ao(t._m(),t._p());if(u==-1){return b._fs("FilterDescription_NoCellIcon",[])}return b._fs("FilterDescription_WithCellIcon",[b._fs("Icon_"+$$a4.$cc.$getName(u),[])])}return null},_a2:function(a,b){return a._fs("FilterDescription_ComparisonItem_"+$$a4.$yo.$getName(b.comparisonOperator()),[b.value()])},_s:function(a){if(this._currentState()==0){var b=this._a0(a);if(b!=this._az){this._al();this._az=b;if(this._az!=null&&this._a3(b)!=null){this._ar()}}}$$t.$h6._s.call(this,a)},_u:function(a){},$type:new $.ig.Type("SpreadsheetCellDropDownOperation",$$t.$h6.$type)},true);$c("SpreadsheetCellContextMenuOperation:hr","SpreadsheetPaneMouseOperation",{init:function(){$$t.$h6.init.call(this)},_ai:function(){return false},_aj:function(){return false},_cursor:function(){return 10},_m:function(a){var b=this._view()._ag();var c=b._m();if(c!=null&&b!=null){var d=a.h();if(c._d7(true)){var e=this._view();var f=e.rowScrollRegion()._bx();var g=e.rowScrollRegion()._ag(d.__y/f);var h=e.columnScrollRegion()._ag(d.__x/f);var i=new $$t.dz(g._index(),h._index());if(!b._ao(i)){if(!b._a9(i)){return false}}var j=$$t.$dy.ab(b);c._v().ShowPaneContextMenu(this._view(),j,d)}}return false},_u:function(a){},$type:new $.ig.Type("SpreadsheetCellContextMenuOperation",$$t.$h6.$type)},true);$c("SpreadsheetHeaderMouseOperation:h7","SpreadsheetMouseOperation$1",{init:function(){$$t.$h5.init.call(this,$$t.$i6.$type)},_columnScrollRegion:function(){return $b($$t.$i2.$type,this._view())},_rowScrollRegion:function(){return $b($$t.$i4.$type,this._view())},_az:function(){return this._view()!=null&&this._view()._aw()},$type:new $.ig.Type("SpreadsheetHeaderMouseOperation",$$t.$h5.$type.specialize($$t.$i6.$type))},true);$c("SpreadsheetHeaderContextMenuOperation:hs","SpreadsheetHeaderMouseOperation",{init:function(){$$t.$h7.init.call(this)},_ai:function(){return false},_aj:function(){return false},_cursor:function(){return 10},_m:function(a){var b=this._view()._ab();var c=b._m();if(c!=null){var d=a.h();if(c._d7(true)){var e=this._view();var f=$b($$t.$i4.$type,e)!==null;var g=e._z();var h=e._bx();var i=f?d.__y:d.__x;var j=e._ag(i/h);var k=f?b._bj():b._bi();if(i-j._offset()>=0&&i-j._offset()<=8){var l=e._m().indexOf(j);if(e._av(l,false)){var m=8;var n=(e._bm(j,false,true)-e._bm(j,true,true))*h;if((7+8)*2>n){m=Math.max(n*.25,1)}if(i-j._offset()<=m){j=e._b7()(j._index()-1)}}}if($$t.$dy.a6(k,j._index())==false){var o=f?new $$t.d1(j._index(),b._ac()._i,j._index(),b._ac()._h):new $$t.d1(b._ad()._i,j._index(),b._ad()._h,j._index());var p=f?new $$t.dz(j._index(),g.startIndex()):new $$t.dz(g.startIndex(),j._index());if(false==b._resetSelection2(o,p,false)){return false}}c._v().ShowHeaderContextMenu(this._view(),d)}}return false},_u:function(a){},$type:new $.ig.Type("SpreadsheetHeaderContextMenuOperation",$$t.$h7.$type)},true);$c("SpreadsheetEnterEditModeOperation:ht","SpreadsheetPaneMouseOperation",{init:function(){$$t.$h6.init.call(this)},_ai:function(){return false},_aj:function(){return false},_cursor:function(){return 10},_m:function(a){var b=this._view().rowScrollRegion()._ab()._m();if(b!=null){b._gh(a.h(),this._view())}return false},_u:function(a){},$type:new $.ig.Type("SpreadsheetEnterEditModeOperation",$$t.$h6.$type)},true);$c("SpreadsheetHeaderResizeOperation:hu","SpreadsheetHeaderMouseOperation",{_a0:0,_a6:0,_a7:0,_ba:0,_a9:0,_a8:0,_bb:0,_a5:null,_a2:false,_a3:false,_a1:false,init:function(a){$$t.$h7.init.call(this);this._a0=a;this._a3=a==1;this._a2=a==2},_ai:function(){return false},_aj:function(){return false},_cursor:function(){return this._az()?this._a3?12:6:this._a3?13:5},_an:function(a){$$t.$h7._an.call(this,a)},_o:function(a,b){$$t.$h7._o.call(this,a,b);switch(b){case 4:case 0:this._view()._cp($m($$0.$aw.$type,null));break}},_m:function(a){this._a1=false;if(this._a2){this._bf();return false}this._view()._cp($m($$0.$aw.$type,this.__bc));var b=a.h();var c=this._view();var d=(this._az()?b.__y:b.__x)/c._bx();var e=c._b7()(this.__bc);var f=c._bm(e,false,true);this._a5=null;this._bb=c._cf(this.__bc+(this._a3?1:0));this._a6=d-f;this._a7=d;this._a8=d-this._a7;c._bp(d-this._a6);this._ba=Math.min(this._a6-d,0);this._a9=c._b4()($.ig.truncate(Math.max(c._ch()-e._extent()+this._a6,0)));return true},_s:function(a){$$t.$h7._s.call(this,a);if(this._currentState()==2){this._be(a)}},_be:function(a){var b=a.h();var c=this._view();var d=(this._az()?b.__y:b.__x)/c._bx();var e=d-this._a7;e=Math.max(Math.min(e,this._a9),this._ba);if(e!=this._a8){this._a8=e;var f=c._m();var g=c._l();var h=this._ay();if(this._az()&&(b.__y<h.y()||b.__y>=h.bottom())){this._a1=true}else if(!this._az()&&(b.__x<h.x()||b.__x>=h.right())){this._a1=true}else{this._a1=false}c._bp((this._a1?this._a7:d)-this._a6);g.beginUpdate();g.clear();if(this._a1||$$ak.$c.c(e,0)||e<0&&this._bb<0){g._reInitialize(f)}else if(this._bb<0){g._reInitialize(f);var i=f.count()==0?0:$$5.$e.ah($$a4.$lq.$type,f)._l();var j=c._b5()(Math.max(e+c._bw()-this._a6,0));g.add(new $$a4.lq(1,c._ci(),i,j))}else if(e<0){if(this._a5==null){this._a5=c._a1(this.__bc+1)}var k=c._b5()(Math.max(d+c._bw()-this._a6,0));for(var l=0;l<=this._bb;l++){if(k<=0){break}var m=f.__inner[l];var n=Math.min(m._extent(),k);k-=n;g.add(new $$a4.lq(1,m._index(),m._offset(),n))}var o=g.count()==0?f.__inner[0]._offset():g.__inner[g.count()-1]._l();for(var p=0;p<this._a5.count();p++){var q=this._a5.item(p);g.add(new $$a4.lq(1,q._index(),o,q._extent()));o+=q._extent()}}else{for(var r=0;r<this._bb;r++){g.add(f.__inner[r])}var s=this._a3?new $$a4.lq(1,this.__bc,f.__inner[this._bb]._offset(),0):f.__inner[this._bb];var t=c._b5()(e)+s._extent();g.add(new $$a4.lq(1,s._index(),s._offset(),t));var u=g.__inner[g.count()-1]._l();var v=this._a3?this._bb:this._bb+1;for(var w=v;w<f.count();w++){var x=f.__inner[w];g.add(new $$a4.lq(1,x._index(),u,x._extent()));u+=x._extent()}}g.endUpdate()}},_u:function(a){if(!this._a1&&!$$ak.$c.c(this._a8,0)){if(this.__l!=null){var b=this._az();var c=b?2:3;var d=$$t.$hu._a4(this._view()._ab(),b,this.__bc);this.__l(c,d,this._bh.runOn(this))}else{this._bh()}}},_g:function(a){return 2},_ap:function(a){$$t.$h7._ap.call(this,a);a._cp($m($$0.$aw.$type,null));this._a1=false},__bc:0,_bd:function(a){if($l(a,null)){if(this._view().startIndex()>a.value()._h||this._view().endIndex()<a.value()._i){var b=this._view()._o();if(b!=null){var c=$m($$t.$i.$type,null);var d=c;var e=c;if(this._az()){d=a}else{e=a}b.scrollRangeIntoView(b.activePane(),d,e)}}}},_bf:function(){if(this.__l!=null){var a=this._az();var b=a?2:3;var c=$$t.$hu._a4(this._view()._ab(),a,this.__bc);this.__l(b,c,this._bg.runOn(this))}else{this._bg()}},_bg:function(){var a=this._view()._ab();var b=this._az();if($$t.$hu._a4(a,b,this.__bc)){$$t.$hu._bi(a,b,this._view(),-1);this._bd($m($$t.$i.$type,$$t.$dy.c1(b?a._bj():a._bi(),this.__bc).value()))}else{this._view().__ak(-1,this.__bc);this._bd($m($$t.$i.$type,new $$t.i(1,this.__bc,this.__bc)))}},_a4:function(a,b,c){var d=false;var f=a.cellRanges().getEnumerator();while(f.moveNext()){var e=f.current();if(b&&e.firstRow()<=c&&c<=e.lastRow()){d=true;break}else if(!b&&e.firstColumn()<=c&&c<=e.lastColumn()){d=true;break}}if(d){var h=a.cellRanges().getEnumerator();while(h.moveNext()){var g=h.current();if(b&&!a._a0(g)){d=false;break}else if(!b&&!a._az(g)){d=false;break}}}return d},_bh:function(){var a=this._view();var b=a._ab();var c=this._az();var d=$$t.$hu._a4(b,c,this.__bc);if(this._a8>0){var e=this._a3?0:a._m().__inner[this._bb]._extent();var f=e+a._b5()(this._a8);var g=a._o()!=null?a._o().activePane():null;if(d){$$t.$hu._bi(b,c,a,f);this._bd($m($$t.$i.$type,$$t.$dy.c1(c?b._bj():b._bi(),this.__bc).value()))}else{a.__ak(f,this.__bc);this._bd($m($$t.$i.$type,new $$t.i(1,this.__bc,this.__bc)))}}else{var h=a._m();var i=a._l();var j=this._a3?this._bb:this._bb+1;if(d){var k=0;for(var l=0;l<i.count();l++){if(i.__inner[l]._index()==this.__bc){k=i.__inner[l]._extent();break}}$$t.$hu._bi(b,c,a,k)}else{var m=0;for(;m<j;m++){if(m>=i.count()){break}var n=h.__inner[m];var o=i.__inner[m];if(n._index()!=o._index()){break}if(n._extent()!=o._extent()){a.__ak(o._extent(),o._index())}}if(m==j-1){a.__ak(0,h.__inner[m]._index())}else if(m<j){var p=new Array(1);p[0]=new $$t.i(1,h.__inner[m]._index(),h.__inner[j-1]._index());a.__am(0,p)}}}},_bi:function(a,b,c,d){var e=b?a._bg():a._bf();var f=b?a._am():a._al();if(f){c.__al(d)}else{c.__am(d,$$5.$e.a($$t.$i.$type,e))}},$type:new $.ig.Type("SpreadsheetHeaderResizeOperation",$$t.$h7.$type)},true);$c("SpreadsheetInteractionManager$1:hx","Object",{$t:null,h:null,j:null,a:0,c:null,f:0,b:null,init:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);$$ak.$c.y(a);this.b=b;var c=$$ak.$m.e(this.$t,this.h,a,this,true);this.h=c.p0;this.n()},d:function(){},e:function(a){if(arguments.length===1){if(a!=this.c){if(this.c!=null){this.c._a3(null)}this.c=a;if(this.c!=null){this.c._a3(this.j)}}return a}else{return this.c}},cursor:function(a){if(arguments.length===1){if(a!=this.f){this.f=a;this.b.onCursorChanged(a)}return a}else{return this.f}},view:function(){return this.h},m:function(a,b,c){var d=this.d();if(d!=null){var e=d.activePane();var f=$b($$t.$ik.$type,e._s);if(f!=null){d._gi(a,c,null,false,null,b,false);return}}c()},k:function(a){},n:function(){var a=this.j!=null?this.j._cursor():0;this.cursor(a)},o:function(){var a=this.d();this.e(a)},p:function(){this.e(null);if(this.j!=null){this.j._n()}this.v()},l:function(a){var b=false;var c=this.d();if(c!=null){b=true;if(!c._d7(true)){return b}this.b.focusControlIfNeeded()}if(!a.c()){return b}if(this.j!=null&&this.j._currentState()!=0){b=true;var d=this.j._g(a);if(d==2){return b}a.f();if(d==1){return b}}this.w(a);if(this.j!=null){this.a=a.a();this.j._p(a);b=true;this.w(a)}return b},q:function(a){this.w(a);if(this.j!=null){this.j._q(a)}},r:function(a){if(this.j!=null){this.j._r(a);this.v()}},s:function(a){this.w(a);if(this.j!=null){this.j._s(a)}},t:function(a){if(this.j!=null){if(a.a()==this.a||this.a==0){this.e(null);this.j._t(a)}this.w(a)}},u:function(a,b,c){if(a==this.j){switch(b){case"Cursor":this.n();break;case"ToolTip":this.x();break}}},v:function(){if(this.j!=null&&this.j._currentState()==0){this.e(null);this.j.__l=null;this.j._am(null,$$a.$ae.empty(),$$a.$ae.empty());this.j=null;this.n()}},w:function(a){if(this.j==null||this.j._currentState()==0){var b=this.k(a);if(b!=this.j){var c=this.j;this.j=b;if(c!=null){c._am(null,$$a.$ae.empty(),$$a.$ae.empty());c.__l=null;$$t.$dy.ef(c,this)}if(b!=null){$$t.$dy.d9(b,this,false)}this.a=0;var d=this.e();if(d!=null){this.e(null);if(b!=null){this.e(d)}}if(b!=null){var e=this.d();var f=this.b._getRelativeSpreadsheetControlBounds$i();var g=this.b._getLayerContainerSize$i();b.__l=this.m.runOn(this);b._am(this.view(),new $$a.ae(0,0,0,g.width(),g.height()),f)}this.n();this.x()}}},x:function(){var a=this.d();var b=this.b.isToolTipAllowed();if(this.j==null||this.j._toolTip()==null||b==false){this.b.hideToolTip()}if(b&&this.j!=null&&this.j._toolTip()!=null){this.b.showToolTip(this.j._toolTip())}},onPropertyValueChanged:function(a,b,c){this.u(a,b,c)},$type:new $.ig.Type("SpreadsheetInteractionManager$1",$.ig.$ot,[$$ak.$g.$type])},true);$c("SpreadsheetMenuBuilder_InitializeItemsState$1:h1","Object",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this.d=new $$t.on;this.c=new $$t.dz;$.ig.$op.init.call(this)},d:null,c:null,e:null,a:0,f:null,b:null,g:null,$type:new $.ig.Type("SpreadsheetMenuBuilder_InitializeItemsState$1",$.ig.$ot)},true);$c("SpreadsheetMouseOperation_ScrollTimer$1:h8","Object",{$t:null,b:null,a:null,d:false,c:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this.c=a},e:function(){return this.a!=null&&this.a.b()},g:function(a,b,c){this.d=b;this.b=a;if(this.a==null){this.a=new $$t.ad;var d=this.a;d.tick=$.ig.Delegate.prototype.combine(d.tick,this.f.runOn(this))}if(!this.a.b()){this.a.g(c);this.a.k()}else{this.a.g(c)}},h:function(){if(this.a!=null){this.a.l()}},f:function(a,b){this.b._x()._an(this.d?4:1);this.c()},$type:new $.ig.Type("SpreadsheetMouseOperation_ScrollTimer$1",$.ig.$ot)},true);$c("SpreadsheetPaneInteractionManager:h9","SpreadsheetInteractionManager$1",{ab:null,aa:null,y:null,z:null,init:function(a,b){$$t.$hx.init.call(this,$$t.$i3.$type,a,b);this.ab=new $$t.ht;this.aa=new $$t.ib;this.y=new $$t.hr;this.z=new $$t.hq},d:function(){return this.view().selection()._m()},k:function(a){var b=this.d()!=null&&this.d().isInEditMode();if(b==false&&a.c()&&a.a()==1&&a.g()==0&&a.e()==2){return this.ab}var c=a.h();var d=this.view();var e=d._q();for(var f=0;f<e.count();f++){if(e.__inner[f].g.containsLocation(c.__x,c.__y)){return this.z}}if(a.c()&&a.a()==2){return this.y}var g=d.rowScrollRegion();if(g._m().count()>0){var h=d.columnScrollRegion();if(h._m().count()>0){if(c.__x<=h._bm($$5.$e.ah($$a4.$lq.$type,h._m()),false,true)*h._bx()&&c.__y<=g._bm($$5.$e.ah($$a4.$lq.$type,g._m()),false,true)*g._bx()){return this.aa}}}return null},$type:new $.ig.Type("SpreadsheetPaneInteractionManager",$$t.$hx.$type.specialize($$t.$i3.$type))},true);$c("SpreadsheetScrollRegionInteractionManager:ia","SpreadsheetInteractionManager$1",{ac:null,aa:null,ab:null,z:null,y:null,init:function(a,b){$$t.$hx.init.call(this,$$t.$i6.$type,a,b);this.ac=new $$t.ic;this.aa=new $$t.hu(0);this.ab=new $$t.hu(1);this.z=new $$t.hu(2);this.y=new $$t.hs},d:function(){return this.view()._ab()._m()},k:function(a){var b=a.h();var c=this.view();var d=$b($$t.$i4.$type,c)!==null;var e=d?b.__y:b.__x;var f=c._i(true,false);var g=8;var h=7;var i=this.d();var j=i!=null&&i.isInEditMode();var k=i._ct(d);var l=this.ab;var m=this.aa;if(j==false&&a.c()&&a.a()==1&&a.e()==2){m=this.z;l=this.z}if(a.c()&&a.a()==2){return this.y}if(f.length==0&&$j(c._cr(),null)){if(k&&e<h){l.__bc=c._ci();return l}}else{for(var n=1;n<f.length;n++){if(e<f[n]){var o=f[n]-e;var p=e-f[n-1];var q=f[n]-f[n-1];if((7+8)*2>q){g=Math.max(q*.25,1);h=Math.max(q*.25,1)}if(k&&j==false){if(p<g){if(c._av(n-1,false)){l.__bc=c._m().__inner[n-1]._index()-1;return l}if(n!=1){m.__bc=c._m().__inner[n-2]._index();return m}}else if(o<h){m.__bc=c._m().__inner[n-1]._index();return m}}if(this.b.isMouseOver()){this.ac._a3($m($$0.$aw.$type,c._m().__inner[n-1]._index()))}else{this.ac._a3($m($$0.$aw.$type,null))}return this.ac}}if(k&&j==false&&$j(c._cq(),null)&&$$5.$e.ah($$a4.$lq.$type,c._m())._index()<c._ci()){l.__bc=c._ci();return l}}return null},$type:new $.ig.Type("SpreadsheetScrollRegionInteractionManager",$$t.$hx.$type.specialize($$t.$i6.$type))
},true);$c("SpreadsheetCellSelectionOperation:ib","SpreadsheetPaneMouseOperation",{_a3:null,_ba:false,_a9:false,_az:0,_a0:null,_a7:null,_a8:null,_br:null,_bc:0,_bb:null,_be:$m($$t.$dz.$type,null),_a2:null,init:function(){this._az=10;$$t.$h6.init.call(this);this._a7=new $$ak.n($$t.$ib.$type,this,$$t.$ib._bk,false);this._bb=new $$4.h($$t.$dz.$type,$$a.$ae.$type,0)},_ai:function(){return this._view().columnScrollRegion()==this._view().columnScrollRegion()._o().activePane().columnScrollRegion()},_aj:function(){return this._view().rowScrollRegion()==this._view().rowScrollRegion()._o().activePane().rowScrollRegion()},_cursor:function(){return this._az},_af:function(){var $self=this;var a=this._x();if($$t.$dz.l_op_Inequality_Lifted(this._be,$m($$t.$dz.$type,null))&&this._view()!=null&&a!=null&&this._currentState()==0){var b=a.h();var c=this._view().rowScrollRegion()._bx();var d=this._view().columnScrollRegion()._ag(b.__x/c);var e=this._view().rowScrollRegion()._ag(b.__y/c);var f=this._view().rowScrollRegion()._ab();var g=this._view().rowScrollRegion()._cf(e._index());var h=this._view().columnScrollRegion()._cf(d._index());var i;var j=function(){var k=$self._bf(g,h,i);i=k.p2;return k.ret}();if(j!=null){if($$t.$dy.be(i)){var k=4;var l=this._view()._k().item(g+1,h+1);var m=l!=null&&l.r();var n=this._view().rowScrollRegion()._bn(m?l.ag:e._index(),false,true)*c;var o=this._view().columnScrollRegion()._bn(m?l.ab:d._index(),true,true)*c;var p=this._view().columnScrollRegion()._bn(m?l.x:d._index(),false,true)*c;if(this._ay().isEmpty()==false){if(n>this._ay().bottom()){n=this._ay().bottom()}if(o<this._ay().left()){o=this._ay().left()}if(p>this._ay().right()){p=this._ay().right()}}b=$$t.$dy.e6(o+(p-o)/2,n+k)}else{b={__x:b.__x,__y:b.__y+10,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}return function(){var $ret=new $$t.ii;$ret._d=b;$ret._b=j;$ret._a=i;return $ret}()}}return null},_an:function(a){this._a1(a._s.spreadsheetOwnerState());$$t.$h6._an.call(this,a)},_o:function(a,b){if(b==0){this._bh();this._bg();this._a9=false}this._bq();$$t.$h6._o.call(this,a,b)},_m:function(a){var $self=this;this._au(a);var b=a.h();var c=this._view().rowScrollRegion()._bx();var d=this._view().columnScrollRegion()._ag(b.__x/c);var e=this._view().rowScrollRegion()._ag(b.__y/c);var f=this._view().rowScrollRegion()._ab();this._br=b;if(!f._a3()){return false}var g=a.g();var h=new $$t.dz(e._index(),d._index());var i=this._view()._s.getCellRange(h);var j=f._x();var k=this._view()._s.canSelect(h);var l=(g&4)!=0||j==1;var m=(g&2)!=0||j==2;var n=false;var o=null;if(m==l){if(!this._ah()){return false}if(m==false){o=function(){var p=$self._a4(b,d,e);d=p.p1;e=p.p2;return p.ret}()}f=this._view().rowScrollRegion()._ab();if(k){n=f._a9(i._c())}}else if(!k){}else if(m){if(f._ao(h)){this._a2=new $$t.id(h,f);n=true}else{n=f._ah(h)}}else if($$t.$dz.l_op_Inequality(h,f.activeCell())){n=f._as(h,true)}this._a6(o);this._bo();if(this._a6()!=null){this._bm()}return n},_s:function(a){var $self=this;this._au(a);var b=a.h();var c=this._view();var d=c.rowScrollRegion()._bx();var e=c.columnScrollRegion()._ag(b.__x/d);var f=c.rowScrollRegion()._ag(b.__y/d);var g=c.rowScrollRegion()._ab();if(this._currentState()==0){var h,i;this._a6(function(){var j=$self._a5(b,e,f,h,i);e=j.p1;f=j.p2;h=j.p3;i=j.p4;return j.ret}());var j=c._k()!=null?c._k().item(h+1,i+1):null;var k=j!=null&&j.r()?new $$t.dz(j.ak,j.ab):new $$t.dz(f._index(),e._index());if($$t.$dz.l_op_Inequality_Lifted($m($$t.$dz.$type,k),this._be)){this._al();this._be=$m($$t.$dz.$type,k);var l;if(function(){var m=$self._bf(h,i,l);l=m.p2;return m.ret}()!=null){if($$t.$dy.be(l)==false||this._a6()!=null){this._ar()}}}}if(this._currentState()==2){var m=new $$t.dz(f._index(),e._index());if(this._a2!=null){this._a2.g(m)}else if(c._s.canSelect(m)){g._as(m,true)}}this._bo();$$t.$h6._s.call(this,a)},_u:function(a){var $self=this;this._au(a);this._al();var b=this._view();var c=a.h();var d=b.rowScrollRegion()._bx();var e=b.columnScrollRegion()._ag(c.__x/d);var f=b.rowScrollRegion()._ag(c.__y/d);var g=function(){var h=$self._a4(c,e,f);e=h.p1;f=h.p2;return h.ret}();if(this._a0!=null&&this._a6()!=null&&this._a9==false&&g==this._a6()){if(this._a0._visitHyperlinkAction()!=null){this._a0._visitHyperlinkAction()(g)}}else{this._a6(g)}this._bg();this._a9=false;this._bn();this._bo();if(this._a2!=null){var h=this._a2;this._a2=null;h.e()}},_g:function(a){this._au(a);return 1},_ap:function(a){this._au(null);this._a6(null);this._bo();this._a1(null);this._al();this._bh();$$t.$h6._ap.call(this,a)},_a6:function(a){if(arguments.length===1){if(a!=this._a3){this._a9=false;this._a3=a;this._bq();this._al()}return a}else{return this._a3}},_a1:function(a){if(arguments.length===1){var b=$$ak.$m.e($$t.$i8.$type,this._a0,a,this._a7,true);this._a0=b.p0;return a}else{return this._a0}},_bg:function(){var a=this._a8;this._a8=null;if(a!=null){a.c()}},_bh:function(){if(this._a2!=null){var a=this._a2;this._a2=null;a.d()}},_bi:function(){},_bj:function(){},_a4:function(a,b,c){var $self=this;var d,e;return{ret:function(){var f=$self._a5(a,b,c,d,e);b=f.p1;c=f.p2;d=f.p3;e=f.p4;return f.ret}(),p1:b,p2:c}},_a5:function(a,b,c,d,e){var $self=this;this._bp();d=this._view().rowScrollRegion()._cf(c._index());e=this._view().columnScrollRegion()._cf(b._index());if(e<0||d<0){return{ret:null,p1:b,p2:c,p3:d,p4:e}}if(this._view()._l()==null){return{ret:null,p1:b,p2:c,p3:d,p4:e}}var f=this._view()._l().item(d+1,e+1);var g=this._view()._k().item(d+1,e+1);if(g!=null){var h=c._index();var i=b._index();if(g!=null&&g.r()){h=g.ak;i=g.ab}var j;if(this._bb.count()>0&&function(){var k=$self._bb.tryGetValue(new $$t.dz(h,i),j);j=k.p1;return k.ret}()){if(j.containsPoint(a)==false){return{ret:null,p1:b,p2:c,p3:d,p4:e}}}}return{ret:f,p1:b,p2:c,p3:d,p4:e}},_bf:function(a,b,c){var d=this._view();if(d!=null&&d._l()!=null){var e=d._l().item(a+1,b+1);if(e!=null){if(String.isNullOrEmpty(e.toolTip())==false){c=3;return{ret:e.toolTip(),p2:c}}var f=e.targetAddress();if(!String.isNullOrEmpty(f)){c=2;return{ret:$$t.$dy.dl(this._a0!=null?this._a0._spreadsheet():null,"DefaultHyperlinkToolTip",[f]),p2:c}}}var g=d._k().item(a+1,b+1);if(g!=null&&g.k()&&this._a0!=null){if(g.q()){c=1;return{ret:$$t.$dy.dl(this._a0._spreadsheet(),"InvalidDateTimeToolTip",[]),p2:c}}var h=new $$t.dz(d.rowScrollRegion()._m().__inner[a]._index(),d.columnScrollRegion()._m().__inner[b]._index());c=0;return{ret:this._a0._getCellText()(h),p2:c}}}c=0;return{ret:null,p2:c}},_al:function(){this._be=$m($$t.$dz.$type,null);$$t.$h6._al.call(this)},_ao:function(a,b){$$t.$h6._ao.call(this,a,b);if(b==null){this._bn()}},_bl:function(a,b,c){if(a==this._a0){switch(b){case"IsInEditMode":this._bo();break}}},_bk:function(a,b,c,d){a._bl(b,c,d)},_bm:function(){var $self=this;if(this._a8==null){this._a8=new $$t.c(function(){$self._a9=true;$self._bg();$self._bo()},1e3)}},_bn:function(){var a=this._x();if(a==null||this._view()==null){this._ba=false}else{var b=a.g();this._ba=(b&4)!=0||(b&2)!=0}},_bo:function(){var a=this._a0!=null&&this._a0._s();var b=this._a3!=null&&this._ba==false&&a==false&&this._a9==false?17:10;if(b!=this._az){this._az=b;this.a("Cursor")}},_bp:function(){if(this._view()==null){this._bb.clear()}else if(this._bc!=this._view()._ao()){this._bc=this._view()._ao();this._bb.clear();var a=this._view()._ap();if(a!=null&&this._view()._l()!=null&&this._view()._l().c()&&this._view()._p().count()>0){this._view().selection()._m()._v().addCellTextLocations(this._bb,this._view())}}},_bq:function(){if(this._a6()!=null&&this._currentState()==0){this._bj()}else{this._bi()}},$type:new $.ig.Type("SpreadsheetCellSelectionOperation",$$t.$h6.$type)},true);$c("SpreadsheetHeaderSelectionOperation:ic","SpreadsheetHeaderMouseOperation",{init:function(){$$t.$h7.init.call(this)},_a2:$m($$0.$aw.$type,null),_a0:null,_ai:function(){return this._columnScrollRegion()!=null&&this._view()==this._view()._o().activePane().columnScrollRegion()},_aj:function(){return this._rowScrollRegion()!=null&&this._view()==this._view()._o().activePane().rowScrollRegion()},_cursor:function(){return this._az()?11:9},_an:function(a){$$t.$h7._an.call(this,a);a._co(this._a2)},_o:function(a,b){if(b==0){this._a4()}$$t.$h7._o.call(this,a,b)},_m:function(a){var b=a.h();var c=this._view()._bx();var d=this._az();var e=d?b.__y:b.__x;var f=this._view()._ag(e/c);var g=this._view()._ab();if(!g._a3()){return false}var h=a.g();var i=this._view()._z().startIndex();var j=d?new $$t.dz(f._index(),i):new $$t.dz(i,f._index());var k=d?new $$t.d1(f._index(),g._ac()._i,f._index(),g._ac()._h):new $$t.d1(g._ad()._i,f._index(),g._ad()._h,f._index());var l=g._x();var m=this._view()._o().canSelect1(k);var n=(h&4)!=0||l==1;var o=(h&2)!=0||l==2;var p=false;if(o==n){if(!this._ah()){return false}g=this._view()._ab();if(m){p=g._resetSelection2(k,j,false)}}else if(!m){}else if(o){if(g._ap(k)){this._a0=new $$t.id(j,g);this._a0.h(k);p=true}else{p=g._addActiveCellRange1(k,j,false)}}else if($$t.$dz.l_op_Inequality(j,g.activeCell())){p=g._at(k,false)}return p},_q:function(a){$$t.$h7._q.call(this,a)},_r:function(a){this._view()._co($m($$0.$aw.$type,null));$$t.$h7._r.call(this,a)},_s:function(a){if(this._currentState()==2){this._a5(a)}$$t.$h7._s.call(this,a)},_a5:function(a){var b=a.h();var c=this._view()._bx();var d=this._az();var e=d?b.__y:b.__x;var f=this._view()._ag(e/c);var g=this._view()._ab();var h=d?new $$t.d1(f._index(),g._ac()._i,f._index(),g._ac()._h):new $$t.d1(g._ad()._i,f._index(),g._ad()._h,f._index());if(this._a0!=null){this._a0.h(h)}else if(this._view()._o().canSelect1(h)){g._at(h,false)}},_u:function(a){if(this._a0!=null){var b=this._a0;this._a0=null;b.e()}},_g:function(a){return 1},_ap:function(a){$$t.$h7._ap.call(this,a);a._co($m($$0.$aw.$type,null));this._a4()},_a3:function(a){if(arguments.length===1){if($l(this._a2,a)){this._a2=a;if(this._view()!=null){this._view()._co(a)}}return a}else{return this._a2}},_a4:function(){if(this._a0!=null){var a=this._a0;this._a0=null;a.d()}},$type:new $.ig.Type("SpreadsheetHeaderSelectionOperation",$$t.$h7.$type)},true);$c("UnselectionHelper:id","Object",{a:null,b:null,c:null,init:function(a,b){this.a=new $$t.dz;this.b=new $$t.dz;$.ig.$op.init.call(this);this.a=a;this.c=b;this.f(a)},d:function(){this.c._v($$t.$d1.empty)},e:function(){var a=this.c._v();if(!a.isEmpty()){this.d();this.c.unselectRange(a)}},f:function(a){this.c._v(new $$t.d1(this.a.row(),this.a.column(),a.row(),a.column()));this.b=a},g:function(a){if($$t.$dz.l_op_Inequality(a,this.b)){this.f(a)}},h:function(a){this.c._v(new $$t.d1(Math.min(a.firstRow(),this.a.row()),Math.min(a.firstColumn(),this.a.column()),Math.max(a.lastRow(),this.a.row()),Math.max(a.lastColumn(),this.a.column())))},$type:new $.ig.Type("UnselectionHelper",$.ig.$ot)},true);$c("SpreadsheetHitTestResult:ie","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("SpreadsheetHitTestResult",$.ig.$ot)},true);$c("SpreadsheetCellHitTestResult:ig","SpreadsheetHitTestResult",{a:null,c:null,init:function(a,b){this.a=new $$t.dz;$$t.$ie.init.call(this);$$ak.$c.z(b,"pane");this.a=a;this.c=b},b:function(){return this.a},d:function(){return this.c},$type:new $.ig.Type("SpreadsheetCellHitTestResult",$$t.$ie.$type)},true);$c("SpreadsheetHeaderHitTestResult:ih","SpreadsheetHitTestResult",{c:0,a:null,init:function(a,b){$$t.$ie.init.call(this);$$ak.$c.z(b,"scrollRegion");this.c=a;this.a=b},d:function(){return this.c},b:function(){return this.a},$type:new $.ig.Type("SpreadsheetHeaderHitTestResult",$$t.$ie.$type)},true);$c("SpreadsheetToolTipContext:ii","Object",{init:function(){$.ig.$op.init.call(this)},_d:null,_b:null,_c:null,_a:0,$type:new $.ig.Type("SpreadsheetToolTipContext",$.ig.$ot)},true);$c("ISpreadsheetPaneOwner:i1","Object",{$type:new $.ig.Type("ISpreadsheetPaneOwner",null)},true);$c("SpreadsheetPaneManager:ik","PropertyChangeNotifierExtended",{_av:0,_bm:false,_h:null,_n:null,_g:null,_m:null,_i:null,_o:null,_de:null,_df:null,_an:null,_bg:null,_bb:null,_p:null,_ji:null,_fl:null,_jl:null,_jk:null,_jj:null,_dv:0,_du:0,_eb:null,_d9:null,_ea:null,_am:null,_a2:null,_ba:null,_v:null,_w:null,_t:null,_u:null,_ed:0,_ee:0,_dw:0,_a7:null,_a5:null,_at:0,_bn:false,_ft:null,_jg:null,_dq:0,_dr:0,_ds:0,_dt:0,_al:null,_bk:null,_a0:null,_dp:null,_bl:null,init:function(a,b,c,d,e,f){this._av=184550424;this._bm=true;this._ji=$$a.$af.empty();this._jl=new $$a.af;this._jk=new $$a.af;this._jj=new $$a.af;this._v=$$t.$d1.empty;this._w=$$t.$d1.empty;this._t=$$t.$d1.empty;this._u=$$t.$d1.empty;this._ed=0;this._ee=0;this._dw=1;this._at=0;$$ak.$s.init.call(this);$$ak.$c.z(a,"worksheet");$$ak.$c.z(b,"selectionFactory");$$ak.$c.z(d,"onPrompt");$$ak.$c.z(e,"tabManager");$$ak.$c.z(f,"ownerState");var g=$$ak.$m.e($$t.$oh.$type.specialize($$t.$i3.$type),this._h,new $$t.oh($$t.$i3.$type,2,false,true),this,false);this._h=g.p0;this._n=new $$ak.u($$t.$i3.$type,this._h);var h=$$ak.$m.e($$t.$oh.$type.specialize($$t.$i2.$type),this._g,new $$t.oh($$t.$i2.$type,2,false,true),this,false);this._g=h.p0;this._m=new $$ak.u($$t.$i2.$type,this._g);var i=$$ak.$m.e($$t.$oh.$type.specialize($$t.$i4.$type),this._i,new $$t.oh($$t.$i4.$type,2,false,true),this,false);this._i=i.p0;this._o=new $$ak.u($$t.$i4.$type,this._i);this._df=$$ak.$c.j($$t.$i6.$type,this._i);this._de=$$ak.$c.j($$t.$i6.$type,this._g);this._bk=new $$ak.n($$t.$ik.$type,this,function(j,k,l,m){j._hj(k,l,m)},false);this._bb=a;this._eb=b;this._d9=c;this._ea=d;this._a7=new $$t.b(this._jc.runOn(this));this._p=new $$t.im(this);this._a2=e;this._ba=new $$t.oo(this._bb.workbook().styles().normalStyle()._i());this._dp=new $$4.y($$t.$is.$type);$$t.$dy.d9(this._a2._j(),this._bk,true);this._al=f;$$t.$dy.d9(this._al,this._bk,true);this._gs();this._gq();this._iz()},e:function(a,b,c){switch(b!=null?b:""){case"Offset":if(!this._b7(64)&&$b($$t.$i5.$type,a)!==null){var d=a;var e=d._owner();var f=$.ig.truncate($$a4.$aa.f(d._offset()));var g=!e._aw()?this._be(f):this._bb._cq(f);var h=!e._aw()?this._dy.runOn(this):this._dz.runOn(this);e.startIndex(g._index());e._bw(h(f-g._offset()));this._isLayoutDirty(true)}break;case"StartIndex":if($b($$t.$i6.$type,a)!==null){this._isLayoutDirty(true);this._ht(134217728)}break;case"EndIndex":if($b($$t.$i6.$type,a)!==null){this._ht(134217728)}break;case"ActivePane":if(a==this){this._i4();this._ht(512|1024|33554432|16777216);if(this._a2._j().count()>1){this._ht(2097152)}var i=this._ff(this.activePane());if($l(i,null)){this._bb.displayOptions()._z(i.value())}}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":var j=a.getType();if(j==$$t.$dy.d6||j==$$t.$dy.d5){this._at&=~2048;this._ht(512|2097152)}break;case"ActiveCell":if(this.activePane()!=null&&a==this.activePane().selection()){this._at&=~2048;this._ht(1024|16777216)}this._ht(2097152);break;case"ResourceVersion":if(a==this._a6()){this._p.ac();this._isLayoutDirty(true)}break;case"AvailableColumnRange":case"AvailableRowRange":case"CellSelectionMode":case"ActiveCellRangeIndex":case"ActiveCellAsRange":if(this.activePane()!=null&&a==this.activePane().selection()){this._at&=~2048}this._ht(2097152);break;case"IsRangeChangeSuspended":if($b($$t.$i5.$type,a)!==null){this._hi(a)}break}if(this.activePane()!=null&&a==this.activePane().selection()){this._at&=~2048}$$ak.$s.e.call(this,a,b,c)},_ao:function(a){if(arguments.length===1){if(this._am!=a){this._am=a;this.a("ActiveCellPane")}return a}else{return this._am}},_fu:function(a){if(arguments.length===1){if(this._ft!=a){this._ft=a;this.a("ActiveCellInputMessage")}return a}else{return this._ft}},_jh:function(a){if(arguments.length===1){if($$a.$y.l_op_Inequality(this._jg,a)){this._jg=a;this.a("ActiveCellInputMessagePosition")}return a}else{return this._jg}},activePane:function(a){if(arguments.length===1){if(this._an!=a){this._an=a;this.a("ActivePane")}return a}else{return this._an}},_a1:function(a){if(arguments.length===1){if(a!=this._a0){this._a0=a;this._i4()}return a}else{return this._a0}},_activeTable:function(a){if(arguments.length===1){if(this._bg!=a){this._bg=a;this.a("ActiveTable")}return a}else{return this._bg}},__dx:0,_columnItems:function(){return this._de},_columns:function(){return this._m},_j:function(){return this._g},_b9:function(){return this._b7(2048)},_hasHorizontalScrollBar:function(a){if(arguments.length===1){if(this._c5(2,a)){this._ip(4,true)}return a}else{return this._b7(2)}},_cd:function(a){if(arguments.length===1){this._c5(128,a);return a}else{return this._b7(128)}},_hasVerticalScrollBar:function(a){if(arguments.length===1){if(this._c5(1,a)){this._ip(4,true)}return a}else{return this._b7(1)}},_cc:function(){return $$a4.$l0._l_op_Inequality_Lifted(this._bb._g1,$m($$a4.$l0.$type,null))},_isLayoutDirty:function(a){if(arguments.length===1){if(this._bm!=a){this._iw();this._bm=a;this.a("IsLayoutDirty");this._iv()}return a}else{return this._bm}},_panes:function(){return this._n},_k:function(){return this._h},_d0:function(){return this._ds},_d1:function(){return this._dt},_jo:function(){return this._ji},_a6:function(a){if(arguments.length===1){if(this._a5!=a){var b=$$ak.$m.e($$t.$bz.$type,this._a5,a,this,true);this._a5=b.p0;this._p.ac();this.a("ResourceProvider");this._ht(4096)}return a}else{return this._a5}},__d2:0,_rowItems:function(){return this._df},_rows:function(){return this._o},_l:function(){return this._i},_scrollRange:function(a){if(arguments.length===1){if(a!=this._fl){var b=String.isNullOrEmpty(a)?null:this._bb._getRegion1(a,1);this._v=b==null?$$t.$d1.empty:new $$t.d1(b.firstRow(),b.firstColumn(),b.lastRow(),b.lastColumn());this._fl=a;this.a("ScrollRange")}return a}else{return this._fl}},_d3:function(a){if(arguments.length===1){if(this._du!=a){this._du=a;this.a("SplitterHeight")}return a}else{return this._du}},_d4:function(a){if(arguments.length===1){if(this._dv!=a){this._dv=a;this.a("SplitterWidth")}return a}else{return this._dv}},_a3:function(){return this._a2},_bc:function(){return this._bb},_zoomLevel:function(a){if(arguments.length===1){if(a!=this._dw){this._dw=a;if(this._al._j().s){this._hv()}this.a("ZoomLevel")}return a}else{return this._dw}},_fx:function(){this._fv(false)},_fw:function(){this._fv(true)},_fy:function(a){var b=this._activeTable();if(b==null){return}var c=this.activePane().selection();if(a){b.insertColumns(b.columns().count(),1);if(c.cellRanges().count()==1&&c.cellRanges().item(0)._ad()==1){c._bw(0,1)}}else{b.insertDataRows(b.dataAreaRegion()._aa(),1);if(c.cellRanges().count()==1&&c.cellRanges().item(0)._aa()==1){c._bw(1,0)}}},_en:function(){var a=this._bb.isProtected();if(this._a2._j().count()>0){var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();var d=b._j();var e=d.isProtected();if(e!=a){return $m($$0.$aq.$type,null)}}}return $m($$0.$aq.$type,a)},_f1:function(a){var b=this.activePane().selection();if($l(this._fj(a?16:8),true)){this._ea(new $$t.kx(23,null,null,null,false));return}if(a){if(b._am()){this._h4(-1)}else{this._h8(-1,$$5.$e.a($$t.$i.$type,b._bg()))}}else{if(b._al()){this._h3(-1)}else{this._f0($$5.$e.a($$t.$d1.$type,b.cellRanges()),true)}}},_f2:function(a,b,c){if(c==null){c=this.activePane()}var d;var e;var f;var g;var h;switch(a){default:case 2:g=this._bb._cq.runOn(this._bb);f=this._bb._cp.runOn(this._bb);d=b.firstRow();e=c.rowScrollRegion();h=this._fi.runOn(this);if(this._b9()&&this._rows().count()>0&&this._rows().item(0).isFrozen()&&d<=this._rows().item(0).endIndex()){return}break;case 3:g=this._bb._cq.runOn(this._bb);f=this._bb._cp.runOn(this._bb);d=b.lastRow();e=c.rowScrollRegion();h=this._fe.runOn(this);break;case 0:g=this._be.runOn(this);f=this._bb._cn.runOn(this._bb);d=b.firstColumn();e=c.columnScrollRegion();h=this._fh.runOn(this);if(this._b9()&&this._columns().count()>0&&this._columns().item(0).isFrozen()&&d<=this._columns().item(0).endIndex()){return}break;case 1:g=this._be.runOn(this);f=this._bb._cn.runOn(this._bb);d=b.lastColumn();e=c.columnScrollRegion();h=this._fc.runOn(this);break}var i=e._aj(true);if(d<i._i){e.startIndex(d);e._bw(0)}else if(d>i._h){var j=f(d);var k=e._x()._viewport();var l=j._offset()+j._extent()-k;var m=g($.ig.truncate(l));var n=m._index();if(m._offset()+k<j._l()){var o=h(n);if(o.hasValue()){n=o.value()}}e.startIndex(n);e._bw(0)}},_f3:function(a,b){var c=b[0];for(var d=1;d<b.length;d++){c=c.union(b[d])}this._f5(a,c)},_f5:function(a,b){if(a==null){a=this.activePane()}var c=false;var d=$m($$0.$aw.$type,b.firstRow());var e=$m($$0.$aw.$type,b.lastRow());var f=$m($$0.$aw.$type,b.firstColumn());var g=$m($$0.$aw.$type,b.lastColumn());if(this._b9()){var h=this._ar(b._c());var i=this._ar(b._b());if(i.rowScrollRegion().isFrozen()){e=$m($$0.$aw.$type,null)}if(h.rowScrollRegion().isFrozen()){d=$m($$0.$aw.$type,null)}if(i.columnScrollRegion().isFrozen()){g=$m($$0.$aw.$type,null)}if(h.columnScrollRegion().isFrozen()){f=$m($$0.$aw.$type,null)}a=i}if(a==null){return}c=$$t.$ik._bp(a.columnScrollRegion(),f,g);c=$$t.$ik._bp(a.rowScrollRegion(),d,e)||c;if(c){this._isLayoutDirty(true)}},_bp:function(a,b,c){var d,e;if($j(b,null)){if($j(c,null)){return false}d=e=c.value()}else{d=b.value();e=$j(c,null)?d:c.value()}var f=a.endIndex();if(f>a.startIndex()&&a._bk()!=0){f--}if(d<a.startIndex()||e>f){var g=a._b7()(d);var h=a._b7()(e);var i=a.actualExtent()/a._bx();var j=a._b4()(h._l()-g._offset());a._bw(0);if(j>i||d<a.startIndex()){a.startIndex(d)}else{var k=a._b5()(i);var l=Math.max(0,h._l()-k);var m=a._b8()(l);a.startIndex(l>m._offset()?a._b8()(m._l())._index():m._index())}return true}return false},_f4:function(a,b,c,d,e,f){if(a==null){a=this.activePane();if(a==null){return}}var g=a.columnScrollRegion();var h=this._bb._cn(b.column());var i=g._x()._viewport();var j=h._offset()+$.ig.truncate(h._extent()*d)-$.ig.truncate(i*c);if(j<0){j=0}var k=this._be(j);var l=k._index();if(l<b.column()&&k._offset()+i<h._l()){l++}var m=a.rowScrollRegion();var n=this._bb._cp(b.row());var o=m._x()._viewport();var p=n._offset();if(f!=0){p+=n._extent()*f}if(e!=0){p-=o*e}if(p<0){p=0}k=this._bb._cq($.ig.truncate(p));var q=k._index();if(q<b.row()&&k._offset()+o<n._l()){q++}g.startIndex(l);g._bw(0);m.startIndex(q);m._bw(0)},_bq:function(a){var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();var d=$m($$0.$aq.$type,null);var e=$$t.$ik._b5(b._j(),a.firstRow(),a.firstColumn(),a.lastRow(),a.lastColumn(),function(f){var g=$j(f._c5(),true);if($j(d,null)){d=$m($$0.$aq.$type,g);return true}else{return g==d.value()}});if(e==false){this._ea(new $$t.kx(25,null,null,null,false));return false}}return true},_br:function(a){if(this._bb.isProtected()){var b=[this._bb];var c=[new $$a4.l0(1,a.row(),a.row(),a.column(),a.column())];var d=this._ay(b,c,false,true,true);if(d==2){d=this._ay(b,c,false,true,false)}if(d!=1){return false}}return true},_bs:function(a){if(this._bb.isProtected()){var b=this.activePane();if(b==null){return false}var c=b._ag();if(c._bi().count()==0&&c._bj().count()==0){return false}if(c._aw()){return false}if(c._ax()){return false}var d=this._bb.protection();if(c._bi().count()>0){var e=a?d.allowInsertingColumns():d.allowDeletingColumns();if(e==false){return false}}else{var f=a?d.allowInsertingRows():d.allowDeletingRows();if(f==false){return false}}}return true},_bt:function(a){this._jc();var b=this._activeTable();if(b!=null&&b.isHeaderRowVisible()){var c=this.activePane()!=null?this.activePane().selection():null;if(c!=null){var d=b._bz().index();for(var e=0;e<c._bg().count();e++){var f=c._bg().item(e);if(f._i<=d&&f._h>=d){if(!a&&f._i<=b._by()._firstRowIndex()&&f._h>=b._by()._lastRowIndex()){return true}return false}}return true}}return false},_bu:function(){var a=this.activePane();if(a!=null){var c=a.selection().cellRanges().getEnumerator();while(c.moveNext()){var b=c.current();var d=$$t.$dy.a0(b);var f=this._a2._j().getEnumerator();while(f.moveNext()){var e=f.current();var h=e._j().tables().getEnumerator();while(h.moveNext()){var g=h.current();if(d._intersectsWith(g._by())){return false}}}}}return true},_bv:function(a,b){var $self=this;var c;return function(){var d=$self._cy(a,true,c,b,false);c=d.p2;return d.ret}()},_canSelect:function(a){if(this._bb.isProtected()){switch(this._bb.protection().selectionMode()){case 2:return false;case 1:if(!this._cr(a.row(),a.column())){return false}break}}return true},_canSelect1:function(a){if(this._bb.isProtected()){switch(this._bb.protection().selectionMode()){case 2:return false;case 1:if(!$$t.$ik._cp(this._bb,a.firstRow(),a.firstColumn(),a.lastRow(),a.lastColumn(),null)){return false}break}}return true},_f6:function(a){var b=this.activePane();if(b!=null){var c=b.selection();var d=a?1:-1;var e=c.cellRanges().count();var f=(c.activeCellRangeIndex()+d+e)%e;var g=c.cellRanges().item(f);if(this._canSelect(g._c())){c._setActiveCell(g._c(),$m($$0.$aw.$type,f))}}},_f7:function(a){if($l(this._fj(4),true)){this._ea(new $$t.kx(23,null,null,null,false));return}$$t.$iv.o(this,a)},_gb:function(){var a=this._bb._fd().count();this._bb._g8();if(a!=0||this._bb._fd().count()!=0){this._isLayoutDirty(true)}},_ak:function(a,b,c,d){if(c==null){var e=this.activePane();if(e!=null){if(c==null){c=$$5.$e.a($$t.$d1.$type,e.selection().cellRanges())}}}if(c!=null){if(this._b1(true,true,null)){return 1}var f=new $$4.x($$a4.$lz.$type,0);var h=this._a2._j().getEnumerator();while(h.moveNext()){var g=h.current();f.addRange($$t.$dy.f(g._j(),c))}var i=f.toArray();var j=new $$4.q($$a4.$f2.$type,0);try{$$a4.$k.gg(i,j)}catch(k){if(this._ea(new $$t.kx(a,null,k,null,b))){return 1}return 0}var l=false;var n=j.getEnumerator();while(n.moveNext()){var m=n.current();if(d!=null){var o=m.blockedRegion().worksheet();if(o.isProtected()&&o==this._bb){var p=d.a(o);var q=m.blockedRegion()._h();if($$t.$ik._cp(o,q._firstRowIndex(),q._firstColumnIndex(),q._lastRowIndex(),q._lastColumnIndex(),p)==false){l=true;continue}}}m.removeFromRegion()}var r=$$t.$dy.h(c);var s=this._a2._j().count()>1&&a!=2;var u=this._a2._j().getEnumerator();while(u.moveNext()){var t=u.current();var v=t._j();if(s){if($$t.$ik._cf(v,r)){this._ea(function(w,x,y){return new $$t.kx(w,null,null,y,x)}(20,b,v));continue}}var z=v.isProtected()&&v==this._bb&&d!=null?d.a(v):null;var aa=v.tables();for(var ab=aa.count()-1;ab>=0;ab--){var ac=aa._item(ab);var ad=ac._by();for(var ae=0;ae<r.length;ae++){if(r[ae]._contains1(ad)){aa.removeAt(ab,false);break}}}var af=v.filterSettings().region();if(af!=null&&af._aa()>0){var ag=af._h()._withLastRowIndex(af._h()._firstRowIndex());for(var ah=0;ah<r.length;ah++){if(r[ah]._contains1(ag)){v.filterSettings().clearRegion();break}}}var ai=v.__eh;v.__eh=true;try{var aj=v.rows();for(var al=0;al<c.length;al++){var ak=c[al];var am=z!=null?$$t.$en.a(z,ak.firstRow(),ak.firstColumn(),ak.lastRow(),ak.lastColumn()):null;var ao=v.rows()._m(ak.firstRow(),ak.lastRow()).getEnumerator();while(ao.moveNext()){var an=ao.current();var ap=an.index();for(var aq=ak.firstColumn();aq<=ak.lastColumn();aq++){var ar=$$t.$ik._getCellRange2(ap,aq,v);var as=ar._c();if(!ar.isSingleCell()){var at=$$t.$ik._e2(ar,v);if($$t.$dz.l_op_Inequality_Lifted(at,$m($$t.$dz.$type,null))){as=at.value()}}if(as.row()==ap&&as.column()>=aq){if(am!=null){var au=v._b4(an,as.column());if($j(au._c5(),true)&&am.e(ap,as.column())==false){l=true;continue}}an.setCellValue(as.column(),null)}else{aq=ar.lastColumn()}}}}}finally{v.__eh=ai}var av;var aw=$$t.$ik._hx(false,false,av,v,c);av=aw.p2;$$t.$dy.e3(v,r,null)}if(l){this._ea(new $$t.kx(23,null,null,null,false))}}return 2},_gc:function(a,b,c){var d=this.activePane();if(d==null){return}var e=new $$4.q($$a4.$lr.$type,0);if(this._b1(true,a,e)){return}var g=e.getEnumerator();while(g.moveNext()){var f=g.current();f.worksheet().mergedCellsRegions().remove(f)}var h=d.selection();if(b&&$l(this._fj(4),true)){var i=this._ax(h,false,true,c);switch(i){case 0:return;case 2:this._gc(a,true,false);return;case 1:break}}var j=this._bb.workbook().styles()._i(0);var k=j._i();var m=this._a2._j().getEnumerator();while(m.moveNext()){var l=m.current();var n=l._j();var p=h.cellRanges().getEnumerator();while(p.moveNext()){var o=p.current();var q=h._a0(o);var r=h._az(o);var s=false;var t=o.firstRow();var u=n._f9(o.firstColumn());var v=null;if(r==false){var w=n._f9(o.lastColumn());v=new Array(w-u+1);for(var x=u;x<=w;x++){var y=n._ff().__inner[x];var z=y.b();var aa;if(z._cd()||$.ig.$op.referenceEquals(y.b(),k)){aa=false}else if((z.style()==null||z.style()._n())&&!$$a4.$kl._y(z,k,$$a4.$k.m(z.formatOptions()))){aa=false}else{aa=true}v[x-u]=aa;s=aa||s}if(s){for(var ab=o.firstRow();ab<=o.lastRow();ab++){var ac=n.rows().item(ab)}}}var ae=n.rows()._m(o.firstRow(),o.lastRow()).getEnumerator();while(ae.moveNext()){var ad=ae.current();var af=ad.index();if(q==false&&ad._hasCellFormat()&&!$.ig.$op.referenceEquals(ad._cellFormatInternal().d(),k)){for(var ag=o.firstColumn();ag<=o.lastColumn();ag++){ad._bc(ag).formatOptions(0);ad._bc(ag).style(j)}}else{var ah=null;var ai=-1;var aj=o.firstColumn();var al=ad._ch(o.firstColumn(),o.lastColumn(),true).getEnumerator();while(al.moveNext()){var ak=al.current();if(s&&r==false&&aj!=ak.r()){for(;aj<ak.r();aj++){if(ah==null||aj>ah.r()){ai=n._f9(aj);ah=n._ff().__inner[ai]}if(!v[ai-u]){aj=ah.r();continue}ad._bc(aj).formatOptions(0);ad._bc(aj).style(j)}}if(ah==null||ak.r()>ah.r()){ai=n._f9(ak.r());ah=n._ff().__inner[ai]}var am=ak.n()&&!$.ig.$op.referenceEquals(ak.j(),k)||v[ai-u];if(am){ad._bc(ak.r()).formatOptions(0);ad._bc(ak.r()).style(j)}aj=ak.r()+1}if(s&&r==false){for(;aj<=o.lastColumn();aj++){if(ah==null||aj>ah.r()){ai=n._f9(aj);ah=n._ff().__inner[ai]}if(!v[ai-u]){aj=ah.r();continue}ad._bc(aj).style(j);ad._bc(aj).formatOptions(0)}}}}}var an=new $$a4.o(n.workbook(),0);var ap=h._bj().getEnumerator();while(ap.moveNext()){var ao=ap.current();var ar=n.rows()._m(ao._i,ao._h).getEnumerator();while(ar.moveNext()){var aq=ar.current();if(aq._hasCellFormat()){aq._cellFormatInternal()._setFormatting1(an,-97)}}}var as=n.workbook()._ca()._defaultElement();var au=h._bi().getEnumerator();while(au.moveNext()){var at=au.current();for(var av=at._i;av<=at._h;av++){var aw=n._cb(av);if(aw.b()!=null&&as._ca(aw.b())==false){var ax=Math.min(at._h,aw.r());for(var ay=av;ay<=ax;ay++){n.columns().item(ay)._cellFormatInternal()._setFormatting1(an,8)}}av=aw.r()}}var az=n.conditionalFormats();if(az.count()>0){var a0=$$t.$dy.h(h.cellRanges());$$t.$dy.ee(n,a0)}}},_gd:function(){var a=this._activeTable();if(a!=null){a.clearFilters();a.clearSortConditions()}else if(this._bb.filterSettings().region()!=null){this._bb.filterSettings().clearFilters();this._bb.filterSettings().sortSettings().sortConditions().clear()}},_ge:function(){if(this._bb._fd().count()>0){this._bb._fd().clear();this._isLayoutDirty(true)}},_s:function(a){var b;var c;var d=this._bb._cr(a.row(),a.column());if(d==null){var e=this._bb.rows().item(a.row());c=this._bd(e,a.row(),a.column());b=this._ai(e,a.column())}else{c=this._bd(this._bb.rows()._aj(d.firstRow()),d.firstRow(),d._v());b=this._ah(d)}var f=this._bb._ck(b.h,b.ak,b.ab);var g=this._e5(f);this._aj(b,g,c,false,false);return new $$t.d0(b,c,$j(g,true))},_ah:function(a){var $self=this;var b=a._h();return function(){var $ret=new $$t.cp;$ret.ab=b._firstColumnIndex();$ret.ak=b._firstRowIndex();$ret.x=b._lastColumnIndex();$ret.ag=b._lastRowIndex();$ret.r(true);$ret.h=a._k();$ret.w=a.firstColumn();$ret.ao=a.value();$ret.d=$self._p.k.c(b._firstRowIndex(),b._firstColumnIndex());return $ret}()},_ai:function(a,b){var $self=this;var c=a.index();return function(){var $ret=new $$t.cp;$ret.ab=b;$ret.x=b;$ret.ak=c;$ret.ag=c;$ret.r(false);$ret.h=a;$ret.w=b;$ret.ao=a._getCellValue1(b);$ret.d=$self._p.k.c(c,b);return $ret}()},_b0:function(a,b){var c=this._bb.rows()._aj(a);if(c!=null){var d=c._a2(b);if(d!=null&&d.j(b)){return true}}return false},_bz:function(a){var b=a._h();return this._b0(b._firstRowIndex(),b._firstColumnIndex())},_gf:function(a){var b=this.activePane();if(b==null){return}var c=b.selection();if(c._aw()){this._ea(new $$t.kx(8,null,null,$$t.$ea.getBox(144),false))}else if(c._ax()){this._ea(new $$t.kx(6,null,null,$$t.$ea.getBox(144),false))}else if($j(a,true)&&c._bj().count()>0){return}else if($j(a,false)&&c._bi().count()>0){
return}else{if($j(a,null)){if(c._bj().count()>0){this._gh();if(c._bi().count()>0){this._h0(true)}return}else if(c._bi().count()>0){this._gg();return}else{if(this._activeTable()!=null&&!this._cb()){if(c.cellRanges().count()>1){this._gi(false);return}var d=this._activeTable().dataAreaRegion()._h();var e=c.cellRanges().item(0);var f=e._aa()>e._ad();if(e._ad()==d._width()){f=false}else if(e.firstRow()<=d._firstRowIndex()&&e.lastRow()>=d._lastRowIndex()){f=true}this._gi(f);return}var g=c.cellRanges().item(0);if(g._aa()>g._ad()){a=$m($$0.$aq.$type,true)}else if(g._ad()>g._aa()){a=$m($$0.$aq.$type,false)}else{for(var h=g.firstColumn();h<=g.lastColumn();h++){if($$t.$dz.l_op_Inequality_Lifted($m($$t.$dz.$type,null),this._ev(g.lastRow(),h,3,$m($$t.$d1.$type,null),false,true))){a=$m($$0.$aq.$type,false);break}}if($j(a,null)){a=$m($$0.$aq.$type,true)}}}}if($l(this._en(),false)){this._ea(new $$t.kx(23,null,null,null,false));return}var i=$$5.$e.a($$t.$d1.$type,c.cellRanges());var k=this._a2._j().getEnumerator();while(k.moveNext()){var j=k.current();for(var m=0;m<i.length;m++){var l=i[m];j._j()._he($$t.$dy.a0(l),$j(a,true))}}}},_gg:function(){var a=this.activePane();if(a==null){return}var b=a.selection();if(b._aw()){this._ea(new $$t.kx(8,null,null,$$t.$ea.getBox(146),false))}else if(b._ax()){this._ea(new $$t.kx(6,null,null,$$t.$ea.getBox(146),false))}else{if($l(this._fj(256),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var c=$$5.$e.a($$t.$i.$type,$$5.$e.n($$t.$i.$type,b._bf()));var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();if($$t.$ik._co(d._j(),b,null)==false){this._ea(new $$t.kx(27,null,null,null,false));return}}var g=this._a2._j().getEnumerator();while(g.moveNext()){var f=g.current();for(var i=0;i<c.length;i++){var h=c[i];f._j().columns().remove(h._i,h._h-h._i+1)}}}},_gh:function(){var a=this.activePane();if(a==null){return}var b=a.selection();if(b._aw()){this._ea(new $$t.kx(8,null,null,$$t.$ea.getBox(144),false))}else if(b._ax()){this._ea(new $$t.kx(6,null,null,$$t.$ea.getBox(144),false))}else{if($l(this._fj(512),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var c=$$5.$e.a($$t.$i.$type,$$5.$e.n($$t.$i.$type,b._bg()));var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();if($$t.$ik._co(d._j(),b,null)==false){this._ea(new $$t.kx(28,null,null,null,false));return}}var g=this._a2._j().getEnumerator();while(g.moveNext()){var f=g.current();for(var i=0;i<c.length;i++){var h=c[i];f._j().rows().remove(h._i,h._h-h._i+1)}}}},_gi:function(a){var b=this._activeTable();if(b==null){return}var c=this.activePane().selection();var d=$$5.$e.a($$t.$i.$type,a?c._bf():c._bg());for(var e=d.length-1;e>=0;e--){var f=d[e];var g=f._h-f._i+1;if(a){if(f._i==b._by()._firstColumnIndex()&&g==b._by()._width()){var h=b.worksheet();var i=b._by();h.tables().remove(b,false);h._he(i,true)}else{b.deleteColumns(f._i-b._by()._firstColumnIndex(),g)}}else{if(f._i==b._by()._firstRowIndex()&&f._h==b._by()._lastRowIndex()){var j=b.worksheet();var k=b._by();j.tables().remove(b,false);j._he(k,false)}else{if(b.isTotalsRowVisible()&&f._h==b._by()._lastRowIndex()){b.isTotalsRowVisible(false);if(g==1){continue}g--}if(f._i<=b.dataAreaRegion().firstRow()&&f._h>=b.dataAreaRegion().lastRow()){b.deleteDataRows(1,b.dataAreaRegion()._aa()-1);var l=b.worksheet().rows()._aj(b.dataAreaRegion().firstRow());if(l!=null){for(var m=b._by()._firstColumnIndex(),n=b._by()._lastColumnIndex();m<=n;m++){l.setCellValue(m,null)}}}else{b.deleteDataRows(f._i-b.dataAreaRegion().firstRow(),g)}}}}},_gj:function(){this._a7.i();this._at=0;$$t.$dy.ef(this._a2._j(),this._bk);$$t.$dy.ef(this._al,this._bk);if(this._a5!=null){$$t.$dy.ef(this._a5,this)}},_b1:function(a,b,c){var d=this.activePane();if(d!=null){var e=d.selection();var f=$$t.$dy.h(e.cellRanges());var g=false;var i=this._a2._j().getEnumerator();while(i.moveNext()){var h=i.current();var j=h._j();for(var k=0;k<f.length;k++){var l=f[k];var m=j._hi(f[k],c);f[k]=m.p0;if($$a4.$l0._l_op_Inequality(f[k],l)){g=true;if(a==false){break}}}if(g&&a==false){break}}if(g){if(a){e._resetSelection($$t.$dy.g(f),e.activeCell(),e.activeCellRangeIndex(),false);this._i2()}if(b){this._ea(new $$t.kx(17,null,null,null,false))}return true}}return false},_b2:function(a,b,c){return this._b3(a,new $$t.d1(b.row(),b.column()),c)},_b3:function(a,b,c){return this._b4(a,$m($$t.$i.$type,new $$t.i(1,b.firstRow(),b.lastRow())),$m($$t.$i.$type,new $$t.i(1,b.firstColumn(),b.lastColumn())),c)},_b4:function(a,b,c,d){if(a==null){a=this.activePane();if(a==null){return false}}if($l(b,null)){b=$m($$t.$i.$type,b.value()._b(this._bb.rows().maxCount()-1)._a(0))}if($l(c,null)){c=$m($$t.$i.$type,c.value()._b(this._bb.columns().maxCount()-1)._a(0))}var e=$l(c,null)?c.value()._i:a.visibleRange().firstColumn();var f=$l(c,null)?c.value()._h:a.visibleRange().lastColumn();var g=$l(b,null)?b.value()._i:a.visibleRange().firstRow();var h=$l(b,null)?b.value()._h:a.visibleRange().lastRow();var i=$l(c,null)?this._e6(a.columnScrollRegion(),c.value(),d):$m($$t.$i.$type,null);var j=$l(b,null)?this._e6(a.rowScrollRegion(),b.value(),d):$m($$t.$i.$type,null);var k=$l(c,null)&&($j(i,null)||!c.value().equals(i.value()))||$l(b,null)&&($j(j,null)||!b.value().equals(j.value()));if(!k){return true}var l,m,n,o;l=m=n=o=0;var p,q;var r=a.visibleRange();if($j(i,null)&&f<=r.firstColumn()||$l(i,null)&&e<i.value()._i){q=e;l=0;n=0}else if($j(i,null)&&e>=r.lastColumn()||$l(i,null)&&f>i.value()._h){var s=this._bb._fq(e,f,false);var t=this._el(s);if(t>a.columnScrollRegion()._x()._viewport()){q=e;l=0;n=0}else{q=f;l=n=1}}else{q=r.firstColumn();l=n=0}if($j(j,null)&&h<=r.firstRow()||$l(j,null)&&g<j.value()._i){p=g;m=0;o=0}else if($j(j,null)&&g>=r.lastRow()||$l(j,null)&&h>j.value()._h){var u=this._bb._ft(g,h,false);var v=this._em(u);if(v>a.rowScrollRegion()._x()._viewport()){p=g;m=0;o=0}else{p=h;m=o=1}}else{p=r.firstRow();m=o=0}if(this._b9()){if(a.rowScrollRegion().isFrozen()||this._rows().count()>1&&this._rows().item(0).isFrozen()&&this._rows().item(0).endIndex()>=p){p=r.firstRow();m=o=0}if(a.columnScrollRegion().isFrozen()||this._columns().count()>1&&this._columns().item(0).isFrozen()&&this._columns().item(0).endIndex()>=q){q=r.firstColumn();l=n=0}if(p==r.firstRow()&&q==r.firstColumn()){return true}}this._f4(a,new $$t.dz(p,q),l,n,m,o);return true},extendRangeForMergedCells:function(a){return $$t.$ik._extendRangeForMergedCells1(this._bb,a,null)},_gl:function(a){var $self=this;if(this.activePane()==null){return}var b=this._activeTable();var c=this.activePane().selection();var d=c.activeCell();if(b!=null){var e=b.columns()._item(d.column()-b._by()._firstColumnIndex());switch(a){case 0:var f=this._fm(d,true);if(String.isNullOrEmpty(f)){e._j(true,[])}else{e._j(false,[f])}break;case 3:var g=this._bb._getCellConditionalFormat1(d.row(),d.column());if(g==null||g.iconInfo()==null||g.iconInfo().icon()==-1){e._r(0,$m($$0.$be.$type,null))}else{e._r($$a4.$k.aj(g.iconInfo().iconSet()),$m($$0.$be.$type,$i(g.iconInfo().iconIndex())))}break;case 1:case 2:{var h=this._bb.rows()._aj(d.row());var i=this._bb._b4(h,d.column());var j=this._bb._getCellConditionalFormat1(d.row(),d.column());if(a==1){e._applyFontColorFilter(j!=null&&j.cellFormat()!=null&&$$a4.$ah.l_op_Inequality(j.cellFormat().font().colorInfo(),null)?j.cellFormat().font().colorInfo():i._bh())}else{e.applyFillFilter(j!=null&&j.cellFormat()!=null&&j.cellFormat().fill()!=null?j.cellFormat().fill():i._ar())}}break;default:e.clearFilter();break}}else{var k=this._bb.filterSettings();if(k.region()==null||!k.region()._q(d.row(),d.column())){var l;var m;var n=function(){var o=$self._ae(false,l,m);l=o.p1;m=o.p2;return o.ret}();if(n.isEmpty()){this._ea(new $$t.kx(30,null,null,null,false));return}if(k.region()!=null){k.clearRegion()}k._setRegion1(n._toString1(1),1)}var o=d.column()-k.region().firstColumn();switch(a){case 0:var p=this._fm(d,true);if(String.isNullOrEmpty(p)){k._k(o,true,[])}else{k._k(o,false,[p])}break;case 3:var q=this._bb._getCellConditionalFormat1(d.row(),d.column());if(q==null||q.iconInfo()==null||q.iconInfo().icon()==-1){k._s(o,0,$m($$0.$be.$type,null))}else{k._s(o,$$a4.$k.aj(q.iconInfo().iconSet()),$m($$0.$be.$type,$i(q.iconInfo().iconIndex())))}break;case 1:case 2:{var r=this._bb.rows()._aj(d.row());var s=this._bb._b4(r,d.column());var t=this._bb._getCellConditionalFormat1(d.row(),d.column());if(a==1){k._applyFontColorFilter(o,t!=null&&t.cellFormat()!=null&&$$a4.$ah.l_op_Inequality(t.cellFormat().font().colorInfo(),null)?t.cellFormat().font().colorInfo():s._bh())}else{k.applyFillFilter(o,t!=null&&t.cellFormat()!=null&&t.cellFormat().fill()!=null?t.cellFormat().fill():s._ar())}}break;default:k.clearFilter(o);break}}},_gm:function(a,b){if(this._cv()==false){return}var c=this._bb.displayOptions();var d=c.frozenPaneSettings();d.frozenColumns(b);d.frozenRows(a);d.firstColumnInRightPane(this._columns().item(0).startIndex()+b);d.firstRowInBottomPane(this._rows().item(0).startIndex()+a);c.panesAreFrozen(true)},_z:function(a){var b=a.firstRow();var c=a.firstColumn();var d=a.lastRow();var e=a.lastColumn();var f=this._bb.rows();do{var g=this._fi(b);var h=this._fh(c);var i=this._fe(d);var j=this._fc(e);if($l(g,null)){var k=this._ga(g.value(),b,c,e,f,h,j);b=k.p1;c=k.p2;e=k.p3}if($l(i,null)){var l=this._ga(i.value(),d,c,e,f,h,j);d=l.p1;c=l.p2;e=l.p3}if(h.hasValue()&&$l(h,c)){var m=this._f8(h.value(),c,b,d);c=m.p1}if(j.hasValue()&&$l(j,e)){var n=this._f8(j.value(),e,b,d);e=n.p1}var o=this._f9(b,c,d,e,g,h,i,j);b=o.p0;c=o.p1;d=o.p2;e=o.p3;if($l(b,g)&&$l(d,i)&&$l(c,h)&&$l(e,j)){break}}while(true);return new $$t.d1(b,c,d,e)},_dd:function(a,b,c){var d__=new $$t.iz((-2));d__.___3__ws=a;d__.___3__ranges=b;d__.___3__rangeInitializer=c;return d__},_aa:function(){return this._u},_es:function(a,b){var c,d;if($$t.$dz.l_op_Inequality_Lifted(b,$m($$t.$dz.$type,null))&&a._contains(b.value())){d=b.value().column();c=this._getCellRange1(b.value().row(),d).firstRow()-1}else{c=a.lastRow();d=a.lastColumn()}do{if(d<a.firstColumn()){break}if(c<a.firstRow()){if(d<=a.firstColumn()){break}d--;c=a.lastRow()}else if(this._bb._eg(c)){c--}else{var e=this._bb._cb(d);if(e.i()){d=e.q()-1}else{var f=this._getCellRange1(c,d);var g=f._c();if(!f.isSingleCell()){var h=this._e1(f);if($$t.$dz.l_op_Inequality_Lifted(h,$m($$t.$dz.$type,null))){g=h.value()}}if(g.column()==d&&g.row()==c){return $m($$t.$dz.$type,g)}else if(g.column()==d){c=g.row()}else{c=f.firstRow()-1}}}}while(true);return $m($$t.$dz.$type,null)},_a8:function(a){var b=this._bd(this._bb.rows()._aj(a.row()),a.row(),a.column());var c=b._ar();var d=this._bb._getCellConditionalFormat1(a.row(),a.column());if(d!=null&&d._h()!=null&&d._h().fill()!=null){c=d._h().fill()}return $$t.$dy.bc(c)?null:c},_et:function(a,b){var c,d;if($$t.$dz.l_op_Inequality_Lifted(b,$m($$t.$dz.$type,null))&&a._contains(b.value())){d=b.value().column();c=this._getCellRange1(b.value().row(),d).lastRow()+1}else{c=a.firstRow();d=a.firstColumn()}do{if(d>a.lastColumn()){break}if(c>a.lastRow()){if(d>=a.lastColumn()){break}d++;c=a.firstRow()}else if(this._bb._eg(c)){c++}else{var e=this._bb._cb(d);if(e.i()){d=e.r()+1}else{var f=this._getCellRange1(c,d);var g=f._c();if(!f.isSingleCell()){var h=this._e1(f);if($$t.$dz.l_op_Inequality_Lifted(h,$m($$t.$dz.$type,null))){g=h.value()}}if(g.row()>=c&&g.column()>=d){return $m($$t.$dz.$type,g)}else{c=f.lastRow()+1}}}}while(true);return $m($$t.$dz.$type,null)},_eu:function(a,b,c,d,e,f){var g=this._u;if($$t.$d1.l_op_Inequality_Lifted(d,$m($$t.$d1.$type,null))){g=g.intersect(d.value())}var h=e?new $$t.d1(a,b):this._getCellRange1(a,b);switch(c){case 0:{do{b--;if(b<g.firstColumn()){return $m($$t.$dz.$type,null)}var i=this._bb._cb(b);if(i.i()){b=i.q()}else if(!h._contains2(a,b)){if(f==false||this._cr(a,b)){break}}}while(true);break}case 1:{do{b++;if(b>g.lastColumn()){return $m($$t.$dz.$type,null)}var j=this._bb._cb(b);if(j.i()){b=j.r()}else if(!h._contains2(a,b)){if(f==false||this._cr(a,b)){break}}}while(true);break}case 2:{do{a--;if(a<g.firstRow()){return $m($$t.$dz.$type,null)}if(!this._bb._eg(a)&&!h._contains2(a,b)){if(f==false||this._cr(a,b)){break}}}while(true);break}case 3:{do{a++;if(a>g.lastRow()){return $m($$t.$dz.$type,null)}if(!this._bb._eg(a)&&!h._contains2(a,b)){if(f==false||this._cr(a,b)){break}}}while(true);break}}return $m($$t.$dz.$type,new $$t.dz(a,b))},getCellRange:function(a){return this._getCellRange1(a.row(),a.column())},_getCellRange1:function(a,b){return $$t.$ik._getCellRange2(a,b,this._bb)},_getCellRange2:function(a,b,c){var d=c._cr(a,b);if(d==null){return new $$t.d1(a,b)}else{var e=d._h();return new $$t.d1(e._firstRowIndex(),e._firstColumnIndex(),e._lastRowIndex(),e._lastColumnIndex())}},_fm:function(a,b){var c=this._bb.rows()._aj(a.row());if(c!=null){return c._getCellText1(a.column(),b?1:0)}return null},_fk:function(a){var b=this._bb.rows()._aj(a.row());var c=null;if(b!=null){c=b.getCellFormula(a.column());if(c==null){c=b._getCellValue1(a.column())}}return c},_ev:function(a,b,c,d,e,f){var g=this._u;if($$t.$d1.l_op_Inequality_Lifted(d,$m($$t.$d1.$type,null))){g=g.intersect(d.value())}switch(c){case 0:case 1:var h=c==0;var i=this._bb.rows()._aj(a);var j=$m($$0.$aw.$type,null);if(i!=null){do{var k=i._c1(b,!h);if($j(k,null)){break}if(h&&$.ig.util.nullableLessThan(k,g.firstColumn())){break}if(!h&&$.ig.util.nullableGreaterThan(k,g.lastColumn())){break}if(this._bb._cb(k.value()).i()||e&&this._cq(i,k.value())==false){b=k.value()}else{j=k}}while($j(j,null))}if($j(j,null)||Math.abs(j.value()-b)>1){var l=$j(j,null)?g:new $$t.d1(g.firstRow(),h?Math.max(j.value()-1,g.firstColumn()):g.firstColumn(),g.lastRow(),!h?Math.min(j.value()-1,g.lastColumn()):g.lastColumn());var m=this._fb(a,b,c,l);if($l(m,null)){if(m.value()._c(b)){j=$m($$0.$aw.$type,h?b-1:b+1)}else if($l(j,null)){j=$m($$0.$aw.$type,h?Math.max(m.value()._h,j.value()):Math.min(m.value()._i,j.value()))}else{j=$m($$0.$aw.$type,h?m.value()._h:m.value()._i)}}}if($j(j,null)){if(!f){return $m($$t.$dz.$type,null)}if(h){var n=g.firstColumn();do{var o=this._bb._cb(n);if(o.i()){n=o.r()+1}else if(e&&this._cr(a,n)==false){n++}else{break}if(n>g.lastColumn()){return $m($$t.$dz.$type,null)}}while(true);j=$m($$0.$aw.$type,n)}else{var p=g.lastColumn();do{var q=this._bb._cb(p);if(q.i()){p=q.q()-1}else if(e&&this._cr(a,p)==false){p--}else{break}if(p<g.firstColumn()){return $m($$t.$dz.$type,null)}}while(true);j=$m($$0.$aw.$type,p)}}b=j.value();break;case 2:case 3:var r=c==2;var s=$m($$0.$aw.$type,null);do{var t=this._bb.rows()._ap(a,b,!r);if($j(t,null)){break}if(r&&$.ig.util.nullableLessThan(t,g.firstRow())){break}if(!r&&$.ig.util.nullableGreaterThan(t,g.lastRow())){break}if(this._bb._eg(t.value())||e&&this._cr(t.value(),b)==false){a=t.value()}else{s=t}}while($j(s,null));if($j(s,null)||Math.abs(s.value()-a)>1){var u=$j(s,null)?g:new $$t.d1(r?Math.max(s.value()-1,g.firstRow()):g.firstRow(),g.firstColumn(),!r?Math.min(s.value()-1,g.lastRow()):g.lastRow(),g.lastColumn());var v=this._fb(a,b,c,u);if($l(v,null)){if(v.value()._c(a)){s=$m($$0.$aw.$type,r?a-1:a+1)}else if($l(s,null)){s=$m($$0.$aw.$type,r?Math.max(v.value()._h,s.value()):Math.min(v.value()._i,s.value()))}else{s=$m($$0.$aw.$type,r?v.value()._h:v.value()._i)}}}if($j(s,null)){if(!f){return $m($$t.$dz.$type,null)}if(r){var w=g.firstRow();do{if(!this._bb._eg(w)&&(e==false||this._cr(w,b))){break}w++;if(w>g.lastRow()){return $m($$t.$dz.$type,null)}}while(true);s=$m($$0.$aw.$type,w)}else{var x=g.lastRow();do{if(!this._bb._eg(x)&&(e==false||this._cr(x,b))){break}x--;if(x<g.firstRow()){return $m($$t.$dz.$type,null)}}while(true);s=$m($$0.$aw.$type,x)}}a=s.value();break}return $m($$t.$dz.$type,new $$t.dz(a,b))},_fp:function(a){var b=this._bi(a.row(),a.column());if(b!=null){if(b.isHeaderRowVisible()){return b._bz()._getCellText1(a.column(),1)}}else{var c=this._bb.filterSettings().region();if(c!=null&&c._q(a.row(),a.column())){var d=this._bb.rows()._aj(c.firstRow());if(d!=null){var e=d._getCellText1(a.column(),1);if(String.isNullOrEmpty(e)){e="(Column "+this.activePane().columnScrollRegion()._b6()(a.column())+")"}return e}}}return null},_e1:function(a){return $$t.$ik._e2(a,this._bb)},_e2:function(a,b){var c=$$t.$ik._e3(a.firstColumn(),a.lastColumn(),b);if($j(c,null)){return $m($$t.$dz.$type,null)}var d=$$t.$ik._e4(a.firstRow(),a.lastRow(),b);if($j(d,null)){return $m($$t.$dz.$type,null)}return $m($$t.$dz.$type,new $$t.dz(d.value(),c.value()))},_e3:function(a,b,c){var d=a;while(d<=b){var e=c._cb(d);if(!e.i()){return $m($$0.$aw.$type,d)}d=e.r()+1}return $m($$0.$aw.$type,null)},_e4:function(a,b,c){if(a<=b){for(var d=a;d<=b;d++){if(!c._eg(d)){return $m($$0.$aw.$type,d)}}}return $m($$0.$aw.$type,null)},_e6:function(a,b,c){var d=a._aj(c);return d._j(b)},_e8:function(a,b){var c=b;while(c>=a){var d=this._bb._cb(c);if(!d.i()){return $m($$0.$aw.$type,c)}c=d.q()-1}return $m($$0.$aw.$type,null)},_e7:function(a){var b=this._e8(a.firstColumn(),a.lastColumn());if($j(b,null)){return $m($$t.$dz.$type,null)}var c=this._e9(a.firstRow(),a.lastRow());if($j(c,null)){return $m($$t.$dz.$type,null)}return $m($$t.$dz.$type,new $$t.dz(c.value(),b.value()))},_e9:function(a,b){for(var c=b;c>=a;c--){if(!this._bb._eg(c)){return $m($$0.$aw.$type,c)}}return $m($$0.$aw.$type,null)},_getNextCellInRange:function(a,b){var c,d;if($$t.$dz.l_op_Inequality_Lifted(b,$m($$t.$dz.$type,null))&&a._contains(b.value())){c=b.value().row();d=this._getCellRange1(c,b.value().column()).lastColumn()+1}else{c=a.firstRow();d=a.firstColumn()}do{if(c>a.lastRow()){break}if(d>a.lastColumn()){if(c>=a.lastRow()){break}c++;d=a.firstColumn()}else if(this._bb._eg(c)){c++}else{var e=this._bb._cb(d);if(e.i()){d=e.r()+1}else{var f=this._getCellRange1(c,d);var g=f._c();if(!f.isSingleCell()){var h=this._e1(f);if($$t.$dz.l_op_Inequality_Lifted(h,$m($$t.$dz.$type,null))){g=h.value()}}if(g.row()==c&&g.column()>=d){return $m($$t.$dz.$type,g)}else{d=f.lastColumn()+1}}}}while(true);return $m($$t.$dz.$type,null)},_fc:function(a){var b=this._bb.columns().maxCount()-1;return this._fd(a,b)},_fd:function(a,b){var c=a+1;while(c<=b){var d=this._bb._cb(c);if(!d.i()){return $m($$0.$aw.$type,c)}c=d.r()+1}return $m($$0.$aw.$type,null)},_fe:function(a){var b=this._bb.rows().maxCount()-1;if(this._bb._dv()&&a+1<=b){var d=this._bb.rows()._m(a+1,b).getEnumerator();while(d.moveNext()){var c=d.current();if(!c.hidden()){return $m($$0.$aw.$type,c.index())}}}else{for(var e=a+1;e<=b;e++){if(!this._bb._eg(e)){return $m($$0.$aw.$type,e)}}}return $m($$0.$aw.$type,null)},_ei:function(a,b,c,d){if(b<=0||b>=c){return 0}var e=a?this._rowItems():this._columnItems();if(e.count()<2){return 0}b/=this._zoomLevel();var f=e.item(0);var g=f._ag(b);var h=f._bm(g,true,true);var i=f._bm(g,false,true);var j=b>h+(i-h)/2?i:h;if(j<1||j>=c){return 0}else{return this._ef(j*this._zoomLevel()+d)}},_getPane2:function(a,b){var c=a*this._columns().count()+b;if(c<0||c>=this._panes().count()){throw new $$6.f(0)}return this._panes().item(c)},_ar:function(a){var b=this.activePane();if(b!=null&&this._b9()){var c=this._rows().count()*this._columns().count()-1;if(this._rows().count()>1&&this._rows().item(0).isFrozen()&&this._rows().item(0).endIndex()>=a.row()){c-=this._columns().count()}if(this._columns().count()>1&&this._columns().item(0).isFrozen()&&this._columns().item(0).endIndex()>=a.column()){c-=1}b=this._panes().item(c)}return b},_fg:function(a,b){var c,d;if($$t.$dz.l_op_Inequality_Lifted(b,$m($$t.$dz.$type,null))&&a._contains(b.value())){c=b.value().row();d=this._getCellRange1(c,b.value().column()).firstColumn()-1}else{c=a.lastRow();d=a.lastColumn()}do{if(c<a.firstRow()){break}if(d<a.firstColumn()){if(c<=a.firstRow()){break}c--;d=a.lastColumn()}else if(this._bb._eg(c)){c--}else{var e=this._bb._cb(d);if(e.i()){d=e.q()-1}else{var f=this._getCellRange1(c,d);var g=f._c();if(!f.isSingleCell()){var h=this._e1(f);if($$t.$dz.l_op_Inequality_Lifted(h,$m($$t.$dz.$type,null))){g=h.value()}}if(g.column()==d&&g.row()==c){return $m($$t.$dz.$type,g)}else if(g.row()==c){d=g.column()}else{d=f.firstColumn()-1}}}}while(true);return $m($$t.$dz.$type,null)},_fh:function(a){var b=a-1;while(b>=0){var c=this._bb._cb(b);if(!c.i()){return $m($$0.$aw.$type,b)}b=c.q()-1}return $m($$0.$aw.$type,null)},_fi:function(a){if(this._bb._dv()&&a>0){var c=this._bb.rows()._n(0,a-1,false).getEnumerator();while(c.moveNext()){var b=c.current();if(!b.hidden()){return $m($$0.$aw.$type,b.index())}}}else{for(var d=a-1;d>=0;d--){if(!this._bb._eg(d)){return $m($$0.$aw.$type,d)}}}return $m($$0.$aw.$type,null)},_ae:function(a,b,c){c=$m($$t.$fu.$type,null);b=0;if(this._activeTable()==null&&this.activePane()!=null){var d=true;var e=this.activePane().selection();var f=this._af(false,1,1);var g=$$t.$d1.empty;var h=e.activeCell();var i=this.getCellRange(h);if(e._s()._equals(i)){g=this._z(i);var j=this._bb.tables();for(var k=0;k<j.count();k++){var l=j._item(k)._by();if($$t.$dy.a9(g,l)){if(l._firstRowIndex()>i.lastRow()){g=new $$t.d1(g.firstRow(),g.firstColumn(),l._firstRowIndex()-1,g.lastColumn())}else if(l._lastRowIndex()<i.firstRow()){g=new $$t.d1(l._lastRowIndex()+1,g.firstColumn(),g.lastRow(),g.lastColumn())}else if(l._firstColumnIndex()>i.lastColumn()){g=new $$t.d1(g.firstRow(),g.firstColumn(),g.lastRow(),l._firstColumnIndex()-1)}else if(l._lastColumnIndex()<i.firstColumn()){g=new $$t.d1(g.firstRow(),l._lastColumnIndex()+1,g.lastRow(),g.lastColumn())}}}g=g.intersect(f);if(g.isEmpty()||!g._contains2(h.row(),h.column())){c=$m($$t.$fu.$type,null);return{ret:$$t.$d1.empty,p1:b,p2:c}}if(a&&this._bb.filterSettings().region()!=null&&$$a4.$l0._l_op_Equality($$t.$dy.a0(g),this._bb.filterSettings().region()._h())){c=$m($$t.$fu.$type,2)}else if(a&&$$t.$ik._cm(this._bb,g,0)){c=$m($$t.$fu.$type,1)}else{if(a&&this._bb.sortSettings().region()!=null){if(g.intersectsWith($$t.$dy.aa(this._bb.sortSettings().region()._h()))){c=$m($$t.$fu.$type,1);d=this._bb.sortSettings().sortType()==0}}if(d){var m=$$t.$dy.cu(a,g,this._bb);if(!a){m--}if(m>0){b=m;g=new $$t.d1(g.firstRow()+m,g.firstColumn(),g.lastRow(),g.lastColumn())}}}}else{var n=e.cellRanges().item(e.activeCellRangeIndex());g=f.intersect(n);if(g.isEmpty()){c=$m($$t.$fu.$type,null);return{ret:$$t.$d1.empty,p1:b,p2:c}}var o=a?$$t.$dy.cu(a,g,this._bb):0;if(a){if(n._ad()==1||n._aa()==1){var p=this._z(n);if(n._ad()==1&&p._ad()>1||n._aa()==1&&p._aa()>1){if(this._bb.sortSettings().region()!=null){if(p.intersectsWith($$t.$dy.aa(this._bb.sortSettings().region()._h()))){c=$m($$t.$fu.$type,1);d=this._bb.sortSettings().sortType()==0}}if(d){g=p;o=$$t.$dy.cu(a,g,this._bb)}}}else if(this._bb.sortSettings().region()!=null&&$$a4.$l0._l_op_Equality($$t.$dy.a0(g),this._bb.sortSettings().region()._h())){var q=this._z(n);if(n._aa()<q._aa()){g=q;o=$$t.$dy.cu(a,g,this._bb)}}if(this._bb.filterSettings().region()!=null&&$$a4.$l0._l_op_Equality($$t.$dy.a0(g),this._bb.filterSettings().region()._h())){c=$m($$t.$fu.$type,2);return{ret:g,p1:b,p2:c}}}else if(!g._contains2(h.row(),h.column())){c=$m($$t.$fu.$type,null);return{ret:$$t.$d1.empty,p1:b,p2:c}}if(o>0&&g._aa()>o){b=o;g=new $$t.d1(g.firstRow()+o,g.firstColumn(),g.lastRow(),g.lastColumn())}}if($$t.$ik._cm(this._bb,g,b)){c=$m($$t.$fu.$type,1)}return{ret:g,p1:b,p2:c}}c=$m($$t.$fu.$type,null);return{ret:$$t.$d1.empty,p1:b,p2:c}},_fj:function(a){var b=this._bb.isProtected()==false||(this._bb.protection()._m()&a)==a;if(this._a2._j().count()>1){var d=this._a2._j().getEnumerator();while(d.moveNext()){var c=d.current();var e=c._j();var f=e.isProtected()==false||(e.protection()._m()&a)==a;if(f!=b){return $m($$0.$aq.$type,null)}}}return $m($$0.$aq.$type,b)},_q:function(a){var $self=this;var b=new $$t.d1;var c=new $$t.dz;if($$t.$dz.l_op_Equality_Lifted(a,$m($$t.$dz.$type,null))){if(this.activePane()==null){return null}var d=this.activePane().selection();if(d.cellRanges().count()>1){this._ea(new $$t.kx(7,null,null,null,false));return null}c=d.activeCell();b=d.cellRanges().item(0)}else{c=a.value();b=new $$t.d1(c.row(),c.column())}var e=new $$a4.j2(1,c.row(),c.column());var f=this._bi(c.row(),c.column());if(f!=null){return new $$t.il(f,this._bb,f.wholeTableRegion()._h(),e,0,3)}if(this._bb.filterSettings().region()!=null&&this._bb.filterSettings().region()._q(c.row(),c.column())&&a.hasValue()){return new $$t.il(f,this._bb,this._bb.filterSettings().region()._h(),e,0,2)}else if(this._bb.sortSettings().region()!=null&&this._bb.sortSettings().region()._q(c.row(),c.column())&&a.hasValue()){return new $$t.il(f,this._bb,this._bb.sortSettings().region()._h(),e,0,1)}var g;var h;var i=function(){var j=$self._ae(true,g,h);g=j.p1;h=j.p2;return j.ret}();if(i.isEmpty()){this._ea(new $$t.kx(30,null,null,null,false));return null}if(h.hasValue()){switch(h.value()){case 1:return new $$t.il(f,this._bb,$$t.$dy.a0(i),e,g,1);case 3:return new $$t.il(f,this._bb,f.wholeTableRegion()._h(),e,0,3)}}if(this._bb.filterSettings().region()!=null&&$$a4.$l0._l_op_Equality($$t.$dy.a0(i),this._bb.filterSettings().region()._h())){if(i._contains1(b)){return new $$t.il(f,this._bb,this._bb.filterSettings().region()._h(),e,0,2)}i=i.union(b).intersect(this._af(false,1,1))}return new $$t.il(f,this._bb,$$t.$dy.a0(i),e,g,0)},_af:function(a,b,c){var d=this._bb._c4(this._u.firstRow(),this._u.lastRow(),this._u.firstColumn(),this._u.lastColumn(),a);if(b<1){b=1}if(c<1){c=1}return new $$t.d1(d._firstRowIndex(),d._firstColumnIndex(),Math.max(d._lastRowIndex(),d._firstRowIndex()+b-1),Math.max(d._lastColumnIndex(),d._firstColumnIndex()+c-1))},_cf:function(a,b){var d=a.tables().getEnumerator();while(d.moveNext()){var c=d.current();for(var f=0;f<b.length;f++){var e=b[f];if(c._by()._intersectsWith(e)){return true}}}return false},_b8:function(a){this._jc();var b=this.activePane()!=null?this.activePane().selection():null;if(b!=null){var c=this._activeTable();if(c!=null){if(!a&&c.sortSettings().sortConditions().count()>0){return true}for(var d=0;d<c.columns().count();d++){if(c.columns()._item(d).filter()!=null){return true}}}else{var e=this._bb.filterSettings();if(e.region()!=null){if(!a||e.region()._q(b.activeCell().row(),b.activeCell().column())){if(!a&&e.sortSettings().sortConditions().count()>0){return true}for(var f=0,g=e.region()._ad();f<g;f++){if(e.getFilter(f)!=null){return true}}}}}}return false},_cb:function(){var a=this.activePane()!=null?this.activePane().selection():null;if(this._activeTable()!=null){var b=this._activeTable()._by();for(var c=0;c<a.cellRanges().count();c++){var d=a.cellRanges().item(c);if(!b._contains2(d.firstRow(),d.firstColumn())||!b._contains2(d.lastRow(),d.lastColumn())){return true}}}else if(a.cellRanges().count()>1||!a.cellRanges().item(0).isSingleCell()){var e=this._bb.tables();if(e.count()>0){for(var f=0;f<e.count();f++){var g=e._item(f);for(var h=0;h<a.cellRanges().count();h++){var i=a.cellRanges().item(h);if($$t.$dy.a9(i,g._by())){return true}}}}}return false},_gp:function(a,b){if(b){this._go(a)}else{this._gn(a)}},_gt:function(){var a=this._bb.displayOptions();a._br();var c=this._panes().getEnumerator();while(c.moveNext()){var b=c.current();var d=this._ff(b);var e=a._af().a(d.value());if(e==null){e=new $$a4.mw;e._a=d.value();e._f=0;var f=b.rowScrollRegion().startIndex();var g=b.columnScrollRegion().startIndex();e._b=new $$a4.j2(1,f,g);var h=new $$a4.l0(1,f,f,g,g);var i=this._bb._hi(h,null);h=i.p0;e.d().add(h);a._af().b().add(e)}var j=b.selection();if(j._resetSelection($$t.$dy.g(e.d()),$$t.$dy.z(e._b),e._f,false)){j._bz()}b._am(false)}},_gw:function(a){var b=this.activePane();if(b==null){return}var c=b.selection();if(c._aw()){this._ea(new $$t.kx(8,null,null,$$t.$ea.getBox(147),false))}else if(c._ax()){this._ea(new $$t.kx(6,null,null,$$t.$ea.getBox(147),false))}else if($j(a,true)&&c._bj().count()>0){return}else if($j(a,false)&&c._bi().count()>0){return}else{if($j(a,null)){if(c._bj().count()>0){this._gy();return}else if(c._bi().count()>0){this._gx();return}else if(this._activeTable()!=null&&!this._cb()&&c.cellRanges().count()==1){var d=c.cellRanges().item(0);var e=this._activeTable().dataAreaRegion()._h();var f=d._aa()>d._ad();if(d._ad()==e._width()){f=false}else if(d.firstRow()<=e._firstRowIndex()&&d.lastRow()>=e._lastRowIndex()){f=true}this._gz(f);return}else{var g=c.cellRanges().item(0);if(g._aa()>g._ad()){a=$m($$0.$aq.$type,true)}else if(g._ad()>g._aa()){a=$m($$0.$aq.$type,false)}else{for(var h=g.firstColumn();h<=g.lastColumn();h++){if($$t.$dz.l_op_Inequality_Lifted($m($$t.$dz.$type,null),this._ev(g.lastRow(),h,3,$m($$t.$d1.$type,null),false,true))){a=$m($$0.$aq.$type,false);break}}if($j(a,null)){a=$m($$0.$aq.$type,true)}}}}if($l(this._en(),false)){this._ea(new $$t.kx(23,null,null,null,false));return}var i=$$5.$e.a($$t.$d1.$type,c.cellRanges());var k=this._a2._j().getEnumerator();while(k.moveNext()){var j=k.current();for(var m=0;m<i.length;m++){var l=i[m];j._j()._hr($$t.$dy.a0(l),$j(a,true))}}}},_gx:function(){var a=this.activePane();if(a==null){return}var b=a.selection();if(b._aw()){this._ea(new $$t.kx(8,null,null,$$t.$ea.getBox(147),false))}else if(b._ax()){this._ea(new $$t.kx(6,null,null,$$t.$ea.getBox(147),false))}else{if($l(this._fj(32),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var c=$$5.$e.a($$t.$i.$type,$$5.$e.n($$t.$i.$type,b._bf()));var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();for(var g=0;g<c.length;g++){var f=c[g];d._j().columns().insert(f._i,f._h-f._i+1)}}}},_gy:function(){var a=this.activePane();if(a==null){return}var b=a.selection();if(b._aw()){this._ea(new $$t.kx(8,null,null,$$t.$ea.getBox(145),false))}else if(b._ax()){this._ea(new $$t.kx(6,null,null,$$t.$ea.getBox(145),false))}else{if($l(this._fj(64),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var c=$$5.$e.a($$t.$i.$type,$$5.$e.n($$t.$i.$type,b._bg()));var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();for(var g=0;g<c.length;g++){var f=c[g];d._j().rows().insert(f._i,f._h-f._i+1)}}}},_gz:function(a){if(this._activeTable()==null){return}var b=this.activePane().selection();var c=this._activeTable();var d=b._s();if(a){c.insertColumns(d.firstColumn()-c._by()._firstColumnIndex(),d._ad())}else{c.insertDataRows(d.firstRow()-c.dataAreaRegion().firstRow(),d._aa())}},_g0:function(){this._isLayoutDirty(true)},_cg:function(){var a=this._activeTable();if(a!=null){if(a.isHeaderRowVisible()&&a.isFilterUIVisible()){return true}for(var b=0;b<a.columns().count();b++){if(a.columns()._item(b).filter()!=null){return true}}return false}else{return this._bb.filterSettings().region()!=null}},_ck:function(a){return a==this._n||a==this._h},_cl:function(a){return a==this._i||a==this._g||a==this._o||a==this._m},_jn:function(a){this._i9();if(a.isEmpty()){a=new $$a.af(0)}if(Number.isInfinity(a.height())){a.height(this._dz($.ig.truncate(this._jl.height())))}if(Number.isInfinity(a.width())){a.width(this._dy($.ig.truncate(this._jl.width())))}var b=false;if($$a.$af.l_op_Inequality(a,this._ji)||this._isLayoutDirty()){b=true;{var c=$$a4.$n._fc(this._bb.workbook());try{if(a.width()!=this._ji.width()){this._g1(this._columns())}if(a.height()!=this._ji.height()){this._g1(this._rows())}this._i5();this._i7();this._isLayoutDirty(false);this._ji=a;this._ek(this._columns(),a.width(),this._d4(),this._bb.workbook().maxColumnCount()-1,false,this._di.runOn(this),this._dy.runOn(this),this._el.runOn(this),this._fh.runOn(this),this._fc.runOn(this));this._ek(this._rows(),a.height(),this._d3(),this._bb.workbook().maxRowCount()-1,false,this._bb._e2.runOn(this._bb),this._dz.runOn(this),this._em.runOn(this),this._fi.runOn(this),this._fe.runOn(this));this._jb();this._i8();var e=this._columns().getEnumerator();while(e.moveNext()){var d=e.current();d._z(this._rows().item(0))}var g=this._rows().getEnumerator();while(g.moveNext()){var f=g.current();f._z(this._columns().item(0))}this._i3(true);this._i1()}finally{if(c!=null){c.dispose()}}}}if(b){if(this._al._afterPaneManagerLayout()!=null){this._al._afterPaneManagerLayout()()}}return a},_g2:function(a){var $self=this;var b=this.activePane();if(b==null){return}var c=b.selection();switch(a){case 1:case 2:if(c._ax()){return}break}if($l(this._en(),false)){this._ea(new $$t.kx(23,null,null,null,false));return;
}var d=new Array(this._a2._j().count());var e=$$5.$e.a($$t.$d1.$type,c.cellRanges());var f=$$5.$e.a($$t.$d1.$type,c.cellRanges());var g=false;var h=false;for(var i=0;i<d.length;i++){d[i]=new $$t.iw(this._a2._j().item(i)._j(),e);if(d[i].d){g=true;for(var j=0;j<f.length;j++){f[j]=f[j].union(d[i].a[j])}h=h||d[i].c}}if(g){c._resetSelection(f,c.activeCell(),c.activeCellRangeIndex(),false);switch(a){case 1:case 2:case 3:if(!this._bu()){return}break}}var k=a==3&&$$5.$e.c($$t.$iw.$type,$$5.$e.u($$t.$iw.$type,d,function(l){return l.b==$self._a2._activeTab()._j()&&l.e.count()>0}));for(var m=0;m<d.length;m++){var l=d[m];var n=l.b;var o=n.mergedCellsRegions();var q=l.e.getEnumerator();while(q.moveNext()){var p=q.current();o.remove(p)}if(a!=0){var r=$$5.$e.n($$t.$d1.$type,l.a);switch(a){case 3:if(k){var t=l.e.getEnumerator();while(t.moveNext()){var s=t.current();var u=s._h();for(var v=u._firstRowIndex(),w=u._lastRowIndex();v<=w;v++){var x=n.rows().item(v);for(var y=u._firstColumnIndex(),z=u._lastColumnIndex();y<=z;y++){x._bc(y).alignment(0)}}}continue}var ab=r.getEnumerator();while(ab.moveNext()){var aa=ab.current();if(aa.isSingleCell()){n.rows().item(aa.firstRow()).getCellFormat(aa.firstColumn()).alignment(2)}else{var ac=o._add(aa.firstRow(),aa.firstColumn(),aa.lastRow(),aa.lastColumn());ac.cellFormat().alignment(2)}}break;case 1:var ae=r.getEnumerator();while(ae.moveNext()){var ad=ae.current();if(!ad.isSingleCell()){o._add(ad.firstRow(),ad.firstColumn(),ad.lastRow(),ad.lastColumn())}}break;case 2:var ag=r.getEnumerator();while(ag.moveNext()){var af=ag.current();if(af.firstColumn()==af.lastColumn()){continue}for(var ah=af.firstRow();ah<=af.lastRow();ah++){o._add(ah,af.firstColumn(),ah,af.lastColumn())}}break}}}if(g){var ai=c.activeCell();for(var ak=0;ak<d.length;ak++){var aj=d[ak];ai=$$t.$ik._getCellRange2(ai.row(),ai.column(),aj.b)._c()}c._setActiveCell(ai,$m($$0.$aw.$type,null))}},_g3:function(a,b,c){var d=this.activePane();var e=d!=null?d.selection():null;if(e!=null){var f=e.activeCell();var g=f;var h=this._getCellRange1(f.row(),f.column());var i=e._s();var j=c==false&&this._bb.isProtected()&&this._bb.protection().selectionMode()==1&&b!=2;if(c){if(a==0||a==1){h=new $$t.d1(i.firstRow(),h.firstColumn(),i.lastRow(),h.lastColumn())}else{h=new $$t.d1(h.firstRow(),i.firstColumn(),h.lastRow(),i.lastColumn())}h=this.extendRangeForMergedCells(h);var k=b==2||b==1;var l=k?f.row():i.firstRow()<f.row()?i.firstRow():i.lastRow();var m=k?f.column():i.firstColumn()<f.column()?i.firstColumn():i.lastColumn();switch(a){case 1:if(h.firstColumn()<=i.firstColumn()){g=new $$t.dz(l,i.lastColumn())}else{g=new $$t.dz(l,i.firstColumn())}break;case 0:if(h.lastColumn()>=i.lastColumn()){g=new $$t.dz(l,i.firstColumn())}else{g=new $$t.dz(l,i.lastColumn())}break;case 3:if(h.firstRow()<=i.firstRow()){g=new $$t.dz(i.lastRow(),m)}else{g=new $$t.dz(i.firstRow(),m)}break;case 2:if(h.lastRow()>=i.lastRow()){g=new $$t.dz(i.firstRow(),m)}else{g=new $$t.dz(i.lastRow(),m)}break;default:return}}var n=this._eo(g,a,b,j,$m($$t.$d1.$type,null),false);var o=!$k(n)?n.value():g;if(c==false){this._ij(o,true)}else{this._hz(a,f,i,o)}}},_g4:function(a,b){if(!this._ji.isEmpty()){this._jn(this._ji)}var c=this.activePane();if(c!=null){var d=c.selection();var e=d.activeCell();var f=this._jo();if(!f.isEmpty()){var g=d._s();var h;var i;switch(a){default:h=c.rowScrollRegion();i=e.row();break;case 0:case 1:h=c.columnScrollRegion();i=e.column();break}if(b){var j=this._getCellRange1(e.row(),e.column());switch(a){case 2:i=g.lastRow();break;case 0:i=g.lastColumn();break;case 3:i=Math.max(g.lastRow(),j.lastRow());break;case 1:i=Math.max(g.lastColumn(),j.lastColumn());break}}var k=i-h.startIndex();this._ia(a);this._jn(f);var l=h.startIndex()+k;if(l<h.startIndex()){l=h.startIndex()}else if(l>h.endIndex()){l=h.endIndex()}var m=new $$t.dz;switch(a){default:case 2:case 3:m=new $$t.dz(l,e.column());break;case 0:case 1:m=new $$t.dz(e.row(),l);break}if(!b){this._ij(m,true)}else{this._hz(a,e,g,m)}}}},_g5:function(a,b){var c=this.activePane();if(c!=null){var d=c.columnScrollRegion()._aj(true);var e=c.rowScrollRegion()._aj(true);var f=new $$t.d1(e._i,d._i,e._h,d._h);var g=a?this._e1(f):this._e7(f);if($$t.$dz.l_op_Inequality_Lifted(g,$m($$t.$dz.$type,null))){if(!b){this._ij(g.value(),true)}else{this._cs(g.value())}}}},_g6:function(a,b){var c=0;if(b&&this._b9()){var d=$$5.$e.af($$t.$i2.$type,this._columns());if(d!=null&&d.isFrozen()){c=d.endIndex()+1}}var e=$$t.$ik._e3(c,this._bc().columns().maxCount()-1,this._bb);if($l(e,null)){var f=new $$t.dz(this.activePane().selection().activeCell().row(),e.value());if(!a){this._ij(f,true)}else{this._hz(0,this.activePane().selection().activeCell(),this.activePane().selection()._s(),f)}}},_g7:function(a,b){var c=this._aa();if(b&&this._b9()){var d=0;var e=0;var f=$$5.$e.af($$t.$i2.$type,this._columns());var g=$$5.$e.af($$t.$i4.$type,this._rows());if(f!=null&&f.isFrozen()){d=f.endIndex()+1}if(g!=null&&g.isFrozen()){e=g.endIndex()+1}c=new $$t.d1(Math.max(Math.min(e,c.lastRow()),c.firstRow()),Math.max(Math.min(d,c.lastColumn()),c.firstColumn()),c.lastRow(),c.lastColumn())}var h=this._e1(c);if($$t.$dz.l_op_Inequality_Lifted(h,$m($$t.$dz.$type,null))){if(!a){this._ij(h.value(),true)}else{if(this._cs(h.value())){this._b2(null,h.value(),true)}}}},_g8:function(a){this._jd();var b=new $$t.d1(this._t.firstRow(),this._t.firstColumn(),this._t.lastRow()+1,this._t.lastColumn()+1);var c=a?this._e1(b):this._e7(b);if($$t.$dz.l_op_Inequality_Lifted(c,$m($$t.$dz.$type,null))){while($$t.$dz.l_op_Inequality_Lifted(c,$m($$t.$dz.$type,null))&&this._cr(c.value().row(),c.value().column())==false){c=a?this._getNextCellInRange(b,c):this._fg(b,c)}if($$t.$dz.l_op_Inequality_Lifted(c,$m($$t.$dz.$type,null))){this._ij(c.value(),true)}}},_g9:function(a){var b=this.activePane().visibleRange();var c=this.activePane().selection();var d=c._s();d=b.intersect(d);if(!d.isEmpty()){var e=a?this._e1(d):this._e7(d);if($$t.$dz.l_op_Inequality_Lifted(e,$m($$t.$dz.$type,null))&&this._canSelect(e.value())){c._setActiveCell(e.value(),$m($$0.$aw.$type,c.activeCellRangeIndex()))}}},_ha:function(a){var b=this._af(false,1,1);var c=this._e7(b);if($$t.$dz.l_op_Inequality_Lifted(c,$m($$t.$dz.$type,null))){var d=this._getCellRange1(c.value().row(),c.value().column());c=this._e1(d);if(!a){this._ij(c.value(),true)}else{if(this._cs(c.value())){this._b2(null,c.value(),true)}}}},_hb:function(a){var b=this._af(false,1,1);var c=this._e8(b.firstColumn(),b.lastColumn());var d=this.activePane();if($l(c,null)&&d!=null){var e=d.selection();var f=e.activeCell();var g=this._getCellRange1(f.row(),c.value());var h=$$t.$ik._e4(g.firstRow(),g.lastRow(),this._bb);var i=new $$t.dz(!$k(h)?h.value():f.row(),c.value());if(!a){this._ij(i,true)}else{this._hz(1,f,e._s(),i)}}},_ct:function(a){if(!this._b9()){var b=this._bb.displayOptions().unfrozenPaneSettings();var c=a?b.topPaneHeight():b.leftPaneWidth();var d=a?this._rowItems():this._columnItems();if(c>0&&d.count()>1){var e=d.item(0);var f=e._bk();if(f<.5||e._m().count()==0){return false}var g=$$5.$e.ah($$a4.$lq.$type,e._m());var h=a?this._dz(g._extent()):this._dy(g._extent());if(Math.abs(h-f)<.5){return false}return true}}return false},_hc:function(a,b){var c=this.activePane().selection();if(c!=null){var d=c.cellRanges();c._by();var e=c.activeCell();var f=this._getCellRange1(e.row(),e.column());var g=e;var h=c.activeCellRangeIndex();var i=!$k(b)?b.value():this._bb.isProtected();if(d.count()==1&&f._contains1(d.item(0))){if(i){var j=this._eo(e,a,0,true,$m($$t.$d1.$type,null),false);g=!$k(j)?j.value():e}else{var k=e.row();var l=e.column();switch(a){case 1:l=f.lastColumn();break;case 0:l=f.firstColumn();break;case 3:k=f.lastRow();break;case 2:k=f.firstRow();break}var m=this._eu(k,l,a,$m($$t.$d1.$type,null),false,false);g=!$k(m)?m.value():e}this._ik(g,false,$m($$t.$d1.$type,new $$t.d1(g.row(),g.column())))}else{var n=c.activeCellRangeIndex();var o=d.count();var p=a==0||a==2?-1:1;for(var q=0;q<=o;q++){var r=(q*p+n+o)%o;var s=d.item(r);var t=q==0?$m($$t.$dz.$type,e):$m($$t.$dz.$type,null);var u=$m($$t.$dz.$type,null);if(i){if(q!=0){switch(a){case 2:case 0:t=$m($$t.$dz.$type,s._b());break;case 3:case 1:t=$m($$t.$dz.$type,s._c());break}}u=this._eo(t.value(),a,0,true,$m($$t.$d1.$type,s),q!=0)}else{switch(a){case 2:u=this._es(s,t);break;case 3:u=this._et(s,t);break;case 0:u=this._fg(s,t);break;case 1:u=this._getNextCellInRange(s,t);break}}if($$t.$dz.l_op_Inequality_Lifted(u,$m($$t.$dz.$type,null))){g=u.value();h=r;break}}if(this._canSelect(g)&&c._setActiveCell(g,$m($$0.$aw.$type,h))){this._b3(null,new $$t.d1(g.row(),g.column()),true)}}}},_hd:function($tContext,$tValue,a,b){if(this._b7(1048576)&&$$t.$ik._ch(b)){return}var c=0;switch(b.a){case 28:switch(b.c){case"Remove":c=5|32768|3;break}break;case 7:if(this._p.n()){if(b.c=="ChartShift"){this._p.ab(a)}else{this._p.aa(a.source())}}break;case 6:case 8:c=515;break;case 66:case 68:case 69:case 67:case 70:case 71:break;case 4:case 61:case 85:case 27:switch(b.c){case"Alignment":case"FontBold":case"FontColorInfo":case"FontHeight":case"FontItalic":case"FontName":case"FontStrikeout":case"FontSuperscriptSubscriptStyle":case"FontUnderlineStyle":case"FormatString":case"Indent":case"Rotation":case"ShrinkToFit":case"Style":case"VerticalAlignment":case"WrapText":case"FormatOptions":case"SetFormatting":case"SetFontFormatting":c=5|3;break;case"Locked":c=3;break;case"BottomBorderColorInfo":case"BottomBorderStyle":case"DiagonalBorderColorInfo":case"DiagonalBorders":case"DiagonalBorderStyle":case"Fill":case"LeftBorderColorInfo":case"LeftBorderStyle":case"RightBorderColorInfo":case"RightBorderStyle":case"TopBorderColorInfo":case"TopBorderStyle":c=3;break;default:break}break;case 47:switch(b.c){case"OnVisited":case"DisplayText":c=5;break}break;case 48:case 49:case 16:c=5|3;break;case 5:c=5|3;break;case 26:switch(b.c){case"Width":c=5|9;break;case"Hidden":c=5|9;if(this._p.n()){this._p.g.m(b.k(a),a);this._ht(268435456)}break}break;case 60:switch(b.c){case"Height":c=5|9;break;case"Hidden":c=5|9;if(this._p.n()){this._p.g.m(b.k(a),a);this._ht(268435456)}break}break;case 65:case 9:case 90:switch(b.c){case"DefaultColumnWidth":case"DefaultRowHeight":case"DefaultRowHidden":c=5|9;break;case"ImageBackground":c=1;break;case"IsProtected":c=this._au()|128;break;case"ValidationInputMessagePosition":c=1024;break;case"ResizeColumns":case"ResizeRows":c=5|9;if(this._p.n()){if(a.hasHiddenChanges()){this._p.g.m(b.k(a),a);this._ht(268435456)}}break}break;case 35:switch(b.c){case"Reset":c=1|5|3|17|128|1024;break;case"ShowGridlines":case"GridlineColor":this._p.ac();c=1;break;case"ShowRowAndColumnHeaders":case"MagnificationInNormalView":c=1|128;break;case"ShowZeroValues":case"ShowFormulasInCells":c=5|3|1024;break;case"FirstColumnInRightPane":case"FirstRowInBottomPane":case"FirstColumnInLeftPane":case"FirstRowInTopPane":case"FrozenColumns":case"FrozenRows":case"LeftPaneWidth":case"TopPaneHeight":case"PanesAreFrozen":c=17;break}break;case 86:switch(b.c){case"ScrollBars":case"ObjectDisplayStyle":c=1;break;case"Reset":c=1;break}break;case 99:c=49;break;case 89:c=257;break;case 87:switch(b.c){case"CellReferenceMode":c=17;break;case"Culture":case"EditingCulture":case"DateSystem":case"Precision":case"VolatileFormulaDirtied":c=5;break}break;case 93:case 94:case 95:case 96:case 97:case 98:c=32768|1|5|3|8192;break;case 50:c=5|3|64|17;break;case 18:case 51:c=5|3|64;break;case 62:c=515;break;case 21:case 63:case 64:c=5|3;break;case 25:case 73:case 75:case 76:case 77:case 78:case 84:case 79:c=5|3|8192;break;case 72:c=5|8192;break;case 103:switch(b.c){case"SelectionMode":c=this._au()|128;break}break;case 74:switch(b.c){case"Filter":c=16384;break}break;case 12:case 31:case 32:case 33:c=4096|16384;break;case 38:case 23:case 22:case 80:c=16384;break;case 3:case 88:case 91:case 92:case 17:case 53:case 54:case 11:case 29:case 30:case 13:case 36:case 37:case 10:case 0:case 59:case 15:case 39:case 40:case 19:case 55:case 56:case 20:case 57:case 58:case 24:case 81:case 82:case 83:case 41:case 42:case 43:case 44:case 45:case 14:case 34:case 46:case 52:break;default:break}if(c!=0){this._at|=c;this._ht(65536)}},_he:function(a,b,c){if(this._p.n()){this._p.g.k(a,b,c);this._ht(268435456)}if(a==this._bb&&!this._b7(16384)){if(b>=0&&c>=0){this._p.af(b,c)}this._ip(8192,true);this._ht(16);this._isLayoutDirty(true)}},_hf:function(a){this._p.k.n(true);this._p.z();if(!this._b7(16384)){this._isLayoutDirty(true)}},_hg:function(){this._gs();this._ht(32|8|8192|1024|16);this._isLayoutDirty(true);this._jn(this._jo())},_hh:function(){this._p.ag()},_cu:function(a,b,c){var $self=this;if(b){var d=this._bb.displayOptions().magnificationInNormalView();var e=Math.max(10,Math.min(400,$.ig.truncate($$a4.$aa.f(d-a*5))));var g=this._a2._j().getEnumerator();while(g.moveNext()){var f=g.current();f._j().displayOptions().magnificationInNormalView(e)}}else if(!c){var h=this.activePane()!=null?this.getScrollableRegion(this.activePane().rowScrollRegion()):null;if(h!=null){var i=a<0;var j=$.ig.truncate(Math.max(1,$$a4.$aa.f(Math.abs(a))))*(i?-1:1);var k=h.startIndex()+j;if(k<0){k=0}else if(k>=this._bb.rows().maxCount()){k=this._bb.rows().maxCount()-1}else if(this._bb._eg(k)){var l=this._er(k,!i);if($l(l,null)){k=l.value()}}return this._c2(h,k,this._ee,this._bb.workbook().maxRowCount(),this._jj.height(),this._bb._cq.runOn(this._bb),this._bb._cp.runOn(this._bb))}}else{var m=this.activePane()!=null?this.getScrollableRegion(this.activePane().columnScrollRegion()):null;if(m!=null){var n=a<0;var o=$.ig.truncate(Math.max(1,$$a4.$aa.f(Math.abs(a))))*(n?-1:1);var p=m.startIndex()+o;if(p<0){p=0}else if(p>=this._bb.columns().maxCount()){p=this._bb.columns().maxCount()-1}else if(this._bb._ec(p)){var q=this._eq(p,!n);if($l(q,null)){p=q.value()}}return this._c2(m,p,this._ed,this._bb.workbook().maxColumnCount(),this._jj.width(),function(r){return $self._bb._co(r)},this._bb._cn.runOn(this._bb))}}return false},_hk:function(){this._p.ah();this._isLayoutDirty(true)},_hm:function(a){if(this._bb.isProtected()&&this._bb.protection().selectionMode()==1){this._g3(a,0,false)}else{this._hc(a,$m($$0.$aq.$type,false))}},_hr:function(){if(this._cc()){this._jf(true)}},queueExpensiveOperation:function(a){var b=new $$t.is(a);this._dp.enqueue(b);this._iv();return b},_hu:function(){var a=this._activeTable();if(a!=null){a.reapplyFilters();a.reapplySortConditions()}else if(this._bb.filterSettings().region()!=null){this._bb.filterSettings().reapplyFilters();this._bb.filterSettings().reapplySortConditions()}},_ag:function(a){var b=$$t.$dy.a0(a);var c=this._bb._ic(b);b=c.p0;if(!b._isValid()){return a}return $$t.$dy.aa(b)},_hv:function(){this._p.z();this._al._j().aq()},_cx:function(a,b){this._jc();var c=$$t.$dy.x(this._bb,b.row(),b.column());if(c!=null){if(a){return c.g()}return c.n()}return false},_hw:function(a,b){if(a==false&&this._b1(true,true,null)){return}if($l(this._en(),false)){var c=this._fj(128);if($l(c,true)){this._ea(new $$t.kx(23,null,null,null,false));return}else{var d=new $$t.el;var e;var f=this._cy(a,true,e,d,true);e=f.p2;var g=this._aw(d,e,b);switch(g){case 0:return;case 1:break;case 2:this._hw(a,false);return}}}var h;var i=this._cy(a,false,h,null,false);h=i.p2},_hy:function(a,b){var c=this._bb.displayOptions();if(c.panesAreFrozen()){if(a){c.frozenPaneSettings().frozenRows(0)}if(b){c.frozenPaneSettings().frozenColumns(0)}}else{if(a){c.unfrozenPaneSettings().topPaneHeight(0)}if(b){c.unfrozenPaneSettings().leftPaneWidth(0)}}},_h0:function(a){var b=this.activePane();var c=b!=null?b.selection():null;if(c!=null){var d=a?c._bi():c._bf();if(d.count()>0){var e=new $$4.x($$a4.$la.$type,2,d.count());for(var f=0;f<d.count();f++){e.add(new $$a4.la(1,d.item(f)._i,d.item(f)._h))}var h=this._a2._j().getEnumerator();while(h.moveNext()){var g=h.current();var i=g._j();var j=i.defaultColumnWidth();i._ik(e,j)}}}},_h1:function(a){var b=this.activePane();var c=b!=null?b.selection():null;if(c!=null){var d=a?c._bj():c._bg();if(d.count()>0){var e=false;var g=this._a2._j().getEnumerator();while(g.moveNext()){var f=g.current();var h=f._j();var i=h._d4()?h.defaultRowHeight():-1;var k=d.getEnumerator();while(k.moveNext()){var j=k.current();var m=h.rows()._m(j._i,j._h).getEnumerator();while(m.moveNext()){var l=m.current();if(this._c6(l,i)){e=true}}}}if(e){this._at|=5|9;this._ht(65536)}}}},_h9:function(a){var b=this.activePane();if(null!=b){switch(a){case 2:this._c3(b.rowScrollRegion(),1,b.rowScrollRegion()._x()._offset());break;case 3:this._c3(b.rowScrollRegion(),4,b.rowScrollRegion()._x()._offset());break;case 0:this._c0(b.columnScrollRegion(),1,b.columnScrollRegion()._x()._offset());break;case 1:this._c0(b.columnScrollRegion(),4,b.columnScrollRegion()._x()._offset());break}}},_ia:function(a){var b=this.activePane();if(null!=b){switch(a){case 2:this._c3(b.rowScrollRegion(),0,b.rowScrollRegion()._x()._offset());break;case 3:this._c3(b.rowScrollRegion(),3,b.rowScrollRegion()._x()._offset());break;case 0:this._c0(b.columnScrollRegion(),0,b.columnScrollRegion()._x()._offset());break;case 1:this._c0(b.columnScrollRegion(),3,b.columnScrollRegion()._x()._offset());break}}},_ib:function(){var a=this.activePane();if(a!=null){var b=a.selection();if(this._canSelect(b.activeCell())){b.clearCellRanges()}}},_ic:function(){this._cz(this._aa())},_c4:function(){var a=this.activePane();if(a==null){return false}var b=a.selection();var c=b.activeCell();var d=this._bb.rows()._aj(c.row());if(d!=null){var e=$b($$a4.$d8.$type,d.getCellFormula(c.column()));if(e!=null){var f=e.blockedRegion();var g=$$t.$dy.aa(f._h());if(this._canSelect1(g)){b._resetSelection2(g,c,false)}return true}}return false},_id:function(){var a=this.activePane();if(a==null){return}var b=a.selection();var c=b.activeCell();var d=this._getCellRange1(c.row(),c.column());var e=b._s();var f=false;var g=$$t.$dy.a0(e);var h=$$t.$d1.empty;var i=this._bj(g,c);if(i!=null){var j=i._by();if(!j._contains1(g)&&j._contains2(c.row(),c.column())){h=$$t.$dy.aa(j)}else if($$a4.$l0._l_op_Equality(j,g)||!j._contains1(g)){f=true}else{var k=i.dataAreaRegion();if(k==null){f=true}else{var l=k._h();if(l._contains1(g)&&$$a4.$l0._l_op_Inequality(l,g)){h=$$t.$dy.aa(l)}else{h=$$t.$dy.aa(j)}}}}if(f){h=this._aa()}else if(h.isEmpty()){h=this._z(d);if($$t.$d1.l_op_Equality(d,h)||!h._contains1(e)||$$t.$d1.l_op_Equality(e,h)){h=this._aa()}}if(this._canSelect1(h)){b._replaceActiveCellRange1(h,c,true)}},_ie:function(a){var b=this.activePane().selection();var c=b._s();var d=this._aa();var e=$$t.$dy.a0(c);var f=this._bj(e,b.activeCell());if(f!=null){var g=f._by();if(g._contains1(e)){var h=new $$t.i,i=new $$t.i,j=new $$t.i;if(a==false){h=new $$t.i(1,g._firstRowIndex(),g._lastRowIndex());i=new $$t.i(1,e._firstRowIndex(),e._lastRowIndex())}else{h=new $$t.i(1,g._firstColumnIndex(),g._lastColumnIndex());i=new $$t.i(1,e._firstColumnIndex(),e._lastColumnIndex())}if(!h.equals(i)){var k=f.dataAreaRegion();if(k!=null){var l=k._h();j=a==false?new $$t.i(1,l._firstRowIndex(),l._lastRowIndex()):new $$t.i(1,l._firstColumnIndex(),l._lastColumnIndex());var m=new $$t.i;if(i._i<j._i||i._h>j._h||i.equals(j)){m=h}else{m=j}if(a==false){d=new $$t.d1(m._i,d.firstColumn(),m._h,d.lastColumn())}else{d=new $$t.d1(d.firstRow(),m._i,d.lastRow(),m._h)}}}}}if(a){c=new $$t.d1(c.firstRow(),d.firstColumn(),c.lastRow(),d.lastColumn())}else{c=new $$t.d1(d.firstRow(),c.firstColumn(),d.lastRow(),c.lastColumn())}c=this.extendRangeForMergedCells(c);if(this._canSelect1(c)){b._replaceActiveCellRange1(c,b.activeCell(),true)}},_ig:function(a){var b=this._activeTable();if(b!=null){var c=this.activePane().selection();var d=c._s();var e=b._by();var f=b.dataAreaRegion()._h();var g=new $$t.d1(a?e._firstRowIndex():Math.min(c.activeCell().row(),f._firstRowIndex()),Math.max(d.firstColumn(),e._firstColumnIndex()),a?e._lastRowIndex():Math.max(c.activeCell().row(),f._lastRowIndex()),Math.min(d.lastColumn(),e._lastColumnIndex()));c._replaceActiveCellRange1(g,c.activeCell(),true)}},_ih:function(){var a=this._activeTable();if(a!=null){var b=this.activePane().selection();var c=b._s();var d=a._by();var e=new $$t.d1(Math.max(c.firstRow(),d._firstRowIndex()),d._firstColumnIndex(),Math.min(c.lastRow(),d._lastRowIndex()),d._lastColumnIndex());b._replaceActiveCellRange1(e,b.activeCell(),true)}},_ii:function(){var a=this.activePane();if(a!=null){var b=a.selection();var c=$$5.$e.a($$t.$d1.$type,b.cellRanges());var d=new $$4.x($$t.$d1.$type,0);var e=new $$4.x($$t.$i.$type,0);var f=b.activeCellRangeIndex();var g=b.activeCell();var h=-1;for(var i=0;i<c.length;i++){var j=c[i];var k,l;k=l=$m($$0.$aw.$type,null);e.clear();for(var m=j.firstColumn();m<=j.lastColumn();m++){var n=this._bb._cb(m);if(n.i()){if($l(k,null)){e.add(new $$t.i(1,k.value(),l.value()));k=l=$m($$0.$aw.$type,null)}m=n.r()}else{if($j(k,null)){k=$m($$0.$aw.$type,Math.max(n.q(),j.firstColumn()))}l=$m($$0.$aw.$type,Math.min(n.r(),j.lastColumn()))}}if($l(k,null)){e.add(new $$t.i(1,k.value(),l.value()))}if(e.count()==0){continue}var o=$$t.$ik._e4(j.firstRow(),j.lastRow(),this._bb);var p=this._bb._dv();var q;var r=this._bb.rows();while($l(o,null)){q=$m($$0.$aw.$type,null);var s=false;var u=r._m(o.value()+1,j.lastRow()).getEnumerator();while(u.moveNext()){var t=u.current();if(t.hidden()){s=true;if(p==false){q=$m($$0.$aw.$type,t.index()-1)}break}else{if(p==false){q=$m($$0.$aw.$type,t.index())}else if($l(q,t.index()-1)){s=true;break}}}if($j(q,null)){if(p){q=o}else{q=$m($$0.$aw.$type,j.lastRow())}}else if(!s&&!p){q=$m($$0.$aw.$type,j.lastRow())}for(var v=0;v<e.count();v++){d.add(new $$t.d1(o.value(),e.__inner[v]._i,q.value(),e.__inner[v]._h));if(i==f&&d.__inner[d.count()-1]._contains(g)){h=d.count()-1}}o=$$t.$ik._e4(q.value()+2,j.lastRow(),this._bb)}}if(d.count()>0){if(h<0){h=0;g=d.__inner[0]._c()}b._resetSelection(d.toArray(),g,h,true)}}},_il:function(a){var $self=this;var b=this._activeTable();if(b!=null){if(a){b.isHeaderRowVisible(true);b.isFilterUIVisible(true)}else{b.clearFilters();b.clearSortConditions();b.isFilterUIVisible(false)}}else{var c=this._bb.filterSettings();if(c.region()!=null){if(!a){c.clearRegion()}}else if(a){var d=this.activePane().selection();if(d.cellRanges().count()>1){this._ea(new $$t.kx(7,null,null,null,false))}else{var e;var f;var g=function(){var h=$self._ae(false,e,f);e=h.p1;f=h.p2;return h.ret}();if(g.isEmpty()){this._ea(new $$t.kx(30,null,null,null,false))}else{c._setRegion1(g._toString1(1),1)}}}}},_im:function(a,b,c,d){if($l(this._fj(4),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var e=this._aa();var f=new $$t.ix(b,c,d);var g=(b&(64|128))!=0;var h=d==0;var j=this._a2._j().getEnumerator();while(j.moveNext()){var i=j.current();var k=i._j();var l=new Array(1);var n=a.getEnumerator();while(n.moveNext()){var m=n.current();l[0]=m;var o=$$t.$dy.a0(m);var p=m.firstRow()<=e.firstRow()&&m.lastRow()>=e.lastRow();if(p){var q=k.columns();if((b&16)==16){for(var r=m.firstColumn();r<=m.lastColumn();r++){f.o(q.item(r).cellFormat())}}if((b&32)==32){for(var s=m.firstColumn()+1;s<=m.lastColumn();s++){f.j(q.item(s).cellFormat())}}if((b&1)==1){f.j(q.item(m.firstColumn()).cellFormat())}if((b&4)==4){f.m(q.item(m.lastColumn()).cellFormat())}var u=k.mergedCellsRegions().getEnumerator();while(u.moveNext()){var t=u.current();if(t._ad()>1&&o._contains1(t._h())){f.l(t,o,false,true)}}if(g){for(var v=m.firstColumn();v<=m.lastColumn();v++){f.h(q.item(v)._cellFormatInternal())}var w=m.firstColumn();var x=m.lastColumn();var z=k.rows().getEnumerator();while(z.moveNext()){var y=z.current();if(y._hasCellFormat()&&(h==false||y._cellFormatInternal().d()._aw()!=1)){for(var aa=m.firstColumn();aa<=m.lastColumn();aa++){f.h(y._bc(aa))}}else{y._dj(w,x,f.i.runOn(f))}}}}else{var ab=m.firstColumn()<=e.firstColumn()&&m.lastColumn()>=e.lastColumn();var ac=k.rows();if(ab){if((b&16)==16){for(var ad=m.firstRow()+1;ad<=m.lastRow();ad++){f.n(ac.item(ad).cellFormat())}}if((b&32)==32){for(var ae=m.firstRow();ae<=m.lastRow();ae++){f.k(ac.item(ae).cellFormat())}}if((b&2)==2){f.n(ac.item(m.firstRow()).cellFormat())}if((b&8)==8){f.g(ac.item(m.lastRow()).cellFormat())}var ag=k.mergedCellsRegions().getEnumerator();while(ag.moveNext()){var af=ag.current();if(af._aa()>1&&o._contains1(af._h())){f.l(af,o,true,false)}}if(g){var ah=k.columns().maxCount();for(var ai=m.firstRow();ai<=m.lastRow();ai++){var aj=ac.item(ai);f.h(aj._cellFormatInternal());aj._dj(0,ah,f.i.runOn(f))}}}else{for(var ak=m.firstRow();ak<=m.lastRow();ak++){var al=ac.item(ak);for(var am=m.firstColumn();am<=m.lastColumn();am++){var an=al.getCellAssociatedMergedCellsRegion(am);if(an==null){var ao=al._bc(am);if(ak==m.firstRow()){if((b&2)==2){f.n(ao)}}else if((b&16)==16){f.n(ao)}if(m.lastRow()==ak){if((b&8)==8){f.g(ao)}}else if((b&16)==16){f.g(ao)}if(am==m.firstColumn()){if((b&1)==1){f.j(ao)}}else if((b&32)==32){f.j(ao)}if(m.lastColumn()==am){if((b&4)==4){f.m(ao)}}else if((b&32)==32){f.m(ao)}if(g){f.h(ao)}}else if(o._contains1(an._h())&&ak==an.firstRow()){f.l(an,o,true,true);if(g){f.h(an._cellFormatInternal())}am=an.lastColumn()}}}}}}}},_io:function($t,a,b,c,d,e){var f=this._aa();if((d&1048576)==1048576){var g=this._ez(c);if($l(null,g)){this._ea(new $$t.kx(g.value(),null,null,null,false));return}}if($l(this._fj(4),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var i=this._a2._j().getEnumerator();while(i.moveNext()){var h=i.current();var j=h._j();var k=e?new $$4.q($$0.$ax.$type,0):null;var m=c.getEnumerator();while(m.moveNext()){var l=m.current();var n=$$t.$dy.a0(l);var o=l.firstRow()<=f.firstRow()&&l.lastRow()>=f.lastRow();if(o){var p=j.columns();for(var q=l.firstColumn();q<=l.lastColumn();q++){b(p.item(q)._cellFormatInternal(),a)}var s=j.mergedCellsRegions().getEnumerator();while(s.moveNext()){var r=s.current();if(r._ad()>1){if(n._contains1(r._h())){b(r._cellFormatInternal(),a)}}}}else{var t=l.firstColumn()<=f.firstColumn()&&l.lastColumn()>=f.lastColumn();var u=j.rows();if(t){for(var v=l.firstRow();v<=l.lastRow();v++){b(u.item(v)._cellFormatInternal(),a)}var x=j.mergedCellsRegions().getEnumerator();while(x.moveNext()){var w=x.current();if(w._aa()>1){if(n._contains1(w._h())){b(w._cellFormatInternal(),a)}}}}else{for(var y=l.firstRow();y<=l.lastRow();y++){var z=u.item(y);for(var aa=l.firstColumn();aa<=l.lastColumn();aa++){if(k==null||k.add((z.index()<<32)+aa)){var ab=z.getCellAssociatedMergedCellsRegion(aa);if(ab!=null&&!n._contains1(ab._h())){continue}b(z._bc(aa),a)}}}}}}}},_is:function(a){var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();b._j().displayOptions().magnificationInNormalView(a)}},_iq:function(a){var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();b._j().displayOptions().showGridlines(a)}},_ir:function(a){var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();b._j().displayOptions().showRowAndColumnHeaders(a)}},_it:function(a,b){if(!this._b9()){var c=this._bb.displayOptions().unfrozenPaneSettings();if(this._cv()){this._jn(this._ji);if(a&&c.topPaneHeight()>0){var d=this._rows().item(0)._bk();if($$ak.$c.c(d,0)==false){var e=$$5.$e.ah($$a4.$lq.$type,this._rows().item(0)._m());var f=this._dz(e._extent());var g=d<f/2?d:d-f;c.topPaneHeight(c.topPaneHeight()+this._ef(g))}}if(b&&c.leftPaneWidth()>0){var h=this._columns().item(0)._bk();if($$ak.$c.c(h,0)==false){var i=$$5.$e.ah($$a4.$lq.$type,this._columns().item(0)._m());var j=this._dy(i._extent());var k=h<j/2?h:h-j;c.leftPaneWidth(c.leftPaneWidth()+this._ef(k))}}}}},_iu:function(a,b,c){var d=b?0:1;var e=this._q(c);if(e==null){return}var f=e.c;var g;switch(a){case 0:g=new $$a4.aed(d);break;case 3:var h=this._bb._getCellConditionalFormat1(f.o(),f.m());g=h==null||h.iconInfo()==null||h.iconInfo().icon()==-1?new $$a4.aea(true,0,$m($$0.$be.$type,null)):new $$a4.aea(true,$$a4.$k.aj(h.iconInfo().iconSet()),$m($$0.$be.$type,$i(h.iconInfo().iconIndex())));break;case 1:case 2:{var i=this._bb.rows()._aj(f.o());var j=this._bb._b4(i,f.m());var k=this._bb._getCellConditionalFormat1(f.o(),f.m());if(a==1){g=new $$a4.ad7(k!=null&&k.cellFormat()!=null&&$$a4.$ah.l_op_Inequality(k.cellFormat().font().colorInfo(),null)?k.cellFormat().font().colorInfo():j._bh())}else{g=new $$a4.ad6(k!=null&&k.cellFormat()!=null&&k.cellFormat().fill()!=null?k.cellFormat().fill():j._ar())}}break;default:return}var l=e.e;var m=e.d;if(l!=null){var n=l.columns()._item(f.m()-l._by()._firstColumnIndex());l.clearSortConditions();l.sortSettings().sortConditions().add(n,g)}else if(this._bb.filterSettings().region()!=null&&$$a4.$l0._l_op_Equality(m,this._bb.filterSettings().region()._h())){var o=this._bb.filterSettings().sortSettings().sortConditions();o.clear();o.add(new $$a4.hs(f.m()-this._bb.filterSettings().region().firstColumn()),g)}else{var p=m._toString1(true,true,this._bb.workbook().currentFormat(),1,null);var q=this._bb.sortSettings();q.clearRegion();q._setRegion1(p,1);q.sortType(0);q.sortConditions().add(new $$a4.hs(f.m()-m._firstColumnIndex()),g)}},_ix:function(){var a=!this._bb.displayOptions().showFormulasInCells();var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();b._j().displayOptions().showFormulasInCells(a)}},_iy:function(a){if(this._cv()==false){return}var b=this._bb.displayOptions();var c=b.frozenPaneSettings();var d=b.unfrozenPaneSettings();var e=this._rows().count()>1;var f=this._columns().count()>1;var g=f||e;var h=b.panesAreFrozen()&&g;var i=!h&&g;var j=false;if(a){d.firstColumnInLeftPane(this._columns().item(0).startIndex());d.firstRowInTopPane(this._rows().item(0).startIndex());if(h){if(c.__z){c.__z=false;if(e){d.topPaneHeight(this._ef(this.__dx+this._rows().item(0).actualExtent()));d.firstRowInBottomPane(this._rows().item(1).startIndex())}else{d.topPaneHeight(0)}if(f){d.leftPaneWidth(this._ef(this.__d2+this._columns().item(0).actualExtent()));d.firstColumnInRightPane(this._columns().item(1).startIndex())}else{d.leftPaneWidth(0)}}else{d.leftPaneWidth(0);d.topPaneHeight(0);j=true}b.panesAreFrozen(false)}else if(i){if(f){var k=this._columns().item(0).endIndex()-this._columns().item(0).startIndex();if(k==0||this._columns().item(0)._bk()<this._dy($$5.$e.ah($$a4.$lq.$type,this._columns().item(0)._m())._extent())/2){k++}c.frozenColumns(k);c.firstColumnInRightPane(this._columns().item(1).startIndex())}else{c.frozenColumns(0)}if(e){var l=this._rows().item(0).endIndex()-this._rows().item(0).startIndex();if(l==0||this._rows().item(0)._bk()<this._dz($$5.$e.ah($$a4.$lq.$type,this._rows().item(0)._m())._extent())/2){l++}c.frozenRows(l);c.firstRowInBottomPane(this._rows().item(1).startIndex())}else{c.frozenRows(0)}c.__z=true;b.panesAreFrozen(true)}else{var m=this._r();var n=Math.max(m.column()-this._columns().item(0).startIndex(),0);var o=Math.max(m.row()-this._rows().item(0).startIndex(),0);if(n>0||o>0){c.frozenRows(o);c.frozenColumns(n);c.firstRowInBottomPane(m.row());c.firstColumnInRightPane(m.column());b.panesAreFrozen(true)}}}else{if(h){c.__z=true;this._iy(true)}else if(i){d.firstColumnInLeftPane(this._columns().item(0).startIndex());d.firstRowInTopPane(this._rows().item(0).startIndex());d.leftPaneWidth(0);d.topPaneHeight(0);j=true}else{var p=this._r();var q=this._bb._cp(p.row())._offset()-this._bb._cp(this._rows().item(0).startIndex())._offset();var r=this._bb._cn(p.column())._offset()-this._bb._cn(this._columns().item(0).startIndex())._offset();d.firstColumnInLeftPane(this._columns().item(0).startIndex());d.firstRowInTopPane(this._rows().item(0).startIndex());if(q>0){d.firstRowInBottomPane(p.row())}if(r>0){d.firstColumnInRightPane(p.column())}var s=this._zoomLevel();d.leftPaneWidth(r>0?$.ig.truncate($$a4.$aa.f(this._bb._fl(r,5,true)*s))+this._ef(this.__d2):0);d.topPaneHeight(q>0?$.ig.truncate($$a4.$aa.f(q*s))+this._ef(this.__dx):0)}}if(j&&b._z()!=3){var t=b._af().a(b._z());if(t!=null){var u=b._af().a(3);if(u!=null){b._af().b().remove(u)}t._a=3}}},_i3:function(a){var b=this._panes().count()>0;if(!b){this.activePane(null)}else{this.activePane(this._as($m($$0.$aq.$type,null)))}if(a&&this.activePane()!=null){this.activePane().selection()._by()}},_i5:function(){this._jc()},_c7:function(a,b,c,d){if(a!=null&&this._a2._j().count()>1){
var f=this._a2._j().getEnumerator();while(f.moveNext()){var e=f.current();if(e._j()==this._bb||e._j().isProtected()==false){continue}var g=a.a(e._j());var i=b.getEnumerator();while(i.moveNext()){var h=i.current();if($$t.$ik._cp(e._j(),h.firstRow(),h.firstColumn(),h.lastRow(),h.lastColumn(),g)==false){if(this._ea(new $$t.kx(23,null,null,null,c))){d=1}else{d=0}return{ret:false,p3:d}}}}}d=2;return{ret:true,p3:d}},_c8:function(a,b,c){var e=b.getEnumerator();while(e.moveNext()){var d=e.current();if(d._firstRowIndex()<0||d._firstColumnIndex()<0||d._lastRowIndex()>=this._bb.rows().maxCount()||d._lastColumnIndex()>=this._bb.columns().maxCount()){return this._ea(new $$t.kx(10,null,null,null,false))}}if($l(this._en(),false)){var f=this._ay(a,b,false,true,c);if(f==2){f=this._ay(a,b,false,true,false)}return f==1}return true},_c9:function(){if($j(this._en(),false)){return true}var a=this.activePane();if(a==null){return false}var b=a._ag();var c=this._ax(b,false,true,true);if(c==2){c=this._ax(b,false,true,false)}return c==1},_da:function(){if($j(this._en(),false)){return true}var a=this.activePane();if(a==null){return false}var b=a._ag();return this._ax(b,true,true,true)!=0},_je:function(a){switch(a){case 0:{var b=this._bb.displayOptions().magnificationInNormalView()+10;b=Math.min(b-b%10,400);var d=this._a2._j().getEnumerator();while(d.moveNext()){var c=d.current();c._j().displayOptions().magnificationInNormalView(b)}}break;case 1:{var e=this._bb.displayOptions().magnificationInNormalView()-1;e=Math.max(e-e%10,10);var g=this._a2._j().getEnumerator();while(g.moveNext()){var f=g.current();f._j().displayOptions().magnificationInNormalView(e)}}break;case 3:{this._ip(524288,true);var i=this._a2._j().getEnumerator();while(i.moveNext()){var h=i.current();h._j().displayOptions().magnificationInNormalView(100)}}break;case 2:this._jf(false);break}},_fv:function(a){this.activePane(this._as($m($$0.$aq.$type,a)))},_bo:function(a,b,c,d,e,f){var g=null;if(b!=null){for(var h=0;h<b.count();h++){var i=b.item(h);if(i.d==c&&i.c==d&&i.b==e){g=i;break}}}var j=false;if(g==null){g=new $$t.ip;g.d=c;g.c=d;g.b=e;j=true}if(g.a!=f){g.a=f;j=true}a.add(g);return j},_fz:function(){},_f0:function(a,b){{var c=this._a9();try{var d=new $$a4.mb(this._bb.workbook(),c);var f=this._a2._j().getEnumerator();while(f.moveNext()){var e=f.current();var g=e._j();var h=new $$4.h($$0.$aw.$type,$$0.$aw.$type,0);if(a.length<=1){b=false}for(var j=0;j<a.length;j++){var i=a[j];for(var k=i.firstColumn();k<=i.lastColumn();k++){var l=g.columns().item(k);var m=l._ay(i.firstRow(),i.lastRow(),d);if(m.hasValue()){var n=m.value();if(b){var o;if(function(){var p=h.tryGetValue(k,o);o=p.p1;return p.ret}()){n=Math.max(o,n)}h.item(k,n)}else{l.hidden(false);l.width(n)}}}}if(b){var q=h.getEnumerator();while(q.moveNext()){var p=q.current();var r=g.columns().item(p.key());r.hidden(false);r.width(p.value())}}}}finally{if(c!=null){c.dispose()}}}},_x:function(){return this._af(true,1,1)},_ax:function(a,b,c,d){var e=b?null:new $$t.el;var f=true;var h=this._a2._j().getEnumerator();while(h.moveNext()){var g=h.current();if(false==(f=$$t.$ik._co(g._j(),a,e))){break}}if(b){if(f){return 1}this._ea(new $$t.kx(23,null,null,e,false));return 0}return this._aw(e,c,d)},_ay:function(a,b,c,d,e){var f=c?null:new $$t.el;var g=true;var i=a.getEnumerator();while(i.moveNext()){var h=i.current();var j=f!=null?f.a(h):null;var l=b.getEnumerator();while(l.moveNext()){var k=l.current();if(false==(g=$$t.$ik._cp(h,k._firstRowIndex(),k._firstColumnIndex(),k._lastRowIndex(),k._lastColumnIndex(),j))){break}}if(g==false){break}}if(c){if(g){return 1}this._ea(new $$t.kx(23,null,null,f,false));return 0}return this._aw(f,d,e)},_aw:function(a,b,c){var d=a.b();var e;if(!d){if(a.e(false).count()>0){e=24}else{e=23}}else if(b==false&&a.e(false).count()==0){return 0}else{var f=a.e(true);if(f.count()==0){return 1}var g=this._al._passwordNeededAction();if(c&&g!=null){var h=g(a);if(h==false){return 0}var i=a.e(true);if(f.count()==i.count()){e=24}else if(i.count()==0){return 1}else{return 2}}else{e=23}}this._ea(new $$t.kx(e,null,null,a,false));return 0},_f8:function(a,b,c,d){for(var e=c;e<=d;e++){if(this._b0(e,a)){b=a;return{p1:b}}}return{p1:b}},_f9:function(a,b,c,d,e,f,g,h){var i=this._bb._es();var j;if($.ig.util.nullableGreaterThan(b,f)){if($l(e,null)){if(function(){var k=i.tryGetValue(new $$a4.j2(1,e.value(),f.value()),j);j=k.p1;return k.ret}()&&this._bz(j)){a=e.value();b=f.value()}}if($l(g,null)){if(function(){var k=i.tryGetValue(new $$a4.j2(1,g.value(),f.value()),j);j=k.p1;return k.ret}()&&this._bz(j)){c=g.value();b=f.value()}}}if($.ig.util.nullableLessThan(d,h)){if($l(e,null)){if(function(){var k=i.tryGetValue(new $$a4.j2(1,e.value(),h.value()),j);j=k.p1;return k.ret}()&&this._bz(j)){a=e.value();d=h.value()}}if($l(g,null)){if(function(){var k=i.tryGetValue(new $$a4.j2(1,g.value(),h.value()),j);j=k.p1;return k.ret}()&&this._bz(j)){c=g.value();d=h.value()}}}var k=a;var l=b;var m=c;var n=d;if($j(a,e)){for(var o=b;o<d;o++){if(function(){var p=i.tryGetValue(new $$a4.j2(1,a,o),j);j=p.p1;return p.ret}()){var p=j._h();if(this._bz(j)){if(p._firstColumnIndex()<b){l=p._firstColumnIndex()}if(p._lastColumnIndex()>d){n=p._lastColumnIndex()}if(p._firstRowIndex()<a){k=p._firstRowIndex()}}o=p._lastColumnIndex()}}}if($j(c,g)){for(var q=b;q<d;q++){if(function(){var r=i.tryGetValue(new $$a4.j2(1,c,q),j);j=r.p1;return r.ret}()){var r=j._h();if(this._bz(j)){if(r._firstColumnIndex()<b){l=r._firstColumnIndex()}if(r._lastColumnIndex()>d){n=r._lastColumnIndex()}if(r._lastRowIndex()>c){m=r._lastRowIndex()}}q=r._lastColumnIndex()}}}if($j(b,f)){for(var s=a;s<c;s++){if(function(){var t=i.tryGetValue(new $$a4.j2(1,s,b),j);j=t.p1;return t.ret}()){var t=j._h();if(this._bz(j)){if(t._firstRowIndex()<a){k=t._firstRowIndex()}if(t._lastRowIndex()>c){m=t._lastRowIndex()}if(t._firstColumnIndex()<b){l=t._firstColumnIndex()}}s=t._lastRowIndex()}}}if($j(d,h)){for(var u=a;u<c;u++){if(function(){var v=i.tryGetValue(new $$a4.j2(1,u,d),j);j=v.p1;return v.ret}()){var v=j._h();if(this._bz(j)){if(v._firstRowIndex()<a){k=v._firstRowIndex()}if(v._lastRowIndex()>c){m=v._lastRowIndex()}if(v._lastColumnIndex()>d){n=v._lastColumnIndex()}}u=v._lastRowIndex()}}}if($.ig.util.nullableLessThanOrEqual(k,e)||$.ig.util.nullableGreaterThanOrEqual(m,g)||$.ig.util.nullableLessThanOrEqual(l,f)||$.ig.util.nullableGreaterThanOrEqual(n,h)){var w=new $$a4.l0(1,k,m,l,n);var x=this._bb._hi(w,null);w=x.p0;k=w._firstRowIndex();l=w._firstColumnIndex();m=w._lastRowIndex();n=w._lastColumnIndex()}a=k;b=l;c=m;d=n;return{p0:a,p1:b,p2:c,p3:d}},_ga:function(a,b,c,d,e,f,g){if(e._aj(a)!=null){if($l(f,null)&&this._b0(a,f.value())){b=a;c=f.value()}if($l(g,null)&&this._b0(a,g.value())){b=a;d=g.value()}if(b!=a){for(var h=c;h<=d;h++){if(this._b0(a,h)){b=a;break}}}}return{p1:b,p2:c,p3:d}},_ef:function(a){if(this._al._usesLogicalPixels()){return $$t.$dy.cn($$a4.$n._ey(this._bb.workbook(),a,false,false))}return $.ig.truncate($$a4.$aa.f($$a4.$n._ep(this._bb.workbook(),a,false)))},convertTwipsToPixels:function(a,b){if(this._al._usesLogicalPixels()){return $$a4.$n._ey(this._bb.workbook(),$$t.$dy.b4(a),b,true)}return $$a4.$n._er(this._bb.workbook(),a,b,false)},_a9:function(){if(this._al._j()!=null){return this._al._j().m(1)}return $$a4.$n._br(this._bb.workbook())},_dc:function(){var a=new $$4.h($$t.$it.$type,String,0);var c=$$ak.$c.k($$t.$it.$type).getEnumerator();while(c.moveNext()){var b=c.current();a.item(b,$$t.$it.$getName(b))}return a},_by:function(a,b,c,d,e){if(!e._contains(a)){return false}if(d&&!this._cr(a.row(),a.column())){return false}if(b){if($j($$t.$ik._e3(a.column(),a.column(),this._bb),null)){return false}}else{if($j($$t.$ik._e4(a.row(),a.row(),this._bb),null)){return false}}switch(c){case 1:return this._b0(a.row(),a.column());case 2:return this._b0(a.row(),a.column())||this._bi(a.row(),a.column())!=null;case 0:return true;default:return true}},_gk:function(){if(this._au()==2048){var a=this.activePane();var b=a!=null?a.selection():null;if(b!=null){this._g3(1,0,false)}}},_b5:function(a,b,c,d,e,f){var g=b;var h=false;var j=a.rows()._m(b,d).getEnumerator();while(j.moveNext()){var i=j.current();var k=i.index();if(g!=k){h=true}else{g++}var l;var m=c;var n=i._hasCellFormat();var o=false;var q=i._ch(c,e,true).getEnumerator();while(q.moveNext()){var p=q.current();if(p.n()==false){continue}if(m!=p.r()){if(n){o=true}else{for(var r=m,s=p.r();r<s;r++){l=a._cb(r);if(!f(l.b())){return false}r=l.r()}}}if(!f(p.j())){return false}m=p.r()+1}if(m<=e){if(n){o=true}else{for(var t=m;t<=e;t++){l=a._cb(t);if(!f(l.b())){return false}t=l.r()}}}if(o&&!f(i._cellFormatInternal().d())){return false}}if(g!=d+1){h=true}if(h){var u=a._f9(c);var v=a._ff();var w=v.__inner[u];for(var x=u;x<v.count();x++){w=v.__inner[x];if(!f(w.b())){return false}if(w.r()>=e){break}}}return true},_extendRangeForMergedCells1:function(a,b,c){var d=$$t.$dy.a0(b);var e=a._hi(d,c);d=e.p0;return $$t.$dy.aa(d)},_eo:function(a,b,c,d,e,f){var g=$m($$t.$d1.$type,null);if($$t.$d1.l_op_Inequality_Lifted(e,$m($$t.$d1.$type,null))){g=e}else if(d){this._jd();var h=this._bb.protection().selectionMode()==0;g=$m($$t.$d1.$type,new $$t.d1(h?0:this._t.firstRow(),h?0:this._t.firstColumn(),this._t.lastRow()+(h?0:1),this._t.lastColumn()+(h?0:1)))}var i=!$k(g)?g.value():new $$t.d1(a.row(),a.column());var j=b==0||b==1;var k;if(f&&this._by(a,j,c,d,i)){return $m($$t.$dz.$type,a)}do{k=this._ep(a,b,c,g,d);if($$t.$dz.l_op_Inequality_Lifted(k,$m($$t.$dz.$type,null))&&d&&!i._contains(k.value())){k=$m($$t.$dz.$type,null)}if($$t.$dz.l_op_Inequality_Lifted(k,$m($$t.$dz.$type,null))||d==false){break}switch(b){case 1:{var l=$$t.$ik._e4(a.row()+1,i.lastRow(),this._bb);if($j(l,null)&&$$t.$d1.l_op_Equality_Lifted(e,$m($$t.$d1.$type,null))){l=$$t.$ik._e4(i.firstRow(),a.row(),this._bb)}if($j(l,null)||$j(l,a.row())&&a.column()<=i.firstColumn()){return $m($$t.$dz.$type,null)}a=new $$t.dz(l.value(),i.firstColumn());break}case 0:{var m=this._e9(i.firstRow(),a.row()-1);if($j(m,null)&&$$t.$d1.l_op_Equality_Lifted(e,$m($$t.$d1.$type,null))){m=this._e9(a.row(),i.lastRow())}if($j(m,null)||$j(m,a.row())&&a.column()>=i.lastColumn()){return $m($$t.$dz.$type,null)}a=new $$t.dz(m.value(),i.lastColumn());break}case 3:{var n=$$t.$ik._e3(a.column()+1,i.lastColumn(),this._bb);if($j(n,null)&&$$t.$d1.l_op_Equality_Lifted(e,$m($$t.$d1.$type,null))){n=$$t.$ik._e3(i.firstColumn(),a.column(),this._bb)}if($j(n,null)||$j(n,a.column())&&a.row()<=i.firstRow()){return $m($$t.$dz.$type,null)}a=new $$t.dz(i.firstRow(),n.value());break}case 2:{var o=this._e8(i.firstColumn(),a.column()-1);if($j(o,null)&&$$t.$d1.l_op_Equality_Lifted(e,$m($$t.$d1.$type,null))){o=this._e8(a.column(),i.lastColumn())}if($j(o,null)||$j(o,a.column())&&a.row()>=i.lastRow()){return $m($$t.$dz.$type,null)}a=new $$t.dz(i.lastRow(),o.value());break}}if(this._by(a,j,c,true,i)){return $m($$t.$dz.$type,a)}}while(d);return k},_ep:function(a,b,c,d,e){var f;switch(c){default:case 0:f=this._eu(a.row(),a.column(),b,d,false,e);break;case 1:f=this._ev(a.row(),a.column(),b,d,e,!e);break;case 2:{var g=this._bi(a.row(),a.column());if(!this._b0(a.row(),a.column())&&g==null){f=this._ev(a.row(),a.column(),b,d,e,true)}else{var h=this._eu(a.row(),a.column(),b,d,true,e);if($$t.$dz.l_op_Equality_Lifted(h,$m($$t.$dz.$type,null))){f=$m($$t.$dz.$type,null)}else{var i=h.value().row();var j=h.value().column();var k=this._bi(i,j);var l=this._b0(i,j);if(!l&&(g!=k||g==null)){if(k!=null){f=h}else{f=this._ev(i,j,b,d,e,true)}}else{var m=false;do{f=this._eu(i,j,b,d,true,e);if($$t.$dz.l_op_Equality_Lifted(f,$m($$t.$dz.$type,null))){break}k=this._bi(f.value().row(),f.value().column());if(g!=k){break}m=this._b0(f.value().row(),f.value().column());if(!m&&l){break}i=f.value().row();j=f.value().column();if(m&&!l){break}}while(true);f=$m($$t.$dz.$type,new $$t.dz(i,j))}}}break}}return f},_eq:function(a,b){return b?this._fc(a):this._fh(a)},_er:function(a,b){return b?this._fe(a):this._fi(a)},_r:function(){var a=this.activePane().selection().activeCell();var b=a.column();var c=a.row();var d=b==this._columns().item(0).startIndex()&&c==this._rows().item(0).startIndex();var e=b<this._columns().item(0).startIndex()||b>this._columns().item(0).endIndex();var f=c<this._rows().item(0).startIndex()||c>this._rows().item(0).endIndex();if(d||e||f){if(e||d||f&&b!=this._columns().item(0).startIndex()){var g=$.ig.truncate($$a4.$aa.f(this._columns().item(0)._x()._offset()+this._columns().item(0)._x()._viewport()/2));var h=this._be(g);if(g>h._offset()+$a(h._extent(),2)){h=this._be(h._l()+1)}b=h._index()}if(f||d||e&&c!=this._rows().item(0).startIndex()){var i=$.ig.truncate($$a4.$aa.f(this._rows().item(0)._x()._offset()+this._rows().item(0)._x()._viewport()/2));var j=this._bb._cq(i);if(i>j._offset()+$a(j._extent(),2)){j=this._bb._cq(j._l()+1)}c=j._index()}}return new $$t.dz(c,b)},_bd:function(a,b,c){var d;d=this._bb._b4(a,c);d=this._bb._b5(d,b,c)||d;return d},_ez:function(a){var b=this.activePane();var c=$m($$t.$fs.$type,null);{var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();var f=d._j();var h=a.getEnumerator();while(h.moveNext()){var g=h.current();var i=$$t.$dy.a0(g);if($l(null,c=this._ew(f,g.firstRow(),i))){return c}if(g._aa()>1&&$l(null,c=this._ew(f,g.lastRow(),i))){return c}var j=g._ad()>1;var l=f.rows()._m(g.firstRow(),g.lastRow()).getEnumerator();while(l.moveNext()){var k=l.current();if($l(null,c=this._ey(k,g.firstColumn(),i))){return c}if(j&&$l(null,c=this._ey(k,g.lastColumn(),i))){return c}}}}}return c},_ew:function(a,b,c){var d=a.rows()._aj(b);if(d!=null){var e;var g=d._ch(c._firstColumnIndex(),c._lastColumnIndex(),true).getEnumerator();while(g.moveNext()){var f=g.current();if($l(null,e=this._ex(d,f,c))){return e}}}return $m($$t.$fs.$type,null)},_ey:function(a,b,c){var d=a._c6(b);return this._e0(d,c)},_e0:function(a,b){var c=$b($$a4.$eb.$type,a);if(c!=null){if(!b._contains1(c._arrayFormula().cellRange()._h())){return $m($$t.$fs.$type,25)}}else{var d=$b($$a4.$ec.$type,a);if(d!=null){if(!b._contains1(d._dataTable()._h()._h())){return $m($$t.$fs.$type,26)}}}return $m($$t.$fs.$type,null)},_ex:function(a,b,c){var d=$m($$t.$fs.$type,null);if(b.o()&&b.d().l(b.h(),b.f())){var e=b.d().ab(a,b.r(),null,b.h(),b.f());if($l(null,d=this._e0(e,c))){return d}}return $m($$t.$fs.$type,null)},_fn:function(a){return $$a4.$zf.w(a,true,16384,-1,false,1)},_fo:function(a){return(a+1).toString()},_be:function(a){var b=Math.max(Math.min(a,2147483647),0);return this._bb._co(b)},_di:function(a,b,c){return this._bb._e0(a,Math.min(b,2147483647),c)},_bi:function(a,b){return this._bb._de(a,b)},_b6:function(a,b,c,d,e,f,g){var h=false;var i=this._bb.tables();var j=new $$t.d1(c,e,d,f);for(var k=i.count()-1;k>=0;k--){var l=i._item(k);if(!l.isFilterUIVisible()){continue}var m=l._by();if(m._firstRowIndex()>=c&&$$t.$dy.a9(j,m)){for(var n=Math.max(j.firstColumn(),m._firstColumnIndex()),o=Math.min(f,m._lastColumnIndex());n<=o;n++){var p=0;if(l.columns()._item(n-m._firstColumnIndex()).filter()!=null){p|=16}var q=l.columns()._item(n-m._firstColumnIndex()).sortCondition();if(q!=null){p|=q.sortDirection()==0?4:8}h=this._bo(a,g,m._firstRowIndex(),n,1,p)||h}}}var r=this._bb.filterSettings().region();if(r!=null&&r.firstRow()>=c&&r._t(c,e,d,f)){var s=r._h();for(var t=Math.max(j.firstColumn(),s._firstColumnIndex()),u=Math.min(f,s._lastColumnIndex());t<=u;t++){var v=0;if(this._bb.filterSettings().getFilter(t-s._firstColumnIndex())!=null){v|=16}var w=this._bb.filterSettings().sortSettings().sortConditions()._item(new $$a4.hs(t-s._firstColumnIndex()));if(w!=null){v|=w.sortDirection()==0?4:8}h=this._bo(a,g,s._firstRowIndex(),t,0,v)||h}}if(b==this._ao()){var x=b._ag()._r();if(x.intersectsWith(j)){var y=x._c();var z=this._activeTable();if(z!=null&&z.isTotalsRowVisible()&&z._by()._lastRowIndex()==y.row()){h=this._bo(a,g,y.row(),y.column(),3,0)||h}else{var aa=this._bb.dataValidationRules()._e(new $$a4.l0(1,y.row(),y.row(),y.column(),y.column()));if($b($$a4.$bl.$type,aa)!==null&&aa.showDropdown()){h=this._bo(a,g,y.row(),y.column(),2,0)||h}}}}return h},_el:function(a){a*=1/this._ds;var b=this._bb._fw(a,3,false);return b},_em:function(a){a*=1/this._dt;if(this._al._usesLogicalPixels()){a=$$a4.$n._ey(this._bb.workbook(),a,true,false)}var b=$.ig.truncate($$a4.$aa.f($$a4.$n._ep(this._bb.workbook(),a,true)));return b},_bj:function(a,b){var c=null;var e=this._bb.tables().getEnumerator();while(e.moveNext()){var d=e.current();var f=d._by();if(f._intersectsWith(a)){var g=d._cf(b.row(),b.column());if(c==null||g){c=d}if(g){break}}}return c},_b7:function(a){return(this._av&a)!=0},_a4:function(a,b,c,d,e,f,g,h){var i=this._al._j();var j=a.j()||a.e==4?b:0;var k=$$a4.$ic._shouldAddUnderlineHeight(f);var l=this._bb.workbook();var m;var n=null;i.ah(this._zoomLevel());if($b($$a4.$dq.$type,a.ap)!==null){a.k(false);a.q(false);a.l(false);a.p(false);if(g){n=$$t.$dy.av(l)}var o=$b($$a4.$dq.$type,a.ap);m=i.j(o,d,j,c,a.j(),g,this._zoomLevel(),$$t.$dy.e5(n,this._bb.workbook(),true));if($$a4.$ah.l_op_Equality(n,null)){n=new $$t.op(o._getFont(0),d).colorInfo()}}else{var p=new $$a4.me(a.w);p.c=0;p.b=0;p.d=i.n.runOn(i);p.f=a.ai+a.ah;p.a=4|1;if(i.s){p.h=this._zoomLevel()}var q=a.h._av(p);var r=q.j;a.q($.ig.util.isNaN(q.e)==false&&q.c()&&$j($$a4.$ny._be(this._bb.workbook(),q.e,true,false),null));a.l($.ig.util.isNaN(q.e)==false&&q.d());if(a.d!=null&&a.d.cellFormat()!=null&&(a.d.cellFormat().formatOptions()&1)!=0){a.p("General"==a.d.cellFormat().formatString())}else{a.p(d._cs()==0)}if(!a.j()){r=$$t.$dy.dp(r)}a.k($$t.$dy.a2(r));if(q.h!=null&&e){n=$$t.$dy.aw(q.h,l.palette())}else if(g&&this._ci(d)){n=$$t.$dy.av(l)}var s=a.d!=null?a.d._h():null;if(s!=null&&s.font()!=null){var t=4096|16384|1024|128|256;var u=this._bb.workbook()._cd(0);u.setFormatting(d);for(var v=1;v!=1073741824;v=v<<1){if((t&v)==0){continue}var w=s._getValue(v);if($$a4.$o._isValueDefault(v,w)==false){u._setValue(v,w)}}d=u}if(a.k()&&a.e==4){j=0}var x=false;var y=q.g+q.f;if(y>0&&h){switch(a.e){default:break;case 0:case 1:case 3:case 2:case 6:x=true;break}}var z=$$t.$dy.e5(n,l,true);if(x){var aa=y<r.length;var ab=q.i;var ac=r;if(!a.j()&&r.length!=ab.length){ab=$$t.$dy.dp(ab)}var ad=aa?ab.substr(0,y):ab;var ae=aa?ac.substr(0,y):ac;var af=aa?ab.substr(y,ab.length-y):"";var ag=aa?ac.substr(y,ac.length-y):"";if(d._a4()==0){a.e=1;c=0}m=i.h(ad,ae,af,ag,l,d,j,c,a.j(),g,this._zoomLevel(),z)}else if(q.i!=null&&q.j!=q.i&&c!=5){var ah=q.i;var ai=r;if(!a.j()&&r.length!=ah.length){ah=$$t.$dy.dp(ah)}m=i.g(ah,ai,l,d,j,c,a.j(),g,this._zoomLevel(),z)}else{m=i.k(r,d,j,c,a.j(),g,this._zoomLevel(),z)}if($$a4.$ah.l_op_Equality(n,null)){n=d._bh()}}if(k){var aj=$.ig.truncate(i.ag(d,1/this._dt));$$t.$d5.d(aj,f==33,this._bb,a,d);{var ak=i.n();try{a.u=ak._measureText(d,"Wj",$m($$a.$af.$type,null),true,true).height()-aj}finally{if(ak!=null){ak.dispose()}}}}else{a.a=null}a.ar=$$a4.$ah.l_op_Equality(n,null)?$$a4.$k.gw:$$t.$dy.e5(n,this._bb.workbook(),true);a.g=n;return m},_e5:function(a){if(a==null){return $m($$0.$aq.$type,null)}else{return $m($$0.$aq.$type,a._s())}},_ad:function(a,b,c,d,e){var f=this._getCellRange1(b.row(),b.column());var g=this._getCellRange1(d.row(),d.column());var h=c;var i=new $$t.d1;var j;e=a;switch(a){default:case 1:i=new $$t.d1(c.firstRow(),Math.min(f.firstColumn(),g.firstColumn()),c.lastRow(),Math.max(c.lastColumn(),g.lastColumn()));j=i.lastColumn()<=c.lastColumn();break;case 0:i=new $$t.d1(c.firstRow(),Math.min(c.firstColumn(),g.firstColumn()),c.lastRow(),Math.max(f.lastColumn(),g.lastColumn()));j=i.firstColumn()>=c.firstColumn();break;case 3:i=new $$t.d1(Math.min(f.firstRow(),g.firstRow()),c.firstColumn(),Math.max(c.lastRow(),g.lastRow()),c.lastColumn());j=i.lastRow()<=c.lastRow();break;case 2:i=new $$t.d1(Math.min(c.firstRow(),g.firstRow()),c.firstColumn(),Math.max(f.lastRow(),g.lastRow()),c.lastColumn());j=i.firstRow()>=c.firstRow();break}if(j&&$$t.$d1.l_op_Inequality(h,i)){i=this._ag(i);i=i.union(this._getCellRange1(b.row(),b.column()));e=$$t.$dy.n(a)}else{i=this.extendRangeForMergedCells(i)}return{ret:i,p4:e}},_getPane1:function(a){if(this._panes().count()==0){return null}switch(a){default:case 3:return this._getPane2(0,0);case 1:return this._getPane2(0,this._columns().count()-1);case 2:return this._getPane2(this._rows().count()-1,0);case 0:return this._getPane2(this._rows().count()-1,this._columns().count()-1)}},_ff:function(a){if(a==null){return $m($$a4.$co.$type,null)}var b=this._rows().indexOf(a.rowScrollRegion());var c=this._columns().indexOf(a.columnScrollRegion());if(b==1){return $m($$a4.$co.$type,c==1?0:2)}else if(c==1){return $m($$a4.$co.$type,1)}else{return $m($$a4.$co.$type,3)}},_as:function(a){var b=this._panes().count();if(b==0){return null}this._bb.displayOptions()._br();var c=this._getPane1(this._bb.displayOptions()._z());if(c!=null&&c!=this.activePane()){return c}var d=this._panes().indexOf(this.activePane());if(this._bb.displayOptions().panesAreFrozen()){d=b-1}else if(d<0||b==1){d=0}else if($j(a,null)){}else if(b==2){d=d==0?1:0}else{var e=a.value()?[1,3,0,2]:[2,0,3,1];d=e[d]}return this._panes().item(d)},_dy:function(a){var b=a<0;var c=this._bb._fl(Math.abs(a),3,false);c*=this._ds;if(b){c=-c}return c},_dz:function(a){var b=a<0;var c=this._bb.workbook();var d=this.convertTwipsToPixels(Math.abs(a),true);if(b){d=-d}return d},_ec:function(a,b,c,d){var e=$m($$0.$av.$type,a);do{e=b._c1(e.value(),false);if($j(e,null)||$.ig.util.nullableLessThan(e,c)){break}}while(this._bb._cb(e.value()).i());var f;if($l(e,null)){f=Math.max(e.value()+1,c)}else{f=c}for(var g=a-1,h=f;g>=h;g--){if(this._bb._cr(b.index(),g)!=null){f=g+1;break}var i=this._bb._cb(g);if(i.i()){g=i.q()}else if($l(d,null)){var j=b._bc(g);if($l(j.alignment(),d)){f=g+1;break}}}return f},_jm:function(a){if(a.isEmpty()){return $$a.$af.empty()}var b=this._bb._cn(a.firstColumn());var c=this._bb._cn(a.lastColumn());var d=c._l()-b._offset();var e=this._bb._cp(a.firstRow());var f=this._bb._cp(a.lastRow());var g=f._l()-e._offset();return new $$a.af(1,d,g)},_bf:function(){if(this._bb.isProtected()){return this._bb.protection().selectionMode()}return 0},_fq:function(a){return $$a4.$zf.y(a,true,1048576,-1,false,1)},_fr:function(a){return(a+1).toString()},_fb:function(a,b,c,d){var e=c==0||c==1;var f=c==0||c==2;var g=$m($$t.$i.$type,null);var h=2147483647;var j=this._bb.tables().getEnumerator();while(j.moveNext()){var i=j.current();var k=i._by();if(e){if(k._firstRowIndex()>a||k._lastRowIndex()<a){continue}if(f&&k._firstColumnIndex()>=b){continue}else if(!f&&k._lastColumnIndex()<=b){continue}if(f&&k._lastColumnIndex()<d.firstColumn()){continue}else if(!f&&k._firstColumnIndex()>d.lastColumn()){continue}var l=$$t.$ik._e3(k._firstColumnIndex(),k._lastColumnIndex(),this._bb);if($j(l,null)){continue}if(f&&$.ig.util.nullableGreaterThanOrEqual(l,b)){continue}var m=f?b-k._lastColumnIndex():k._firstColumnIndex()-b;if(m<h){var n=this._e8(l.value(),k._lastColumnIndex());if(!f&&$.ig.util.nullableLessThanOrEqual(n,b)){continue}h=m;g=$m($$t.$i.$type,new $$t.i(1,l.value(),n.value()))}}else{if(k._firstColumnIndex()>b||k._lastColumnIndex()<b){continue}if(f&&k._firstRowIndex()>=a){continue}else if(!f&&k._lastRowIndex()<=a){continue}if(f&&k._lastRowIndex()<d.firstRow()){continue}else if(!f&&k._firstRowIndex()>d.lastRow()){continue}var o=$$t.$ik._e4(k._firstRowIndex(),k._lastRowIndex(),this._bb);if($j(o,null)){continue}if(f&&$.ig.util.nullableGreaterThanOrEqual(o,a)){continue}var p=f?a-k._lastRowIndex():k._firstRowIndex()-a;if(p<h){var q=this._e9(o.value(),k._lastRowIndex());if(!f&&$.ig.util.nullableLessThanOrEqual(q,a)){continue}h=p;g=$m($$t.$i.$type,new $$t.i(1,o.value(),q.value()))}}}return g},_au:function(){if(this._bb.isProtected()&&this._bb.protection().selectionMode()==1){var a=this.activePane();var b=a!=null?a.selection():null;if(b!=null&&!this._canSelect(b.activeCell())){return 2048}}return 0},_dj:function(a,b){return this._bb._e0(a,b,2147483647)},_dk:function(a,b){return this._bb._e2(a,b,2147483647)},_gn:function(a){var b=this.activePane();var c=b.selection();var d=c._bf();if($l(this._fj(8),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var f=this._a2._j().getEnumerator();while(f.moveNext()){var e=f.current();var g=e._j();var i=d.getEnumerator();while(i.moveNext()){var h=i.current();var j=h._h-h._i+1;if(a){g.hideColumns($m($$0.$aw.$type,h._i),$m($$0.$aw.$type,j))}else{g.unhideColumns($m($$0.$aw.$type,h._i),$m($$0.$aw.$type,j))}}}this._b2(b,c.activeCell(),true)},_go:function(a){var b=this.activePane();var c=b.selection();if($l(this._fj(16),true)){this._ea(new $$t.kx(23,null,null,null,false));return}var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();var f=d._j();var h=c._bg().getEnumerator();while(h.moveNext()){var g=h.current();var i=g._h-g._i+1;if(a){f.hideRows($m($$0.$aw.$type,g._i),$m($$0.$aw.$type,i))}else{f.unhideRows($m($$0.$aw.$type,g._i),$m($$0.$aw.$type,i))}}}this._b2(b,c.activeCell(),true)},_gq:function(){this._dq=$$a4.$n._et(this._bb.workbook(),false);this._dr=$$a4.$n._et(this._bb.workbook(),true);if(this._al._usesLogicalPixels()){this._ds=96/this._dq;this._dt=96/this._dr}else{this._dt=this._ds=1}},_aj:function(a,b,c,d,e){var f=c._a4();if(f==0){f=$$t.$dy.aq(a.ao,c,this._bb,a.h,a.ab)}a.e=f;a.v=c._cl();a.y=c._cm();a.z=c._cn();a.ac=c._cp();a.aa=c._co();a.s(c._b7());a.f=c._a8();a.j(c._b8());a.t($j(c._c7(),true));if(a.d!=null&&(a.d.dataBarInfo()!=null&&!a.d.dataBarInfo().showValue()||a.d.iconInfo()!=null&&!a.d.iconInfo().showValue())){a.ap=null}else if(this._bn){a.ap=a.h.getCellFormula(a.w)||a.h._getCellValue1(a.w)}else{a.ap=a.h._getCellValue1(a.w)}if(f==4&&$b($$a4.$dq.$type,a.ap)!==null){a.ap=a.ap.unformattedString()}a.ae=a.ab;a.ad=a.x;a.n(b.hasValue());if(this._bn){if(a.ap!=null&&typeof a.ap==="string"==false){f=1}else{if(f==4){f=1}}a.e=f}if(!a.r()){switch(a.e){case 4:case 6:a.x=a.h._ck(a.w,this._u.lastColumn(),$m($$a4.$cg.$type,a.e));a.ad=a.x;break}}var g;var h=this._bb._cn(a.ae);var i=h;var j=this._bb._gl();a.y*=j;a.z*=j;var k=a.y;var l=a.z;var m=this._bb._ge();var n=$a(m,2);if(a.j()){a.y+=n;a.z+=m-n}else{switch(f){case 1:case 4:a.y+=n;break;case 3:a.z+=m-n;break;case 7:case 5:a.y+=n;a.z+=m-n;break;case 6:case 2:break}}var o=$$a4.$k.db(a.d,c,true);var p=o==0?0:$$a4.$k.da(c._cq());a.ai=p;a.ah=$$a4.$k.db(a.d,c,true)-p;var q=a.y+a.z+a.ah+a.ai;if(a.ad==a.ae){g=this._dy(h._extent())-q}else{i=this._bb._cn(a.ad);var r=i._l()-h._offset();g=this._dy(r)-q}g-=this._ds;var s=g;if(g<1){g=1}var t=$$t.$dy.ad(a.e);var u=this._a4(a,g,t,c,d,c._a1(),$j(b,true),e);a.c=u;if(a.j()&&a.e==7&&g<u.c()){var v=s+(k+l)-u.c();var w=$.ig.truncate(v/2);var x=$.ig.truncate(v-w);a.y-=Math.max(k-w,0);a.z-=Math.max(l-x,0)}a.am=a.al=$m($$0.$av.$type,null);if(this._bn){a.am=$m($$0.$av.$type,a.ae);a.al=$m($$0.$av.$type,a.ad)}else if(!a.j()&&!a.s()){switch(a.e){case 4:if(g<u.c()){a.am=$m($$0.$av.$type,a.ae);a.al=$m($$0.$av.$type,a.ad)}break;case 1:if(g<u.c()){var y=this._el(u.c());a.ad=this._be(h._offset()+this._el(a.aj())+y)._index();if(a.r()){if(a.ad>a.x){a.al=$m($$0.$av.$type,a.x)}}else{var z=a.h._ck(a.x,a.ad,$m($$a4.$cg.$type,null));if(z<a.ad){a.al=$m($$0.$av.$type,z)}}}break;case 3:if(g<u.c()){var aa=this._el(u.c());var ab=i._l()-this._el(a.z);a.ae=this._be(Math.max(ab-aa,0))._index();if(a.r()){if(a.ae<a.ab){a.am=$m($$0.$av.$type,a.ab)}}else{var ac=this._ec(a.ab,a.h,a.ae,$m($$a4.$cg.$type,null));if(ac>a.ae){a.am=$m($$0.$av.$type,ac)}}}break;case 6:case 2:if(g<u.c()){var ad=this._el(u.c());var ae=i._l()-this._el(a.z);var af=h._offset()+this._el(a.y);var ag=af+$a(ae-af,2);a.ae=this._be(Math.max(ag-$a(ad,2),0))._index();a.ad=this._be(ag+$a(ad,2))._index();if(a.r()){if(a.ad>a.x){a.al=$m($$0.$av.$type,a.x)}if(a.ae<a.ab){a.am=$m($$0.$av.$type,a.ab)}}else{var ah=a.h._ck(a.x,a.ad,$m($$a4.$cg.$type,null));if(ah<a.ad){a.al=$m($$0.$av.$type,ah)}var ai=this._ec(a.ab,a.h,a.ae,$m($$a4.$cg.$type,null));if(ai>a.ae){a.am=$m($$0.$av.$type,ai)}}}break}}var aj=this._bb._cp(a.ak);var ak=a.ak!=a.ag?this._bb._cp(a.ag):aj;var al=ak._l()-aj._offset();var am=Math.max(this._dz(al)-(a.ac+a.v),0);a.i(am<u.b());return a},_gr:function(){this._ip(4194304,false);var a=this._bb.displayOptions().showRowAndColumnHeaders();this._zoomLevel(this._bb.displayOptions().magnificationInNormalView()/100);var b=this._bb.workbook();var c=this._ba=this._ba._d(b.styles().normalStyle()._i());var d=this._bf();for(var e=0;e<2;e++){var f=e==0?this._rowItems():this._columnItems();var h=f.getEnumerator();while(h.moveNext()){var g=h.current();g._ap(a);g._af(c);g._bx(this._zoomLevel());g._ai(d)}}},_ej:function(a,b,c,d,e,f,g,h,i,j){var k;var l;if(a.isFrozen()){k=1.7976931348623157e308;l=a.endIndex()}else{var m=!$.ig.util.isNaN(j)?j:a._bu();k=m+c;l=h}if(k>b){k=b}if(k!=1.7976931348623157e308){k+=a._bw()*this._dw;k/=this._dw}var n=e(k);var o=d(a.startIndex(),n,l);if(!i){var p=o==null||o.count()==0||o.item(0)._index()==0?$m($$0.$aw.$type,null):f(o.item(0)._index());a._cr(p);var q=o==null||o.count()==0||o.item(o.count()-1)._index()==h?$m($$0.$aw.$type,null):g(o.item(o.count()-1)._index());a._cq(q);if(!$$ak.$c.d($$a4.$lq.$type,a._m(),o,null)){a._m()._reInitialize(o)}}return o==null||o.count()==0?0:o.item(o.count()-1)._index()},_gu:function(){this._i9();this._ip(8,false);this._ip(4194304,false);this._ip(16777216,true);var a=this._bb;var b=a.workbook();var c=this._bb.displayOptions();var d=c.panesAreFrozen();var e=c.frozenPaneSettings();var f=c.unfrozenPaneSettings();var g=d?e:f;var h=g._h()?2:1;var i=g._i()?2:1;var j=this.activePane();var k=c.showRowAndColumnHeaders();var l=this._bb.rows().maxCount()-1;var m=this._bb.columns().maxCount()-1;var n=this._l();var o=this._j();var p=this._k();n.beginUpdate();o.beginUpdate();p.beginUpdate();this._zoomLevel(c.magnificationInNormalView()/100);var q=b.cellReferenceMode()==1;var r=this._ba=this._ba._d(b.styles().normalStyle()._i());var s=this._bf();try{var t=new $$4.y($$t.$i4.$type);var v=n.getEnumerator();while(v.moveNext()){var u=v.current();t.enqueue(u)}n.clear();for(var w=0;w<h;w++){var x=t.count()>0?t.dequeue():new $$t.i4;x._x()._a4=this._c3.runOn(this);x._x()._a5=this._d6.runOn(this);x._b4(this._dz.runOn(this));x._b5(this._em.runOn(this));x._b7(a._cp.runOn(a));x._b8(a._cq.runOn(a));x._b9(this._dk.runOn(this));x.__ak=this._h7.runOn(this);x.__am=this._h8.runOn(this);x.__al=this._h4.runOn(this);x._b6(q?this._fq.runOn(this):this._fr.runOn(this));x._bx(this._zoomLevel());x._bj(this._dr);x._bi(this._dq);x._br(this._ds);x._bs(this._dt);x._ad(this._a6());x._ci(l);x._ch(8192);x._bq(this._jj.height());x._af(r);x._o(this);x._ap(k);x._ai(s);n.add(x)}if(h>1){var y=n.__inner[0];y._v(d?1:2);y.isFrozen(d);y.startIndex(Math.min(f.firstRowInTopPane(),l));if(d){y.endIndex(Math.min(y.startIndex()+e.frozenRows()-1,l))}else{y._bt(this.convertTwipsToPixels(f.topPaneHeight(),true))}}var z=$$5.$e.ah($$t.$i4.$type,n);z._v(0);z.isFrozen(false);z.startIndex(Math.min(h==1?f.firstRowInTopPane():g.firstRowInBottomPane(),l));if(h>1&&d&&z.startIndex()<=n.__inner[0].endIndex()){z.startIndex(n.__inner[0].endIndex()+1)}var aa=new $$4.y($$t.$i2.$type);var ac=o.getEnumerator();while(ac.moveNext()){var ab=ac.current();aa.enqueue(ab)}o.clear();for(var ad=0;ad<i;ad++){var ae=aa.count()>0?aa.dequeue():new $$t.i2;ae._x()._a4=this._c0.runOn(this);ae._x()._a5=this._d5.runOn(this);ae._b4(this._dy.runOn(this));ae._b5(this._el.runOn(this));ae._b7(a._cn.runOn(a));ae._b8(this._be.runOn(this));ae._b9(this._dj.runOn(this));ae.__ak=this._h5.runOn(this);ae.__am=this._h6.runOn(this);ae.__al=this._h3.runOn(this);ae._b6(q?$$t.$ik._fn:$$t.$ik._fo);ae._bx(this._zoomLevel());ae._bj(this._dr);ae._bi(this._dq);ae._br(this._ds);ae._bs(this._dt);ae._ad(this._a6());ae._ci(m);ae._ch(65535);ae._bq(this._jj.width());ae._af(r);ae._o(this);ae._ap(k);ae._ai(s);o.add(ae)}if(i>1){var af=o.__inner[0];af._v(d?1:2);af.isFrozen(d);af.startIndex(Math.min(f.firstColumnInLeftPane(),m));if(d){af.endIndex(Math.min(af.startIndex()+e.frozenColumns()-1,m))}else{af._bt(this.convertTwipsToPixels(f.leftPaneWidth(),false))}}var ag=$$5.$e.ah($$t.$i2.$type,o);ag._v(0);ag.isFrozen(false);ag.startIndex(Math.min(i==1?f.firstColumnInLeftPane():g.firstColumnInRightPane(),m));
if(i>1&&d&&ag.startIndex()<=o.__inner[0].endIndex()){ag.startIndex(o.__inner[0].endIndex()+1)}var ah=p.toArray();p.clear();for(var ai=0;ai<n.count();ai++){var aj=n.__inner[ai];for(var ak=0;ak<o.count();ak++){var al=o.__inner[ak];var am=null;for(var ao=0;ao<ah.length;ao++){var an=ah[ao];if(an.rowScrollRegion()==aj&&an.columnScrollRegion()==al){am=an;break}}if(am==null){am=new $$t.i3(aj,o.__inner[ak],this._eb,this)}var ap=am.selection();ap._ac(new $$t.i(1,this._u.firstColumn(),this._u.lastColumn()));ap._ad(new $$t.i(1,this._u.firstRow(),this._u.lastRow()));p.add(am)}}this._gt();if(j!=null){var aq=this._as($m($$0.$aq.$type,null));if(aq!=j){var ar=j.selection();aq.selection()._resetSelection($$5.$e.a($$t.$d1.$type,ar.cellRanges()),ar.activeCell(),ar.activeCellRangeIndex(),false)}}}finally{this._ip(4,true);this._ip(4096,true);this._i4();n.endUpdate();o.endUpdate();p.endUpdate();this._c5(2048,d)}},_gv:function(a,b,c,d,e,f,g,h,i){var j=0;i=0;var l=a.getEnumerator();while(l.moveNext()){var k=l.current();var m=k._x();var n=m._isRangeChangeSuspended();if(n){continue}var o=m._offset();var p=o;var q=m._viewport();var r=f(k.actualExtent()/this._dw);var s=r;if(m._usePixelLevelScrolling()){var t=d(k.startIndex());o=t._offset()+f(k._bw())}else if(!n){var u=d(k.startIndex());o=u._offset();if(!k.isFrozen()){var v=e($.ig.truncate($$a4.$aa.f(j+r)));var w=v._l();if(v._index()<g-1&&$$ak.$c.c(w,r)){v=e(v._index()+1)}s=w-j}}var x=Math.max(s,Math.max(b,o+r)-j);if(k.isFrozen()){var y=k._m().count()==0?d(k.endIndex()):$$5.$e.ah($$a4.$lq.$type,k._m());i=y._index()+1;j=y._l()}else{if(o>j&&x+j>b){}else{var z=k._r();var aa=x+j-r;if(z!=null&&z.a==aa&&z.c==r){x=z.b}else{var ab=e($.ig.truncate($$a4.$aa.f(aa)));var ac=ab._index();if(aa>ab._offset()){ac++}var ad=x+ab._l()-aa;k._r(new $$t.i7(r,aa,ad,ac));x=ad}}m._minimum(j);m._smallChange(c)}m._initialize(r,x,o);if(!this._b7(262144)){if(!$$ak.$c.c(p,m._offset())||!$$ak.$c.c(h,k.__bh)){k.__bg=m._offset()+m._viewport()/2;k.__bh=h}}}return{p8:i}},_gs:function(){var a=this._bb.workbook();this._u=new $$t.d1(0,0,a.maxRowCount()-1,a.maxColumnCount()-1)},_g1:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();b._r(b._s(null))}},_ch:function(a){switch(a.a){case 35:switch(a.c){case"FirstColumnInLeftPane":case"FirstRowInTopPane":case"FirstColumnInRightPane":case"FirstRowInBottomPane":return true}break}return false},_ci:function(a){var b=$b($$a4.$jb.$type,a._bs());if(b!=null&&b._ac()==8){var c=a._bh();var d=b._i()._bh();if($$a4.$ah.l_op_Equality(c,d)){return true}else{var e=this._bb.workbook();if($$a.$ax.b(c._aj(e,true,true),d._aj(e,true,true))){return true}}}return false},_cm:function(a,b,c){var d=a.sortSettings().region();if(d==null){return false}var e=d._h();if($$a4.$l0._l_op_Equality($$t.$dy.a0(b),e)){return true}if(c>0){var f=e._firstRowIndex()-c;e=e._withFirstRowIndex(f);if($$a4.$l0._l_op_Equality($$t.$dy.a0(b),e)){return true}}return false},_cn:function(a,b){switch(a){case 0:return false;default:case 3:return true;case 1:return!b;case 2:return b}},_cr:function(a,b){var c=this._bb.rows()._aj(a);var d=this._bb._b4(c,b);return $j(d._c5(),false)},_cq:function(a,b){var c=this._bb._b4(a,b);return $j(c._c5(),false)},_co:function(a,b,c){if(a.isProtected()){var d=0;var e=a.columns().maxCount();var f=c!=null?c.a(a):null;var h=b._bj().getEnumerator();while(h.moveNext()){var g=h.current();if($$t.$ik._cp(a,g._i,d,g._h,e,f)==false){return false}}if(b._al()==false||b._am()==false){if(b._bi().count()>0){var i=0;var j=a.rows().maxCount()-1;var l=b._bi().getEnumerator();while(l.moveNext()){var k=l.current();if($$t.$ik._cp(a,i,k._i,j,k._h,f)==false){return false}}}if(b._bi().count()==0&&b._bj().count()==0||b._aw()){var n=b.cellRanges().getEnumerator();while(n.moveNext()){var m=n.current();if(b._az(m)==false&&b._a0(m)==false){if($$t.$ik._cp(a,m.firstRow(),m.firstColumn(),m.lastRow(),m.lastColumn(),f)==false){return false}}}}}}return true},_cp:function(a,b,c,d,e,f){if(a.isProtected()==false){return true}var g=b;var h=false;var i=$$t.$en.a(f,b,c,d,e);var k=a.rows()._m(b,d).getEnumerator();while(k.moveNext()){var j=k.current();var l=j.index();if(g!=l){if(i!=null){i.f(g,l-1)}h=true}else{g++}var m;var n=c;var o=j._hasCellFormat();var p=o&&$j(j._cellFormatInternal().d()._c5(),true);var r=j._ch(c,e,true).getEnumerator();while(r.moveNext()){var q=r.current();if(q.n()==false){continue}if(n!=q.r()){if(o){if(p){if(i==null||i.b(j,n,q.r()-1)==false){return false}}}else{for(var s=n,t=q.r();s<t;s++){m=a._cb(s);if($j(m.b()._c5(),true)){if(i==null||i.b(j,Math.max(s,m.q()),Math.min(q.r()-1,m.r()))==false){return false}}s=m.r()}}}if($j(q.j()._c5(),true)){if(i==null||i.c(l,q.r())==false){return false}}n=q.r()+1}if(n<=e){if(o){if(p){if(i==null||i.b(j,n,e)==false){return false}}}else{for(var u=n;u<=e;u++){m=a._cb(u);if($j(m.b()._c5(),true)){if(i==null||i.b(j,Math.max(n,m.q()),Math.min(e,m.r()))==false){return false}}u=m.r()}}}}if(g!=d+1){if(i!=null){i.f(g,d)}h=true}if(h){var v=a._f9(c);var w=a._ff();var x=w.__inner[v];for(var y=v;y<w.count();y++){x=w.__inner[y];if($j(x.b()._c5(),true)){if(i==null||i.d(Math.max(c,x.q()),Math.min(e,x.r()))==false){return false}}if(x.r()>=e){break}}}return true},_eh:function(a){if(Number.isInfinity(a)){a=this._dz($.ig.truncate(this._jl.height()))}return this._ek(this._rows(),a,this._d3(),this._bb.workbook().maxRowCount()-1,true,this._bb._e2.runOn(this._bb),this._dz.runOn(this),this._em.runOn(this),this._fi.runOn(this),this._fe.runOn(this))},_ek:function(a,b,c,d,e,f,g,h,i,j){var k=$$5.$e.ad($$t.$i6.$type,a);var l=$$5.$e.ah($$t.$i6.$type,a);var m=0;var n=0;if(k!=l){var o=0;if(c>0&&!k.isFrozen()){var p=k._bu();if(b>p&&b-p<c){o=b-p}}m=this._ej(k,b,o,f,h,i,j,d,e,NaN);if(!e&&k.isFrozen()){k._bt((g($.ig.truncate($$5.$e.ab($$a4.$lq.$type,k._m(),function(q){return q._extent()})))-k._bw())*this._dw)}var q=Math.min(k._bu()+o,b);b-=q;if(!e){k.actualExtent(q);this._i0(k,g)}if(!k.isFrozen()){k.endIndex(k._m().count()==0?k.startIndex():$$5.$e.ah($$a4.$lq.$type,k._m())._index())}else{k._bk(0)}b-=c;if(!e){}}if(b<0){b=0}if(!e){l._bt(b)}n=this._ej(l,b,0,f,h,i,j,d,e,e?b:NaN);if(!e){if(l._m().count()>0){l.startIndex(l._m().__inner[0]._index())}l.actualExtent(b);l.endIndex(l._m().count()==0?l.startIndex():$$5.$e.ah($$a4.$lq.$type,l._m())._index());this._i0(l,g)}return Math.max(m,n)},_cs:function(a){var b=this.activePane().selection();var c=b._s();var d=this._getCellRange1(a.row(),a.column());c=c.union(d);c=this.extendRangeForMergedCells(c);return this._cz(c)},_az:null,_hi:function(a){},_hj:function(a,b,c){switch(b!=null?b:""){case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(this._a2._af(a)){if(this._a2._j().count()>1){this._ht(2097152)}}break;case"ChartAdapter":this._isLayoutDirty(true);this._p.ad();break}},_hl:function(a,b){},_hn:function(){this._bl=null;var a=$$0.$s.now();while(this._dp.count()>0){var b=this._dp.dequeue();if(b._isPending()){b._execute();break}}this._iv()},_cv:function(){this._ho(false);if(this._b7(8)){this._gu()}if(this._rows().count()==0||this._columns().count()==0){return false}return true},_ho:function(a){var b=this._b7(32768);if(b){return}try{this._ip(32768,true);this._hp()}finally{this._ip(32768,false)}if(this._cw()&&a){this._ho(false)}this._ip(65536,this._at!=0)},_hp:function(){var a=this._at;this._at=0;if(a!=0){if((a&5)==5){this._p.z()}if((a&3)==3){this._ht(16)}if((a&64)==64){this._ht(1024)}if((a&8192)==8192){this._ht(8388608)}if((a&128)==128){this._ht(4194304)}if((a&9)==9){this._ip(32,true)}if((a&17)==17){this._ip(8,true)}if((a&49)==49){this._ip(131072,true)}if((a&257)==257){this._ht(4194304)}if((a&515)==515){this._p.ad()}if((a&65536)==65536){this._p.g.l();this._ht(268435456)}if((a&4096)==4096){this._ip(33554432|67108864,true)}if((a&1024)==1024){this._iz()}if((a&2048)==2048){this._gk()}if((a&16384)==16384){this._ip(134217728,true)}if((a&32768)==32768){this._p.k.n(true)}if((a&1)==1){this._isLayoutDirty(true)}}},_cw:function(){var a=this._b7(131072);if(a){this._hq()}this._ip(524288,false);return a},_hq:function(){this._ip(131072,false);var a=this._ji.height();var b=this._ji.width();var c=this._bb.displayOptions();var d=this._bb.displayOptions().magnificationInNormalView()/100;var e=d-this._zoomLevel();a-=this.__dx*e;b-=this.__d2*e;var g=this._rows().getEnumerator();while(g.moveNext()){var f=g.current();if(f.isFrozen()==false&&f._ab()!=null){var h=f._ab();var i=h._u(true);var j=h.activeCell();var k=f.startIndex()<=j.row()&&j.row()<=f.endIndex()&&i._contains(j);var l=Math.max(Math.min(a,f.actualExtent())/(c.magnificationInNormalView()/100),0);var m=new $$a4.lq;if(this._b7(524288)){if(k){m=this._bb._cp(f.startIndex())}else{m=this._bb._cp(i.firstRow())}}else{var n=Math.max($.ig.truncate(f.__bg)-this._em(l/2),0);m=this._bb._cq(n);if(n>m._offset()+$a(m._extent(),2)&&m._index()<this._u.lastRow()){m=this._bb._cq(m._l()+1)}}var o=m._index();if(k){if(i.firstRow()<o){o=i.firstRow();m=this._bb._cp(o)}else if(i.firstRow()>o){var p=m._offset()+this._em(l);var q=this._bb._cq(p);if(p<q._l()&&q._index()>o){q=this._bb._cq(q._offset()-1)}if(i.lastRow()>q._index()){q=this._bb._cp(i.lastRow());var r=Math.max(q._l()-this._em(l),0);m=this._bb._cq(r);if(m._offset()<r){m=this._bb._cq(m._l()+1)}o=m._index()}}if(j.row()<o){o=j.row()}else if(j.row()>o){var s=m._offset()+this._em(l);var t=this._bb._cq(s);if(t._l()<s&&t._index()>m._index()){t=this._bb._cq(t._offset()-1)}if(j.row()>t._index()){var u=Math.max(t._l()-this._em(l),0);m=this._bb._cq(u);if(m._offset()<u){m=this._bb._cq(m._l()+1)}o=m._index()}}}if(f==this._rows().item(0)){c.unfrozenPaneSettings().firstRowInTopPane(o)}else if(this._rows().item(0).isFrozen()){c.frozenPaneSettings().firstRowInBottomPane(o)}else{c.unfrozenPaneSettings().firstRowInBottomPane(o)}}a-=f.actualExtent();if(f.isFrozen()){a-=f.actualExtent()*e}}var w=this._columns().getEnumerator();while(w.moveNext()){var v=w.current();if(v.isFrozen()==false&&v._ab()!=null){var x=v._ab();var y=x._u(true);var z=x.activeCell();var aa=v.startIndex()<=z.column()&&z.column()<=v.endIndex()&&y._contains(z);var ab=Math.max(Math.min(b,v.actualExtent())/(c.magnificationInNormalView()/100),0);var ac=new $$a4.lq;if(this._b7(524288)){if(aa){ac=this._bb._cn(v.startIndex())}else{ac=this._bb._cn(y.firstColumn())}}else{var ad=Math.max($.ig.truncate(v.__bg)-this._el(ab/2),0);ac=this._bb._co(ad);if(ad>ac._offset()+$a(ac._extent(),2)&&ac._index()<this._u.lastColumn()){ac=this._bb._co(ac._l()+1)}}var ae=ac._index();if(aa){if(y.firstColumn()<ae){ae=y.firstColumn();ac=this._bb._cn(ae)}else if(y.firstColumn()>ae){var af=ac._offset()+this._el(ab);var ag=this._bb._co(af);if(af<ag._l()&&ag._index()>ae){ag=this._bb._co(ag._offset()-1)}if(y.lastColumn()>ag._index()){ag=this._bb._cn(y.lastColumn());var ah=Math.max(ag._l()-this._el(ab),0);ac=this._bb._co(ah);if(ac._offset()<ah){ac=this._bb._co(ac._l()+1)}ae=ac._index()}}if(z.column()<ae){ae=z.column()}else if(z.column()>ae){var ai=ac._offset()+this._el(ab);var aj=this._bb._co(ai);if(aj._l()<ai&&aj._index()>ac._index()){aj=this._bb._co(aj._offset()-1)}if(z.column()>aj._index()){var ak=Math.max(aj._l()-this._el(ab),0);ac=this._bb._co(ak);if(ac._offset()<ak){ac=this._bb._co(ac._l()+1)}ae=ac._index()}}}if(v==this._columns().item(0)){c.unfrozenPaneSettings().firstColumnInLeftPane(ae)}else if(this._columns().item(0).isFrozen()){c.frozenPaneSettings().firstColumnInRightPane(ae)}else{c.unfrozenPaneSettings().firstColumnInRightPane(ae)}}b-=v.actualExtent();if(v.isFrozen()){b-=v.actualExtent()*e}}if(!this._b7(524288)){this._ip(262144,true)}},_hs:function(){if(!this._b7(256)){this._a7.m()}},_ht:function(a){if((this._av&a)!=a){this._ip(a,true);this._hs()}},_cy:function(a,b,c,d,e){var f=this.activePane();var g=f!=null?f.selection():null;c=false;if(g!=null){var i=this._a2._j().getEnumerator();while(i.moveNext()){var h=i.current();var j=h._j();if(b&&j.isProtected()&&j.protection().allowInsertingHyperlinks()==false){continue}var k=$$t.$ik._hx(a,b,c,j,g.cellRanges());c=k.p2;if(b&&(c||e)){if($$t.$ik._co(j,g,d)==false){return{ret:false,p2:c}}else{return{ret:true,p2:c}}}}}return{ret:c,p2:c}},_hx:function(a,b,c,d,e){c=false;if(d._d8()){var g=e.getEnumerator();while(g.moveNext()){var f=g.current();var h=$$t.$dy.a0(f);for(var i=d.hyperlinks().count()-1;i>=0;i--){var j=d.hyperlinks().item(i);var k=j.sourceRegion()._h();if(h._contains1(k)||k._contains1(h)){c=true;if(b){return{p2:c}}d.hyperlinks()._s(i,a)}}}}return{p2:c}},_cz:function(a){var b=this.activePane().selection();if(b!=null&&this._canSelect1(a)&&b._replaceActiveCellRange1(a,b.activeCell(),true)){return true}return false},_hz:function(a,b,c,d){var $self=this;var e;var f=function(){var g=$self._ad(a,b,c,d,e);e=g.p4;return g.ret}();this._cz(f);this._f2(e,f,null)},_h2:function(){this._t=this._w=$$t.$d1.empty},_h3:function(a){var c=this._a2._j().getEnumerator();while(c.moveNext()){var b=c.current();var d=b._j();var e=d.columns();if(a==0){d.hideColumns($m($$0.$aw.$type,null),$m($$0.$aw.$type,null))}else if(a<0){{var f=this._a9();try{var g=new $$a4.mb(d.workbook(),f);var h=this._u;var i=d._c4(h.firstRow(),h.lastRow(),h.firstColumn(),h.lastColumn(),false);var j=false;for(var k=i._firstColumnIndex();k<=i._lastColumnIndex();k++){var l=e.item(k);var m=l._ay(i._firstRowIndex(),i._lastRowIndex(),g);l.width(!$k(m)?m.value():l.width());if(j){l.hidden(false)}}}finally{if(f!=null){f.dispose()}}}}else{d.defaultColumnWidth(a);var n=new $$4.x($$a4.$la.$type,0);n.add(new $$a4.la(1,0,d.columns().maxCount()-1));d._ik(n,-1)}}},_h4:function(a){var b=false;var d=this._a2._j().getEnumerator();while(d.moveNext()){var c=d.current();var e=c._j();if(a==0){e._dv(true);e.hideRows($m($$0.$aw.$type,null),$m($$0.$aw.$type,null))}else{e._dv(false);e.defaultRowHeight(a);var g=e.rows().getEnumerator();while(g.moveNext()){var f=g.current();f.hidden(false);if(this._c6(f,a)){b=true}}}}if(b){this._at|=5|9;this._ht(65536)}},_h5:function(a,b){var d=this._a2._j().getEnumerator();while(d.moveNext()){var c=d.current();var e=a;var f=c._j();var g=f.columns().item(b);if(e==0){g.hidden(true)}else{if(e<0){var h;{var i=this._a9();try{h=g._ay(0,f.rows().maxCount()-1,new $$a4.mb(f.workbook(),i))}finally{if(i!=null){i.dispose()}}}if(!h.hasValue()){continue}e=h.value()}g.hidden(false);g.width(e)}}},_h6:function(a,b){if(a<0){var c=new Array(b.length);for(var d=0;d<b.length;d++){c[d]=new $$t.d1(this._u.firstRow(),b[d]._i,this._u.lastRow(),b[d]._h)}this._f0(c,false)}else{var e=new $$4.x($$a4.$la.$type,2,b.length);for(var f=0;f<b.length;f++){e.add(new $$a4.la(1,b[f]._i,b[f]._h))}var h=this._a2._j().getEnumerator();while(h.moveNext()){var g=h.current();g._j()._ik(e,a)}}},_h7:function(a,b){var c=false;var e=this._a2._j().getEnumerator();while(e.moveNext()){var d=e.current();var f=d._j();var g=f.rows().item(b);if(a==0){g.hidden(true)}else{g.hidden(false);if(this._c6(g,a)){c=true}}}if(c){this._at|=5|9;this._ht(65536)}},_h8:function(a,b){var c=new $$4.x($$a4.$la.$type,2,b.length);for(var d=0;d<b.length;d++){c.add(new $$a4.la(1,b[d]._i,b[d]._h))}var f=this._a2._j().getEnumerator();while(f.moveNext()){var e=f.current();e._j()._im(c,a)}},_c1:function(a,b,c,d,e,f,g,h,i){var j=a.startIndex();var k;switch(b){case 4:k=g(a.startIndex(),true);j=!$k(k)?k.value():a.startIndex();break;case 1:k=g(a.startIndex(),false);j=!$k(k)?k.value():a.startIndex();break;case 3:var l=a.endIndex()-a.startIndex()+1;if(!$$ak.$c.c(a._bk(),0)&&a.endIndex()!=a.startIndex()){l-=1}k=g(a.startIndex()+l-1,true);j=!$k(k)?k.value():a.startIndex()+l;break;case 0:var m=i(a.startIndex());if($$ak.$c.c(a._x()._offset(),m._offset())&&$$ak.$c.e(a._x()._offset(),a._x()._minimum())){m=i(a.startIndex()-1)}var n=Math.max(m._l()-a._x()._viewport(),a._x()._minimum());var o=h($.ig.truncate($$a4.$aa.f(n)));if($$ak.$c.e(n,o._offset())){o=i(Math.min(o._index()+1,a.startIndex()-1))}j=o._index();break;default:return false}return this._c2(a,j,d,e,f,h,i)},_c2:function(a,b,c,d,e,f,g){a._bw(0);if(b<0){b=c}else{b=Math.max(Math.min(b,d-1),c);if(b!=a.startIndex()){var h=a._s();var i=a._x();if(h==null||h.c!=i._viewport()||h.a!=e){var j=g(b);if(j._offset()>=e-i._viewport()){var k=e-i._viewport();var l=f($.ig.truncate($$a4.$aa.f(k)));var m=l._index();if(l._offset()<k){m++;k=l._l()}a._s(h=new $$t.i7(i._viewport(),e,k,m))}else{a._s(h=null)}}if(h!=null&&b>h.d){b=h.d}}}a.startIndex(b);return true},_c0:function(a,b,c){return this._c1(a,b,c,this._ed,this._bb.workbook().maxColumnCount(),this._jj.width(),this._eq.runOn(this),this._be.runOn(this),this._bb._cn.runOn(this._bb))},_c3:function(a,b,c){return this._c1(a,b,c,this._ee,this._bb.workbook().maxRowCount(),this._jj.height(),this._er.runOn(this),this._bb._cq.runOn(this._bb),this._bb._cp.runOn(this._bb))},_ij:function(a,b){var c=$m($$t.$d1.$type,this._getCellRange1(a.row(),a.column()));this._ik(a,b,c)},_ik:function(a,b,c){var d=this.activePane();var e=d!=null?d.selection():null;if(e!=null&&this._canSelect(a)){var f=e._x()==2;var g=true;if(f){if(b&&!e.__av){e.__av=true;g=e._ah(a)}else{g=e._a4(a)}}else{g=e._a9(a)}if(g&&$$t.$d1.l_op_Inequality_Lifted(c,$m($$t.$d1.$type,null))){this._b3(null,c.value(),true)}}},_c5:function(a,b){var c=this._av;if(b){c|=a}else{c&=~a}if(c==this._av){return false}this._av=c;this.a($$t.$ik._db.item(a));return true},_ip:function(a,b){if(b){this._av|=a}else{this._av&=~a}},_c6:function(a,b){if(b<0&&a.height()<0){a._dx(true);return true}else{a.height(b);return false}},_iv:function(){if(this._dp.count()>0&&this._bl==null&&(this._az==null||!this._az._i()||!this._az._isRangeChangeSuspended())){this._az=null;this._bl=new $$t.c(this._hn.runOn(this),50)}},_iw:function(){if(this._bl!=null){var a=this._bl;this._bl=null;a.c()}},_iz:function(){this._bn=this._bb.displayOptions().showFormulasInCells();this._jh(this._bb._jg())},_i0:function(a,b){if(a.isFrozen()||a._m().count()==0){a._bk(0)}else{var c=$$5.$e.ah($$a4.$lq.$type,a._m());var d=b(c._l())-(a._bw()+b(a._m().__inner[0]._offset())+a.actualExtent()/this._dw);a._bk(Math.max(d,0))}},_i1:function(){var a=this._bb.displayOptions();var b=a.unfrozenPaneSettings();var c=a.frozenPaneSettings();var d=a.panesAreFrozen()?c:b;var e=this._b7(1048576);try{this._ip(1048576,true);if(this._columns().count()>0){b.firstColumnInLeftPane(this._columns().item(0).startIndex());if(this._columns().count()>1){d.firstColumnInRightPane(this._columns().item(1).startIndex())}}if(this._rows().count()>0){b.firstRowInTopPane(this._rows().item(0).startIndex());if(this._rows().count()>1){d.firstRowInBottomPane(this._rows().item(1).startIndex())}}}finally{this._ip(1048576,e)}},_i2:function(){if(this._b7(2097152)){this._ip(2097152,false);var a=this._bb.displayOptions();var b=this._ff(this.activePane());if($l(b,null)){a._z(b.value())}var c=a._af().b();if(c.count()!=this._panes().count()){while(c.count()>this._panes().count()){c.removeAt(c.count()-1)}while(c.count()<this._panes().count()){c.add(new $$a4.mw)}}var d=null;for(var e=0;e<this._panes().count();e++){var f=this._panes().item(e);var g=f.selection();var h=c.item(e);if(f==this.activePane()){d=h}h._a=this._ff(f).value();h._b=$$t.$dy.ay(g.activeCell());h._f=g.activeCellRangeIndex();var i=g.cellRanges();var j=h.d();j.clear();var l=i.getEnumerator();while(l.moveNext()){var k=l.current();j.add($$t.$dy.a0(k))}}if(d!=null){var n=this._a2._j().getEnumerator();while(n.moveNext()){var m=n.current();if(m._j()!=this._bb){var o=m._j().displayOptions();var p=o._af();o._br();var r=p.b().getEnumerator();while(r.moveNext()){var q=r.current();q.g(d)}}}}}},_i4:function(){var a=this.activePane()!=null?this.activePane().selection():null;if(this._a0!=null){a=this._a0}var c=this._columns().getEnumerator();while(c.moveNext()){var b=c.current();b._ab(a)}var e=this._rows().getEnumerator();while(e.moveNext()){var d=e.current();d._ab(a)}if(a!=null){a._by()}},_i6:function(){var a=this._panes();for(var b=0;b<a.count();b++){var c=a.item(b);var d=c.rowScrollRegion().startIndex();var e=c.rowScrollRegion().endIndex();var f=function(g){return!$k(g)?g.value():c.columnScrollRegion().startIndex()}(c.columnScrollRegion()._cr());var g=c.columnScrollRegion().endIndex();var h=c._q();var i=new $$4.x($$t.$ip.$type,0);var j=this._b6(i,c,d,e,f,g,h);if(j||!$$ak.$c.d($$t.$ip.$type,i,c._q(),null)){c._q()._reInitialize(i)}}},_i7:function(){if(this._b7(8192)){this._p.ae();this._ip(8192,false)}},_i8:function(){var a=this._b7(16384);var b=this._al._j();this._ip(16384,true);b.ap();try{this._p.ak()}finally{b.at();this._ip(16384,a)}},_i9:function(){this._jd();if(this._b7(32)){this._ip(32,false);this._jl=this._jm(this._w);this._jk=this._jm(this._v);this._jj=this._jm(this._u)}},_jb:function(){this._i9();var a=this._b7(64);this._ip(64,true);try{var b=this._gv(this._columns(),this._jl.width(),this._bb.defaultColumnWidth(),this._bb._cn.runOn(this._bb),this._be.runOn(this),this._el.runOn(this),this._bb.workbook().maxColumnCount(),this._ji.width()+this.__d2,this._ed);this._ed=b.p8;var c=this._gv(this._rows(),this._jl.height(),this._bb.defaultRowHeight(),this._bb._cp.runOn(this._bb),this._bb._cq.runOn(this._bb),this._em.runOn(this),this._bb.workbook().maxRowCount(),this._ji.height()+this.__dx,this._ee);this._ee=c.p8}finally{this._ip(64,a);this._ip(262144,false)}},_ja:function(){var a=this._bb.workbook();if(a==null){return}var b=a.windowOptions().scrollBars();this._hasHorizontalScrollBar($$t.$ik._cn(b,false));this._hasVerticalScrollBar($$t.$ik._cn(b,true));if(this._b7(4)){this._ip(4,false);var c=this._hasHorizontalScrollBar()?3:2;var d=this._hasVerticalScrollBar()?3:2;var f=this._columns().getEnumerator();while(f.moveNext()){var e=f.current();e._x()._scrollBarVisibility(c)}var h=this._rows().getEnumerator();while(h.moveNext()){var g=h.current();g._x()._scrollBarVisibility(d)}}},_d7:function(a,b,c,d){if(b<0){b=0}var e=d($.ig.truncate($$a4.$aa.f(b)));var f;var g;if(a._x()._usePixelLevelScrolling()){f=e._index();g=a._b4()($.ig.truncate(b)-e._offset())}else{f=Math.min(b<e._offset()+$a(e._extent(),2)?e._index():e._index()+1,c-1);g=0}a.startIndex(f);a._bw(g);this._isLayoutDirty(true);return b},_d5:function(a,b){return this._d7(a,b,this._bb.workbook().maxColumnCount(),this._be.runOn(this))},_d6:function(a,b){return this._d7(a,b,this._bb.workbook().maxRowCount(),this._bb._cq.runOn(this._bb))},_jc:function(){var a=this._b7(256);if(a){return}this._a7.i();this._ip(256,true);try{this._i2();if(this._b7(65536)){this._ho(true)}if(this._b7(8)){this._gu()}if(this._b7(4194304)){this._gr()}this._ja();this._i2();if(this._b7(4096)){this._ip(4096,false);var c=this._rows().getEnumerator();while(c.moveNext()){var b=c.current();b._ad(this._a6())}var e=this._columns().getEnumerator();while(e.moveNext()){var d=e.current();d._ad(this._a6())}}if(this._b7(1024)){this._ip(1024,false);this._ip(8388608|134217728,true);var f=this.activePane();if(f!=null){f.selection()._bz()}}if(this._b7(512)){this._ip(512,false);var g=this.activePane();var h=g!=null?g.selection():null;this._cd(h!=null&&h._bi().count()==1&&h._bi().item(0)._i<=this._u.firstColumn()&&h._bi().item(0)._h>=this._u.lastColumn()&&h._bj().count()==1&&h._bj().item(0)._i<=this._u.firstRow()&&h._bj().item(0)._h>=this._u.firstColumn())}if(this._b7(16777216)){this._ip(16777216,false);this._ip(33554432|134217728,true);var i=this.activePane();var j=i!=null?i.selection():null;this._ao(j!=null?this._ar(j.activeCell()):null)}if(this._b7(33554432)){this._ip(33554432,false);var k=this.activePane();var l=k!=null?k.selection():null;var m=l==null||this._bb._d6()==false?null:this._bb.dataValidationRules()._e($$t.$dy.az(l.activeCell()));this._fu(m==null||m.showInputMessage()==false||String.isNullOrEmpty(m.inputMessageDescription())?null:$$6.$w.a(String,String,m.inputMessageTitle(),m.inputMessageDescription()))}if(this._b7(67108864)){this._ip(67108864,false);this._ip(134217728,true);var n=this._bb._fd();var o=n.count();for(var p=o-1;p>=0;p--){if(n.__inner[p].dataValidationRule()==null){n.removeAt(p)}}if(o!=n.count()){this._isLayoutDirty(true)}}if(this._b7(8388608)){this._ip(8388608,false);this._ip(134217728,true);var q=null;var r=this.activePane();var s=r!=null?r.selection():null;if(s!=null){q=this._bi(s.activeCell().row(),s.activeCell().column())}this._activeTable(q)}if(this._b7(134217728)){this._ip(134217728,false);this._i6()}if(this._b7(268435456)){this._ip(268435456,false);if(this._p.o()){this._isLayoutDirty(true)}}}finally{this._ip(256,a)}},_jd:function(){if(this._b7(16)){this._ip(16,false);this._t=this._x();var a=20;var b=8;var c=this._v.isEmpty()?0:this._v.firstRow();var d=this._v.isEmpty()?0:this._v.firstColumn();this._w=new $$t.d1(c,d,Math.max(this._t.lastRow(),Math.min(this._u.lastRow(),c+a)),Math.max(this._t.lastColumn(),Math.min(this._u.lastColumn(),d+b)));this._ip(32,true)}},_jf:function(a){var b=this._bb.workbook();if(b==null){return}var c=this.activePane().selection()._u(true);if(a){if($$a4.$l0._l_op_Equality_Lifted(this._bb._g1,$m($$a4.$l0.$type,null))){return}c=$$t.$dy.aa(this._bb._g1.value())}else{var d=$$t.$dy.a0(c);var f=this._a2._j().getEnumerator();while(f.moveNext()){var e=f.current();e._j()._g1=$m($$a4.$l0.$type,d)}}this._bb._g1=$m($$a4.$l0.$type,null);var g=this._dz(this._bb._cp(c.firstRow())._offset());var h=this._dz(this._bb._cp(c.lastRow())._l());var i=this._dy(this._bb._cn(c.firstColumn())._offset());var j=this._dy(this._bb._cn(c.lastColumn())._l());var k=j-i;var l=h-g;if(this._rows().item(0).isFrozen()&&this._rows().item(0).startIndex()<c.firstRow()){var m=this._dz(this._bb._cp(this._rows().item(0).startIndex())._offset());var n=this._dz(this._bb._cp(Math.min(this._rows().item(0).endIndex(),c.firstRow()-1))._l());l+=n-m}if(this._columns().item(0).isFrozen()&&this._columns().item(0).startIndex()<c.firstColumn()){var o=this._dy(this._bb._cn(this._columns().item(0).startIndex())._offset());var p=this._dy(this._bb._cn(Math.min(this._columns().item(0).endIndex(),c.firstColumn()-1))._l());k+=p-o}var q=this._bb.displayOptions().showRowAndColumnHeaders();var r=this._ji;if(q){var s=Math.max(c.lastRow(),100);var t;if(b.cellReferenceMode()==1){t=this._fq(s)}else{t=this._fr(s)}var u=this._al._j().ad(this._rows().item(0),t);var v=this._al._j().aa(b,100,0);var w=u;l+=v;k+=w;r.height(r.height()+Math.max(0,this.__dx-(3*this._dt+this._dt)));r.width(r.width()+Math.max(0,this.__d2-(3*this._ds+this._ds)))}var x=Math.floor(r.width()/k*100);var y=Math.floor(r.height()/l*100);this._ip(524288,true);var z=$.ig.truncate($$ak.$c.l(Math.min(x,y),10,400));if(z!=this._bb.displayOptions().magnificationInNormalView()){this._bb.displayOptions().magnificationInNormalView(z)}else if(!this._b7(131072)){this._ip(131072,true);this._cw()}},activatePane:function(a){if(!this.canActivatePane(a)){return false}if(this.activePane()!=a){if(this._d9!=null&&!this._d9(a)){return false}}this.activePane(a);return true},scrollRangeIntoView:function(a,b,c){b=$t($$t.$i.$type,b);c=$t($$t.$i.$type,c);this._b4(a,b,c,true)},canActivatePane:function(a){return!a.rowScrollRegion().isFrozen()&&!a.columnScrollRegion().isFrozen()},canSelect:function(a){return this._canSelect(a)},canSelect1:function(a){return this._canSelect1(a)},getFilter:function(a,b){var c=this._bi(a,b);if(c!=null){return c.columns()._item(b-c._by()._firstColumnIndex()).filter()}var d=this._bb.filterSettings();if(d.region()!=null&&d.region()._q(a,b)){var e=b-d.region().firstColumn();return d.getFilter(e)}return null},getHeaderCaption:function(a,b){return this._fp(new $$t.dz(a,b))},getPane:function(a,b){var d=this._panes().getEnumerator();while(d.moveNext()){var c=d.current();if(c.rowScrollRegion()==a&&c.columnScrollRegion()==b){return c}}return null},renderCache:function(){return this._al._j()},spreadsheetOwnerState:function(){return this._al},verifyScrollPositions:function(){if(!this._ji.isEmpty()){this._jn(this._ji)}},getScrollableRegion:function(a){if(a!=null&&a.isFrozen()){var b=a._aw()?this._rowItems():this._columnItems();if(b.count()>1){a=b.item(1)}}return a},$type:new $.ig.Type("SpreadsheetPaneManager",$$ak.$s.$type,[$$t.$i1.$type])},true);$c("SpreadsheetPaneManager_IndentHelper:iv","Object",{a:null,d:null,k:0,j:0,g:null,m:$m($$a4.$cg.$type,null),h:0,i:0,f:null,e:false,c:null,b:null,init:function(a,b){this.k=2147483647;this.j=0;this.h=-1;this.b=new $$t.d1;$.ig.$op.init.call(this);this.c=a.activePane();this.b=a._aa();this.i=b?1:-1;this.e=b;this.a=$$5.$e.a($$a4.$jk.$type,$$5.$e.o($$t.$k2.$type,$$a4.$jk.$type,a._a3()._j(),function(c){return c._j()}));this.g=new $$4.q($$a4.$o.$type,0)},n:function(){var a=this.c;if(a==null){return}var b=this.b;var e=this.a;for(var d=0;d<e.length;d++){var c=e[d];this.d=c;var f=this.r.runOn(this);var h=a.selection().cellRanges().getEnumerator();while(h.moveNext()){var g=h.current();this.g.clear();var i=g.firstRow()<=b.firstRow()&&g.lastRow()>=b.lastRow();var j=g.firstColumn()<=b.firstColumn()&&g.lastColumn()>=b.lastColumn();var k=Math.max(g.firstColumn(),b.firstColumn());var l=Math.min(g.lastColumn(),b.lastColumn());var m=Math.max(g.firstRow(),b.firstRow());var n=Math.min(g.lastRow(),b.lastRow());var o=0;var q=c.rows()._m(m,n).getEnumerator();while(q.moveNext()){var p=q.current();o++;this.h=k;p._dj(k,l,f);this.p(p,l+1)}if(o<n+1-m){this.h=k;this.p(null,l+1)}if(this.k==0&&this.e==false){return}else if(this.j==250&&this.e){return}}this.f=null;if(a.selection()._ax()){this.f=new $$4.q($$t.$dz.$type,0)}var r=this.u.runOn(this);var t=a.selection().cellRanges().getEnumerator();while(t.moveNext()){var s=t.current();var u=s.firstRow()<=b.firstRow()&&s.lastRow()>=b.lastRow();var v=Math.max(s.firstColumn(),b.firstColumn());var w=Math.min(s.lastColumn(),b.lastColumn());var x=Math.max(s.firstRow(),b.firstRow());var y=Math.min(s.lastRow(),b.lastRow());if(u){for(var z=v;z<=w;z++){this.t(c.columns().item(z)._cellFormatInternal(),true)}var ab=c.rows()._m(x,y).getEnumerator();while(ab.moveNext()){var aa=ab.current();aa._dj(v,w,r)}}else{var ac=s.firstColumn()<=b.firstColumn()&&s.lastColumn()>=b.lastColumn();if(ac){for(var ad=s.firstRow();ad<=s.lastRow();ad++){var ae=c.rows().item(ad);this.t(ae._cellFormatInternal(),true);ae._dj(v,w,r)}}else{for(var af=s.firstRow();af<=s.lastRow();af++){var ag=c.rows().item(af);for(var ah=s.firstColumn();ah<=s.lastColumn();ah++){this.s(ag,ah)}}}}}}},l:function(a,b){var c=a._ct();if(c!=0){var d=a._co();if(d==0){switch(b){case 1:case 3:case 7:break;default:c=0;break}}else if(d==255){switch(a._a8()){case 0:case 2:case 4:break;default:c=0;break}}else{c=0}}return c},p:function(a,b){while(b>this.h){var c=this.d._cb(this.h);if(a!=null&&a._hasCellFormat()){this.q(a._cellFormatInternal().d())}else if(c.b()!=null){this.q(c.b())}else{this.q(this.d.workbook()._ca()._defaultElement())}this.h=c.r()+1}},q:function(a){if(this.g.add(a)){var b=a._a4();if(this.g.count()==1){this.m=$m($$a4.$cg.$type,b)}else if($l(b,this.m)){this.m=$m($$a4.$cg.$type,null)}var c=$$t.$iv.l(a,b);if(c<this.k){this.k=c}if(c>this.j){this.j=c}}},r:function(a,b,c){this.p(a,c);this.q(b);this.h=c+1},s:function(a,b){var c=new $$t.dz(a.index(),b);if(this.f==null||this.f.add(c)){var d=a.worksheet();var e=$$t.$ik._getCellRange2(c.row(),c.column(),d);if(e.isSingleCell()==false){if($$t.$dz.l_op_Inequality_Lifted($$t.$ik._e2(e,d),$m($$t.$dz.$type,c))){return}}var f=a._bc(b);this.t(f,false)}},t:function(a,b){var c=a.d();var d=c._cw();var e=$j(this.m,null);var f=c._ct();var g=b?8:0;if(d==0){switch(c._a4()){case 1:case 3:case 7:break;default:f=0;e=true;break}}else if(d==255){switch(c._a8()){case 0:case 2:case 4:break;default:f=0;a._setVerticalAlignment(2,true,g);break}}else{c.rotation(0);f=0}if(e){a._setAlignment(d==255?0:1,true,g)}a._setIndent(f+this.i,true,g)},u:function(a,b,c){this.s(a,c)},o:function(a,b){var c=new $$t.iv(a,b);c.n()},$type:new $.ig.Type("SpreadsheetPaneManager_IndentHelper",$.ig.$ot)},true);$c("SpreadsheetPaneManager_MergedCellOperationInfo:iw","Object",{e:null,d:false,a:null,b:null,c:false,init:function(a,b){this.e=new $$4.q($$a4.$lr.$type,0);$.ig.$op.init.call(this);var c=new $$4.q($$a4.$lr.$type,0);var d=false;var e=new Array(b.length);$.ig.util.arrayCopyTo(b,e,0);if(a._d9()){for(var f=e.length-1;f>=0;f--){var g=e[f];var h=false;for(var i=f+1;i<e.length;i++){if(g._contains1(e[i])){h=true;break}}if(h){continue}var j=$$t.$ik._extendRangeForMergedCells1(a,g,c);
if($$t.$d1.l_op_Inequality(j,g)){e[f]=j;d=true}}}this.d=d;this.a=e;this.c=$$t.$d1._j(e);this.e=c;this.b=a},$type:new $.ig.Type("SpreadsheetPaneManager_MergedCellOperationInfo",$.ig.$ot)},true);$c("SpreadsheetPaneManager_SetBorderHelper:ix","Object",{c:null,b:0,a:0,f:false,d:false,e:false,init:function(a,b,c){$.ig.$op.init.call(this);this.c=b;this.b=c;this.a=a;this.f=c==0;this.d=(this.a&64)==64;this.e=(this.a&128)==128},g:function(a){a.bottomBorderStyle(this.b);a.bottomBorderColorInfo(this.c)},h:function(a){var b=a.diagonalBorders();var c=$b($$a4.$hd.$type,a._s())!==null?8:0;if(this.f){if(b!=1){if(this.e){if(this.d||b==5){a._setDiagonalBorders(1,true,c);a._setDiagonalBorderColorInfo(null,true,c);a._setDiagonalBorderStyle(0,true,c)}else if(b!=0){a._setDiagonalBorders(3,true,c)}}else if(b==7){a._setDiagonalBorders(5,true,c)}else if(b==3){a._setDiagonalBorders(1,true,c);a._setDiagonalBorderColorInfo(null,true,c);a._setDiagonalBorderStyle(0,true,c)}}}else{if(b==1){b=0}if(this.e){b|=5}if(this.d){b|=3}a._setDiagonalBorders(b,true,c);a._setDiagonalBorderColorInfo(this.c,true,c);a._setDiagonalBorderStyle(this.b,true,c)}},i:function(a,b,c){this.h(a._bc(c))},j:function(a){a.leftBorderStyle(this.b);a.leftBorderColorInfo(this.c)},k:function(a){a.leftBorderStyle(this.b);a.leftBorderColorInfo(this.c);a.rightBorderStyle(this.b);a.rightBorderColorInfo(this.c)},l:function(a,b,c,d){if(c){if(a.firstRow()==b._firstRowIndex()){if((this.a&2)==2){this.n(a.cellFormat())}}else if((this.a&16)==16){this.n(a.cellFormat())}if(a.lastRow()==b._lastRowIndex()){if((this.a&8)==8){this.g(a.cellFormat())}}else if((this.a&16)==16){this.g(a.cellFormat())}}if(d){if(a.firstColumn()==b._firstColumnIndex()){if((this.a&1)==1){this.j(a.cellFormat())}}else if((this.a&32)==32){this.j(a.cellFormat())}if(a.lastColumn()==b._lastColumnIndex()){if((this.a&4)==4){this.m(a.cellFormat())}}}},m:function(a){a.rightBorderStyle(this.b);a.rightBorderColorInfo(this.c)},n:function(a){a.topBorderStyle(this.b);a.topBorderColorInfo(this.c)},o:function(a){a.topBorderStyle(this.b);a.topBorderColorInfo(this.c);a.bottomBorderStyle(this.b);a.bottomBorderColorInfo(this.c)},$type:new $.ig.Type("SpreadsheetPaneManager_SetBorderHelper",$.ig.$ot)},true);$c("SortTargetResult:il","Object",{e:null,d:null,b:null,c:null,g:0,a:0,f:false,init:function(a,b,c,d,e,f){this.d=new $$a4.l0;this.c=new $$a4.j2;$.ig.$op.init.call(this);this.e=a;this.d=c;this.c=d;this.g=e;this.b=b;this.a=f;this.f=this.g>0},$type:new $.ig.Type("SortTargetResult",$.ig.$ot)},true);$c("InViewPaneInfo:im","Object",{v:0,r:null,h:null,i:null,aq:null,l:null,j:null,m:false,a:null,p:null,s:null,b:null,k:null,g:null,q:null,init:function(a){this.v=1;this.b=$$t.$d1.empty;$.ig.$op.init.call(this);this.j=a;this.l=a._bc();this.a=new $$t.ky;this.p=new $$4.h(String,$$t.$cp.$type,0);this.s=new $$4.h($$a4.$lr.$type,$$t.$cp.$type,0);this.r=new $$4.q($$t.$dz.$type,0);this.g=new $$t.kr(this.l.workbook());this.q=new $$4.h($$a4.$a2.$type,$$t.$i0.$type,0);this.k=new $$t.io(a._bc())},w:function(a){var $self=this;if(a.i){var b=a.d;var c;if(!function(){var d=$self.q.tryGetValue(b,c);c=d.p1;return d.ret}()){this.q.item(b,c=new $$t.i0(a))}else{c.d(a)}}else if(a.j!=null){var e=a.j.getEnumerator();while(e.moveNext()){var d=e.current();this.w(d)}}},x:function(a,b,c,d){var e=Math.max($$t.$dy.cp(b.item(c-1,d).d),$$t.$dy.cp(b.item(c,d).d));var f=Math.max($$t.$dy.cp(b.item(c,d-1).e),$$t.$dy.cp(b.item(c,d).e));if(a){if(e==3){b.item(c,d-1).j=-1;b.item(c,d).i=1}}else{var g=e<=1?-1:-2;b.item(c,d).i=g;b.item(c,d-1).j=-g}b.item(c-1,d).h=f==1?1:2;if(f==3){b.item(c,d).k=1}},y:function(a,b,c,d){var e=Math.max($$t.$dy.cp(b.item(c-1,d).d),$$t.$dy.cp(b.item(c,d).d));var f=Math.max($$t.$dy.cp(b.item(c,d-1).e),$$t.$dy.cp(b.item(c,d).e));if(a){if(f==3){b.item(c-1,d).h=-1;b.item(c,d).k=1}}else{var g=f<=1?-1:-2;b.item(c,d).k=g;b.item(c-1,d).h=-g}b.item(c,d-1).j=e==1?1:2;if(e==3){b.item(c,d).i=1}},z:function(){this.p.clear();this.s.clear()},aa:function(a){var $self=this;var b=a.chart();var c;if(b!=null&&function(){var d=$self.q.tryGetValue(b,c);c=d.p1;return d.ret}()){c.e()}},ab:function(a){var c=a.charts().getEnumerator();while(c.moveNext()){var b=c.current();this.aa(b)}},ac:function(){this.h=null},ad:function(){this.m=true},c:function(a,b,c,d){var $self=this;var e=null;var f=a.index()+"-"+b;if(!function(){var g=$self.p.tryGetValue(f,e);e=g.p1;return g.ret}()&&c){this.p.item(f,e=this.j._ai(a,b));e.af=this.v}else if(e!=null&&(e.af<this.v||e.ao!=e.h._c5(e.ab))){e.af=this.v;if(e.e==4||e.e==6){if(e.x!=e.h._ck(e.w,this.b.lastColumn(),$m($$a4.$cg.$type,e.e))){this.p.item(f,e=this.j._ai(a,b));e.af=this.v}}}if(e!=null&&d){this.am(e)}return e},d:function(a,b,c){var d=c;do{var e=b._c1(d,!a);if($j(e,null)){return null}d=e.value()}while(this.l._cb(d).i());if(a&&d<this.b.firstColumn()){return null}if(!a&&d>this.b.lastColumn()){return null}var f=this.c(b,d,false,true);if(f==null){if(this.l._cr(b.index(),d)!=null){return null}var g=this.k.g(b,b.index(),d);if(g._b8()){return null}var h=g._a4();if(g._b7()){return null}if(h==0){h=$$t.$dy.aq(b._getCellValue1(d),g,this.l,b,d)}switch(h){case 5:case 7:return null;case 4:if(!a){return null}break;case 2:case 6:break;case 3:if(a){return null}break;case 1:if(!a){return null}break;default:break}f=this.c(b,d,true,true)}if(a&&f.ad<c||!a&&f.ae>c){return null}return f},e:function(a,b){var $self=this;var c=this.l._cr(a,b);if(c!=null){var d;if(!function(){var e=$self.s.tryGetValue(c,d);d=e.p1;return e.ret}()){this.s.item(c,d=this.j._ah(c))}else if(d.af!=this.v){d.af=this.v;if(d.ao!=d.h._c5(d.w)){this.s.item(c,d=this.j._ah(c))}}return d}return null},t:function(a,b){var c=this.l._cn(a);var d;if(b<=0){d=c._offset()}else if(b>=100){d=c._l()}else{d=$.ig.truncate(c._offset()+c._extent()*b/100)}return this.l._fl(d,5,false)},u:function(a,b){var c=this.l._cp(a);if(b<=0){return c._offset()}else if(b>=100){return c._l()}else{return c._offset()+c._extent()*b/100}},ae:function(){var b=this.r.getEnumerator();while(b.moveNext()){var a=b.current();this.l.rows().item(a.row())._getCellValue1(a.column())}this.v++},n:function(){return this.q.count()>0},f:function(a,b){var c=this.k.g(a.h,a.ak,a.ab);return this.j._aj(a,b,c,true,true)},af:function(a,b){this.p.remove(a+"-"+b);this.k.o(a,b)},ag:function(){var b=this.j._panes().getEnumerator();while(b.moveNext()){var a=b.current();var d=a._r().getEnumerator();while(d.moveNext()){var c=d.current();c.m(null)}}},ah:function(){var b=this.j._panes().getEnumerator();while(b.moveNext()){var a=b.current();var d=a._r().getEnumerator();while(d.moveNext()){var c=d.current();c.m(null)}a._r().clear()}},ai:function(a,b,c,d,e,f,g,h,i){var j=this.k.a(g,h,i);var k=j.d;var l=j.j;if(f>=0){var m=this.k.a(d,e,f);var n=m.e;if($$t.$dy.bm(k,n)){k=n;l=m.k}}a.m(b,c,k,l)},aj:function(a,b,c,d,e,f,g,h,i){var j=this.k.a(d,e,f);var k=j.f;var l=j.l;if(h>=0){var m=this.k.a(g,h,i);var n=m.b;if($$t.$dy.bm(k,n)){k=n;l=m.h}}a.p(b,c,k,l)},ak:function(){try{this.ap()}finally{this.k.n(false)}},o:function(){var a=false;var b=this.g.e();var d=this.q.getEnumerator();while(d.moveNext()){var c=d.current();if(c.value().b(b&&this.g.f(c.key()))){a=true}}this.g.j();return a},ap:function(){this.ao();this.al();this.r.clear();var a=this.l.workbook();var b=a!=null&&a.windowOptions().objectDisplayStyle()==2;var c=!b&&this.m;var d=this.j._al._l()!=null;this.m=false;this.b=this.j._aa();this.o();this.q.clear();var f=this.j._panes().getEnumerator();while(f.moveNext()){var e=f.current();var g=e._p();g.beginUpdate();g.clear();var h=e.columnScrollRegion()._m();var i=e.rowScrollRegion()._m();var j=i.count();var k=h.count();var l=k+2;var m=j+2;var n=e._k();if(n==null){n=new $$t.ol($$t.$cp.$type,m,l)}else{n.j(m,l)}var o=e._l();if(o==null){o=new $$t.ol($$a4.$li.$type,m,l)}else{o.j(m,l)}var p=e._h();if(p==null){p=new $$t.om(m,l)}else{p.i(m,l)}if(k>0&&j>0){var q=null;var r=h.__inner[0];var s=h.__inner[k-1];var t,u;if(r._offset()>0){t=$m($$a4.$lq.$type,this.j._be(r._offset()-1))}else{t=$m($$a4.$lq.$type,null)}if(s._index()<this.b.lastColumn()){u=$m($$a4.$lq.$type,this.j._be(s._l()))}else{u=$m($$a4.$lq.$type,null)}var v=i.__inner[0];var w=i.__inner[j-1];var x,y;if(v._offset()>0){x=$m($$a4.$lq.$type,this.l._cq(v._offset()-1))}else{x=$m($$a4.$lq.$type,null)}if(w._index()<this.b.lastRow()){y=$m($$a4.$lq.$type,this.l._cq(w._l()))}else{y=$m($$a4.$lq.$type,null)}var z=new Array(l);if($$a4.$lq._l_op_Inequality_Lifted(t,$m($$a4.$lq.$type,null))){z[0]=t.value()._index()}else{z[0]=-1}for(var aa=0;aa<k;aa++){z[aa+1]=h.__inner[aa]._index()}if($$a4.$lq._l_op_Inequality_Lifted(u,$m($$a4.$lq.$type,null))){z[k+1]=u.value()._index()}else{z[k+1]=-1}var ab=new Array(m);if($$a4.$lq._l_op_Inequality_Lifted(x,$m($$a4.$lq.$type,null))){ab[0]=x.value()._index()}else{ab[0]=-1}for(var ac=0;ac<j;ac++){ab[ac+1]=i.__inner[ac]._index()}if($$a4.$lq._l_op_Inequality_Lifted(y,$m($$a4.$lq.$type,null))){ab[j+1]=y.value()._index()}else{ab[j+1]=-1}var ad=this.l.hyperlinks();var ae=$$t.$dy.a0(new $$t.d1(v._index(),r._index(),w._index(),s._index()));for(var af=ad.count()-1;af>=0;af--){var ag=ad.item(af);var ah=ag.sourceRegion()._h();if(ah._intersectsWith(ae)){var ai=e.rowScrollRegion()._cg(ah._firstRowIndex(),ah._lastRowIndex());if(ai>=0){var aj=e.columnScrollRegion()._cg(ah._firstColumnIndex(),ah._lastColumnIndex());if(aj>=0){for(var ak=ai+1;ak<m-1;ak++){if(ab[ak]>ah._lastRowIndex()){break}for(var al=aj+1;al<l-1;al++){if(z[al]>ah._lastColumnIndex()){break}if(o.item(ak,al)==null){o.item(ak,al,ag)}}}}}}}var am=this.l._fd();for(var an=0,ao=am.count();an<ao;an++){var ap=am.__inner[an];if(ae._contains2(ap.rowIndex(),ap._ab())){var aq=e.rowScrollRegion()._cf(ap.rowIndex());var ar=e.columnScrollRegion()._cf(ap.columnIndex());p.item(aq+1,ar+1,true)}}for(var as=0;as<m;as++){var at=ab[as];if(at<0){continue}var au=this.l.rows()._aj(at);if(au==null&&!this.l._d1()){continue}for(var av=0;av<l;av++){var aw=z[av];if(aw>=0&&n.item(as,av)==null){var ax=this.e(at,aw);if(ax!=null){var ay=o.item(as,av);q=ax.h._a2(aw);if(q!=null&&q.m(aw)){this.r.add(new $$t.dz(ax.ak,aw));if(ay==null){ay=ax.h._bi(aw)}}this.an(ax,this.j._e5(ay));var az=av+1;while(az<l&&z[az]<=ax.x&&z[az]>=0){az++}var a0=as+1;while(a0<m&&ab[a0]<=ax.ag&&ab[a0]>=0){a0++}for(var a1=as;a1<a0;a1++){for(var a2=av;a2<az;a2++){n.item(a1,a2,ax)}}if(ay!=null){for(var a3=as;a3<a0;a3++){for(var a4=av;a4<az;a4++){if(o.item(a3,a4)==null){o.item(a3,a4,ay)}}}}if(az<l){av=az-1}else if(av==0){as=a0-1;av=l}else{av=l}}else if(au!=null&&as>0&&as<=j){q=au._a2(aw);if(q!=null&&q.j(aw)){var a5=null;if(q.m(aw)){this.r.add(new $$t.dz(at,aw));if(o.item(as,av)==null){a5=au._bi(aw)}}n.item(as,av,ax=this.c(au,aw,true,false));this.an(ax,this.j._e5(o.item(as,av)||a5));if(a5!=null){o.item(as,av,a5)}}}}}}for(var a6=1;a6<=j;a6++){var a7=this.l.rows()._aj(ab[a6]);if(a7!=null){if(n.item(a6,1)==null){n.item(a6,0,this.d(true,a7,r._index()))}if(n.item(a6,k)==null&&$$a4.$lq._l_op_Inequality_Lifted(u,$m($$a4.$lq.$type,null))){n.item(a6,k+1,this.d(false,a7,s._index()))}}}for(var a8=1;a8<=j;a8++){for(var a9=0;a9<l;a9++){var ba=n.item(a8,a9);if(ba!=null){if(a9>0&&n.item(a8,a9-1)==ba){continue}if(a8>1&&n.item(a8-1,a9)==ba){continue}g.add(ba)}}}for(var bb=1;bb<m;bb++){for(var bc=0;bc<l;bc++){var bd=n.item(bb,bc);if(bd!=null){if(bc==0){var be=!$k(bd.al)?bd.al.value():bd.ad;for(var bf=1;bf<=k;bf++){if(h.__inner[bf-1]._index()>be||n.item(bb,bf)!=null){break}n.item(bb,bf,bd)}}else if(bc==k+1){var bg=!$k(bd.am)?bd.am.value():bd.ae;for(var bh=bc-1;bh>0;bh--){if(h.__inner[bh-1]._index()<bg||n.item(bb,bh)!=null){break}n.item(bb,bh,bd)}}else if(bd.ap!=null){var bi=!$k(bd.am)?bd.am.value():bd.ae;for(var bj=bc-1;bj>0;bj--){if(h.__inner[bj-1]._index()<bi||n.item(bb,bj)!=null){break}n.item(bb,bj,bd)}var bk=!$k(bd.al)?bd.al.value():bd.ad;for(var bl=bc+1;bl<=k;bl++){if(h.__inner[bl-1]._index()>bk||n.item(bb,bl)!=null){break}n.item(bb,bl,bd)}}}}}var bm=e._w();if(bm==null){bm=new $$t.d4(m,l)}else{bm.h(m,l)}e._w(bm);var bn=null;for(var bo=0;bo<m;bo++){var bp=ab[bo];var bq=bp>=0?this.l.rows()._aj(bp):null;for(var br=0;br<l;br++){var bs=false;var bt=n.item(bo,br);var bu=bt!=null&&bt.r();var bv=z[br];var bw=null;if(bp>=0){if(bu){var bx=n.item(bo,br);if(bo>0&&bx==n.item(bo-1,br)){bm.g(bo-1,br,bo,br);bs=true}else if(br>0&&bx==n.item(bo,br-1)){bm.g(bo,br-1,bo,br);bs=true}else{var by=bx.ak;var bz=bx.w;var b0=by==bp?bq:this.l.rows()._aj(by);bw=this.k.a(b0,by,bz)}}if(!bs&&bv>=0){if(bw==null){bw=this.k.a(bq,bp,bv)}var b1=this.k.c(bp,bv);if(b1!=null){bm.k(bo,br,b1.dataBarInfo())}bm.i(bo,br,bw.g);var b2=bw.a;if(b2!=0){bm.l(bo,br,b2,bw.c,bw.i)}}if(br>0){if(bv<0){var b3=this.k.a(bq,bp,z[br-1]);bm.m(bo,br,b3.e,b3.k)}else if(bu==false||bv==bt.ab){if(bt==null||bt!=n.item(bo,br-1)){this.ai(bm,bo,br,bq,bp,z[br-1],bq,bp,bv)}}}if(bo>0){if(bu==false||bp==bt.ak){if(z[br]>=0){this.aj(bm,bo,br,bq,bp,z[br],bn,ab[bo-1],z[br])}}}}else if(bo>0&&bv>=0){var b4=this.k.a(bn,ab[bo-1],bv);bm.p(bo,br,b4.b,b4.h)}}bn=bq}for(var b5=1;b5<m;b5++){if(ab[b5]==0){continue}for(var b6=1;b6<l;b6++){if(z[b6]==0){continue}var b7,b8;var b9=bm.item(b5,b6).d;var ca=bm.item(b5-1,b6).d;var cb=bm.item(b5,b6-1).e;var cc=bm.item(b5,b6).e;if(b9==ca&&cb==cc&&ca==cb){if(b9==0){continue}else{b8=b7=true}}else{var cd=0;if(b9==6){cd++}if(cb==6){cd++}if(cc==6){cd++}if(ca==6){cd++}if(cd>1){if(cb==6){b8=b7=true}else if(ca==6){b8=true;b7=false}else if(b9==6){b8=b7=false}else{b8=false;b7=true}}else if(cd==1){if(b9==6||ca==6){if(cb==0&&cc==0){b7=false;b8=b9==0||ca!=0}else{var ce=$$t.$dy.cq(cb);var cf=$$t.$dy.cq(cc);b7=true;b8=ce>=cf}}else{if(b9==0&&ca==0){b7=true;b8=cc==0||cb!=0}else{var cg=$$t.$dy.cq(ca);var ch=$$t.$dy.cq(b9);b7=false;b8=cg>=ch}}}else{var ci=$$t.$dy.cq(cb);var cj=$$t.$dy.cq(cc);var ck=$$t.$dy.cq(ca);var cl=$$t.$dy.cq(b9);var cm=ci>=cj;var cn=ck>=cl;b7=(cm?ci:cj)>=(cn?ck:cl);b8=b7?cm:cn}}if(b7){$$t.$im.x(b8,bm,b5,b6)}else{$$t.$im.y(b8,bm,b5,b6)}}}var co=e._r();var cp=new $$4.h($$a4.$mx.$type,$$t.$kq.$type,0);co.beginUpdate();var cr=co.getEnumerator();while(cr.moveNext()){var cq=cr.current();cp.item(cq.d,cq);if(c){cq.p()}}co.clear();if(b==false&&this.l.shapes().count()>0){var cs=30;var ct=i.__inner[0]._offset()-cs;var cu=w._l()+cs;var cv=this.l._fl(h.__inner[0]._offset(),5,false)-cs;var cw=this.l._fl(s._l(),5,false)+cs;var cy=this.l.shapes().getEnumerator();while(cy.moveNext()){var cx=cy.current();if(!cx.visible()){continue}if(!$$t.$dy.a4(cx,d)){continue}if($j($$t.$ik._e3(cx._ah().m(),cx._ad().m(),this.l),null)){continue}if($j($$t.$ik._e4(cx._ah().o(),cx._ad().o(),this.l),null)){continue}var cz=$$t.$dy.b9(cx);var c0=this.t(cx._ah().m(),cx._topLeftCornerPosition$i().__x)-cz;var c1=this.t(cx._ad().m(),cx._bottomRightCornerPosition$i().__x)+cz;var c2=this.u(cx._ah().o(),cx._topLeftCornerPosition$i().__y)-cz;var c3=this.u(cx._ad().o(),cx._bottomRightCornerPosition$i().__y)+cz;if(cx._b6()%90!=0){var c4=$$a4.$k.bc(cx._b6());this.a.g(c0,c2,c1,c3,cx._b6(),c4);if(this.a.b(cv,ct,cw,cu)){continue}}else{if(c1<cv||c0>cw){continue}if(c3<ct||c2>cu){continue}}var c5;if(!function(){var c6=cp.tryGetValue(cx,c5);c5=c6.p1;return c6.ret}()){c5=new $$t.kq(cx,null)}else{cp.remove(cx)}c5.r(d);this.w(c5);co.add(c5)}}co.endUpdate()}else{var c6=e._r();c6.clear()}e._k(n);e._l(o);e._h(p);g.endUpdate();e._aa(this.h);e._ac(this.i)}},al:function(){var a=this.l._je();var b=$$ak.$c.p(this.aq);if(b!=a){this.aq=a==null?null:new $$6.z(a);this.i=new $$t.ja(a,this.l.__dh)}},am:function(a){if(a!=null&&a.ao!=null&&a.c==null){var b=this.l._ck(a.h,a.ak,a.ab);this.f(a,this.j._e5(b))}},an:function(a,b){if(a!=null&&a.ao!=null&&a.c==null){this.f(a,b)}},ao:function(){var a=this.l.displayOptions();if(!a.showGridlines()){this.h=null}else if(this.h==null){var b=a._a2()?$m($$a.$ax.$type,null):$m($$a.$ax.$type,a._gridlineColor$i());this.h=new $$t.i9(b)}},$type:new $.ig.Type("InViewPaneInfo",$.ig.$ot)},true);$c("InViewPaneInfo_ChartInfo:i0","Object",{c:null,a:false,init:function(a){$.ig.$op.init.call(this);this.c=a},d:function(a){var b=$b($$4.$x.$type.specialize($$t.$kq.$type),this.c);if(b==null){b=new $$4.x($$t.$kq.$type,0);b.add(this.c);this.c=b}b.add(a)},e:function(){this.a=true},f:function(a,b,c){if(c){a._h=true}if(b){a._g=true}if(b||c){var d=a;while(d!=null){d._n++;d=d.b}}},b:function(a){if(this.a||a){var b=$b($$t.$kq.$type,this.c);if(b!=null){$$t.$i0.f(b,a,this.a)}else{var c=$b($$4.$x.$type.specialize($$t.$kq.$type),this.c);for(var d=0;d<c.count();d++){b=c.__inner[d];$$t.$i0.f(b,a,this.a)}}}return this.a||a},$type:new $.ig.Type("InViewPaneInfo_ChartInfo",$.ig.$ot)},true);$c("SpreadsheetViewCache:io","Object",{h:null,k:null,i:null,f:null,j:null,l:0,m:0,d:null,init:function(a){$.ig.$op.init.call(this);this.f=a;this.h=new $$4.h(String,$$t.$d2.$type,0);this.i=new $$4.h($$a4.$o.$type,$$t.$d2.$type,2,$$t.$kz._a);this.k=new $$4.h(String,$$a4.$xd.$type,0);this.j=new $$4.h(String,$$a4.$o.$type,0);this.d=new $$a4.g9($$a4.$l0.$type,a);this.m=-1},n:function(a){this.h.clear();this.i.clear();this.j.clear();if(a){this.k.clear();this.d.ab();this.l++}},e:function(a,b,c){var d=null;if(b!=null){switch(a){case 8:d=b.diagonalBorderColorInfo();break;case 134217728:d=b.topBorderColorInfo();break;case 524288:d=b.leftBorderColorInfo();break;case 4:d=b.bottomBorderColorInfo();break;case 4194304:d=b.rightBorderColorInfo();break}}if($$a4.$ah.l_op_Equality(d,null)){d=c._da(a,null)}return d},b:function(a,b,c){var d=-1;if(b!=null){switch(a){case 32:d=b.diagonalBorderStyle();break;case 134217728:d=b.topBorderStyle();break;case 524288:d=b.leftBorderStyle();break;case 4:d=b.bottomBorderStyle();break;case 4194304:d=b.rightBorderStyle();break}}if(d==-1){d=$g(c._da(a,null))}return d},g:function(a,b,c){var $self=this;var d;var e=b+"-"+c;if(!function(){var f=$self.j.tryGetValue(e,d);d=f.p1;return f.ret}()){d=this.f._b4(a,c);var f=this.f._b5(d,b,c);if(f!=null){this.j.item(e,d=f)}}return d},c:function(a,b){var $self=this;var c=null;if(this.f.conditionalFormats().count()>0){this.p();if(this.d.o(a,b)){var d=a+"-"+b;if(!function(){var e=$self.k.tryGetValue(d,c);c=e.p1;return e.ret}()){this.k.item(d,c=this.f._getCellConditionalFormat1(a,b))}if(c!=null&&c==$$a4.$xd._a){c=null}}}return c},a:function(a,b,c){var $self=this;var d=b+"-"+c;var e=null;if(function(){var f=$self.h.tryGetValue(d,e);e=f.p1;return f.ret}()){return e}var f=this.c(b,c);var g=this.g(a,b,c);if(f==null){if(function(){var h=$self.i.tryGetValue(g,e);e=h.p1;return h.ret}()){this.h.item(d,e);return e}}e=new $$t.d2;var h=null;if(f!=null&&f.cellFormat()!=null){h=f.cellFormat()}e.g=h==null||h.fill()==null?g._ar():h.fill();if($$t.$dy.bc(e.g)){e.g=null}else{e.g=e.g._c(this.f.workbook())}e.a=$$t.$dy.m(h==null||h.diagonalBorderStyle()==-1?$g(g._da(16,null)):h.diagonalBorders());if(e.a!=0){e.c=$$t.$io.b(32,h,g);e.i=$$t.$io.e(8,h,g)._getResolvedColor1(this.f.workbook())}else{e.i=$$a4.$k.gw}e.d=$$t.$io.b(524288,h,g);e.j=e.d==0?$$a4.$k.gw:$$t.$io.e(262144,h,g)._getResolvedColor1(this.f.workbook());e.f=$$t.$io.b(134217728,h,g);e.l=e.f==0?$$a4.$k.gw:$$t.$io.e(67108864,h,g)._getResolvedColor1(this.f.workbook());e.e=$$t.$io.b(4194304,h,g);e.k=e.e==0?$$a4.$k.gw:$$t.$io.e(2097152,h,g)._getResolvedColor1(this.f.workbook());e.b=$$t.$io.b(4,h,g);e.h=e.b==0?$$a4.$k.gw:$$t.$io.e(2,h,g)._getResolvedColor1(this.f.workbook());if(h==null){this.i.item(g,e)}this.h.item(d,e);return e},o:function(a,b){if(this.k.count()>0){this.k.remove(a+"-"+b)}},p:function(){if(this.m!=this.l){this.m=this.l;this.d.ab();var b=this.f.conditionalFormats().getEnumerator();while(b.moveNext()){var a=b.current();for(var c=0;c<a.regions().count();c++){var d=a.regions().item(c);this.d.y(d,d._h())}}}},$type:new $.ig.Type("SpreadsheetViewCache",$.ig.$ot)},true);$c("DisposableAction:is","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);this._a=a},dispose:function(){this._a=null},_execute:function(){if(this._a!=null){var a=this._a;this._a=null;a()}},_isPending:function(){return this._a!=null},$type:new $.ig.Type("DisposableAction",$.ig.$ot,[$$0.$au.$type])},true);$c("spreadsheet.SpreadsheetColumnScrollRegion:i2","spreadsheet.SpreadsheetScrollRegion",{init:function(){$$t.$i6.init.call(this)},_a0:function(){return this._ab()!=null?this._ab()._bi():null},_a2:function(){return this._ab()!=null?this._ab()._bf():null},_aw:function(){return false},$type:new $.ig.Type("spreadsheet.SpreadsheetColumnScrollRegion",$$t.$i6.$type)},true);$c("spreadsheet.SpreadsheetRowScrollRegion:i4","spreadsheet.SpreadsheetScrollRegion",{init:function(){$$t.$i6.init.call(this)},_a0:function(){return this._ab()!=null?this._ab()._bj():null},_a2:function(){return this._ab()!=null?this._ab()._bg():null},_aw:function(){return true},$type:new $.ig.Type("spreadsheet.SpreadsheetRowScrollRegion",$$t.$i6.$type)},true);$c("ScrollInfo:a1","Object",{_f:false,_k:null,_c:null,init:function(){this._d=true;this._e=false;this._l=0;this._ag=$m(Number,null);this._m=0;this._n=0;this._o=0;this._a=1;this._p=0;this._q=1;this._r=0;$.ig.$op.init.call(this);this._c=new $$ak.m},_d:false,_computedScrollBarIsEnabled:function(a){if(arguments.length===1){if(a!=this._d){this._d=a;this._al("ComputedScrollBarIsEnabled")}return a}else{return this._d}},_e:false,_computedScrollBarVisibility:function(a){if(arguments.length===1){if(a!=this._e){this._e=a;this._al("ComputedScrollBarVisibility")}return a}else{return this._e}},_l:0,_extent:function(a){if(arguments.length===1){if(a!=this._l){this._l=a;this._al("Extent")}return a}else{return this._l}},_i:function(){return true},_ag:$m(Number,null),_largeChange:function(a){if(arguments.length===1){if($l(a,this._ag)){this._ag=a;this._al("LargeChange");this._al("LargeChangeResolved")}return a}else{return this._ag}},_largeChangeResolved:function(){return!$k(this._ag)?this._ag.value():this._viewport()},_m:0,_maximum:function(){return this._m},_n:0,_minimum:function(a){if(arguments.length===1){if(a!=this._n){this._n=a;this._al("Minimum");this._ai()}return a}else{return this._n}},_o:0,_offset:function(a){if(arguments.length===1){if(a!=this._o){a=Math.max(Math.min(this._maximum(),a),this._minimum());if(a!=this._o){this._o=a;this._al("Offset")}}return a}else{return this._o}},_a:0,_scrollBarVisibility:function(a){if(arguments.length===1){if(a!=this._a){this._a=a;this._al("ScrollBarVisibility");this._as()}return a}else{return this._a}},_p:0,_scrollableExtent:function(a){if(arguments.length===1){if(a!=this._p){this._p=a;this._al("ScrollableExtent");this._ai()}return a}else{return this._p}},_q:0,_smallChange:function(a){if(arguments.length===1){if(a!=this._q){this._q=a;this._al("SmallChange")}return a}else{return this._q}},_r:0,_viewport:function(a){if(arguments.length===1){if(a!=this._r){this._r=a;this._al("Viewport");if($j(this._ag,null)){this._al("LargeChangeResolved")}}return a}else{return this._r}},_ai:function(){try{var a=this._p+this._n;if(a!=this._m){this._m=a;this._al("Maximum")}}catch(b){this._m=this._p+this._n}},_s:function(a){var b=this._offset()+this._w(a);return Math.max(this._minimum(),Math.min(this._maximum(),b))},_u:function(){return $$t.$a1._v(this._o,this._n,this._l,this._r)},_v:function(a,b,c,d){if($$ak.$c.e(c,d)){return(a-b)/(c-d)*100}return-1},_w:function(a){var b=0;switch(a){case 1:{b=-this._smallChange();break}case 4:{b=this._smallChange();break}case 0:{b=-this._largeChangeResolved();break}case 3:{b=this._largeChangeResolved();break}}return b},_x:function(){return $$t.$a1._y(this._l,this._r)},_y:function(a,b){if($$ak.$c.h(b,a)){return b/a*100}return 100},_initialize:function(a,b,c){var d=this._j();try{this._extent(Math.max(b,0));this._viewport(Math.max(a,0));this._scrollableExtent(Math.max(this._extent()-this._viewport(),0));this._offset(Math.max(Math.min(this._maximum(),c),this._minimum()));this._computedScrollBarIsEnabled($$ak.$c.h(this._viewport(),this._extent()));this._as()}finally{if(d){this._am()}}},_ak:function(a){var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}this._c.onPropertyValueChanged(this,a,null)},_al:function(a){if(this._f){if(this._k==null){this._k=new $$4.x(String,0)}this._k.add(a);return}this._ak(a)},_am:function(){this._f=false;var a=this._k;this._k=null;var b=a==null?0:a.count();if(b==1){this._al(a.__inner[0])}else if(b>1){this._al(String.empty())}},_ap:function(a){this._aq(this._o+a)},_an:function(a){this._ao(a,this._offset())},_ao:function(a,b){this._aq(b+this._w(a))},_aq:function(a){this._offset(Math.max(this._minimum(),Math.min(this._maximum(),a)))},_ar:function(a){if(a<0||a>100){throw new $$6.f(0)}if($$ak.$c.e(this._l,this._r)){this._aq((this._l-this._r)*a/100+this._n)}},_j:function(){if(this._f){return false}this._f=true;return true},_as:function(){var a=false;switch(this._a){case 2:case 0:break;case 1:if($$ak.$c.h(this._viewport(),this._extent())){a=true}break;case 3:a=true;break}this._computedScrollBarVisibility(a)},propertyChanged:null,addListener:function(a,b){this._c.b(a,b)},removeListener:function(a){this._c.d(a)},$type:new $.ig.Type("ScrollInfo",$.ig.$ot,[$$0.$b6.$type,$$ak.$i.$type])},true);$c("ExtendedRangeScrollInfo:a4","ScrollInfo",{init:function(){$$t.$a1.init.call(this)},_av:0,_aw:$m(Number,null),_aq:function(a){if(!this._isRangeChangeSuspended()){a=this._au(a)}$$t.$a1._aq.call(this,a)},_isRangeChangeSuspended:function(){return this._av>0},_ax:function(){return this._aw},_ay:function(){this._av--;if(this._av==0){this._aw=$m(Number,null);this._ak("IsRangeChangeSuspended");this._au(this._offset())}},_az:function(a){this._offset(a)},_a0:function(a){this._av++;if(this._av==1){this._aw=$m(Number,!$k(a)?a.value():this._offset());this._ak("IsRangeChangeSuspended")}},_au:function(a){},$type:new $.ig.Type("ExtendedRangeScrollInfo",$$t.$a1.$type)},true);$c("SpreadsheetScrollInfo:i5","ExtendedRangeScrollInfo",{_a1:null,_a4:null,_a5:null,_a6:0,init:function(a){$$t.$a4.init.call(this);$$ak.$c.z(a,"owner");this._a1=a},_ao:function(a,b){if(this._a4!=null&&this._a4(this._a1,a,b)){return}$$t.$a4._ao.call(this,a,b)},_az:function(a){this._au(a)},_au:function(a){if(this._a5!=null){return this._a5(this._a1,a)}return a},_owner:function(){return this._a1},_usePixelLevelScrolling:function(){return this._a6>0},_a7:function(){this._a6++},_a8:function(){this._a6--;if(this._a6==0){this._offset(this._au(this._offset()))}},$type:new $.ig.Type("SpreadsheetScrollInfo",$$t.$a4.$type)},true);$c("PageStartScrollCache:i7","Object",{c:0,a:0,b:0,d:0,init:function(a,b,c,d){$.ig.$op.init.call(this);this.c=a;this.a=b;this.b=c;this.d=d},$type:new $.ig.Type("PageStartScrollCache",$.ig.$ot)},true);$c("SpreadsheetOwnerState:i8","PropertyChangeNotifierExtended",{init:function(){$$ak.$s.init.call(this)},_q:false,_n:null,_u:null,_v:null,_i:null,_r:false,_m:null,_g:null,_k:null,_l:function(a){if(arguments.length===1){if(this._k!=a){this._k=a;this.a("ChartAdapter")}return a}else{return this._k}},_getCellText:function(a){if(arguments.length===1){if(this._u!=a){this._u=a;this.a("GetCellText")}return a}else{return this._u}},_s:function(a){if(arguments.length===1){if(this._q!=a){this._q=a;this.a("IsInEditMode")}return a}else{return this._q}},_afterPaneManagerLayout:function(a){if(arguments.length===1){if(this._m!=a){this._m=a;this.a("AfterPaneManagerLayout")}return a}else{return this._m}},_passwordNeededAction:function(a){if(arguments.length===1){if(this._v!=a){this._v=a;this.a("PasswordNeededAction")}return a}else{return this._v}},_j:function(a){if(arguments.length===1){if(this._i!=a){this._i=a;this.a("RenderCache")}return a}else{return this._i}},_spreadsheet:function(a){if(arguments.length===1){if(this._g!=a){this._g=a;this.a("Spreadsheet")}return a}else{return this._g}},_usesLogicalPixels:function(a){if(arguments.length===1){if(this._r!=a){this._r=a;this.a("UsesLogicalPixels")}return a}else{return this._r}},_visitHyperlinkAction:function(a){if(arguments.length===1){if(this._n!=a){this._n=a;this.a("VisitHyperlinkAction")}return a}else{return this._n}},$type:new $.ig.Type("SpreadsheetOwnerState",$$ak.$s.$type)},true);$c("SpreadsheetGridLinePen:i9","Object",{a:$m($$a.$ax.$type,null),init:function(a){$.ig.$op.init.call(this);this.a=a},b:function(){return this.a},$type:new $.ig.Type("SpreadsheetGridLinePen",$.ig.$ot)},true);$c("SpreadsheetImageBackground:ja","Object",{d:null,a:null,init:function(a,b){$.ig.$op.init.call(this);this.d=a;this.a=b},e:function(){return this.d},c:function(){return this.d.__k},b:function(){return this.d.__j},$type:new $.ig.Type("SpreadsheetImageBackground",$.ig.$ot)},true);$c("SpreadsheetRenderCache_DisposableCache:jc","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);this._a=a},dispose:function(){this._a.aw()},$type:new $.ig.Type("SpreadsheetRenderCache_DisposableCache",$.ig.$ot,[$$0.$au.$type])},true);$c("SpreadsheetRenderCache_MeasureTextMetricsProvider:jd","TextMetricsProviderBase",{_h:null,init:function(a,b){$$a4.$ic.init.call(this,b);this._h=a},_getDefaultRowHeight:function(a){return this._h._getDefaultRowHeight(a)},_measureText:function(a,b,c,d,e){return this._h._measureText(a,b,c,d,e)},_getUnderlineHeight:function(a){return this._h._getUnderlineHeight(a)},_isDisplayProvider:function(){return this._h._isDisplayProvider()},toString:function(){return this._h.toString()},dispose:function(){$$a4.$ic.dispose.call(this)},$type:new $.ig.Type("SpreadsheetRenderCache_MeasureTextMetricsProvider",$$a4.$ic.$type)},true);$c("SpreadsheetTextWithPadding:jf","SpreadsheetText",{d:null,e:null,init:function(a,b){$$t.$je.init.call(this);this.d=a;this.e=b},b:function(){return Math.max(this.d.b(),this.e.b())},c:function(){return this.d.c()+this.e.c()},a:function(){return true},$type:new $.ig.Type("SpreadsheetTextWithPadding",$$t.$je.$type)},true);$c("CellRegionMapBase:jg","Object",{init:function(){$.ig.$op.init.call(this)},f:function(a){var b=this.b();for(var c=0;c<b.length;c++){if(b[c]._contains1(a)){return true}}return false},d:function(){},g:function(a){},h:function(a){},e:function(a,b){var c=this.b();for(var d=0;d<c.length;d++){if(c[d]._contains2(a,b)){return c[d]}}return $$a4.$l0._b},j:function(a){},i:function(a){},a:function(){},c:function(){},b:function(){},l:function(){},k:function(){},$type:new $.ig.Type("CellRegionMapBase",$.ig.$ot)},true);$c("CellRegionMapSingle:jh","CellRegionMapBase",{p:null,r:0,q:0,n:null,m:null,o:null,init:function(a){this.p=new $$a4.l0;$$t.$jg.init.call(this);this.p=a;this.r=a._width();this.q=a._height();this.n=[new $$t.i(1,a._firstRowIndex(),a._lastRowIndex())];this.m=[new $$t.i(1,a._firstColumnIndex(),a._lastColumnIndex())];this.o=[a]},f:function(a){return this.p._contains1(a)},g:function(a){return this.p._firstColumnIndex()+a%this.r},h:function(a){return this.p._firstRowIndex()+a%this.q},e:function(a,b){return this.p._contains2(a,b)?this.p:$$a4.$l0._b},j:function(a){return 0},i:function(a){return 0},a:function(){return this.m},c:function(){return this.n},b:function(){return this.o},l:function(){return this.r},k:function(){return this.q},d:function(){return this},$type:new $.ig.Type("CellRegionMapSingle",$$t.$jg.$type)},true);$c("CellRegionMapMany:ji","CellRegionMapBase",{_q:null,_m:null,_n:null,_s:0,_r:0,_p:null,_o:null,init:function(a){$$t.$jg.init.call(this);if(a==null){throw new $$6.e(1)}if(a.length<2){throw new $$6.d(0)}var b=new $$4.x($$a4.$l0.$type,1,a);b.sort1(this);this._q=b.toArray();var c=0;var d=this._q[0]._firstRowIndex();for(var e=0;e<this._q.length;e++){if(this._q[e]._firstRowIndex()==d){c++}else{break}}if(this._q.length%c!=0){throw new $$t.jj}for(var f=0;f<a.length;f++){var g=f%c;if(f!=g){if(this._q[f]._firstColumnIndex()!=this._q[g]._firstColumnIndex()||this._q[f]._lastColumnIndex()!=this._q[g]._lastColumnIndex()){throw new $$t.jj}}else if(f>0&&this._q[f]._firstColumnIndex()<=this._q[f-1]._lastColumnIndex()){throw new $$t.jj}if(f%c!=0){if(this._q[f]._firstRowIndex()!=this._q[f-1]._firstRowIndex()||this._q[f]._lastRowIndex()!=this._q[f-1]._lastRowIndex()){throw new $$t.jj}}else if(f>0&&this._q[f]._firstRowIndex()<=this._q[f-1]._lastRowIndex()){throw new $$t.jj}}var h=$a(this._q.length,c);this._m=new Array(c);this._o=new Array(c);for(var i=0;i<c;i++){var j=this._q[i];this._m[i]=j._width();this._o[i]=new $$t.i(1,j._firstColumnIndex(),j._lastColumnIndex())}this._n=new Array(h);this._p=new Array(h);for(var k=0;k<h;k++){
var l=this._q[k*c];this._n[k]=l._height();this._p[k]=new $$t.i(1,l._firstRowIndex(),l._lastRowIndex())}this._s=$$t.$ji._u(this._m);this._r=$$t.$ji._u(this._n)},g:function(a){var $self=this;var b=a%this._s;var c;var d=function(){var e=$$t.$ji._t($self._m,b,c);c=e.p2;return e.ret}();return this._q[d]._firstColumnIndex()+c},h:function(a){var $self=this;var b=a%this._r;var c;var d=function(){var e=$$t.$ji._t($self._n,b,c);c=e.p2;return e.ret}()*this._m.length;return this._q[d]._firstRowIndex()+c},j:function(a){var b=this._q[a];var c=0;var f=this._p;for(var e=0;e<f.length;e++){var d=f[e];if(d._i==b._firstRowIndex()){break}else{c+=d._h-d._i}}return c},i:function(a){var b=this._q[a];var c=0;var f=this._o;for(var e=0;e<f.length;e++){var d=f[e];if(d._i==b._firstColumnIndex()){break}else{c+=d._h-d._i+1}}return c},a:function(){return this._o},c:function(){return this._p},b:function(){return this._q},l:function(){return this._s},k:function(){return this._r},d:function(){var a=new $$a4.l0(1,this._p[0]._i,$$5.$e.ah($$t.$i.$type,this._p)._h,this._o[0]._i,$$5.$e.ah($$t.$i.$type,this._o)._h);return new $$t.jh(a)},_t:function(a,b,c){for(var d=0;d<a.length;d++){if(b<a[d]){c=b;return{ret:d,p2:c}}b-=a[d]}c=0;return{ret:0,p2:c}},_u:function(a){var b=0;for(var c=0;c<a.length;c++){b+=a[c]}return b},compare:function(a,b){var c=$x(a._firstRowIndex(),b._firstRowIndex());if(c==0){c=$x(a._firstColumnIndex(),b._firstColumnIndex())}return c},$type:new $.ig.Type("CellRegionMapMany",$$t.$jg.$type,[$$6.$ad.$type.specialize($$a4.$l0.$type)])},true);$c("InvalidMultipleRangeSelection:jj","Error",{init:function(){$$0.$n.init.call(this,0)},$type:new $.ig.Type("InvalidMultipleRangeSelection",$$0.$n.$type)},true);$c("WorkbookSerializationProviderBase:kd","Object",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$kd.init1.call(this,1,b,b)},init1:function(a,b,c){$.ig.$op.init.call(this);this._e=new $$4.g(String,1,b||$$t.$kd.a);this._f=new $$4.g(String,1,c||$$t.$kd.a)},_e:null,_f:null,b:function(a,b,c,d,e){if(c==null&&$.ig.util.isNaN(b)){return true}var f=d.getCellFormula(e);var g=d.worksheet();var h=g.workbook();var i=$$0.$cf.invariantCulture();if(f!=null){if(f._as()){g._h3(f,false);f._bt(h)}var j=f._bk(h.cellReferenceMode(),i).substr(1);if(c!=null){f=$$a4.$ed._parse4("=("+j+")"+$$t.$kd.i(a)+"("+c._bk(h.cellReferenceMode(),i).substr(1)+")",h.cellReferenceMode(),i)}else{f=$$a4.$ed._parse4("=("+j+")"+$$t.$kd.i(a)+$y(b,i),h.cellReferenceMode(),i)}}else{var k=$$t.$kd.g(h,d._getCellValue1(e));if($.ig.util.isNaN(k)){return true}if(c!=null){f=$$a4.$ed._parse4("="+$y(k,i)+$$t.$kd.i(a)+"("+c._bk(h.cellReferenceMode(),i).substr(1)+")",h.cellReferenceMode(),i)}else{var l;switch(a){case 1:l=k+b;break;case 2:l=k-b;break;case 3:l=k*b;break;case 4:if(b==0){l=$$a4.$dk.divisionByZero()}else{l=k/b}break;default:return false}d.setCellValue(e,l);return true}}f._bp(d,e,0);return true},c:function(a){},i:function(a){switch(a){default:case 0:return"";case 1:return"+";case 2:return"-";case 4:return"/";case 3:return"*"}},g:function(a,b){var c;if(b==null){c=0}else if($$a4.$k.a9(b)||$b($$0.$s.$type,b)!==null){if(!function(){var d=$$a4.$k.bz(a,b,c);c=d.p2;return d.ret}()){c=NaN}}else{c=NaN}return c},j:function(a){var c=this._e.getEnumerator();while(c.moveNext()){var b=c.current();if(a.e(b)){return b}}return null},d:function(a){},h:function(a,b){var c=$m($$a4.$l0.$type,null);for(var e=0;e<a.length;e++){var d=a[e];var f=d.displayOptions()._af();var g=f.a(d.displayOptions()._z());if(g==null){g=$$a4.$mw.c(d.displayOptions()._z());f.b().add(g)}if(g._f>=b.length||false==b[g._f]._contains(g._b)||false==b[g._f].equals(g.d().item(g._f))){var h=g._f=Math.min(g._f,b.length-1);g._b=new $$a4.j2(1,b[h]._firstRowIndex(),b[h]._firstColumnIndex())}g.d().clear();for(var i=0;i<b.length;i++){var j=b[i];var k=d._hi(j,null);j=k.p0;if($$a4.$l0._l_op_Equality_Lifted(c,$m($$a4.$l0.$type,null))&&$$a4.$l0._l_op_Inequality(j,b[i])){c=$m($$a4.$l0.$type,b[i])}g.d().add(j)}}return c},$type:new $.ig.Type("WorkbookSerializationProviderBase",$.ig.$ot)},true);$c("ExcelWorkbookSerializationProvider:jo","WorkbookSerializationProviderBase",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$kd.init.call(this,0,b)},init1:function(a,b,c){$$t.$kd.init1.call(this,1,b,c)},q:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=f;if(r){var s=k._de(n,q);if(s!=null&&!c.contains(s)){r=false}}var t=k._b4(o,q);if(r){t=k._b5(t,n,q)||t}if(!g){var u=m.worksheet()._b4(m,p);var v=l;if(d){v|=32640}if(!$$a4.$kl._y(u,t,v)){if(!e||u.style().name()==t.style().name()){return}}}var w=m._bc(p);$$t.$jo.v(a,b,d,e,g,h,i,j,l,t,w,true)},s:function(a,b,c,d,e,f,g){var h=$$a4.$zk.bx(e._y()).toString();if(f&&e.conditionalFormats().count()>0){$$t.$dy.ee(e,a)}if(d.conditionalFormats().count()>0){var i=new $$a4.lw(e);var j=c.l();var k=c.k();var l=c.b();var m=0;var o=d.conditionalFormats().getEnumerator();while(o.moveNext()){var n=o.current();if(!n._ab(l)){continue}i.clear();var p=n.regions();for(var q=0;q<l.length;q++){var r=l[q];var s=c.j(q);var t=c.i(q);for(var u=0;u<p.count();u++){if(p.item(u)._t(r._firstRowIndex(),r._firstColumnIndex(),r._lastRowIndex(),r._lastColumnIndex())){var v=p.item(u)._h();var w=new $$a4.l0(1,Math.max(r._firstRowIndex(),v._firstRowIndex()),Math.min(r._lastRowIndex(),v._lastRowIndex()),Math.max(r._firstColumnIndex(),v._firstColumnIndex()),Math.min(r._lastColumnIndex(),v._lastColumnIndex()));var x=w._firstColumnIndex()-r._firstColumnIndex()+t;var y=w._firstRowIndex()-r._firstRowIndex()+s;var z=w._width();var aa=w._height();var ab=j;var ac=k;for(var ae=0;ae<a.length;ae++){var ad=a[ae];var af=ad._width();var ag=ad._height();for(var ah=0,ai=$a(af,ab);ah<ai;ah++){for(var aj=0,ak=$a(ag,ac);aj<ak;aj++){var al=ad._firstRowIndex()+aj*ac+y;var am=ad._firstColumnIndex()+ah*ab+x;var an=new $$a4.lz(e,al,am,al+aa-1,am+z-1);i._add(an)}}}}}}var ao=n._g(i,b);ao._a9(g);e.conditionalFormats()._ax(m,ao);m++}}},r:function(a,b,c,d){if(d._eu().count()>0){var e=new $$4.x($$a4.$kd.$type,0);var g=d._eu().getEnumerator();while(g.moveNext()){var f=g.current();for(var h=0;h<a.length;h++){if(a[h]._contains(f.key())){e.add(f.value());break}}}var j=e.getEnumerator();while(j.moveNext()){var i=j.current();i.cell().comment(null)}}if(c._eu().count()>0){var k=d.workbook();var l=new $$4.x($$a4.$kd.$type,0);var m=b.l();var n=b.k();var o=b.b();var q=c._eu().getEnumerator();while(q.moveNext()){var p=q.current();for(var r=0;r<o.length;r++){var s=o[r];if(s._contains(p.key())){var t=b.j(r);var u=b.i(r);var v=p.value();var w=p.key().o()-s._firstRowIndex()+t;var x=p.key().m()-s._firstColumnIndex()+u;var y=m;var z=n;for(var ab=0;ab<a.length;ab++){var aa=a[ab];var ac=aa._width();var ad=aa._height();for(var ae=0,af=$a(ac,y);ae<af;ae++){for(var ag=0,ah=$a(ad,z);ag<ah;ag++){var ai=aa._firstRowIndex()+ag*z+w;var aj=aa._firstColumnIndex()+ae*y+x;var ak=new $$a4.kd;ak.author(v.author());ak.visible(v.visible());ak._ec(v._ec());if(v.text()!=null){ak.text(new $$a4.dq(k,$b($$a4.$ds.$type,v.text()._m().g(k))))}d.rows().item(ai).setCellComment(aj,ak)}}}}}}}},t:function(a,b,c,d,e,f){var g=b._bp();var h=g.d()._am();if(h&&(!d||!e)){c.formatOptions(c.formatOptions()&~4)}else{var i;var j=a.tryGetValue(g.d(),i);i=j.p1;var k=i!=null;if(i==null){if(d&&h){if($$t.$jo.k==null){i=$$t.$jo.k=new $$t.or(b)}else{$$t.$jo.k._b(b);i=$$t.$jo.k}}else{i=g}}c._a1(i,false,f);if(!k){if(d&&$$a4.$ah.l_op_Inequality(i.colorInfo(),null)&&$l(i.colorInfo()._themeColorType$i(),null)){c.font().colorInfo(i.colorInfo()._g(g.d().v(),true))}if(i!=$$t.$jo.k){a.add(g.d(),c.d()._bp().d())}}}},u:function(a,b,c,d,e,f,g){var h=d;for(var i=1;i!=1073741824;i=i<<1){if((h&i)==0){continue}var j=e._getValue(i);if(b&&(i&69470538)!=0){if(j==null&&c){var k=e.style();if(k!=null&&k.isBuiltIn()){j=k._i()._getValue(i)}}if(j!=null){switch(i){case 64:{j=$$a4.$k.i(j,a);break}case 2:case 2097152:case 262144:case 67108864:case 8:case 256:{j=$$a4.$k.ag(j,a);break}}}}f._setValue1(i,j,false,g)}},v:function(a,b,c,d,e,f,g,h,i,j,k,l){var m=k.b(true);if(d){$$t.$jo.x(b,g,h,j,k,l?0:-97)}if(c){$$t.$jo.t(f,j,k,e,l,l?0:-97)}$$t.$jo.u(a,e,l,i,j,k,l?1:-97);k.g(m)},w:function(a,b,c,d){if(c._d8()){var e=d.workbook();var f=e.cellReferenceMode();var g=b.l();var h=b.k();var i=b.b();for(var j=0;j<i.length;j++){var k=i[j];var l=b.j(j);var m=b.i(j);var o=c.hyperlinks().getEnumerator();while(o.moveNext()){var n=o.current();var p=n.sourceRegion()._h();if(p._intersectsWith(k)){var q=new $$a4.l0(1,Math.max(k._firstRowIndex(),p._firstRowIndex()),Math.min(k._lastRowIndex(),p._lastRowIndex()),Math.max(k._firstColumnIndex(),p._firstColumnIndex()),Math.min(k._lastColumnIndex(),p._lastColumnIndex()));var r=q._firstColumnIndex()-k._firstColumnIndex()+m;var s=q._firstRowIndex()-k._firstRowIndex()+l;var t=q._width();var u=q._height();var v=g;var w=h;var x=false;var y=null;if(n.targetNamedReference()!=null){y=e.namedReferences()._find1(n.targetNamedReference().name(),d);if(y==null){y=e.namedReferences()._find(n.targetNamedReference().name());if(y==null){y=n.targetAddress();x=true}}}else if($$a4.$j1.l_op_Inequality(n.targetCell(),null)){var z=n.targetCell()._toString1(f,true);try{y=d._getCell2(z,f,null)}catch(aa){y=z;x=true}}else if(n.targetRegion()!=null){var ab=n.targetRegion()._toString1(f,true);try{y=d._getRegion2(ab,f,null)}catch(ac){y=ab;x=true}}else{y=n.targetAddress()}for(var ae=0;ae<a.length;ae++){var ad=a[ae];var af=ad._width();var ag=ad._height();for(var ah=0,ai=$a(af,v);ah<ai;ah++){for(var aj=0,ak=$a(ag,w);aj<ak;aj++){var al=ad._firstRowIndex()+aj*w+s;var am=ad._firstColumnIndex()+ah*v+r;var an=new $$a4.lz(d,al,am,al+u-1,am+t-1);var ao=new $$a4.li(an,y,n.displayText(),n.toolTip());ao.__t=x;d.hyperlinks().add(ao)}}}}}}}},x:function(a,b,c,d,e,f){var g=d.style();var h=null;if(g!=null&&!function(){var i=b.tryGetValue(g,h);h=i.p1;return i.ret}()){if(g.isBuiltIn()){var i=g;h=a.styles()._item1(g.name())}if(h==null){var j=g.name().length;var k=new $$4.x($$0.$aw.$type,0);var m=c.getEnumerator();while(m.moveNext()){var l=m.current();if(l.name().startsWith1(g.name(),0)){if(j!=l.name().length){if(l.name().charAt(j)!=" "||l.name().length==j+1){continue}var n=l.name().substr(j+1);var o;if(function(){var p=$0(n,0,a._e6(),o);o=p.p3;return p.ret}()==false){continue}k.add(o)}{h=l;break}}}if(h==null){var p=g.name();if(a.styles()._item1(g.name())!=null){k.sort();var q=1;var s=k.getEnumerator();while(s.moveNext()){var r=s.current();if(r!=q){break}q++}p+=" "+$y(q,a._e6())}h=a.styles()._addUserDefinedStyle(g.styleFormat(),p)}}b.item(g,h)}e._bh(h,false,f)},y:function(a,b,c,d,e,f){var g=a.c;var h=a.d;if(d.tables().count()>0){for(var i=d.tables().count()-1;i>=0;i--){var j=d.tables()._item(i);var k=j._by();for(var l=0;l<g.length;l++){if(g[l]._contains1(k)){d.tables().removeAt(i,false);break}}}}if(e.count()>0){var m=new $$4.x($$a4.$hw.$type,1,d.tables());var n=new $$4.q(String,0);var o=h.l();var p=h.k();var q=h.b();var s=d.workbook().worksheets().getEnumerator();while(s.moveNext()){var r=s.current();var u=r.tables().getEnumerator();while(u.moveNext()){var t=u.current();var v=t.name();n.add(v)}}for(var w=0;w<q.length;w++){var x=q[w];var y=h.j(w);var z=h.i(w);var ab=e.getEnumerator();while(ab.moveNext()){var aa=ab.current();var ac=aa.name();var ad=aa._by();if(x._contains1(ad)){var ae=ad._firstColumnIndex()-x._firstColumnIndex()+z;var af=ad._firstRowIndex()-x._firstRowIndex()+y;for(var ag=0;ag<g.length;ag++){var ah=g[ag];var ai=ah._width();var aj=ah._height();for(var ak=0,al=$a(ai,o);ak<al;ak++){for(var am=0,an=$a(aj,p);am<an;am++){var ao=ah._firstRowIndex()+am*p+af;var ap=ah._firstColumnIndex()+ak*o+ae;var aq=new $$a4.l0(1,ao,ao+ad._height()-1,ap,ap+ad._width()-1);var ar=true;for(var as=0;as<m.count();as++){if(m.__inner[as]._by()._intersectsWith(aq)){ar=false;break}}if(ar){var at;if(!n.contains(ac)){at=ac}else{var au=n.count()+2;do{at=ac+au;au++}while(n.contains(at))}n.add(at);var av=aq._toString1(true,true,d.workbook().currentFormat(),1,null);var aw=d._dd(aa,true,av,$m($$a4.$b0.$type,1),b);aw.name(at);a.i(ag,am,ak,aa,at)}}}}}}}for(var ax=0;ax<g.length;ax++){var ay=g[ax];var az=ay._width();var a0=ay._height();for(var a1=0,a2=$a(az,o);a1<a2;a1++){for(var a3=0,a4=$a(a0,p);a3<a4;a3++){var a5=a.g(ax,a3,a1);if(a5!=null){var a7=a5.getEnumerator();while(a7.moveNext()){var a6=a7.current();var a8=d.tables()._item1(a6);var ba=a8.columns().getEnumerator();while(ba.moveNext()){var a9=ba.current();var bb=a9.columnFormula();if(bb!=null){f(ax,a1,a3,bb)}if(a9._aa()!=null){f(ax,a1,a3,a9._aa())}}}}}}}}},z:function(a,b,c,d,e){if(d._d6()){for(var g=0;g<a.length;g++){var f=a[g];d.dataValidationRules()._remove4(f)}}if(c._d6()){var i=c.dataValidationRules().getEnumerator();while(i.moveNext()){var h=i.current();var j=null;var k=b.l();var l=b.k();var m=b.b();for(var n=0;n<m.length;n++){var o=m[n];var p=b.j(n);var q=b.i(n);if(h.value()._k(o)){var s=h.value()._t().getEnumerator();while(s.moveNext()){var r=s.current();if(r._intersectsWith(o)){if(j==null){j=new $$a4.lw(d)}var t=new $$a4.l0(1,Math.max(o._firstRowIndex(),r._firstRowIndex()),Math.min(o._lastRowIndex(),r._lastRowIndex()),Math.max(o._firstColumnIndex(),r._firstColumnIndex()),Math.min(o._lastColumnIndex(),r._lastColumnIndex()));var u=t._firstColumnIndex()-o._firstColumnIndex()+q;var v=t._firstRowIndex()-o._firstRowIndex()+p;var w=t._width();var x=t._height();var y=k;var z=l;for(var ab=0;ab<a.length;ab++){var aa=a[ab];var ac=aa._width();var ad=aa._height();for(var ae=0,af=$a(ac,y);ae<af;ae++){for(var ag=0,ah=$a(ad,z);ag<ah;ag++){var ai=aa._firstRowIndex()+ag*z+v;var aj=aa._firstColumnIndex()+ae*y+u;var ak=new $$a4.lz(d,ai,aj,ai+x-1,aj+w-1);j._add(ak)}}}}}}}if(j!=null){var al=h.key();var am=null;var ao=d.dataValidationRules().getEnumerator();while(ao.moveNext()){var an=ao.current();if(an.key().isEquivalentTo(al)){am=an.key();break}}if(am==null){am=al.clone();var ap=am._l(null);var aq=am._m(null);if(ap!=null){e(ap)}if(aq!=null){e(aq)}}d.dataValidationRules()._add4(am,j)}}}},o:function(a,b){var c=b.workbook();var d=a.workbook();var e=new $$4.h($$a4.$gi.$type,$$a4.$gi.$type,0);var f=function(g,h){var i;if(!function(){var j=e.tryGetValue(g,i);i=j.p1;return j.ret}()){var j=$b($$a4.$jk.$type,g.scope());if(j==a){i=c._a2(g.name(),b)}else if(j!=null){i=new $$a4.gl(1,j.name(),c._bf(d.__gw),g._p(),c.currentFormat(),true)}else{i=c._a3(g.name())}if(i==null){if($b($$a4.$gg.$type,g)!==null){var k=j!=null?b:c;var l=new $$a4.gg(1,c.namedReferences(),k,g._p());l._be(g.name(),"Name",c.currentFormat(),true);l._v(g._v());l.comment(g.comment());if(g._j()!=null&&!g._r()){var m=g._j()._g();h(m);l._j(m)}c.namedReferences()._x(l);i=l}else{i=null}}e.item(g,i)}return i};return f},l:function(a,b,c){var d=c._width();var e=c._height();if(d%a!=0||e%b!=0){var f=e%b!=0||d!=1?b:e;var g=d%a!=0||e!=1?a:d;c=new $$a4.l0(1,c._firstRowIndex(),c._firstRowIndex()+f-1,c._firstColumnIndex(),c._firstColumnIndex()+g-1);return{ret:true,p2:c}}return{ret:false,p2:c}},n:function(a,b,c){var d__=new $$t.jw((-2));d__.___3__rows=a;d__.___3__firstRow=b;d__.___3__lastRow=c;return d__},p:function(a,b,c){var d=0;var g=a.b();for(var f=0;f<g.length;f++){var e=g[f];for(var i=0;i<b.length;i++){var h=b[i];var j=h._c4(e._firstRowIndex(),e._lastRowIndex(),e._firstColumnIndex(),e._lastColumnIndex(),false);if(j._isValid()){d+=j._width()*j._height()*c}}}return d},m:function(a,b,c,d){var e=a.workbook();if(b!=e){b.suspendCalculations()}if(c&&$$a4.$l0._l_op_Equality_Lifted(b.__gn,$m($$a4.$l0.$type,null))){c=false}var f=c?[b.windowOptions().selectedWorksheet()]:$$5.$e.a($$a4.$jk.$type,$$5.$e.u($$a4.$jk.$type,b.worksheets(),function(g){return g._w()}));var g=$$t.$dy.e(e);if(g.length%f.length!=0){a.m(0);return false}var h=a.categoriesToLoad();var i=a.skipBlanks();var j=a.mathOperation();var k=b.windowOptions().selectedWorksheet();var l=e.windowOptions().selectedWorksheet();var m;if(c){m=new $$a4.mw;m._b=new $$a4.j2(1,b.__gn.value()._firstRowIndex(),b.__gn.value()._firstColumnIndex());m._f=0;m._a=3;m.d().add(b.__gn.value())}else{m=k.displayOptions()._af().a(k.displayOptions()._z())}var n=l.displayOptions()._af().a(l.displayOptions()._z());if(m==null||m.d().count()==0){a.m(3);return false}var o=$$5.$e.a($$a4.$l0.$type,m.d());var p=(h&2097152)!=0;var q=(h&8192)!=0;var r=new $$4.q($$a4.$hw.$type,0);var s=new $$4.q($$a4.$hw.$type,0);var t=false;for(var v=0;v<f.length;v++){var u=f[v];var x=u.tables().getEnumerator();while(x.moveNext()){var w=x.current();for(var z=0;z<o.length;z++){var y=o[z];var aa=w._by();var ab=false;if(y._contains1(aa)){if(r.add(w)&&!p){ab=true}}else if(q&&aa._contains1(y)){s.add(w);ab=true}if(ab){t=true;var ac=Math.max(y._firstRowIndex(),aa._firstRowIndex());var ad=Math.min(y._lastRowIndex(),aa._lastRowIndex());for(var ae=ac;ae<=ad;ae++){var af=u.rows().item(ae)}}}}if(r.count()>0&&f.length>1){a.m(4);return false}}if(!p){r.clear()}var ag=true;var ah=true;for(var aj=0;aj<o.length;aj++){var ai=o[aj];if(ai._firstRowIndex()>0||ai._lastRowIndex()<b.maxRowCount()-1){ag=false}if(ai._firstColumnIndex()>0||ai._lastColumnIndex()<b.maxColumnCount()-1){ah=false}}var ak=$$5.$e.a($$a4.$l0.$type,n.d());var al=false;var am;if(o.length>1){if(ak.length>1){a.m(1);return false}am=new $$t.ji(o)}else{am=new $$t.jh(o[0]);if(ak.length>1){var an=o[0]._width();var ao=o[0]._height();for(var ap=0;ap<ak.length;ap++){var aq=ak[ap];var ar=aq._width();var as=aq._height();if(ar>1&&ar%an!=0||as>1&&as%ao!=0){a.m(2);return false}if(ar==1&&an!=1||as==1&&ao!=1){al=true;ak[ap]=new $$a4.l0(1,ak[ap]._firstRowIndex(),as==1?ak[ap]._firstRowIndex()+ao-1:ak[ap]._lastRowIndex(),ak[ap]._firstColumnIndex(),ar==1?ak[ap]._firstColumnIndex()+an-1:ak[ap]._lastColumnIndex())}}}}if(ag||ah){for(var au=0;au<ak.length;au++){var at=ak[au];if(ah&&at._firstColumnIndex()!=0||ag&&at._firstRowIndex()!=0){a.m(2);return false}}}if(ak.length==1){al=function(){var av=$$t.$jo.l(am.l(),am.k(),ak[0]);ak[0]=av.p2;return av.ret}()}if(a.i(g,ak,true)==false){return false}var av=0;for(var ax=0;ax<ak.length;ax++){var aw=ak[ax];av+=$a(aw._width(),am.l())*$a(aw._height(),am.k())}var ay=this.p(am,f,av);if(!a.h(ay)){return false}var az=$m($$a4.$l0.$type,null);if(al){az=$$t.$kd.h(g,ak)}if($$a4.$l0._l_op_Inequality_Lifted(az,$m($$a4.$l0.$type,null))){a.m(5);return false}var a0=new Array(ak.length);var a1=new $$4.q($$a4.$f2.$type,0);for(var a2=0;a2<g.length;a2++){var a3=g[a2];for(var a4=0;a4<ak.length;a4++){a0[a4]=a3._cw(ak[a4])}$$a4.$k.gg(a0,a1)}if(a.mathOperation()==0){var a6=a1.getEnumerator();while(a6.moveNext()){var a5=a6.current();a5.removeFromRegion()}}var a7=(h&1)!=0;var a8=(h&2)!=0;if(o.length>1&&(h&4)!=0){a8=false}var a9=(h&64)!=0;var ba=(h&128)!=0;var bb=(h&1024)!=0;var bc=(h&8)!=0;var bd=(h&16384)!=0;var be=(h&8192)!=0&&s.count()>0;var bf=(h&2048)!=0;var bg=(h&4096)!=0;var bh=(h&131072)!=0;var bi=(h&262144)!=0;var bj=(h&524288)!=0;var bk=(h&1048576)!=0;var bl=(h&4194304)!=0;var bm=(h&8388608)!=0;if(!bc&&ag&&(h&32768)!=0){bc=true}if(!bd&&ah&&(h&65536)!=0){bd=true}var bn=new $$4.q($$a4.$lr.$type,0);var bo=new $$4.h($$a4.$iv.$type,$$a4.$fx.$type,0);var bp=new $$4.h($$a4.$ja.$type,$$a4.$ja.$type,0);var bq=$$5.$e.z($$a4.$ja.$type,$$5.$e.x($$a4.$ja.$type,String,e.styles(),function(br){return br.name()}));var br=$$t.$dy.g(ak);var bs=0;if((h&32)!=0){bs|=830603265}if((h&256)!=0){bs|=1073741888}if((h&512)!=0){bs|=1074790400}if((h&16)!=0){bs|=1073807360}if(a9){bs|=208404542}var bt=am.k();var bu=am.l();var bv=new $$t.jv(e,ak,am);for(var bw=0;bw<g.length;bw++){var bx=f[bw%f.length];var by=g[bw];bn.clear();var bz=$$t.$jo.o(bx,by);var b0=by.__eh;var b1=bs;if(by.isProtected()){b1&=~1048576}var b2=b1!=0||ba;try{by.__eh=true;if(bh){var b3;var b4=$$t.$ik._hx(false,false,b3,by,br);b3=b4.p2;$$t.$jo.w(ak,am,bx,by)}if(p){this.y(bv,bf,bx,by,r,function(b5,b6,b7,b8){b8._bv(bx,d,by,$m($$0.$aq.$type,true),bv.h(b5,b6,b7),bz)})}if(bi){this.z(ak,am,bx,by,function(b5){b5._bv(bx,d,by,$m($$0.$aq.$type,false),null,bz)})}if(bl){this.s(ak,bf,am,bx,by,!bm,function(b5,b6){b6._bv(bx,d,by,$m($$0.$aq.$type,false),null,bz)})}if(bj){this.r(ak,am,bx,by)}for(var b5=0;b5<ak.length;b5++){var b6=ak[b5];var b7=b6._firstRowIndex();var b8=b6._firstColumnIndex();var b9=by.rows();var ca;if(ag){ca=true}else{if(bd&&bx.defaultRowHeight()!=by.defaultRowHeight()){ca=false}else{ca=true;var cb=new $$t.os(bx.workbook().styles().normalStyle()._i());var cc=new $$t.os(by.workbook().styles().normalStyle()._i());var cd=b1;if(ba){cd|=32640}var ce=null;var cf=null;for(var cg=b6._firstColumnIndex();cg<=b6._lastColumnIndex();cg++){var ch=false;if(cf==null||!cf.g(cg)){cf=by._cb(cg);ch=true}var ci=am.g(cg-b6._firstColumnIndex());if(ce==null||!ce.g(ci)){ce=bx._cb(ci);ch=true}if(ch){cb._c(ce.b());cc._c(cf.b());if($$a4.$kl._y(cb,cc,cd)){ca=false;break}else if(bb&&!bf){if(cb.style().name()!=cc.style().name()){ca=false;break}}}}}}if(ag&&ah){var ck=bx.rows()._m(0,Math.min(am.k(),b6._lastRowIndex())).getEnumerator();while(ck.moveNext()){var cj=ck.current();var cl=b9.item(cj.index())}}else if(ca){var cm=am.k();var cn=b6._lastRowIndex()-b6._firstRowIndex()+1;var co=$a(cn,cm);var cp=am.c();var cq=b6._firstRowIndex();for(var cr=0;cr<cp.length;cr++){var cs=cp[cr]._i;var cu=bx.rows()._m(cs,cp[cr]._h).getEnumerator();while(cu.moveNext()){var ct=cu.current();var cv=ct.index()-cs;for(var cw=0;cw<co;cw++){var cx=b9.item(cw*cm+cq+cv)}}cq+=cp[cr]._h-cs+1}}if(bc){var cy=null;var cz=null;for(var c0=b6._firstColumnIndex();c0<=b6._lastColumnIndex();c0++){var c1=am.g(c0-b8);if(cy==null||c1>cy.r()){cy=bx._cb(c1)}var c2=cy.v();if(c2<0){c2=bx.defaultColumnWidth()}if(cz==null||c0>cz.r()){cz=by._cb(c0)}var c3=cz.v();if(c3<0){c3=by.defaultColumnWidth()}if(c2!=c3||cy.i()!=cz.i()){by.columns().item(c0).width(c2);by.columns().item(c0).hidden(cy.i())}}}if(ag&&b2){var c4=null;for(var c5=b6._firstColumnIndex();c5<=b6._lastColumnIndex();c5++){var c6=am.g(c5-b8);if(c4==null||!c4.g(c6)){c4=bx._cb(c6)}var c7=c4.b();var c8=by.columns().item(c5)._cellFormatInternal();if(!i){$$t.$jo.v(b,e,ba,bb,bf,bo,bp,bq,b1,c7,c8,false)}}}var c9=ca?b9._m(b6._firstRowIndex(),b6._lastRowIndex()):$$t.$jo.n(b9,b6._firstRowIndex(),b6._lastRowIndex());var da=new $$t.ju($$t.$dy.aa(b6),am,b2,t);var dc=c9.getEnumerator();while(dc.moveNext()){var db=dc.current();var dd=db.index();var de=dd-b7;var df=am.h(de);var dg=$a(de,bt);var dh=bx.rows().item(df);if(bd){db.height(dh.height());db.hidden(dh.hidden())}if(ah&&b2){var di=dh._hasCellFormat()?dh._cellFormatInternal().d():bx.workbook()._ca()._defaultElement();var dj=db._cellFormatInternal();if(!i){$$t.$jo.v(b,e,ba,bb,bf,bo,bp,bq,b1,di,dj,false)}}var dk=ah?$$5.$e.z($$t.$i.$type,da.f(dh,db)):da.h();for(var dl=0;dl<dk.count();dl++){for(var dm=dk.item(dl)._i;dm<=dk.item(dl)._h;dm++){var dn=dm-b8;var dp=am.g(dn);var dq=$a(dn,bu);var dr=db.getCellAssociatedMergedCellsRegion(dm);var ds=null;if(dr!=null){if(false==bn.add(dr)){if(b2&&b6._contains1(dr._h())){$$t.$jo.q(b,e,s,ba,bb,be,bf,bo,bp,bq,bx,b1,db,df,dh,dm,dp)}continue}if(false==b6._contains1(dr._h())){continue}}if(bg){ds=dh.getCellAssociatedMergedCellsRegion(dp);if(ds==null){if(dr!=null){if($$a4.$l0._l_op_Equality(dr._h(),b6)&&am.b().length==1&&am.b()[0]._isSingleCell()){}else{by.mergedCellsRegions().remove(dr)}}}else if(dr!=null&&$$a4.$l0._l_op_Equality(dr._h(),b6)&&am.b().length==1&&$$a4.$l0._l_op_Equality(am.b()[0],ds._h())){}else{if(!am.e(df,dp)._contains1(ds._h())){continue}var dt=dr;if(dr!=null){if(dr._ad()!=ds._ad()||dr._aa()!=ds._aa()){by.mergedCellsRegions().remove(dr);dr=null}}if(dr==null){if(dt==null||ds._ad()>dt._ad()||ds._aa()>dt._aa()){by._ih(new $$a4.l0(1,dd,dd+ds._aa()-1,dm,dm+ds._ad()-1),bn)}dr=by.mergedCellsRegions()._add(dd,dm,dd+ds._aa()-1,dm+ds._ad()-1);bn.add(dr)}}}if(i&&dh._c6(dp)==null){continue}if(b2){if(ds!=null&&ds._hasCellFormat()&&dr!=null){$$t.$jo.v(b,e,ba,bb,bf,bo,bp,bq,b1,ds._cellFormatInternal().d(),dr._cellFormatInternal(),true)}var du=be;if(du){if(by._de(dd,dm)!=null){du=false}}$$t.$jo.q(b,e,s,ba,bb,du,bf,bo,bp,bq,bx,b1,db,df,dh,dm,dp)}var dv=a7;if(a8){var dw=dh.getCellFormula(dp);if(dw!=null){dv=false;if(dw._s()==1){if(j==0){var dx=dw;var dy=am.e(df,dp);var dz=dx.cellRange()._h();if(df!=Math.max(dy._firstRowIndex(),dz._firstRowIndex())){continue}if(dp!=Math.max(dy._firstColumnIndex(),dz._firstColumnIndex())){continue}var d0=dx._g();d0._bv(bx,d,by,$$t.$dy.c2,bv.h(b5,dg,dq),bz);d0._bw(e,dh,dp,{__x:dm-dz._firstColumnIndex(),__y:dd-dz._firstRowIndex(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName});var d1=by._cx(dd,dm,dd+Math.min(dy._lastRowIndex(),dz._lastRowIndex())-df,dm+Math.min(dy._lastColumnIndex(),dz._lastColumnIndex())-dp);d0._applyTo3(d1)}else{dv=a7}}else{if(dw._as()){bx._h3(dw,false);dw._bt(b)}var d2=dw._g();d2._bv(bx,d,by,$$t.$dy.c2,bv.h(b5,dg,dq),bz);d2._bw(e,dh,dp,{__x:dm-dp,__y:dd-df,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName});if(j!=0){this.b(j,NaN,d2,db,dm)}else{d2._bp(db,dm,0)}if(a7&&d2._ae()){var d3=dh._getCellValue1(dp);if(d3!=null&&$b($$a4.$dq.$type,d3)!==null==false){db._d0(dm,$$a4.$zz.c(d3),true)}}}}}if(dv){var d4=dh._getCellValue1(dp);if(i==false||d4!=null){if(j!=0){this.b(j,$$t.$kd.g(b,d4),null,db,dm);continue}if($b($$a4.$dq.$type,d4)!==null){if(bk){var d5=$b($$a4.$ds.$type,d4._m().g(e));if(bf&&$b($$a4.$dt.$type,d5)!==null){var d6=d5;if(d6._hasFormatting()){var d8=d6._formattingRuns().getEnumerator();while(d8.moveNext()){var d7=d8.current();if(d7.h()){var d9=d7.e();if($$a4.$ah.l_op_Inequality(d9.colorInfo(),null)){d9.colorInfo($$a4.$k.ag(d9.colorInfo(),b))}}}}}d4=new $$a4.dq(e,d5)}else{d4=d4.unformattedString()}}db.setCellValue(dm,d4)}}}}}}}finally{by.__eh=b0}var ea=bv.f();$$t.$dy.e3(by,ak,ea)}return true},$type:new $.ig.Type("ExcelWorkbookSerializationProvider",$$t.$kd.$type)},true);$c("BIFF8SerializationProvider:jm","ExcelWorkbookSerializationProvider",{init:function(){$$t.$jo.init1.call(this,1,["BIFF8"],null)},j:function(a){var b=$$t.$jo.j.call(this,a);if(b!=null){var c=a.getDataAsString("Link");if(!String.isNullOrEmpty(c)){var d=2;var e=c.split("\0");var f,g;var h,i;for(var k=0;k<e.length;k++){var j=e[k];if(String.isNullOrWhiteSpace(j)){continue}var l=j.trim();if(l.startsWith1("R",1)==false&&l.startsWith1("C",1)==false){continue}var m=$$a4.$k.fv(l,d,null,0,f,h,g,i);f=m.p4;h=m.p5;g=m.p6;i=m.p7;if(f>=0&&f<65536&&g>=0&&g<65536&&h>=0&&h<256&&i>=0&&i<256){return b}if(l.startsWith1("R",1)){var n,o;n=o=0;var p=false;var q;if(function(){var r=$$a4.$zk.bc(l,0,d,n,p,q);n=r.p3;p=r.p4;q=r.p5;return r.ret}()==false||p){continue}if(l.length==q){o=n}else if(l.length==q+1||l.charAt(q)!=":"){continue}else if(function(){var r=$$a4.$zk.bc(l,q+1,d,o,p,q);o=r.p3;p=r.p4;q=r.p5;return r.ret}()==false||p){continue}return b}if(l.startsWith1("C",1)){var r,s;r=s=0;var t=false;var u;if(function(){var v=$$a4.$zk.ap(l,0,d,r,t,u);r=v.p3;t=v.p4;u=v.p5;return v.ret}()==false||t){continue}if(l.length==u){s=r}else if(l.length==u+1||l.charAt(u)!=":"){continue}else if(function(){var v=$$a4.$zk.ap(l,u+1,d,s,t,u);s=v.p3;t=v.p4;u=v.p5;return v.ret}()==false||t){continue}return b}}return null}}return b},c:function(a){if(a.e("BIFF8")){var b=$b($$0.$dc.$type,a.j("BIFF8"));if(b!=null){var c=null;var d=a.getDataAsString("LINK");if(!String.isNullOrEmpty(d)){var e=d.split("\0");var f=e.length>1?e[1]:null;if(!String.isNullOrEmpty(f)){var g=f.indexOf("[");var h=f.lastIndexOf("]");if(g>=0&&h>g){var i=f.substr(g+1,h-g-1);var j=g>1?f.substr(0,g):null;var k=j!=null?$$7.$b.combine1(j,i):i;c=a.workbook()._bf(k);if(c==a.workbook()._bb()){c=null}}}}var l=$$a4.$n._bs(b,null);return this.m(a,l,true,c)}}return false},d:function(a){throw new $$0.r(0)},$type:new $.ig.Type("BIFF8SerializationProvider",$$t.$jo.$type)},true);$c("PlainTextWorkbookSerializationProvider:ka","WorkbookSerializationProviderBase",{init:function(a){$$t.$kd.init.call(this,0,a)},c:function(a){var b=a._k;var c=a.e(b)?a.j(b):null;if(c==null){return false}var d=$b(String,c);if(d!=null){{var e=new $$2.a7(d);try{return this.m(a,e,this.k(),$m($$0.$as.$type,'"'))}finally{if(e!=null){e.dispose()}}}}var f=$b($$0.$dc.$type,c);if(null==f){return false}{var g=new $$7.f(f);try{return this.m(a,g,this.k(),$m($$0.$as.$type,'"'))}finally{if(g!=null){g.dispose()}}}},k:function(){},l:function(a,b){var c=a.a();if(c.length>1){var d=new $$a4.fu;for(var e=0;e<c.length;e++){var f=c[e];d.n(f._i,f._h);if(e<c.length-1){var g=c[e+1]._i;var h=f._h+1;while(h<g){var i=b._cb(h);if(!i.i()){d.n(h,Math.min(g-1,i.r()))}h=i.r()+1}}}c=new Array(d.k());for(var j=0;j<c.length;j++){c[j]=new $$t.i(1,d.i(j),d.h(j))}}var k=a.c();if(k.length>1){var l=!b._dv();var m=new $$a4.fu;for(var n=0;n<k.length;n++){var o=k[n];m.n(o._i,o._h);if(n<k.length-1){var p=k[n+1]._i;var q=o._h+1;var s=b.rows()._m(q,p-1).getEnumerator();while(s.moveNext()){var r=s.current();var t=r.index();if(q<t&&l){m.n(q,t-1)}if(!r.hidden()){m.m(t)}q=t+1}if(q<p&&l){m.n(q,p-1)}}}k=new Array(m.k());for(var u=0;u<k.length;u++){k[u]=new $$t.i(1,m.i(u),m.h(u))}}if(c!=a.a()||k!=a.c()){var v=new Array(c.length*k.length);for(var w=0;w<k.length;w++){for(var x=0;x<c.length;x++){v[w*c.length+x]=new $$a4.l0(1,k[w]._i,k[w]._h,c[x]._i,c[x]._h)}}if(v.length==1){a=new $$t.jh(v[0])}else{a=new $$t.ji(v)}}return a},o:function(a,b){var c=0;for(var d=0;d<b;d++){c=Math.max(a.__inner[d].length,c)}return c},m:function(a,b,c,d){var e=a.workbook();var f=$$t.$dy.e(e);var g=e.windowOptions().selectedWorksheet();var h=g.displayOptions()._af().a(g.displayOptions()._z());var i=$$5.$e.a($$a4.$l0.$type,h.d());if(i.length>1){a.m(6);return false}var j=i[0];var k=32759;var l=$$t.$j7.a(b,false,d,c,k);var m=l.count();if(m==0){return false}if(j._height()>1&&j._height()<m){m=j._height()}var n=$$t.$ka.o(l,m);if(j._width()>1&&j._width()<n){n=j._width()}if(j._width()>n||j._height()>m){}var o=j._width()!=n;var p=j._height()!=m;if(o||p){j=new $$a4.l0(1,j._firstRowIndex(),p?j._firstRowIndex()+m-1:j._lastRowIndex(),j._firstColumnIndex(),o?j._firstColumnIndex()+n-1:j._lastColumnIndex())}if(j._lastRowIndex()>=e.maxRowCount()||j._lastColumnIndex()>=e.maxColumnCount()){j=new $$a4.l0(1,j._firstRowIndex(),Math.min(j._lastRowIndex(),e.maxRowCount()-1),j._firstColumnIndex(),Math.min(j._lastColumnIndex(),e.maxColumnCount()-1));m=j._lastRowIndex()-j._firstRowIndex()+1;n=j._lastColumnIndex()-j._firstColumnIndex()+1}var q=j;var r=new $$4.q($$a4.$f2.$type,0);for(var t=0;t<f.length;t++){var s=f[t];var u=s._hi(j,null);j=u.p0;if($$a4.$l0._l_op_Inequality(j,q)){a.m(5);return false}$$a4.$k.gg([new $$a4.lz(s,j._firstRowIndex(),j._firstColumnIndex(),j._lastRowIndex(),j._lastColumnIndex(),false)],r)}if(a.i(f,[j],false)==false){return false}if(!a.h(n*m)){return false}if(a.mathOperation()==0){var w=r.getEnumerator();while(w.moveNext()){var v=w.current();v.removeFromRegion()}}if($$a4.$l0._l_op_Inequality(i[0],j)){i[0]=j;$$t.$kd.h(f,i)}var x=a.categoriesToLoad();var y=a.skipBlanks();var z=(x&1)!=0;var aa=(x&2)!=0;var ab=(x&16)!=0;var ac=(x&4096)!=0;var ad=(x&131072)!=0;var ae=new $$t.kb;var af=new $$4.q($$a4.$lr.$type,0);var ag=[$$t.$dy.aa(j)];var ah=new $$t.er(a);var ai=a.mathOperation();for(var ak=0;ak<f.length;ak++){var aj=f[ak];var al=j._firstRowIndex();var am=j._firstColumnIndex();for(var an=0;an<m;an++){var ao=l.__inner[an];var ap=y?ao.length:n;var aq=aj.rows().item(al+an);for(var ar=0;ar<ap;ar++){var as=ar>=ao.length?null:ao[ar];var at=am+ar;var au;var av=0;var aw=false;var ax=null;if(String.isNullOrEmpty(as)){au=null}else{ae._b=as;ae._a=aj._b4(aq,at);au=function(){var ay=$$t.$eq.ad(ah,ae,false,true,av);av=ay.p4;return ay.ret}();if(au==ae||aa==false&&$b($$a4.$ed.$type,au)!==null){au=as;aw=as.contains("\n")}ax=$b($$a4.$ed.$type,au);if(ab&&ax!=null&&av==-1){av=$$t.$eq.aa(ax,aj,aq.index(),at)}}var ay=aq.getCellAssociatedMergedCellsRegion(at);if(ay!=null){if(ac){aj.mergedCellsRegions().remove(ay)}else if(af.add(ay)==false){continue}}if(ai!=0){if($b($$a4.$ed.$type,au)!==null){this.b(ai,NaN,au,aq,at);continue}else{var az=$$t.$kd.g(e,au);if($.ig.util.isNaN(az)&&typeof au==="string"){if(!function(){var a0=$$a4.$k.bx(au,e,e._e6(),false,az);az=a0.p4;return a0.ret}()){continue}}this.b(ai,az,null,aq,at);
continue}}if(au==null){if(y==false){aq.setCellValue(at,au)}}else if(ax!=null){ax._bp(aq,at,1);if(ab&&av!=-1){$$t.$eq.ai(aq,at,av,aj._b4(aq,at))}}else if(ab){$$t.$eq.ak(aq,at,ae.editCellFormat(),au,av,aw)}else{aq.setCellValue(at,au);if(aw){aq.getCellFormat(at)._wrapText$i($m($$0.$aq.$type,true))}}}}if(ad){var a0;var a1=$$t.$ik._hx(false,false,a0,aj,ag);a0=a1.p2}}return true},n:function(a,b,c,d){var e=new $$t.j6(b,d,c);var f=a._b.windowOptions().selectedWorksheet();var g=f.rows();var h=f._c4(0,a._b.maxRowCount()-1,0,a._b.maxColumnCount()-1,false);var i=a.a;i=$$t.$ka.l(i,f);var j=Math.max(Math.min($$5.$e.ah($$t.$i.$type,i.c())._h,h._lastRowIndex()),i.c()[0]._i);var k=Math.max(Math.min($$5.$e.ah($$t.$i.$type,i.a())._h,h._lastColumnIndex()),i.a()[0]._i);var l=0;var o=i.a();for(var n=0;n<o.length;n++){var m=o[n];if(m._i>k){break}l+=Math.min(m._h,k)-m._i+1}var p=0;var s=i.c();for(var r=0;r<s.length;r++){var q=s[r];if(q._i>j){break}p+=Math.min(q._h,j)-q._i+1}if(p*l>16384e3){if(!a.h()){return false}}var v=i.c();for(var u=0;u<v.length;u++){var t=v[u];var w=t._i;var y=g._m(t._i,Math.min(t._h,j)).getEnumerator();while(y.moveNext()){var x=y.current();var z=x.index();for(;w<z;w++){e.l(l-1);e.k(true)}var ac=i.a();for(var ab=0;ab<ac.length;ab++){var aa=ac[ab];for(var ad=aa._i,ae=Math.min(aa._h,k);ad<=ae;ad++){var af=x._getCellText1(ad,1);e.m(af)}}e.k(true);w=z+1}for(;w<Math.min(t._h,j);w++){e.l(l-1);e.k(true)}}return true},$type:new $.ig.Type("PlainTextWorkbookSerializationProvider",$$t.$kd.$type)},true);$c("CSVWorkbookSerializationProvider:jn","PlainTextWorkbookSerializationProvider",{init:function(){$$t.$ka.init.call(this,[$$a.$i.a])},k:function(){return[","]},d:function(a){var b=new $$7.e(0);var c=new $$2.a6(1,b,$$8.$a.uTF8());var d=this.n(a,c,",",$m($$0.$as.$type,'"'));c.flush();b.position(0);if(d){a.p($$a.$i.a,b)}return d},$type:new $.ig.Type("CSVWorkbookSerializationProvider",$$t.$ka.$type)},true);$c("ExcelWorkbookSerializationProvider_SourceRowColumnIndexEnumerator:jp","Object",{_c:null,_a:null,_g:0,_f:0,_h:0,_d:null,_e:0,_i:0,_j:0,_b:null,init:function(a,b,c,d){$.ig.$op.init.call(this);this._c=a;this._a=b;this._g=d;this._j=c;this.reset()},current:function(){return this._e},dispose:function(){this._d=null},_k:function(){if(this._b!=null){this._b.u()}this._b=null},moveNext:function(){if(this._f<this._g){if(this._d.moveNext()){this._e=this._j+this._f*this._a.l()+this._i+(this._d.current().r()-this._a.a()[this._h]._i);this._k();this._b=this._d.current();return true}this._k();this._i+=this._a.a()[this._h]._h-this._a.a()[this._h]._i+1;this._h++;if(this._h>=this._a.a().length){this._i=0;this._h=0;this._f++}this._l();return this.moveNext()}return false},_l:function(){this._k();this._d=this._c._ch(this._a.a()[this._h]._i,this._a.a()[this._h]._h,false).getEnumerator()},reset:function(){this._f=0;this._h=0;this._l()},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_SourceRowColumnIndexEnumerator",$.ig.$ot,[$$0.$bx.$type.specialize($$0.$aw.$type)])},true);$c("ExcelWorkbookSerializationProvider_RepeatingColumnBlockEnumerator:jq","Object",{_b:null,_d:0,_e:0,_a:null,_c:0,init:function(a,b){$.ig.$op.init.call(this);this._b=a._ff();this._d=b;this._e=a.columns().maxCount();this.reset()},current:function(){var a=this._c*this._e;return new $$t.i(1,this._a.current().q()+a,this._a.current().r()+a)},dispose:function(){},moveNext:function(){if(this._c<this._d){if(this._a.moveNext()){return true}this._c++;if(this._c<this._d){this._a=$$5.$e.u($$a4.$kz.$type,this._b,function(a){return!a.b()._ca(a.b().v()._ca()._defaultElement())}).getEnumerator();return this.moveNext()}}return false},reset:function(){this._c=0;this._a=$$5.$e.u($$a4.$kz.$type,this._b,function(a){return!a.b()._ca(a.b().v()._ca()._defaultElement())}).getEnumerator()},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_RepeatingColumnBlockEnumerator",$.ig.$ot,[$$0.$bx.$type.specialize($$t.$i.$type)])},true);$c("ExcelWorkbookSerializationProvider_RepeatingBlockEnumerator:jr","Object",{_b:null,_d:0,_e:0,_a:null,_c:0,init:function(a,b,c){$.ig.$op.init.call(this);this._b=a;this._d=c;this._e=b;this.reset()},current:function(){var a=this._c*this._e;return new $$t.i(1,this._a.current()._i+a,this._a.current()._h+a)},dispose:function(){},moveNext:function(){if(this._c<this._d){if(this._a.moveNext()){return true}this._c++;if(this._c<this._d){this._a=this._b.getEnumerator();return this.moveNext()}}return false},reset:function(){this._c=0;this._a=this._b.getEnumerator()},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_RepeatingBlockEnumerator",$.ig.$ot,[$$0.$bx.$type.specialize($$t.$i.$type)])},true);$c("ExcelWorkbookSerializationProvider_TargetColumnIndexHelper:ju","Object",{c:null,b:null,a:null,d:false,e:false,init:function(a,b,c,d){this.c=new $$t.d1;$.ig.$op.init.call(this);this.c=a;this.b=b;this.d=c;this.e=d;this.a=[new $$t.i(1,a.firstColumn(),a.lastColumn())]},i:function(a){var b=a.worksheet().tables();var c=new $$4.x($$t.$i.$type,0);var d=a.index();for(var e=0;e<b.count();e++){var f=b._item(e)._by();if(f._firstRowIndex()<=d&&f._lastRowIndex()>=d){c.add(new $$t.i(1,f._firstColumnIndex(),f._lastColumnIndex()))}}if(c.count()>1){c.sort1($$t.$i._f())}return c},h:function(){return this.a},f:function(a,b){var d__=new $$t.js((-2));d__.___4__this=this;d__.___3__sourceRow=a;d__.___3__targetRow=b;return d__},g:function(a,b){var d__=new $$t.jt((-2));d__.___4__this=this;d__.___3__sourceRow=a;d__.___3__targetRow=b;return d__},j:function(a,b,c){while(b!=null){if(b.current()._c(a+1)){c=a+1;break}if(b.current()._i>c){break}if(b.current()._c(c)){break}if(b.current()._i<c&&b.current()._h>a){c=Math.max(a+1,b.current()._i);break}if(!b.moveNext()){b=null}}return{p1:b,p2:c}},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_TargetColumnIndexHelper",$.ig.$ot)},true);$c("ExcelWorkbookSerializationProvider_CellRangeTargetInfo:jv","Object",{e:null,d:null,a:null,b:null,c:null,init:function(a,b,c){$.ig.$op.init.call(this);this.e=a;this.d=c;this.c=b;this.a=new Array(b.length);this.b=new Array(this.a.length)},i:function(a,b,c,d,e){if(this.a[a]==null){var f=$a(this.c[a]._width(),this.d.l());var g=$a(this.c[a]._height(),this.d.k());this.a[a]=new $$t.ol($$4.$h.$type.specialize(String,String),g,f);this.b[a]=new $$t.ol($$0.$z.$type.specialize(String,String),g,f)}var h=this.a[a];var i=h.item(b,c);if(i==null){h.item(b,c,i=new $$4.h(String,String,0));this.b[a].item(b,c,function(j){var k;return function(){var l=i.tryGetValue(j,k);k=l.p1;return l.ret}()?k:null})}i.item(d.name(),e)},f:function(){var a=new $$4.q(String,0);for(var b=0;b<this.a.length;b++){var c=this.a[b];if(c!=null){for(var d=0;d<c.i();d++){if(c.d(d)){for(var e=0;e<c.h();e++){var f=c.item(d,e);if(f!=null){var h=f.getEnumerator();while(h.moveNext()){var g=h.current();a.add(g.value())}}}}}}}return a},h:function(a,b,c){var d=this.b[a];return d!=null?d.item(b,c):null},g:function(a,b,c){var d=this.a[a];var e=d!=null?d.item(b,c):null;return e!=null?e.values():null},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_CellRangeTargetInfo",$.ig.$ot)},true);$c("HTMLWorkbookSerializationProvider:jx","WorkbookSerializationProviderBase",{init:function(){$$t.$kd.init.call(this,0,[$$a.$i.b])},c:function(a){return false},d:function(a){return false},$type:new $.ig.Type("HTMLWorkbookSerializationProvider",$$t.$kd.$type)},true);$c("IGExcelSerializationProvider:jy","ExcelWorkbookSerializationProvider",{init:function(){$$t.$jo.init.call(this,0,["IGExcel"])},c:function(a){if(a.e("IGExcel")){var b=$b($$0.$dc.$type,a.j("IGExcel"));if(b!=null){var c=null;var d=null;d=new $$a4.x;var e=null;d._c(e);var f=$$a4.$n._bs(b,d);var g=a.getDataAsString("IGExcelId");if(!String.isNullOrEmpty(g)){var h=g.indexOf(";");if(h>0){var i=new $$6.i(3,g.substr(0,h));var j=h<g.length-1?g.substr(h+1):null;f._fb=i;f.__gw=j;if($$6.$i.l_op_Inequality(i,a.workbook()._fb)){c=a.workbook()._bf(j!=null?j:"Book1");if(c==a.workbook()._bb()){c=null}}}}return this.m(a,f,false,c)}}return false},d:function(a){var b=new $$7.e(0);var c=new $$a4.i7;var d=new $$t.j2(a);c._g(d);c.__i=true;var e=this.p(a.a,$$5.$e.a($$a4.$jk.$type,a.m()),1);if(e>16384e3&&!a.h()){return false}var f=null;c._c(f);var g=a._b.__gw;a._b._i0(b,c);a._b.__gw=g;b.position(0);a.p("IGExcel",b);var h=a._b._fb.toString2("D")+";"+g;a.p("IGExcelId",h);return true},$type:new $.ig.Type("IGExcelSerializationProvider",$$t.$jo.$type)},true);$c("IGExcelSerializationProvider_SelectionWorkbookSaveFilter:j2","WorkbookSaveFilter",{f:null,init:function(a){$$a4.$i8.init.call(this);this.f=a},d:function(a){if(this.g(a)){return $$a4.$i9.f.d(a)}var b=0;var e=this.f.a.c();for(var d=0;d<e.length;d++){var c=e[d];b+=$$5.$e.aj($$a4.$ma.$type,a.rows()._m(c._i,c._h))}return b},e:function(a){if(this.g(a)){return $$a4.$i9.f.e(a)}return this.f.a.k()},a:function(a){var d__=new $$t.jz((-2));d__.___4__this=this;d__.___3__worksheet=a;return d__},b:function(a,b){if(this.g(a)){return $$a4.$i9.f.b(a,b)}if(b){return this.i(a)}return this.h(a)},c:function(a){return this.f.l()},k:function(a){},l:function(a){},h:function(a){var d__=new $$t.j0((-2));d__.___4__this=this;d__.___3__ws=a;return d__},i:function(a){var d__=new $$t.j1((-2));d__.___4__this=this;d__.___3__ws=a;return d__},j:function(a,b,c){var d=a;if(d>b+1){var e=c._aj(d);if(e!=null){var g=e._ch(0,2147483647,true).getEnumerator();while(g.moveNext()){var f=g.current();if(f.o()&&f.p()){var h=e._ar(f.r());if(h._s()==1){var i=h;d=Math.min(d,i.cellRange().firstRow())}}}}if(d<b+1){d=b+1}}return d},g:function(a){return this.f.e()},$type:new $.ig.Type("IGExcelSerializationProvider_SelectionWorkbookSaveFilter",$$a4.$i8.$type)},true);$c("IGExcelSerializationProvider_SyncPackageFactory:j3","Object",{init:function(){$.ig.$op.init.call(this)},open:function(a,b){a=typeof a==="string"?$.ig.util.b64toUint8Array(a):a;a=$b($$0.$dc.$type,a)?a:new $$7.e(2,a);var c=$.ig.Package;var d=(c.prototype.createUsingFile||c.prototype._createUsingFile)(a,b,new $$t.j4);return d},$type:new $.ig.Type("IGExcelSerializationProvider_SyncPackageFactory",$.ig.$ot,[$$v.$aw.$type])},true);$c("IGExcelSerializationProvider_SyncZipFile:j4","Object",{a:null,init:function(){$.ig.$op.init.call(this);this.a=new $$4.x($$v.$a7.$type,0)},entries:function(){return this.a},createFile:function(a,b,c){c=typeof c==="string"?$.ig.util.b64toUint8Array(c):c;c=$b($$0.$dc.$type,c)?c:new $$7.e(2,c);var d=$b($$7.$e.$type,c);if(d==null){var e=$$v.$ap.c(c);d=new $$7.e(2,e)}return new $$t.j5($5($$7.$b.combine1(b,a),"\\","/"),false,d)},load:function(a){a=typeof a==="string"?$.ig.util.b64toUint8Array(a):a;a=$b($$0.$dc.$type,a)?a:new $$7.e(2,a);var b=$$8.$a.uTF8();var c=new $$7.c(1,a);var d=c.readInt32();for(var e=0;e<d;e++){var f=c.readInt32();var g=c.readBytes(f);var h=b.getString(g);var i=c.readInt32();var j=c.readBytes(i);var k=new $$7.e(2,Pako.inflate(j));var l=new $$t.j5(h,false,k);this.entries().add(l)}return $$v.$h.h($$v.$a6.$type,this)},save:function(a){a=typeof a==="string"?$.ig.util.b64toUint8Array(a):a;a=$b($$0.$dc.$type,a)?a:new $$7.e(2,a);var b=$$8.$a.uTF8();var c=new $$7.d(1,a);c.write9(this.entries().count());for(var d=0;d<this.a.count();d++){var e=this.a.__inner[d];if(!e.isDirectory()){var f=e.name();var g=e.b;if(f.charAt(0)=="/"){f=f.substr(1)}var h=b.getBytes1(f);c.write9(h.length);c.write(h);var i=g.toArray();var j=Pako.deflate(i);c.write9(j.length);c.write(j)}}c.flush();return null},$type:new $.ig.Type("IGExcelSerializationProvider_SyncZipFile",$.ig.$ot,[$$v.$a6.$type])},true);$c("IGExcelSerializationProvider_SyncZipEntry:j5","Object",{c:null,a:false,b:null,init:function(a,b,c){$.ig.$op.init.call(this);this.c=a;this.a=b;this.b=c},name:function(){return this.c},isDirectory:function(){return this.a},openReader:function(){return $$v.$h.h($$0.$dc.$type,this.b)},$type:new $.ig.Type("IGExcelSerializationProvider_SyncZipEntry",$.ig.$ot,[$$v.$a7.$type])},true);$c("PlainTextWriter:j6","Object",{d:false,f:"\0",j:null,i:null,e:"\0",h:null,a:null,g:0,b:false,c:false,init:function(a,b,c){$.ig.$op.init.call(this);$$ak.$c.y(a);this.d=$l(b,null);this.f=this.d?b.value():"\0";this.e=c;this.h=a;this.a=["\r","\n",c];this.b=$$6.$h.newLine()=="\n";this.j=$.ig.util.createString2(this.f,1);this.i=$.ig.util.createString2(this.f,2)},l:function(a){if(this.c){this.k(false)}for(var b=0;b<a;b++){this.h.write3(this.e)}this.g+=a+1},m:function(a){if(this.c){this.k(false)}if(++this.g>1){this.h.write3(this.e)}var b;var c=-1;if(b=this.d&&String.isNullOrEmpty(a)==false&&(c=a.indexOfAny(this.a))>=0){this.h.write3(this.f)}if(b&&c>=0&&(a.charAt(c)==this.f||(c=a.indexOf(this.f,c))>=0)){var d=0;do{for(var e=d;e<=c;e++){this.h.write3(a.charAt(e))}this.h.write3(this.f);c++;d=c}while((c=a.indexOf(this.f,c))>=0);for(var f=d;f<a.length;f++){this.h.write3(a.charAt(f))}}else{this.h.write10(a)}if(b){this.h.write3(this.f)}},k:function(a){if(this.g>0){if(this.b&&a){this.c=true}else{this.c=false;this.h.write10($$6.$h.newLine());this.g=0}}},$type:new $.ig.Type("PlainTextWriter",$.ig.$ot)},true);$c("PlainTextReader:j7","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a,b,c,d,e){$$ak.$c.y(a);$$ak.$c.y(d);var f=0;var g=$l(c,null)&&$.ig.util.arrayIndexOf1($$0.$as.$type,d,c.value())<0;var h=g?c.value():"\0";var i=new $$t.j8(h,b);while((f=a.read())>=0){var j=$u(f);var k=g&&j==h;if(k){i.j++}else{if(i.j>0){i.p()}if(i.c()==1){i.l(j)}else{var l=j=="\r";if(l||j=="\n"){if(l&&a.peek()=="\n".charCodeAt(0)){a.read()}i.n(false);i.o()}else if($.ig.util.arrayIndexOf1($$0.$as.$type,d,j)>=0){i.n(false)}else{i.l(j)}}}if(e>0&&i.i()==e){i.n(false);i.o()}}i.m();return i.g},$type:new $.ig.Type("PlainTextReader",$.ig.$ot)},true);$c("PlainTextReader_ParseHelper:j8","Object",{g:null,j:0,e:"\0",f:null,k:null,d:false,h:0,b:0,init:function(a,b){$.ig.$op.init.call(this);this.e=a;this.d=b;this.k=new $$6.aj(0);this.f=new $$4.x(String,0);this.g=new $$4.x(Array,0);this.b=0},c:function(){return this.b},i:function(){return this.k.c()},l:function(a){if(this.b==0){this.b=2}this.h=0;this.k.h(a)},n:function(a){if(this.b!=0||a==false&&this.d==false){if(this.k.c()==0){this.f.add(String.empty())}else{this.f.add(this.k.toString())}}if(a==false&&this.k.c()==0){this.h++}this.k.v();this.b=0},o:function(){if(this.f.count()>0){this.g.add(this.f.toArray());this.f.clear()}else if(this.b!=0||this.h>0){this.g.add($$t.$j8.a)}this.h=0},m:function(){this.p();this.n(true);this.o()},p:function(){if(this.j>0){switch(this.b){case 0:if(this.j%2==1){this.b=1}else{this.j-=2;this.b=2}if(this.j>1){this.k.i(this.e,$a(this.j,2))}break;case 1:if(this.j%2==1){this.b=2}if(this.j>1){this.k.i(this.e,$a(this.j,2))}break;case 2:this.k.i(this.e,this.j);break}this.j=0}},$type:new $.ig.Type("PlainTextReader_ParseHelper",$.ig.$ot)},true);$c("PlainTextWorkbookSerializationProvider_ParseEditValue:kb","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_b:null,createDocument:function(){return null},unformattedText:function(){return this._b},editCellFormat:function(){return this._a},$type:new $.ig.Type("PlainTextWorkbookSerializationProvider_ParseEditValue",$.ig.$ot,[$$t.$ej.$type])},true);$c("TSVWorkbookSerializationProvider:kc","PlainTextWorkbookSerializationProvider",{init:function(){$$t.$ka.init.call(this,[$$a.$i.e,$$a.$i.d,$$a.$i.c])},k:function(){return["\t"]},d:function(a){var b=new $$6.aj(0);var c=false;{var d=new $$2.a8(2,b);try{c=this.n(a,d,"\t",$m($$0.$as.$type,'"'))}finally{if(d!=null){d.dispose()}}}if(c){var e=b.toString();var g=this._f.getEnumerator();while(g.moveNext()){var f=g.current();a.p(f,e)}}return c},$type:new $.ig.Type("TSVWorkbookSerializationProvider",$$t.$ka.$type)},true);$c("WorkbookDataObjectLoadContext:ke","Object",{n:null,c:null,init:function(a,b,c){$.ig.$op.init.call(this);$$ak.$c.z(a,"workbook");this.workbook(a);this.o(b);this.c=c},categoriesToLoad:function(){return this.c!=null?this.c._b:8370167},o:function(a){if(arguments.length===1){if(this.n!=a){if(a==null){throw new $$6.e(1)}this.n=a}return a}else{return this.n}},_k:null,hasMultipleSelectedCellRanges:function(){var a=this.workbook().windowOptions().selectedWorksheet();var b=a!=null?a.displayOptions():null;if(b!=null&&b._ai()){var c=b._af().a(b._z());if(c!=null&&c.d().count()>1){return true}}return false},mathOperation:function(){return this.c!=null?this.c._a:0},skipBlanks:function(){return this.c!=null&&this.c._d},_workbook:null,workbook:function(a){if(arguments.length===1){this._workbook=a;return a}else{return this._workbook}},j:function(a){return this.n.getData(a)},getDataAsString:function(a){var b=this.e(a)?this.j(a):null;if(b==null){return null}var c=$b($$0.$dc.$type,b);var d=null;if(null!=c){{var e=new $$7.f(c);try{d=e.readToEnd()}finally{if(e!=null){e.dispose()}}}}else{d=$b(String,b)}if(String.isNullOrEmpty(d)){return null}return d},e:function(a){return this.n.getDataPresent(a)},m:function(a){throw new $$t.km(a)},h:function(a){var b=this.c._e;if(b!=null&&!b(a)){return false}return true},i:function(a,b,c){var d=this.c._f;if(d!=null&&!d(a,b,c)){return false}return true},isFixedDecimalEnabled:function(){return this.c!=null?this.c._c:false},fixedDecimalPlaceCount:function(){return this.c!=null?this.c._g:2},$type:new $.ig.Type("WorkbookDataObjectLoadContext",$.ig.$ot,[$$t.$ek.$type])},true);$c("WorkbookDataObjectManager:kf","Object",{h:null,init:function(a){$.ig.$op.init.call(this);$$ak.$c.z(a,"workbook");this._b=a;this.h=new $$4.x($$t.$kd.$type,0);var b=$$a4.$k.at(a.currentFormat())?$$a4.$n.__ez!=null&&$$a4.$n.__e2!=null:$$a4.$n.__e1!=null&&$$a4.$n.__e3!=null;if(b){this.h.add(new $$t.jy)}if($$a4.$n.__ez!=null){this.h.add(new $$t.jm)}this.h.add(new $$t.kc);this.h.add(new $$t.jn)},_b:null,c:function(a){var b=this.p(false,a);if(null==b){return false}try{return $$t.$n.c(b,true)}catch(c){this.o(false,c);return false}},d:function(a){return a!=null&&(a.getDataPresent($$a.$i.d)||a.getDataPresent($$a.$i.e)||a.getDataPresent($$a.$i.c)||a.getDataPresent($$a.$i.a)||a.getDataPresent("IGExcel")||a.getDataPresent("BIFF8"))},e:function(a){var b=null;try{b=$$t.$n.e()}catch(c){this.o(true,c);return false}return this.f(a,b,null)},f:function(a,b,c){var d=$$a4.$j1.l_op_Inequality(c,null);if(null==b){return false}var e=new $$t.ke(this._b,b,a);var f=this.n(e);if(String.isNullOrEmpty(f)){return false}e._k=f;var g=this.pasting;if(g!=null){var h=new $$t.kj(b,f,d);g(this,h);if(h._cancel()){return false}b=h._dataObject();if(b==null){return false}e.o(b);f=h._formatToApply();e._k=f}if(String.isNullOrWhiteSpace(f)||!e.e(f)){return false}var i=this.a(f,true);if(i==null){return false}try{return i.c(e)}catch(j){this.o(true,j);return false}},p:function(a,b){var $self=this;var c=$$t.$n.d();if(null==c){return null}var d=this.beforeCopying;if(d!=null){d(this,$$0.$w.empty)}var e;var f=$$t.$dy.c2;var g=function(){if(!f.hasValue()){f=$m($$0.$aq.$type,b())}return f.value()};try{e=new $$t.kn(this._b,c,function(h){return $self.g(c,h)},g)}catch(h){this.o(true,h);return null}var i=0;var k=this.h.getEnumerator();while(k.moveNext()){var j=k.current();if(j._f.count()>0){if(j.d(e)){i++}else if(f.hasValue()){return null}}}if(i==0){return null}var l=this.copying;if(l!=null){var m=new $$t.ki(c,a);l(this,m);if(m._cancel()){return null}}return c},n:function(a){var c=this.h.getEnumerator();while(c.moveNext()){var b=c.current();var d=b.j(a);if(d!=null){return d}}return null},a:function(a,b){var d=this.h.getEnumerator();while(d.moveNext()){var c=d.current();var e=b?c._e:c._f;if(e.contains(a)){return c}}return null},o:function(a,b){var c=this.error;if(c!=null){var d=new $$t.kk(a,b);c(this,d)}},g:function(a,b){var c=this.settingData;if(c!=null){var d=new $$t.kh(a,b,false);c(this,d);return!d._cancel()}return true},settingData:null,pasting:null,copying:null,beforeCopying:null,error:null,$type:new $.ig.Type("WorkbookDataObjectManager",$.ig.$ot)},true);$c("WorkbookDataObjectEventArgs:kg","EventArgs",{init:function(a){$$0.$w.init.call(this);this._isDragDrop(a)},__cancel:false,_cancel:function(a){if(arguments.length===1){this.__cancel=a;return a}else{return this.__cancel}},__isDragDrop:false,_isDragDrop:function(a){if(arguments.length===1){this.__isDragDrop=a;return a}else{return this.__isDragDrop}},$type:new $.ig.Type("WorkbookDataObjectEventArgs",$$0.$w.$type)},true);$c("WorkbookDataObjectSettingDataEventArgs:kh","WorkbookDataObjectEventArgs",{init:function(a,b,c){$$t.$kg.init.call(this,c);$$ak.$c.z(a,"dataObject");$$ak.$c.z(b,"format");this._dataObject(a);this._format(b)},__dataObject:null,_dataObject:function(a){if(arguments.length===1){this.__dataObject=a;return a}else{return this.__dataObject}},__format:null,_format:function(a){if(arguments.length===1){this.__format=a;return a}else{return this.__format}},$type:new $.ig.Type("WorkbookDataObjectSettingDataEventArgs",$$t.$kg.$type)},true);$c("WorkbookDataObjectCopyingEventArgs:ki","WorkbookDataObjectEventArgs",{init:function(a,b){$$t.$kg.init.call(this,b);$$ak.$c.z(a,"dataObject");this._dataObject(a)},__dataObject:null,_dataObject:function(a){if(arguments.length===1){this.__dataObject=a;return a}else{return this.__dataObject}},$type:new $.ig.Type("WorkbookDataObjectCopyingEventArgs",$$t.$kg.$type)},true);$c("WorkbookDataObjectPastingEventArgs:kj","WorkbookDataObjectEventArgs",{_f:null,_d:null,init:function(a,b,c){$$t.$kg.init.call(this,c);this._f=a;this._d=b},_dataObject:function(a){if(arguments.length===1){if(this._f!=a){if(a==null){throw new $$6.e(1)}this._f=a}return a}else{return this._f}},_formatToApply:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},$type:new $.ig.Type("WorkbookDataObjectPastingEventArgs",$$t.$kg.$type)},true);$c("WorkbookSerializationErrorEventArgs:kk","EventArgs",{init:function(a,b){$$0.$w.init.call(this);this._isLoading(a);this._exception(b)},__exception:null,_exception:function(a){if(arguments.length===1){this.__exception=a;return a}else{return this.__exception}},__isLoading:false,_isLoading:function(a){if(arguments.length===1){this.__isLoading=a;return a}else{return this.__isLoading}},$type:new $.ig.Type("WorkbookSerializationErrorEventArgs",$$0.$w.$type)},true);$c("WorkbookSerializationLoadException:km","Error",{init:function(a){$$0.$n.init.call(this,0);this.__c=a},__c:0,$type:new $.ig.Type("WorkbookSerializationLoadException",$$0.$n.$type)},true);$c("WorkbookDataObjectSaveContext:kn","Object",{q:null,i:null,n:null,o:null,k:null,j:null,c:false,d:false,a:null,init:function(a,b,c,d){$.ig.$op.init.call(this);$$ak.$c.z(a,"workbook");this._b=a;this.n=c;this.o=d;this.r(b);var e=new $$4.x($$a4.$fp.$type,0);var f=new $$4.x($$a4.$jk.$type,0);var h=a.worksheets().getEnumerator();while(h.moveNext()){var g=h.current();if(g._w()){f.add(g);e.add(g)}}this.k=new $$4.g($$a4.$jk.$type,1,f);this.j=new $$4.g($$a4.$fp.$type,1,e);var i=a.windowOptions().selectedWorksheet();if(i==null||i.type()==0){i=$$5.$e.af($$a4.$jk.$type,f)}if(i!=null){i.displayOptions()._br();var j=i.displayOptions()._af();var k=j.a(i.displayOptions()._z());if(k!=null){if(k.d().count()==1){this.a=new $$t.jh(k.d().item(0))}else{this.a=new $$t.ji($$5.$e.a($$a4.$l0.$type,k.d()))}this.c=this.a.c().length==1&&this.a.c()[0]._i==0&&this.a.c()[0]._h>=i.rows().maxCount()-1;this.d=this.a.a().length==1&&this.a.a()[0]._i==0&&this.a.a()[0]._h>=i.columns().maxCount()-1}}},r:function(a){if(arguments.length===1){if(this.q!=a){if(a==null){throw new $$6.e(1)}this.q=a}return a}else{return this.q}},e:function(){return this.c},f:function(){return this.d},l:function(){return this.j},_b:null,m:function(){return this.k},p:function(a,b){this.q.setData(a,b)},g:function(a){var $self=this;if(this.n==null){return true}if(this.i==null){this.i=new $$4.h(String,$$0.$aq.$type,0)}var b;if(!function(){var c=$self.i.tryGetValue(a,b);b=c.p1;return c.ret}()){b=this.i.item(a,this.n(a))}return b},h:function(){if(this.o!=null){return this.o()}return false},$type:new $.ig.Type("WorkbookDataObjectSaveContext",$.ig.$ot)},true);$c("WorkbookSerializationLoadOptions:ko","Object",{init:function(){$.ig.$op.init.call(this);this._b=8370167;this._g=2},_b:0,_g:0,_c:false,_a:0,_d:false,_e:null,_f:null,$type:new $.ig.Type("WorkbookSerializationLoadOptions",$.ig.$ot)},true);$c("SpreadsheetShape:kq","Object",{b:null,d:null,j:null,i:false,init:function(a,b){$.ig.$op.init.call(this);this.d=a;this.i=$b($$a4.$a2.$type,a)!==null;this.b=b;if($b($$a4.$m1.$type,a)!==null){this.j=new $$4.x($$t.$kq.$type,0)}},_g:false,_h:false,_n:0,p:function(){this._n++;if(this.j!=null){for(var a=0;a<this.j.count();a++){this.j.__inner[a].p()}}},c:function(){var a=this;while(a.b!=null){a=a.b}return a},_a:null,_o:null,_v:null,_s:null,_u:null,_t:null,_k:0,_e:false,_f:false,l:null,m:function(a){if(arguments.length===1){if(a!=this.l){if(this.l!=null){this.l.dispose();this.l=null}this.l=a}return a}else{return this.l}},q:function(){if(this._a!=null){if(this._h||this._g){this._a.e(this.d,this._h,this._g);this._h=false;this._g=false}}},r:function(a){if(this.j!=null){var b=this.d;var c=false;var d=0;for(var e=0;e<b.shapes().count();e++){var f=b.shapes().item(e);if(!f.visible()||!$$t.$dy.a4(f,a)){continue}if(d>=this.j.count()){c=true;break}if(this.j.__inner[d].d!=b.shapes().item(e)){c=true;break}d++}if(!c&&d!=this.j.count()){c=true}if(c){var g=new $$4.h($$a4.$mx.$type,$$t.$kq.$type,0);var i=this.j.getEnumerator();while(i.moveNext()){var h=i.current();g.item(h.d,h)}this.j.clear();var k=b.shapes().getEnumerator();while(k.moveNext()){var j=k.current();if(!j.visible()||!$$t.$dy.a4(j,a)){continue}var l;if(!function(){var m=g.tryGetValue(j,l);l=m.p1;return m.ret}()){l=new $$t.kq(j,this)}else{g.remove(j)}this.j.add(l)}}var n=this.j.getEnumerator();while(n.moveNext()){var m=n.current();m.r(a)}}},$type:new $.ig.Type("SpreadsheetShape",$.ig.$ot)},true);$c("SpreadsheetChartDataInfo:kr","Object",{c:false,b:null,g:null,h:null,init:function(a){$.ig.$op.init.call(this);this.b=a;this.g=new $$4.h($$a4.$jk.$type,$$a4.$l2.$type,0);this.h=new $$4.x($$a4.$l2.$type,0)},d:function(){return this.c},e:function(){return this.c||this.g.count()>0},i:function(){if(this.g.count()>0){this.g.clear();var b=this.h.getEnumerator();while(b.moveNext()){var a=b.current();if(a!=null&&!a.b()){a.n()}}}},j:function(){this.c=false;this.i()},k:function(a,b,c){if(!this.c){var d=this.a(a);d.q(b,c)}},l:function(){this.c=true;this.i()},m:function(a,b){if(!this.c){var c=this.a(a);c.p(b.getRegionAddress())}},a:function(a){var b=a.index();if(b>this.h.count()-1){this.n()}var c=this.h.__inner[b];if(c.b()){this.g.item(a,c)}return c},f:function(a){if(this.c){return true}var c=this.g.getEnumerator();while(c.moveNext()){var b=c.current();if(a.isReferencingAnythingInRegion(b.key(),b.value().a())){return true}}return false},n:function(){var a=this.b.worksheets().count();for(var b=this.h.count();b<a;b++){this.h.add(new $$a4.l2)}},$type:new $.ig.Type("SpreadsheetChartDataInfo",$.ig.$ot)},true);$c("SpreadsheetAreaLayoutManager_RowColumnInfo:kv","Object",{g:0,h:0,i:0,a:null,b:false,e:null,c:false,d:false,f:null,init:function(a){this.f=new $$4.x($$t.$kw.$type.specialize($$t.$i6.$type),0);$.ig.$op.init.call(this);this.b=a;this.e=new Array(0)},$type:new $.ig.Type("SpreadsheetAreaLayoutManager_RowColumnInfo",$.ig.$ot)},true);$c("SpreadsheetAreaLayoutManager_SheetLayerInfo$1:kw","Object",{$t:null,a:null,b:null,c:null,init:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);$$ak.$c.z(a,"viewObject");this.a=a;this.b=b},$type:new $.ig.Type("SpreadsheetAreaLayoutManager_SheetLayerInfo$1",$.ig.$ot)},true);$c("SpreadsheetUserPromptInfo:kx","Object",{init:function(a,b,c,d,e){$.ig.$op.init.call(this);this._a=a;this._f=c;this._g=d;this._d=true;this._b=e;if(b==null){var f=null;switch(a){case 5:f="DeleteWorksheets_Message";break;case 8:f="InvalidCommand_MixedSelection_Message";break;case 6:f="InvalidCommand_OverlappingSelection_Message";break;case 9:f="InvalidNameBoxValue_Message";break;case 10:f="PasteError_CellRangeSize_Message";break;case 11:f="PasteError_MultipleSourceAndTargetRanges_Message";break;case 12:f="PasteError_InvalidSourceRanges_Message";break;case 13:f="PasteError_InvalidSelectedSheetCount_Message";break;case 15:f="PasteError_IntersectsMergedCells_Message";break;case 16:f="PasteError_MultipleSheetTables_Message";break;case 17:f="Error_IntersectsMergedCells_Message";break;case 18:f="CopyError_InvalidSelection_Message";break;case 7:f="InvalidCommand_MultipleSelection_Message";break;case 20:f="InvalidCommand_TableChangeWithMultipleSheetSelection_Message";break;case 21:f="Error_InvalidHyperlinkAddress_Message";break;case 22:f="Error_InvalidHyperlinkReference_Message";break;case 23:f="Error_InvalidProtectedWorksheetChange_Message";break;case 24:f="Error_NoSingleAllowedEditRange_Message";break;case 25:f="Error_InvalidArrayFormulaLockedState_Message";break;case 26:f="Error_ChangePartOfDataTableError_Message";break;case 27:f="Error_DeletingLockedColumnCells_Message";break;case 28:f="Error_DeletingLockedRowCells_Message";break;case 29:f="Error_LargePasteOperation_Message";break;case 30:f="Error_InvalidSortOrFilterRange_Message";break;case 31:f="Error_LargeOperation_Message";break}if(f!=null){b=$$t.$dy.dl(null,f,[])}else if(c!=null){b=c.message()}}this._i=b},_b:false,_c:false,_h:null,_g:null,_d:false,e:function(){return this._d&&!String.isNullOrEmpty(this._i)},_f:null,_i:null,_a:0,$type:new $.ig.Type("SpreadsheetUserPromptInfo",$.ig.$ot)},true);$c("RotationHelper:ky","Object",{a:null,k:null,l:null,c:0,d:0,init:function(){$.ig.$op.init.call(this);this.a=new Array(8);this.k=new $$a.ae(4);this.l=new $$a.ae(4)},n:function(){return this.l},e:function(){return this.c},f:function(){return this.d},m:function(){return this.k},g:function(a,b,c,d,e,f){this.i(a,b,c,d,e,0,0,true,f)},h:function(a,b,c,d,e,f,g,h){this.i(a,b,c,d,e,f,g,false,h)},i:function(a,b,c,d,e,f,g,h,i){var j=Math.max(c-a,0);var k=Math.max(d-b,0);if(i){a=a+j/2-k/2;b=b+k/2-j/2;var l=k;k=j;j=l}c=a+j;d=b+k;this.l.x(a);this.l.y(b);this.l.width(j);this.l.height(k);this.c=a+j/2;this.d=b+k/2;var m=h?this.c:f;var n=h?this.d:g;var o=this.a;o[0]=o[2]=a;o[1]=o[5]=b;o[4]=o[6]=c;o[3]=o[7]=d;if(e!=0){var p=$$t.$dy.cc(e);var q=Math.cos(p);var r=Math.sin(p);var s,t,u,v;s=u=t=v=0;for(var w=0;w<7;w+=2){var x=q*(o[w]-m)-r*(o[w+1]-n)+m;o[w+1]=r*(o[w]-m)+q*(o[w+1]-n)+n;o[w]=x;if(w==0){s=t=o[0];u=v=o[1]}else{if(t<o[w]){t=o[w]}else if(s>o[w]){s=o[w]}if(v<o[w+1]){v=o[w+1]}else if(u>o[w+1]){u=o[w+1]}}}this.k.x(s);this.k.y(u);this.k.width(t-s);this.k.height(v-u)}else{this.k.x(a);this.k.y(b);this.k.width(j);this.k.height(k)}},b:function(a,b,c,d){return this.k.left()>c||this.k.top()>d||this.k.right()<a||this.k.bottom()<b},j:function(a,b,c){if(c!=0){var d=this.a;var e=$$t.$dy.cc(c);var f=Math.cos(e);var g=Math.sin(e);var h,i,j,k;h=j=i=k=0;for(var l=0;l<7;l+=2){var m=f*(d[l]-a)-g*(d[l+1]-b)+a;d[l+1]=g*(d[l]-a)+f*(d[l+1]-b)+b;d[l]=m;if(l==0){h=i=d[0];j=k=d[1]}else{if(i<d[l]){i=d[l]}else if(h>d[l]){h=d[l]}if(k<d[l+1]){k=d[l+1]}else if(j>d[l+1]){j=d[l+1]}}}var n=f*(this.c-a)-g*(this.d-b)+a;this.d=g*(this.c-a)+f*(this.d-b)+b;this.c=n;this.k.x(h);this.k.y(j);this.k.width(i-h);this.k.height(k-j)}},$type:new $.ig.Type("RotationHelper",$.ig.$ot)},true);$c("WorksheetCellFormatDataEqualityComparer:kz","Object",{init:function(){$.ig.$op.init.call(this)},equalsC:function(a,b){return a==b||a!=null&&b!=null&&a._ca(b)},getHashCodeC:function(a){return a.getHashCode()},$type:new $.ig.Type("WorksheetCellFormatDataEqualityComparer",$.ig.$ot,[$$0.$by.$type.specialize($$a4.$o.$type)])},true);$c("DefaultSpreadsheetColors:k1","Object",{init:function(){$.ig.$op.init.call(this)},staticInit:function(){$$t.$k1.a=new $$4.h($$t.$k0.$type,$$a.$ax.$type,0);$$t.$k1.b=new $$4.h($$t.$k0.$type,$$a.$ax.$type,0);var a=$.ig.$ep.getValues($$t.$k0.$type);for(var c=0;c<a.length;c++){var b=a[c];switch(b){case 11:case 24:case 7:$$t.$k1.a.item(b,$$a.$ax.u(255,241,241,241));break;case 13:case 26:$$t.$k1.a.item(b,$$a.$ax.u(255,212,212,212));break;case 12:case 25:$$t.$k1.a.item(b,$$a.$ax.u(255,211,240,224));break;case 16:case 17:case 30:case 29:case 32:case 23:case 3:case 4:case 10:case 37:case 5:case 49:case 41:$$t.$k1.a.item(b,$$a.$ax.u(255,33,115,70));break;case 34:case 20:
$$t.$k1.a.item(b,$$a.$ax.u(255,198,198,198));break;case 39:case 40:$$t.$k1.a.item(b,$$a.$ax.u(193,127,127,127));break;case 36:case 22:$$t.$k1.a.item(b,$$a.$ax.u(255,160,173,166));break;case 35:$$t.$k1.a.item(b,$$a.$ax.u(255,184,184,184));$$t.$k1.b.item(b,$$a.$ax.u(255,172,172,172));break;case 21:$$t.$k1.a.item(b,$$a.$ax.u(255,184,184,184));$$t.$k1.b.item(b,$$a.$ax.u(255,172,172,172));break;case 33:$$t.$k1.a.item(b,$$a.$ax.u(255,219,219,219));$$t.$k1.b.item(b,$$a.$ax.u(255,183,183,183));break;case 19:$$t.$k1.a.item(b,$$a.$ax.u(255,219,219,219));$$t.$k1.b.item(b,$$a.$ax.u(255,183,183,183));break;case 0:case 2:$$t.$k1.a.item(b,$$a.$ax.u(57,0,0,0));break;case 1:case 6:$$t.$k1.a.item(b,$$a.$ax.u(255,255,255,255));break;case 15:case 28:case 18:case 31:$$t.$k1.a.item(b,$$a.$ax.u(255,38,38,38));break;case 14:case 27:$$t.$k1.a.item(b,$$a.$ax.u(255,159,213,183));break;case 8:$$t.$k1.a.item(b,$$a.$ax.u(255,198,198,198));break;case 9:$$t.$k1.a.item(b,$$a.$ax.u(255,158,158,158));break;case 38:$$t.$k1.a.item(b,$$a.$ax.u(255,212,212,212));break;case 52:$$t.$k1.a.item(b,$$a.$ax.u(255,119,119,119));break;case 54:case 57:$$t.$k1.a.item(b,$$a.$ax.u(255,67,148,103));break;case 55:$$t.$k1.a.item(b,$$a.$ax.u(255,10,99,50));break;case 53:case 56:$$t.$k1.a.item(b,$$a.$ax.u(255,198,198,198));break;case 58:$$t.$k1.a.item(b,$$a.$ax.u(255,179,179,179));break;case 51:$$t.$k1.a.item(b,$$a.$ax.u(255,171,171,171));break;case 50:$$t.$k1.a.item(b,$$a.$ax.u(255,246,246,246));break;case 42:case 44:$$t.$k1.a.item(b,$$a.$ax.u(255,255,255,255));break;case 43:case 45:$$t.$k1.a.item(b,$$a.$ax.u(255,38,38,38));break;case 46:case 47:$$t.$k1.a.item(b,$$a.$ax.u(0,255,255,255));break;case 48:$$t.$k1.a.item(b,$$a.$ax.u(255,68,68,68));break;case 60:$$t.$k1.a.item(b,$$a.$ax.u(128,134,134,134));break;case 59:$$t.$k1.a.item(b,$$a.$ax.u(255,211,211,211));break;case 62:$$t.$k1.a.item(b,$$a.$ax.u(255,255,255,225));break;case 61:$$t.$k1.a.item(b,$$a.$ax.u(255,100,100,100));break;case 63:$$t.$k1.a.item(b,$$a.$ax.u(255,93,93,93));break;case 64:$$t.$k1.a.item(b,$$a.$ax.u(255,255,0,0));break;case 65:$$t.$k1.a.item(b,$$a.$ax.u(255,166,172,179));break;case 66:$$t.$k1.a.item(b,$$a.$ax.u(255,254,255,255));break;case 67:$$t.$k1.a.item(b,$$a.$ax.u(255,78,80,82));break;case 68:$$t.$k1.a.item(b,$$a.$ax.u(255,145,150,157));break;case 69:$$t.$k1.a.item(b,$$a.$ax.u(255,221,225,231));break;case 70:$$t.$k1.a.item(b,$$a.$ax.u(255,83,85,87));break;case 72:$$t.$k1.a.item(b,$$a.$ax.u(102,0,0,0));break;case 71:$$t.$k1.a.item(b,$$a.$ax.u(102,255,255,255));break}}},getDefaultColor:function(a){return $$t.$k1.d(a,false)},getDefaultColor2:function(a){return $$t.$k1.d(a,true)},d:function(a,b){var c=false==b?$$t.$k1.a:$$t.$k1.b;var d=new $$a.ax;var e=function(){var f=c.tryGetValue(a,d);d=f.p1;return f.ret}();if(e){return d}return $$a4.$k.gw},$type:new $.ig.Type("DefaultSpreadsheetColors",$.ig.$ot)},true);$c("SpreadsheetTabInfo:k2","PropertyChangeNotifierExtended",{_ad:null,_i:null,_g:null,_k:0,_ak:null,_o:false,_p:false,_m:false,_y:0,_w:0,_aj:null,_n:false,_q:false,_z:0,_am:null,init:function(a){this._ak=$$a4.$ii.c();this._am=new $$a.ae(4);$$ak.$s.init.call(this);$$ak.$c.z(a,"worksheet");this._i=a;this._ai()},e:function(a,b,c){if(a==this){switch(b){case"IsActive":case"IsSelected":case"ReverseZIndex":case"Index":this._af();break}}$$ak.$s.e.call(this,a,b,c)},_x:function(a){if(arguments.length===1){if(this._w!=a){this._w=a;this.a("ActualWidth")}return a}else{return this._w}},_color:function(a){if(arguments.length===1){if($$a.$ax.d(this._ak,a)){this._ak=a;this.a("Color")}return a}else{return this._ak}},_h:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(this._g,a)){this._g=a;this._color($$a4.$ah.l_op_Equality(this._g,null)?$$a4.$ii.c():this._g._getResolvedColor1(this._i.workbook()));this.a("ColorInfo")}return a}else{return this._g}},_ac:function(a){if(arguments.length===1){this._aj=a==null?null:new $$6.z(a);return a}else{return $$ak.$c.p(this._aj)}},_index:function(a){if(arguments.length===1){if(this._y!=a){this._y=a;this.a("Index")}return a}else{return this._y}},_isActive:function(a){if(arguments.length===1){if(this._m!=a){this._m=a;this.a("IsActive")}return a}else{return this._m}},_isEditing:function(a){if(arguments.length===1){if(this._n!=a){this._n=a;this.a("IsEditing")}return a}else{return this._n}},_isProtected:function(a){if(arguments.length===1){if(this._o!=a){this._o=a;this.a("IsProtected")}return a}else{return this._o}},_isSelected:function(a){if(arguments.length===1){if(this._p!=a){this._p=a;this.a("IsSelected")}return a}else{return this._p}},_an:function(){return this._am},_name:function(a){if(arguments.length===1){if(this._ad!=a){this._ad=a;this.a("Name")}return a}else{return this._ad}},_v:function(a){if(arguments.length===1){if(this._q!=a){this._q=a;this.a("ReverseZIndex")}return a}else{return this._q}},_visibility:function(a){if(arguments.length===1){if(this._k!=a){this._k=a;this.a("Visibility")}return a}else{return this._k}},_j:function(){return this._i},_ab:function(a){if(arguments.length===1){if(this._z!=a){this._z=a;this.a("ZIndex")}return a}else{return this._z}},_af:function(){var a=this._index();if(this._q){a*=-1}if(this._isSelected()){a+=1e4}if(this._isActive()){a+=5e4}this._ab(a)},_ag:function(a){this._am.x(a.x());this._am.y(a.y());this._am.width(a.width());this._am.height(a.height())},_ah:function(a,b,c){var d=this._i.workbook();if(d!=null){if(a){if(d.windowOptions().selectedWorksheet()!=this._i&&this._isSelected()){this._i._w(false)}else{this._i._w(true)}}else if(b){var e=this._i.index();var f=d.windowOptions().selectedWorksheet()==null?e:d.windowOptions().selectedWorksheet().index();var g=Math.min(e,f);var h=g==e?f:e;for(var i=0;i<d.worksheets().count();i++){var j=d.worksheets()._item(i);j._w(j.displayOptions().visibility()==0&&i>=g&&i<=h)}}else if(c==false&&this._i._w()){d.windowOptions()._ae(this._i,false)}else{var k=d.windowOptions().selectedWorksheet()!=this._i&&$$t.$dy.a3(this._i.workbook());d.windowOptions()._ae(this._i,k)}}},_ai:function(){this._name(this._i.name());this._h(this._i.displayOptions().tabColorInfo());this._visibility(this._i.displayOptions().visibility());this._isProtected(this._i.isProtected())},$type:new $.ig.Type("SpreadsheetTabInfo",$$ak.$s.$type)},true);$c("SpreadsheetTabItemLayoutManager$1:k3","Object",{$tVisual:null,g:null,i:null,x:null,k:false,c:null,ab:0,a:null,l:false,m:false,j:null,a5:null,init:function($tVisual){this.$tVisual=$tVisual;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tVisual)}$.ig.$op.init.call(this);this.i=new $$ak.n($$t.$k3.$type.specialize(this.$tVisual),this,this.ar.runOn(this),false);this.x=new $$4.x(this.$tVisual,0)},e:function(){return this.c},h:function(a){if(arguments.length===1){if(a!=this.g){var b=this.g;this.ah(true);var c=$$ak.$m.e($$t.$k4.$type,this.g,a,this.i,true);this.g=c.p0;this.au(b,a)}return a}else{return this.g}},w:function(){return this.x},au:function(a,b){},d:function(a){},a6:function(a,b,c){},n:function(){},an:function(){},av:function(){},aa:function(){},f:function(a){},az:function(a){},z:function(a){},y:function(){},ae:function(a,b){},ak:function(){},ai:function(){},al:function(){},a4:function(){},b:function(){},ax:function(){},o:function(a){},ay:function(a){},ad:function(a,b){var c=new $$a.ae(0,0,0,0,b);if(this.g!=null){this.g._aq(a)}if(this.x.count()>0){if(this.k&&this.g._activeTab()!=null){this.g._a4(this.g._activeTab()._index())}var d=Math.min(this.g._firstVisibleTabIndex(),this.x.count()-1);var e=this.x.count();var f=a;var g=0;var h=0;for(var i=d;i<e;i++){if(c.width()>0){c.x(c.x()+Math.max(c.width()+this.g._at(),0))}var j=this.x.__inner[i];var k=this.d(j);c.width(k._x());this.ae(j,c);k._ag(c);if(c.width()>0){h++;if(f<0){g++}}f-=c.width()}var l=c.right()>a&&(g>0||h>1);this.g._ac(l);c.x(0);for(var m=d-1;m>=0;m--){var n=this.x.__inner[m];var o=this.d(n);c.width(o._x());c.x(c.x()-Math.max(c.width()+this.g._at(),0));this.ae(n,c);o._ag(c)}this.g._ae(c.x()<0)}if(this.m){this.aw()}this.k=false},aj:function(){this.ak();this.ai()},a8:function(){var $self=this;var a=new $$a.af(0);var b=$$5.$e.g(this.$tVisual,$$t.$k2.$type,this.x,function(c){return $self.d(c)});this.x.clear();if(this.g!=null){var c=this.g._firstVisibleTabIndex();var e=this.g._tabs().getEnumerator();while(e.moveNext()){var d=e.current();var f;if(function(){var g=b.tryGetValue(d,f);f=g.p1;return g.ret}()){b.remove(d)}else{f=this.f(d);d._ac($e(this.$tVisual,f))}this.x.add(f)}this.a4();var h=this.x.getEnumerator();while(h.moveNext()){var g=h.current();var i=this.d(g);var j=i._visibility()==0?this.z(g):0;i._x(j);if(i._index()>=c){if(a.width()>0){a.width(a.width()+Math.max(j+this.g._at(),0))}else{a.width(a.width()+j)}}}a.height(this.y())}var l=b.getEnumerator();while(l.moveNext()){var k=l.current();this.az(k.value());if($.ig.$op.equalsStatic($e(this.$tVisual,k.value()),k.key()._ac())){k.key()._ac(null)}}return a},ao:function(){this.ah(true)},ap:function(){this.ag();this.af()},aq:function(a){this.ah(true)},q:function(a,b){var $self=this;this.af();var c=this.b();var d=this.d(b);if(c!=null&&d!=null){switch(a.a()){case 2:{if(!this.p(b)&&c._d7(true)&&c._v().focus()){d._ah(false,false,false);c._v().ShowTabContextMenu(d,a.h())}return true}case 1:{this.ag();if(a.e()==2&&c._bc().i()&&d._isActive()){this.ay(b);c._cz(113,null,$e(this.$tVisual,b))}else if(!this.p(b)&&!c._d7(true)){}else if(!c._v().focus()){}else{var e=a.g();var f=(e&2)==2;var g=(e&4)==4;if(f==false&&a.c()){this.a5=a.h();if(!this.o(b)){this.ag()}else{this.j=new $$t.c(function(){$self.at(b)},$$t.$dy.co())}}d._ah(f,g,true)}return true}}}return false},r:function(a){if(this.c!=null){this.ah(false);return true}return false},s:function(a){if(this.c!=null){var b=a.h();this.m=true;var c=this.ab;if(b.__x<0){this.a1(true);this.ab=this.g._firstVisibleTabIndex()}else if(b.__x>this.aa()){this.a1(false);this.ab=this.g._ay()+1}else{this.a3();this.ab=this.ac(b.__x)}if(c!=this.ab){this.aw()}return true}return false},t:function(a,b){if(this.j!=null&&$$a.$y.l_op_Inequality(this.a5,null)){var c=a.h();var d=this.a5;if(Math.abs(c.__x-d.__x)>16||Math.abs(c.__y-d.__y)>16){this.a2(b)}return true}return false},u:function(a,b){if(this.j!=null||$$a.$y.l_op_Inequality(this.a5,null)){this.af();this.ay(b);return true}return false},a7:function(a,b){var c;var d=0;if(this.ab<this.g._firstVisibleTabIndex()){c=this.x.__inner[this.g._firstVisibleTabIndex()]}else if(this.ab>=this.x.count()){c=$$5.$e.ah(this.$tVisual,this.x);d=this.d(c)._x()}else{c=this.x.__inner[this.ab]}var e=this.a6(c,d,0).__x;return new $$a.ae(0,e-a/2,(-b),a,b)},af:function(){if(this.j!=null){this.j.c();this.j=null}},ag:function(){this.a5=null},ah:function(a){if(this.c!=null){var b=this.ab;var c=this.c;this.ab=-1;this.m=false;this.c=null;this.ax();this.a3();this.al();if(!a){var d=this.g._y();if(d!=null){var e=$$5.$e.a($$t.$k2.$type,$$5.$e.y($$t.$k2.$type,$$0.$aw.$type,this.g._j(),function(f){return f._index()}));var f=b!=c._index()&&b!=c._index()+1;if(f){for(var h=0;h<e.length;h++){var g=e[h];if(g._index()<b){b--}g._j().moveToIndex(b)}var i=this.g._activeTab();if(i!=null){if(this.g._j().count()>1){var j=$$5.$e.a($$t.$k2.$type,this.g._j());for(var l=0;l<j.length;l++){var k=j[l];if(k!=i){k._j()._w(false)}}}this.v(i)}}}}}},ac:function(a){var b=Math.min(this.g._firstVisibleTabIndex(),this.x.count()-1);var c=this.x.count();var d=0;var e=0;for(var f=b;f<c;f++){e+=Math.max(d+this.g._at(),0);var g=this.x.__inner[f];d=this.d(g)._x();if(d>0&&a<=e+d){return f}}return this.x.count()},p:function(a){var b=this.d(a);return b!=null&&b==this.g._p()},am:function(a,b){var c=this.b();if(c==null){return}if(this.l&&this.g._ae()){c._cz(106,null,null);this.m=true;this.ab=this.g._firstVisibleTabIndex()}else if(!this.l&&this.g._ac()){c._cz(105,null,null);this.m=true;this.ab=this.g._ay()+1}},as:function(a,b,c){switch(b!=null?b:""){case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(this.g._af(a)||this.g._ag(a)){this.ak();this.ai()}break;case"FirstVisibleTabIndex":case"InterTabSpacing":if(a==this.h()){this.af();this.ak();this.ai()}break;case"ActiveTab":if(a==this.h()){this.k=true;this.ai()}break;case"Visibility":if($b($$t.$k2.$type,a)!==null){this.ak();this.ai()}break}},ar:function(a,b,c,d){a.as(b,c,d)},at:function(a){this.a2(a)},aw:function(){this.m=false;this.av()},v:function(a){if(a!=null){if(a._isActive()){this.k=true;this.ai();return true}else if(a!=null){this.g._a4(a._index())}}return false},a0:function(a,b){this.ah(true);this.c=this.d(a);this.ab=this.c._index();if(!this.n()){this.c=null}else if(this.c!=null){this.an();this.aw()}},a1:function(a){this.l=a;if(this.a==null){this.a=new $$t.ad;this.a.g(250);var b=this.a;b.tick=$.ig.Delegate.prototype.combine(b.tick,this.am.runOn(this))}if(this.a.b()==false){this.a.k()}},a2:function(a){var b=this.a5;this.af();this.ay(a);var c=this.d(a);if(c!=null){if(c._j().workbook()==null||c._j().workbook().protection().allowEditStructure()==false){return}}var d=this.b();if(d!=null&&d._d7(true)){this.a0(a,b)}},a3:function(){if(this.a!=null){this.a.l()}},$type:new $.ig.Type("SpreadsheetTabItemLayoutManager$1",$.ig.$ot)},true);$c("SpreadsheetTabManager:k4","PropertyChangeNotifierExtended",{_l:null,_x:null,_u:null,_am:null,_g:null,_i:null,_m:null,_r:null,_h:null,_s:null,_n:null,_t:null,_v:0,_z:false,_av:0,_au:0,_ap:0,_an:0,_ao:0,_q:0,init:function(a){this._ap=-1;$$ak.$s.init.call(this);this._l=a;var b=$$ak.$m.e($$t.$oh.$type.specialize($$t.$k2.$type),this._g,new $$t.oh($$t.$k2.$type,0),this,false);this._g=b.p0;this._i=new $$ak.u($$t.$k2.$type,this._g);this._u=new $$t.b(this._bd.runOn(this));this._am=new $$4.x($$a4.$gm.$type,0);var c=$$ak.$m.e($$t.$k7.$type,this._r,new $$t.k7(this),this,false);this._r=c.p0;this._h=new $$ak.u($$t.$k2.$type,this._r);this._s=new $$t.k8(this._i);this._t=new $$t.k9(this._i)},e:function(a,b,c){switch(b!=null?b:""){case"FirstVisibleTabIndex":if(a==this&&this._x!=null){this._x.windowOptions().firstVisibleTabIndex(this._firstVisibleTabIndex())}break;case"Width":if(a==this&&this._x!=null){this._x.windowOptions().tabBarWidth(this._width())}break;case"Add":case"Remove":case"Replace":case"Move":case"Reset":if(a==this._g){this._s._q();this._t._q()}break;case"ZIndex":if($b($$t.$k2.$type,a)!==null){this._t._q()}break;case"Visibility":if($b($$t.$k2.$type,a)!==null){this._t._q()}break}$$ak.$s.e.call(this,a,b,c)},_activeTab:function(a){if(arguments.length===1){if(this._m!=a){if(this._m!=null){this._m._isActive(false)}this._m=a;if(this._m!=null){this._m._isActive(true)}this.a("ActiveTab");if(this._x!=null){if(a!=null){this._x.windowOptions()._ae(a._j(),false)}}}return a}else{return this._m}},_aq:function(a){if(arguments.length===1){if(this._an!=a){this._an=a;this.a("ActualWidth")}return a}else{return this._an}},_as:function(a){if(arguments.length===1){if(this._ao!=a){this._ao=a;this.a("ExtraAvailableWidth")}return a}else{return this._ao}},_firstVisibleTabIndex:function(a){if(arguments.length===1){if(this._au!=a){this._au=a;this.a("FirstVisibleTabIndex")}return a}else{return this._au}},_at:function(a){if(arguments.length===1){if(!$.ig.util.isNaN(a)){if(this._ap!=a){this._ap=a;this.a("InterTabSpacing")}}return a}else{return this._ap}},_ac:function(a){if(arguments.length===1){this._aj(32,a);return a}else{return this._aa(32)}},_ae:function(a){if(arguments.length===1){this._aj(64,a);return a}else{return this._aa(64)}},_isVisible:function(a){if(arguments.length===1){if(this._z!=a){this._z=a;this.a("IsVisible")}return a}else{return this._z}},_ai:function(a){if(arguments.length===1){if(this._aj(256,a)){this._ba(16)}return a}else{return this._aa(256)}},_j:function(){return this._h},_w:function(a){if(arguments.length===1){if(this._v!=a){this._v=a;this.a("ScrollBars")}return a}else{return this._v}},_p:function(a){if(arguments.length===1){if(a!=this._n){var b=this._n;this._n=a;if(b!=null){b._isEditing(false)}if(this._n!=null){this._n._isEditing(true)}this.a("TabInEdit")}return a}else{return this._n}},_tabs:function(){return this._i},_visibleTabs:function(){return this._s},_width:function(a){if(arguments.length===1){if(this._av!=a){this._av=a;this.a("Width")}return a}else{return this._av}},_y:function(a){if(arguments.length===1){if(a!=this._x){this._x=a;this._ba(15)}return a}else{return this._x}},_al:function(){return this._t},_a4:function(a){if(a<this._firstVisibleTabIndex()){this._firstVisibleTabIndex(a)}else{var b=this._az(this._aq()+this._as());if(b<a){this._firstVisibleTabIndex(this._ax(a))}}},_a5:function(a){if(this._x==null){return}this._bd();var b=this._au;var c=this._m!=null?this._m._index():-1;switch(a){case 5:this._firstVisibleTabIndex(this._a0(b+1,true,b));break;case 4:this._firstVisibleTabIndex(this._a0(b-1,false,b));break;case 2:this._firstVisibleTabIndex(this._a0(0,true,b));break;case 3:var d=this._ax(this._tabs().count()-1);if(this._firstVisibleTabIndex()<d||this._firstVisibleTabIndex()>=this._tabs().count()){this._firstVisibleTabIndex(d)}break;case 7:this._a2(this._az(this._aq())+1,true,false);break;case 6:this._a2(this._firstVisibleTabIndex()-1,false,false);break;case 8:this._a2(c+1,true,false);break;case 9:this._a2(c-1,false,false);break;case 10:this._a2(c+1,true,true);break;case 11:this._a2(c-1,false,true);break;case 0:this._a3(1,c+1);break;case 1:this._a3(Math.max(this._r.count(),1),Math.max(c,0));break;case 12:{this._r.beginUpdate();this._r.clear();var f=this._i.getEnumerator();while(f.moveNext()){var e=f.current();if(e._visibility()==0){this._r.add(e)}}this._r.endUpdate();this._bb(4,true)}break;case 13:{var g=this._m;this._r.beginUpdate();this._r.clear();if(this._m!=null){this._r.add(this._m)}this._r.endUpdate();this._bb(4,true)}break;case 14:{var h=this._x.worksheets();var i=$$5.$e.a($$a4.$jk.$type,$$5.$e.o($$t.$k2.$type,$$a4.$jk.$type,this._h,function(j){return j._j()}));var j=c;var k=j;for(var m=0;m<i.length;m++){var l=i[m];if(l.index()<j){k--}}for(var o=0;o<i.length;o++){var n=i[o];h.remove(n)}if(h.count()>0){var p=$$5.$e.ag($$a4.$jk.$type,$$5.$e.r($$a4.$jk.$type,h,k),function(q){return q.displayOptions().visibility()==0});if(p==null){for(var q=k-1;q>=0;q--){if(h._item(q).displayOptions().visibility()==0){p=h._item(q);break}}}if(p!=null){this._x.windowOptions().selectedWorksheet(p)}}break}}},_ay:function(){return this._az(this._aq())},_a0:function(a,b,c){if(a>=0&&a<this._i.count()){var d=b?this._i.count():-1;var e=b?1:-1;for(var f=a;f!=d;f+=e){if(this._i.item(f)._visibility()==0){return f}}}return c},_af:function(a){return a==this._r||a==this._h},_ag:function(a){return a==this._i||a==this._g},_a6:function(a){if($$t.$k4._ad(a.a)){this._am.add(a);this._u.m()}},_a7:function(a){this._p(a)},_a8:function(){this._p(null)},_bd:function(){var $self=this;this._u.i();this._a9();this._g.beginUpdate();this._r.beginUpdate();if(this._aa(1)){this._bb(1,false);this._bb(2|4|16,true);this._be()}if(this._aa(2)){if(this._x==null){this._activeTab(null)}else{this._l._i0();this._activeTab($$5.$e.ag($$t.$k2.$type,this._i,function(a){return a._j()==$self._x.windowOptions().selectedWorksheet()}))}this._bb(4,true);this._bb(2,false)}if(this._aa(4)){this._bb(4,false);var a=false;var c=this._i.getEnumerator();while(c.moveNext()){var b=c.current();if(b._isSelected()!=b._j()._w()){a=true;break}}if(a){var d=$$5.$e.a($$t.$k2.$type,$$5.$e.u($$t.$k2.$type,this._i,function(e){return e._j()._w()}));this._r._reInitialize(d)}else{var e=$$5.$e.a($$t.$k2.$type,$$5.$e.x($$t.$k2.$type,$$0.$aw.$type,this._r,function(f){return f._j().index()}));if(!$$ak.$c.d($$t.$k2.$type,e,this._r,null)){this._r._reInitialize(e)}}if(this._m!=null&&!this._r.contains(this._m)){this._r.clear();if(this._m!=null){this._r.add(this._m)}}}if(this._aa(16)){for(var f=0,g=this._i.count();f<g;f++){var h=this._i.item(f);h._ai();h._index(f);h._v(this._ai())}this._bb(16,false)}if(this._aa(8)){this._bc()}this._g.endUpdate();this._r.endUpdate()},_a2:function(a,b,c){var d=this._a0(a,b,-1);if(d<0){return}this._x.windowOptions()._ae(this._i.item(d)._j(),false);if(c){var e=this._i.item(d);if(!e._isSelected()){this._r.add(e);this._ba(4)}}this._a4(d)},_a3:function(a,b){var c=0;var d=this._x.sheets();var e=this._x.worksheets();var g=d.getEnumerator();while(g.moveNext()){var f=g.current();c=Math.max(c,f._am())}var h=b;var i=1;if(b>=0&&b<e.count()){b=e._item(b).sheetIndex()}else if(b>0&&b==e.count()){b=e._item(b-1).sheetIndex()+1}for(var j=0;j<a;j++){c++;var k=null;do{i++;k=this._l._fs("NewSheetName",[i])}while(d.exists(k));d._insert(b,k,c,0);b++}this._bd();this._a2(h,true,false)},_aa:function(a){return(this._q&a)!=0},_ax:function(a){var b=this._aq();var c=a;for(var d=a;d>=0;d--){var e=this._tabs().item(d)._x();if(c!=a){e=Math.max(e+this._at(),0)}if(e>b){break}if(e>0){b-=e;a=d}}return a},_az:function(a){var b=this._i.count();var c=this._firstVisibleTabIndex();for(;c<b;c++){var d=Math.max(this._i.item(c)._x()+this._at(),0);if(d>a){return Math.max(c-1,this._firstVisibleTabIndex())}a-=d}return Math.min(c,b-1)},_ab:function(){var a=this._x!=null?this._x.worksheets().count():0;if(this._g.count()!=a){return true}if(a==0){return false}var b=this._x.worksheets();for(var c=0,d=this._g.count();c<d;c++){if(this._g.__inner[c]._j()!=b._item(c)){return true}}return false},_ad:function(a){switch(a){case 91:case 92:case 35:case 87:case 9:case 90:case 65:case 86:return true;default:return false}},_a9:function(){var a=false;var b=false;var c=false;var d=false;var e=false;var g=this._am.getEnumerator();while(g.moveNext()){var f=g.current();switch(f.a){case 91:case 92:e=a=true;break;case 35:switch(f.c){case"Reset":case"Visibility":e=b=c=true;break;case"TabColorInfo":b=true;break;case"IsTabSelected":c=true;break}break;case 87:if(f.c=="WorksheetMoved"){e=a=true}break;case 90:case 9:case 65:switch(f.c){case"Name":case"IsProtected":b=true;break;case"IsTabSelected":c=true;break;case"TabColorInfo":b=true;break}break;case 86:switch(f.c){case"Reset":d=c=true;break;case"SelectedSheet":c=true;this._bb(128,true);break;case"ScrollBars":case"TabBarVisible":case"TabBarWidth":case"FirstVisibleTabIndex":d=true;break}break}}this._am.clear();if(a){this._bb(1,true)}if(c){this._bb(2|4,true)}if(b){this._bb(16,true)}if(d){this._bb(8,true)}if(e){this._s._q()}},_ba:function(a){if((this._q&a)!=a){this._bb(a,true);this._u.m()}},_bb:function(a,b){if(b){this._q|=a}else{this._q&=~a}},_aj:function(a,b){var c=this._q;if(b){c|=a}else{c&=~a}if(c==this._q){return false}this._q=c;this.a($$t.$k6.$getName(a));return true},_bc:function(){this._bb(8,false);this._w(this._x!=null?this._x.windowOptions().scrollBars():0);this._isVisible(this._x!=null&&this._x.windowOptions().tabBarVisible());if(this._x!=null){this._width(this._x.windowOptions().tabBarWidth());this._firstVisibleTabIndex(this._x.windowOptions().firstVisibleTabIndex())}},_be:function(){this._g.beginUpdate();if(this._ab()){var a=new $$4.h($$a4.$jk.$type,$$t.$k2.$type,0);var c=this._g.getEnumerator();while(c.moveNext()){var b=c.current();a.item(b._j(),b)}this._g.clear();if(this._x!=null){var e=this._x.worksheets().getEnumerator();while(e.moveNext()){var d=e.current();var f;if(!function(){var g=a.tryGetValue(d,f);f=g.p1;return g.ret}()){f=new $$t.k2(d)}this._g.add(f)}}}this._g.endUpdate()},$type:new $.ig.Type("SpreadsheetTabManager",$$ak.$s.$type)},true);$c("SpreadsheetTabManager_SelectedTabsCollection:k7","ObservableCollectionExtended$1",{_a5:null,init:function(a){$$t.$oh.init.call(this,$$t.$k2.$type,0);this._a5=a},_ai:function(){return true},_au:function(a){a._j()._w(true);a._isSelected(true);$$t.$oh._au.call(this,a)},_ax:function(a){if(this._a5._y()!=null){a._j()._w(false)}a._isSelected(false);$$t.$oh._ax.call(this,a)},$type:new $.ig.Type("SpreadsheetTabManager_SelectedTabsCollection",$$t.$oh.$type.specialize($$t.$k2.$type))},true);$c("SpreadsheetTabManager_VisibleTabsCollection:k8","LazyReadOnlyNotifyCollection$1",{_p:null,init:function(a){$$t.$od.init.call(this,$$t.$k2.$type);this._p=a},_o:function(a){a.clear();var c=this._p.getEnumerator();while(c.moveNext()){var b=c.current();if(b._visibility()==0){a.add(b)}}},_q:function(){this._h()},$type:new $.ig.Type("SpreadsheetTabManager_VisibleTabsCollection",$$t.$od.$type.specialize($$t.$k2.$type))},true);$c("SpreadsheetTabManager_ZIndexTabsCollection:k9","LazyReadOnlyNotifyCollection$1",{_p:null,init:function(a){$$t.$od.init.call(this,$$t.$k2.$type);this._p=a},_o:function(a){a.clear();var c=$$5.$e.x($$t.$k2.$type,$$0.$aw.$type,this._p,function(d){return d._ab()}).getEnumerator();while(c.moveNext()){var b=c.current();a.add(b)}},_q:function(){this._h()},$type:new $.ig.Type("SpreadsheetTabManager_ZIndexTabsCollection",$$t.$od.$type.specialize($$t.$k2.$type))},true);$c("IWorksheetUndoUnit:lc","Object",{$type:new $.ig.Type("IWorksheetUndoUnit",null)},true);$c("SpreadsheetUndoTransaction:la","UndoTransaction",{_an:null,_ah:null,_ak:null,_aj:0,_al:null,init:function(a,b,c,d,e){$$ak.$ak.init.call(this,null,null);$$ak.$c.z(b,"sheet");this._an=a==null?null:new $$6.z(a);this._al=d;this._aj=c;this._ah=e;this._ak=b},k:function(a){return new $$t.la(this._ai(),this._ak,this._aj,this._al,this._ah)},b:function(a){var b=this._ai();if(b!=null){b._iu()}try{var c=$$ak.$ak.b.call(this,a);var d=this._ak.workbook();if(d!=null){d.windowOptions().selectedSheet(this._ak)}return c}finally{if(b!=null){b._id(true)}}},e:function(a,b){var c="Undo_"+$$t.$fr.getBox(this._aj);var d=this._am(this._ah);return $$t.$dy.dl(this._ai(),c,[d,this._al])},_ai:function(){return $b($$t.$c3.$type,$$ak.$c.p(this._an))},_am:function(a){var b=this._ak.workbook();var c=b!=null?b.cellReferenceMode():1;return $$t.$d1._ag(a,c,",")},sheet:function(){return this._ak},$type:new $.ig.Type("SpreadsheetUndoTransaction",$$ak.$ak.$type,[$$t.$lc.$type])},true);$c("SpreadsheetSelectionUndoTransaction:lb","SpreadsheetUndoTransaction",{_ap:null,_ao:null,init:function(a,b,c,d,e,f,g){$$t.$la.init.call(this,a,b,c,d,e);$$ak.$c.z(g,"setSelection");this._ap=g;this._ao=f},k:function(a){return new $$t.lb(this._ai(),this._ak,this._aj,this._al,this._ah,this._ao,this._ap)},b:function(a){var b=this._ai();if(b!=null){b._iu()}try{var c=$$t.$la.b.call(this,a);this._ap(this._ao,false);return c}finally{if(b!=null){b._id(true)}}},$type:new $.ig.Type("SpreadsheetSelectionUndoTransaction",$$t.$la.$type)},true);$c("WorkbookUndoUnitBase:ld","UndoUnit",{init:function(){$$ak.$al.init.call(this)},sheet:function(){},$type:new $.ig.Type("WorkbookUndoUnitBase",$$ak.$al.$type,[$$t.$lc.$type])},true);$c("WorkbookUndoUnit$2:le","WorkbookUndoUnitBase",{$tContext:null,$tValue:null,_g:null,_h:null,_k:null,_i:null,_j:null,init:function($tContext,$tValue,a,b,c){this.$tContext=$tContext;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tContext,this.$tValue)}$$t.$ld.init.call(this);this._g=a;this._h=b;this._i=c;this._k=c.l(a);this._j=c.k(a)},b:function(a){this._i.y(this._g,this._h);return false},e:function(a,b){return $$t.$dy.dd($$t.$dy.y(this._k),this._i.a,this._i.c)},d:function(){return this._k},sheet:function(){return this._j},$type:new $.ig.Type("WorkbookUndoUnit$2",$$t.$ld.$type)},true);$c("WorksheetUndoTransaction:lf","UndoTransaction",{init:function(a){$$ak.$ak.init.call(this,a,a)},k:function(a){return new $$t.lf(this.y())},b:function(a){var b=$$ak.$ak.b.call(this,a);var c=null;if($b($$t.$lc.$type,this)!==null){c=this.sheet()}else{for(var d=0;d<this.units().count();d++){var e=$b($$t.$lc.$type,this.units().item(d));if(e!=null){c=e.sheet();break}}}if(c!=null){var f=c.workbook();if(f!=null){f.windowOptions().selectedSheet(c)}}return b},$type:new $.ig.Type("WorksheetUndoTransaction",$$ak.$ak.$type)},true);$c("ISpreadsheetVisualDataManager:lg","Object",{$type:new $.ig.Type("ISpreadsheetVisualDataManager",null)},true);$c("SpreadsheetVisualDataManager:lh","Object",{init:function(){$.ig.$op.init.call(this)},exportVisualData:function(a){var b=new $$t.n3;var c=a._a8();var d=a._v().getLayoutManager();var f=c._rowItems().getEnumerator();while(f.moveNext()){var e=f.current();b.rowHeaderAreas().add(this.b(a,e))}var h=c._columnItems().getEnumerator();while(h.moveNext()){var g=h.current();b.columnHeaderAreas().add(this.b(a,g))}var j=c._panes().getEnumerator();while(j.moveNext()){var i=j.current();b.cellAreas().add(this.a(a,i))}b.tabArea(this.c(a));return b},c:function(a){var b=a._bf();if(!b._isVisible()){return null}var c=new $$t.oa;var d=a._v()._getTabItemAreaRect$i();c.relativeBounds(new $.ig.RectData(d.x(),d.y(),d.width(),d.height()));var f=b._visibleTabs().getEnumerator();while(f.moveNext()){var e=f.current();var g=e._an();var h=new $$t.ob;h.sheetIndex(e._j().sheetIndex());h.isActive(e._isActive());h.isEditing(e._isEditing());h.isProtected(e._isProtected());h.isSelected(e._isSelected());h.color($.ig.ColorData.prototype.a_1(e._color()));h.relativeBounds(new $.ig.RectData(g.x(),g.y(),g.width(),g.height()));c.tabs().add(h)}return c},a:function(a,b){var c=new $$t.n6;var d=a._v()._getPaneRect$i(b);c.relativeBounds(new $.ig.RectData(d.x(),d.y(),d.width(),d.height()));this.d(b.columnScrollRegion(),false,c.columns());this.d(b.rowScrollRegion(),false,c.rows());return c},b:function(a,b){var c=new $$t.n4;var d=a._v()._getRect$i(b);c.relativeBounds(new $.ig.RectData(d.x(),d.y(),d.width(),d.height()));this.d(b,true,c.items());return c},d:function(a,b,c){var d=b?a._l():a._m();var f=d.getEnumerator();while(f.moveNext()){var e=f.current();var g=new $$t.n8;g.index(e._index());g.offset(a._b4()(e._offset())*a._bx());g.extent(a._b4()(e._extent())*a._bx());c.add(g)}},$type:new $.ig.Type("SpreadsheetVisualDataManager",$.ig.$ot,[$$t.$lg.$type])},true);$c("FormulaBarButtonAreaElement:li","VisualElement",{cf:null,cg:null,init:function(a){$$t.$au.init.call(this,a,"FormulaBarButtonContainer");this.cf=new $$t.af(this,"FormulaBarCancelButton");this.cg=new $$t.af(this,"FormulaBarEnterButton");var b=a.g($$t.$ma.$type).d6;b._ib(this.cf,78);b._ib(this.cg,75)},b7:function(a,b,c,d){var e=a;this.cf.al(e,b,this.cf.a3,d);e+=this.cf.a3;this.cg.al(e,b,this.cg.a3,d);e+=this.cg.a3;$$t.$au.b7.call(this,a,b,c,d)},$type:new $.ig.Type("FormulaBarButtonAreaElement",$$t.$au.$type)},true);$c("FormulaBarNameBoxAreaElement:lj","VisualElement",{cf:null,init:function(a){$$t.$au.init.call(this,a,"FormulaBarNameBoxContainer");this.cf=new $$t.lk(this);var b=this.cf;b.valueChanged=$.ig.Delegate.prototype.combine(b.valueChanged,this.cg.runOn(this))},b7:function(a,b,c,d){this.cf.al(a,b,c,d);$$t.$au.b7.call(this,a,b,c,d)},cg:function(a,b){var c=this.g($$t.$ma.$type);if(c!=null){var d=c.cp();if(!c.d6._dw(this.cf.co(),d!=null&&(d._bh&4)!=0,d!=null&&(d._bh&2)!=0)){this.cf.co(c.d6._ft())}}},$type:new $.ig.Type("FormulaBarNameBoxAreaElement",$$t.$au.$type)},true);$c("ComboBoxVisualElement:ag","VisualElement",{cj:null,cf:false,cm:null,cg:false,init:function(a,b){$$t.$au.init.call(this,a,b)},bz:function(){if($b($$4.$ac.$type,this.cj)!==null){var a=this.cj;a.collectionChanged=$.ig.Delegate.prototype.remove(a.collectionChanged,this.cp.runOn(this))}$$t.$au.bz.call(this)},ck:function(a){if(arguments.length===1){if(a!=this.cj){if($b($$4.$ac.$type,this.cj)!==null){var b=this.cj;b.collectionChanged=$.ig.Delegate.prototype.remove(b.collectionChanged,this.cp.runOn(this))}this.cj=a;if($b($$4.$ac.$type,this.cj)!==null){var c=this.cj;c.collectionChanged=$.ig.Delegate.prototype.combine(c.collectionChanged,this.cp.runOn(this))}this.ch(true)}return a}else{return this.cj}},ch:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;if(a){this.b1()}}return a}else{return this.cf}},co:function(a){if(arguments.length===1){if(a!=this.cm){this.cm=a;this.ci(true)}return a}else{return this.cm}},ci:function(a){if(arguments.length===1){if(a!=this.cg){this.cg=a;if(a){this.b1()}}return a}else{return this.cg}},cp:function(a,b){this.ch(true)},cq:function(){var a=this.valueChanged;if(a!=null){a(this,$$0.$w.empty)}},valueChanged:null,$type:new $.ig.Type("ComboBoxVisualElement",$$t.$au.$type)},true);$c("FormulaBarNameBoxElement:lk","ComboBoxVisualElement",{cr:null,init:function(a){$$t.$ag.init.call(this,a,"ComboBox")},$type:new $.ig.Type("FormulaBarNameBoxElement",$$t.$ag.$type)},true);$c("AdjustableVisualElement:ae","VisualElement",{cf:false,
cn:null,co:null,init:function(a,b){$$t.$au.init.call(this,a,b)},x:function(){return true},b4:function(){$$t.$au.b4.call(this);this.ci(true)},ad:function(a){if(!this.cf&&a.a()==1){if(!this.cg()){return false}var b=a.h();if(a.d()){this.cf=true;this.co={__x:b.__x,__y:b.__y,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this.cn={__x:b.__x+this.ax,__y:b.__y+this.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this.cm();return true}}return $$t.$au.ad.call(this,a)},ag:function(a){if(this.cf){var b=a.h();var c=b.__x+this.ax-this.cn.__x;var d=b.__y+this.a2-this.cn.__y;if(c!=0||d!=0){this.cl(c,d)}}return $$t.$au.ag.call(this,a)},ah:function(a){if(this.cf){var b=a.h();var c=b.__x+this.ax-this.cn.__x;var d=b.__y+this.a2-this.cn.__y;this.ci(false);this.ck(c,d)}return $$t.$au.ah.call(this,a)},ch:function(){return this.cf},ci:function(a){if(this.cf){this.cf=false;this.cn=this.co=null;var b=this.g($$t.$an.$type);if(b!=null){b.d0(this)}if(a){this.cj()}}},cg:function(){return true},cm:function(){},cj:function(){},ck:function(a,b){},cl:function(a,b){},$type:new $.ig.Type("AdjustableVisualElement",$$t.$au.$type)},true);$c("FormulaBarNameBoxSplitter:ll","AdjustableVisualElement",{cq:0,cp:0,init:function(a){$$t.$ae.init.call(this,a,"FormulaBarNameBoxSplitter")},cm:function(){var a=this.g($$t.$lo.$type);var b=a.g($$t.$ma.$type);this.cq=b.d6.nameBoxWidth();this.cp=Math.max(this.cq,a.a4()-(this.a3+a.cf.a1()+a.ci.az()));$$t.$ae.cm.call(this)},ck:function(a,b){},cl:function(a,b){var c=this.g($$t.$ma.$type);c.d6.nameBoxWidth(Math.max(Math.min(this.cq+a,this.cp),102))},ad:function(a){if(a.a()==1){if(a.e()==2){var b=this.g($$t.$ma.$type);if(b!=null){b.d6.executeCommand(169);return true}}}return $$t.$ae.ad.call(this,a)},$type:new $.ig.Type("FormulaBarNameBoxSplitter",$$t.$ae.$type)},true);$c("FormulaBarTextAreaElement:lm","VisualElement",{cf:null,cg:null,ch:0,ci:0,init:function(a){this.ci=3;$$t.$au.init.call(this,a,"FormulaBarTextAreaContainer");this.cg=new $$t.aj(this,"ToggleButton");this.cf=new $$t.ai(this,"TextBox");var b=this.cf;b.textChanged=$.ig.Delegate.prototype.combine(b.textChanged,this.ck.runOn(this));var c=this.cg;c.isCheckedChanged=$.ig.Delegate.prototype.combine(c.isCheckedChanged,this.cj.runOn(this));this.cl()},ad:function(a){var b=this.g($$t.$ma.$type).d6;if(b.isInEditMode()&&a.a()==2){return b._at().i(5,this,a.h(),null)}return $$t.$au.ad.call(this,a)},b7:function(a,b,c,d){this.cg.al(a+c-this.cg.a3,b,this.cg.a3,this.cg.av);this.cf.al(a,b,c-this.cg.a3,d);$$t.$au.b7.call(this,a,b,c,d)},cj:function(a,b){if(this.cg.cl()){var c=this.ci;var d=this.__parent.co();if(c>d){this.ci=d}}this.cl();this.__parent.cr()},ck:function(a,b){var c=this.g($$t.$ma.$type);if(c!=null){c.d6._hd(this.cf.co())}},cl:function(){var a=this.cg.cl()?this.ci:1;this.cf.cl(a)},$type:new $.ig.Type("FormulaBarTextAreaElement",$$t.$au.$type)},true);$c("FormulaBarTextAreaSplitter:ln","AdjustableVisualElement",{cp:false,cs:0,cq:0,cr:0,init:function(a){$$t.$ae.init.call(this,a,"FormulaBarTextBoxSplitter")},cm:function(){var a=this.__parent;this.cp=a.ci.cg.cl();this.cs=a.ci.ci;this.cq=a.ci.av;this.cr=Math.max(this.cs,a.co());$$t.$ae.cm.call(this)},ck:function(a,b){var c=this.__parent;if(!c.ci.cg.cl()){c.ci.ci=this.cs}},cl:function(a,b){var c=this.__parent;var d=Math.min(c.cn(b+this.cq),this.cr);if(d<=1){c.ci.ci=this.cs;c.ci.cg.cl(false)}else{c.ci.ci=d;c.ci.cg.cl(true)}c.ci.cl();c.cr()},$type:new $.ig.Type("FormulaBarTextAreaSplitter",$$t.$ae.$type)},true);$c("FormulaBarVisualElement:lo","VisualElement",{cg:null,cf:null,cj:null,ch:null,ci:null,cm:0,ck:0,cl:0,init:function(a){$$t.$au.init.call(this,a,"FormulaBar");this.cg=new $$t.lj(this);this.ch=new $$t.ll(this);this.cf=new $$t.li(this);this.ci=new $$t.lm(this);this.cj=new $$t.ln(this);this.cp();this.ac(a.d6.isFormulaBarVisible());this.ck=a.d6.nameBoxWidth();this.cg.cf.u(!a.d6.isDisabled());this.cg.cf.ck(a.d6._ef());this.cg.cf.co(a.d6._ft());var b=a.d6;b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.cq.runOn(this))},bz:function(){var a=this.__parent;if(a!=null){var b=a.d6;b.propertyChanged=$.ig.Delegate.prototype.remove(b.propertyChanged,this.cq.runOn(this))}$$t.$au.bz.call(this)},co:function(){var a=this.g($$t.$ma.$type);var b=a.d6._ad().ax();var c=a.d7.av-b;return this.cn(this.ci.av+c)},cp:function(){var a=this.__parent.d6._a1;this.ch.a3=a.ap.width();this.cg.h=a.c;this.cf.h=a.a;this.cf.cg.a3=a.am.width();this.cf.cf.a3=a.al.width();this.cj.av=a.ao.height();this.ci.ch=a.o-a.n;this.ci.cg.a3=a.an.width();this.ci.cg.av=a.an.height();this.h=a.b;this.cr()},cq:function(a,b){switch(b.propertyName()){case"IsFormulaBarVisible":this.ac(a.isFormulaBarVisible());break;case"NameBoxWidth":this.ck=a.nameBoxWidth();this.t(true);break;case"NameBoxValue":this.cg.cf.co(a._ft());break}},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);var e=this.ck;var f=a;this.cg.al(f,b,e,this.cm);f+=e;this.ch.al(f,b,this.ch.a3,this.cm);f+=this.ch.a3;var g=this.cf.au(this.cf.cf.a3+this.cf.cg.a3);this.cf.al(f,b,g,this.cm);f+=g;this.ci.al(f,b,Math.max(c+a-f,0),d-this.cj.av);this.cj.al(a,Math.max(b,b+d-this.cj.av),c,this.cj.av)},b8:function(){var a=this.__parent;var b=a.d6;b.propertyChanged=$.ig.Delegate.prototype.remove(b.propertyChanged,this.cq.runOn(this));$$t.$au.b8.call(this)},cr:function(){var a=this.__parent.d6._a1;var b=this.cg.at(a.l);var c=a.ap.height();var d=this.cf.at(Math.max(a.am.height(),a.al.height()));var e=this.ci.at(Math.max(a.m,a.an.height()));var f=Math.max(Math.max(b,c),Math.max(d,e));this.cm=f;var g=a.m;if(this.ci.cg.cl()){g+=(a.o-a.n)*(this.ci.ci-1)}g=this.ci.at(g);f+=this.cj.av;g+=this.cj.av;var h=this.cl;this.cl=Math.max(this.at(f),this.at(g));if(h!=this.cl&&this.__parent!=null){this.__parent.t(true)}},cn:function(a){var b=this.cm;var c=a-b;if(c<=0){return 1}else{return 1+$.ig.truncate(Math.floor(c/this.ci.ch))}},$type:new $.ig.Type("FormulaBarVisualElement",$$t.$au.$type)},true);$c("LayerVisualElement:lp","VisualElement",{init:function(a,b){$$t.$au.init.call(this,a,b)},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);this.cf(new $$a.af(1,c,d))},cf:function(a){},cg:function(a){},$type:new $.ig.Type("LayerVisualElement",$$t.$au.$type)},true);$c("RendererVisualElement$1:lq","LayerVisualElement",{$tGraphics:null,cn:null,ci:null,init:function($tGraphics,a,b){this.$tGraphics=$tGraphics;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tGraphics)}$$t.$lp.init.call(this,a,b);this.cn=new $$a.ae(4)},b5:function(){this.ck();this.t(true);$$t.$lp.b5.call(this)},an:function(a,b,c,d){var e=this.a3;var f=this.av;var g=$$t.$lp.an.call(this,a,b,c,d);if(g&&(e!=this.a3||f!=this.av)){this.ck()}return g},ch:function(){return this.cn.width()>0||this.cn.height()>0},co:function(){return this.cn},ck:function(){if(this.cn.x()!=this.ax||this.cn.y()!=this.a2||this.cn.width()!=this.a3||this.cn.height()!=this.av){this.cn.x(this.ax);this.cn.y(this.a2);this.cn.width(this.a3);this.cn.height(this.av);this.b1()}},cl:function(a,b,c){this.cm(a,b,this.cn,c);this.cn.width(0);this.cn.height(0)},cm:function(a,b,c,d){},$type:new $.ig.Type("RendererVisualElement$1",$$t.$lp.$type)},true);$c("RendererLayerVisualElement$2:lr","RendererVisualElement$1",{$tViewModel:null,$tGraphics:null,cq:null,init:function($tViewModel,$tGraphics,a,b){this.$tViewModel=$tViewModel;this.$tGraphics=$tGraphics;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tViewModel,this.$tGraphics)}$$t.$lq.init.call(this,this.$tGraphics,a,b);this.cq=new $$4.x($$t.$bu.$type.specialize(this.$tViewModel,this.$tGraphics),0)},cf:function(a){for(var b=0,c=this.cq.count();b<c;b++){this.cq.__inner[b]._g(a)}},bz:function(){var a=new $$4.x($$t.$bu.$type.specialize(this.$tViewModel,this.$tGraphics),1,this.cq);var c=a.getEnumerator();while(c.moveNext()){var b=c.current();b.dispose();b._d().detach(b)}$$t.$lq.bz.call(this)},cg:function(a){for(var b=0,c=this.cq.count();b<c;b++){this.cq.__inner[b]._h(a)}},cr:function(a){this.cq.add(a);this.t(true);this.ck()},cp:function(){return this.cq},cm:function(a,b,c,d){for(var e=0,f=this.cq.count();e<f;e++){this.cq.__inner[e]._q(a,b,c,d)}},cs:function(a){this.cq.remove(a);this.ck()},$type:new $.ig.Type("RendererLayerVisualElement$2",$$t.$lq.$type.specialize(1))},true);$c("RendererLayerVisualElementView$1:ls","ElementLayerViewSingle",{$tViewModel:null,c:null,init:function($tViewModel,a){this.$tViewModel=$tViewModel;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tViewModel)}$$t.$bs.init.call(this);this.c=a},arrange:function(a){a=$.ig.util.sizeFromLiteral(a)},createRenderer:function(){return this},invalidateArrange:function(){this.c.t(true)},invalidateLayout:function(){this.c.l(true)},invalidateMeasure:function(){this.c.t(true)},invalidateRender:function(){this.c.ck()},measure:function(a){a=$.ig.util.sizeFromLiteral(a)},onUnloaded:function(){},releaseRenderer:function(a){},$type:new $.ig.Type("RendererLayerVisualElementView$1",$$t.$bs.$type,[$$t.$bt.$type.specialize(0,$$t.$dq.$type),$$t.$bv.$type])},true);$c("SpreadsheetAreaVisualElement:lt","VisualElement",{cf:null,init:function(a){$$t.$au.init.call(this,a,"SpreadsheetArea")},ai:function(a,b,c){if(this.cf.c()!=null){this.cf.c()._d1(b*-3,!c&&a.g()==2,c);return true}return $$t.$au.ai.call(this,a,b,c)},ag:function(a){if(a.b()){this.cf.dj(a.h());return true}return $$t.$au.ag.call(this,a)},ah:function(a){if(a.b()){this.cf.dk();return true}return $$t.$au.ah.call(this,a)},b4:function(){this.cf.cc();$$t.$au.b4.call(this)},an:function(a,b,c,d){var e=$$t.$au.an.call(this,a,b,c,d);if(e){this.cf.cx()}return e},$type:new $.ig.Type("SpreadsheetAreaVisualElement",$$t.$au.$type)},true);$c("SpreadsheetIconElement:lu","VisualElement",{cf:0,ch:false,cj:null,init:function(a){$$t.$au.init.call(this,a,"Icon")},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;this.ci(true)}return a}else{return this.cf}},ci:function(a){if(arguments.length===1){if(a!=this.ch){this.ch=a;if(a){this.b1()}}return a}else{return this.ch}},an:function(a,b,c,d){var e=this.a3;var f=this.av;var g=$$t.$au.an.call(this,a,b,c,d);if(g&&(e!=this.a3||f!=this.av)){this.ci(true)}return g},$type:new $.ig.Type("SpreadsheetIconElement",$$t.$au.$type)},true);$c("SpreadsheetInplaceBackgroundElement:lv","VisualElement",{cf:null,ch:false,cm:null,ci:false,cl:null,init:function(a){$$t.$au.init.call(this,a,"InplaceBackground");this.w(false)},an:function(a,b,c,d){var e=$$t.$au.an.call(this,a,b,c,d);if(e){this.cj(true)}return e},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;this.cj(true)}return a}else{return this.cf}},cn:function(a){if(arguments.length===1){if($$a.$ae.l_op_Inequality(a,this.cm)){this.cm=a;this.ck(true)}return a}else{return this.cm}},cj:function(a){if(arguments.length===1){if(a!=this.ch){this.ch=a;if(a){this.b1()}}return a}else{return this.ch}},ck:function(a){if(arguments.length===1){if(a!=this.ci){this.ci=a;if(a){this.b1()}}return a}else{return this.ci}},$type:new $.ig.Type("SpreadsheetInplaceBackgroundElement",$$t.$au.$type)},true);$c("SpreadsheetInplaceEditorElement:lw","VisualElement",{dd:null,cm:false,ct:false,cu:false,c8:null,cl:false,df:null,cq:false,ch:null,cn:false,cf:0,cp:false,cj:0,cr:false,db:null,co:false,c5:0,cs:false,init:function(a){this.cu=true;this.db=new $$a.ax;$$t.$au.init.call(this,a,"InplaceEditor");this.w(this.c3())},ad:function(a){var b=this.g($$t.$ma.$type).d6;if(b.isInEditMode()&&a.a()==2){return b._at().i(4,this,a.h(),null)}return $$t.$au.ad.call(this,a)},c9:function(a){if(arguments.length===1){if(a!=this.c8){this.c8=a;this.cv(true)}return a}else{return this.c8}},de:function(a){if(arguments.length===1){if($$a.$ae.l_op_Inequality(a,this.dd)){this.dd=a;this.cw(true)}return a}else{return this.dd}},ci:function(a){if(arguments.length===1){if(this.ch!=a){this.ch=a;this.cx(true)}return a}else{return this.ch}},dc:function(a){if(arguments.length===1){if($$a.$ax.d(this.db,a)){this.db=a;this.cy(true)}return a}else{return this.db}},cv:function(a){if(arguments.length===1){if(a!=this.cl){this.cl=a;if(a){this.b1()}}return a}else{return this.cl}},cw:function(a){if(arguments.length===1){if(a!=this.cm){this.cm=a;if(a){this.b1()}}return a}else{return this.cm}},cx:function(a){if(arguments.length===1){if(a!=this.cn){this.cn=a;if(a){this.b1()}}return a}else{return this.cn}},cy:function(a){if(arguments.length===1){if(a!=this.co){this.co=a;if(a){this.b1()}}return a}else{return this.co}},cz:function(a){if(arguments.length===1){if(a!=this.cp){this.cp=a;if(a){this.b1()}}return a}else{return this.cp}},c0:function(a){if(arguments.length===1){if(a!=this.cq){this.cq=a;if(a){this.b1()}}return a}else{return this.cq}},c1:function(a){if(arguments.length===1){if(a!=this.cr){this.cr=a;if(a){this.b1()}}return a}else{return this.cr}},c2:function(a){if(arguments.length===1){if(a!=this.cs){this.cs=a;if(a){this.b1()}}return a}else{return this.cs}},cg:function(a){if(arguments.length===1){if(this.cf!=a){this.cf=a;this.cz(true)}return a}else{return this.cf}},c3:function(a){if(arguments.length===1){if(a!=this.ct){this.ct=a;this.c4(true)}return a}else{return this.ct}},c4:function(a){if(arguments.length===1){if(a!=this.cu){this.cu=a;this.w(this.c3());if(a){this.b1()}}return a}else{return this.cu}},dg:function(a){if(arguments.length===1){if(this.df!=a){this.df=a;this.c0(true)}return a}else{return this.df}},ck:function(a){if(arguments.length===1){if(this.cj!=a){this.cj=a;this.c1(true)}return a}else{return this.cj}},c6:function(a){if(arguments.length===1){if(this.c5!=a){this.c5=a;this.c2(true)}return a}else{return this.c5}},da:function(){var a=this.cellValueChanged;if(a!=null){a(this,$$0.$w.empty)}},cellValueChanged:null,$type:new $.ig.Type("SpreadsheetInplaceEditorElement",$$t.$au.$type)},true);$c("SpreadsheetInputMessageElement:lx","VisualElement",{cl:null,ck:null,ch:false,cj:0,ci:0,cf:null,cg:null,init:function(a){$$t.$au.init.call(this,a,"InputMessage");this.cg=new $$t.au(this,"InputMessageTitle");this.cf=new $$t.au(this,"InputMessageBody");this.cg.q(false);this.cf.q(false)},cm:function(a,b){this.ch=this.ch||a!=this.cl||b!=this.ck;this.cl=a;this.ck=b;if(this.ch){this.b1()}},x:function(){return true},ad:function(a){if(a.a()==1){if(a.e()==2){this.__parent.cf.dh();return true}else{var b=a.h();var c={__x:b.__x+this.ax,__y:b.__y+this.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this.__parent.cf.eb(b,c);return true}}return $$t.$au.ad.call(this,a)},$type:new $.ig.Type("SpreadsheetInputMessageElement",$$t.$au.$type)},true);$c("SpreadsheetInvalidDataElement:ly","VisualElement",{cl:null,cf:false,cj:0,cg:false,init:function(a){$$t.$au.init.call(this,a,"InvalidData")},cm:function(a){if(arguments.length===1){if(a!=this.cl){this.cl=a;this.ch(true)}return a}else{return this.cl}},ch:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;if(a){this.b1()}}return a}else{return this.cf}},ck:function(a){if(arguments.length===1){if(a!=this.cj){this.cj=a;this.ci(true)}return a}else{return this.cj}},ci:function(a){if(arguments.length===1){if(a!=this.cg){this.cg=a;if(a){this.b1()}}return a}else{return this.cg}},an:function(a,b,c,d){var e=this.a3;var f=this.av;var g=$$t.$au.an.call(this,a,b,c,d);if(g&&(e!=this.a3||f!=this.av)){this.ch(true)}return g},$type:new $.ig.Type("SpreadsheetInvalidDataElement",$$t.$au.$type)},true);$c("SpreadsheetPaneSplitterElement:lz","VisualElement",{cf:0,init:function(a,b){$$t.$au.init.call(this,a,"PaneSplitter");this.cf=b},x:function(){return true},ad:function(a){var b=a.h();var c={__x:b.__x+this.ax,__y:b.__y+this.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};if(this.__parent.cf.ak(this.cf,a,c)){return true}return $$t.$au.ad.call(this,a)},ag:function(a){if(this.__parent.cf.al(a)){return true}return $$t.$au.ag.call(this,a)},ah:function(a){this.__parent.cf.dq(a);return $$t.$au.ah.call(this,a)},b4:function(){this.__parent.cf.dp();$$t.$au.b4.call(this)},$type:new $.ig.Type("SpreadsheetPaneSplitterElement",$$t.$au.$type)},true);$c("SpreadsheetSelectAllButtonElement:l0","VisualElement",{cf:false,init:function(a){$$t.$au.init.call(this,a,"SelectAllButton")},x:function(){return true},ad:function(a){var b=this.__parent.cf.c();if(b._dv(a,this)){return true}return $$t.$au.ad.call(this,a)},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;this.s(a)}return a}else{return this.cf}},$type:new $.ig.Type("SpreadsheetSelectAllButtonElement",$$t.$au.$type)},true);$c("SpreadsheetShapeVisualElementBase:l1","VisualElement",{cf:null,ch:false,cj:0,cl:0,init:function(a,b){$$t.$au.init.call(this,a,b)},cm:function(a){if(arguments.length===1){if(a!=this.cl){this.cl=a;this.ci(true)}return a}else{return this.cl}},ck:function(a){if(arguments.length===1){if(a!=this.cj){this.cj=a;this.ci(true)}return a}else{return this.cj}},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;this.ci(true)}return a}else{return this.cf}},ci:function(a){if(arguments.length===1){if(a!=this.ch){this.ch=a;if(a){this.b1()}}return a}else{return this.ch}},$type:new $.ig.Type("SpreadsheetShapeVisualElementBase",$$t.$au.$type)},true);$c("SpreadsheetShapeVisualElement:l2","SpreadsheetShapeVisualElementBase",{co:null,cn:null,init:function(a){$$t.$l1.init.call(this,a,"Shape")},an:function(a,b,c,d){var e=this.a3;var f=this.av;var g=$$t.$l1.an.call(this,a,b,c,d);if(g&&(e!=this.a3||f!=this.av)){this.ci(true)}return g},$type:new $.ig.Type("SpreadsheetShapeVisualElement",$$t.$l1.$type)},true);$c("SpreadsheetChartVisualElement:l3","SpreadsheetShapeVisualElementBase",{cn:null,cp:null,cr:null,cq:null,co:null,init:function(a,b,c){$$t.$l1.init.call(this,a,"Chart");this.cn=c;this.cp=b},bz:function(){$$t.$l1.bz.call(this);this.cs()},cs:function(){if(this.cq!=null){var a=this.co;var b=this.cq;this.cq=null;this.co=null;if(a!=null){a.i()}b.rootWrapper().remove();if(a!=null){a.h()}}},$type:new $.ig.Type("SpreadsheetChartVisualElement",$$t.$l1.$type)},true);$c("SpreadsheetTabAreaSplitterElement:l4","VisualElement",{init:function(a){$$t.$au.init.call(this,a,"TabAreaSplitter")},x:function(){return true},ad:function(a){var b=a.h();var c={__x:b.__x+this.ax,__y:b.__y+this.a2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};if(this.__parent.cf.an(b,c)){return true}return $$t.$au.ad.call(this,a)},$type:new $.ig.Type("SpreadsheetTabAreaSplitterElement",$$t.$au.$type)},true);$c("SpreadsheetTabItemAreaElement:l5","VisualElement",{ci:null,cl:null,ck:null,cj:null,cg:null,cm:null,cf:null,ch:null,co:0,cp:0,init:function(a,b){$$t.$au.init.call(this,a,b);this.ci=new $$t.af(this,"TabScrollFirst");this.cl=new $$t.am(this,"TabScrollPrev");this.ck=new $$t.am(this,"TabScrollNext");this.cj=new $$t.af(this,"TabScrollLast");this.cg=new $$t.af(this,"TabActivatePrev");this.cm=new $$t.l8(this);this.cf=new $$t.af(this,"TabActivateNext");this.ch=new $$t.af(this,"AddWorksheetButton");var c=a.g($$t.$ma.$type).d6;c._ib(this.ci,107);c._ib(this.cl,106);c._ib(this.ck,105);c._ib(this.cj,108);c._ib(this.cg,109);c._ib(this.cf,110);c._ib(this.ch,99)},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);var e=this.cm.cf;var f=this.cp;if(!this.ch.ac()){f-=this.ch.a3}var g=Math.min(c-f,e.a8().width());e.ad(g,d);var h=a;h=this.cn(h,b,d,this.ci);h=this.cn(h,b,d,this.cl);h=this.cn(h,b,d,this.ck);h=this.cn(h,b,d,this.cj);h=this.cn(h,b,d,this.cg);this.cm.al(h,b,g,d);h+=g;h=this.cn(h,b,d,this.cf);if(this.ch.ac()){h=this.cn(h,b,d,this.ch)}},an:function(a,b,c,d){var e=$$t.$au.an.call(this,a,b,c,d);var f=this.cm.cf.a8().width();if(f!=this.cm.a3){this.t(true)}return e},cq:function(){var a=[this.ci,this.cj,this.ck,this.cl,this.cf,this.cg,this.ch];var b=this.__parent;var c=b.cf.c()._a1;var d=[c.ac,c.ae,c.ag,c.ai,c.g,c.i,c.k];var e=[c.ab,c.ad,c.af,c.ah,c.f,c.h,c.j];var f=0;var g=0;for(var h=0;h<a.length;h++){a[h].a3=d[h];a[h].av=e[h];g+=d[h];if(e[h]>f){f=e[h]}}this.cp=g;this.co=f;this.t(true);b.cf.cx()},cn:function(a,b,c,d){var e=d.a3;d.al(a,b,e,c);return a+e},$type:new $.ig.Type("SpreadsheetTabItemAreaElement",$$t.$au.$type)},true);$c("SpreadsheetTabItemElement:l6","VisualElement",{co:0,cf:null,cl:0,cw:0,cm:null,cn:null,init:function(a,b){this.co=31;this.cw=-1;$$t.$au.init.call(this,a,"SheetTabItem");this.cf=b;b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.cy.runOn(this))},x:function(){return true},cz:function(a,b){var c=this.co;if(b){c|=a}else{c&=~a}if(c!=this.co){this.co=c;this.b1()}},ck:function(a){if(arguments.length===1){this.cz(1,a);return a}else{return(this.co&1)!=0}},ci:function(a){if(arguments.length===1){this.cz(2,a);return a}else{return(this.co&2)!=0}},cj:function(a){if(arguments.length===1){this.cz(4,a);return a}else{return(this.co&4)!=0}},cg:function(a){if(arguments.length===1){this.cz(8,a);return a}else{return(this.co&8)!=0}},ch:function(a){if(arguments.length===1){this.cz(16,a);return a}else{return(this.co&16)!=0}},cx:function(){if(this.__parent!=null){this.__parent.cf.aj()}},cy:function(a,b){if(String.isNullOrEmpty(b.propertyName())){this.cw=-1;this.cz(31,true);this.cx()}else{switch(b.propertyName()){case"Name":this.cw=-1;this.ch(true);this.cx();break;case"Color":this.cg(true);break;case"IsActive":this.ci(true);break;case"IsSelected":this.ck(true);break;case"IsProtected":this.cj(true);this.cx();break}}},b4:function(){this.__parent.cf.ap();$$t.$au.b4.call(this)},ad:function(a){if(this.__parent.cf.q(a,this)){return true}return $$t.$au.ad.call(this,a)},ag:function(a){if(this.__parent.cf.t(a,this)){return true}return $$t.$au.ag.call(this,a)},ah:function(a){return this.__parent.cf.u(a,this)},bz:function(){var a=this.cf;a.propertyChanged=$.ig.Delegate.prototype.remove(a.propertyChanged,this.cy.runOn(this));$$t.$au.bz.call(this)},$type:new $.ig.Type("SpreadsheetTabItemElement",$$t.$au.$type)},true);$c("SpreadsheetTabItemElementLayoutManager:l7","SpreadsheetTabItemLayoutManager$1",{ba:null,bb:0,bc:0,a9:null,init:function(a){this.bc=0;$$t.$k3.init.call(this,$$t.$l6.$type);this.ba=a},b:function(){return this.ba.__parent.__parent.cf.c()},ae:function(a,b){a.am(b)},bd:function(){this.bc++},n:function(){return this.ba.d().cr(this.ba)},o:function(a){return this.ba.d().cr(a)},f:function(a){return new $$t.l6(this.ba,a)},y:function(){var a=this.b();return a!=null?a._a1.y:0},z:function(a){return a.cl},a6:function(a,b,c){return{__x:a.ax+b,__y:a.a2+c,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},d:function(a){return a.cf},aa:function(){return this.ba.a3},ai:function(){if(this.ba.__parent!=null){this.ba.__parent.t(true)}var a=this.b();if(a!=null){a.scheduleArrange()}},ak:function(){if(this.ba.__parent!=null){this.ba.__parent.t(true)}var a=this.b();if(a!=null){a.scheduleArrange()}},al:function(){var a=this.a9;this.a9=null;if(a!=null){a.ab(true)}this.ba.bw(null)},an:function(){if(this.a9==null){this.a9=new $$t.au(this.ba.__parent.__parent,"TabDropIndicator");this.a9.w(false);this.a9.bu(2e4)}this.ba.bw($$t.$ee.a(4))},au:function(a,b){},av:function(){var a=this.a7(0,0);this.a9.al(a.x()+this.ba.ax+this.ba.__parent.ax,a.y()+this.ba.a2+this.ba.__parent.a2,0,0)},ax:function(){this.ba.d().d0(this.ba)},ay:function(a){this.ba.d().d0(a)},az:function(a){a.ab(true)},a4:function(){var a=0;var b=this.h()._tabs();var c=this.b();for(var d=0,e=b.count();d<e;d++){var f=b.item(d)._ac();if(f!=null&&f.cf._visibility()==0){if(f.cw!=this.bc&&c!=null){f.cl=c._a0().j(f.cf,null,false);f.cw=this.bc}a+=f.cl}}this.bb=a},$type:new $.ig.Type("SpreadsheetTabItemElementLayoutManager",$$t.$k3.$type.specialize($$t.$l6.$type))},true);$c("SpreadsheetTabItemPanel:l8","VisualElement",{cf:null,init:function(a){$$t.$au.init.call(this,a,"TabItemPanel");this.cf=new $$t.l7(this)},b4:function(){this.cf.ao();$$t.$au.b4.call(this)},ad:function(a){this.cf.aq(a);return $$t.$au.ad.call(this,a)},ag:function(a){if(this.cf.s(a)){return true}return $$t.$au.ag.call(this,a)},ah:function(a){if(a.a()==1){return this.cf.r(a)}return $$t.$au.ah.call(this,a)},$type:new $.ig.Type("SpreadsheetTabItemPanel",$$t.$au.$type)},true);$c("SpreadsheetElementIds:l9","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("SpreadsheetElementIds",$.ig.$ot)},true);$c("RootVisualElement:an","VisualElement",{co:null,ci:null,ch:null,c9:null,c1:new Date,c5:0,d4:null,d3:null,cg:null,cj:null,c2:0,c3:0,cf:null,init:function(a){this.c1=$$0.$s.minValue();this.d4=new $$a.y(0);this.d3=new $$a.y(0);$$t.$au.init.call(this,null,a);$$t.$an.c6++;this.c9="VisualElementTreeWindow"+$$t.$an.c6},bz:function(){$$t.$au.bz.call(this);this.cp(null)},an:function(a,b,c,d){var e=$$t.$au.an.call(this,a,b,c,d);if(e&&this.co!=null){this.co._bk.x(a);this.co._bk.y(b);this.co._bk.width(c);this.co._bk.height(d)}return e},c4:null,ck:function(){return this.cj},cp:function(a){if(arguments.length===1){if(a!=this.co){var b=this.co;if(this.co!=null){this.cz(false);var c=this.co;c.onFlingStarted=$.ig.Delegate.prototype.remove(c.onFlingStarted,this.cu.runOn(this));var d=this.co;d.onMouseEnter=$.ig.Delegate.prototype.remove(d.onMouseEnter,this.dm.runOn(this));var e=this.co;e.onMouseLeave=$.ig.Delegate.prototype.remove(e.onMouseLeave,this.dn.runOn(this));var f=this.co;f.onMouseWheel=$.ig.Delegate.prototype.remove(f.onMouseWheel,this.cw.runOn(this));this.co._an=this.c4;var g=this.co;g.onContactCompleted=$.ig.Delegate.prototype.remove(g.onContactCompleted,this.de.runOn(this));var h=this.co;h.onContactMoved=$.ig.Delegate.prototype.remove(h.onContactMoved,this.df.runOn(this));var i=this.co;i.onContactStarted=$.ig.Delegate.prototype.remove(i.onContactStarted,this.dg.runOn(this));var j=this.co;j.onDoubleTap=$.ig.Delegate.prototype.remove(j.onDoubleTap,this.di.runOn(this))}this.co=a;if(this.ci!=null){this.d0(this.ci)}if(a!=null){this.c4=this.co._an;this.co._an=this.c0.runOn(this);var k=this.co;k.onFlingStarted=$.ig.Delegate.prototype.combine(k.onFlingStarted,this.cu.runOn(this));var l=this.co;l.onMouseEnter=$.ig.Delegate.prototype.combine(l.onMouseEnter,this.dm.runOn(this));var m=this.co;m.onMouseLeave=$.ig.Delegate.prototype.combine(m.onMouseLeave,this.dn.runOn(this));var n=this.co;n.onMouseWheel=$.ig.Delegate.prototype.combine(n.onMouseWheel,this.cw.runOn(this));var o=this.co;o.onContactCompleted=$.ig.Delegate.prototype.combine(o.onContactCompleted,this.de.runOn(this));var p=this.co;p.onContactMoved=$.ig.Delegate.prototype.combine(p.onContactMoved,this.df.runOn(this));var q=this.co;q.onContactStarted=$.ig.Delegate.prototype.combine(q.onContactStarted,this.dg.runOn(this));var r=this.co;r.onDoubleTap=$.ig.Delegate.prototype.combine(r.onDoubleTap,this.di.runOn(this));this.co._bk=new $$a.ae(0,this.ax,this.a2,this.a3,this.av)}this.dj(b,a)}return a}else{return this.co}},cs:function(){return this.ci!=null},_ct:false,cq:false,cz:function(a){if(arguments.length===1){if(a!=this.cq){this.cq=a}return a}else{return this.cq}},cr:function(a){this.ci=a;this.cz(true);a.b2();return true},da:function(a){if(this.cf!=null){var b=this.cf;this.cf=null;b.b.c();if(b.a==1){this.ds(b.c)}else{if(a){this.dl(b.d)}}}},cm:function(a,b,c,d,e){if(a==null){return null}var f=b.__x;var g=b.__y;var h=a;while(h!=null){f-=h.ax;g-=h.a2;h=h.__parent}return new $$t.aw(this,c,this.co,f,g,a,d,e)},cn:function(a,b,c,d){var e=this.e(a.__x,a.__y,true);return this.cm(e,a,b,c,d)},cl:function(a,b){var c=this.c7(a);var d=this.c7(b);if(c==0||d==0){return null}while(c>d){a=a.__parent;c--}while(d>c){b=b.__parent;d--}while(b!=a){b=b.__parent;a=a.__parent}return a},c7:function(a){var b=0;while(a!=null){b++;a=a.__parent}return b},c8:function(a){return null},dc:function(a,b){},db:function(a){console.log(a)},dd:function(a){},dh:function(a){this.cv(a,2,1,0,null)},de:function(a,b){var c=this.cf!=null&&this.cf.a==1;this.da(true);if(!c){this.dq(a)}},df:function(a,b){if(this.cf!=null){var c=a.__x-this.cf.d.__x;var d=a.__y-this.cf.d.__y;if(this.cf.a==0){if(c>=16||d>=16||c<=-16||d<=-16){this.d1()}}if(this.cf.a==1){this.cf.d.__x=a.__x;this.cf.d.__y=a.__y;this.dy(this.cf.c,c,d)}}if(this.cf==null){this.dp(a,true,b)}},dg:function(a,b){var $self=this;this.da(false);var c=b?this.c8(a):null;if(c!=null){this.cf=new $$t.ao(a.__x,a.__y,c);this.cf.b=new $$t.c(function(){if($self.cf.a==0){var d=$self.cf;$self.cf=null;$self.dl(d.d)}},500)}else{this.dl(a)}},di:function(a){this.da(false);this.c5=2;this.cv(a,1,this.c5,0,null)},dj:function(a,b){},cu:function(a,b,c){if(this.cf!=null){this.d1();return true}return false},dk:function(){if(this.cj!=null){this.cj=null;this.cg.ac(false)}},cv:function(a,b,c,d,e){this.dd(d);var f=d==0;if(this.ci!=null&&this!=this.ci.d()){this.d0(this.ci)}var g=this.ci!=null?this.cm(this.ci,a,b,c,f):this.cn(a,b,c,f);this.dz(a,g);if(g!=null){var h=g.h();var i=h.__x;var j=h.__y;var k=g.l();while(k!=null){switch(d){case 1:if(k.ag(g)){return true}break;case 0:if(k.ad(g)){return true}break;case 2:if(k.ah(g)){return true}break;case 3:case 4:if(k.ai(g,e,d==4)){return true}break}i+=k.ax;j+=k.a2;g.r(i,j,k.__parent);k=k.__parent}}return false},dl:function(a){if(this.cx(a)){return}var b=$$0.$s.now();if(Math.abs(a.__x-this.d4.__x)<8&&Math.abs(a.__y-this.d4.__y)<8&&$.ig.util.timeSpanTotalMilliseconds(b-this.c1)<500){this.c5++}else{this.c5=1;this.c1=b;this.d4.__x=a.__x;this.d4.__y=a.__y}var c=this.co._ak?2:1;this.cv(a,c,this.c5,0,null)},dp:function(a,b,c){this.cv(a,0,0,1,null)},dn:function(a){if(!this.cq){this.dz(a,null)}},dm:function(a){if(!this.cq){var b=this.cn(a,0,0,false);this.dz(a,b)}},dq:function(a){var b=this.co._ak?2:1;this.dr(a,b)},dr:function(a,b){if(this.ci==null&&this.cp()!=null&&this.cp()._bk.containsPoint(a)&&!this.cp()._an(a)){return}this.cv(a,b,1,2,null)},cw:function(a,b){b*=10;if(this.cy(a,b)){return true}var c=3;if(this.cp()!=null&&this.cp()._ar!=null){var d=$$t.$dy.c4(this.cp()._ar);if((d.deltaX||d.wheelDeltaX)&&!(d.deltaY||d.wheelDeltaY)){c=4}}return this.cv(a,0,1,c,b)},cx:function(a){return false},cy:function(a,b){return false},ds:function(a){},dt:function(a){},du:function(a,b,c,d,e){this.cj=a;if(this.cg==null){this.cg=new $$t.ak(this,"ToolTip");this.cg.bu(1e4)}this.c2=c;this.c3=d;this.cg.cq(b);this.cg.cr(e);var f=a;while(f!=this){c+=f.ax;d+=f.a2;f=f.__parent}this.cg.al(c,d,NaN,NaN);this.cg.ac(true)},dx:function(a){},dw:function(a){},dv:function(a){},dy:function(a,b,c){},dz:function(a,b){if($$a.$y.l_op_Inequality(a,this.d3)){this.d3.__x=a.__x;this.d3.__y=a.__y}this._ct=false;var c=this.ch;var d=b;var e=d!=null?d.l():null;if(e==c){return}var f=this.cl(c,e);var g=new $$4.aa($$t.$au.$type);if(d==null){d=new $$t.aw(this,0,this.co,a.__x,a.__y,this,0,false)}var h=d.h().__x;var i=d.h().__y;var j=h;var k=i;var l=d.l();this.ch=e;while(e!=null&&e!=f){g.push(e);h+=e.ax;i+=e.a2;e=e.__parent}var m=h;var n=i;var o=c;while(o!=null&&o!=f){m-=o.ax;n-=o.a2;o=o.__parent}while(c!=null&&c!=f){d.r(m,n,c);c.af(d);c.y(false);m+=c.ax;n+=c.a2;c=c.__parent}while(g.count()>0){var p=g.pop();d.r(h,i,p);p.y(true);p.ae(d);h+=p.ax;i+=p.a2}d.r(j,k,l)},d0:function(a){if(this.ci==a){this.ci=null;this.cz(false);a.b4()}},c0:function(a){if(this.cs()){return true}if(this.c4!=null&&!this.c4(a)){return false}return true},d1:function(){if(this.cf!=null&&this.cf.a!=1){this.cf.a=1;this.dt(this.cf.c)}},d2:function(){var a=this.ch==null?null:this.cn(this.d3,0,0,false);this.dz(this.d3,a)},$type:new $.ig.Type("RootVisualElement",$$t.$au.$type)},true);$c("SpreadsheetVisualElement:ma","RootVisualElement",{d6:null,d7:null,d5:null,init:function(a){$$t.$an.init.call(this,"Spreadsheet");this.d6=a;this.d5=new $$t.lo(this);this.d5.bu(1e3);this.d7=new $$t.lt(this)},c8:function(a){var b=this.e(a.__x,a.__y,false);var c=$b($$t.$dn.$type.specialize($$t.$i3.$type),b);if(c==null){c=b.g($$t.$dn.$type.specialize($$t.$i3.$type))}if(c!=null){var d=c.cg().view();return $$6.$w.a($$t.$i4.$type,$$t.$i2.$type,d.rowScrollRegion(),d.columnScrollRegion())}return null},dd:function(a){if(this.d6.activeWorksheet()==null||this.d6.activeWorksheet().workbook()==null){this.d6._fy(false);
}$$t.$an.dd.call(this,a)},dj:function(a,b){$$t.$an.dj.call(this,a,b);if(a!=null){a.onKeyDown=$.ig.Delegate.prototype.remove(a.onKeyDown,this.d8.runOn(this))}if(b!=null){b.onKeyDown=$.ig.Delegate.prototype.combine(b.onKeyDown,this.d8.runOn(this))}},cx:function(a){if(this.d6._at().g()){this.d6._at().n(true);return true}return $$t.$an.cx.call(this,a)},cy:function(a,b){if(this.d6._at().g()){this.d6._at().n(true)}return $$t.$an.cy.call(this,a,b)},ds:function(a){var b=a;b._c._x()._a8();b._d._x()._a8()},dt:function(a){var b=a;b._c._x()._a7();b._d._x()._a7()},dy:function(a,b,c){var d=a;var e=d._c;var f=d._d;var g=f._b5()(b/f._bx());var h=e._b5()(c/e._bx());f._x()._az(f._x()._offset()-g);e._x()._az(e._x()._offset()-h)},b7:function(a,b,c,d){$$t.$an.b7.call(this,a,b,c,d);var e=b;if(this.d5.ac()){var f=this.d5.cl;f+=d%1;this.d5.al(a,e,c,f);e+=f;d=Math.max(d-f,0)}this.d7.al(a,e,c,d)},d8:function(a){var b=this.cp()._bh;var c=$$t.$dy.c4(this.cp()._ar);return this.d6._dy(a,b,c)},$type:new $.ig.Type("SpreadsheetVisualElement",$$t.$an.$type)},true);$c("FilterDialogManager:mb","Object",{a:null,e:null,c:null,b:null,j:null,h:null,f:null,g:null,k:null,i:null,init:function(a,b){$.ig.$op.init.call(this);this.c=a;this.a=b},q:function(){var $self=this;var a=this.l(1);var b=this.l(2);var c=this.n(1);var d=this.n(2);var e=this.d();this.c._gi(43,function(){$self.a.aa(a,c,b,d,e)},null,false,null,true,false)},r:function(){var $self=this;var a;var b=this.c.css;this.e=document.createElement("div");this.e.className=b.filterDialog;this.e.id="FilterDialog_Main_Content_Element";var c=document.createElement("div");c.innerText=this.o("FilterDialog_ShowRowsWhere");c.className=b.filterDialogShowRowsWhere;this.e.appendChild(c);var d=document.createElement("div");d.id="lblColumnName";d.innerText=this.a.w();d.className=b.filterDialogColumnName;this.e.appendChild(d);var e=document.createElement("div");e.className=b.filterDialogCondition1;this.e.appendChild(e);this.j=document.createElement("select");this.j.id="cboOperator1";e.appendChild(this.j);this.h=document.createElement("select");this.h.id="cboOperand1";e.appendChild(this.h);var f=document.createElement("div");f.className=b.filterDialogConditionalOperator;this.e.appendChild(f);var g=document.createElement("label");f.appendChild(g);this.f=document.createElement("input");this.f.name="conditionalOperator";this.f.type="radio";this.f.id="optAnd";g.appendChild(this.f);var h=document.createElement("text");h.innerText=function(){var i=$self.p("FilterDialog_And",a);a=i.p1;return i.ret}();this.f.accessKey=a;g.appendChild(h);var i=document.createElement("label");f.appendChild(i);this.g=document.createElement("input");this.g.name="conditionalOperator";this.g.type="radio";this.g.id="optOr";i.appendChild(this.g);var j=document.createElement("text");j.innerText=function(){var k=$self.p("FilterDialog_Or",a);a=k.p1;return k.ret}();this.g.accessKey=a;i.appendChild(j);var k=document.createElement("div");k.className=b.filterDialogCondition2;this.e.appendChild(k);this.k=document.createElement("select");this.k.id="cboOperator2";k.appendChild(this.k);this.i=document.createElement("select");this.i.id="cboOperand2";k.appendChild(this.i);var l=document.createElement("div");l.className=b.filterDialogHintText;this.e.appendChild(l);var m=document.createElement("div");m.innerText=this.o("FilterDialog_QuestionMarkHint");l.appendChild(m);var n=document.createElement("div");n.innerText=this.o("FilterDialog_AsteriskHint");l.appendChild(n);var o=document.createElement("div");o.className=b.filterDialogButtons;var p=$$t.$mv.a();var q=function(r){$self.q();$self.s()};var r=q;p.id="btnOK";p.addEventListener("click",r,false);p.innerText=function(){var s=$self.p("FilterDialog_OK",a);a=s.p1;return s.ret}();p.accessKey=a;var s=$$t.$mv.a();var t=function(u){$self.s()};var u=t;s.id="btnCancel";s.addEventListener("click",u,false);s.innerText=function(){var v=$self.p("FilterDialog_Cancel",a);a=v.p1;return v.ret}();s.accessKey=a;o.appendChild(p);o.appendChild(s);this.e.appendChild(o);var v=$$t.$nl.i(this.c);var x=v.getEnumerator();while(x.moveNext()){var w=x.current();var y=document.createElement("option");y.innerText=w.displayText();y.setAttribute("value",w.dataValue());this.j.appendChild(y);var z=document.createElement("option");z.innerText=w.displayText();z.setAttribute("value",w.dataValue());this.k.appendChild(z)}var ab=this.a.k().getEnumerator();while(ab.moveNext()){var aa=ab.current();var ac=document.createElement("option");var ad=aa.toString();ac.innerText=ad;ac.setAttribute("value",ad);this.h.appendChild(ac);var ae=document.createElement("option");var af=aa.toString();ae.innerText=af;ae.setAttribute("value",af);this.i.appendChild(ae)}var ag=this.a.n();if(ag.hasValue()){this.j.value=$$a4.$yo.$getName(this.a.n().value())}var ah=this.a.p();if(ah.hasValue()){this.k.value=$$a4.$yo.$getName(this.a.p().value())}var ai=this.a.z(1);var aj=this.a.z(2);switch(this.a.d()){case 0:this.f.checked=true;break;case 1:this.g.checked=true;break;default:break}this.t(this.h);this.t(this.i);var ak=$(this.h);ak.igCombo("textInput").val(ai);ak=$(this.i);ak.igCombo("textInput").val(aj)},s:function(){this.b.close(false)},t:function(a){var b=$(a);b.igCombo();b.igCombo("option","allowCustomValue",true)},d:function(){if(this.f.checked){return 0}if(this.g.checked){return 1}return 0},o:function(a){var b=this.c._fs(a,[]);b=$$t.$dy.c5(b);return b},p:function(a,b){var c=this.c._fs(a,[]);c=function(){var d=$$t.$dy.c6(c,b);b=d.p1;return d.ret}();return{ret:c,p1:b}},m:function(a){var b=a.selectedIndex;var c=a.options.item(b);if(null==c){return null}var d=c.getAttribute("value");return d},l:function(a){var b=a==1?this.j:this.k;var c=this.m(b);if(null==c){return $m($$a4.$yo.$type,null)}var d=c.toString();if(String.isNullOrEmpty(d)){return $m($$a4.$yo.$type,null)}var e=$g($.ig.$ep.parse($$a4.$yo.$type,d,true));return $m($$a4.$yo.$type,e)},n:function(a){var b=a==1?this.h:this.i;var c=$(b);var d=c.igCombo("textInput").val();if(null==d){return null}var e=d.toString();return e},u:function(){this.r();var a=this.e;var b=this.c._fs("FilterDialog_Title",[]);this.b=this.c._r(a,b,false)},$type:new $.ig.Type("FilterDialogManager",$.ig.$ot)},true);$c("FormatCellsDialogManager:mc","Object",{t:null,v:null,ag:null,ah:null,u:null,y:null,z:false,r:null,a0:null,ay:null,af:null,bw:null,az:null,bx:null,by:null,ac:null,bv:null,bu:null,bt:null,b5:null,b6:null,ar:null,at:null,as:null,av:null,aq:null,au:null,aw:null,ax:null,b1:null,b3:null,b2:null,b4:null,ak:null,an:null,ap:null,ao:null,al:null,am:null,x:null,q:null,p:null,o:null,b0:null,ai:null,aj:null,j:null,k:null,i:null,h:null,d:null,a:null,c:null,f:null,e:null,g:null,b:null,bz:null,n:null,ad:null,ae:null,l:null,init:function(a,b,c){$.ig.$op.init.call(this);this.v=a;this.t=b;this.y=c},w:function(){return this.v.css},bs:function(){return this.ag},s:function(){if(null==this.r){this.r=this.t._fontControlViewModel()}return this.r},ea:function(){this.ds();var a=this.t;a.propertyChanged=$.ig.Delegate.prototype.combine(a.propertyChanged,this.dx.runOn(this));var b=this.s();b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.dw.runOn(this));var c=this.t._cellBorderInfo();c.propertyChanged=$.ig.Delegate.prototype.combine(c.propertyChanged,this.dt.runOn(this));var d=this.ag;var e=this.v._fs("FormatCellsDialog_Title",[]);this.u=this.v._r(d,e,false);var f=$(this.ag);f.igDialog("option","height","750");f.igDialog("option","width","750");f.igDialog("option","closeOnEscape",false);this.d4(2,1);this.d3(2,1);this.p.t();this.o.t();this.q.t();this.n.t();this.d1(2,1);this.dz(1,1)},b8:function(a,b,c){if(String.isNullOrEmpty(b)||String.isNullOrEmpty(c)){return a}if(null==a){a=String.empty()}var d=a.split(";");var e=new $$4.x($$t.$md.$type,0);for(var g=0;g<d.length;g++){var f=d[g];if(false==String.isNullOrEmpty(f)){var h=f.split(":");if(h.length==2){e.add(new $$t.md(h[0].trim(),h[1].trim()))}}}b=b.trim();var i=null;var k=e.getEnumerator();while(k.moveNext()){var j=k.current();if(b==j._a){i=j;break}}if(null!=i){i._b=c}else{e.add(new $$t.md(b,c))}var l=new $$6.aj(0);e.forEach(function(m){l.l(m._a);l.l(": ");l.l(m._b);l.l("; ")});return l.toString()},dr:function(){this.t._cl()},ds:function(){this.ag=document.createElement("div");this.ag.className=this.w().formatCellsDialog;this.ag.id="SFCD_DIALOG_ROOT_ELEMENT";this.ah=document.createElement("div");this.ah.id="SFCD_DIALOG_ROOT_GRID_ELEMENT";this.ag.appendChild(this.ah);this.ah.setAttribute("style",$$t.$mv.k("11fr 2em","5fr 2fr 2fr",".5em",null));var a=this.aa(this.w());this.ah.appendChild(this.a0);this.a0.setAttribute("style",$$t.$mv.j(1,1,1,3,null));this.d5(a);this.dv(this.w());this.ah.appendChild(this.ay);this.ay.setAttribute("style",$$t.$mv.j(2,1,2,1,"height: 2em;"));this.ah.appendChild(this.af);this.af.setAttribute("style",$$t.$mv.j(2,1,3,1,"height: 2em;"))},dt:function(a,b){this.eb()},du:function(){$(this.ac).on("spin",null);$(this.ac).on("spinchange",null);$(this.ar).on("spin",null);$(this.ar).on("spinchange",null);var a=$(this.a0);a.on("tabsactivate",null);this.n.z();this.o.z();this.p.z();this.q.z();this.u.close(false);this.y(this.t.__q)},a1:function(){var $self=this;var a=document.createElement("div");a.className=this.v.css.formatCellsDialogTab;a.id="SFCD_AT";a.setAttribute("style","height: "+"555px"+"; ");var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1em 1em 2em 2em 2em 1em 1em 1.5em 1.5em 1.5em 1fr","2em 3fr 2fr 3fr","10px","height: 100%; box-sizing: border-box; "));a.appendChild(b);var c=this.bl(b,"FormatCellsDialog_AlignmentTab_Text_TextAlignment",null);var d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,2,d+" display: block;"));c=this.bl(b,"FormatCellsDialog_AlignmentTab_Text_Horizontal",null);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,2,1,d+" display: block;"));c=this.a2(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,2,1,d));c=this.bl(b,"FormatCellsDialog_AlignmentTab_Text_Indent",null);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,3,1,d+" display: block; margin-top: 1em;"));c=this.bl(b,"FormatCellsDialog_AlignmentTab_Text_Vertical",null);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,2,1,d+" display: block; margin-top: 1em;"));c=this.a3(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,3,1,d));c=this.a4(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(5,1,2,1,d));c=this.bl(b,"FormatCellsDialog_AlignmentTab_Text_TextControl",null);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(7,1,1,2,d+" display: block;"));var e=function(f){$self.t._wrapText($m($$0.$aq.$type,$self.bv.checked))};var f=this.m(b,"chkWrapText","FormatCellsDialog_AlignmentTab_Text_WrapText",this.t._wrapText(),e);this.bv=f._c;c=f._a;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(8,1,2,1,d));var g=function(h){$self.t._shrinkToFit($m($$0.$aq.$type,$self.bu.checked))};f=this.m(b,"TESTID_AT_ShrinkToFit","FormatCellsDialog_AlignmentTab_Text_ShrinkToFit",this.t._shrinkToFit(),g);this.bu=f._c;this.bu.disabled=false==this.t._isShrinkToFitSelectionEnabled();c=f._a;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(9,1,2,1,d));var h=function(i){$self.t._mergeCells($m($$0.$aq.$type,$self.bt.checked))};f=this.m(b,"TESTID_AT_MergeCells","FormatCellsDialog_AlignmentTab_Text_MergeCells",this.t._mergeCells(),h);this.bt=f._c;this.bt.disabled=false==this.t._isMergeCellsSelectionEnabled();c=f._a;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(10,1,2,1,d));return a},m:function(a,b,c,d,e){var f=document.createElement("input");f.id=b;f.setAttribute("Type","checkbox");var g=document.createElement("div");g.appendChild(f);a.appendChild(g);if(false==d.hasValue()){f.indeterminate=true}else{f.checked=d.value()}if(null!=e){f.addEventListener("change",e,false)}var h=null;if(false==String.isNullOrEmpty(c)){h=this.bl(g,c,b);var i=this.b8(h.getAttribute("style"),"display","inline");i=this.b8(i,"vertical-align","top");h.setAttribute("style",i)}return new $$t.me(f,g,h)},bj:function(a,b,c,d,e){var $self=this;var f;var g=document.createElement("fieldset");var h=document.createElement("legend");g.setAttribute("style",$6(" border-width: {0}; border-color: {1}; border-style: {2};",c,d,e));h.setAttribute("style"," color: black; font-weight: NORMAL;");h.innerText=function(){var i=$self.di(b,f);f=i.p1;return i.ret}();h.accessKey=f;g.appendChild(h);a.appendChild(g);return g},bk:function(a,b,c,d,e,f){if(true==e&&false==String.isNullOrEmpty(d)){this.bl(a,d,b)}var g=document.createElement("input");g.id=b;if(false==String.isNullOrEmpty(c)){g.setAttribute("Type",c)}if(null!=f){g.addEventListener("change",f,false)}a.appendChild(g);if(false==e&&false==String.isNullOrEmpty(d)){this.bl(a,d,b)}return g},bl:function(a,b,c){var $self=this;var d;var e=document.createElement("label");if(false==String.isNullOrEmpty(b)){e.innerText=function(){var f=$self.di(b,d);d=f.p1;return f.ret}();e.accessKey=d}if(false==String.isNullOrEmpty(c)){e.setAttribute("for",c)}a.appendChild(e);return e},b7:function(a,b,c,d){var e=document.createElement("select");e.id=b;if(null!=c){e.addEventListener("change",c,false)}if(d>0){e.size=d}e.setAttribute("style","overflow: auto;");a.appendChild(e);return e},a2:function(a){var $self=this;var b=function(c){var d=$self.bx.selectedIndex;var e=$self.bx.options.item(d);if(null!=e){var f=$$t.$nq._b($$a4.$cg.$type,$self.t._horizontalCellAlignments(),e.innerText);$self.t._selectedHorizontalCellAlignment(f._enumValue$i())}};this.bx=this.b7(a,"cmbHorizontalTextAlignment",b,0);var d=this.t._horizontalCellAlignments().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c.toString();e.setAttribute("value",c.toString());this.bx.appendChild(e);if($$a4.$cg.$getName(this.t._selectedHorizontalCellAlignment())==c._h()){this.bx.value=c}}return this.bx},a3:function(a){var $self=this;var b=document.createElement("div");a.appendChild(b);var c=document.createElement("input");c.id="spinIndent";c.className=this.w().formatCellsDialogNumericSpinner;b.appendChild(c);this.ac=c;$(this.ac).spinner();$(this.ac).spinner("option","min",0);$(this.ac).spinner("option","max",250);$(this.ac).spinner("value",this.t._indent());var d=function(e,f){var g=f.value;if(null==g){g="0"}var h=Math.max(Math.min($$0.$aw.parseInt(g),250),0);$self.t._indent(h)};var e=function(f,g){var h=$($self.ac).spinner("value");if(null==h){h="0"}var i=Math.max(Math.min($$0.$aw.parseInt(h),250),0);$self.t._indent(i)};$(this.ac).on("spin",d);$(this.ac).on("spinchange",e);return b},a4:function(a){var $self=this;var b=function(c){var d=$self.by.selectedIndex;var e=$self.by.options.item(d);if(null!=e){var f=$$t.$nq._b($$a4.$c7.$type,$self.t._verticalCellAlignments(),e.innerText);$self.t._selectedVerticalCellAlignment(f._enumValue$i())}};this.by=this.b7(a,"cmbVerticalTextAlignment",b,0);var d=this.t._verticalCellAlignments().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c.toString();e.setAttribute("value",c.toString());this.by.appendChild(e);if($$a4.$c7.$getName(this.t._selectedVerticalCellAlignment())==c._h()){this.by.value=c}}return this.by},a5:function(a){var $self=this;var b=function(c){var d=$self.bz.selectedIndex;var e=$self.bz.options.item(d);if(null!=e){var f=e.textContent;var g=$$t.$nq._b($$a4.$by.$type,$self.t._cellBorderLineStyles(),f);$self.t._selectedCellBorderLineStyle(g._enumValue$i())}};this.bz=this.b7(a,"TESTID_BT_LineStyles",b,7);var d=this.t._cellBorderLineStyles().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c.toString();e.setAttribute("value",c.toString());this.bz.appendChild(e);if($$a4.$by.$getName(this.t._selectedCellBorderLineStyle())==c._h()){this.bz.value=c}}return this.bz},a6:function(a){this.ae=document.createElement("div");this.ae.id="TESTID_BT_BordersPreview";a.appendChild(this.ae);return this.ae},a7:function(a){var $self=this;var b=function(c){var d=$self.b0.selectedIndex;var e=$self.b0.options.item(d);if(null!=e){var f=e.textContent;var g=$$t.$nq._b($$a4.$b9.$type,$self.t._fillPatternStyles(),f);$self.t._selectedFillPatternStyle(g._enumValue$i())}};this.b0=this.b7(a,"TESTID_FILLT_PatternStyle",b,0);var d=this.t._fillPatternStyles().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c.toString();e.setAttribute("value",c.toString());this.b0.appendChild(e);if($$a4.$b9.$getName(this.t._selectedFillPatternStyle())==c._h()){this.b0.value=c}}return this.b0},a8:function(a){this.aj=document.createElement("div");a.appendChild(this.aj);return this.aj},a9:function(a){var $self=this;var b=function(c){var d=$self.b1.selectedIndex;var e=$self.b1.options.item(d);if(null!=e){var f=e.textContent;var g=$self.s()._fontNames().__inner[0];var i=$self.s()._fontNames().getEnumerator();while(i.moveNext()){var h=i.current();if(h==f){g=h;break}}if(false==String.isNullOrEmpty(g)){$self.s()._selectedFontName(g)}}};this.b1=this.b7(a,"TESTID_FT_FontNames",b,5);var d=this.s()._fontNames().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c;e.setAttribute("value",c.toString());this.b1.appendChild(e)}this.b1.value=this.s()._selectedFontName();return this.b1},ba:function(a){var $self=this;var b=function(c){var d=$self.b2.selectedIndex;var e=$self.b2.options.item(d);if(null!=e){var f=e.textContent;var g=$self.s()._fontSizes().__inner[0];var i=$self.s()._fontSizes().getEnumerator();while(i.moveNext()){var h=i.current();if(h.toString()==f){g=h;break}}$self.s()._selectedFontSize(g)}};this.b2=this.b7(a,"TESTID_FT_FontSizes",b,5);var d=this.s()._fontSizes().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c.toString();e.setAttribute("value",c.toString());this.b2.appendChild(e)}this.b2.value=this.s()._selectedFontSize().toString();return this.b2},bb:function(a){var $self=this;var b=function(c){var d=$self.b3.selectedIndex;var e=$self.b3.options.item(d);if(null!=e){var f=e.textContent;var g=$self.s()._fontStyles().__inner[0];var i=$self.s()._fontStyles().getEnumerator();while(i.moveNext()){var h=i.current();if(h.b()==f){g=h;break}}if(null!=g){$self.s()._selectedFontStyle(g)}}};this.b3=this.b7(a,"TESTID_FT_FontStyles",b,5);var d=this.s()._fontStyles().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c.b();e.setAttribute("value",c.toString());this.b3.appendChild(e)}var f=this.s()._selectedFontStyle();if(null!=f){this.b3.value=f.b()}return this.b3},bc:function(a){var $self=this;var b=function(c){var d=$self.b4.selectedIndex;var e=$self.b4.options.item(d);if(null!=e){var f=e.textContent;var g=$g($.ig.$ep.parse($$a4.$cb.$type,f,true));$self.s()._selectedFontUnderlineStyle(g)}};this.b4=this.b7(a,"cmbFontUnderlineStyles",b,0);var d=this.s()._fontUnderlineStyles().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=$$a4.$cb.$getName(c);e.setAttribute("value",$$a4.$cb.$getName(c));this.b4.appendChild(e)}this.b4.value=$$a4.$cb.$getName(this.s()._selectedFontUnderlineStyle());return this.b4},bd:function(a){this.am=document.createElement("div");a.appendChild(this.am);return this.am},be:function(a){var $self=this;var b=function(c){var d=$self.b5.selectedIndex;var e=$self.b5.options.item(d);if(null!=e){var f=e.textContent;var g=null;var i=$self.t._formatCategories().getEnumerator();while(i.moveNext()){var h=i.current();if(h._categoryName()==f){g=h;break}}if(null!=g){$self.t._selectedFormatCategory(g)}}};this.b5=this.b7(a,"TESTID_NT_Category",b,10);var d=this.t._formatCategories().getEnumerator();while(d.moveNext()){var c=d.current();var e=document.createElement("option");e.innerText=c._categoryName();e.setAttribute("value",c.toString());this.b5.appendChild(e)}this.b5.value=this.t._selectedFormatCategory().toString();return this.b5},bf:function(a){var $self=this;this.as=document.createElement("div");this.d9(this.as,false,1,false);a.appendChild(this.as);this.bl(this.as,"FormatCellsDialog_NumberTab_DecimalPlaces","numberOfColumns");this.at=document.createElement("input");this.at.id="numberOfColumns";this.at.className=this.w().formatCellsDialogNumericSpinner;this.as.appendChild(this.at);this.ar=this.at;$(this.ar).spinner();$(this.ar).spinner("option","min",0);$(this.ar).spinner("option","max",30);$(this.ar).spinner("value",Math.max(0,this.t._selectedFormatCategory()._decimalPlaces()));var b=function(c,d){if(false==$self.z){var e=d.value;if(null==e){e="0"}var f=Math.max(Math.min($$0.$aw.parseInt(e),30),0);if($self.t._selectedFormatCategory()._decimalPlaces()!=f){$self.t._selectedFormatCategory()._decimalPlaces(f)}}};var c=function(d,e){if(false==$self.z){var f=$($self.ar).spinner("value");if(null==f){f="0"}var g=Math.max(Math.min($$0.$aw.parseInt(f),30),0);if($self.t._selectedFormatCategory()._decimalPlaces()!=g){$self.t._selectedFormatCategory()._decimalPlaces(g)}}};$(this.ar).on("spin",b);$(this.ar).on("spinchange",c);return this.as},bg:function(a){var $self=this;var b=function(c){var d=$self.b6.selectedIndex;var e=$self.b6.options.item(d);if(null!=e){var f=null;var h=$self.t._selectedFormatCategory()._formats().getEnumerator();while(h.moveNext()){var g=h.current();if(g._mask()==e.value){f=g;break}}if(null!=f){$self.t._selectedFormat(f)}}};this.b6=this.b7(a,"TESTID_NT_Formats",b,4);return this.b6},bh:function(a){var $self=this;var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1fr 1fr 5fr","1fr","3px","overflow: hidden; box-sizing: border-box; "));a.appendChild(b);this.av=this.bl(b,null,"formatsList");var c=this.dg(this.av);b.appendChild(this.av);this.av.setAttribute("style",$$t.$mv.j(1,1,1,1,c));var d=function(e){var f=$self.bv.checked;$self.t._customizedFormatMask($self.aq.value)};this.aq=this.bk(a,"TESTID_NT_CustomizedFormatMask",null,null,false,d);c=this.dg(this.aq);b.appendChild(this.aq);this.aq.setAttribute("style",$$t.$mv.j(2,1,1,1,c));var e=this.bg(b);c=this.dg(e);b.appendChild(e);e.setAttribute("style",$$t.$mv.j(3,1,1,1,c));return b},bi:function(a){this.ax=document.createElement("div");a.appendChild(this.ax);return this.ax},ab:function(a,b,c,d){var $self=this;var e=$$t.$mv.a();if(false==String.isNullOrEmpty(b)){e.className=b}e.id=a;e.addEventListener("click",d,false);var f=String.empty();if(false==String.isNullOrEmpty(c)){e.innerText=function(){var g=$self.di(c,f);f=g.p1;return g.ret}()}e.accessKey=f;return e},bm:function(){var $self=this;var a=document.createElement("div");a.className=this.v.css.formatCellsDialogTab;a.id="SFCD_BT";a.setAttribute("style","height: "+"555px"+"; ");var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1fr 2.2fr 20px 1fr","2.5fr 20px 3.5fr 50px","10px","height: 100%; box-sizing: border-box; "));a.appendChild(b);var c=this.bj(b,"FormatCellsDialog_BorderTab_Text_Line","1px","gray","solid");var d=c;var e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,2,1,1,e+" overflow: hidden; border-color: #fff; "));var f=document.createElement("div");f.setAttribute("style",$$t.$mv.k("1em 1fr 1em 1em 2em 2em","1fr","10px","height: 100%; box-sizing: border-box; "));d.appendChild(f);c=this.bl(f,"FormatCellsDialog_BorderTab_Text_Style","TESTID_BT_LineStyles");e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,1,e+" display: block;"));c=this.a5(f);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,1,1,e));c=this.bl(f,"FormatCellsDialog_BorderTab_Text_Color","TESTID_BT_LineColor");e=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,1,1,e+" display: block;"));var g=function(h){$self.t._cellBorderLineColorInfo(h)};this.n=new $$t.mf(this,"SpreadsheetThemeColorPickerControl_Text_Automatic","SpreadsheetThemeColorPickerControl_Text_NoColor",true,g);c=this.n.m();f.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(5,1,1,1,e));this.dy();c=this.bj(b,"FormatCellsDialog_BorderTab_Text_Presets","1px","gray","solid");d=c;e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,3,1,e+" overflow: hidden; border-color: #fff; border-bottom-style: none; border-left-style: none; border-right-style: none; "));var h=document.createElement("div");h.setAttribute("style",$$t.$mv.k("50px 1em ","50px 2px 50px 2px 50px 1fr","10px","height: 100%; box-sizing: border-box; "));d.appendChild(h);this.j=new $$t.mg("TESTID_BT_NonePreset",false,0,false,this.d7.runOn(this),this.d6.runOn(this));var i;c=i=this.j.ab();i.width=50;i.height=50;h.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,1,e));this.j.ah();c=this.bl(h,"FormatCellsDialog_BorderTab_Text_PresetNone","TESTID_BT_NonePreset");e=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,1,1,e+" display: block; margin: 0px;"));this.k=new $$t.mg("TESTID_BT_OutlinePreset",false,1,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.k.ab();i.width=50;i.height=50;h.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,3,1,e));this.k.ah();c=this.bl(h,"FormatCellsDialog_BorderTab_Text_PresetOutline","TESTID_BT_OutlinePreset");e=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,3,1,e+" display: block; margin: 0px;"));this.i=new $$t.mg("TESTID_BT_InsidePreset",false,2,false==this.t._cellBorderInfo()._isInsideCellBordersEditable(),this.d7.runOn(this),this.d6.runOn(this));c=i=this.i.ab();i.width=50;i.height=50;h.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,5,1,e));this.i.ah();c=this.bl(h,"FormatCellsDialog_BorderTab_Text_PresetInside","TESTID_BT_InsidePreset");e=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,5,1,e+" display: block; margin: 0px;"));c=this.bj(b,"FormatCellsDialog_BorderTab_Text_Border","1px","gray","solid");d=c;e=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,3,1,e+" overflow: hidden; border-color: #fff; border-bottom-style: none; border-left-style: none; border-right-style: none; "));var j=document.createElement("div");j.setAttribute("style",$$t.$mv.k("40px 1fr 40px 1fr 40px 1fr 40px 1fr ","40px 2px 40px 2px 40px 2px 40px 2px 40px 1fr","10px","height: 100%; box-sizing: border-box; "));d.appendChild(j);this.h=new $$t.mg("TESTID_BT_AddTopLine",true,10,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.h.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,1,e));this.h.ah();this.d=new $$t.mg("TESTID_BT_AddInsideHorizontalLine",true,6,false==this.t._cellBorderInfo()._isInsideHorizontalCellBorderEditable(),this.d7.runOn(this),this.d6.runOn(this));c=i=this.d.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,1,1,e));this.d.ah();this.a=new $$t.mg("TESTID_BT_AddBottomLine",true,3,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.a.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(5,1,1,1,e));this.a.ah();this.c=new $$t.mg("TESTID_BT_AddDiagonalUpLine",true,5,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.c.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(7,1,1,1,e));this.c.ah();this.f=new $$t.mg("TESTID_BT_AddLeftLine",true,8,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.f.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(7,1,3,1,e));this.f.ah();this.e=new $$t.mg("TESTID_BT_AddInsideVerticalLine",true,7,false==this.t._cellBorderInfo()._isInsideVerticalCellBorderEditable(),this.d7.runOn(this),this.d6.runOn(this));c=i=this.e.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(7,1,5,1,e));this.e.ah();this.g=new $$t.mg("TESTID_BT_AddRightLine",true,9,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.g.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(7,1,7,1,e));this.g.ah();this.b=new $$t.mg("TESTID_BT_AddDiagonalDownLine",true,4,false,this.d7.runOn(this),this.d6.runOn(this));c=i=this.b.ab();i.width=40;i.height=40;j.appendChild(c);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(7,1,9,1,e));this.b.ah();c=this.a6(j);e=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,5,3,5,e));this.eb();c=this.bl(b,"FormatCellsDialog_BorderTab_Text_Description","");e=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,1,4,e+" display: block;"));return a},dv:function(a){var $self=this;var b=function(c){$self.dr();$self.du()};this.ay=this.ab("TESTID_DIALOG_OK",a.formatCellsDialogButtons,"FormatCellsDialog_OK",b);var c=function(d){$self.du()};this.af=this.ab("TESTID_DIALOG_Cancel",a.formatCellsDialogButtons,"FormatCellsDialog_Cancel",c)},bn:function(){var $self=this;var a=document.createElement("div");a.className=this.v.css.formatCellsDialogTab;a.id="SFCD_FILLT";a.setAttribute("style","height: "+"555px"+"; ");var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1em 2em 1em 2em 2fr 1fr","1fr 50px 1fr","10px","height: 100%; box-sizing: border-box; "));a.appendChild(b);var c=this.bl(b,"FormatCellsDialog_FillTab_Text_BackgroundColor","TESTID_FILLT_NoColor");var d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,1,d+" display: block;"));c=this.bl(b,"FormatCellsDialog_FillTab_Text_PatternColor","TESTID_FILLT_PatternColor");d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,3,1,d+" display: block;"));var e=function(f){$self.t._backgroundColorInfo(f);if($$a4.$ah.l_op_Equality(null,f)){(function($obj){var $value=$obj._noColorVersion();$obj._noColorVersion($value+1);return $value})($self.t)}};this.o=new $$t.mf(this,"SpreadsheetThemeColorPickerControl_Text_Automatic","SpreadsheetThemeColorPickerControl_Text_NoColor",false,e);c=this.o.m();b.appendChild(c);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,1,1,d));this.o.w($$a4.$ah.l_op_Equality(null,this.t._backgroundColorInfo()));var f=function(g){$self.t._fillPatternColorInfo(g)};this.p=new $$t.mf(this,"SpreadsheetThemeColorPickerControl_Text_Automatic","SpreadsheetThemeColorPickerControl_Text_NoColor",true,f);c=this.p.m();b.appendChild(c);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,3,1,d));this.d0();c=this.bl(b,"FormatCellsDialog_FillTab_Text_PatternStyle","TESTID_FILLT_PatternStyle");d=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,3,1,d+" display: block;"));c=this.a7(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,3,1,d));c=this.bj(b,"FormatCellsDialog_FillTab_Text_Sample","1px","gray","solid");var g=c;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(6,1,1,3,d+" overflow: hidden; "));c=this.a8(g);d=this.dg(c);c.setAttribute("style",d);return a},bo:function(){var $self=this;var a=document.createElement("div");a.className=this.v.css.formatCellsDialogTab;a.id="SFCD_FT";a.setAttribute("style","height: "+"555px"+"; ");var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1em 8em 1em 2em 11em 1fr","2fr 1fr 1fr","10px","height: 100%; box-sizing: border-box; "));a.appendChild(b);var c=this.bl(b,"SpreadsheetFontControl_FontLabel","TESTID_FT_FontNames");var d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,1,d+" display: block;"));c=this.bl(b,"SpreadsheetFontControl_FontStyleLabel","TESTID_FT_FontStyles");d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,2,1,d+" display: block;"));c=this.bl(b,"SpreadsheetFontControl_SizeLabel","TESTID_FT_FontSizes");d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,3,1,d+" display: block;"));c=this.a9(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,1,1,d));c=this.bb(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,2,1,d));c=this.ba(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,3,1,d));c=this.bl(b,"SpreadsheetFontControl_UnderlineLabel","cmbFontUnderlineStyles");d=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,1,1,d+" display: block;"));c=this.bl(b,"SpreadsheetFontControl_ColorLabel","TESTID_FT_FontColor");d=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,2,1,d+" display: block;"));c=this.bc(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,1,1,d));var e=function(f){$self.s()._selectedFontColorInfo(f)};this.q=new $$t.mf(this,"SpreadsheetThemeColorPickerControl_Text_Automatic","SpreadsheetThemeColorPickerControl_Text_NoColor",true,e);c=this.q.m();b.appendChild(c);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,2,1,d));this.d2();var f=function(g){
$self.s()._isNormalFont($self.ak.checked)};var g=this.m(b,"TESTID_FT_NormalFont","SpreadsheetFontControl_NormalFontLabel",$m($$0.$aq.$type,this.s()._isNormalFont()),f);this.ak=g._c;c=g._a;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,3,1,d));c=this.bj(b,"SpreadsheetFontControl_Text_Effects","1px","gray","solid");var h=c;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(5,1,1,1,d));var i=function(j){$self.s()._strikeout($m($$0.$aq.$type,$self.an.checked))};g=this.m(b,"TESTID_FT_Strikethrough","SpreadsheetFontControl_StrikethroughLabel",this.s()._strikeout(),i);this.an=g._c;c=g._a;h.appendChild(c);d=this.dg(c);c.setAttribute("style",d+" margin-top: .5em; margin-bottom: .5em;");var j=function(k){$self.s()._superscript($m($$0.$aq.$type,$self.ap.checked))};g=this.m(b,"TESTID_FT_Superscript","SpreadsheetFontControl_SuperscriptLabel",this.s()._superscript(),j);this.ap=g._c;c=g._a;h.appendChild(c);d=this.dg(c);c.setAttribute("style",d+" margin-bottom: .5em;");var k=function(l){$self.s()._subscript($m($$0.$aq.$type,$self.ao.checked))};g=this.m(b,"TESTID_FT_Subscript","SpreadsheetFontControl_SubscriptLabel",this.s()._subscript(),k);this.ao=g._c;h.appendChild(g._a);c=this.bj(b,"SpreadsheetFontControl_Text_Preview","1px","gray","solid");h=c;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(5,1,2,2,d+" overflow: hidden; "));c=this.bd(h);d=this.dg(c);c.setAttribute("style",d+" margin-left: 40px; ");return a},aa:function(a){this.a0=document.createElement("div");this.a0.className=a.formatCellsDialogTabs;this.a0.id="MainTabControl";var b=document.createElement("ul");if(this.t._a5()){b.appendChild(this.br("#"+"SFCD_NT",this.dh("FormatCellsDialog_NumberTabCaption")))}if(this.t._a0()){b.appendChild(this.br("#"+"SFCD_AT",this.dh("FormatCellsDialog_AlignmentTabCaption")))}if(this.t._a3()){b.appendChild(this.br("#"+"SFCD_FT",this.dh("FormatCellsDialog_FontTabCaption")))}if(this.t._a1()){b.appendChild(this.br("#"+"SFCD_BT",this.dh("FormatCellsDialog_BorderTabCaption")))}if(this.t._a2()){b.appendChild(this.br("#"+"SFCD_FILLT",this.dh("FormatCellsDialog_FillTabCaption")))}if(this.t._a6()){b.appendChild(this.br("#"+"SFCD_PT",this.dh("FormatCellsDialog_ProtectionTabCaption")))}this.a0.appendChild(b);var c=new $$4.x($$t.$nd.$type,2,6);if(this.t._a5()){this.a0.appendChild(this.bp());c.add(1)}if(this.t._a0()){this.a0.appendChild(this.a1());c.add(2)}if(this.t._a3()){this.a0.appendChild(this.bo());c.add(4)}if(this.t._a1()){this.a0.appendChild(this.bm());c.add(8)}if(this.t._a2()){this.a0.appendChild(this.bn());c.add(16)}if(this.t._a6()){this.a0.appendChild(this.bq());c.add(32)}return c},bp:function(){var a=document.createElement("div");a.className=this.v.css.formatCellsDialogTab;a.id="SFCD_NT";a.setAttribute("style","height: "+"555px"+"; ");var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1.5em 3fr 1fr 5fr 3fr","1fr 3fr","10px","height: 100%; box-sizing: border-box; "));a.appendChild(b);var c=this.bl(b,"FormatCellsDialog_NumberTab_CategoryLabel",null);var d=this.dg(c);c.setAttribute("style",$$t.$mv.j(1,1,1,1,d));c=this.be(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,3,1,1,d));c=this.bj(b,"FormatCellsDialog_NumberTab_SampleLabel","1px","gray","solid");var e=c;d=this.dg(c);c.setAttribute("style",$$t.$mv.j(2,1,2,1,d+" overflow: hidden; "));c=this.bi(e);d=this.dg(c);c.setAttribute("style",d+" margin-left: 40px; ");c=this.bf(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(3,1,2,1,d));if(null!=this.t._selectedFormatCategory()){this.d9(this.as,this.t._selectedFormatCategory()._decimalPlaces()>-1,1,false)}c=this.bh(b);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(4,1,2,1,d));c=this.au=this.bl(b,null,null);d=this.dg(c);c.setAttribute("style",$$t.$mv.j(5,1,1,2,d+" display: block;"));this.d8();return a},bq:function(){var $self=this;var a=document.createElement("div");a.className=this.v.css.formatCellsDialogTab;a.id="SFCD_PT";a.setAttribute("style","height: "+"555px"+"; ");var b=document.createElement("div");b.setAttribute("style",$$t.$mv.k("1em 1em 1fr","1fr","10px","height: 100%; box-sizing: border-box; "));a.appendChild(b);var c=function(d){var e=$self.bw.checked;$self.t._locked($m($$0.$aq.$type,$self.bw.checked))};var d=this.t._locked().hasValue()&&true==this.t._locked().value();var e=this.m(b,"TESTID_PT_Locked","FormatCellsDialog_ProtectionTab_Text_Locked",this.t._locked(),c);this.bw=e._c;var f=e._a;var g=this.dg(f);f.setAttribute("style",$$t.$mv.j(1,1,1,1,g));f=this.az=this.bl(b,"FormatCellsDialog_ProtectionTab_Text_Summary",null);g=this.dg(f);f.setAttribute("style",$$t.$mv.j(3,1,1,1,g+" display: block;"));return a},br:function(a,b){var c=document.createElement("li");var d=document.createElement("a");d.innerText=b;d.setAttribute("href",a);c.appendChild(d);return c},dw:function(a,b){var c=this.x.worksheets()._item(0)._getCell("A1");switch(b.propertyName()){case"IsNormalFont":this.ak.checked=this.s()._isNormalFont();break;case"Superscript":if(this.s()._superscript().hasValue()){this.ap.checked=this.s()._superscript().value()}else{this.ap.checked=false}this.s()._a8(c);break;case"Subscript":if(this.s()._subscript().hasValue()){this.ao.checked=this.s()._subscript().value()}else{this.ao.checked=false}this.s()._a8(c);break;case"SelectedFontName":this.b1.selectedIndex=this.s()._fontNames().indexOf(this.s()._selectedFontName());this.s()._a8(c);break;case"SelectedFontStyle":this.b3.selectedIndex=this.s()._fontStyles().indexOf(this.s()._selectedFontStyle());this.s()._a8(c);break;case"SelectedFontUnderlineStyle":for(var d=0;d<this.s()._fontUnderlineStyles().length;d++){var e=$g(this.s()._fontUnderlineStyles()[d]);if(e==this.s()._selectedFontUnderlineStyle()){this.b4.selectedIndex=d;break}}this.s()._a8(c);break;case"SelectedFontSize":this.b2.selectedIndex=this.s()._fontSizes().indexOf(this.s()._selectedFontSize());this.s()._a8(c);break;case"Strikeout":if(this.s()._strikeout().hasValue()){this.an.checked=this.s()._strikeout().value()}else{this.an.checked=false}this.s()._a8(c);break;case"SelectedFontColorInfo":this.d2();this.s()._a8(c);break}},dx:function(a,b){switch(b.propertyName()){case"SelectedHorizontalCellAlignment":this.bx.value=$$t.$nq._a($$a4.$cg.$type,this.t._horizontalCellAlignments(),$$a4.$cg.$getName(this.t._selectedHorizontalCellAlignment()));break;case"SelectedVerticalCellAlignment":this.by.value=$$t.$nq._a($$a4.$c7.$type,this.t._verticalCellAlignments(),$$a4.$c7.$getName(this.t._selectedVerticalCellAlignment()));break;case"Indent":$(this.ac).spinner("value",this.t._indent());break;case"IsShrinkToFitSelectionEnabled":this.bu.disabled=false==this.t._isShrinkToFitSelectionEnabled();break;case"DecimalPlacesInSelectedNumberFormat":this.d9(this.as,this.t._decimalPlacesInSelectedNumberFormat()>-1,1,false);this.z=true;$(this.ar).spinner("value",Math.max(0,this.t._selectedFormatCategory()._decimalPlaces()));this.z=false;$$t.$mh.b(this.aw,this.t._selectedFormatResolved());this.ec(2);break;case"SelectedFormat":this.aq.value=this.t._selectedFormatResolved();$$t.$mh.b(this.aw,this.t._selectedFormatResolved());break;case"SelectedFormatResolved":if(false==String.isNullOrEmpty(this.t._selectedFormatResolved())){$$t.$mh.b(this.aw,this.t._selectedFormatResolved())}break;case"SelectedFormatCategory":this.d8();break;case"BackgroundColorInfo":case"FillPatternColorInfo":case"SelectedFillPatternStyle":$$t.$mh.g(this.ai,this.t._selectedFillForPreview());if(b.propertyName()=="SelectedFillPatternStyle"){this.b0.value=$$t.$nq._a($$a4.$b9.$type,this.t._fillPatternStyles(),$$a4.$b9.$getName(this.t._selectedFillPatternStyle()))}else if(b.propertyName()=="FillPatternColorInfo"){this.d0()}break;case"SelectedCellBorderLineStyle":this.bz.value=$$t.$nq._a($$a4.$by.$type,this.t._cellBorderLineStyles(),$$a4.$by.$getName(this.t._selectedCellBorderLineStyle()));break;case"CustomizedFormatMask":this.aq.value=this.t._customizedFormatMask();break;case"CellBorderLineColorInfo":this.dy();break}},dg:function(a){var b=a.getAttribute("style");if(null==b){return String.empty()}return b},dh:function(a){var b=this.v._fs(a,[]);b=$$t.$dy.c5(b);return b},di:function(a,b){var c=this.v._fs(a,[]);c=function(){var d=$$t.$dy.c6(c,b);b=d.p1;return d.ret}();return{ret:c,p1:b}},dy:function(){this.n.v();if($$a4.$ah.l_op_Inequality(null,this.t._cellBorderLineColorInfo())){if(this.t._cellBorderLineColorInfo().isAutomatic()){this.n.x()}else{this.n.y(this.t._cellBorderLineColorInfo()._getResolvedColor1(this.t._workbook()))}}else{this.n.x()}},dz:function(a,b){this.l=new $$t.mi(this.t,164,161,2,1);var c=this.l.d();var d=function(e,f){return false};this.ad=this.ae;$(this.ad).igSpreadsheet({height:"100%",width:"100%",brushes:{cellSelectionHandleBorder:null,cellSelectionInnerBorder:null,cellSelectionOuterBorder:null,cellSelectionHandleFill:null,cellSelectionFill:null,cellSelectionDragBorder:null},isFormulaBarVisible:false,workbook:c,disabled:true,editModeEntering:d})},d0:function(){this.p.v();if($$a4.$ah.l_op_Inequality(null,this.t._fillPatternColorInfo())){if(this.t._fillPatternColorInfo().isAutomatic()){this.p.x()}else{this.p.y(this.t._fillPatternColorInfo()._getResolvedColor1(this.t._workbook()))}}else{this.p.x()}},d1:function(a,b){var c=$$t.$mh.a(620,90,2,1,true);$$t.$mh.f(this.t._selectedFillForPreview(),c);var d=function(e,f){return false};this.ai=this.aj;$(this.ai).igSpreadsheet({height:"90px",width:"620px",brushes:{cellSelectionHandleBorder:null,cellSelectionInnerBorder:null,cellSelectionOuterBorder:null,cellSelectionHandleFill:null,cellSelectionFill:null,cellSelectionDragBorder:null},isFormulaBarVisible:false,workbook:c,disabled:true,editModeEntering:d})},d2:function(){this.q.v();if($$a4.$ah.l_op_Inequality(null,this.s()._selectedFontColorInfo())){if(this.s()._selectedFontColorInfo().isAutomatic()){this.q.x()}else{this.q.y(this.s()._selectedFontColor())}}else{this.q.x()}},d3:function(a,b){this.x=$$t.$mh.a(215,100,2,1,true);this.s()._a8(this.x.worksheets()._item(0)._getCell("A1"));var c=function(d,e){return false};this.al=this.am;$(this.al).igSpreadsheet({height:"100%",width:"100%",brushes:{cellSelectionHandleBorder:null,cellSelectionInnerBorder:null,cellSelectionOuterBorder:null,cellSelectionHandleFill:null,cellSelectionFill:null,cellSelectionDragBorder:null},isFormulaBarVisible:false,workbook:this.x,disabled:true,editModeEntering:c})},d4:function(a,b){var c=$$t.$mh.a(380,80,2,1,true);$$t.$mh.c(this.t._selectedFormatResolved(),c);$$t.$mh.e(this.t._cellValue(),c);var d=function(e,f){return false};this.aw=this.ax;$(this.aw).igSpreadsheet({height:"100%",width:"100%",brushes:{cellSelectionHandleBorder:null,cellSelectionInnerBorder:null,cellSelectionOuterBorder:null,cellSelectionHandleFill:null,cellSelectionFill:null,cellSelectionDragBorder:null},isFormulaBarVisible:false,workbook:c,disabled:true,editModeEntering:d})},d5:function(a){var $self=this;var b=$(this.a0);b.tabs();var c=0;if(this.t.__h!=0){for(var d=0;d<a.count();d++){if(a.__inner[d]==this.t.__h){c=d;break}}}b.tabs("option","active",c);b.tabs("option","heightStyle","content");var e=function(f,g){var h=g.newPanel[0].id;switch(h){case"SFCD_NT":$self.t.__h=1;break;case"SFCD_AT":$self.t.__h=2;break;case"SFCD_FT":$self.t.__h=4;break;case"SFCD_BT":$self.t.__h=8;break;case"SFCD_FILLT":$self.t.__h=16;break;case"SFCD_PT":$self.t.__h=32;break}};b.on("tabsactivate",e)},d6:function(a){var b=$b($$t.$mg.$type,a);switch(b.s()){case 0:this.t._ck(0);break;case 1:this.t._ck(1);break;case 2:this.t._ck(2);break;default:break}},d7:function(a){var b=$b($$t.$mg.$type,a);switch(b.s()){case 10:this.t._cv(1);break;case 6:this.t._cv(5);break;case 3:this.t._cv(3);break;case 5:this.t._cv(7);break;case 8:this.t._cv(0);break;case 7:this.t._cv(4);break;case 9:this.t._cv(2);break;case 4:this.t._cv(6);break;default:break}},d8:function(){this.d9(this.b6,this.t._selectedFormatCategory()._areFormatsVisible(),1,false);this.d9(this.aq,this.t._selectedFormatCategory()._isCustom(),0,false);this.d9(this.as,this.t._selectedFormatCategory()._decimalPlaces()>-1,1,false);var a=false;if(false==String.isNullOrEmpty(this.t._selectedFormatCategory()._formatsHeader())){a=true}this.d9(this.av,a,1,false);this.au.innerText=this.t._selectedFormatCategory()._description();this.av.innerText=this.t._selectedFormatCategory()._formatsHeader();this.aq.value=this.t._selectedFormatResolved();if(this.t._selectedFormatCategory()._areFormatsVisible()){this.ec(1)}},d9:function(a,b,c,d){var e=2;if(false==b){e=c}var f=$$t.$mj.$getName(e);var g=null;var h=null;if(e==0){g="none"}else if(d){g="grid";g="-ms-grid"}else{g="block"}var i=this.b8(a.getAttribute("style"),"display",g);if(false==String.isNullOrEmpty(h)){i=this.b8(i,"display",h)}i=this.b8(i,"visibility",f);if(e==2){i=this.b8(i,"opacity","1")}else{i=this.b8(i,"opacity","0")}a.setAttribute("style",i)},eb:function(){var a=this.t._cellBorderInfo();this.h.y(a._isTopCellBorderVisible());this.d.y(a._isInsideHorizontalCellBorderVisible());this.a.y(a._isBottomCellBorderVisible());this.c.y(a._isDiagonalUpCellBorderVisible());this.f.y(a._isLeftCellBorderVisible());this.e.y(a._isInsideVerticalCellBorderVisible());this.g.y(a._isRightCellBorderVisible());this.b.y(a._isDiagonalDownCellBorderVisible())},ec:function(a){var b=this.b6.selectedIndex;$$t.$mv.l(this.b6);this.b6.selectedIndex=-1;var c=this.t._selectedFormatCategory()._formats().count();var d=-1;var e=this.t._selectedFormat();for(var f=0;f<c;f++){var g=this.t._selectedFormatCategory()._formats().__inner[f];var h=document.createElement("option");h.innerText=g._previewText();h.setAttribute("value",g._mask());h.setAttribute("style",$6("color: {0};",g._color()));this.b6.appendChild(h);if(g==e){d=f}}if(a==2){this.b6.selectedIndex=Math.max(0,b)}else if(a==1&&d!=-1){this.b6.selectedIndex=d}},$type:new $.ig.Type("FormatCellsDialogManager",$.ig.$ot)},true);$c("StyleAttributeMember:md","Object",{_a:null,_b:null,init:function(a,b){$.ig.$op.init.call(this);this._a=a;this._b=b},$type:new $.ig.Type("StyleAttributeMember",$.ig.$ot)},true);$c("CheckboxElementInfo:me","Object",{_c:null,_a:null,_b:null,init:function(a,b,c){$.ig.$op.init.call(this);this._c=a;this._a=b;this._b=c},$type:new $.ig.Type("CheckboxElementInfo",$.ig.$ot)},true);$c("ColorPickerProxy:mf","Object",{e:false,g:null,k:null,h:null,i:null,l:null,j:null,d:null,o:0,c:null,p:null,q:null,aa:null,b:0,a:0,f:false,init:function(a,b,c,d,e){var $self=this;this.aa=new $$a.ax;$.ig.$op.init.call(this);this.c=a;this.e=d;this.q=a.dh(c);this.p=a.dh(b);this.d=e;var f=$$t.$mf.n.toString();this.o=$$t.$mf.n;$$t.$mf.n++;if(this.e){this.j=document.createElement("div");this.j.id="dropdown-color-picker"+f;this.j.setAttribute("style","border-style: solid; border-color: gray; border-width: 1px; padding: 2px;");var g=function(h){$self.s()};this.c.bs().addEventListener("mousedown",g,true);var h=document.createElement("div");h.setAttribute("style",$$t.$mv.k("1fr","1fr 1em","2px","height: 100%; box-sizing: border-box; "));this.j.appendChild(h);var i=function(j){switch($self.b){case 0:break;case 2:if(null!=$self.d){$self.d($$a4.$ah.automatic())}break;case 1:if(null!=$self.d){$self.d(new $$a4.ah($self.aa))}break}};this.g=a.ab(this.r("btn-selectedcolor",f),a.w().formatCellsDialogButtons,"",i);this.g.disabled=true;var j=a.dg(this.g);this.g.setAttribute("style",$$t.$mv.j(1,1,1,1,j+" border-style: none; border-width: 0px; background: transparent; "));h.appendChild(this.g);var k=function(l){$self.s()};var l=a.w().formatCellsDialogColorPickerDropdownButton+" ui-icon-triangle-1-s"+" ui-icon";this.k=a.ab(this.r("btn-dropdown",f),l,"",k);j=a.dg(this.k);this.k.setAttribute("style",$$t.$mv.j(1,1,2,1,j+" border-style: none; height: 100%; "));h.appendChild(this.k);this.l=document.createElement("div");this.l.id=this.r("dropdown-content",f);this.l.setAttribute("style",$$t.$mv.k("2em 1fr","1fr","0px","height: 184px; width: 200px; box-sizing: border-box; "));this.j.appendChild(this.l);var m=function(n){$self.u();$self.s()};this.h=a.ab(this.r("btn-action",f),a.w().formatCellsDialogButtons,"",m);j=a.dg(this.h);this.h.setAttribute("style",$$t.$mv.j(1,1,1,1,j+" border-style: solid; border-width: 1px; "));this.l.appendChild(this.h);this.i=document.createElement("div");this.i.id=this.r("color-picker",f);this.i.setAttribute("style",$$t.$mv.j(2,1,1,1,j));this.l.appendChild(this.i)}else{this.j=document.createElement("div");this.j.id=this.r("inplace-color-picker-container",f);this.j.setAttribute("style",$$t.$mv.k("2em 1fr","1fr","0px","height: 184px; width: 200px; box-sizing: border-box; "));var n=function(o){$self.u()};this.h=a.ab(this.r("btn-action",f),a.w().formatCellsDialogButtons,"",n);var o=a.dg(this.h);this.h.setAttribute("style",$$t.$mv.j(1,1,1,1,o+" border-style: solid; border-width: 1px; "));this.j.appendChild(this.h);this.i=document.createElement("div");this.i.id=this.r("color-picker",f);this.i.setAttribute("style",$$t.$mv.j(2,1,1,1,o));this.j.appendChild(this.i)}},m:function(){return this.j},t:function(){var $self=this;var a=function(b,c){var d=c.color;var e=$5(d,"rgb(","");e=$5(e,")","");var f=e.split(",");var g=$$a.$ax.u(255,$ag(f[0],null),$ag(f[1],null),$ag(f[2],null));if(null!=$self.d){$self.d(new $$a4.ah(g))}if($self.e){$self.y(g);$self.s()}};var b=function(c,d){$self.f=false};var c=function(d,e){$self.f=true};$(this.i).igColorPicker({colorSelected:a});if(this.e){$(this.m()).igPopover({direction:"auto",directionPriority:"['bottom', 'top']",position:"balanced",headerTemplate:{closeButton:false},contentTemplate:$(this.l),closeOnBlur:true,animationDuration:150,maxHeight:null,maxWidth:null,showOn:"click",shown:c,hidden:b})}},w:function(a){var b=a?"#CCE8FF":"transparent";var c=this.c.b8(this.h.getAttribute("style"),"background",b);this.h.setAttribute("style",c);this.h.innerText=this.q;this.a=1},v:function(){var a=this.c.b8(this.h.getAttribute("style"),"background","transparent");this.h.setAttribute("style",a);this.h.innerText=this.p;this.a=2},y:function(a){var b=this.c.b8(this.g.getAttribute("style"),"background",a.colorString());this.g.setAttribute("style",b);this.g.innerText="";this.b=1;this.aa=a},x:function(){var a=this.c.b8(this.g.getAttribute("style"),"background","transparent");this.g.setAttribute("style",a);this.g.innerText=this.p;this.b=2},z:function(){$(this.i).igColorPicker({colorSelected:null});if(this.e){$(this.j).igColorPicker({hidden:null,shown:null})}},r:function(a,b){return a+b},s:function(){if(this.f){$(this.j).igPopover("hide");this.f=false}},u:function(){switch(this.a){case 0:break;case 2:if(null!=this.d){this.d($$a4.$ah.automatic())}break;case 1:if(null!=this.d){this.d(null)}break}},$type:new $.ig.Type("ColorPickerProxy",$.ig.$ot)},true);$c("BorderLineButtonElementProxy_BorderLineButtonControlResources:mp","Object",{h:null,f:null,g:null,e:null,d:null,c:null,a:null,b:null,init:function(){this.h=$$a.$ax.u(255,224,224,224);this.f=new $$a.ax;this.g=new $$a.ax;this.e=new $$a.ax;this.d=$$a4.$afr.t();this.c=$$a4.$afr.e();this.a=$$a.$ax.u(255,64,64,64);this.b=$$a.$ax.u(255,192,192,192);$.ig.$op.init.call(this);var a=$$a.$ax.u(255,0,120,215);this.f=$$a.$ax.u(48,a.o(),a.n(),a.m());this.g=$$a.$ax.u(80,a.o(),a.n(),a.m())},$type:new $.ig.Type("BorderLineButtonElementProxy_BorderLineButtonControlResources",$.ig.$ot)},true);$c("BorderLineButtonElementProxy:mg","Object",{aa:null,ac:0,x:false,v:false,a:0,b:0,c:0,d:0,e:0,f:0,g:0,h:0,r:0,ak:null,al:null,u:null,t:null,w:false,init:function(a,b,c,d,e,f){this.ac=10;this.a=1;this.b=0;this.c=0;this.d=1;this.e=1;this.f=1;this.g=1;this.h=1;this.ak=new $$a.ax;this.al=new $$a.ax;$.ig.$op.init.call(this);if(null==$$t.$mg.q){$$t.$mg.q=new $$t.mp}this.aa=document.createElement("canvas");this.aa.id=a;this.z(b);this.s(c);this.w=d;this.aa.disabled=d;this.ak=d?$$t.$mg.q.c:$$t.$mg.q.d;$.data(this.aa,"CHECKEDSTATUS","Unchecked");this.al=$$t.$mg.q.h;this.u=e;this.t=f;this.ae()},i:function(a){if(arguments.length===1){if(this.a!=a){this.a=a;this.ah()}return a}else{return this.a}},s:function(a){if(arguments.length===1){if(a!=this.r){this.r=a;switch(this.r){case 0:break;case 1:this.n(2);this.p(2);this.o(2);this.i(2);break;case 2:this.l(2);this.m(2);break;case 3:this.i(2);break;case 4:this.l(0);this.m(0);this.j(2);break;case 5:this.l(0);this.m(0);this.k(2);break;case 6:this.l(2);break;case 7:this.m(2);break;case 8:this.n(2);break;case 9:this.o(2);break;case 10:this.p(2);break}}return a}else{return this.r}},ab:function(){return this.aa},y:function(a){if(arguments.length===1){if(this.v!=a){this.v=a;this.ah();$.data(this.aa,"CHECKEDSTATUS",true==a?"Checked":"Unchecked")}return a}else{return this.v}},z:function(a){if(arguments.length===1){this.x=a;return a}else{return this.x}},j:function(a){if(arguments.length===1){if(this.b!=a){this.b=a;this.ah()}return a}else{return this.b}},k:function(a){if(arguments.length===1){if(this.c!=a){this.c=a;this.ah()}return a}else{return this.c}},l:function(a){if(arguments.length===1){if(this.d!=a){this.d=a;this.ah()}return a}else{return this.d}},m:function(a){if(arguments.length===1){if(this.e!=a){this.e=a;this.ah()}return a}else{return this.e}},n:function(a){if(arguments.length===1){if(this.f!=a){this.f=a;this.ah()}return a}else{return this.f}},o:function(a){if(arguments.length===1){if(this.g!=a){this.g=a;this.ah()}return a}else{return this.g}},p:function(a){if(arguments.length===1){if(this.h!=a){this.h=a;this.ah()}return a}else{return this.h}},ae:function(){var $self=this;var a=function(b){if(false==$self.w){var c=b.button;$self.al=c==1?$$t.$mg.q.g:$$t.$mg.q.f;$self.ah()}};this.aa.addEventListener("mouseenter",a,false);var b=function(c){if(false==$self.w){$self.al=$$t.$mg.q.h;$self.ah()}};this.aa.addEventListener("mouseleave",b,false);var c=function(d){if(false==$self.w){var e=d.button;$self.al=e==1?$$t.$mg.q.g:$$t.$mg.q.f;$self.ah()}};this.aa.addEventListener("mousedown",c,false);var d=function(e){if(false==$self.w){var f=e.button;$self.al=f==1?$$t.$mg.q.g:$$t.$mg.q.f;$self.ah();if($self.z()){$self.y(!$self.y());$self.aj($$0.$w.empty)}else{$self.ai($$0.$w.empty)}}};this.aa.addEventListener("mouseup",d,false)},af:function(a,b,c,d,e,f){a.beginPath();a.lineWidth=1;a.moveTo(c,d);a.lineTo(e,f);a.strokeStyle=b.colorString();a.stroke()},ag:function(a,b,c,d,e,f){a.fillStyle=b.colorString();a.fillRect(c,d,e,f)},am:function(a){if(a==1){return $$t.$mg.q.b}if(a==2){return $$t.$mg.q.a}return $$a4.$afr.r()},ah:function(){var a=this.aa.getContext("2d");var b=new $$a.ae(0,0,0,this.aa.width,this.aa.height);var c=new $$a.ax;if(this.z()){if(this.y()){c=$$t.$mg.q.f}else{c=this.al}}else{c=this.al}this.ag(a,c,$.ig.truncate(b.left()),$.ig.truncate(b.top()),$.ig.truncate(b.width()),$.ig.truncate(b.height()));b.inflate(-this.ac,-this.ac);this.ag(a,this.ak,$.ig.truncate(b.left()),$.ig.truncate(b.top()),$.ig.truncate(b.width()),$.ig.truncate(b.height()));var d=new $$a.ax;d=this.am(this.n());if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.left()),$.ig.truncate(b.top()),$.ig.truncate(b.left()),$.ig.truncate(b.bottom()))}d=this.am(this.p());if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.left()),$.ig.truncate(b.top()),$.ig.truncate(b.right()),$.ig.truncate(b.top()))}d=this.am(this.o());if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.right()),$.ig.truncate(b.top()),$.ig.truncate(b.right()),$.ig.truncate(b.bottom()))}d=this.am(this.i());if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.left()),$.ig.truncate(b.bottom()),$.ig.truncate(b.right()),$.ig.truncate(b.bottom()))}d=this.am(this.k());if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.left()),$.ig.truncate(b.bottom()),$.ig.truncate(b.right()),$.ig.truncate(b.top()))}d=this.am(this.j());if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.left()),$.ig.truncate(b.top()),$.ig.truncate(b.right()),$.ig.truncate(b.bottom()))}d=this.am(this.l());var e=$.ig.truncate(b.top())+$a($.ig.truncate(b.bottom())-$.ig.truncate(b.top()),2);if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,$.ig.truncate(b.left())+1,e,$.ig.truncate(b.right())-1,e)}d=this.am(this.m());var f=$.ig.truncate(b.left())+$a($.ig.truncate(b.right())-$.ig.truncate(b.left()),2);if($$a.$ax.d($$a4.$afr.r(),d)){this.af(a,d,f,$.ig.truncate(b.top())+1,f,$.ig.truncate(b.bottom())-1)}},ai:function(a){if(this.t!=null){this.t(this)}},aj:function(a){if(this.u!=null){this.u(this)}},$type:new $.ig.Type("BorderLineButtonElementProxy",$.ig.$ot)},true);$c("SingleCellSpreadsheetPreviewHelper:mh","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a,b,c,d,e){var f=new $$a4.n(2);f.windowOptions().tabBarVisible(false);f.windowOptions().scrollBars(0);f.worksheets()._add("sheet1");var g=f.worksheets()._item(0);g.rows().item(0).cells().item(0).cellFormat().verticalAlignment(d);g.rows().item(0).cells().item(0).cellFormat().alignment(c);g.displayOptions().showRowAndColumnHeaders(false);g.displayOptions().showGridlines(false);if(e){g.rows().item(0).height($.ig.truncate($$a4.$n._ep(f,b,true)));g.columns().item(0).setWidth(a,3)}return f},e:function(a,b){b.worksheets()._item(0).rows().item(0).cells().item(0).value(a)},d:function(a,b){var c=$(a).igSpreadsheet("option","workbook");c.worksheets()._item(0).rows().item(0).cells().item(0).value(b)},c:function(a,b){b.worksheets()._item(0).rows().item(0).cells().item(0).cellFormat().formatString(a)},b:function(a,b){var c=$(a).igSpreadsheet("option","workbook");c.worksheets()._item(0).rows().item(0).cells().item(0).cellFormat().formatString(b)},f:function(a,b){b.worksheets()._item(0).rows().item(0).cells().item(0).cellFormat().fill(a)},g:function(a,b){var c=$(a).igSpreadsheet("option","workbook");c.worksheets()._item(0).rows().item(0).cells().item(0).cellFormat().fill(b)},$type:new $.ig.Type("SingleCellSpreadsheetPreviewHelper",$.ig.$ot)},true);$c("BorderPreviewSpreadsheetHelper:mi","Object",{c:null,a:null,j:null,i:null,b:null,init:function(a,b,c,d,e){this.j=new $$a.ax;this.i=new $$a.ax;$.ig.$op.init.call(this);this.b=a;this.c=$$t.$mh.a(b,c,d,e,false);this.a=new $$t.mz(this.c,a._cellBorderInfo(),b,c,a._workbook(),4)},k:function(a){if(arguments.length===1){this.i=a;for(var b=0;b<4;b++){for(var c=0;c<4;c++){this.c.worksheets()._item(0).rows().item(b).cells().item(c).cellFormat().fill($$a4.$ab._createSolidFill(new $$a4.ah(a)))}}return a}else{return this.i}},l:function(a){if(arguments.length===1){this.j=a;for(var b=0;b<4;b++){for(var c=0;c<4;c++){this.c.worksheets()._item(0).rows().item(b).cells().item(c).cellFormat().font().colorInfo(new $$a4.ah(a))}}return a}else{return this.j}},f:function(){return this.a.s()},g:function(){return this.a.t()},d:function(){return this.c},e:function(a,b,c){return this.a.f(a,b,c)},h:function(a,b,c){return this.a.u(a,b,c)},$type:new $.ig.Type("BorderPreviewSpreadsheetHelper",$.ig.$ot)},true);$c("ColorSortingCriteriaControl:mq","Object",{p:0,o:0,r:null,q:null,d:null,c:null,a:null,b:null,i:null,m:null,n:null,e:false,f:null,init:function(a,b){this.p=50;this.o=15;this.r="<img src='${image}' width='{0}px' height='{1}px'/><span>${displayText}</span>";this.q="<img src='{0}' width='{1}px' height='{2}px' /><span class='{4}'>{3}</span>";this.d=new $$a4.ah($$a4.$afr.a());this.e=true;this.f=new $$4.h($$t.$mr.$type,$$1.$n.$type,1,3);$.ig.$op.init.call(this);this.a=a;this.c=b;this.s()},k:function(){var a;this.m=document.createElement("div");this.m.id="cboColor";a=$$t.$mv.j(1,1,1,1,"display: block; width: 100%;");this.m.setAttribute("style",a);return this.m},l:function(){var $self=this;var a;var b=this.a.css;this.n=document.createElement("select");this.n.id="cboDirection";a=$$t.$mv.j(1,1,2,1,"display: block; width: 100%;");this.n.setAttribute("style",a);this.ab();var c=function(d){if($self.e){return}var e=$g($$t.$mv.i($self.n,$$t.$nj.$type));$self.b._sortDirection(e)};var d=c;this.n.addEventListener("change",d,false);return this.n},s:function(){var a=this.a.css;this.i=document.createElement("div");this.i.id="colorSortingCriteriaControl";var b=document.createElement("div");b.id="colorSortingCriteriaControlInnerGrid";this.i.appendChild(b);var c=$$t.$mv.k("auto","1fr 1fr","3px",null);b.setAttribute("style",c);var d=this.k();var e=this.l();this.f.item(0,d);this.f.item(1,e);b.appendChild(d);b.appendChild(e)},g:function(a,b){var c=document.createElement("canvas");c.width=a;c.height=b;return c},h:function(a){var b;var c;var d=this.v(b,c);b=d.p0;c=d.p1;var e=null;switch(this.b._sortConditionTypeResolved()){case 1:var f=$b($$a4.$ab.$type,a.dataValue());if(null!=f){e=$$t.$dy.ch(this.a,f,b,c,this.d)}break;case 2:var g=$b($$a4.$ah.$type,a.dataValue());if($$a4.$ah.l_op_Inequality(null,g)){e=$$t.$dy.cj(this.a,g,b,c,this.d)}break;case 3:var h=$b($$6.$u.$type.specialize($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type)),a.dataValue());if(null!=h){var i=h._c;var j=h._d;var k=$$t.$dy.an(i,j);e=$$t.$dy.ci(this.a,k,b,c)}break;case 0:case 4:break;default:break}var l=e!=null?e.getNativeElement():null;if(null==l){l=$$t.$mq.g(b,c)}{l.style.verticalAlign="middle";l.style.marginRight="5px"}return l},u:function(a){switch(a){case"cboColor":this.m.focus();break;default:break}},v:function(a,b){switch(this.b._sortConditionTypeResolved()){case 4:case 0:a=0;b=0;break;case 1:case 2:a=this.p;b=this.o;break;case 3:a=16;b=16;break;default:a=0;b=0;break}return{p0:a,p1:b}},w:function(a,b,c,d){b=null;c=null;d=null;if(null!=a){var e=a.count();if(e==1){var f=a[0];var g=f.data;b=g.dataValue;c=g.displayText;d=g.image}}return{p1:b,p2:c,p3:d}},x:function(){var $self=this;var a=$(this.m);var b=function(c,d){$self.t(c,d);return true};a.igCombo({textKey:"displayText",valueKey:"index",selectionChanged:b})},y:function(a){this.b=a;this.n.value=$$t.$nj.$getName(a._sortDirection());var b=this.b;b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.aa.runOn(this));this.ac();var c=this.b._getColorValueIndex();this.z(c);this.ad();this.e=false},z:function(a){var b=$(this.m);b.igCombo("value",a);this.ad()},ab:function(){$$t.$mv.n(this.n,this.c._colorSortDirectionListItems())},ac:function(){var a=this.b._sortConditionTypeResolved();switch(a){case 4:case 0:return}var b=this.b._colorSortingCriteriaListItems().count();var c=new Array(b);for(var d=0;d<b;d++){var e=this.b._colorSortingCriteriaListItems().item(d);var f=this.h(e);var g=f.toDataURL();var h={displayText:e.displayText(),index:d,dataValue:e.dataValue(),image:g};c[d]=h}var i;var j;var k=this.v(i,j);i=k.p0;j=k.p1;var l=$(this.m);var m=$6(this.r,i,j);l.igCombo("option","itemTemplate",m);l.igCombo("option","dataSource",c);var n=this.b._getColorValueIndex();this.z(n)},ad:function(){var a=$(this.m);var b=a.igCombo("selectedItems");this.ae(b)},ae:function(a){var b;var c;var d;var e=this.w(a,b,c,d);b=e.p1;c=e.p2;d=e.p3;var f;var g;var h=this.v(f,g);f=h.p0;g=h.p1;if(null==d){var i=$$t.$mq.g(f,g);d=i.toDataURL()}var j=this.a.css;var k=$(this.m);var l="ui-igcombo-field";var m=$7(this.q,[d,f,g,c,l]);var n=k.find(".ui-igcombo-fieldholder");n.html(m)},j:function(){return this.i},t:function(a,b){var c=b.items;var d;var e;var f;var g=this.w(c,d,e,f);d=g.p1;e=g.p2;f=g.p3;this.b._colorValue(d);this.ae(c)},aa:function(a,b){switch(b.propertyName()){case"ColorSortingCriteriaListItems":this.ac();break}},$type:new $.ig.Type("ColorSortingCriteriaControl",$.ig.$ot)},true);$c("SortCriteriaRow:ms","Object",{_d:null,_b:null,_c:null,_k:null,_m:null,_n:null,_g:null,_a:null,_f:null,_o:null,init:function(a,b,c){this._f=new $$4.h($$t.$mt.$type,$$1.$n.$type,1,3);$.ig.$op.init.call(this);this._b=a;this._d=b;this._c=c;this._p();var d=this._c;d.propertyChanged=$.ig.Delegate.prototype.combine(d.propertyChanged,this._t.runOn(this))},_h:function(){var $self=this;var a;var b=this._b.css;var c=document.createElement("div");c.id="pnlColumn";var d=document.createElement("div");d.id="pnlColumnContentsGrid";a=$$t.$mv.k("auto","auto 1fr","3px",null);d.setAttribute("style",a);c.appendChild(d);this._k=document.createElement("label");this._k.id="lblLabel";a=$$t.$mv.j(1,1,1,1,"display: block; ");this._k.setAttribute("style",a);this._k.innerText=this._c._sortByLabelText();d.appendChild(this._k);this._m=document.createElement("select");this._m.id="cbCombo";a=$$t.$mv.j(1,1,2,1,"display: block; width: 100%;");this._m.setAttribute("style",a);this._y(false);d.appendChild(this._m);var e=function(f){
var g=$$t.$mv.h($self._m);$self._c._absoluteColumnIndex($$6.$g.toInt321(g))};var f=e;this._m.addEventListener("change",f,false);return c},_p:function(){var a=this._b.css;this._f.item(0,this._h());this._f.item(1,this._j());this._f.item(2,this._i());this._x();this._aa();this._u()},_i:function(){var $self=this;var a;var b=this._b.css;this._g=document.createElement("div");this._g.id="pnlSortCriteria";var c=document.createElement("div");this._g.id="orderElementInnerGrid";a=$$t.$mv.k("1fr","1fr","0px","width:100%; height:100%");c.setAttribute("style",a);this._g.appendChild(c);this._n=document.createElement("select");this._n.id="cboSortDirection";a=$$t.$mv.j(1,1,1,1,"width:100%; height:100%");this._n.setAttribute("style",a);this._ab(false);var d=function(e){var f=$g($$t.$mv.i($self._n,$$t.$nj.$type));$self._c._sortDirection(f)};var e=d;this._n.addEventListener("change",e,false);this._a=new $$t.mq(this._b,this._d);var f=this._a.j();f.id="colorSortingCriteriaControl";f.setAttribute("style",a);c.appendChild(this._n);c.appendChild(f);return this._g},_j:function(){var $self=this;var a=this._b.css;this._o=document.createElement("select");this._o.id="cboSortType";$$t.$mv.n(this._o,this._d._sortConditionTypesListItems());var b=function(c){if(null!=$self._o.value){var d=$g($$t.$mv.i($self._o,$$t.$ni.$type));$self._c._sortConditionType(d)}};var c=b;this._o.addEventListener("change",c,false);return this._o},_q:function(a){switch(a){case"cboColor":this._a.u(a);break;default:break}},_r:function(){this._a.x();this._s(this._c);this._z()},_s:function(a){this._o.value=$$t.$ni.$getName(a._sortConditionType());this._m.value=a._absoluteColumnIndex().toString();switch(a._sortConditionType()){case 4:break;case 0:this._n.value=$$t.$nj.$getName(a._sortDirection());break;case 1:case 2:case 3:this._n.value=$$t.$nj.$getName(0);break}this._a.y(a)},_u:function(){var a=this._b.css;var b=new $$6.aj(0);b.l(a.sortDialogSortConditionRow);if(this._isActive()){b.l(" ");b.l(a.sortDialogSortConditionActiveRow)}this._item(0).className=b.toString()},_v:function(){this._a.ab()},_w:function(){this._a.ac()},_x:function(){var a;a=$$t.$mv.j(this._c._w()+1,1,1,1,"display: block; width: 100%;");this._item(0).setAttribute("style",a);a=$$t.$mv.j(this._c._w()+1,1,2,1,"display: block; width: 100%;");this._item(1).setAttribute("style",a);a=$$t.$mv.j(this._c._w()+1,1,3,1,"display: block; width: 100%;");this._item(2).setAttribute("style",a)},_y:function(a){var b=$$t.$mv.h(this._m);$$t.$mv.n(this._m,this._d._headerNamesListItems());if(a){this._m.value=b}},_z:function(){this._k.innerText=this._c._sortByLabelText()},_aa:function(){var a=this._c._sortConditionTypeResolved();switch(a){case 0:this._n.style.visibility="visible";this._a.j().style.visibility="hidden";break;case 1:case 2:case 3:case 4:this._n.style.visibility="hidden";this._a.j().style.visibility="visible";break}},_ab:function(a){var b=$$t.$mv.h(this._n);$$t.$mv.n(this._n,this._c._sortDirectionsListItems());if(a){this._n.value=b}},_item:function(a){return this._f.item(a)},_isActive:function(){return this._c._isActive()},getEnumerator:function(){return new $$t.mu(this)},_t:function(a,b){switch(b.propertyName()){case"SortByLabelText":this._z();break;case"SortConditionType":this._aa();this._ab(false);this._w();break;case"SortDirection":this._n.value=$$t.$nj.$getName(this._c._sortDirection());break;case"Column":this._ab(true);this._w();break}},$type:new $.ig.Type("SortCriteriaRow",$.ig.$ot,[$$0.$bw.$type.specialize($$1.$n.$type)])},true);$c("SortCriteriaRow_SortCriteriaRowEnumerator:mu","Object",{_a:null,_b:0,init:function(a){this._b=-1;$.ig.$op.init.call(this);this._a=a},current:function(){return this._a._item(this._b)},dispose:function(){},moveNext:function(){this._b++;return this._b<this._a._f.count()},reset:function(){this._b=0},$type:new $.ig.Type("SortCriteriaRow_SortCriteriaRowEnumerator",$.ig.$ot,[$$0.$bu.$type,$$0.$bx.$type.specialize($$1.$n.$type)])},true);$c("SpreadsheetDialogUtilities:mv","Object",{init:function(){$.ig.$op.init.call(this)},c:function(a,b,c,d){var e=document.createElement("label");d=document.createElement("input");d.type="checkbox";d.id=a;e.appendChild(d);var f=document.createElement("text");f.innerText=b;d.accessKey=c;e.appendChild(f);return{ret:e,p3:d}},d:function(a,b,c,d,e){var f=document.createElement("label");e=document.createElement("input");e.name=b;e.type="radio";e.id=a;f.appendChild(e);var g=document.createElement("text");g.innerText=c;e.accessKey=d;f.appendChild(g);return{ret:f,p4:e}},l:function(a){while(a.children.length>0){a.removeChild(a.children.item(0))}},a:function(){return $$t.$mv.b("button")},b:function(a){var b=document.createElement("button");b.type=a;return b},k:function(a,b,c,d){var e=new $$6.aj(0);e.l("display: -ms-grid; ");var f=$.ig.util.stringSplit(a,[" "],1);var g=$.ig.util.stringSplit(b,[" "],1);e.l("-ms-grid-rows: ");for(var i=0;i<f.length;i++){var h=f[i];e.l(h);e.l(" ");e.l(c);e.l(" ")}e.l(";");e.l("-ms-grid-columns: ");for(var k=0;k<g.length;k++){var j=g[k];e.l(j);e.l(" ");e.l(c);e.l(" ")}e.l(";");e.l("display: grid; ");e.l("grid-template-rows: ");e.l(a);e.l("; ");e.l("grid-template-columns: ");e.l(b);e.l("; ");if(false==String.isNullOrEmpty(c)){e.l("grid-gap: ");e.l(c);e.l("; ")}if(false==String.isNullOrEmpty(d)){e.l(d)}return e.toString()},j:function(a,b,c,d,e){var f=new $$6.aj(0);f.l("grid-row: ");f.l(a.toString());if(b>1){f.l("/span ");f.l(b.toString())}f.l("; ");f.l("grid-column: ");f.l(c.toString());if(d>1){f.l("/span ");f.l(d.toString())}f.l("; ");var g=a+(a-1);var h=b*2-1;var i=c+(c-1);var j=d*2-1;f.l("-ms-grid-row: ");f.l(g.toString());f.l("; ");if(h>1){f.l("-ms-grid-row-span: ");f.l(h.toString());f.l("; ")}f.l("-ms-grid-column: ");f.l(i.toString());f.l("; ");if(j>1){f.l("-ms-grid-column-span: ");f.l(j.toString());f.l("; ")}if(false==String.isNullOrEmpty(e)){f.l(e)}return f.toString()},e:function(a,b){if($9(a.id,b,2)==0){return a}var c=a.parentElement;if(null==c){return null}return $$t.$mv.e(c,b)},f:function(){var a=document.createElement("div");a.style.visibility="hidden";a.style.height="100px";a.setAttribute("MsOverflowStyle","scrollbar");document.body.appendChild(a);var b=a.offsetHeight;a.style.overflow="scroll";var c=document.createElement("div");c.style.height="100%";a.appendChild(c);var d=c.offsetHeight;a.parentNode.removeChild(a);return b-d},g:function(){var a=document.createElement("div");a.style.visibility="hidden";a.style.width="100px";a.setAttribute("MsOverflowStyle","scrollbar");document.body.appendChild(a);var b=a.offsetWidth;a.style.overflow="scroll";var c=document.createElement("div");c.style.width="100%";a.appendChild(c);var d=c.offsetWidth;a.parentNode.removeChild(a);return b-d},h:function(a){var b=a.selectedIndex;var c=a.options.item(b);if(null==c){return null}var d=c.getAttribute("value");return d},i:function(a,b){var c=a.selectedIndex;var d=a.options.item(c);if(null!=d){return $.ig.$ep.parse(b,d.value.toString(),true)}return null},m:function(a,b,c){if(c==a.children.length){a.appendChild(b)}else if(c>=0){var d=a.children.item(c);a.insertBefore(b,d)}else{throw new $$6.o(0)}},n:function(a,b){$$t.$mv.o(a,b,null)},o:function(a,b,c){$$t.$mv.l(a);var d=b;var f=d.getEnumerator();while(f.moveNext()){var e=f.current();var g=document.createElement("option");g.innerText=e.displayText();g.setAttribute("value",e.dataValue());if(null!=c){var h=c(e);if(null!=h){g.insertBefore(h,g.firstChild)}}a.appendChild(g)}},$type:new $.ig.Type("SpreadsheetDialogUtilities",$.ig.$ot)},true);$c("SortOptionsDialogManager:mw","Object",{c:null,d:null,b:null,a:null,h:null,e:null,g:null,f:null,init:function(a,b,c){$.ig.$op.init.call(this);this.b=a;this.c=b;this.h=c},k:function(){this.c._caseSensitive(this.e.checked);if(this.f.checked){this.c._sortOrientation(1)}else{this.c._sortOrientation(0)}},m:function(){var a=this.b.css;this.d=document.createElement("div");this.d.className=a.sortDialog;this.d.id="SortOptionsDialog_Main_Content_Element";this.l(a);this.o(a);this.n(a)},l:function(a){var $self=this;var b;var c=document.createElement("div");c.className=a.sortOptionsDialogCaseSensitiveCheckboxArea;var d;var e=function(){var f=$self.j("SortOptionsDialog_CaseSensitive",b);b=f.p1;return f.ret}();var f=function(){var g=$$t.$mv.c("chkCaseSensitive",e,b,d);d=g.p3;return g.ret}();this.e=d;c.appendChild(f);this.d.appendChild(c)},o:function(a){var $self=this;var b;var c=document.createElement("div");c.className=a.sortOptionsDialogOrientationArea;this.d.appendChild(c);var d=document.createElement("label");d.id="lblOrientation";d.innerText=function(){var e=$self.j("SortOptionsDialog_Orientation",b);b=e.p1;return e.ret}();d.accessKey=b;c.appendChild(d);var e=document.createElement("br");c.appendChild(e);var f;var g=function(){var h=$self.j("SortOptionsDialog_SortTopToBottom",b);b=h.p1;return h.ret}();var h=function(){var i=$$t.$mv.d("radSortTopToBottom","sortOrientation",g,b,f);f=i.p4;return i.ret}();this.g=f;c.appendChild(h);e=document.createElement("br");c.appendChild(e);var i;var j=function(){var k=$self.j("SortOptionsDialog_SortLeftToRight",b);b=k.p1;return k.ret}();var k=function(){var l=$$t.$mv.d("radSortLeftToRight","sortOrientation",j,b,i);i=l.p4;return l.ret}();this.f=i;c.appendChild(k);this.f.disabled=!this.c._allowSortingLeftToRight();e=document.createElement("br");c.appendChild(e);this.d.appendChild(c)},n:function(a){var $self=this;var b;var c=document.createElement("div");c.className=a.sortOptionsDialogOkCancelButtonsArea;var d=$$t.$mv.a();var e=function(f){$self.k();$self.p()};var f=e;d.id="btnOK";d.addEventListener("click",f,false);d.innerText=function(){var g=$self.j("SortOptionsDialog_OK",b);b=g.p1;return g.ret}();d.accessKey=b;var g=$$t.$mv.a();var h=function(i){$self.p()};var i=h;g.id="btnCancel";g.addEventListener("click",i,false);g.innerText=function(){var j=$self.j("SortOptionsDialog_Cancel",b);b=j.p1;return j.ret}();g.accessKey=b;c.appendChild(d);c.appendChild(g);this.d.appendChild(c)},p:function(){this.a.close(false)},i:function(a){var b=this.b._fs(a,[]);b=$$t.$dy.c5(b);return b},j:function(a,b){var c=this.b._fs(a,[]);c=function(){var d=$$t.$dy.c6(c,b);b=d.p1;return d.ret}();return{ret:c,p1:b}},q:function(){this.e.checked=this.c._caseSensitive();switch(this.c._sortOrientation()){case 1:this.f.checked=true;break;case 0:this.g.checked=true;break}},r:function(){var $self=this;this.m();this.q();var a=this.d;var b=this.b._fs("SortOptionsDialog_Title",[]);var c=function(){$$t.$dy.ea($self.h)};this.a=this.b._q(a,b,c,false)},$type:new $.ig.Type("SortOptionsDialogManager",$.ig.$ot)},true);$c("SortDialogManager:mx","Object",{e:null,r:null,d:null,c:null,b:null,v:$m($$0.$aw.$type,null),g:null,m:null,l:null,s:null,o:null,q:null,p:null,i:null,h:null,k:null,j:null,n:null,init:function(a,b){this.v=$m($$0.$aw.$type,null);this.g=new $$4.x($$t.$ms.$type,0);$.ig.$op.init.call(this);this.d=a;this.e=b;var c=this.e;c._activeRowIndexChanged=$.ig.Delegate.prototype.combine(c._activeRowIndexChanged,this.am.runOn(this));var d=this.e;d.propertyChanged=$.ig.Delegate.prototype.combine(d.propertyChanged,this.an.runOn(this))},u:function(){if($j(null,this.v)){this.v=$m($$0.$aw.$type,$$t.$mv.g())}return this.v.value()},y:function(){return $6("{0}px",this.u())},t:function(a){var b=this.g.count();this.ag(b,a);return b},f:function(){var $self=this;var a=false;var b=null;this.d._gi(43,function(){a=function(){var c=$self.e._u(b);b=c.p0;return c.ret}()},null,false,null,true,false);if(false==a){if(null==b){return false}var c=b.b();if(-1!=c){this.e._activeRowIndex($m($$0.$aw.$type,c));switch(b._d){case"Cell Color":case"Font Color":case"Conditional Formatting Icon":this.g.__inner[c]._q("cboColor");break;default:break}}alert(b._c)}return a},z:function(){var a=this.d.css;this.r=document.createElement("div");this.r.className=a.sortDialog;this.r.id="SortDialog_Main_Content_Element";this.ad(a);this.ac(a);this.ab(a);this.aa(a)},ad:function(a){var $self=this;var b;var c=document.createElement("div");c.className=a.sortDialogTopButtonsArea;this.r.appendChild(c);var d=$$t.$mv.a();d.className=a.sortDialogAddLevelButton;var e=function(f){$self.e._addNewSortCondition()};var f=e;d.id="btnAddLevel";d.addEventListener("click",f,false);d.innerText=function(){var g=$self.x("SortDialog_AddLevel",b);b=g.p1;return g.ret}();d.accessKey=b;this.i=$$t.$mv.a();this.i.className=a.sortDialogDeleteLevelButton;var g=function(h){$self.e._deleteActiveSortCondition()};var h=g;this.i.id="btnDeleteLevel";this.i.addEventListener("click",h,false);this.i.innerText=function(){var i=$self.x("SortDialog_DeleteLevel",b);b=i.p1;return i.ret}();this.i.accessKey=b;this.h=$$t.$mv.a();this.h.className=a.sortDialogCopyLevelButton;var i=function(j){$self.e._copyActiveCondition()};var j=i;this.h.id="btnCopyLevel";this.h.addEventListener("click",j,false);this.h.innerText=function(){var k=$self.x("SortDialog_CopyLevel",b);b=k.p1;return k.ret}();this.h.accessKey=b;this.k=$$t.$mv.a();this.k.className=a.sortDialogMoveUpButton;var k=function(l){$self.e._moveActiveRowUp()};var l=k;this.k.id="btnMoveUp";this.k.addEventListener("click",l,false);this.k.innerText=function(){var m=$self.x("SortDialog_MoveUp",b);b=m.p1;return m.ret}();this.k.accessKey=b;this.j=$$t.$mv.a();this.j.className=a.sortDialogMoveDownButton;var m=function(n){$self.e._moveActiveRowDown()};var n=m;this.j.id="btnMoveDown";this.j.addEventListener("click",n,false);this.j.innerText=function(){var o=$self.x("SortDialog_MoveDown",b);b=o.p1;return o.ret}();this.j.accessKey=b;var o=$$t.$mv.a();var p=function(q){$self.ak()};var q=p;o.id="btnOptions";o.addEventListener("click",q,false);o.innerText=function(){var r=$self.x("SortDialog_Options",b);b=r.p1;return r.ret}();o.accessKey=b;var r=function(){var s=$self.x("SortDialog_MyDataHasHeaders",b);b=s.p1;return s.ret}();this.n=function(){var s=$$t.$mv.c("chkDataHasHeaders",r,b,$self.s);$self.s=s.p3;return s.ret}();this.n.className=a.sortDialogMyDataHasHeaderCheckBox;var s=function(t){$self.e._myDataHasHeaders($self.s.checked)};var t=s;this.s.addEventListener("change",t,false);c.appendChild(d);c.appendChild(this.i);c.appendChild(this.h);c.appendChild(this.k);c.appendChild(this.j);c.appendChild(o);c.appendChild(this.n)},ac:function(a){var b=document.createElement("div");this.m=document.createElement("div");this.m.id="grdHeaders";var c=$6("margin-right:{0};",this.y());b.setAttribute("style",c);this.o=document.createElement("label");this.o.className=a.sortDialogSortConditionsGridHeader;this.aq();this.o.setAttribute("style",$$t.$mv.j(1,1,1,1,"display: block; "));this.q=document.createElement("label");this.q.className=a.sortDialogSortConditionsGridHeader;this.q.innerText=this.e._sortOnColumnHeaderText();this.q.setAttribute("style",$$t.$mv.j(1,1,2,1,"display: block; "));this.p=document.createElement("label");this.p.className=a.sortDialogSortConditionsGridHeader;this.p.innerText=this.e._orderColumnHeaderText();this.p.setAttribute("style",$$t.$mv.j(1,1,3,1,"display: block; "));this.m.appendChild(this.o);this.m.appendChild(this.q);this.m.appendChild(this.p);b.appendChild(this.m);this.r.appendChild(b)},ab:function(a){var b=new $$6.aj(0);var c=document.createElement("div");c.id="divScroll";b.l("overflow-y:scroll;");b.l("height:200px;");c.setAttribute("style",b.toString());this.l=document.createElement("div");this.l.id="grdSortConditions";c.appendChild(this.l);this.r.appendChild(c)},aa:function(a){var $self=this;var b;var c=document.createElement("div");c.className=a.sortDialogOkCancelButtonsArea;var d=$$t.$mv.a();var e=function(f){var g=$self.f();if(g){$self.af()}};var f=e;d.id="btnOK";d.addEventListener("click",f,false);d.innerText=function(){var g=$self.x("SortDialog_OK",b);b=g.p1;return g.ret}();d.accessKey=b;var g=$$t.$mv.a();var h=function(i){$self.af()};var i=h;g.id="btnCancel";g.addEventListener("click",i,false);g.innerText=function(){var j=$self.x("SortDialog_Cancel",b);b=j.p1;return j.ret}();g.accessKey=b;c.appendChild(d);c.appendChild(g);this.r.appendChild(c)},ae:function(){for(var a=this.g.count()-1;a>=0;a--){var b=this.g.__inner[a];this.ai(b)}this.g.clear()},af:function(){this.c.close(false)},a:function(a,b){var d=this.g.getEnumerator();while(d.moveNext()){var c=d.current();if(c._item(b)==a){return c}}return null},w:function(a){var b=this.d._fs(a,[]);b=$$t.$dy.c5(b);return b},x:function(a,b){var c=this.d._fs(a,[]);c=function(){var d=$$t.$dy.c6(c,b);b=d.p1;return d.ret}();return{ret:c,p1:b}},ag:function(a,b){var c=new $$t.ms(this.d,this.e,b);var d=a*3;var e=c._item(0);$$t.$mv.m(this.l,e,d);d++;var f=c._item(1);$$t.$mv.m(this.l,f,d);d++;var g=c._item(2);$$t.$mv.m(this.l,g,d);this.g.insert(a,c);c._r()},ah:function(a,b){if(a.hasValue()){var c=a.value();if(c>=0&&c<this.g.count()){this.g.__inner[c]._u()}}if(b.hasValue()){var d=b.value();this.g.__inner[d]._u()}this.ap()},ai:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.l.removeChild(b)}this.g.remove(a)},ao:function(){this.ae();var a=this.e._sortConditionWrappers();var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.t(b)}this.ah($m($$0.$aw.$type,null),this.e._activeRowIndex())},ap:function(){this.k.disabled=!this.e._canMoveUp();this.j.disabled=!this.e._canMoveDown();this.h.disabled=!this.e._canCopyLevel();this.i.disabled=!this.e._canDeleteLevel()},aq:function(){this.o.innerText=this.e._columnColumnHeaderText()},ar:function(){this.s.disabled=!this.e._myDataHasHeadersEnabled()},aj:function(a){var $self=this;this.z();var b=this.r;var c=this.d._fs("SortDialog_Title",[]);var d=this.as.runOn(this);window.addEventListener("focus",d,true);var e=function(){window.removeEventListener("focus",d,true);if(a!=null){a()}$self.d._v().focus()};this.c=this.d._q(b,c,e,false);this.s.checked=this.e._myDataHasHeaders();this.s.disabled=!this.e._myDataHasHeadersEnabled();this.ao();var f=this.e._sortConditionWrappers();f.collectionChanged=$.ig.Delegate.prototype.combine(f.collectionChanged,this.al.runOn(this));var g=this.r.innerHTML},ak:function(){var a=document.activeElement;this.b=new $$t.mw(this.d,this.e,a);this.b.r()},al:function(a,b){switch(b.action()){case 0:var c=b.newItems().item(0);this.ag(b.newStartingIndex(),c);for(var d=b.newStartingIndex();d<this.g.count();d++){this.g.__inner[d]._x()}break;case 1:this.ai(this.g.__inner[b.oldStartingIndex()]);for(var e=b.oldStartingIndex();e<this.g.count();e++){this.g.__inner[e]._x()}break;case 4:this.ao();break}},am:function(a,b){this.ah(b._oldActiveRowIndex(),b._newActiveRowIndex())},an:function(a,b){switch(b.propertyName()){case"SortOrientation":this.aq();var d=this.g.getEnumerator();while(d.moveNext()){var c=d.current();c._y(false);c._v();c._ab(true);c._w()}break;case"ColumnColumnHeaderText":this.aq();break;case"MyDataHasHeadersEnabled":this.ar();break;case"MyDataHasHeaders":var f=this.g.getEnumerator();while(f.moveNext()){var e=f.current();e._y(true)}break}},as:function(a){var b=document.activeElement;if(null==b){return}var c=b;var d=null;var t1=c.id;L0:while(true){switch(t1){case"pnlColumn":d=this.a(c,0);break;case"cboSortType":d=this.a(c,1);break;case"pnlSortCriteria":d=this.a(c,2);break;case"cbCombo":case"lvlLabel":case"cboColumn":c=$$t.$mv.e(c,"pnlColumn");if(null!=c){t1="pnlColumn";continue L0}break;case"cboSortDirection":case"colorSortingCriteriaControl":case"cboColor":case"cboDirection":c=$$t.$mv.e(c,"pnlSortCriteria");if(null!=c){t1="pnlSortCriteria";continue L0}break}break}if(null!=d){var e=this.g.indexOf(d);this.e._activeRowIndex($m($$0.$aw.$type,e))}},$type:new $.ig.Type("SortDialogManager",$.ig.$ot)},true);$c("TopOrBottomDialogManager:my","Object",{a:null,f:null,c:null,b:null,h:null,g:null,i:null,init:function(a,b){$.ig.$op.init.call(this);this.c=a;this.a=b},m:function(){var $self=this;var a=this.e();var b=this.j();var c=this.d();this.c._gi(43,function(){$self.a.q(a,c,b)},null,false,null,true,false)},n:function(){var $self=this;var a;var b=this.c.css;this.f=document.createElement("div");this.f.className=b.topOrBottomDialog;this.f.id="TopOrBottomDialog_Main_Content_Element";var c=document.createElement("div");c.innerText=this.k("TopOrBottomDialog_Show");c.className=b.topOrBottomDialogShow;this.f.appendChild(c);var d=document.createElement("div");d.className=b.topOrBottomDialogInputArea;this.f.appendChild(d);this.h=document.createElement("select");this.h.id="cboOperator";d.appendChild(this.h);this.g=document.createElement("input");this.g.id="nudValue";d.appendChild(this.g);this.i=document.createElement("select");this.i.id="cboType";d.appendChild(this.i);var e=document.createElement("div");e.className=b.topOrBottomDialogButtons;var f=$$t.$mv.a();var g=function(h){$self.m();$self.o()};var h=g;f.id="btnOK";f.addEventListener("click",h,false);f.innerText=function(){var i=$self.l("TopOrBottomDialog_OK",a);a=i.p1;return i.ret}();f.accessKey=a;var i=$$t.$mv.a();var j=function(k){$self.o()};var k=j;i.id="btnCancel";i.addEventListener("click",k,false);i.innerText=function(){var l=$self.l("TopOrBottomDialog_Cancel",a);a=l.p1;return l.ret}();i.accessKey=a;e.appendChild(f);e.appendChild(i);this.f.appendChild(e);var l=$$t.$nt.k(this.c);var n=l.getEnumerator();while(n.moveNext()){var m=n.current();var o=document.createElement("option");o.innerText=m.displayText();o.setAttribute("value",m.dataValue());this.h.appendChild(o)}var p=$$t.$nt.l(this.c);var r=p.getEnumerator();while(r.moveNext()){var q=r.current();var s=document.createElement("option");s.innerText=q.displayText();s.setAttribute("value",q.dataValue());this.i.appendChild(s)}this.p(this.g);this.h.value=this.a.j().toString();this.g.value=this.a.n().toString();var t=$(this.g);t.igNumericEditor("value",this.a.n());this.i.value=this.a.h().toString()},o:function(){this.b.close(false)},p:function(a){var b=$(a);b.igNumericEditor({buttonType:"spin",spinDelta:1,minValue:1,maxValue:500})},k:function(a){var b=this.c._fs(a,[]);b=$$t.$dy.c5(b);return b},l:function(a,b){var c=this.c._fs(a,[]);c=function(){var d=$$t.$dy.c6(c,b);b=d.p1;return d.ret}();return{ret:c,p1:b}},e:function(){var a=this.h;var b=$$t.$mv.h(a);if(null==b){return true}var c=b.toString();if(String.isNullOrEmpty(c)){return true}var d=false;var e=$as(c,d);d=e.p1;return d},d:function(){var a=this.i;var b=$$t.$mv.h(a);if(null==b){return true}var c=b.toString();if(String.isNullOrEmpty(c)){return true}var d=false;var e=$as(c,d);d=e.p1;return d},j:function(){var a=this.g.value;if(null==a){return 10}var b=10;if(typeof a==="number"){b=$h(a)}else{var c=$z(a.toString(),b);b=c.p1}return b},q:function(){this.n();var a=this.f;var b=this.c._fs("TopOrBottomDialog_Title",[]);this.b=this.c._r(a,b,false)},$type:new $.ig.Type("TopOrBottomDialogManager",$.ig.$ot)},true);$c("CellBordersPreviewControlHelper:mz","Object",{r:0,q:0,p:0,o:0,a:null,e:null,d:null,b:null,i:0,h:0,k:0,m:0,j:0,l:0,n:0,init:function(a,b,c,d,e,f){$.ig.$op.init.call(this);$$ak.$c.z(a,"workbook");$$ak.$c.z(b,"cellBorderInfo");$$ak.$c.z(e,"originalWorkbook");this.e=a;this.b=b;this.i=c;this.h=d;this.d=e;this.n=f;this.am()},t:function(){return this.p},s:function(){return this.o},f:function(a,b,c){var d=this.v(a,b);if(String.isNullOrEmpty(d)){return null}var e=this.e.windowOptions().selectedWorksheet()._getCell(d).getResolvedCellFormat();switch(c){case"Left":return e.leftBorderColorInfo();case"Top":return e.topBorderColorInfo();case"Right":return e.rightBorderColorInfo();case"Bottom":return e.bottomBorderColorInfo();case"DiagonalUp":case"DiagonalDown":var f=e.diagonalBorders();if(c=="DiagonalUp"&&f==5||c=="DiagonalDown"&&f==3||f==7){return e.diagonalBorderColorInfo()}else{return $$a4.$ah.automatic()}}return null},u:function(a,b,c){var d=this.v(a,b);if(String.isNullOrEmpty(d)){return $m($$a4.$by.$type,null)}var e=this.e.windowOptions().selectedWorksheet()._getCell(d).getResolvedCellFormat();switch(c){case"Left":return $m($$a4.$by.$type,e.leftBorderStyle());case"Top":return $m($$a4.$by.$type,e.topBorderStyle());case"Right":return $m($$a4.$by.$type,e.rightBorderStyle());case"Bottom":return $m($$a4.$by.$type,e.bottomBorderStyle());case"DiagonalUp":case"DiagonalDown":var f=e.diagonalBorders();if(c=="DiagonalUp"&&f==5||c=="DiagonalDown"&&f==3||f==7){return $m($$a4.$by.$type,e.diagonalBorderStyle())}else{return $m($$a4.$by.$type,0)}}return $m($$a4.$by.$type,null)},w:function(){var $self=this;this.ap(this.a[this.m],function(a){a.cellFormat().bottomBorderColorInfo($self.g($self.b._aa()))})},x:function(){var $self=this;this.ap(this.a[this.m],function(a){a.cellFormat().bottomBorderStyle($self.b._i())})},y:function(){var $self=this;this.an(function(a){a.cellFormat().diagonalBorderColorInfo($self.g($self.b._ab()))})},z:function(){var $self=this;this.an(function(a){a.cellFormat().diagonalBorders($self.b._r());a.cellFormat().diagonalBorderStyle($self.c($self.b))})},aa:function(){var $self=this;this.an(function(a){a.cellFormat().diagonalBorderColorInfo($self.g($self.b._ac()))})},ab:function(){var $self=this;this.an(function(a){a.cellFormat().diagonalBorders($self.b._r());a.cellFormat().diagonalBorderStyle($self.c($self.b))})},ac:function(){var $self=this;if(this.p>1){this.ap(this.a[this.k],function(a){a.cellFormat().bottomBorderColorInfo($self.g($self.b._ad()))})}},ad:function(){var $self=this;if(this.p>1){this.ap(this.a[this.k],function(a){a.cellFormat().bottomBorderStyle($self.b._l())})}},ae:function(){var $self=this;if(this.o>1){this.ao(this.j,function(a){a.cellFormat().rightBorderColorInfo($self.g($self.b._ae()))})}},af:function(){var $self=this;if(this.o>1){this.ao(this.j,function(a){a.cellFormat().rightBorderStyle($self.b._m())})}},ag:function(){var $self=this;this.ao(this.j,function(a){a.cellFormat().leftBorderColorInfo($self.g($self.b._af()))})},ah:function(){var $self=this;this.ao(this.j,function(a){a.cellFormat().leftBorderStyle($self.b._n())})},ai:function(){var $self=this;this.ao(this.l,function(a){a.cellFormat().rightBorderColorInfo($self.g($self.b._ag()))})},aj:function(){var $self=this;this.ao(this.l,function(a){a.cellFormat().rightBorderStyle($self.b._o())})},ak:function(){var $self=this;this.ap(this.a[this.k],function(a){a.cellFormat().topBorderColorInfo($self.g($self.b._ah()))})},al:function(){var $self=this;this.ap(this.a[this.k],function(a){a.cellFormat().topBorderStyle($self.b._p())})},c:function(a){switch(a._r()){case 1:return 0;case 7:return a._j();case 3:return a._j();case 5:return a._k();default:return-1}},v:function(a,b){if(a>=this.t()||b>=this.s()){return String.empty()}var c="";var d="";if(a==0){c="2"}else{c="3"}if(b==0){d="B"}else{d="C"}return $6("{0}{1}",d,c)},g:function(a){if($$a4.$ah.l_op_Inequality(null,a)){return new $$a4.ah(a._getResolvedColor1(this.d))}return null},am:function(){var a=this.e.worksheets()._item(0);for(var b=0;b<4;b++){a.rows().item(b).hidden(true);for(var c=0;c<4;c++){a.columns().item(c).hidden(true)}}if(this.b._isInsideHorizontalCellBorderEditable()){this.r=4;this.p=2;this.k=0;this.m=1;this.a=new Array(this.p)}else{this.r=3;this.p=1;this.k=0;this.m=0;this.a=new Array(this.p)}if(this.b._isInsideVerticalCellBorderEditable()){this.q=4;this.o=2;this.j=1;this.l=2}else{this.q=3;this.o=1;this.j=1;this.l=1}var d=a.rows();var e=$a(this.i-2*this.n,this.o);var f=$a(this.h-2*this.n,this.p);var g=0;for(var h=0;h<this.r;h++){var i=h>0&&h<this.r-1;var j=d.item(h);j.hidden(false);j.height($.ig.truncate($$a4.$n._ep(this.e,i?f:this.n,true)));if(i){this.a[g]=j;g++}for(var k=0;k<this.q;k++){var l=k>0&&k<this.q-1;a.columns().item(k).setWidth(l?e:this.n,3);a.columns().item(k).hidden(false);var m=j.cells().item(k);var n=m.cellFormat();n.alignment(2);n.verticalAlignment(1);if(i&&l){m.value($$t.$dy.dl(null,"FormatCellsDialog_BorderTab_Text_SampleText",[]))}}}this.ar();var o=this.b;o.propertyChanged=$.ig.Delegate.prototype.combine(o.propertyChanged,this.aq.runOn(this))},an:function(a){var d=this.a;for(var c=0;c<d.length;c++){var b=d[c];this.ap(b,a)}},ao:function(a,b){for(var c=this.k;c<=this.m;c++){b(this.a[c].cells().item(a))}},ap:function(a,b){for(var c=this.j;c<=this.l;c++){b(a.cells().item(c))}},aq:function(a,b){switch(b.propertyName()){case"BottomCellBorderColorInfo":this.w();break;case"BottomCellBorderStyle":this.x();break;case"InsideHorizontalCellBorderColorInfo":this.ac();break;case"InsideHorizontalCellBorderStyle":this.ad();break;case"InsideVerticalCellBorderColorInfo":this.ae();break;case"InsideVerticalCellBorderStyle":this.af();break;case"LeftCellBorderColorInfo":this.ag();break;case"LeftCellBorderStyle":this.ah();break;case"RightCellBorderColorInfo":this.ai();break;case"RightCellBorderStyle":this.aj();break;case"TopCellBorderColorInfo":this.ak();break;case"TopCellBorderStyle":this.al();break;case"DiagonalDownCellBorderColorInfo":this.y();break;case"DiagonalDownCellBorderStyle":this.z();break;case"DiagonalUpCellBorderColorInfo":this.aa();break;case"DiagonalUpCellBorderStyle":this.ab();break}},ar:function(){this.w();this.x();this.ac();this.ad();this.ae();this.af();this.ag();this.ah();this.ai();this.aj();this.ak();this.al();this.aa();this.ab()},$type:new $.ig.Type("CellBordersPreviewControlHelper",$.ig.$ot)},true);$c("FontControlViewModel:m0","Object",{_e:null,_ab:null,_aa:null,_ac:null,_q:false,_at:null,_ai:0,_c:null,_g:0,_l:null,_am:$m($$0.$aq.$type,null),_an:$m($$0.$aq.$type,null),_al:$m($$0.$aq.$type,null),_o:false,_p:false,_ad:null,_i:null,_ak:$m($$t.$nf.$type,null),init:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){$.ig.$op.init.call(this);$$ak.$c.z(i,"dialogServicesManager");this._e=i;this._p=true;this._workbook(n);this._themeColorPickerControlViewModel(o);this._selectedFontName(a);var p=this._b(c,d);this._selectedFontStyle($$5.$e.ag($$t.$m1.$type,this._fontStyles(),function(q){return q._a==p}));this._selectedFontUnderlineStyle(g);if(b>-1){this._selectedFontSize($a(b,20))}else{this._selectedFontSize(b)}if(f!=-1){this._subscript($m($$0.$aq.$type,this._s(f)));this._superscript($m($$0.$aq.$type,this._t(f)))}else{this._subscript($m($$0.$aq.$type,null));this._superscript($m($$0.$aq.$type,null))}this._strikeout(this._ao(e));this._selectedFontColorInfo(h);this._isFontNameSelectionEnabled(j);this._isFontSizeSelectionEnabled(j);this._isSubscriptSelectionEnabled(l);this._isSuperscriptSelectionEnabled(m);this._a5(true);this._p=false;this._ad=new $$4.x(String,0)},_ah:function(){return this._ad},_fontNames:function(){if(null==this._aa){this._aa=this._e.fontsService().getFontNames()}return this._aa},_fontSizes:function(){if(null==this._ab){this._ab=this._e.fontsService().getFontSizes()}return this._ab},_fontStyles:function(a){if(arguments.length===1){this._fontStyles(a);this._a7("FontStyles");return a}else{if(null==this._ac){this._ac=new $$4.x($$t.$m1.$type,0);this._ac.add(new $$t.m1(1));this._ac.add(new $$t.m1(2));this._ac.add(new $$t.m1(3));this._ac.add(new $$t.m1(4))}return this._ac}},_fontUnderlineStyles:function(){return $.ig.$ep.getValues($$a4.$cb.$type)},__isFontNameSelectionEnabled:false,_isFontNameSelectionEnabled:function(a){if(arguments.length===1){this.__isFontNameSelectionEnabled=a;return a}else{return this.__isFontNameSelectionEnabled}},__isFontSizeSelectionEnabled:false,_isFontSizeSelectionEnabled:function(a){if(arguments.length===1){this.__isFontSizeSelectionEnabled=a;return a}else{return this.__isFontSizeSelectionEnabled}},_isNormalFont:function(a){if(arguments.length===1){if(a!=this._q){this._q=a;this._a7("IsNormalFont")}return a}else{return this._q}},__isSubscriptSelectionEnabled:false,_isSubscriptSelectionEnabled:function(a){if(arguments.length===1){this.__isSubscriptSelectionEnabled=a;return a}else{return this.__isSubscriptSelectionEnabled}},__isSuperscriptSelectionEnabled:false,_isSuperscriptSelectionEnabled:function(a){if(arguments.length===1){this.__isSuperscriptSelectionEnabled=a;return a}else{return this.__isSuperscriptSelectionEnabled}},_selectedFontColor:function(){if($$a4.$ah.l_op_Inequality(null,this._l)&&null!=this._workbook()){return this._l._getResolvedColor1(this._workbook())}if(null!=this._workbook()){return $$a4.$ah.automatic()._getResolvedColor1(this._workbook())}return $$a4.$ah.automatic()._getResolvedColor()},_selectedFontColorInfo:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._l)){this._l=a;
this._a7("SelectedFontColorInfo")}return a}else{return this._l}},_selectedFontName:function(a){if(arguments.length===1){if(a!=this._at){this._at=a;this._a7("SelectedFontName")}return a}else{return this._at}},_selectedFontSize:function(a){if(arguments.length===1){if(a!=this._ai){this._ai=a;this._a7("SelectedFontSize")}return a}else{return this._ai}},_selectedFontStyle:function(a){if(arguments.length===1){if(a!=this._c){this._c=a;this._a7("SelectedFontStyle")}return a}else{return this._c}},_selectedFontUnderlineStyle:function(a){if(arguments.length===1){if(a!=this._g){this._g=a;this._a7("SelectedFontUnderlineStyle")}return a}else{return this._g}},_strikeout:function(a){if(arguments.length===1){var b=this._ap(a);if($l(b,this._al)){this._al=b;this._a7("Strikeout")}return a}else{return this._al}},_subscript:function(a){if(arguments.length===1){var b=this._ap(a);if($l(b,this._am)){this._am=b;this._a7("Subscript");if($j(true,this._am)){this._superscript($m($$0.$aq.$type,false))}else if(!this._p&&false==this._superscript().hasValue()){this._superscript($m($$0.$aq.$type,false))}}return a}else{return this._am}},_superscript:function(a){if(arguments.length===1){var b=this._ap(a);if($l(b,this._an)){this._an=b;this._a7("Superscript");if($j(true,this._an)){this._subscript($m($$0.$aq.$type,false))}else if(!this._p&&false==this._subscript().hasValue()){this._subscript($m($$0.$aq.$type,false))}}return a}else{return this._an}},__themeColorPickerControlViewModel:null,_themeColorPickerControlViewModel:function(a){if(arguments.length===1){this.__themeColorPickerControlViewModel=a;return a}else{return this.__themeColorPickerControlViewModel}},__workbook:null,_workbook:function(a){if(arguments.length===1){this.__workbook=a;return a}else{return this.__workbook}},_j:function(){if(null==this._i){this._i=this._workbook().styles().normalStyle().styleFormat().font()}return this._i},_a:function(){if(false==this._ak.hasValue()){this._ak=$m($$t.$nf.$type,this._b(this._j()._bold$i(),this._j()._italic$i()))}return this._ak.value()},_a8:function(a){a.value(this._selectedFontName());a.cellFormat().font().height(this._selectedFontSize()<0?this._selectedFontSize():this._selectedFontSize()*20);a.cellFormat().font().name(this._selectedFontName());if(null!=this._selectedFontStyle()){var b=this._selectedFontStyle()._a;a.cellFormat().font()._italic$i($m($$0.$aq.$type,b==3||b==4?true:false));a.cellFormat().font()._bold$i($m($$0.$aq.$type,b==2||b==4?true:false))}a.cellFormat().font().colorInfo(this._selectedFontColorInfo());a.cellFormat().font()._strikeout$i($m($$0.$aq.$type,$j(false,this._strikeout())?false:true));if($j(true,this._subscript())){a.cellFormat().font().superscriptSubscriptStyle(2)}else if($j(true,this._superscript())){a.cellFormat().font().superscriptSubscriptStyle(1)}else{a.cellFormat().font().superscriptSubscriptStyle(0)}a.cellFormat().font().underlineStyle(this._selectedFontUnderlineStyle())},_a5:function(a){if(false==a&&false==this._isNormalFont()){return}this._isNormalFont(this._selectedFontSize()==$a(this._j().height(),20)&&this._selectedFontName()==this._j().name()&&null!=this._selectedFontStyle()&&this._selectedFontStyle()._a==this._a()&&this._selectedFontUnderlineStyle()==this._j().underlineStyle()&&this._u(this._j()._strikeout$i(),this._strikeout())&&$j(this._subscript(),this._s(this._j().superscriptSubscriptStyle()))&&$j(this._superscript(),this._t(this._j().superscriptSubscriptStyle()))&&$$a4.$ah.l_op_Inequality(null,this._selectedFontColorInfo())&&($$a4.$ah.l_op_Equality(this._selectedFontColorInfo(),this._j().colorInfo())||this._selectedFontColorInfo()._themeColorType$i().hasValue()&&$j(this._selectedFontColorInfo()._themeColorType$i().value(),this._j().colorInfo()._themeColorType$i())&&($j(this._selectedFontColorInfo()._tint$i(),null)||$j(this._selectedFontColorInfo()._tint$i(),0))))},_r:function(a){return $j(a,true)},_ao:function(a){if($j(a,null)){return $m($$0.$aq.$type,null)}else{return $m($$0.$aq.$type,$j(a,true))}},_s:function(a){return a==2},_t:function(a){return a==1},_u:function(a,b){if($j(a,null)){return false==b.hasValue()}if($j(null,b)){return false}if($j(a,true)){return b.value()==true}else{return b.value()==false}},_ap:function(a){if(a.hasValue()){return $m($$0.$aq.$type,a.value())}if(this._p){return $m($$0.$aq.$type,null)}else{return $m($$0.$aq.$type,false)}},_a6:function(a){var $self=this;if(this._p){return}if(null!=this._ad&&!this._ad.contains(a)){this._ad.add(a)}switch(a){case"SelectedFontName":case"SelectedFontSize":case"SelectedFontStyle":case"SelectedFontUnderlineStyle":case"Strikeout":case"Superscript":case"Subscript":case"SelectedFontColorInfo":if(false==this._o){this._a5(false)}break;case"IsNormalFont":if(this._o){break}if(true==this._isNormalFont()){this._ad.clear();this._o=true;try{this._selectedFontName(this._j().name());this._selectedFontSize($a(this._j().height(),20));this._selectedFontStyle($$5.$e.ag($$t.$m1.$type,this._fontStyles(),function(b){return b._a==$self._a()}));this._selectedFontUnderlineStyle(this._j().underlineStyle());this._strikeout($m($$0.$aq.$type,false));this._subscript($m($$0.$aq.$type,false));this._superscript($m($$0.$aq.$type,false));this._selectedFontColorInfo(this._j().colorInfo())}finally{this._o=false}}break}},_b:function(a,b){if($j(a,null)||$j(b,null)){return 0}if($j(a,false)&&$j(b,false)){return 1}else if($j(a,true)&&$j(b,false)){return 2}else if($j(a,false)&&$j(b,true)){return 3}else{return 4}},propertyChanged:null,_a7:function(a){this._a6(a);var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},$type:new $.ig.Type("FontControlViewModel",$.ig.$ot,[$$0.$b6.$type])},true);$c("DialogFontStyleInfo:m1","Object",{init:function(a){$.ig.$op.init.call(this);this._a=a},toString:function(){return this.b()},_a:0,b:function(){switch(this._a){case 1:return $$t.$dy.dl(null,"SpreadsheetFontControl_FontStyle_Regular",[]);case 2:return $$t.$dy.dl(null,"SpreadsheetFontControl_FontStyle_Bold",[]);case 3:return $$t.$dy.dl(null,"SpreadsheetFontControl_FontStyle_Italic",[]);case 4:return $$t.$dy.dl(null,"SpreadsheetFontControl_FontStyle_BoldItalic",[])}return String.empty()},$type:new $.ig.Type("DialogFontStyleInfo",$.ig.$ot)},true);$c("ThemeColorPickerControlViewModel:m2","Object",{init:function(a,b){$.ig.$op.init.call(this);this._d(a);this._workbook(a);this._automaticLiteral(b)},__automaticLiteral:null,_automaticLiteral:function(a){if(arguments.length===1){this.__automaticLiteral=a;return a}else{return this.__automaticLiteral}},__palette:null,_palette:function(a){if(arguments.length===1){this.__palette=a;return a}else{return this.__palette}},__workbook:null,_workbook:function(a){if(arguments.length===1){this.__workbook=a;return a}else{return this.__workbook}},_e:function(a){},_d:function(a){if(null!=this._palette()){return}this._palette(new $$4.h(String,$$t.$m3.$type,0));var b=[0,-.05,-.15,-.25,-.35,-.5];var c=[0,.5,.35,.25,.15,.05];var d=[0,-.1,-.25,-.5,-.75,-.9];var e=[0,.8,.6,.4,-.25,-.5];var f="";var g=0;var h=g.toString();for(var i=0;i<6;i++){f=i.toString();g=0;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(0,b[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(1,c[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(2,d[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(3,e[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(4,e[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(5,e[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(6,e[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(7,e[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(8,e[i]),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah(9,e[i]),a));g++;h=g.toString()}f="6";g=0;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,192,0,0)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,255,0,0)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,255,192,0)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,255,255,0)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,146,205,80)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,0,176,80)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,0,176,240)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,0,112,192)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,0,32,96)),a));g++;h=g.toString();this._palette().add($6("{0}-{1}",f,h),new $$t.m3(new $$a4.ah($$a.$ax.u(255,112,48,160)),a));g++;h=g.toString()},propertyChanged:null,_f:function(a){this._e(a);var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},$type:new $.ig.Type("ThemeColorPickerControlViewModel",$.ig.$ot,[$$0.$b6.$type])},true);$c("spreadsheet.PaletteEntry:m3","Object",{_a:null,init:function(a,b){$.ig.$op.init.call(this);this.colorInfo(a);this._a=b},_colorInfo:null,colorInfo:function(a){if(arguments.length===1){this._colorInfo=a;return a}else{return this._colorInfo}},color:function(){return this._color$i.apply(this,arguments).colorString()},_color$i:function(){return this.colorInfo()._getResolvedColor1(this._a)},$type:new $.ig.Type("spreadsheet.PaletteEntry",$.ig.$ot)},true);$c("SpreadsheetDialogFormatBase:m5","Object",{init:function(){$.ig.$op.init.call(this)},propertyChanged:null,_a:function(a){var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},$type:new $.ig.Type("SpreadsheetDialogFormatBase",$.ig.$ot,[$$0.$b6.$type])},true);$c("SpreadsheetDialogFormat:m6","SpreadsheetDialogFormatBase",{init:function(a,b,c){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$m5.init.call(this);this._d=b;this._f=c;this._b="#1E1E1E"},init1:function(a,b,c,d){$$t.$m5.init.call(this);this._d=b;this._f=c;this._b=d},_d:null,_mask:function(a){if(arguments.length===1){this._d=a;this._a("Mask");return a}else{return this._d}},_b:null,_color:function(a){if(arguments.length===1){this._b=a;this._a("Color");return a}else{return this._b}},_f:null,_previewText:function(a){if(arguments.length===1){this._f=a;this._a("PreviewText");return a}else{return this._f}},$type:new $.ig.Type("SpreadsheetDialogFormat",$$t.$m5.$type)},true);$c("SpreadsheetDialogFormatCategory:m7","SpreadsheetDialogFormatBase",{init:function(){$$t.$m5.init.call(this);this._formats(new $$4.x($$t.$m6.$type,0));this._decimalPlaces(2);this._isCustom(false);this._areFormatsVisible(true);this._categoryType(1)},toString:function(){return this._categoryName()},__d:null,_z:null,_categoryName:function(a){if(arguments.length===1){this._z=a;this._a("CategoryName");return a}else{return this._z}},_ad:null,_formatsHeader:function(a){if(arguments.length===1){this._ad=a;this._a("FormatsHeader");return a}else{return this._ad}},_ab:null,_description:function(a){if(arguments.length===1){this._ab=a;this._a("Description");return a}else{return this._ab}},_v:null,_formats:function(a){if(arguments.length===1){this._v=a;this._a("Formats");return a}else{return this._v}},_x:0,_decimalPlaces:function(a){if(arguments.length===1){this._x=a;this._a("DecimalPlaces");return a}else{return this._x}},_k:false,_isCustom:function(a){if(arguments.length===1){this._k=a;this._a("IsCustom");return a}else{return this._k}},_g:false,_areFormatsVisible:function(a){if(arguments.length===1){this._g=a;this._a("AreFormatsVisible");return a}else{return this._g}},_f:0,_categoryType:function(a){if(arguments.length===1){this._f=a;this._a("CategoryType");return a}else{return this._f}},_addFormat:function(a){var b=new $$t.m6(0,a,a);this._formats().add(b);return b},_addFormat1:function(a,b){this._formats().add(new $$t.m6(0,a,b))},_findFormat:function(a){return $$5.$e.ag($$t.$m6.$type,this._formats(),function(b){return b._mask().toLowerCase()==a.toLowerCase()})},_isGeneral:function(){return this._f==0},_isNumber:function(){return this._f==1},_isCurrency:function(){return this._f==2},_isAccounting:function(){return this._f==3},_isDate:function(){return this._f==4},_isTime:function(){return this._f==5},_isPercentage:function(){return this._f==6},_isFraction:function(){return this._f==7},_isScientific:function(){return this._f==8},_isText:function(){return this._f==9},_isSpecial:function(){return this._f==10},$type:new $.ig.Type("SpreadsheetDialogFormatCategory",$$t.$m5.$type)},true);$c("SpreadsheetDialogFormatCategoryEx:m8","SpreadsheetDialogFormatCategory",{init:function(){var $self=this;$$t.$m7.init.call(this);this.propertyChanged=$.ig.Delegate.prototype.combine(this.propertyChanged,function(a,b){if(b.propertyName()=="DecimalPlaces"){$self._ai()}})},_ai:function(){var a=new $$8.l("\\"+"."+"(\\d+)?",0);var b=new $$8.l("((\\d+[,]\\d+))|(\\d+)|([#]+[0]+[,]?([#]+)?)",0);var c=new $$6.aj(0);var d=new $$6.aj(0);if(this._decimalPlaces()>0){c.l(".");d.l(".");for(var e=0;e<this._decimalPlaces();e++){c.l("1");d.l("0")}}var g=this._formats().getEnumerator();while(g.moveNext()){var f=g.current();if(!f._previewText().contains(".")&&this._decimalPlaces()>0){var h=String.empty();var i=String.empty();if(this._isScientific()){var j=this._ah(f._previewText(),h,i);h=j.p1;i=j.p2}else{h=f._previewText()}var k=b.i(h);if(k.d()>0){f._previewText($5(h,k.g(),k.g()+c.toString())+i)}h=String.empty();i=String.empty();if(this._isScientific()){var l=this._ah(f._mask(),h,i);h=l.p1;i=l.p2}else{h=f._mask()}var m=b.i(h);while(null!=m){if(false==String.isNullOrEmpty(m.g())){f._mask($5(h,m.g(),m.g()+d.toString())+i)}var n=m.o();if(null!=n){if(m.g()==n.g()){break}m=n}}continue}var o=a.i(f._previewText());if(o.d()>0){f._previewText($5(f._previewText(),o.g(),c.toString()))}var p=a.i(f._mask());if(o.d()>0){f._mask($5(f._mask(),p.g(),d.toString()))}}},_ah:function(a,b,c){var d=a.split("E");b=d[0];c="E"+d[1];return{p1:b,p2:c}},$type:new $.ig.Type("SpreadsheetDialogFormatCategoryEx",$$t.$m7.$type)},true);$c("ISpreadsheetDialogFormatsService:nb","Object",{$type:new $.ig.Type("ISpreadsheetDialogFormatsService",null)},true);$c("SpreadsheetDialogFormatsService:nc","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a,b,c,d,e){var f=new $$a4.nd(0,a,b,a._e6());var g=f.h(c,d,c,0,null,null,false,0);e=g.j;return{p4:e}},getFormatCategories:function(a){var b=function(c){return $$t.$dy.dl(null,c,[])};var c=new $$4.x($$t.$m7.$type,0);var d=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_General"));$ret._decimalPlaces(-1);$ret._areFormatsVisible(false);$ret._description(b("FormatInfo_General_NumberFormat_Description"));$ret._categoryType(0);return $ret}();d._addFormat("General");c.add(d);var e=function(){var $ret=new $$t.m8;$ret._categoryName(b("FormatInfo_Number"));$ret._formatsHeader(b("FormatInfo_FormatHeader_NegativeNumbers"));$ret._description(b("FormatInfo_Number_NumberFormat_Description"));$ret._categoryType(1);return $ret}();var f=a||new $$a4.n;var g=String.empty();var h=String.empty();var i=0;var j=i.toString();i=-1234.1;j=i.toString();h="0.00";var k=this.a(f,h,i,i.toString(),g);g=k.p4;e._formats().add(new $$t.m6(0,h,g));h="0.00;[Red]0.00";var l=this.a(f,h,i,i.toString(),g);g=l.p4;e._formats().add(new $$t.m6(1,h,g,"#FF0000"));h="0.00;(#.00)";var m=this.a(f,h,i,i.toString(),g);g=m.p4;e._formats().add(new $$t.m6(0,h,g));h="0.00;[Red](#.00)";var n=this.a(f,h,i,i.toString(),g);g=n.p4;e._formats().add(new $$t.m6(1,h,g,"#FF0000"));c.add(e);var o=function(){var $ret=new $$t.m8;$ret._categoryName(b("FormatInfo_Currency"));$ret._formatsHeader(b("FormatInfo_FormatHeader_NegativeNumbers"));$ret._description(b("FormatInfo_Currency_NumberFormat_Description"));$ret._categoryType(2);return $ret}();h="$#,##0.00";var p=this.a(f,h,i,i.toString(),g);g=p.p4;o._formats().add(new $$t.m6(0,h,g));h="$#,##0.00;[Red]$#,##0.00";var q=this.a(f,h,i,i.toString(),g);g=q.p4;o._formats().add(new $$t.m6(1,h,g,"#FF0000"));h="$#,##0.00_);($#,##0.00)";var r=this.a(f,h,i,i.toString(),g);g=r.p4;o._formats().add(new $$t.m6(0,h,g));h="$#,##0.00_);[Red]($#,##0.00)";var s=this.a(f,h,i,i.toString(),g);g=s.p4;o._formats().add(new $$t.m6(1,h,g,"#FF0000"));c.add(o);var t=function(){var $ret=new $$t.m8;$ret._categoryName(b("FormatInfo_Accounting"));$ret._areFormatsVisible(false);$ret._description(b("FormatInfo_Accounting_NumberFormat_Description"));$ret._decimalPlaces(2);$ret._categoryType(3);return $ret}();h='_($* #,##0.00_);_($* (#,##0.00);_($* " - "??_);_(@_)';var u=this.a(f,h,i,i.toString(),g);g=u.p4;t._formats().add(new $$t.m6(0,h,g));c.add(t);var v=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_Date"));$ret._decimalPlaces(-1);$ret._formatsHeader(b("FormatInfo_FormatHeader_Type"));$ret._description(b("FormatInfo_Date_NumberFormat_Description"));$ret._categoryType(4);return $ret}();var w=b("FormatCellsDialog_NumberTab_DateFormatMasks");var x=$.ig.util.stringSplit(w,["\r\n","\r","\n"],1);var y=$.ig.Date.prototype.fromValues(2012,3,14,13,30,55,0);var z=$$a4.$k.bz(f,y,i);i=z.p2;for(var ab=0;ab<x.length;ab++){var aa=x[ab];h=aa;var ac=this.a(f,h,i,i.toString(),g);g=ac.p4;if(aa.contains("[$-F800")||aa.contains("[$-F400")){g="*"+g}v._formats().add(new $$t.m6(0,h,g))}c.add(v);var ad=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_Time"));$ret._decimalPlaces(-1);$ret._formatsHeader(b("FormatInfo_FormatHeader_Type"));$ret._description(b("FormatInfo_Time_NumberFormat_Description"));$ret._categoryType(5);return $ret}();w=b("FormatCellsDialog_NumberTab_TimeFormatMasks");x=$.ig.util.stringSplit(w,["\r\n","\r","\n"],1);for(var af=0;af<x.length;af++){var ae=x[af];h=ae;var ag=this.a(f,h,i,i.toString(),g);g=ag.p4;if(ae.contains("[$-F800")||ae.contains("[$-F400")){g="*"+g}ad._formats().add(new $$t.m6(0,h,g))}c.add(ad);var ah=function(){var $ret=new $$t.m8;$ret._categoryName(b("FormatInfo_Percentage"));$ret._description(b("FormatInfo_Percentage_NumberFormat_Description"));$ret._areFormatsVisible(false);$ret._decimalPlaces(2);$ret._categoryType(6);return $ret}();ah._addFormat("0.00%");c.add(ah);var ai=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_Fraction"));$ret._decimalPlaces(-1);$ret._formatsHeader(b("FormatInfo_FormatHeader_Type"));$ret._description("");$ret._categoryType(7);return $ret}();ai._formats().add(new $$t.m6(0,"# ?/?",b("FormatInfo_Fraction_OneDigit")));ai._formats().add(new $$t.m6(0,"# ??/??",b("FormatInfo_Fraction_TwoDigits")));ai._formats().add(new $$t.m6(0,"# ???/???",b("FormatInfo_Fraction_ThreeDigits")));ai._formats().add(new $$t.m6(0,"# ?/2",b("FormatInfo_Fraction_Halves")));ai._formats().add(new $$t.m6(0,"# ?/4",b("FormatInfo_Fraction_Quarters")));ai._formats().add(new $$t.m6(0,"# ?/8",b("FormatInfo_Fraction_Eighths")));ai._formats().add(new $$t.m6(0,"# ??/16",b("FormatInfo_Fraction_Sixteenths")));ai._formats().add(new $$t.m6(0,"# ??/10",b("FormatInfo_Fraction_Tenths")));ai._formats().add(new $$t.m6(0,"# ??/100",b("FormatInfo_Fraction_Hundreths")));c.add(ai);var aj=function(){var $ret=new $$t.m8;$ret._categoryName(b("FormatInfo_Scientific"));$ret._description("");$ret._areFormatsVisible(false);$ret._decimalPlaces(2);$ret._categoryType(8);return $ret}();aj._addFormat("0.00E+00");c.add(aj);var ak=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_Text"));$ret._description(b("FormatInfo_Text_NumberFormat_Description"));$ret._areFormatsVisible(false);$ret._decimalPlaces(-1);$ret._categoryType(9);return $ret}();ak._addFormat("@");c.add(ak);var al=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_Special"));$ret._decimalPlaces(-1);$ret._formatsHeader(b("FormatInfo_FormatHeader_Type"));$ret._description(b("FormatInfo_Special_NumberFormat_Description"));$ret._categoryType(10);return $ret}();al._formats().add(new $$t.m6(0,"00000",b("FormatInfo_Special_ZipCode")));al._formats().add(new $$t.m6(0,"00000-0000",b("FormatInfo_Special_ZipCodePlus4")));al._formats().add(new $$t.m6(0,"[<=9999999]###-####;(###) ###-####",b("FormatInfo_Special_PhoneNumber")));al._formats().add(new $$t.m6(0,"000-00-0000",b("FormatInfo_Special_SocialSecurityNumber")));c.add(al);var am=function(){var $ret=new $$t.m7;$ret._categoryName(b("FormatInfo_Custom"));$ret._decimalPlaces(-1);$ret._formatsHeader(b("FormatInfo_FormatHeader_Type"));$ret._isCustom(true);$ret._description(b("FormatInfo_Custom_NumberFormat_Description"));return $ret}();for(var an=1;an<c.count();an++){var ap=c.__inner[an]._formats().getEnumerator();while(ap.moveNext()){var ao=ap.current();am._addFormat(ao._mask())}}am._formats($$5.$e.z($$t.$m6.$type,$$5.$e.x($$t.$m6.$type,String,$$5.$e.o($$t.$m6.$type,$$t.$m6.$type,am._formats(),function(aq){return aq}),function(aq){return aq._mask()})));am._formats().insert(0,c.__inner[0]._formats().__inner[0]);var ar=a._b2().m().getEnumerator();while(ar.moveNext()){var aq=ar.current();var as=a._b2().item(aq);if(null==$$5.$e.ag($$t.$m6.$type,am._formats(),function(at){return at._mask()==as})){am._addFormat(as)}}c.add(am);return c},$type:new $.ig.Type("SpreadsheetDialogFormatsService",$.ig.$ot,[$$t.$nb.$type])},true);$c("spreadsheet.ComboBoxListItem:nk","Object",{_a:null,_e:null,_c:null,init:function(a,b){$.ig.$op.init.call(this);this._a=a;this._e=b},dataValue:function(a){if(arguments.length===1){if(a==this._a){return}if(a!=null){if(a.equals(this._a)){return}}this._a=a;return a}else{return this._a}},displayText:function(a){if(arguments.length===1){if(a==this._e){return}this._e=a;return a}else{return this._e}},tag:function(a){if(arguments.length===1){if(a==this._c){return}this._c=a;return a}else{return this._c}},toString:function(){return this.displayText()},$type:new $.ig.Type("spreadsheet.ComboBoxListItem",$.ig.$ot)},true);$c("FilterDialogViewModel:nl","Object",{f:null,j:null,v:null,m:$m($$a4.$yo.$type,null),o:$m($$a4.$yo.$type,null),r:null,t:null,c:0,a:0,g:null,l:0,h:null,b:0,init:function(a,b,c,d){var $self=this;if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.g=b;this.l=c;this.b=d;this.f=b.filterSettings().getFilter(c);this.j=function(){var e=$$t.$dy.bz(b,c,$self.a);$self.a=e.p2;return e.ret}();this.v=$$t.$nl.x(b,c);this.ac()},init1:function(a,b,c){var $self=this;$.ig.$op.init.call(this);this.h=b;this.b=c;this.g=this.h.table().worksheet();this.f=b.filter();this.j=function(){var d=$$t.$dy.b1(b,$self.a);$self.a=d.p1;return d.ret}();this.v=$$t.$nl.y(b);this.ac()},ac:function(){this.m=$m($$a4.$yo.$type,0);this.o=$m($$a4.$yo.$type,null);this.r=null;this.t=null;this.c=0;var a;var b;var c;var d;var e;var f=this.ad(a,c,b,d,e);a=f.p0;c=f.p1;b=f.p2;d=f.p3;e=f.p4;var g;var h;var i=this.ab(g,h);g=i.p0;h=i.p1;if(g.hasValue()){if($l(g,a)){this.m=g;this.o=h;return}if(h.hasValue()&&$l(h,b)){this.m=g;this.o=h;return}}if(a.hasValue()){this.m=a;this.o=b;this.r=c;this.t=d;this.c=e}},ad:function(a,b,c,d,e){b=null;d=null;a=$m($$a4.$yo.$type,null);c=$m($$a4.$yo.$type,null);e=0;if(null==this.f){return{p0:a,p1:b,p2:c,p3:d,p4:e}}if($b($$a4.$yh.$type,this.f)!==null||$b($$a4.$yt.$type,this.f)!==null||$b($$a4.$y4.$type,this.f)!==null||$b($$a4.$y1.$type,this.f)!==null){return{p0:a,p1:b,p2:c,p3:d,p4:e}}var f=$b($$a4.$yf.$type,this.f);if(null!=f){var g=f.condition1();if(null!=g){a=$m($$a4.$yo.$type,g.comparisonOperator());b=g.value()}var h=f.condition2();if(null!=h){c=$m($$a4.$yo.$type,h.comparisonOperator());d=h.value()}e=f.conditionalOperator();return{p0:a,p1:b,p2:c,p3:d,p4:e}}var i=$b($$a4.$ye.$type,this.f);if(null!=i){b=i.average();switch(i.type()){case 0:a=$m($$a4.$yo.$type,2);break;case 1:a=$m($$a4.$yo.$type,4);break;default:break}return{p0:a,p1:b,p2:c,p3:d,p4:e}}var j=$b($$a4.$y0.$type,this.f);if(null!=j){e=1;a=$m($$a4.$yo.$type,0);var k=j.displayValues().count();if(k==0||k>2){return{p0:a,p1:b,p2:c,p3:d,p4:e}}b=j.displayValues().item(0);if(k>1){c=$m($$a4.$yo.$type,0);d=j.displayValues().item(1)}return{p0:a,p1:b,p2:c,p3:d,p4:e}}var l=$b($$a4.$yi.$type,this.f);if(null!=l){this.c=0;a=$m($$a4.$yo.$type,3);c=$m($$a4.$yo.$type,4);b=l.start();d=l.end();return{p0:a,p1:b,p2:c,p3:d,p4:e}}var m=$b($$a4.$y7.$type,this.f);if(null!=m){switch(m._v()){case 2:a=$m($$a4.$yo.$type,0);break;case 4:a=$m($$a4.$yo.$type,2);break;case 6:a=$m($$a4.$yo.$type,3);break;case 1:a=$m($$a4.$yo.$type,4);break;case 3:a=$m($$a4.$yo.$type,5);break;case 5:a=$m($$a4.$yo.$type,1);break}b=m._z();return{p0:a,p1:b,p2:c,p3:d,p4:e}}return{p0:a,p1:b,p2:c,p3:d,p4:e}},ab:function(a,b){a=$m($$a4.$yo.$type,null);b=$m($$a4.$yo.$type,null);switch(this.b){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:a=$m($$a4.$yo.$type,$$t.$nl.e(this.b));break;case 12:a=$m($$a4.$yo.$type,3);b=$m($$a4.$yo.$type,4);break;case 13:break;default:break}return{p0:a,p1:b}},x:function(a,b){var c=a.filterSettings();var d=c!=null?c.region():null;if(null==c||null==d){return null}var e=d.firstRow();var f=d.firstColumn()+b;var g=a.rows().item(e);var h=$$t.$dy.dj(g,f);return h},y:function(a){var b=a._worksheet();var c=a.wholeColumnRegion().firstRow();var d=a._at();var e=new $$4.q($.ig.$op.$type,0);var f=b.rows().item(c);return $$t.$dy.dj(f,d)},e:function(a){switch(a){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:case 13:return 0;default:return 0}},q:function(a,b){if(a.hasValue()&&$$a4.$yg._h(a.value())){return b}switch(this.a){case 3:{var c;if(function(){var d=$ac(b,c);c=d.p1;return d.ret}()){return c}}break;case 2:{var d;if(function(){var e=$$0.$s.tryParse(b,d);d=e.p1;return e.ret}()){return d}}break}return b},aa:function(a,b,c,d,e){var f=this.q(a,b);var g=new $$a4.yg(a.value(),f);var h=null;if($l(null,c)&&false==String.isNullOrEmpty(c.toString())){if(c.hasValue()){var i=this.q(a,d);h=new $$a4.yg(c.value(),i)}else{return}}if(null!=this.h){this.h._applyCustomFilter1(g,h,e)}else{this.g.filterSettings()._applyCustomFilter1(this.l,g,h,e)}},i:function(a){var b;var c=new $$4.x($$t.$nk.$type,0);b=new $$t.nk(String.empty(),String.empty());c.add(b);var d=$.ig.$ep.getValues($$a4.$yo.$type);var e="ExcelComparisonOperator_{0}_DisplayText";for(var g=0;g<d.length;g++){var f=d[g];var h=$6(e,$$a4.$yo.$getName(f));var i=a._fs(h,[]);b=new $$t.nk($$a4.$yo.getBox(f),i);c.add(b)}return c},z:function(a){var b=null;switch(a){case 1:b=this.s();break;case 2:b=this.u();break;default:throw new $$6.f(1,"index must be 1 or 2.")}if(null==b){return null}if($b($$0.$s.$type,b)!==null){var c=b;var d=+c!=+$.ig.Date.prototype.getDate(c);var e=this.g.workbook();var f=e._e6();var g;if(d){g=e._b2().a(22)}else{g=e._b2().a(14)}var h;var i=function(){var j=$$a4.$k.bz(e,b,h);h=j.p2;return j.ret}();var j=g.h(h,b.toString(),b,0,null,null,false,0);return j.j}return b.toString()},k:function(){return this.j},w:function(){return this.v},s:function(){return this.r},u:function(){return this.t},n:function(){return this.m},p:function(){return this.o},d:function(){return this.c},$type:new $.ig.Type("FilterDialogViewModel",$.ig.$ot)},true);$c("FormatCellsDialogBorderInfo:nm","Object",{_s:null,_a:0,_ai:false,_v:null,_d:0,_al:false,_w:null,_e:0,_am:false,_x:null,_f:0,_an:false,_y:null,_g:0,_ao:false,_z:null,_h:0,_ap:false,_t:null,_b:0,_aj:false,_u:null,_c:0,_ak:false,_q:0,init:function(a,b){$.ig.$op.init.call(this);this._isInsideHorizontalCellBorderEditable(a);this._isInsideVerticalCellBorderEditable(b)},_aa:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._s)){this._s=a;this._br("BottomCellBorderColorInfo")}return a}else{return this._s}},_i:function(a){if(arguments.length===1){if(a!=this._a){this._a=a;this._br("BottomCellBorderStyle");this._br("IsBottomCellBorderVisible")}return a}else{return this._a}},_r:function(a){if(arguments.length===1){if(a!=this._q){var b=this._isDiagonalDownCellBorderVisible();var c=this._isDiagonalUpCellBorderVisible();this._q=a;this._br("DiagonalBorders");if(this._q==3||this._q==7){if(false==b){this._br("IsDiagonalDownCellBorderVisible")}}else if(true==b){this._br("IsDiagonalDownCellBorderVisible")}if(this._q==5||this._q==7){if(false==c){this._br("IsDiagonalUpCellBorderVisible")}}else if(true==c){this._br("IsDiagonalUpCellBorderVisible")}}return a}else{return this._q}},_ab:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._t)){this._t=a;this._u=a;this._br("DiagonalDownCellBorderColorInfo")}return a}else{return this._t}},_j:function(a){if(arguments.length===1){if(a!=this._b){this._b=a;if(false==$$t.$nm._aq(a)&&false==$$t.$nm._aq(this._c)){this._c=a}this._bs();this._br("DiagonalDownCellBorderStyle");this._br("IsDiagonalDownCellBorderVisible")}return a}else{return this._b}},_ac:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._u)){this._u=a;this._t=a;this._br("DiagonalUpCellBorderColorInfo")}return a}else{return this._u}},_k:function(a){if(arguments.length===1){if(a!=this._c){this._c=a;if(false==$$t.$nm._aq(a)&&false==$$t.$nm._aq(this._b)){this._b=a}this._bs();this._br("DiagonalUpCellBorderStyle");this._br("IsDiagonalUpCellBorderVisible")}return a}else{return this._c}},_ad:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._v)){this._v=a;this._br("InsideHorizontalCellBorderColorInfo")}return a}else{return this._v}},_l:function(a){if(arguments.length===1){if(a!=this._d){this._d=a;this._br("InsideHorizontalCellBorderStyle");this._br("IsInsideHorizontalCellBorderVisible")}return a}else{return this._d}},_ae:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._w)){this._w=a;this._br("InsideVerticalCellBorderColorInfo")}return a}else{return this._w}},_m:function(a){if(arguments.length===1){if(a!=this._e){this._e=a;this._br("InsideVerticalCellBorderStyle");this._br("IsInsideVerticalCellBorderVisible")}return a}else{return this._e}},_isBottomCellBorderVisible:function(){return false==$$t.$nm._aq(this._i())},_isInsideCellBordersEditable:function(){return this._isInsideHorizontalCellBorderEditable()||this._isInsideVerticalCellBorderEditable()},__isInsideHorizontalCellBorderEditable:false,_isInsideHorizontalCellBorderEditable:function(a){if(arguments.length===1){this.__isInsideHorizontalCellBorderEditable=a;return a}else{return this.__isInsideHorizontalCellBorderEditable}},_isInsideHorizontalCellBorderVisible:function(){return false==$$t.$nm._aq(this._l())},__isInsideVerticalCellBorderEditable:false,_isInsideVerticalCellBorderEditable:function(a){if(arguments.length===1){this.__isInsideVerticalCellBorderEditable=a;return a}else{return this.__isInsideVerticalCellBorderEditable}},_isInsideVerticalCellBorderVisible:function(){return false==$$t.$nm._aq(this._m())},_isLeftCellBorderVisible:function(){return false==$$t.$nm._aq(this._n())},_isRightCellBorderVisible:function(){return false==$$t.$nm._aq(this._o())},_isTopCellBorderVisible:function(){return false==$$t.$nm._aq(this._p())},_isDiagonalDownCellBorderVisible:function(){return this._r()==3||this._r()==7},_isDiagonalUpCellBorderVisible:function(){return this._r()==5||this._r()==7},_af:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._x)){this._x=a;this._br("LeftCellBorderColorInfo")}return a}else{return this._x}},_n:function(a){if(arguments.length===1){if(a!=this._f){this._f=a;this._br("LeftCellBorderStyle");this._br("IsLeftCellBorderVisible")}return a}else{return this._f}},_ag:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._y)){this._y=a;this._br("RightCellBorderColorInfo")}return a}else{return this._y}},_o:function(a){if(arguments.length===1){if(a!=this._g){this._g=a;this._br("RightCellBorderStyle");this._br("IsRightCellBorderVisible")}return a}else{return this._g}},_ah:function(a){if(arguments.length===1){
if($$a4.$ah.l_op_Inequality(a,this._z)){this._z=a;this._br("TopCellBorderColorInfo")}return a}else{return this._z}},_p:function(a){if(arguments.length===1){if(a!=this._h){this._h=a;this._br("TopCellBorderStyle");this._br("IsTopCellBorderVisible")}return a}else{return this._h}},_aq:function(a){return a==0||a==-1},_bs:function(){if(this._j()!=0&&this._j()!=-1&&this._k()!=0&&this._k()!=-1){this._r(7)}else if(this._j()!=0&&this._j()!=-1){this._r(3)}else if(this._k()!=0&&this._k()!=-1){this._r(5)}else{this._r(1)}},propertyChanged:null,_br:function(a){var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},$type:new $.ig.Type("FormatCellsDialogBorderInfo",$.ig.$ot,[$$0.$b6.$type])},true);$c("FormatCellsDialogData:nn","Object",{init:function(){$.ig.$op.init.call(this)},_p:null,_b:0,_q:null,_j:0,_c:0,_i:null,_z:$m($$0.$aq.$type,null),_r:null,_x:0,_aa:$m($$0.$aq.$type,null),_ah:null,_ab:$m($$0.$aq.$type,null),_k:0,_l:0,_ai:null,_m:0,_y:0,_s:null,_d:0,_t:null,_e:0,_u:null,_f:0,_ac:$m($$0.$aq.$type,null),_ad:$m($$0.$aq.$type,null),_v:null,_g:0,_ae:$m($$0.$aw.$type,null),_af:$m($$0.$aq.$type,null),_w:null,_h:0,_n:0,_o:null,_ag:$m($$0.$aq.$type,null),a:function(){return this.memberwiseClone()},$type:new $.ig.Type("FormatCellsDialogData",$.ig.$ot)},true);$c("FormatCellsDialogOptions:no","Object",{init:function(){$.ig.$op.init.call(this);this._i=$m($$t.$nd.$type,null);this._b=true;this._c=true;this._d=false;this._e=false;this._f=true;this._g=true;this._h=true;this._a=63},_i:$m($$t.$nd.$type,null),_b:false,_c:false,_d:false,_e:false,_f:false,_g:false,_h:false,_a:0,$type:new $.ig.Type("FormatCellsDialogOptions",$.ig.$ot)},true);$c("FormatCellsDialogViewModel:np","Object",{_e:null,_f:null,_i:null,_a8:null,_m:null,_j:null,_aw:false,_a9:null,_ax:false,_a:null,_r:null,_ac:0,_ae:0,_aa:0,_w:null,_x:null,_t:0,_aj:null,_ah:null,_ai:null,_bc:0,_bk:$m($$0.$aq.$type,null),_bj:$m($$0.$aq.$type,null),_bi:$m($$0.$aq.$type,null),_bh:$m($$0.$aq.$type,null),_c:null,_o:null,_bb:0,_ay:false,_bt:null,_l:null,_ap:null,_bd:0,_aq:null,_ar:null,_ao:null,init:function(a,b,c,d,e){this._ai=$$a4.$ah.automatic();this._bc=-1;this._bb=-1;$.ig.$op.init.call(this);$$ak.$c.z(a,"dialogOptions");$$ak.$c.z(b,"dialogData");$$ak.$c.z(c,"dialogServicesManager");this._f=a;this._e=b;this._i=c;this._cellValue(d);this._isMergeCellsSelectionEnabled(this._f._f);this._a9=new $$4.x(String,0);var f=false==a._i.hasValue()?a._i:(a._i.value()&a._a)!=0?a._i:$m($$t.$nd.$type,null);this._cm(e,f)},__q:null,_a0:function(){return(this._f._a&2)!=0},_a1:function(){return(this._f._a&8)!=0},_a2:function(){return(this._f._a&16)!=0},_a3:function(){return(this._f._a&4)!=0},_a5:function(){return(this._f._a&1)!=0},_a6:function(){return(this._f._a&32)!=0},__h:0,_backgroundColorInfo:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._ah)){this._ah=a;this._cq("BackgroundColorInfo")}return a}else{return this._ah}},_cellBorderInfo:function(a){if(arguments.length===1){if(a!=this._c){this._c=a;this._cq("CellBorderInfo")}return a}else{return this._c}},_cellBorderLineColor:function(){if($$a4.$ah.l_op_Inequality(null,this._ai)&&null!=this._workbook()){return this._ai._getResolvedColor1(this._workbook())}if(null!=this._workbook()){return $$a4.$ah.automatic()._getResolvedColor1(this._workbook())}return $$a4.$ah.automatic()._getResolvedColor()},_cellBorderLineColorInfo:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._ai)){this._ai=a;this._cq("CellBorderLineColorInfo")}return a}else{return this._ai}},_cellBorderLineStyles:function(){if(null==this._ao){var a=new $$4.x($$t.$nq.$type.specialize($$a4.$by.$type),0);var c=$.ig.$ep.getValues($$a4.$by.$type).getEnumerator();while(c.moveNext()){var b=c.current();a.add(new $$t.nq($$a4.$by.$type,b,"CellBorderLineStyle"))}this._ao=a.toArray()}return this._ao},__cellValue:null,_cellValue:function(a){if(arguments.length===1){this.__cellValue=a;return a}else{return this.__cellValue}},_customizedFormatMask:function(a){if(arguments.length===1){if(a!=this._bt){this._bt=a;this._cq("CustomizedFormatMask");this._cq("SelectedFormatResolved")}return a}else{return this._bt}},_decimalPlacesInSelectedNumberFormat:function(a){if(arguments.length===1){if(a!=this._bb){this._bb=a;this._cq("DecimalPlacesInSelectedNumberFormat")}return a}else{return this._bb}},_fillPatternColorInfo:function(a){if(arguments.length===1){if($$a4.$ah.l_op_Inequality(a,this._aj)){this._aj=a;this._cq("FillPatternColorInfo")}return a}else{return this._aj}},_fillPatternStyles:function(){if(null==this._ap){var a=new $$4.x($$a4.$b9.$type,1,$.ig.$ep.getValues($$a4.$b9.$type));a.remove(-1);var b=new $$4.x($$t.$nq.$type.specialize($$a4.$b9.$type),0);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.add(new $$t.nq($$a4.$b9.$type,c,"FillPatternStyle"))}this._ap=b.toArray()}return this._ap},_fontControlViewModel:function(){if(null==this._a){this._a=new $$t.m0(this._e._ah,this._e._x,this._e._z,this._e._aa,this._e._ab,this._e._k,this._e._l,this._e._r,this._i,this._f._b,this._f._c,this._f._g,this._f._h,this._workbook(),this._themeColorPickerControlViewModel())}return this._a},_formatCategories:function(){if(null==this._a8){this._a8=this._p().getFormatCategories(this._workbook())}return this._a8},_horizontalCellAlignments:function(){if(null==this._aq){var a=new $$4.x($$t.$nq.$type.specialize($$a4.$cg.$type),0);var c=$.ig.$ep.getValues($$a4.$cg.$type).getEnumerator();while(c.moveNext()){var b=c.current();a.add(new $$t.nq($$a4.$cg.$type,b,"HorizontalCellAlignment"))}this._aq=a.toArray()}return this._aq},_indent:function(a){if(arguments.length===1){if(a!=this._bc){this._bc=a;this._cq("Indent");if(this._bc>0){switch(this._selectedHorizontalCellAlignment()){case 7:case 1:case 3:break;default:this._selectedHorizontalCellAlignment(1);break}}}return a}else{return this._bc}},__isMergeCellsSelectionEnabled:false,_isMergeCellsSelectionEnabled:function(a){if(arguments.length===1){this.__isMergeCellsSelectionEnabled=a;return a}else{return this.__isMergeCellsSelectionEnabled}},_isShrinkToFitSelectionEnabled:function(a){if(arguments.length===1){if(a!=this._ay){this._ay=a;this._cq("IsShrinkToFitSelectionEnabled")}return a}else{return this._ay}},_locked:function(a){if(arguments.length===1){var b=this._bp(a);if($l(b,this._bh)){this._bh=b;this._cq("Locked")}return a}else{return this._bh}},_mergeCells:function(a){if(arguments.length===1){var b=this._bp(a);if($l(b,this._bi)){this._bi=b;this._cq("MergeCells")}return a}else{return this._bi}},_noColorVersion:function(a){if(arguments.length===1){if(a!=this._bd){this._bd=a;this._cq("NoColorVersion");this._cs()}return a}else{return this._bd}},_selectedCellBorderLineStyle:function(a){if(arguments.length===1){if(a!=this._t){this._t=a;this._cq("SelectedCellBorderLineStyle")}return a}else{return this._t}},_selectedFill:function(a){if(arguments.length===1){if(a!=this._w){this._w=a;this._cq("SelectedFill")}return a}else{return this._w}},_selectedFillForPreview:function(a){if(arguments.length===1){if(a!=this._x){this._x=a;this._cq("SelectedFillForPreview")}return a}else{return this._x}},_selectedFillPatternStyle:function(a){if(arguments.length===1){if(a!=this._aa){this._aa=a;this._cq("SelectedFillPatternStyle")}return a}else{return this._aa}},_selectedFormat:function(a){if(arguments.length===1){var b=a;var c=null!=b?$$5.$e.ag($$t.$m6.$type,this._selectedFormatCategory()._formats(),function(d){return d._mask()==b._mask()}):null;if(c!=this._j){this._j=c;this._cq("SelectedFormat");if(null!=this._j){this._customizedFormatMask(this._j._mask())}this._cq("SelectedFormatResolved")}return a}else{return this._j}},_selectedFormatResolved:function(){if(null!=this._selectedFormatCategory()&&this._selectedFormatCategory()._isCustom()&&null!=this._customizedFormatMask()){var a=new $$a4.nd(0,this._workbook(),this._customizedFormatMask(),this._workbook()._e6());if(a.o()){return this._customizedFormatMask()}}if(null!=this._selectedFormat()){return this._selectedFormat()._mask()}else{return String.empty()}},_selectedFormatCategory:function(a){if(arguments.length===1){this._l=this._m;if(null!=this._l){this._l.__d=this._selectedFormat()}if(a!=this._m){if(null!=this._l){var b=this._l;b.propertyChanged=$.ig.Delegate.prototype.remove(b.propertyChanged,this._co.runOn(this))}this._m=a;this._cq("SelectedFormatCategory");a.propertyChanged=$.ig.Delegate.prototype.combine(a.propertyChanged,this._co.runOn(this));var c=$$t.$dy.dl(null,"FormatInfo_General",[]);if(a._categoryName()!=c){this._cq("SelectedFormat")}if(a._isCustom()&&this._a9.contains("CustomizedFormatMask")){this._a9.remove("CustomizedFormatMask")}}return a}else{if(null==this._m){if(null!=this._formatCategories()&&this._formatCategories().count()>0){this._m=this._formatCategories().__inner[0]}}return this._m}},_selectedHorizontalCellAlignment:function(a){if(arguments.length===1){if(a!=this._ac){this._ac=a;this._cq("SelectedHorizontalCellAlignment");this._cw();if(this._indent()>0){switch(this._selectedHorizontalCellAlignment()){case 7:case 1:case 3:break;default:this._indent(0);break}}}return a}else{return this._ac}},_selectedVerticalCellAlignment:function(a){if(arguments.length===1){if(a!=this._ae){this._ae=a;this._cq("SelectedVerticalCellAlignment");this._cw()}return a}else{return this._ae}},_shrinkToFit:function(a){if(arguments.length===1){var b=this._bp(a);if($l(b,this._bj)){this._bj=b;this._cq("ShrinkToFit")}return a}else{return this._bj}},_themeColorPickerControlViewModel:function(){if(null==this._r){var a=$$t.$dy.dl(null,"SpreadsheetFontControl_Text_Automatic",[]);this._r=new $$t.m2(this._workbook(),a)}return this._r},_verticalCellAlignments:function(){if(null==this._ar){var a=new $$4.x($$t.$nq.$type.specialize($$a4.$c7.$type),0);var c=$.ig.$ep.getValues($$a4.$c7.$type).getEnumerator();while(c.moveNext()){var b=c.current();a.add(new $$t.nq($$a4.$c7.$type,b,"VerticalCellAlignment"))}this._ar=a.toArray()}return this._ar},_workbook:function(){return this._e._o},_wrapText:function(a){if(arguments.length===1){var b=this._bp(a);if($l(b,this._bk)){this._bk=b;this._cq("WrapText");this._cw()}return a}else{return this._bk}},_p:function(){if(null==this._o){this._o=new $$t.nc}return this._o},_ck:function(a){switch(a){case 0:this._cellBorderInfo()._i(0);this._cellBorderInfo()._l(0);this._cellBorderInfo()._m(0);this._cellBorderInfo()._n(0);this._cellBorderInfo()._o(0);this._cellBorderInfo()._p(0);this._cellBorderInfo()._j(0);this._cellBorderInfo()._k(0);this._cellBorderInfo()._r(1);break;case 2:if($$t.$nm._aq(this._cellBorderInfo()._l())||$$a4.$ah.l_op_Inequality(this._cellBorderInfo()._ad(),this._cellBorderLineColorInfo())||this._cellBorderInfo()._l()!=this._selectedCellBorderLineStyle()){this._cellBorderInfo()._l(this._selectedCellBorderLineStyle());this._cellBorderInfo()._ad(this._cellBorderLineColorInfo())}if($$t.$nm._aq(this._cellBorderInfo()._m())||$$a4.$ah.l_op_Inequality(this._cellBorderInfo()._ae(),this._cellBorderLineColorInfo())||this._cellBorderInfo()._m()!=this._selectedCellBorderLineStyle()){this._cellBorderInfo()._m(this._selectedCellBorderLineStyle());this._cellBorderInfo()._ae(this._cellBorderLineColorInfo())}break;case 1:if($$t.$nm._aq(this._cellBorderInfo()._i())||$$a4.$ah.l_op_Inequality(this._cellBorderInfo()._aa(),this._cellBorderLineColorInfo())||this._cellBorderInfo()._i()!=this._selectedCellBorderLineStyle()){this._cellBorderInfo()._i(this._selectedCellBorderLineStyle());this._cellBorderInfo()._aa(this._cellBorderLineColorInfo())}if($$t.$nm._aq(this._cellBorderInfo()._n())||$$a4.$ah.l_op_Inequality(this._cellBorderInfo()._af(),this._cellBorderLineColorInfo())||this._cellBorderInfo()._n()!=this._selectedCellBorderLineStyle()){this._cellBorderInfo()._n(this._selectedCellBorderLineStyle());this._cellBorderInfo()._af(this._cellBorderLineColorInfo())}if($$t.$nm._aq(this._cellBorderInfo()._o())||$$a4.$ah.l_op_Inequality(this._cellBorderInfo()._ag(),this._cellBorderLineColorInfo())||this._cellBorderInfo()._o()!=this._selectedCellBorderLineStyle()){this._cellBorderInfo()._o(this._selectedCellBorderLineStyle());this._cellBorderInfo()._ag(this._cellBorderLineColorInfo())}if($$t.$nm._aq(this._cellBorderInfo()._p())||$$a4.$ah.l_op_Inequality(this._cellBorderInfo()._ah(),this._cellBorderLineColorInfo())||this._cellBorderInfo()._p()!=this._selectedCellBorderLineStyle()){this._cellBorderInfo()._p(this._selectedCellBorderLineStyle());this._cellBorderInfo()._ah(this._cellBorderLineColorInfo())}break}},_cl:function(){var $self=this;var b=this._a9.getEnumerator();while(b.moveNext()){var a=b.current();switch(a){case"SelectedFormat":case"CustomizedFormatMask":var c=String.empty();var d=true;if(this._selectedFormatCategory()._isCustom()){try{var e=new $$a4.nd(0,this._workbook(),this._customizedFormatMask(),this._workbook()._e6());d=e.o()}catch(f){d=false}if(d){c=this._customizedFormatMask()}}else{c=this._selectedFormat()._mask()}if(false==d){var g=$$t.$dy.dl(null,"FormatCellsDialog_NumberTabInvalidMaskError",[]);g=$6(g,this._customizedFormatMask());this.__q=new $$t.ns(true,function(){var $ret=new $$t.nr;$ret._a=$self.__h;return $ret}(),g);return}else{this._e._ai=c}break;case"SelectedHorizontalCellAlignment":this._e._m=this._selectedHorizontalCellAlignment();break;case"SelectedVerticalCellAlignment":this._e._n=this._selectedVerticalCellAlignment();break;case"Indent":this._e._y=this._indent();break;case"WrapText":if(false==this._wrapText().hasValue()){this._e._ag=$m($$0.$aq.$type,null)}else if(true==this._wrapText().value()){this._e._ag=$m($$0.$aq.$type,true)}else{this._e._ag=$m($$0.$aq.$type,false)}break;case"ShrinkToFit":if(false==this._shrinkToFit().hasValue()){this._e._af=$m($$0.$aq.$type,null)}else if(true==this._shrinkToFit().value()){this._e._af=$m($$0.$aq.$type,true)}else{this._e._af=$m($$0.$aq.$type,false)}break;case"MergeCells":if(false==this._mergeCells().hasValue()){this._e._ad=$m($$0.$aq.$type,null)}else if(true==this._mergeCells().value()){this._e._ad=$m($$0.$aq.$type,true)}else{this._e._ad=$m($$0.$aq.$type,false)}break;case"Locked":if(false==this._locked().hasValue()){this._e._ac=$m($$0.$aq.$type,null)}else if(true==this._locked().value()){this._e._ac=$m($$0.$aq.$type,true)}else{this._e._ac=$m($$0.$aq.$type,false)}break;case"SelectedFillPatternStyle":case"BackgroundColorInfo":case"FillPatternColorInfo":this._e._i=this._selectedFill();break;default:break}}this._e._p=this._c._aa();this._e._b=this._c._i();this._e._s=this._c._ad();this._e._d=this._c._l();this._e._t=this._c._ae();this._e._e=this._c._m();this._e._u=this._c._af();this._e._f=this._c._n();this._e._v=this._c._ag();this._e._g=this._c._o();this._e._w=this._c._ah();this._e._h=this._c._p();this._e._j=this._c._r();this._e._q=this._c._ab();if(false==$$t.$nm._aq(this._c._k())){this._e._c=this._c._k()}else if(false==$$t.$nm._aq(this._c._j())){this._e._c=this._c._j()}else{this._e._c=0}var i=this._fontControlViewModel()._ah().getEnumerator();while(i.moveNext()){var h=i.current();switch(h){case"SelectedFontName":this._e._ah=this._fontControlViewModel()._selectedFontName();break;case"SelectedFontSize":if(this._fontControlViewModel()._selectedFontSize()>-1){this._e._x=this._fontControlViewModel()._selectedFontSize()*20}break;case"SelectedFontStyle":{var j=this._fontControlViewModel()._selectedFontStyle()._a;if(this._fontControlViewModel()._selectedFontStyle()._a!=0){this._e._z=$m($$0.$aq.$type,j==2||j==4?true:false);this._e._aa=$m($$0.$aq.$type,j==3||j==4?true:false)}else{this._e._z=$m($$0.$aq.$type,null);this._e._aa=$m($$0.$aq.$type,null)}break}case"Subscript":case"Superscript":if($j(true,this._fontControlViewModel()._subscript())){this._e._k=2}else if($j(true,this._fontControlViewModel()._superscript())){this._e._k=1}else{this._e._k=0}break;case"Strikeout":if(false==this._fontControlViewModel()._strikeout().hasValue()){this._e._ab=$m($$0.$aq.$type,null)}else if(true==this._fontControlViewModel()._strikeout().value()){this._e._ab=$m($$0.$aq.$type,true)}else{this._e._ab=$m($$0.$aq.$type,false)}break;case"SelectedFontColorInfo":this._e._r=this._fontControlViewModel()._selectedFontColorInfo();break;case"SelectedFontUnderlineStyle":this._e._l=this._fontControlViewModel()._selectedFontUnderlineStyle();break;default:break}}this.__q=new $$t.ns(false,function(){var $ret=new $$t.nr;$ret._a=$self.__h;return $ret}(),"")},_cv:function(a){switch(a){case 3:this._cellBorderInfo()._i(this._u(this._cellBorderInfo()._i(),this._cellBorderInfo()._aa()));if(this._cellBorderInfo()._i()!=0){this._cellBorderInfo()._aa(this._cellBorderLineColorInfo())}break;case 5:this._cellBorderInfo()._l(this._u(this._cellBorderInfo()._l(),this._cellBorderInfo()._ad()));if(this._cellBorderInfo()._l()!=0){this._cellBorderInfo()._ad(this._cellBorderLineColorInfo())}break;case 4:this._cellBorderInfo()._m(this._u(this._cellBorderInfo()._m(),this._cellBorderInfo()._ae()));if(this._cellBorderInfo()._m()!=0){this._cellBorderInfo()._ae(this._cellBorderLineColorInfo())}break;case 0:this._cellBorderInfo()._n(this._u(this._cellBorderInfo()._n(),this._cellBorderInfo()._af()));if(this._cellBorderInfo()._n()!=0){this._cellBorderInfo()._af(this._cellBorderLineColorInfo())}break;case 2:this._cellBorderInfo()._o(this._u(this._cellBorderInfo()._o(),this._cellBorderInfo()._ag()));if(this._cellBorderInfo()._o()!=0){this._cellBorderInfo()._ag(this._cellBorderLineColorInfo())}break;case 1:this._cellBorderInfo()._p(this._u(this._cellBorderInfo()._p(),this._cellBorderInfo()._ah()));if(this._cellBorderInfo()._p()!=0){this._cellBorderInfo()._ah(this._cellBorderLineColorInfo())}break;case 6:this._cellBorderInfo()._j(this._u(this._cellBorderInfo()._j(),this._cellBorderInfo()._ab()));if(this._cellBorderInfo()._j()!=0){this._cellBorderInfo()._ab(this._cellBorderLineColorInfo())}break;case 7:this._cellBorderInfo()._k(this._u(this._cellBorderInfo()._k(),this._cellBorderInfo()._ac()));if(this._cellBorderInfo()._k()!=0){this._cellBorderInfo()._ac(this._cellBorderLineColorInfo())}break}},_az:function(a){return $j(a,true)},_bl:function(a){if($j(a,null)){return $m($$0.$aq.$type,null)}else{return $m($$0.$aq.$type,$j(a,true))}},_bm:function(a){if($$a4.$ah.l_op_Equality(null,a)){return $m($$a.$ax.$type,null)}return $m($$a.$ax.$type,a._getResolvedColor1(this._workbook()))},_g:function(){if(this._a5()){return 1}if(this._a0()){return 2}if(this._a3()){return 4}if(this._a1()){return 8}if(this._a2()){return 16}if(this._a6()){return 32}return 0},_b1:function(a){var c=a._formats().getEnumerator();while(c.moveNext()){var b=c.current();var d=this._b2(b._mask());if(false==String.isNullOrEmpty(d)){return d}}return null},_b2:function(a){var b=["black","green","white","blue","magenta","yellow","cyan","red"];var c=[0,0,0,0,0,0,0,0];var d=a.toLowerCase();for(var e=0;e<b.length;e++){if(d.contains(b[e])){c[e]++}}var f=null;for(var g=0;g<c.length;g++){if(c[g]>0){if(String.isNullOrEmpty(f)){f=b[g]}else{return String.empty()}}}return f},_an:function(a,b){if($$a4.$ah.l_op_Equality(null,a)||$$a.$ax.c($m($$a.$ax.$type,null),a._color$i())){if($$a.$ax.e($m($$a.$ax.$type,null),b)){return new $$a4.ah(b.value())}}else if($$a.$ax.e($m($$a.$ax.$type,null),b)){if(b.value().l()==0){return new $$a4.ah(b,$m($$a4.$db.$type,null),$m(Number,null),false,false)}else{return new $$a4.ah(b,$m($$a4.$db.$type,null),$m(Number,null),false,true)}}return null},_u:function(a,b){if(a==this._selectedCellBorderLineStyle()&&$$a4.$ah.l_op_Equality(b,this._cellBorderLineColorInfo())){return 0}return this._selectedCellBorderLineStyle()},_cn:function(a){if(String.isNullOrEmpty(a)){this._selectedFormat(null);this._selectedFormatCategory(null)}else{while(a.contains('"$"')){a=$5(a,'"$"',"$")}while(a.contains("\\")){a=$5(a,"\\","")}var b=false;var c=null;var d=null;var f=this._formatCategories().getEnumerator();while(f.moveNext()){var e=f.current();c=e._findFormat(a);if(c!=null){d=e;b=e._isCustom();break}}var g=null;var h=null;if(null==c||b){var i=new $$a4.nd(0,this._workbook(),a,this._workbook()._e6());if(i.o()){var j=true;var k=true;var l=true;var m=true;var n=true;var o=-1;var p=0;var q=a.split(";");for(var r=0;r<4;r++){var s=i.c(r);if(null==s){break}p++;if(false==s.isNumberSection()){j=false;break}if(s.percentCount()<1){l=false}for(var u=0;u<q.length;u++){var t=q[u];if(false==t.contains("$")){k=false}if(false==t.contains("E+")){m=false}if(false==t.contains("_(")){n=false}}if(o==-1){o=s.fractionDigitCount()}else if(o!=s.fractionDigitCount()){o=-1;break}}if(j&&o!=-1){var v=this._b2(a);if(m){g=$$5.$e.ag($$t.$m7.$type,this._formatCategories(),function(w){return w._isScientific()})}else if(k){var w=$$5.$e.ag($$t.$m7.$type,this._formatCategories(),function(x){return x._isCurrency()});if(null==v||v==this._b1(w)){g=w}}else if(l){g=$$5.$e.ag($$t.$m7.$type,this._formatCategories(),function(x){return x._isPercentage()})}else if(n){g=$$5.$e.ag($$t.$m7.$type,this._formatCategories(),function(x){return x._isAccounting()})}else{var x=$$5.$e.ag($$t.$m7.$type,this._formatCategories(),function(y){return y._isNumber()});if(null==v||v==this._b1(x)){g=x}}if(null!=g){g._decimalPlaces(o);if(b&&null!=c){h=c}else{var y=g._findFormat(a);if(null!=y){h=y}else{h=$$5.$e.ad($$t.$m6.$type,g._formats())}}}}}}if(null!=g){this._selectedFormatCategory(g);this._selectedFormat(h);if(null==this._selectedFormat()){this._selectedFormatCategory(d);this._selectedFormat(c)}}else if(null==c){var z=$$5.$e.ae($$t.$m7.$type,this._formatCategories(),function(aa){return aa._isCustom()});this._selectedFormatCategory(z);this._selectedFormat(z._addFormat(a))}else{this._selectedFormatCategory(d);this._selectedFormat(c)}}},_cm:function(a,b){this._ax=true;this._cn(this._e._ai);this._selectedHorizontalCellAlignment(this._e._m);this._selectedVerticalCellAlignment(this._e._n);this._indent(this._e._y);this._wrapText(this._bl(this._e._ag));this._shrinkToFit(this._bl(this._e._af));this._mergeCells(this._bl(this._e._ad));this._cw();this._c=new $$t.nm(this._f._d,this._f._e);this._c._aa(this._e._p);this._c._i(this._e._b);this._c._ad(this._e._s);this._c._l(this._e._d);this._c._ae(this._e._t);this._c._m(this._e._e);this._c._af(this._e._u);this._c._n(this._e._f);this._c._ag(this._e._v);this._c._o(this._e._g);this._c._ah(this._e._w);this._c._p(this._e._h);this._c._r(this._e._j);this._c._ab(this._e._q);if(this._e._j==7||this._e._j==3){this._c._j(this._e._c)}this._c._ac(this._e._q);if(this._e._j==7||this._e._j==5){this._c._k(this._e._c)}this._selectedCellBorderLineStyle(1);if($b($$a4.$ac.$type,this._e._i)!==null){var c=this._e._i;this._backgroundColorInfo(c.backgroundColorInfo());this._selectedFillPatternStyle(c.patternStyle());this._fillPatternColorInfo(c.patternColorInfo());this._cr()}else{this._backgroundColorInfo($$a4.$ah.automatic());this._selectedFillPatternStyle(0);this._fillPatternColorInfo($$a4.$ah.automatic());this._selectedFill(null);this._selectedFillForPreview(null)}this._locked(this._bl(this._e._ac));this.__q=new $$t.ns(true,null,"");var d=$b($$t.$nr.$type,a);if(null!=d){if(b.hasValue()&&(b.value()==2||b.value()==8||b.value()==16||b.value()==4||b.value()==1||b.value()==32)){this.__h=b.value()}else{this.__h=d._a}}else{this.__h=this._g()}this._ax=false},_bp:function(a){if(a.hasValue()){return $m($$0.$aq.$type,a.value())}if(this._ax){return $m($$0.$aq.$type,null)}else{return $m($$0.$aq.$type,false)}},_co:function(a,b){if(b.propertyName()=="DecimalPlaces"){if(false==this._a9.contains("SelectedFormat")){this._a9.add("SelectedFormat")}this._cq("SelectedFormatResolved");this._cu()}},_cp:function(a){var $self=this;if(this._ax){return}if(this._aw){return}this._aw=true;try{if(false==this._a9.contains(a)){this._a9.add(a)}switch(a){case"SelectedFormat":break;case"SelectedFormatCategory":if(this._selectedFormatCategory()!=null){if(true==this._selectedFormatCategory()._isCustom()&&null!=this._l&&null!=this._l.__d&&false==this._l._isCustom()){var b=$$5.$e.ag($$t.$m6.$type,this._selectedFormatCategory()._formats(),function(c){return c._mask()==$self._l.__d._mask()});this._selectedFormat(b);if(null==b){this._customizedFormatMask(this._l.__d._mask());this._cq("SelectedFormatResolved")}}else if(null==this._selectedFormatCategory().__d){this._selectedFormat($$5.$e.af($$t.$m6.$type,this._selectedFormatCategory()._formats()))}else{this._selectedFormat($$5.$e.ag($$t.$m6.$type,this._selectedFormatCategory()._formats(),function(c){return c._mask()==$self._selectedFormatCategory().__d._mask()}))}this._cu()}break;case"BackgroundColorInfo":this._cs();break;case"SelectedFillPatternStyle":case"FillPatternColorInfo":this._cr();break}}finally{this._aw=false}},_cr:function(){this._selectedFill(new $$a4.ac(this._backgroundColorInfo(),this._fillPatternColorInfo(),this._selectedFillPatternStyle()));this._selectedFillForPreview(new $$a4.ac($$a4.$ah.l_op_Equality(null,this._backgroundColorInfo())?null:new $$a4.ah(this._backgroundColorInfo()._getResolvedColor1(this._e._o)),$$a4.$ah.l_op_Equality(null,this._fillPatternColorInfo())?null:new $$a4.ah(this._fillPatternColorInfo()._getResolvedColor1(this._e._o)),this._selectedFillPatternStyle()))},_cs:function(){if($$a4.$ah.l_op_Inequality(this._backgroundColorInfo(),null)){if(this._selectedFillPatternStyle()==0){this._selectedFillPatternStyle(1)}}else{this._selectedFillPatternStyle(0)}this._cr()},_ct:function(a,b){switch(b.propertyName()){case"DecimalPlaces":{this._cu();break}default:break}},_cu:function(){this._bb=-999999;this._decimalPlacesInSelectedNumberFormat(this._m._decimalPlaces())},_cw:function(){if(this._selectedHorizontalCellAlignment()==4||this._selectedHorizontalCellAlignment()==5||this._selectedHorizontalCellAlignment()==7||this._selectedVerticalCellAlignment()==3||this._selectedVerticalCellAlignment()==4||$j(this._wrapText(),true)){this._isShrinkToFitSelectionEnabled(false)}else{this._isShrinkToFitSelectionEnabled(true)}},propertyChanged:null,_cq:function(a){this._cp(a);var b=this.propertyChanged;if(null!=b){b(this,new $$0.b7(a))}},$type:new $.ig.Type("FormatCellsDialogViewModel",$.ig.$ot,[$$0.$b6.$type])},true);$c("FormatCellsDialogViewModel_FormatCellsDialogState:nr","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,$type:new $.ig.Type("FormatCellsDialogViewModel_FormatCellsDialogState",$.ig.$ot)},true);$c("spreadsheet.EnumWrapper$1:nq","Object",{$tEnum:null,_d:null,_f:null,_g:null,init:function($tEnum,a,b){this.$tEnum=$tEnum;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tEnum)}$.ig.$op.init.call(this);this._d=a;this._f=b},toString:function(){return this.enumValueNameLocalized()},enumValue:function(){return this._enumValue$i.apply(this,arguments)},_enumValue$i:function(){return this._d},enumValueNameLocalized:function(){if(String.isNullOrEmpty(this._g)){var a=this._f+"_"+this._h();this._g=$$t.$dy.dl(null,a,[])}return this._g},_h:function(){return $n(this.$tEnum,this._d)},_a:function($tEnum,a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$nq.$type.specialize($tEnum),c);if(null!=e&&e._h()==b){return e}}return null},_b:function($tEnum,a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$nq.$type.specialize($tEnum),c);if(null!=e&&e.enumValueNameLocalized()==b){return e}}return null},_c:function($tEnum,a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$nq.$type.specialize($tEnum),c);if(null!=e&&e._enumValue$i().equals($e($tEnum,b))){return e}}return null},$type:new $.ig.Type("spreadsheet.EnumWrapper$1",$.ig.$ot)},true);$c("SpreadsheetDialogResult:ns","Object",{init:function(a,b,c){$.ig.$op.init.call(this);this._a=a;this._b=b;this._c=c},_a:false,_b:null,_c:null,$type:new $.ig.Type("SpreadsheetDialogResult",$.ig.$ot)},true);$c("TopOrBottomDialogViewModel:nt","Object",{a:null,c:0,i:false,g:false,m:0,e:null,o:0,f:null,init:function(a,b,c){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.e=b;this.o=c;this.a=b.filterSettings().getFilter(c);this.r()},init1:function(a,b){$.ig.$op.init.call(this);this.f=b;this.e=this.f.table().worksheet();this.a=b.filter();this.r()},r:function(){var a=$b($$a4.$y7.$type,this.a);if(null!=a){this.c=a.type();this.m=a.value()}else{this.c=0;this.m=10}switch(this.c){case 3:case 1:this.i=false;break;case 2:case 0:this.i=true;break}switch(this.c){case 3:case 2:this.g=true;break;case 0:case 1:this.g=false;break}},b:function(a,b){if(a){if(b){return 2}else{return 0}}else{if(b){return 3}else{return 1}}},q:function(a,b,c){var d=$$t.$nt.b(a,b);this.p(d,c)},p:function(a,b){if(null!=this.f){this.f._applyTopOrBottomFilter1(a,b)}else{this.e.filterSettings()._applyTopOrBottomFilter1(this.o,a,b)}},k:function(a){var b;var c=new $$4.x($$t.$nk.$type,0);var d=true;var e="ExcelTopOrBottomFilterDirection_Top_DisplayText";var f=a._fs(e,[]);b=new $$t.nk(d,f);c.add(b);d=false;e="ExcelTopOrBottomFilterDirection_Bottom_DisplayText";f=a._fs(e,[]);b=new $$t.nk(d,f);c.add(b);return c},l:function(a){var b;var c=new $$4.x($$t.$nk.$type,0);var d=false;var e="ExcelTopOrBottomFilterTypes_Items_DisplayText";var f=a._fs(e,[]);b=new $$t.nk(d,f);c.add(b);d=true;e="ExcelTopOrBottomFilterTypes_Percent_DisplayText";f=a._fs(e,[]);b=new $$t.nk(d,f);c.add(b);return c},d:function(){return this.c},n:function(){return this.m},j:function(){return this.i},h:function(){return this.g},$type:new $.ig.Type("TopOrBottomDialogViewModel",$.ig.$ot)},true);$c("MergedScrollInfo:a2","ScrollInfo",{_aw:false,_av:false,_az:null,_at:null,init:function(){$$t.$a1.init.call(this);this._az=new $$4.h($$t.$a1.$type,$.ig.$op.$type,0)},_ak:function(a){this._a1();$$t.$a1._ak.call(this,a)},_au:function(a){if(arguments.length===1){this._at=a;return a}else{return this._at}},_ax:function(){return this._av},_a0:function(a){if(!this._az.containsKey(a)){this._az.add(a,null);var b=a;b.addListener(this,true)}},_a1:function(){if(!this._av){this._av=true;if(this._at!=null){this._at()}}},_ay:function(a){var b=this._az.remove(a);if(b){var c=a;c.removeListener(this)}return b},_a2:function(){if(!this._av){return}this._aw=true;try{var a=0;var b=0;var d=this._az.keys().getEnumerator();while(d.moveNext()){var c=d.current();if(!c._i()){continue}a=Math.max(a,c._viewport());b=Math.max(b,c._extent())}this._initialize(a,b,this._offset());var f=this._az.keys().getEnumerator();while(f.moveNext()){var e=f.current();if(!e._i()){continue}e._offset(this._offset())}}finally{this._aw=false;this._av=false}},onPropertyValueChanged:function(a,b,c){if(b=="Offset"){return}this._a1()},$type:new $.ig.Type("MergedScrollInfo",$$t.$a1.$type,[$$ak.$g.$type])},true);$c("IScrollInfoProvider:a3","Object",{$type:new $.ig.Type("IScrollInfoProvider",null)},true);$c("ScrollBarInfoMediator:a5","Object",{c:null,a:null,i:false,f:null,e:null,init:function(a){$.ig.$op.init.call(this);this.c=a;var b=this.c;b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.o.runOn(this))},j:function(){return this.i},b:function(a){if(arguments.length===1){if(a!=this.a){var b=this.a;this.a=a;if(b!=null){b.setOnValueChangeCallback(null)}if(this.a!=null){this.l();this.a.setOnValueChangeCallback(this.n.runOn(this))}this.m(b,a)}return a}else{return this.a}},g:function(a){if(arguments.length===1){this.e=a;return a}else{return this.e}},h:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},d:function(){return this.c},k:function(){var a=this.c;a.propertyChanged=$.ig.Delegate.prototype.remove(a.propertyChanged,this.o.runOn(this));this.b(null)},l:function(){var a=this.a;if(a==null){return}if(this.i){return}try{this.i=true;a.initialize(this.c._minimum(),this.c._maximum(),Number.isInfinity(this.c._viewport())?this.c._maximum():this.c._viewport(),this.c._offset(),this.c._largeChangeResolved(),this.c._smallChange());this.p();this.q()}finally{this.i=false}},m:function(a,b){},n:function(a){if(this.a!=null&&!this.i){this.c._offset(a)}},o:function(a,b){if(this.a!=null){if(String.isNullOrEmpty(b.propertyName())){this.l()}else{switch(b.propertyName()){case"Minimum":this.a.setMinimum(this.c._minimum());break;case"Maximum":case"ScrollableExtent":this.a.setMaximum(this.c._maximum());break;case"Viewport":this.a.setViewportSize(this.c._viewport());
break;case"Offset":this.a.setValue(this.c._offset());break;case"ComputedScrollBarIsEnabled":this.p();break;case"ComputedScrollBarVisibility":this.q();break;case"Extent":case"LargeChange":break;case"LargeChangeResolved":this.a.setLargeChange(this.c._largeChangeResolved());break;case"SmallChange":this.a.setSmallChange(this.c._smallChange());break;case"IsRangeChangeSuspended":case"ScrollBarVisibility":break;default:break}}}},p:function(){if(this.e!=null){this.e()}else if(this.a!=null){this.a.setIsEnabled(this.c._computedScrollBarIsEnabled())}},q:function(){if(this.f!=null){this.f()}else if(this.a!=null){this.a.setIsVisible(this.c._computedScrollBarVisibility())}},$type:new $.ig.Type("ScrollBarInfoMediator",$.ig.$ot)},true);$c("ScrollBarVisibilityCoordinator:a6","Object",{a:null,c:null,d:null,init:function(){$.ig.$op.init.call(this);this.a=new $$t.b(this.g.runOn(this));this.c=new $$4.x($$t.$a5.$type,0);this.d=new $$4.g($$t.$a5.$type,1,this.c)},e:function(){return this.d},f:function(a){this.c.add(a);a.h(this.i.runOn(this));this.a.m()},b:function(a){return this.c.contains(a)},h:function(a){if(this.c.remove(a)){a.h(null)}if(this.c.count()>0){this.a.m()}},j:function(){this.a.m()},i:function(){this.a.m()},g:function(){var a=false;var c=this.c.getEnumerator();while(c.moveNext()){var b=c.current();if(null==b.b()){continue}if(b.d()._computedScrollBarVisibility()){a=true;break}}var e=this.c.getEnumerator();while(e.moveNext()){var d=e.current();var f=d.b();if(null!=f){f.setIsVisible(a)}}},$type:new $.ig.Type("ScrollBarVisibilityCoordinator",$.ig.$ot)},true);$c("IPlatformScrollBarAdapter:a7","Object",{$type:new $.ig.Type("IPlatformScrollBarAdapter",null)},true);$c("ExtendedScrollArrowHelperBase:a8","Object",{a:null,e:null,c:null,f:false,init:function(a){$.ig.$op.init.call(this);$$ak.$c.y(a);this.e=a},g:function(){return this.f},b:function(a){if(arguments.length===1){if(a!=this.a){var b=this.a;this.a=a;this.h(b,this.a)}return a}else{return this.a}},d:function(a){if(arguments.length===1){if(a!=this.c){var b=this.c;this.c=a;if(this.g()){if($b($$t.$a4.$type,b)!==null){b._ay()}if($b($$t.$a4.$type,a)!==null){a._a0($m(Number,null))}}}return a}else{return this.c}},h:function(a,b){},i:function(){if(this.f){this.f=false;if($b($$t.$a4.$type,this.c)!==null){this.c._ay()}}},j:function(a){if(!this.f){this.f=true;if($b($$t.$a4.$type,this.c)!==null){this.c._a0(a)}}},$type:new $.ig.Type("ExtendedScrollArrowHelperBase",$.ig.$ot)},true);$c("ExtendedScrollArrowHelper:a9","ExtendedScrollArrowHelperBase",{init:function(a){$$t.$a8.init.call(this,a)},k:function(a,b){if(this.d()!=null){switch(b._b){case 5:this.j($m(Number,b._c));break;case 8:this.i();break;case 1:this.e(4,b._c);b._c=this.d()._offset();break;case 0:this.e(1,b._c);b._c=this.d()._offset();break;case 3:this.e(3,b._c);b._c=this.d()._offset();break;case 2:this.e(0,b._c);b._c=this.d()._offset();break;default:return}}},h:function(a,b){var c=$b($$t.$bc.$type,a);var d=$b($$t.$bc.$type,b);if(c!=null){var e=c.a.a;e.scroll=$.ig.Delegate.prototype.remove(e.scroll,this.k.runOn(this))}if(d!=null){var f=d.a.a;f.scroll=$.ig.Delegate.prototype.combine(f.scroll,this.k.runOn(this))}},$type:new $.ig.Type("ExtendedScrollArrowHelper",$$t.$a8.$type)},true);$c("ExtendedScrollBarInfoMediator:ba","ScrollBarInfoMediator",{r:null,init:function(a){$$t.$a5.init.call(this,a);this.r=new $$t.a9(a._ao.runOn(a));this.r.d(a)},k:function(){$$t.$a5.k.call(this);this.r.d(null);this.r.b(null)},m:function(a,b){if(this.r.d()!=null){this.r.b(b)}},$type:new $.ig.Type("ExtendedScrollBarInfoMediator",$$t.$a5.$type)},true);$c("ScrollInfoUtilities:bb","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("ScrollInfoUtilities",$.ig.$ot)},true);$c("JsScrollBarAdapter:bc","Object",{a:null,c:null,init:function(a){$.ig.$op.init.call(this);this.a=a},b:function(){return this.a.a.ck},dispose:function(){this.a.c()},getValue:function(){return this.b()._offset()},initialize:function(a,b,c,d,e,f){var g=this.b();if(this.c!=null){g.propertyChanged=$.ig.Delegate.prototype.remove(g.propertyChanged,this.e.runOn(this))}g._minimum(a);g._smallChange(f);g._largeChange($m(Number,e));g._initialize(c,b+e,d);if(this.c!=null){g.propertyChanged=$.ig.Delegate.prototype.combine(g.propertyChanged,this.e.runOn(this))}},setMinimum:function(a){this.b()._minimum(a)},setMaximum:function(a){var b=this.b();b._initialize(b._viewport(),a+b._largeChangeResolved(),b._offset())},setViewportSize:function(a){var b=this.b();b._initialize(a,b._extent(),b._offset())},setValue:function(a){this.b()._aq(a)},setLargeChange:function(a){this.b()._largeChange($m(Number,a))},setSmallChange:function(a){this.b()._smallChange(a)},setIsEnabled:function(a){this.a.b(a)},setIsVisible:function(a){this.a.a.ac(a)},setOnValueChangeCallback:function(a){if(this.c!=null){var b=this.b();b.propertyChanged=$.ig.Delegate.prototype.remove(b.propertyChanged,this.e.runOn(this))}this.c=a;if(this.c!=null){var c=this.b();c.propertyChanged=$.ig.Delegate.prototype.combine(c.propertyChanged,this.e.runOn(this))}},e:function(a,b){if(String.isNullOrEmpty(b.propertyName())||b.propertyName()=="Offset"){if(this.c!=null){this.c(this.b()._offset())}}},$type:new $.ig.Type("JsScrollBarAdapter",$.ig.$ot,[$$t.$a7.$type])},true);$c("JsScrollBar:bd","Object",{a:null,init:function(a,b){$.ig.$op.init.call(this);this.a=new $$t.aq(a,b,"ScrollBar");var c=this.a.cn},b:function(a){if(arguments.length===1){if(a!=this.a.u()){this.a.u(a)}return a}else{return this.a.u()}},c:function(){this.a.ab(true)},$type:new $.ig.Type("JsScrollBar",$.ig.$ot)},true);$c("JsScrollEventArgs:be","EventArgs",{_b:0,_c:0,init:function(a,b){$$0.$w.init.call(this);this._b=a;this._c=b},$type:new $.ig.Type("JsScrollEventArgs",$$0.$w.$type)},true);$c("IElementLayerContainer$1:bh","Object",{$type:new $.ig.Type("IElementLayerContainer$1",null,[$$t.$bg.$type])},true);$c("ElementLayerInfo_ElementOrderInfo:bk","Object",{_layer:null,c:null,b:null,init:function(a,b,c){$.ig.$op.init.call(this);this._layer=a;this.c=b;this.b=c},after:function(){return this.b},before:function(){return this.c},key:function(){return this._layer.f},$type:new $.ig.Type("ElementLayerInfo_ElementOrderInfo",$.ig.$ot,[$$t.$g.$type])},true);$c("PositionOrderHelper$1:bj","Object",{$tChild:null,a:null,b:null,d:null,e:null,init:function($tChild,a,b){this.$tChild=$tChild;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tChild)}$.ig.$op.init.call(this);this.d=a;this.e=b;this.a=new $$t.of(this.$tChild);this.b=new $$t.of(this.$tChild)},f:function(){this.a.clear();this.b.clear();var a=new $$4.x($$t.$g.$type,0);var b=new $$4.x($$t.$g.$type,0);var c=new $$4.h($$t.$g.$type,this.$tChild,0);var e=this.d.getEnumerator();while(e.moveNext()){var d=e.current();this.a._add(d);var f=this.e(d)||new $$t.bm(this.$tChild);a.add(f);b.add(f);c.item(f,d)}var g;var h=$$t.$h.n(a,g,new $$t.bl(this.$tChild,b));g=h.p1;if(!g){a=b}var j=a.getEnumerator();while(j.moveNext()){var i=j.current();this.b._add(c.item(i))}},c:function(){if(!$$ak.$c.d(this.$tChild,this.a,this.d,null)){this.f()}return this.b},$type:new $.ig.Type("PositionOrderHelper$1",$.ig.$ot)},true);$c("PositionOrderHelper_DefaultMeasureComparer$1:bl","Object",{$tChild:null,_a:null,init:function($tChild,a){this.$tChild=$tChild;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tChild)}$.ig.$op.init.call(this);this._a=a},compare:function(a,b){if(a==b){return 0}var c=$$ak.$c.g(a.after())||$$ak.$c.g(a.before());var d=$$ak.$c.g(b.after())||$$ak.$c.g(b.before());if(c!=d){return $.ig.util.boolCompare(d,c)}return $x(this._a.indexOf(a),this._a.indexOf(b))},$type:new $.ig.Type("PositionOrderHelper_DefaultMeasureComparer$1",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$g.$type)])},true);$c("PositionOrderHelper_EmptySortPosition$1:bm","Object",{$tChild:null,init:function($tChild){this.$tChild=$tChild;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tChild)}$.ig.$op.init.call(this)},after:function(){return null},before:function(){return null},key:function(){return String.empty()},$type:new $.ig.Type("PositionOrderHelper_EmptySortPosition$1",$.ig.$ot,[$$t.$g.$type])},true);$c("ElementLayerManager$1:bn","Object",{$tViewModel:null,b:null,g:null,e:null,c:null,f:null,init:function($tViewModel,a,b){this.$tViewModel=$tViewModel;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tViewModel)}$.ig.$op.init.call(this);$$ak.$c.y(a);$$ak.$c.y(b);this.b=a;this.g=b;this.e=new $$4.h(String,$$t.$bp.$type.specialize(this.$tViewModel),2,$$t.$bi.e);this.f=new $$4.x($$t.$bp.$type.specialize(this.$tViewModel),0)},d:function(){return this.c},a:function(a){var $self=this;$$ak.$c.z(a,"info");var b;if(!function(){var c=$self.e.tryGetValue(a.g(),b);b=c.p1;return c.ret}()){return null}return b},k:function(a){var c=this.f.getEnumerator();while(c.moveNext()){var b=c.current();if(a==null||a(b._b())){b._f()}}},i:function(a){this.h();this.c=a;this.j()},h:function(){var a=this.f.toArray();this.f.clear();this.e.clear();for(var c=0;c<a.length;c++){var b=a[c];this.c.removeChild(b);b.dispose();b._d().detach(b)}},j:function(){this.h();if(this.c==null){return}var a=this.g(this.b);var b=$$5.$e.g($$t.$bp.$type.specialize(this.$tViewModel),String,a,function(c){return c._b().g()});var c=$$5.$e.z($$t.$g.$type,$$5.$e.h($$t.$g.$type,$$5.$e.o($$t.$bp.$type.specialize(this.$tViewModel),$$t.$bk.$type,a,function(d){return d._b().d()})));var e=b.getEnumerator();while(e.moveNext()){var d=e.current();this.e.item(d.key(),d.value())}var f;var g=$$t.$h.n(c,f,null);f=g.p1;for(var h=c.count()-1;h>=0;h--){var i=c.__inner[h];var j=this.e.item(i.key());this.f.add(j);j._d().attach(j);this.c.addChild(j)}},$type:new $.ig.Type("ElementLayerManager$1",$.ig.$ot)},true);$c("CommandMap:o","Object",{a:null,d:null,init:function(a,b){$.ig.$op.init.call(this);$$ak.$c.z(a,"commands");this.a=a;if(null!=b){for(var d=0;d<a.length;d++){var c=a[d];var e;if(function(){var f=b.tryGetValue(c.f,e);e=f.p1;return f.ret}()){c.a=e}}this.d=b}},c:function(a,b){var c=this.b(a);return c==null||b.h(c.a,c.b)},e:function(a,b,c){var d=new $$4.x($$0.$aw.$type,0);for(var e=0;e<this.a.length;e++){var f=this.a[e];if(f.d(a,b)&&f.e(c)){d.add(f.f)}}return d},b:function(a){var b;var c=this.d.tryGetValue(a,b);b=c.p1;return b},$type:new $.ig.Type("CommandMap",$.ig.$ot)},true);$c("CommandMap_Requirement:p","Object",{a:null,b:null,init:function(a,b){this.a=new $$t.on;this.b=new $$t.on;$.ig.$op.init.call(this);this.a=a;this.b=b},$type:new $.ig.Type("CommandMap_Requirement",$.ig.$ot)},true);$c("CommandMap_KeyMapping:q","Object",{f:0,a:null,b:null,c:null,g:0,i:0,h:0,init:function(a,b,c,d,e,f){this.b=new $$t.on;this.c=new $$t.on;$.ig.$op.init.call(this);this.f=a;this.b=b;this.c=c;this.g=d;this.i=e;this.h=f},d:function(a,b){return this.g==a&&this.i==(this.i&b)&&0==(this.h&b)},e:function(a){return a.h(this.b,this.c)&&(null==this.a||a.h(this.a.a,this.a.b))},$type:new $.ig.Type("CommandMap_KeyMapping",$.ig.$ot)},true);$c("InputProxy:ab","Object",{init:function(){$.ig.$op.init.call(this)},f:function(){},a:function(){},c:function(){},e:function(){},g:function(){},h:function(){},b:function(){},d:function(){},$type:new $.ig.Type("InputProxy",$.ig.$ot)},true);$c("PlatformTimer:ad","Object",{a:false,d:0,e:0,init:function(){$.ig.$op.init.call(this);this.g(100)},g:function(a){if(arguments.length===1){this.d=a;if(this.e!=0&&this.a){this.k()}return a}else{return this.d}},b:function(){return this.a},tick:null,i:function(){var a=this.tick;if(a!=null){a(this,$$0.$w.empty)}},j:function(){var a=this.e;this.e=0;this.i();if(this.a){this.k()}},k:function(){this.l();if(this.a){return}this.a=true;this.e=window.setTimeout(this.j.runOn(this),this.d)},l:function(){this.a=false;if(this.e!=0){var a=this.e;this.e=0;window.clearTimeout(a)}},$type:new $.ig.Type("PlatformTimer",$.ig.$ot)},true);$c("ButtonVisualElement:af","VisualElement",{init:function(a,b){$$t.$au.init.call(this,a,b)},x:function(){return true},b2:function(){this.s(true);$$t.$au.b2.call(this)},b4:function(){this.s(false);$$t.$au.b4.call(this)},ad:function(a){if(a.a()==1){return a.d()}return $$t.$au.ad.call(this,a)},ah:function(a){if(a.b()){var b=a.h();a.f();if(this.aa(b.__x,b.__y)){this.ch()}return true}return $$t.$au.ah.call(this,a)},ch:function(){var a=this.click;if(a!=null){a(this,$$0.$w.empty)}},click:null,$type:new $.ig.Type("ButtonVisualElement",$$t.$au.$type)},true);$c("LineVisualElement:ah","VisualElement",{ch:null,cf:false,init:function(a,b){$$t.$au.init.call(this,a,b)},ci:function(a){if(arguments.length===1){if(a!=this.ch){this.ch=a;this.cg(true)}return a}else{return this.ch}},cg:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;if(a){this.b1()}}return a}else{return this.cf}},$type:new $.ig.Type("LineVisualElement",$$t.$au.$type)},true);$c("TextBoxVisualElement:ai","VisualElement",{cg:false,cm:null,cf:false,ck:0,init:function(a,b){this.ck=1;$$t.$au.init.call(this,a,b)},ch:function(a){if(arguments.length===1){if(a!=this.cf){this.cf=a;if(a){this.b1()}}return a}else{return this.cf}},cl:function(a){if(arguments.length===1){if(a!=this.ck){this.ck=a;if(this.__parent!=null){this.__parent.t(true)}this.ch(true)}return a}else{return this.ck}},co:function(a){if(arguments.length===1){if(a!=this.cm){this.cm=a;this.ci(true)}return a}else{return this.cm}},ci:function(a){if(arguments.length===1){if(a!=this.cg){this.cg=a;if(a){this.b1()}}return a}else{return this.cg}},cp:function(){var a=this.textChanged;if(a!=null){a(this,$$0.$w.empty)}},textChanged:null,$type:new $.ig.Type("TextBoxVisualElement",$$t.$au.$type)},true);$c("ToggleButtonVisualElement:aj","ButtonVisualElement",{cj:false,ci:false,init:function(a,b){this.ci=true;$$t.$af.init.call(this,a,b)},ch:function(){this.cl(!this.cl());$$t.$af.ch.call(this)},ck:function(a){if(arguments.length===1){if(a!=this.ci){this.ci=a;if(a){this.b1()}}return a}else{return this.ci}},cl:function(a){if(arguments.length===1){if(a!=this.cj){this.cj=a;this.ck(true);var b=this.isCheckedChanged;if(b!=null){b(this,$$0.$w.empty)}}return a}else{return this.cj}},isCheckedChanged:null,$type:new $.ig.Type("ToggleButtonVisualElement",$$t.$af.$type)},true);$c("ToolTipVisualElement:ak","VisualElement",{ch:false,cl:null,ci:false,cm:null,cf:null,cg:null,init:function(a,b){$$t.$au.init.call(this,a,b);this.w(false);this.cg=new $$t.au(this,"ToolTipTitle");this.cf=new $$t.au(this,"ToolTipBody");this.cg.q(false);this.cf.q(false)},cq:function(a){if(arguments.length===1){if(a!=this.cl){this.cl=a;this.cj(true)}return a}else{return this.cl}},cj:function(a){if(arguments.length===1){if(a!=this.ch){this.ch=a;if(a){this.b1()}}return a}else{return this.ch}},cr:function(a){if(arguments.length===1){if(a!=this.cm){this.cm=a;this.ck(true)}return a}else{return this.cm}},ck:function(a){if(arguments.length===1){if(a!=this.ci){this.ci=a;if(a){this.b1()}}return a}else{return this.ci}},$type:new $.ig.Type("ToolTipVisualElement",$$t.$au.$type)},true);$c("RepeatButtonVisualElement:am","ButtonVisualElement",{cn:0,cl:0,ci:null,cm:0,cj:0,ck:0,init:function(a,b){this.cn=250;this.cl=50;$$t.$af.init.call(this,a,b)},ad:function(a){if(a.a()==1){this.cm=0;this.cu(a.h());if(a.d()){this.cs()}}else{this.ct();a.f()}return true},ag:function(a){if(a.b()){var b=a.h();var c=this.aa(b.__x,b.__y);if(!c){this.ct()}else if(this.ci==null||!this.ci.b()){this.cs()}this.cu(b)}return $$t.$af.ag.call(this,a)},ah:function(a){this.ct();if(a.b()){var b=a.h();a.f();this.cu(b);if(this.cm==0){var c=this.aa(b.__x,b.__y);if(c){this.ch()}}}return $$t.$af.ah.call(this,a)},cr:function(a,b){var c=this.cj;var d=this.ck;var e=this;while(e.__parent!=null){c-=e.ax;d-=e.a2;e=e.__parent}if(this.aa(c,d)){this.cm++;this.ch()}if(this.ci!=null){this.ci.g(this.cl)}},cs:function(){var a=this.ci==null||!this.ci.b();if(this.ci!=null&&!a){this.ci.l()}else if(this.ci==null){this.ci=new $$t.ad;var b=this.ci;b.tick=$.ig.Delegate.prototype.combine(b.tick,this.cr.runOn(this))}this.ci.g(a?this.cn:this.cl);this.ci.k()},ct:function(){if(this.ci!=null){this.ci.l()}},cu:function(a){var b=a.__x;var c=a.__y;var d=this;while(d.__parent!=null){b+=d.ax;c+=d.a2;d=d.__parent}this.cj=b;this.ck=c},$type:new $.ig.Type("RepeatButtonVisualElement",$$t.$af.$type)},true);$c("RootVisualElement_DeferredTouchOperation:ao","Object",{d:null,c:null,a:0,b:null,init:function(a,b,c){$.ig.$op.init.call(this);this.d={__x:a,__y:b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this.c=c;this.a=0},$type:new $.ig.Type("RootVisualElement_DeferredTouchOperation",$.ig.$ot)},true);$c("ScrollBarVisualElement:aq","VisualElement",{ck:null,cl:0,cn:false,cg:null,cf:null,ci:null,ch:null,cj:null,cm:false,cs:0,cr:0,cu:0,ct:0,init:function(a,b,c){var $self=this;$$t.$au.init.call(this,b,c);var d=a==1;this.cn=d;this.cl=a;this.ck=new $$t.a1;var e=this.ck;e.propertyChanged=$.ig.Delegate.prototype.combine(e.propertyChanged,this.c6.runOn(this));this.cg=new $$t.am(this,"ScrollBarNearButton");var f=this.cg;f.click=$.ig.Delegate.prototype.combine(f.click,function(f,g){$self.c4(0,1)});this.cf=new $$t.am(this,"ScrollBarFarButton");var g=this.cf;g.click=$.ig.Delegate.prototype.combine(g.click,function(g,h){$self.c4(1,4)});this.ci=new $$t.am(this,"ScrollBarNearTrack");var h=this.ci;h.click=$.ig.Delegate.prototype.combine(h.click,function(h,i){$self.c4(2,0)});this.ch=new $$t.am(this,"ScrollBarFarTrack");var i=this.ch;i.click=$.ig.Delegate.prototype.combine(i.click,function(i,j){$self.c4(3,3)});this.cj=new $$t.ar(this,"ScrollBarThumb")},bz:function(){$$t.$au.bz.call(this);var a=this.ck;a.propertyChanged=$.ig.Delegate.prototype.remove(a.propertyChanged,this.c6.runOn(this))},b3:function(){$$t.$au.b3.call(this);this.cg.u(this.cf.u(this.u()));this.cj.ac(this.ch.ac(this.ci.ac(this.u())));this.t(true)},b7:function(a,b,c,d){$$t.$au.b7.call(this,a,b,c,d);if(this.cn){this.cg.al(a,b,c,this.cg.av);this.cf.al(a,b+d-this.cg.av,c,this.cf.av)}else{this.cg.al(a,b,this.cg.a3,d);this.cf.al(a+c-this.cg.a3,b,this.cf.a3,d)}var e=this.cn?this.cg.av:this.cg.a3;var f=this.cn?this.cf.av:this.cf.a3;var g=e+f;var h=this.cn?d:c;var i=Math.max(h-g,0);var j=0;var k=0;var l=this.ck._minimum();if(i>0){var m=this.ck._largeChangeResolved();var n=this.ck._extent()+1-m-l;if(m==0){j=this.cn?c:d}else{var o=m/(n+m);j=i*o;var p=8;if(j<p){j=p}}if(j>i){j=i}var q=0;var r=this.ck._offset();if(n!=0){q=Math.min(r-l,n)/n}i-=j;k=q*i}var s=i-k;this.cr=k;this.cu=j;if(this.cn){this.cj.al(a,b+e+k,c,j);this.ci.al(a,b+e,c,k);this.ch.al(a,b+e+k+j,c,s)}else{this.cj.al(a+e+k,b,j,d);this.ci.al(a+e,b,k,d);this.ch.al(a+e+k+j,b,s,d)}},cv:function(a){var b=this.a3;var c=this.av;var d=this.cn?this.cg.av:this.cg.a3;var e=this.cn?this.cf.av:this.cf.a3;var f=d+e;var g=a.__x;var h=a.__y;var i,j;if(this.cn){h+=d+this.cr;if(g<-8*b||g>=9*b||h<-f||h>=c+f){return this.cs}j=a.__y+this.cr-this.ct;i=c-f-this.cu}else{g+=d+this.cr;if(h<-8*c||h>=9*c||g<-f||g>=b+f){return this.cs}j=a.__x+this.cr-this.ct;i=b-f-this.cu}if(j<0){j=0}else if(j>i){j=i}var k=this.ck._minimum();var l=this.ck._largeChangeResolved();var m=this.ck._extent()+1-l-k;var n=m*j/i+k;if(n<k){n=k}else if(n>this.ck._maximum()){n=this.ck._maximum()}return n},c3:function(){if(this.cm){this.cj.s(false);this.cm=false;this.c5(4,this.ck._offset());this.c5(8,this.ck._offset())}},co:function(a){if(a.a()==1&&a.d()){this.cm=true;this.cj.s(false);var b=a.h();this.ct=this.cn?b.__y:b.__x;this.cs=this.ck._offset();this.c5(5,this.cs);return true}else{this.c3();return false}},cp:function(a){if(this.cm){var b=a.h();var c=this.cv(b);if(c!=this.ck._offset()){this.c5(5,c)}return true}else{return $$t.$au.ag.call(this,a)}},cq:function(a){if(this.cm){this.c3();a.f();return true}return false},c4:function(a,b){this.c5(a,this.ck._s(b))},c5:function(a,b){var c=this.scroll;if(null!=c){var d=new $$t.be(a,b);c(this,d);b=d._c}this.ck._aq(b)},c6:function(a,b){switch(function(c){return c!=null?c:""}(b.propertyName())){case"":case"Offset":this.t(true);break}},scroll:null,$type:new $.ig.Type("ScrollBarVisualElement",$$t.$au.$type)},true);$c("ScrollBarVisualElement_ScrollThumbVisualElement:ar","VisualElement",{init:function(a,b){$$t.$au.init.call(this,a,b)},cf:function(){return this.__parent},x:function(){return true},ad:function(a){return this.cf().co(a)},ag:function(a){return this.cf().cp(a)},ah:function(a){return this.cf().cq(a)},$type:new $.ig.Type("ScrollBarVisualElement_ScrollThumbVisualElement",$$t.$au.$type)},true);$c("VisualElementConstraint:as","Object",{k:0,j:0,m:0,l:0,n:0,i:0,b:null,c:null,a:null,init:function(a,b,c,d,e,f,g,h,i){$.ig.$op.init.call(this);if(b>c){c=b}if(a<b){a=b}else if(a>c){a=c}if(e>f){f=e}if(d<e){d=e}else if(d>f){d=f}this.n=a;this.m=b;this.k=c;this.j=f;this.l=e;this.i=d;this.b=g;this.a=h;this.c=i},e:function(a){if(!$.ig.util.isNaN(this.i)){a=this.i}else if(a>this.j){a=this.j}else if(a<this.l){a=this.l}return a},f:function(a){if(!$.ig.util.isNaN(this.n)){a=this.n}else if(a>this.k){a=this.k}else if(a<this.m){a=this.m}return a},g:function(a){var b=a;b+=this.c.a;b+=this.a.a;b+=this.b.a;return b},h:function(a){var b=a;b+=this.c.d;b+=this.a.d;b+=this.b.d;return b},d:function(a,b,c,d,e){var f=this.b;if(f!=null){a+=f.b;b+=f.c;c-=f.d;d-=f.a}var g=c;c=this.f(c);if(g!=c){a+=(g-c)/2}var h=d;d=this.e(d);if(h!=d){b+=(h-d)/2}return e(a,b,c,d)},$type:new $.ig.Type("VisualElementConstraint",$.ig.$ot)},true);$c("VisualElementThickness:at","Object",{b:0,c:0,d:0,a:0,init:function(a,b,c,d){$.ig.$op.init.call(this);this.b=$.ig.util.isNaN(a)?0:a;this.c=$.ig.util.isNaN(b)?0:b;this.d=this.b+($.ig.util.isNaN(c)?0:c);this.a=this.c+($.ig.util.isNaN(d)?0:d)},$type:new $.ig.Type("VisualElementThickness",$.ig.$ot)},true);$c("VisualElement_ZComparer:av","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){if(a==b){return 0}if(a==null){return-1}else if(b==null){return 1}return $x(a.a8,b.a8)},$type:new $.ig.Type("VisualElement_ZComparer",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$au.$type)])},true);$c("VisualElementInputProxy:aw","InputProxy",{j:null,i:0,m:null,k:null,s:null,o:0,n:false,p:0,init:function(a,b,c,d,e,f,g,h){$$t.$ab.init.call(this);this.j=a;this.i=b;this.m=c;this.o=g;this.n=h;this.p=$$t.$aw.q;this.s=new $$a.y(0);this.r(d,e,f)},f:function(){this.j.d0(this.k)},a:function(){return this.i},c:function(){if(this.p!=$$t.$aw.q){return false}return this.n},e:function(){return this.o},g:function(){return this.m._bh},h:function(){return this.s},b:function(){return this.j.cs()},d:function(){return this.j.cr(this.k)},l:function(){return this.k},r:function(a,b,c){this.s.__x=a;this.s.__y=b;this.k=c},$type:new $.ig.Type("VisualElementInputProxy",$$t.$ab.$type)},true);$c("WorksheetSortFilterArea___GetSortConditions__IteratorClass:gf","Object",{_e:0,_b:null,_c:null,_d:null,___4__this:null,init:function(a){this._d=new $$4.u($$a4.$hs.$type,$$a4.$aee.$type);$.ig.$op.init.call(this);this._e=a},_f:function(){this._e=-1;if(this._c!=null){this._c.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._e>=0){switch(this._e){case 0:this._e=1;this._c=this.___4__this.c().filterSettings().sortSettings().sortConditions().getEnumerator();this._e=2;break;case 2:this._e=1;if(this._c.moveNext()){this._d=this._c.current();if(this._d.key().index()==this.___4__this.ai){this._b=this._d.value();this._e=2;return true}this._e=2;break}this._f();break}}}catch(a){__hasError__=true;throw a}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._e==-2){this._e=0;d__=this}else{d__=new $$t.gf(0);d__.___4__this=this.___4__this}return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._e){case 1:case 2:this._f();break}},current:function(){return this._b},current1:function(){return this._b},$type:new $.ig.Type("WorksheetSortFilterArea___GetSortConditions__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$a4.$aee.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$a4.$aee.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("SpreadsheetPaneManager___GetAllCells__IteratorClass:iz","Object",{_l:0,_a:null,_k:null,_d:null,_n:0,_m:0,_c:null,_b:null,_f:null,___3__ws:null,_j:null,___3__ranges:null,_h:null,___3__rangeInitializer:null,init:function(a){this._a=new $$t.dz;this._d=new $$t.d1;this._c=new $$t.d1;this._b=new $$t.dz;$.ig.$op.init.call(this);this._l=a},_o:function(){this._l=-1;if(this._k!=null){this._k.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._l>=0){switch(this._l){case 0:this._l=1;this._k=this._j.getEnumerator();this._l=2;break;case 2:this._l=1;if(this._k.moveNext()){this._d=this._k.current();if(this._h!=null){this._h(this._d)}this._n=this._d.firstRow();this._l=3;break}this._o();break;case 3:this._l=1;if(this._n<=this._d.lastRow()){this._m=this._d.firstColumn();this._l=4;break}this._l=2;break;case 4:this._l=1;if(this._m<=this._d.lastColumn()){this._c=$$t.$ik._getCellRange2(this._n,this._m,this._f);this._b=this._c._c();if(!this._c.isSingleCell()){var a=$$t.$ik._e2(this._c,this._f);if($$t.$dz.l_op_Inequality_Lifted(a,$m($$t.$dz.$type,null))){this._b=a.value()}}if(this._b.row()==this._n&&this._b.column()>=this._m){this._a=this._b;this._l=5;return true}this._m=this._c.lastColumn();this._l=5;break}this._n++;this._l=3;break;case 5:this._l=1;this._m++;this._l=4;break}}}catch(b){__hasError__=true;throw b}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._l==-2){this._l=0;d__=this}else{d__=new $$t.iz(0)}d__._f=this.___3__ws;d__._j=this.___3__ranges;d__._h=this.___3__rangeInitializer;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._l){case 1:case 2:case 3:case 4:case 5:this._o();break}},current:function(){return this._a},current1:function(){return this._a},$type:new $.ig.Type("SpreadsheetPaneManager___GetAllCells__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$t.$dz.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$t.$dz.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("TableSortFilterArea___GetSortConditions__IteratorClass:gg","Object",{_e:0,_b:null,_c:null,_d:null,___4__this:null,init:function(a){this._d=new $$4.u($$a4.$h8.$type,$$a4.$aee.$type);$.ig.$op.init.call(this);this._e=a},_f:function(){this._e=-1;if(this._c!=null){this._c.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._e>=0){switch(this._e){case 0:this._e=1;this._c=this.___4__this.ah.table().sortSettings().sortConditions().getEnumerator();this._e=2;break;case 2:this._e=1;if(this._c.moveNext()){this._d=this._c.current();if(this._d.key()==this.___4__this.ah){this._b=this._d.value();this._e=2;return true}this._e=2;break}this._f();break}}}catch(a){__hasError__=true;throw a}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._e==-2){this._e=0;d__=this}else{d__=new $$t.gg(0);d__.___4__this=this.___4__this}return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._e){case 1:case 2:this._f();break}},current:function(){return this._b},current1:function(){return this._b},$type:new $.ig.Type("TableSortFilterArea___GetSortConditions__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$a4.$aee.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$a4.$aee.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("IGExcelSerializationProvider_SelectionWorkbookSaveFilter___GetAllRows__IteratorClass:j1","Object",{_h:0,_d:null,_e:null,_k:0,_g:null,_f:null,_j:0,_i:0,_c:null,___3__ws:null,___4__this:null,init:function(a){this._f=new $$t.i;$.ig.$op.init.call(this);this._h=a},_l:function(){this._h=-1;if(this._g!=null){this._g.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._h>=0){switch(this._h){case 0:this._h=-1;this._e=this._c.rows();this._k=-1;this._h=1;this._g=this.___4__this.f.a.c().getEnumerator();this._h=2;break;case 2:this._h=1;if(this._g.moveNext()){this._f=this._g.current();var a=$$t.$j2.j(this._f._i,this._k,this._e);this._j=a;this._i=this._f._h;this._h=3;break}this._l();break;case 3:this._h=1;if(this._j<=this._i){this._d=this._e.item(this._j);this._h=4;return true}this._k=this._f._h;this._h=2;break;case 4:this._h=1;this._j++;this._h=3;break}}}catch(b){__hasError__=true;throw b}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._h==-2){this._h=0;d__=this}else{d__=new $$t.j1(0);d__.___4__this=this.___4__this}d__._c=this.___3__ws;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._h){case 1:case 2:case 3:case 4:this._l();break}},current:function(){return this._d},current1:function(){return this._d},$type:new $.ig.Type("IGExcelSerializationProvider_SelectionWorkbookSaveFilter___GetAllRows__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$a4.$ma.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$a4.$ma.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("IGExcelSerializationProvider_SelectionWorkbookSaveFilter___GetAllocatedRows__IteratorClass:j0","Object",{_j:0,_d:null,_f:null,_k:0,_h:null,_g:null,_i:null,_e:null,_c:null,___3__ws:null,___4__this:null,init:function(a){this._g=new $$t.i;$.ig.$op.init.call(this);this._j=a},_l:function(){this._j=-1;if(this._h!=null){this._h.dispose()}},_m:function(){this._j=1;if(this._i!=null){this._i.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._j>=0){switch(this._j){case 0:this._j=-1;this._f=this._c.rows();this._k=-1;this._j=1;this._h=this.___4__this.f.a.c().getEnumerator();this._j=2;break;case 2:this._j=1;if(this._h.moveNext()){this._g=this._h.current();var a=$$t.$j2.j(this._g._i,this._k,this._f);this._j=3;this._i=this._f._m(a,this._g._h).getEnumerator();this._j=4;break}this._l();break;case 4:this._j=3;if(this._i.moveNext()){this._e=this._i.current();this._d=this._e;this._j=4;return true}this._m();this._k=this._g._h;this._j=2;break}}}catch(b){__hasError__=true;throw b}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._j==-2){this._j=0;d__=this}else{d__=new $$t.j0(0);d__.___4__this=this.___4__this}d__._c=this.___3__ws;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._j){case 1:case 2:this._l();break;case 3:case 4:try{this._m()}finally{this._l()}break}},current:function(){return this._d},current1:function(){return this._d},$type:new $.ig.Type("IGExcelSerializationProvider_SelectionWorkbookSaveFilter___GetAllocatedRows__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$a4.$ma.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$a4.$ma.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("IGExcelSerializationProvider_SelectionWorkbookSaveFilter___GetMergedCells__IteratorClass:jz","Object",{_g:0,_d:null,_f:null,_e:null,_c:null,___3__worksheet:null,___4__this:null,init:function(a){$.ig.$op.init.call(this);this._g=a},_h:function(){this._g=-1;if(this._f!=null){this._f.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._g>=0){switch(this._g){case 0:this._g=1;this._f=this._c.mergedCellsRegions().getEnumerator();this._g=2;break;case 2:this._g=1;if(this._f.moveNext()){this._e=this._f.current();if(this.___4__this.f.a.f(this._e._h())){this._d=this._e;this._g=2;return true}this._g=2;break}this._h();break}}}catch(a){__hasError__=true;throw a}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._g==-2){this._g=0;d__=this}else{d__=new $$t.jz(0);d__.___4__this=this.___4__this}d__._c=this.___3__worksheet;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._g){case 1:case 2:this._h();break}},current:function(){return this._d},current1:function(){return this._d},$type:new $.ig.Type("IGExcelSerializationProvider_SelectionWorkbookSaveFilter___GetMergedCells__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$a4.$lr.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$a4.$lr.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("ExcelWorkbookSerializationProvider___GetAllRowsInRange__IteratorClass:jw","Object",{_d:0,_a:null,_g:0,_c:null,___3__rows:null,_h:0,___3__firstRow:0,_i:0,___3__lastRow:0,init:function(a){$.ig.$op.init.call(this);this._d=a},moveNext:function(){while(this._d>=0){switch(this._d){case 0:this._d=-1;
this._g=this._h;this._d=1;break;case 1:this._d=-1;if(this._g<=this._i){this._a=this._c.item(this._g);this._d=2;return true}break;case 2:this._d=-1;this._g++;this._d=1;break}}return false},getEnumerator:function(){var d__;if(this._d==-2){this._d=0;d__=this}else{d__=new $$t.jw(0)}d__._c=this.___3__rows;d__._h=this.___3__firstRow;d__._i=this.___3__lastRow;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){},current:function(){return this._a},current1:function(){return this._a},$type:new $.ig.Type("ExcelWorkbookSerializationProvider___GetAllRowsInRange__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$a4.$ma.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$a4.$ma.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("ExcelWorkbookSerializationProvider_TargetColumnIndexHelper___GetTargetColumnsForSelectedRow__IteratorClass:js","Object",{_h:0,_f:null,_k:$m($$0.$aw.$type,null),_i:0,_g:null,_j:0,_d:null,___3__sourceRow:null,_e:null,___3__targetRow:null,___4__this:null,init:function(a){this._f=new $$t.i;$.ig.$op.init.call(this);this._h=a},_l:function(){this._h=-1;if(this._g!=null){this._g.dispose()}},moveNext:function(){var __hasError__=false;try{while(this._h>=0){switch(this._h){case 0:this._h=-1;this._k=$m($$0.$aw.$type,null);this._i=0;this._h=1;this._g=this.___4__this.g(this._d,this._e).getEnumerator();this._h=2;break;case 2:this._h=1;if(this._g.moveNext()){this._j=this._g.current();if($j(this._k,null)){this._k=$m($$0.$aw.$type,this._i=this._j)}else if(this._j==this._i+1){this._i=this._j}else{this._f=new $$t.i(1,this._k.value(),this._i);this._h=3;return true}this._h=2;break}this._l();if($l(this._k,null)){this._f=new $$t.i(1,this._k.value(),this._i);this._h=4;return true}break;case 3:this._h=1;this._k=$m($$0.$aw.$type,this._i=this._j);this._h=2;break;case 4:this._h=-1;break}}}catch(a){__hasError__=true;throw a}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this._h==-2){this._h=0;d__=this}else{d__=new $$t.js(0);d__.___4__this=this.___4__this}d__._d=this.___3__sourceRow;d__._e=this.___3__targetRow;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this._h){case 1:case 2:case 3:this._l();break}},current:function(){return this._f},current1:function(){return this._f},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_TargetColumnIndexHelper___GetTargetColumnsForSelectedRow__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$t.$i.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$t.$i.$type),$$0.$bu.$type,$$0.$au.$type])},true);$c("ExcelWorkbookSerializationProvider_TargetColumnIndexHelper___GetTargetColumnsForSelectedRowImpl__IteratorClass:jt","Object",{_k:0,_l:0,_m:0,_a:null,_i:null,_j:null,_g:null,_h:null,_n:0,_e:null,___3__sourceRow:null,_f:null,___3__targetRow:null,___4__this:null,init:function(a){$.ig.$op.init.call(this);this._k=a},moveNext:function(){while(this._k>=0){switch(this._k){case 0:{this._k=-1;this._m=-1;var a=$a(this.___4__this.c._ad(),this.___4__this.b.l());this._a=new $$t.jp(this._e,this.___4__this.b,this.___4__this.c.firstColumn(),a);if(!this._a.moveNext()){this._a=null}this._i=this._f._ch(this.___4__this.c.firstColumn(),this.___4__this.c.lastColumn(),false).getEnumerator();if(!this._i.moveNext()){this._i=null}this._j=null;this._g=null;if(this.___4__this.d){this._j=new $$t.jq(this._f.worksheet(),1);if(!this._j.moveNext()){this._j=null}this._g=new $$t.jq(this._e.worksheet(),a);if(!this._g.moveNext()){this._g=null}}this._h=null;if(this.___4__this.e){this._h=new $$t.jr(this.___4__this.i(this._e),this.___4__this.b.l(),a);if(!this._h.moveNext()){this._h=null}}this._k=1;break}case 1:this._k=-1;if(true){this._n=2147483647;while(this._a!=null){if(this._a.current()>this._m){this._n=this._a.current();{this._k=3;break}}if(!this._a.moveNext()){this._a=null}}while(this._i!=null){if(this._i.current().r()>this._m){if(this._i.current().r()<this._n){this._n=this._i.current().r()}{this._k=3;break}}var b=this._i.current();if(!this._i.moveNext()){this._i=null}b.u()}if(this.___4__this.d){var c=$$t.$ju.j(this._m,this._j,this._n);this._j=c.p1;this._n=c.p2;var d=$$t.$ju.j(this._m,this._g,this._n);this._g=d.p1;this._n=d.p2}if(this._h!=null){var e=$$t.$ju.j(this._m,this._h,this._n);this._h=e.p1;this._n=e.p2}if(this._n==2147483647){this._k=3;break}this._l=this._n;this._k=2;return true}this._k=3;break;case 2:this._k=-1;this._m=this._n;this._k=1;break;case 3:this._k=-1;break}}return false},getEnumerator:function(){var d__;if(this._k==-2){this._k=0;d__=this}else{d__=new $$t.jt(0);d__.___4__this=this.___4__this}d__._e=this.___3__sourceRow;d__._f=this.___3__targetRow;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){},current:function(){return this._l},current1:function(){return this._l},$type:new $.ig.Type("ExcelWorkbookSerializationProvider_TargetColumnIndexHelper___GetTargetColumnsForSelectedRowImpl__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$0.$aw.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$0.$aw.$type),$$0.$bu.$type,$$0.$au.$type])},true);$$t.$b.f=null;$$t.$b.a=null;$$t.$i._d=null;$$t.$i._e=null;$$t.$nx._o=null;$$t.$nx._ai=$$4.$u.$type.specialize($$a4.$hs.$type,$$a4.$aee.$type);$$t.$nx._ah=$$4.$u.$type.specialize($$a4.$h8.$type,$$a4.$aee.$type);$$t.$b6.bk=false;$$t.$b6.bj=new $$a4.ah($$a.$ax.u(255,130,130,130));$$t.$b6.bi=new Array(0);$$t.$b6.bo=$m($$t.$hy.$type,null);if($$t.$b6.staticInit&&!$$t.$b6.jsSpreadsheetMenuBuilderStaticInitCalled){$$t.$b6.staticInit();$$t.$b6.jsSpreadsheetMenuBuilderStaticInitCalled=true}$$t.$d1.empty=new $$t.d1;$$t.d1.empty=$$t.$d1.empty;if($$t.$d1._staticInit&&!$$t.$d1.spreadsheetCellRangeStaticInitCalled){$$t.$d1._staticInit();$$t.$d1.spreadsheetCellRangeStaticInitCalled=true}$$t.$ip.f=$$a.$ae.empty();$$t.$dy.ce=null;$$t.$dy.cf=null;$$t.$dy.cd=null;$$t.$dy.cg=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;$$t.$dy.a=$$t.$dy.b();$$t.$dy.bq=$$t.$dy.bs();$$t.$dy.d6=$$t.$oh.$type.specialize($$t.$d1.$type);$$t.$dy.d5=$$t.$ok.$type.specialize($$t.$d1.$type);$$t.$dy.d8=$$t.$oh.$type.specialize($$a4.$lq.$type);$$t.$dy.d7=$$t.$oh.$type.specialize($$t.$ip.$type);$$t.$dy.c2=$m($$0.$aq.$type,null);$$t.$dy.ax=new $$a4.ah($$a.$ax.u(0,255,255,255));$$t.$dy.dx=new $$8.l("\\(_\\w\\)",0);$$t.$dy.bw=new $$4.x($$0.$aw.$type,1,[160,180,200,220,240,280,320,360,400,440,480,520,560,720,960,1440]);$$t.$dy.bo=null;$$t.$dy.bp=null;$$t.$dy.bn=$$t.$dy.br();$$t.$dy.d4=$$6.$w.a($$a4.$cd.$type,$$0.$ai.$type.specialize($$0.$aw.$type),-1,$m($$0.$aw.$type,null));$$t.$dy.dy=new $$8.l("\u200e",0);$$t.$dy.dz=null;$$t.$ce.a=new $$a4.hj(new $$a4.ah($$a.$ax.u(102,0,0,0)));$$t.$ce.b=new $$a4.hj(new $$a4.ah($$a.$ax.u(51,0,0,0)));$$t.$ce.c=new $$a4.hj(new $$a4.ah($$a.$ax.u(102,255,255,255)));$$t.$ce.d=new $$a4.hj(new $$a4.ah($$a.$ax.u(51,255,255,255)));if($$t.$ce.staticInit&&!$$t.$ce.shapeGeometryStaticInitCalled){$$t.$ce.staticInit();$$t.$ce.shapeGeometryStaticInitCalled=true}$$t.$cq._ai=new $$t.m;$$t.$cy.ch=new $$t.m;$$t.$jb.ax=$$a.$ax.u(255,243,243,243);$$t.$jb.an="iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAJkSURBVFhH7ZdbbuMwDEXtPGYnCdBk9r+SSQoEyEby8ugoPi7r2pZbDOYrFxBEXVK8FJ3Kbt00TTUXxNZ1Xd3v92q5XFaPxyPzi8Wi44yZi0U7T8IiTYwgYD3EgbkHm9WBGIONGHMUw6YjciDaYygWYNJ+MlouRw7aHwHHsDNjKD4CEiBEIbfbLScV/cLwEWPRJXFQjCBZPA2JEdFWCE7bePaW8K2/AkDS0+nUXJJgUnmSSfjXalVtt9t6zqkjZkd7GgQQp/F2ABtO8TknF58KsBv8wACJhpJ9/jk+sWxbD3wMPJb4u2GO+VjnAgzgNMCTuAbRLuFyueT4VXosDGw5hgfLa8QtAOSq2hMQIOcM9+dw+NjQgj373a6+Xq/V+Xxu7knATrKHDm02m3q9XmfOXAtbkquBaE9vlbFafDFmCAgg7h4GuKV1FGcQk3KV/85Ngo+YMVjsIFpBBnnQzUNCEjFEtB1w2mMw6RDYp98caH+5ByAPx2OPTQnS2L291Vy5+ImLIDF+7OP7+xc/+L3fd3oW2pXrBhyEkCkOODeNYapD8rEDoMs4tjFiTswYOPnQ/ukj/Qe8CngV8CqgK6B/I/5rxOxRqyvAWy7fz2kmJI7MpY0MXq3Ex+EHSfRz8WQu7eWTLd62ovbzOgunGScvHu581v7HA8fHBdD2fT/lx0cR2HDosEannT/eejpjoFWbHGjjK/nNAaetXta2A4wIeYKiDUzM6cCUvx8r4BjFTzKS50qTbZw2ycGU30cAx5pZYHcFRIfrPv8TjOVynXumAxJ4MtbagLUxAF/J7zrmBE/NqvoLHktNAmgD4tsAAAAASUVORK5CYIIbbIIH6cxJOwAAAABJRU5ErkJggg==";$$t.$jb.ao=" ";$$t.$c5._e={};$$t.$c5._d={};$$t.$dm._eb=0;$$t.$aa.c=window&&(window.navigator.userAgent.indexOf("MSIE")>-1||!!window.navigator.userAgent.match(/trident/i));$$t.$aa.a=window&&window.navigator.userAgent.indexOf("Edge")>-1;$$t.$aa.b=window&&window.mozInnerScreenX!==undefined;$$t.$aa.l=$$t.$aa.c?"textContent":"value";$$t.$dt.ae=new $$t.m;$$t.$dw.bk=$$a.$at.create("rgba(0,0,0,0)");if($$t.$dz._staticInit&&!$$t.$dz.spreadsheetCellStaticInitCalled){$$t.$dz._staticInit();$$t.$dz.spreadsheetCellStaticInitCalled=true}$$t.$d4.b=$$t.$d3.b();$$t.$d9.c=new $$t.on(0);$$t.$ep.g=new $$t.ep(null);$$t.$eq.ae=true;$$t.$eq.ab=false;$$t.$eq.b=["0","1","2","3","4","5","6","7","8","9"];$$t.$eq.af=null;$$t.$gh.a=null;$$t.$gh.i=" ";
$$t.$go.d=function(a){return Math.abs(a)};$$t.$go.u=function(a){return Math.sqrt(a)};$$t.$go.w=function(a){return a};$$t.$go.g=function(a,b){return $$t.$go.a(Math.atan2(b,a))};$$t.$go.i=function(a,b){return a*Math.cos($$t.$go.b(b))};$$t.$go.n=function(a,b){return a>b?a:b};$$t.$go.o=function(a,b){return a<b?a:b};$$t.$go.t=function(a,b){return a*Math.sin($$t.$go.b(b))};$$t.$go.v=function(a,b){return a*Math.tan($$t.$go.b(b))};$$t.$go.q=function(a,b,c){return a*b/c};$$t.$go.f=function(a,b,c){return a+b-c};$$t.$go.e=function(a,b,c){return(a+b)/c};$$t.$go.m=function(a,b,c){return a>0?b:c};$$t.$go.h=function(a,b,c){return a*Math.cos(Math.atan2(c,b))};$$t.$go.p=function(a,b,c){return Math.sqrt(a*a+b*b+c*c)};$$t.$go.r=function(a,b,c){return b<a?a:b>c?c:b};$$t.$go.s=function(a,b,c){return a*Math.sin(Math.atan2(c,b))};$$t.$gy._ao=new $$t.gy;$$t.$bi.e=$$6.$t.invariantCultureIgnoreCase;$$t.$g7.a=new $$t.bi(0,"Background",null,null);$$t.$g7.e=new $$t.bi(1,"CellValues",null,["Background","CellBackgrounds","Gridlines"],null,null);$$t.$g7.d=new $$t.bi(0,"CellBorders",null,["Background","CellBackgrounds","Gridlines","CellValues"]);$$t.$g7.f=new $$t.bi(0,"Gridlines",null,["Background","CellBackgrounds"]);$$t.$g7.c=new $$t.bi(0,"CellBackgrounds",["CellValues","Gridlines","Selection"],["Background"]);$$t.$g7.i=new $$t.bi(0,"Selection",null,["Buttons","CellValues","CellBorders","Gridlines"]);$$t.$g7.b=new $$t.bi(0,"Buttons",null,["CellValues","CellBorders","Gridlines"]);$$t.$g7.j=new $$t.bi(0,"Shapes",null,["Selection","Buttons"]);$$t.$g7.h=new $$t.bi(0,"InvalidData",["InteractionOverlay"],["Shapes","Selection","Buttons"]);$$t.$g7.g=new $$t.bi(0,"InteractionOverlay",null,["Shapes","Selection","Buttons"]);$$t.$hd._t=new $$a4.ah($$a.$ax.u(255,255,255,255));$$t.$ik._db=$$t.$ik._dc();$$t.$kd.a=new Array(0);$$t.$jo.k=null;$$t.$j8.a=[String.empty()];$$t.$kz._a=new $$t.kz;$$t.$k1.a=null;$$t.$k1.b=null;if($$t.$k1.staticInit&&!$$t.$k1.defaultSpreadsheetColorsStaticInitCalled){$$t.$k1.staticInit();$$t.$k1.defaultSpreadsheetColorsStaticInitCalled=true}$$t.$an.c6=0;$$t.$mf.n=0;$$t.$mg.q=null;$$t.$av._a=new $$t.av;$$t.$aw.q=0;if($.ig.spreadsheet){$.ig.spreadsheet._isNamespace=true}});