{ "version": 3, "sources": ["../src/controllers/luckysheetConfigsetting.js", "../src/store/index.js", "../src/global/validate.js", "../src/utils/math.js", "../src/config.js", "../src/locale/en.js", "../src/locale/zh.js", "../src/locale/es.js", "../src/locale/zh_tw.js", "../src/locale/locale.js", "../src/controllers/toolbar.js", "../src/controllers/constant.js", "../src/methods/get.js", "../src/methods/set.js", "../src/global/browser.js", "../node_modules/pako/lib/utils/common.js", "../node_modules/pako/lib/zlib/trees.js", "../node_modules/pako/lib/zlib/adler32.js", "../node_modules/pako/lib/zlib/crc32.js", "../node_modules/pako/lib/zlib/messages.js", "../node_modules/pako/lib/zlib/deflate.js", "../node_modules/pako/lib/utils/strings.js", "../node_modules/pako/lib/zlib/zstream.js", "../node_modules/pako/lib/deflate.js", "../node_modules/pako/lib/zlib/inffast.js", "../node_modules/pako/lib/zlib/inftrees.js", "../node_modules/pako/lib/zlib/inflate.js", "../node_modules/pako/lib/zlib/constants.js", "../node_modules/pako/lib/zlib/gzheader.js", "../node_modules/pako/lib/inflate.js", "../node_modules/pako/index.js", "../src/global/loading.js", "../src/global/editor.js", "../src/global/dynamicArray.js", "../src/global/cursorPos.js", "../src/controllers/inlineString.js", "../src/global/getdata.js", "../src/controllers/sheetSearch.js", "../src/global/location.js", "../src/global/getRowlen.js", "../src/global/rhchInit.js", "../node_modules/dayjs/dayjs.min.js", "../src/global/datecontroll.js", "../node_modules/numeral/numeral.js", "../src/global/format.js", "../src/global/setdata.js", "../src/global/count.js", "../src/controllers/sheetMove.js", "../src/controllers/alternateformat.js", "../src/global/json.js", "../src/controllers/filter.js", "../src/controllers/imageCtrl.js", "../src/controllers/dataVerificationCtrl.js", "../src/global/extend.js", "../src/global/createsheet.js", "../src/global/method.js", "../src/controllers/postil.js", "../src/global/border.js", "../src/controllers/dropCell.js", "../src/controllers/freezen.js", "../src/controllers/resize.js", "../src/controllers/protection.js", "../src/global/sort.js", "../src/global/array.js", "../src/global/analysis.js", "../src/controllers/pivotTable.js", "../src/controllers/sparkline.js", "../src/global/draw.js", "../src/controllers/hyperlinkCtrl.js", "../src/global/refresh.js", "../src/controllers/imageUpdateCtrl.js", "../src/controllers/server.js", "../src/global/tooltip.js", "../src/controllers/conditionformat.js", "../src/controllers/selection.js", "../src/global/cleargridelement.js", "../src/global/createdom.js", "../src/utils/chartUtil.js", "../src/global/func_methods.js", "../src/function/matrix_methods.js", "../src/function/func.js", "../src/expendPlugins/chart/plugin.js", "../src/controllers/zoom.js", "../src/controllers/sheetmanage.js", "../src/global/formula.js", "../src/controllers/controlHistory.js", "../node_modules/flatpickr/dist/esm/types/options.js", "../node_modules/flatpickr/dist/esm/l10n/default.js", "../node_modules/flatpickr/dist/esm/utils/index.js", "../node_modules/flatpickr/dist/esm/utils/dom.js", "../node_modules/flatpickr/dist/esm/utils/formatting.js", "../node_modules/flatpickr/dist/esm/utils/dates.js", "../node_modules/flatpickr/dist/esm/utils/polyfills.js", "../node_modules/flatpickr/dist/esm/index.js", "../src/controllers/cellDatePickerCtrl.js", "../src/controllers/updateCell.js", "../node_modules/escape-html/index.js", "../src/controllers/searchReplace.js", "../src/global/api.js", "../src/controllers/select.js", "../src/controllers/moreFormat.js", "../src/controllers/locationCell.js", "../src/controllers/ifFormulaGenerator.js", "../src/controllers/insertFormula.js", "../src/controllers/menuButton.js", "../src/utils/util.js", "../src/controllers/mobile.js", "../src/controllers/splitColumn.js", "../src/controllers/cellFormat.js", "../src/global/scroll.js", "../src/expendPlugins/exportXlsx/plugin.js", "../src/controllers/handler.js", "../src/controllers/matrixOperation.js", "../src/controllers/sheetBar.js", "../src/controllers/formulaBar.js", "../src/controllers/rowColumnOperation.js", "../src/controllers/keyboard.js", "../src/controllers/orderBy.js", "../src/expendPlugins/print/print.js", "../src/expendPlugins/print/plugin.js", "../src/controllers/expendPlugins.js", "../src/demoData/getTargetData.js", "../src/function/functionImplementation.js", "../src/function/functionListDescriptor.js", "../src/function/getLocalizedFunctionList.js", "../src/function/functionlist.js", "../node_modules/flatpickr/dist/l10n/zh.js", "../src/controllers/listener.js", "../src/demoData/chat.js", "../src/core.js", "../src/utils/polyfill.js", "../src/index.js"], "sourcesContent": ["const luckysheetConfigsetting = {\r\n autoFormatw: false,\r\n accuracy: undefined,\r\n total: 0,\r\n\r\n allowCopy: true,\r\n showtoolbar: true,\r\n showinfobar: true,\r\n showsheetbar: true,\r\n showstatisticBar: true,\r\n pointEdit: false,\r\n pointEditUpdate: null,\r\n pointEditZoom: 1,\r\n\r\n userInfo: false,\r\n userMenuItem: [],\r\n myFolderUrl: null,\r\n functionButton: null,\r\n\r\n showConfigWindowResize: true,\r\n enableAddRow: true,\r\n addRowCount: 100,\r\n enableAddBackTop: true,\r\n enablePage: true,\r\n pageInfo: null,\r\n\r\n\r\n editMode: false,\r\n beforeCreateDom: null,\r\n workbookCreateBefore: null,\r\n workbookCreateAfter: null,\r\n remoteFunction: null,\r\n fireMousedown: null,\r\n plugins:[],\r\n forceCalculation:false,//\u5F3A\u5236\u5237\u65B0\u516C\u5F0F\uFF0C\u516C\u5F0F\u8F83\u591A\u4F1A\u6709\u6027\u80FD\u95EE\u9898\uFF0C\u614E\u7528\r\n\r\n defaultColWidth:73,\r\n defaultRowHeight:19,\r\n\r\n defaultTextColor: '#000',\r\n defaultCellColor: '#fff',\r\n}\r\n\r\nexport default luckysheetConfigsetting;\r\n", "const Store = {\r\n container: null, \r\n loadingObj:{},\r\n luckysheetfile: null, \r\n defaultcolumnNum: 60, \r\n defaultrowNum: 84, \r\n fullscreenmode: true,\r\n devicePixelRatio: 1,\r\n\r\n currentSheetIndex: 0,\r\n calculateSheetIndex: 0,\r\n\tflowdata: [],\r\n config: {},\r\n\r\n visibledatarow: [],\r\n visibledatacolumn: [],\r\n ch_width: 0,\r\n rh_height: 0,\r\n\r\n cellmainWidth: 0,\r\n cellmainHeight: 0,\r\n toolbarHeight: 0,\r\n infobarHeight: 0,\r\n calculatebarHeight: 0,\r\n rowHeaderWidth: 46,\r\n columnHeaderHeight: 20,\r\n cellMainSrollBarSize: 12,\r\n sheetBarHeight: 31,\r\n statisticBarHeight: 23,\r\n luckysheetTableContentHW: [0, 0], \r\n\r\n defaultcollen: 73,\r\n defaultrowlen: 19,\r\n\r\n jfcountfuncTimeout: null, \r\n jfautoscrollTimeout: null,\r\n\r\n luckysheet_select_status: false,\r\n luckysheet_select_save: [{ \"row\": [0, 0], \"column\": [0, 0] }],\r\n luckysheet_selection_range: [],\r\n\r\n luckysheet_copy_save: {}, //\u590D\u5236\u7C98\u8D34\r\n luckysheet_paste_iscut: false,\r\n\r\n filterchage: true, //\u7B5B\u9009\r\n luckysheet_filter_save: { \"row\": [], \"column\": [] },\r\n\r\n luckysheet_sheet_move_status: false,\r\n luckysheet_sheet_move_data: [],\r\n luckysheet_scroll_status: false,\r\n\r\n luckysheetisrefreshdetail: true,\r\n luckysheetisrefreshtheme: true,\r\n luckysheetcurrentisPivotTable: false,\r\n\r\n luckysheet_rows_selected_status: false, //\u884C\u5217\u6807\u9898\u76F8\u5173\u53C2\r\n luckysheet_cols_selected_status: false, \r\n luckysheet_rows_change_size: false,\r\n luckysheet_rows_change_size_start: [],\r\n luckysheet_cols_change_size: false,\r\n luckysheet_cols_change_size_start: [],\r\n luckysheet_cols_dbclick_timeout: null,\r\n luckysheet_cols_dbclick_times: 0,\r\n\r\n luckysheetCellUpdate: [],\r\n \r\n luckysheet_shiftpositon: null,\r\n\r\n iscopyself: true,\r\n\r\n orderbyindex: 0, //\u6392\u5E8F\u4E0B\u6807\r\n\r\n luckysheet_model_move_state: false, //\u6A21\u6001\u6846\u62D6\u52A8\r\n luckysheet_model_xy: [0, 0],\r\n luckysheet_model_move_obj: null,\r\n\r\n luckysheet_cell_selected_move: false, //\u9009\u533A\u62D6\u52A8\u66FF\u6362\r\n luckysheet_cell_selected_move_index: [],\r\n\r\n luckysheet_cell_selected_extend: false, //\u9009\u533A\u4E0B\u62C9\r\n luckysheet_cell_selected_extend_index: [],\r\n luckysheet_cell_selected_extend_time: null,\r\n\r\n clearjfundo: true,\r\n jfundo: [],\r\n jfredo: [],\r\n lang: 'en', //language\r\n createChart: '',\r\n highlightChart: '',\r\n zIndex: 15,\r\n chartparam: {\r\n luckysheetCurrentChart: null, //current chart_id\r\n luckysheetCurrentChartActive: false,\r\n luckysheetCurrentChartMove: null, // Debounce state\r\n luckysheetCurrentChartMoveTimeout: null,//\u62D6\u52A8\u56FE\u8868\u6846\u7684\u8282\u6D41\u5B9A\u65F6\u5668\r\n luckysheetCurrentChartMoveObj: null, //chart DOM object\r\n luckysheetCurrentChartMoveXy: null, //\u4E0A\u4E00\u6B21\u64CD\u4F5C\u7ED3\u675F\u7684\u56FE\u8868\u4FE1\u606F\uFF0Cx,y: chart\u6846\u4F4D\u7F6E\uFF0CscrollLeft1,scrollTop1: \u6EDA\u52A8\u6761\u4F4D\u7F6E\r\n luckysheetCurrentChartMoveWinH: null, //\u5DE6\u53F3\u6EDA\u52A8\u6761\u6ED1\u52A8\u8DDD\u79BB\r\n luckysheetCurrentChartMoveWinW: null, //\u4E0A\u4E0B\u6EDA\u52A8\u6761\u6ED1\u52A8\u8DDD\u79BB\r\n luckysheetCurrentChartResize: null,\r\n luckysheetCurrentChartResizeObj: null,\r\n luckysheetCurrentChartResizeXy: null,\r\n luckysheetCurrentChartResizeWinH: null,\r\n luckysheetCurrentChartResizeWinW: null,\r\n luckysheetInsertChartTosheetChange: true, // \u6B63\u5728\u6267\u884C\u64A4\u9500\r\n luckysheetCurrentChartZIndexRank : 100,\r\n luckysheet_chart_redo_click:false, //\u64A4\u9500\u91CD\u505A\u65F6\u6807\u8BC6\r\n luckysheetCurrentChartMaxState: false, //\u56FE\u8868\u5168\u5C4F\u72B6\u6001\r\n jfrefreshchartall: '',\r\n changeChartCellData: '',\r\n renderChart: '',\r\n getChartJson: ''\r\n },\r\n functionList:null, //function list explanation\r\n luckysheet_function:null,\r\n chart_selection: {},\r\n currentChart: '',\r\n scrollRefreshSwitch:true,\r\n\r\n measureTextCache:{},\r\n measureTextCellInfoCache:{},\r\n measureTextCacheTimeOut:null,\r\n cellOverflowMapCache:{},\r\n\r\n zoomRatio:1,\r\n\r\n visibledatacolumn_unique:null,\r\n visibledatarow_unique:null,\r\n\r\n showGridLines:true,\r\n\r\n toobarObject: {}, //toolbar constant\r\n inlineStringEditCache:null,\r\n inlineStringEditRange:null,\r\n\r\n fontList:[],\r\n defaultFontSize: 10,\r\n\r\n currentSheetView:\"viewNormal\",\r\n\r\n // cooperative editing\r\n cooperativeEdit:{\r\n usernameTimeout:{\r\n\r\n },\r\n changeCollaborationSize:[], //\u6539\u53D8\u884C\u9AD8\u6216\u8005\u5217\u5BBD\u65F6\uFF0C\u534F\u540C\u63D0\u793A\u6846\u9700\u8981\u8DDF\u968F\u6539\u53D8\u6240\u9700\u6570\u636E\r\n allDataColumnlen:[],//\u5217\u5BBD\u53D1\u751F\u8FC7\u6539\u53D8\u7684\u5217\r\n merge_range:{},//\u5408\u5E76\u65F6\u5355\u5143\u683C\u4FE1\u606F\r\n checkoutData:[],//\u5207\u6362\u8868\u683C\u9875\u65F6\u6240\u9700\u6570\u636E\r\n },\r\n\r\n // Resources that currently need to be loaded asynchronously, especially plugins. 'Core' marks the core rendering process.\r\n asyncLoad:['core'],\r\n // \u9ED8\u8BA4\u5355\u5143\u683C\r\n defaultCell: {\r\n bg: null,\r\n bl: 0,\r\n ct: {fa: \"General\", t: \"n\"},\r\n fc: \"rgb(51, 51, 51)\",\r\n ff: 0,\r\n fs: 11,\r\n ht: 1,\r\n it: 0,\r\n vt: 1,\r\n m: '',\r\n v: ''\r\n },\r\n conditionFormatCells: {}, // \u6761\u4EF6\u683C\u5F0F\u9AD8\u4EAE\u7684\u5355\u5143\u683C\r\n\r\n}\r\n\r\nexport default Store;", "import luckysheetConfigsetting from '../controllers/luckysheetConfigsetting';\r\nimport Store from '../store';\r\n\r\nexport const error = {\r\n v: \"#VALUE!\", //\u9519\u8BEF\u7684\u53C2\u6570\u6216\u8FD0\u7B97\u7B26\r\n n: \"#NAME?\", //\u516C\u5F0F\u540D\u79F0\u9519\u8BEF\r\n na: \"#N/A\", //\u51FD\u6570\u6216\u516C\u5F0F\u4E2D\u6CA1\u6709\u53EF\u7528\u6570\u503C\r\n r: \"#REF!\", //\u5220\u9664\u4E86\u7531\u5176\u4ED6\u516C\u5F0F\u5F15\u7528\u7684\u5355\u5143\u683C\r\n d: \"#DIV/0!\", //\u9664\u6570\u662F0\u6216\u7A7A\u5355\u5143\u683C\r\n nm: \"#NUM!\", //\u5F53\u516C\u5F0F\u6216\u51FD\u6570\u4E2D\u67D0\u4E2A\u6570\u5B57\u6709\u95EE\u9898\u65F6\r\n nl: \"#NULL!\", //\u4EA4\u53C9\u8FD0\u7B97\u7B26\uFF08\u7A7A\u683C\uFF09\u4F7F\u7528\u4E0D\u6B63\u786E\r\n sp: \"#SPILL!\" //\u6570\u7EC4\u8303\u56F4\u6709\u5176\u5B83\u503C\r\n}\r\n\r\n//\u662F\u5426\u662F\u7A7A\u503C\r\nfunction isRealNull(val) {\r\n if(val == null || val.toString().replace(/\\s/g, \"\") == \"\"){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n}\r\n\r\n//\u662F\u5426\u662F\u7EAF\u6570\u5B57\r\nfunction isRealNum(val) {\r\n if(val == null || val.toString().replace(/\\s/g, \"\") === \"\"){\r\n return false;\r\n }\r\n\r\n if(typeof val == \"boolean\"){\r\n return false;\r\n }\r\n\r\n if(!isNaN(val)){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n}\r\n\r\n//\u662F\u5426\u662F\u9519\u8BEF\u7C7B\u578B\r\nfunction valueIsError(value) {\r\n let isError = false;\r\n\r\n for(let x in error){\r\n if(value == error[x]){\r\n isError = true;\r\n break;\r\n }\r\n }\r\n\r\n return isError;\r\n}\r\n\r\n//\u662F\u5426\u6709\u4E2D\u6587\r\nfunction hasChinaword(s) {\r\n let patrn = /[\\u4E00-\\u9FA5]|[\\uFE30-\\uFFA0]/gi;\r\n \r\n if (!patrn.exec(s)) {\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n}\r\n\r\n//\u662F\u5426\u4E3A\u975E\u7F16\u8F91\u6A21\u5F0F\r\nfunction isEditMode() {\r\n if(luckysheetConfigsetting.editMode){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n}\r\n\r\n/**\r\n * @description: \u68C0\u67E5\u662F\u5426\u5141\u8BB8\u524D\u53F0\u8FDB\u884C\u8868\u683C\u7F16\u8F91\r\n * @param {*}\r\n * @return {Boolean} true:\u5141\u8BB8\u7F16\u8F91 fasle:\u4E0D\u5141\u8BB8\r\n */\r\nfunction checkIsAllowEdit(){\r\n if (Store.allowEdit) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n}\r\n\r\n//\u8303\u56F4\u662F\u5426\u53EA\u5305\u542B\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\r\nfunction hasPartMC(cfg, r1, r2, c1, c2) {\r\n let hasPartMC = false;\r\n\r\n for(let x in Store.config[\"merge\"]){\r\n let mc = cfg[\"merge\"][x];\r\n\r\n if(r1 < mc.r){\r\n if(r2 >= mc.r && r2 < (mc.r + mc.rs - 1)){\r\n if(c1 >= mc.c && c1 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c2 >= mc.c && c2 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 < mc.c && c2 > (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n }\r\n else if(r2 >= mc.r && r2 == (mc.r + mc.rs - 1)){\r\n if(c1 > mc.c && c1 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c2 > mc.c && c2 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 == mc.c && c2 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 > mc.c && c2 == (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n }\r\n else if(r2 > (mc.r + mc.rs - 1)){\r\n if(c1 > mc.c && c1 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c2 >= mc.c && c2 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 == mc.c && c2 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 > mc.c && c2 == (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n }\r\n }\r\n else if(r1 == mc.r){\r\n if(r2 < (mc.r + mc.rs - 1)){\r\n if(c1 >= mc.c && c1 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c2 >= mc.c && c2 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 < mc.c && c2 > (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n }\r\n else if(r2 >= (mc.r + mc.rs - 1)){\r\n if(c1 > mc.c && c1 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c2 >= mc.c && c2 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 == mc.c && c2 < (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 > mc.c && c2 == (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n }\r\n }\r\n else if(r1 <= (mc.r + mc.rs - 1)){\r\n if(c1 >= mc.c && c1 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c2 >= mc.c && c2 <= (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n else if(c1 < mc.c && c2 > (mc.c + mc.cs - 1)){\r\n hasPartMC = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return hasPartMC;\r\n}\r\n\r\n//\u83B7\u53D6\u5355\u4E2A\u5B57\u7B26\u7684\u5B57\u8282\u6570\r\nfunction checkWordByteLength(value) {\r\n return Math.ceil(value.charCodeAt().toString(2).length / 8);\r\n }\r\n \r\n\r\nexport {\r\n isRealNull,\r\n isRealNum,\r\n valueIsError,\r\n hasChinaword,\r\n isEditMode,\r\n checkIsAllowEdit,\r\n hasPartMC,\r\n checkWordByteLength\r\n}", "import { isRealNum } from '../global/validate';\r\n\r\n/*\r\n * \u5224\u65ADobj\u662F\u5426\u4E3A\u4E00\u4E2A\u6574\u6570\r\n */\r\nfunction isInteger(obj) {\r\n return Math.floor(obj) === obj;\r\n}\r\n\r\n/*\r\n * \u5C06\u4E00\u4E2A\u6D6E\u70B9\u6570\u8F6C\u6210\u6574\u6570\uFF0C\u8FD4\u56DE\u6574\u6570\u548C\u500D\u6570\u3002\u5982 3.14 >> 314\uFF0C\u500D\u6570\u662F 100\r\n * @param floatNum {number} \u5C0F\u6570\r\n * @return {object}\r\n * {times:100, num: 314}\r\n */\r\nfunction toInteger(floatNum) {\r\n var ret = { times: 1, num: 0 };\r\n\r\n if (isInteger(floatNum)) {\r\n ret.num = floatNum;\r\n return ret;\r\n }\r\n\r\n var strfi = floatNum + '';\r\n var dotPos = strfi.indexOf('.');\r\n var len = strfi.substr(dotPos + 1).length;\r\n var times = Math.pow(10, len);\r\n var intNum = parseInt(floatNum * times + 0.5, 10);\r\n\r\n ret.times = times;\r\n ret.num = intNum;\r\n\r\n return ret;\r\n}\r\n\r\n/*\r\n * \u6838\u5FC3\u65B9\u6CD5\uFF0C\u5B9E\u73B0\u52A0\u51CF\u4E58\u9664\u8FD0\u7B97\uFF0C\u786E\u4FDD\u4E0D\u4E22\u5931\u7CBE\u5EA6\r\n * \u601D\u8DEF\uFF1A\u628A\u5C0F\u6570\u653E\u5927\u4E3A\u6574\u6570\uFF08\u4E58\uFF09\uFF0C\u8FDB\u884C\u7B97\u672F\u8FD0\u7B97\uFF0C\u518D\u7F29\u5C0F\u4E3A\u5C0F\u6570\uFF08\u9664\uFF09\r\n *\r\n * @param a {number} \u8FD0\u7B97\u65701\r\n * @param b {number} \u8FD0\u7B97\u65702\r\n * @param digits {number} \u7CBE\u5EA6\uFF0C\u4FDD\u7559\u7684\u5C0F\u6570\u70B9\u6570\uFF0C\u6BD4\u5982 2, \u5373\u4FDD\u7559\u4E3A\u4E24\u4F4D\u5C0F\u6570\r\n * @param op {string} \u8FD0\u7B97\u7C7B\u578B\uFF0C\u6709\u52A0\u51CF\u4E58\u9664\uFF08add/subtract/multiply/divide\uFF09\r\n *\r\n */\r\nfunction operation(a, b, op) {\r\n var o1 = toInteger(a);\r\n var o2 = toInteger(b);\r\n var n1 = o1.num;\r\n var n2 = o2.num;\r\n var t1 = o1.times;\r\n var t2 = o2.times;\r\n var max = t1 > t2 ? t1 : t2;\r\n var result = null;\r\n\r\n switch (op) {\r\n case 'add':\r\n if (t1 === t2) { // \u4E24\u4E2A\u5C0F\u6570\u4F4D\u6570\u76F8\u540C\r\n result = n1 + n2;\r\n }\r\n else if (t1 > t2) { // o1 \u5C0F\u6570\u4F4D \u5927\u4E8E o2\r\n result = n1 + n2 * (t1 / t2);\r\n }\r\n else { // o1 \u5C0F\u6570\u4F4D \u5C0F\u4E8E o2\r\n result = n1 * (t2 / t1) + n2;\r\n }\r\n\r\n return result / max;\r\n case 'subtract':\r\n if (t1 === t2) {\r\n result = n1 - n2;\r\n }\r\n else if (t1 > t2) {\r\n result = n1 - n2 * (t1 / t2);\r\n }\r\n else {\r\n result = n1 * (t2 / t1) - n2;\r\n }\r\n\r\n return result / max;\r\n case 'multiply':\r\n result = (n1 * n2) / (t1 * t2);\r\n\r\n return result;\r\n case 'divide':\r\n return result = function () {\r\n var r1 = n1 / n2;\r\n var r2 = t2 / t1;\r\n return operation(r1, r2, 'multiply');\r\n }();\r\n }\r\n}\r\n/**\r\n * \u505A\u5C0F\u6570\u70B9\u7684\u56DB\u820D\u4E94\u5165\u8BA1\u7B97\r\n * @param {*} num\r\n * @param {*} precision\r\n */\r\nfunction fixed(num, precision) {\r\n if (!precision) {\r\n precision = 2;\r\n }\r\n if (!isRealNum(num)) return num;\r\n let s = num.toFixed(precision);\r\n let index = s.indexOf('.');\r\n let prefix = s.substring(0, index);\r\n let suffix = s.substring(index + 1, s.length);\r\n if (suffix) {\r\n for (let i = suffix.length - 1; i != 0; i--) {\r\n //\u6700\u672B\u4F4D\u4E0D\u4E3A0\uFF0C\u76F4\u63A5break;\r\n if (suffix.charAt(i) != '0' && i == suffix.length - 1) {\r\n break;\r\n } else {\r\n suffix = suffix.substring(0, i);\r\n }\r\n }\r\n }\r\n return Number(prefix + '.' + suffix);\r\n}\r\n\r\n\r\n/**\r\n * Calculation +-/* Solve the problem of js accuracy\r\n */\r\nNumber.prototype.add = function (value) {\r\n let number = parseFloat(value);\r\n if (typeof number !== 'number' || Number.isNaN(number)) {\r\n throw new Error('\u8BF7\u8F93\u5165\u6570\u5B57\u6216\u8005\u6570\u5B57\u5B57\u7B26\u4E32\uFF5E');\r\n };\r\n return operation(this, number, 'add');\r\n};\r\nNumber.prototype.subtract = function (value) {\r\n let number = parseFloat(value);\r\n if (typeof number !== 'number' || Number.isNaN(number)) {\r\n throw new Error('\u8BF7\u8F93\u5165\u6570\u5B57\u6216\u8005\u6570\u5B57\u5B57\u7B26\u4E32\uFF5E');\r\n }\r\n return operation(this, number, 'subtract');\r\n};\r\nNumber.prototype.multiply = function (value) {\r\n let number = parseFloat(value);\r\n if (typeof number !== 'number' || Number.isNaN(number)) {\r\n throw new Error('\u8BF7\u8F93\u5165\u6570\u5B57\u6216\u8005\u6570\u5B57\u5B57\u7B26\u4E32\uFF5E');\r\n }\r\n return operation(this, number, 'multiply');\r\n};\r\nNumber.prototype.divide = function (value) {\r\n let number = parseFloat(value);\r\n if (typeof number !== 'number' || Number.isNaN(number)) {\r\n throw new Error('\u8BF7\u8F93\u5165\u6570\u5B57\u6216\u8005\u6570\u5B57\u5B57\u7B26\u4E32\uFF5E');\r\n }\r\n return operation(this, number, 'divide');\r\n};\r\nNumber.prototype.tofixed = function (value) {\r\n let precision = parseFloat(value);\r\n if (typeof precision !== 'number' || Number.isNaN(precision)) {\r\n throw new Error('\u8BF7\u8F93\u5165\u6570\u5B57\u6216\u8005\u6570\u5B57\u5B57\u7B26\u4E32\uFF5E');\r\n }\r\n return fixed(this, precision);\r\n};", "/**\r\n * The default luckysheet config object.\r\n */\r\nexport default {\r\n container: \"luckysheet\", //\u5BB9\u5668\u7684ID\r\n loading:{}, //\u81EA\u5B9A\u4E49loading\r\n column: 60, //\u7A7A\u8868\u683C\u9ED8\u8BA4\u7684\u5217\u6570\u91CF\r\n row: 84, //\u7A7A\u8868\u683C\u9ED8\u8BA4\u7684\u884C\u6570\u636E\u91CF\r\n allowCopy: true, //\u662F\u5426\u5141\u8BB8\u62F7\u8D1D\r\n showtoolbar: true, //\u662F\u5426\u7B2C\u4E8C\u5217\u663E\u793A\u5DE5\u5177\u680F\r\n showinfobar: true, //\u662F\u5426\u663E\u793A\u9876\u90E8\u540D\u79F0\u680F\r\n showsheetbar: true, //\u662F\u5426\u663E\u793A\u5E95\u90E8\u8868\u683C\u540D\u79F0\u533A\u57DF\r\n showstatisticBar: true, //\u662F\u5426\u663E\u793A\u5E95\u90E8\u8BA1\u6570\u680F\r\n pointEdit: false, //\u662F\u5426\u662F\u7F16\u8F91\u5668\u63D2\u5165\u8868\u683C\u6A21\u5F0F\r\n pointEditUpdate: null, //\u7F16\u8F91\u5668\u8868\u683C\u66F4\u65B0\u51FD\u6570\r\n pointEditZoom: 1, //\u7F16\u8F91\u5668\u8868\u683C\u7F16\u8F91\u65F6\u7F29\u653E\u6BD4\u4F8B\r\n // menu: \"undo|redo|freezenrow|freezencolumn|download|share|chart|pivot\",\r\n data: [{ \"name\": \"Sheet1\", color: \"\", \"status\": \"1\", \"order\": \"0\", \"data\": [], \"config\": {}, \"index\":0 }, { \"name\": \"Sheet2\", color: \"\", \"status\": \"0\", \"order\": \"1\", \"data\": [], \"config\": {}, \"index\":1 }, { \"name\": \"Sheet3\", color: \"\", \"status\": \"0\", \"order\": \"2\", \"data\": [], \"config\": {}, \"index\":2 }], //\u5BA2\u6237\u7AEFsheet\u6570\u636E[sheet1, sheet2, sheet3]\r\n title: \"Luckysheet Demo\", //\u8868\u683C\u7684\u540D\u79F0\r\n userInfo:false,// \u53F3\u4E0A\u89D2\u7684\u7528\u6237\u4FE1\u606F\u5C55\u793A\u6837\u5F0F\uFF0C\u652F\u6301 1. boolean\u7C7B\u578B\uFF1Afalse:\u4E0D\u5C55\u793A\uFF0Ctrue:\u5C55\u793A\u9ED8\u8BA4 ' rabbit' \uFF0C2. HTML\u6A21\u677F\u5B57\u7B26\u4E32\u6216\u8005\u666E\u901A\u5B57\u7B26\u4E32\uFF0C\u5982\uFF1A' Lucky'\u6216\u8005'\u7528\u6237\u540D'\uFF0C 3. \u5BF9\u8C61\u683C\u5F0F\uFF0C\u8BBE\u7F6E userImage\uFF1A\u7528\u6237\u5934\u50CF\u5730\u5740 \u548C userName\uFF1A\u7528\u6237\u540D 4. \u4E0D\u8BBE\u7F6E\u6216\u8005\u8BBE\u7F6Eundefined\u540C\u8BBE\u7F6Efalse\r\n userMenuItem: [{url:\"www.baidu.com\", \"icon\":'', \"name\":\"\u6211\u7684\u8868\u683C\"}, {url:\"www.baidu.com\", \"icon\":'', \"name\":\"\u9000\u51FA\u767B\u9646\"}], //\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u7528\u6237\u4FE1\u606F\u5F39\u51FA\u7684\u83DC\u5355\r\n myFolderUrl: \"www.baidu.com\", //\u5DE6\u4E0A\u89D2<\u8FD4\u56DE\u6309\u94AE\u7684\u94FE\u63A5\r\n config: {}, //\u8868\u683C\u884C\u9AD8\u3001\u5217\u5BBD\u3001\u5408\u5E76\u5355\u5143\u683C\u3001\u516C\u5F0F\u7B49\u8BBE\u7F6E\r\n fullscreenmode: true, //\u662F\u5426\u5168\u5C4F\u6A21\u5F0F\uFF0C\u975E\u5168\u5C4F\u6A21\u5F0F\u4E0B\uFF0C\u6807\u8BB0\u6846\u4E0D\u4F1A\u5F3A\u5236\u9009\u4E2D\u3002\r\n devicePixelRatio: window.devicePixelRatio, //\u8BBE\u5907\u6BD4\u4F8B\uFF0C\u6BD4\u4F8B\u8D8A\u5927\u8868\u683C\u5206\u6807\u7387\u8D8A\u9AD8\r\n allowEdit: true, //\u662F\u5426\u5141\u8BB8\u524D\u53F0\u7F16\u8F91\r\n loadUrl: \"\", // \u914D\u7F6EloadUrl\u7684\u5730\u5740\uFF0Cluckysheet\u4F1A\u901A\u8FC7ajax\u8BF7\u6C42\u8868\u683C\u6570\u636E\uFF0C\u9ED8\u8BA4\u8F7D\u5165status\u4E3A1\u7684sheet\u6570\u636E\u4E2D\u7684\u6240\u6709data\uFF0C\u5176\u4F59\u7684sheet\u8F7D\u5165\u9664data\u5B57\u6BB5\u5916\u7684\u6240\u6709\u5B57\u6BB5\r\n loadSheetUrl: \"\", //\u914D\u7F6EloadSheetUrl\u7684\u5730\u5740\uFF0C\u53C2\u6570\u4E3AgridKey\uFF08\u8868\u683C\u4E3B\u952E\uFF09 \u548C index\uFF08sheet\u4E3B\u952E\u5408\u96C6\uFF0C\u683C\u5F0F\u4E3A[1,2,3]\uFF09\uFF0C\u8FD4\u56DE\u7684\u6570\u636E\u4E3Asheet\u7684data\u5B57\u6BB5\u6570\u636E\u96C6\u5408\r\n gridKey: \"\", // \u8868\u683C\u552F\u4E00\u6807\u8BC6\u7B26\r\n updateUrl: \"\", //\u8868\u683C\u6570\u636E\u7684\u66F4\u65B0\u5730\u5740\r\n updateImageUrl: \"\", //\u7F29\u7565\u56FE\u7684\u66F4\u65B0\u5730\u5740\r\n allowUpdate: false, //\u662F\u5426\u5141\u8BB8\u7F16\u8F91\u540E\u7684\u540E\u53F0\u66F4\u65B0\r\n functionButton: \"\", //\u53F3\u4E0A\u89D2\u529F\u80FD\u6309\u94AE\uFF0C\u4F8B\u5982' '\r\n showConfigWindowResize: true, //\u56FE\u8868\u548C\u6570\u636E\u900F\u89C6\u8868\u7684\u914D\u7F6E\u4F1A\u5728\u53F3\u4FA7\u5F39\u51FA\uFF0C\u8BBE\u7F6E\u5F39\u51FA\u540E\u8868\u683C\u662F\u5426\u4F1A\u81EA\u52A8\u7F29\u8FDB\r\n enableAddRow: true,//\u5141\u8BB8\u6DFB\u52A0\u884C\r\n enableAddBackTop: true,//\u5141\u8BB8\u56DE\u5230\u9876\u90E8\r\n // enablePage: false,//\u5141\u8BB8\u52A0\u8F7D\u4E0B\u4E00\u9875\r\n autoFormatw: false, //\u81EA\u52A8\u683C\u5F0F\u5316\u8D85\u8FC74\u4F4D\u6570\u7684\u6570\u5B57\u4E3A \u4EBF\u4E07\u683C\u5F0F \u4F8B\uFF1Atrue or \"true\" or \"TRUE\"\r\n accuracy: undefined, //\u8BBE\u7F6E\u4F20\u8F93\u6765\u7684\u6570\u503C\u7684\u7CBE\u786E\u4F4D\u6570\uFF0C\u5C0F\u6570\u70B9\u540En\u4F4D \u4F20\u53C2\u6570\u4E3A\u6570\u5B57\u6216\u6570\u5B57\u5B57\u7B26\u4E32\uFF0C\u4F8B\uFF1A \"0\" \u6216 0\r\n pageInfo:{\r\n 'queryExps':'',\r\n 'reportId':'',\r\n 'fields':'',\r\n 'mobile':'',\r\n 'frezon':'',\r\n 'currentPage':'',\r\n \"totalPage\":10,\r\n \"pageUrl\":\"\",\r\n },\r\n editMode: false, //\u662F\u5426\u4E3A\u7F16\u8F91\u6A21\u5F0F\r\n beforeCreateDom: null,//\u8868\u683C\u521B\u5EFA\u4E4B\u524D\u7684\u65B9\u6CD5\r\n fireMousedown: null, //\u5355\u5143\u683C\u6570\u636E\u4E0B\u94BB\r\n lang: 'en', //language\r\n plugins: [], //plugins, e.g. ['chart']\r\n forceCalculation:false,//\u5F3A\u5236\u5237\u65B0\u516C\u5F0F\uFF0C\u516C\u5F0F\u8F83\u591A\u4F1A\u6709\u6027\u80FD\u95EE\u9898\uFF0C\u614E\u7528\r\n rowHeaderWidth: 46,\r\n columnHeaderHeight: 20,\r\n defaultColWidth:73,\r\n defaultRowHeight:19,\r\n defaultFontSize:10,\r\n limitSheetNameLength:true, //\u662F\u5426\u9650\u5236\u5DE5\u4F5C\u8868\u540D\u7684\u957F\u5EA6\r\n defaultSheetNameMaxLength:31, //\u9ED8\u8BA4\u5DE5\u4F5C\u8868\u540D\u79F0\u7684\u6700\u5927\u957F\u5EA6\r\n sheetFormulaBar:true, //\u662F\u5426\u663E\u793A\u516C\u5F0F\u680F\r\n showtoolbarConfig:{}, //\u81EA\u5B9A\u4E49\u5DE5\u5177\u680F\r\n showsheetbarConfig:{}, //\u81EA\u5B9A\u4E49\u5E95\u90E8sheet\u9875\r\n showstatisticBarConfig:{}, //\u81EA\u5B9A\u4E49\u8BA1\u6570\u680F\r\n cellRightClickConfig:{}, //\u81EA\u5B9A\u4E49\u5355\u5143\u683C\u53F3\u952E\u83DC\u5355\r\n sheetRightClickConfig:{}, //\u81EA\u5B9A\u4E49\u5E95\u90E8sheet\u9875\u53F3\u51FB\u83DC\u5355\r\n imageUpdateMethodConfig:{}, //\u81EA\u5B9A\u4E49\u56FE\u7247\u540C\u6B65\u65B9\u5F0F\r\n}\r\n", "export default {\r\n functionlist: {\r\n SUMIF: {\r\n d: \"Returns a conditional sum across a range.\",\r\n a: \"A conditional sum across a range.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The range which is tested against `criterion`.\",\r\n },\r\n {\r\n name: \"criterion\",\r\n detail: \"The pattern or test to apply to `range`.\",\r\n },\r\n {\r\n name: \"sum_range\",\r\n detail: \"The range to be summed, if different from `range`.\",\r\n },\r\n ],\r\n },\r\n TAN: {\r\n d: \"Returns the tangent of an angle provided in radians.\",\r\n a: \"Tangent of an angle provided in radians.\",\r\n p: [\r\n {\r\n name: \"angle\",\r\n detail: \"The angle to find the tangent of, in radians.\",\r\n },\r\n ],\r\n },\r\n TANH: {\r\n d: \"Returns the hyperbolic tangent of any real number.\",\r\n a: \"Hyperbolic tangent of any real number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"Any real value to calculate the hyperbolic tangent of.\",\r\n },\r\n ],\r\n },\r\n CEILING: {\r\n d: \"Rounds a number up to the nearest integer multiple of specified significance `factor`.\",\r\n a: \"Rounds number up to nearest multiple of a factor.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round up to the nearest integer multiple of `factor`.\",\r\n },\r\n {\r\n name: \"factor\",\r\n detail: \"The number to whose multiples `value` will be rounded.\",\r\n },\r\n ],\r\n },\r\n ATAN: {\r\n d: \"Returns the inverse tangent of a value, in radians.\",\r\n a: \"Inverse tangent of a value, in radians.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the inverse tangent.\",\r\n },\r\n ],\r\n },\r\n ASINH: {\r\n d: \"Returns the inverse hyperbolic sine of a number.\",\r\n a: \"Inverse hyperbolic sine of a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the inverse hyperbolic sine.\",\r\n },\r\n ],\r\n },\r\n ABS: {\r\n d: \"Returns the absolute value of a number.\",\r\n a: \"Absolute value of a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The number of which to return the absolute value.\",\r\n },\r\n ],\r\n },\r\n ACOS: {\r\n d: \"Returns the inverse cosine of a value, in radians.\",\r\n a: \"Inverse cosine of a value, in radians.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"The value for which to calculate the inverse cosine. Must be between `-1` and `1`, inclusive.\",\r\n },\r\n ],\r\n },\r\n ACOSH: {\r\n d: \"Returns the inverse hyperbolic cosine of a number.\",\r\n a: \"Inverse hyperbolic cosine of a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"The value for which to calculate the inverse hyperbolic cosine. Must be greater than or equal to `1`.\",\r\n },\r\n ],\r\n },\r\n MULTINOMIAL: {\r\n d: \"Returns the factorial of the sum of values divided by the product of the values' factorials.\",\r\n a: \"Multinomial distribution function.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider.\",\r\n },\r\n ],\r\n },\r\n ATANH: {\r\n d: \"Returns the inverse hyperbolic tangent of a number.\",\r\n a: \"Inverse hyperbolic tangent of a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"The value for which to calculate the inverse hyperbolic tangent. Must be between -1 and 1, exclusive.\",\r\n },\r\n ],\r\n },\r\n ATAN2: {\r\n d:\r\n \"Returns the angle between the x-axis and a line segment from the origin (0,0) to specified coordinate pair (`x`,`y`), in radians.\",\r\n a: \"Arctangent of a value.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail:\r\n \"The x coordinate of the endpoint of the line segment for which to calculate the angle from the x-axis.\",\r\n },\r\n {\r\n name: \"y\",\r\n detail:\r\n \"The y coordinate of the endpoint of the line segment for which to calculate the angle from the x-axis.\",\r\n },\r\n ],\r\n },\r\n COUNTBLANK: {\r\n d: \"Returns the number of empty values in a list of values and ranges.\",\r\n a: \"Number of empty values.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range in which to count the number of blanks.\",\r\n },\r\n ],\r\n },\r\n COSH: {\r\n d: \"Returns the hyperbolic cosine of any real number.\",\r\n a: \"Hyperbolic cosine of any real number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"Any real value to calculate the hyperbolic cosine of.\",\r\n },\r\n ],\r\n },\r\n INT: {\r\n d: \"Rounds a number down to the nearest integer that is less than or equal to it.\",\r\n a: \"Rounds number down to nearest integer.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round down to the nearest integer.\",\r\n },\r\n ],\r\n },\r\n ISEVEN: {\r\n d: \"Checks whether the provided value is even.\",\r\n a: \"Whether the provided value is even.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as even.\",\r\n },\r\n ],\r\n },\r\n ISODD: {\r\n d: \"Checks whether the provided value is odd.\",\r\n a: \"Whether the provided value is odd.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as odd.\",\r\n },\r\n ],\r\n },\r\n LCM: {\r\n d: \"Returns the least common multiple of one or more integers.\",\r\n a: \"Least common multiple of one or more integers.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail:\r\n \"The first value or range whose factors to consider in a calculation to find the least common multiple.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges whose factors to consider to find the least common multiple.\",\r\n },\r\n ],\r\n },\r\n LN: {\r\n d: \"Returns the logarithm of a number, base e (Euler's number).\",\r\n a: \"The logarithm of a number, base e (euler's number).\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the logarithm, base e.\",\r\n },\r\n ],\r\n },\r\n LOG: {\r\n d: \"Returns the logarithm of a number with respect to a base.\",\r\n a: \"The logarithm of a number with respect to a base.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the logarithm.\",\r\n },\r\n {\r\n name: \"base\",\r\n detail: \"The base to use for calculation of the logarithm.\",\r\n },\r\n ],\r\n },\r\n LOG10: {\r\n d: \"Returns the logarithm of a number, base 10.\",\r\n a: \"The logarithm of a number, base 10.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the logarithm, base 10.\",\r\n },\r\n ],\r\n },\r\n MOD: {\r\n d: \"Returns the result of the modulo operator, the remainder after a division operation.\",\r\n a: \"Modulo (remainder) operator.\",\r\n p: [\r\n {\r\n name: \"dividend\",\r\n detail: \"The number to be divided to find the remainder.\",\r\n },\r\n {\r\n name: \"divisor\",\r\n detail: \"The number to divide by.\",\r\n },\r\n ],\r\n },\r\n MROUND: {\r\n d: \"Rounds one number to the nearest integer multiple of another.\",\r\n a: \"Rounds a number to the nearest integer multiple.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The number to round to the nearest integer multiple of another.\",\r\n },\r\n {\r\n name: \"factor\",\r\n detail: \"The number to whose multiples `value` will be rounded.\",\r\n },\r\n ],\r\n },\r\n ODD: {\r\n d: \"Rounds a number up to the nearest odd integer.\",\r\n a: \"Rounds a number up to the nearest odd integer.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round to the next greatest odd number.\",\r\n },\r\n ],\r\n },\r\n SUMSQ: {\r\n d: \"Returns the sum of the squares of a series of numbers and/or cells.\",\r\n a: \"Sum of squares.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first number or range whose squares to add together.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional numbers or ranges whose squares to add to the square(s) of `value1`.\",\r\n },\r\n ],\r\n },\r\n COMBIN: {\r\n d: \"Returns the number of ways to choose some number of objects from a pool of a given size of objects.\",\r\n a: \"Number of combinations from a set of objects.\",\r\n p: [\r\n {\r\n name: \"n\",\r\n detail: \"The size of the pool of objects to choose from.\",\r\n },\r\n {\r\n name: \"k\",\r\n detail: \"The number of objects to choose.\",\r\n },\r\n ],\r\n },\r\n SUM: {\r\n d: \"Returns the sum of a series of numbers and/or cells.\",\r\n a: \"Sum of a series of numbers and/or cells.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first number or range to add together.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional numbers or ranges to add to `value1`.\",\r\n },\r\n ],\r\n },\r\n SUBTOTAL: {\r\n d: \"Returns a subtotal for a vertical range of cells using a specified aggregation function.\",\r\n a: \"Subtotal for a range using a specific function.\",\r\n p: [\r\n {\r\n name: \"function_code\",\r\n detail: \"The function to use in subtotal aggregation.\",\r\n },\r\n {\r\n name: \"range1\",\r\n detail: \"The first range over which to calculate a subtotal.\",\r\n },\r\n {\r\n name: \"range2\",\r\n detail: \"Additional ranges over which to calculate subtotals.\",\r\n },\r\n ],\r\n },\r\n ASIN: {\r\n d: \"Returns the inverse sine of a value, in radians.\",\r\n a: \"Inverse sine of a value, in radians.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"The value for which to calculate the inverse sine. Must be between `-1` and `1`, inclusive.\",\r\n },\r\n ],\r\n },\r\n COUNTIF: {\r\n d: \"Returns a conditional count across a range.\",\r\n a: \"A conditional count across a range.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The range that is tested against `criterion`.\",\r\n },\r\n {\r\n name: \"criterion\",\r\n detail: \"The pattern or test to apply to `range`.\",\r\n },\r\n ],\r\n },\r\n RADIANS: {\r\n d: \"Converts an angle value in degrees to radians.\",\r\n a: \"Converts an angle value in degrees to radians.\",\r\n p: [\r\n {\r\n name: \"angle\",\r\n detail: \"The angle to convert from degrees to radians.\",\r\n },\r\n ],\r\n },\r\n RAND: {\r\n d: \"Returns a random number between 0 inclusive and 1 exclusive.\",\r\n a: \"A random number between 0 inclusive and 1 exclusive.\",\r\n p: [],\r\n },\r\n COUNTUNIQUE: {\r\n d: \"Counts the number of unique values in a list of specified values and ranges.\",\r\n a: \"Counts number of unique values in a range.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider for uniqueness.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider for uniqueness.\",\r\n },\r\n ],\r\n },\r\n DEGREES: {\r\n d: \"Converts an angle value in radians to degrees.\",\r\n a: \"Converts an angle value in radians to degrees.\",\r\n p: [\r\n {\r\n name: \"angle\",\r\n detail: \"The angle to convert from radians to degrees.\",\r\n },\r\n ],\r\n },\r\n ERFC: {\r\n d: \"Returns the complementary Gauss error function of a value.\",\r\n a: \"Complementary gauss error function of a value.\",\r\n p: [\r\n {\r\n name: \"z\",\r\n detail: \"The number for which to calculate the complementary Gauss error function.\",\r\n },\r\n ],\r\n },\r\n EVEN: {\r\n d: \"Rounds a number up to the nearest even integer.\",\r\n a: \"Rounds a number up to the nearest even integer.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round to the next greatest even number.\",\r\n },\r\n ],\r\n },\r\n EXP: {\r\n d: \"Returns Euler's number, e (~2.718) raised to a power.\",\r\n a: \"Euler's number, e (~2.718) raised to a power.\",\r\n p: [\r\n {\r\n name: \"exponent\",\r\n detail: \"The exponent to raise e to.\",\r\n },\r\n ],\r\n },\r\n FACT: {\r\n d: \"Returns the factorial of a number.\",\r\n a: \"Factorial of a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The number or reference to a number whose factorial will be calculated and returned.\",\r\n },\r\n ],\r\n },\r\n FACTDOUBLE: {\r\n d: 'Returns the \"double factorial\" of a number.',\r\n a: '\"double factorial\" of a number.',\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"The number or reference to a number whose double factorial will be calculated and returned.\",\r\n },\r\n ],\r\n },\r\n PI: {\r\n d: \"Returns the value of Pi to 14 decimal places.\",\r\n a: \"The number pi.\",\r\n p: [],\r\n },\r\n FLOOR: {\r\n d: \"Rounds a number down to the nearest integer multiple of specified significance `factor`.\",\r\n a: \"Rounds number down to nearest multiple of a factor.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round down to the nearest integer multiple of `factor`.\",\r\n },\r\n {\r\n name: \"factor\",\r\n detail: \"The number to whose multiples `value` will be rounded.\",\r\n },\r\n ],\r\n },\r\n GCD: {\r\n d: \"Returns the greatest common divisor of one or more integers.\",\r\n a: \"Greatest common divisor of one or more integers.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail:\r\n \"The first value or range whose factors to consider in a calculation to find the greatest common divisor.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail:\r\n \"Additional values or ranges whose factors to consider to find the greatest common divisor.\",\r\n },\r\n ],\r\n },\r\n RANDBETWEEN: {\r\n d: \"Returns a uniformly random integer between two values, inclusive.\",\r\n a: \"Random integer between two values, inclusive.\",\r\n p: [\r\n {\r\n name: \"low\",\r\n detail: \"The low end of the random range.\",\r\n },\r\n {\r\n name: \"high\",\r\n detail: \"The high end of the random range.\",\r\n },\r\n ],\r\n },\r\n ROUND: {\r\n d: \"Rounds a number to a certain number of decimal places according to standard rules.\",\r\n a: \"Rounds a number according to standard rules.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round to `places` number of places.\",\r\n },\r\n {\r\n name: \"places\",\r\n detail: \"The number of decimal places to which to round.\",\r\n },\r\n ],\r\n },\r\n ROUNDDOWN: {\r\n d:\r\n \"Rounds a number to a certain number of decimal places, always rounding down to the next valid increment.\",\r\n a: \"Rounds down a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round to `places` number of places, always rounding down.\",\r\n },\r\n {\r\n name: \"places\",\r\n detail: \"The number of decimal places to which to round.\",\r\n },\r\n ],\r\n },\r\n ROUNDUP: {\r\n d: \"Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.\",\r\n a: \"Rounds up a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to round to `places` number of places, always rounding up.\",\r\n },\r\n {\r\n name: \"places\",\r\n detail: \"The number of decimal places to which to round.\",\r\n },\r\n ],\r\n },\r\n SERIESSUM: {\r\n d: \"Given parameters `x`, `n`, `m`, and `a`, returns the power series sum a\",\r\n a: \"Sum of a power series.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail:\r\n \"The input to the power series. Varies depending on the type of approximation, may be angle, exponent, or some other value.\",\r\n },\r\n {\r\n name: \"n\",\r\n detail: \"The initial power to which to raise `x` in the power series.\",\r\n },\r\n {\r\n name: \"m\",\r\n detail: \"The additive increment by which to increase `x`.\",\r\n },\r\n {\r\n name: \"a\",\r\n detail: \"The array or range containing the coefficients of the power series.\",\r\n },\r\n ],\r\n },\r\n SIGN: {\r\n d: \"Given an input number, returns `-1` if it is negative, `1` if positive, and `0` if it is zero.\",\r\n a: \"Sign of a provided number (+/-/0).\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value whose sign will be evaluated.\",\r\n },\r\n ],\r\n },\r\n SIN: {\r\n d: \"Returns the sine of an angle provided in radians.\",\r\n a: \"Sine of an angle provided in radians.\",\r\n p: [\r\n {\r\n name: \"angle\",\r\n detail: \"The angle to find the sine of, in radians.\",\r\n },\r\n ],\r\n },\r\n SINH: {\r\n d: \"Returns the hyperbolic sine of any real number.\",\r\n a: \"Hyperbolic sine of any real number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"Any real value to calculate the hyperbolic sine of.\",\r\n },\r\n ],\r\n },\r\n SQRT: {\r\n d: \"Returns the positive square root of a positive number.\",\r\n a: \"Positive square root of a positive number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The number for which to calculate the positive square root.\",\r\n },\r\n ],\r\n },\r\n SQRTPI: {\r\n d: \"Returns the positive square root of the product of Pi and the given positive number.\",\r\n a: \"Square root of the product of pi and number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The number which will be multiplied by Pi and have the product's square root returned\",\r\n },\r\n ],\r\n },\r\n GAMMALN: {\r\n d: \"Returns the logarithm of a specified Gamma function, base e (Euler's number).\",\r\n a: \"Logarithm of gamma function.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"The input to the Gamma function. The natural logarithm of Gamma(`value`) will be returned.\",\r\n },\r\n ],\r\n },\r\n COS: {\r\n d: \"Returns the cosine of an angle provided in radians.\",\r\n a: \"Cosine of an angle provided in radians.\",\r\n p: [\r\n {\r\n name: \"angle\",\r\n detail: \"The angle to find the cosine of, in radians.\",\r\n },\r\n ],\r\n },\r\n TRUNC: {\r\n d: \"Truncates a number to a certain number of significant digits by omitting less significant digits.\",\r\n a: \"Truncates a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be truncated.\",\r\n },\r\n {\r\n name: \"places\",\r\n detail: \"The number of significant digits to the right of the decimal point to retain.\",\r\n },\r\n ],\r\n },\r\n QUOTIENT: {\r\n d: \"Returns one number divided by another.\",\r\n a: \"One number divided by another.\",\r\n p: [\r\n {\r\n name: \"dividend\",\r\n detail: \"The number to be divided.\",\r\n },\r\n {\r\n name: \"divisor\",\r\n detail: \"The number to divide by.\",\r\n },\r\n ],\r\n },\r\n POWER: {\r\n d: \"Returns a number raised to a power.\",\r\n a: \"A number raised to a power.\",\r\n p: [\r\n {\r\n name: \"base\",\r\n detail: \"The number to raise to the `exponent` power.\",\r\n },\r\n {\r\n name: \"exponent\",\r\n detail: \"The exponent to raise `base` to.\",\r\n },\r\n ],\r\n },\r\n SUMIFS: {\r\n d: \"Returns the sum of a range depending on multiple criteria.\",\r\n a: \"Sums a range depending on multiple criteria.\",\r\n p: [\r\n {\r\n name: \"sum_range\",\r\n detail: \"The range to sum.\",\r\n },\r\n {\r\n name: \"criteria_range1\",\r\n detail: \"The range to check against criterion1.\",\r\n },\r\n {\r\n name: \"criterion1\",\r\n detail: \"The pattern or test to apply to criteria_range1.\",\r\n },\r\n {\r\n name: \"criteria_range2\",\r\n detail: \"Additional ranges to check.\",\r\n },\r\n ],\r\n },\r\n GET_TARGET: {\r\n d: \"Query target data.\",\r\n a: \"Query target data.\",\r\n p: [],\r\n },\r\n GET_AIRTABLE_DATA: {\r\n d: \"Query AirTable data.\",\r\n a: \"Query AirTable data.\",\r\n p: [\r\n {\r\n name: \"AirTable url\",\r\n detail: \"AirTable url address.\",\r\n },\r\n {\r\n name: \"sort_column\",\r\n detail: \"The index of the column in current AirTable view containing the values by which to sort.\",\r\n },\r\n {\r\n name: \"is_ascending\",\r\n detail:\r\n \"[Optional] - 1 or 0 indicating whether to sort `sort_column` in ascending order. 0 sorts in descending order.1 sorts in ascending order.\",\r\n },\r\n ],\r\n },\r\n ASK_AI: {\r\n d: \"Ask the AI questions.\",\r\n a: \"Ask the AI questions.\",\r\n p: [\r\n {\r\n name: \"question\",\r\n detail: \"Consult AI for the data you want.\",\r\n },\r\n {\r\n name: \"criteria_range\",\r\n detail: \"In which range to process the data.\",\r\n },\r\n ],\r\n },\r\n COUNTIFS: {\r\n d: \"Returns the count of a range depending on multiple criteria.\",\r\n a: \"Count values depending on multiple criteria.\",\r\n p: [\r\n {\r\n name: \"criteria_range1\",\r\n detail: \"The range to check against `criterion1`.\",\r\n },\r\n {\r\n name: \"criterion1\",\r\n detail: \"The pattern or test to apply to `criteria_range1`.\",\r\n },\r\n {\r\n name: \"criteria_range2\",\r\n detail: \"Additional ranges to check.\",\r\n },\r\n ],\r\n },\r\n PRODUCT: {\r\n d: \"Returns the result of multiplying a series of numbers together.\",\r\n a: \"Result of multiplying a series of numbers together.\",\r\n p: [\r\n {\r\n name: \"factor1\",\r\n detail: \"The first number or range to calculate for the product.\",\r\n },\r\n {\r\n name: \"factor2\",\r\n detail: \"More numbers or ranges to calculate for the product.\",\r\n },\r\n ],\r\n },\r\n HARMEAN: {\r\n d: \"Calculates the harmonic mean of a dataset.\",\r\n a: \"The harmonic mean of a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the population.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the population.\",\r\n },\r\n ],\r\n },\r\n HYPGEOMDIST: {\r\n d:\r\n \"Calculates the probability of drawing a certain number of successes in a certain number of tries given a population of a certain size containing a certain number of successes, without replacement of draws.\",\r\n a: \"Hypergeometric distribution probability.\",\r\n p: [\r\n {\r\n name: \"num_successes\",\r\n detail: \"The desired number of successes.\",\r\n },\r\n {\r\n name: \"num_draws\",\r\n detail: \"The number of permitted draws.\",\r\n },\r\n {\r\n name: \"successes_in_pop\",\r\n detail: \"The total number of successes in the population.\",\r\n },\r\n {\r\n name: \"pop_size\",\r\n detail: \"The total size of the population\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"Determine the logical value of the function form. \\n\\nIf cumulative is TRUE(), HYPGEOM.DIST returns the cumulative distribution function;\\n\\nif FALSE(), it returns the probability density function.\",\r\n },\r\n ],\r\n },\r\n INTERCEPT: {\r\n d:\r\n \"Calculates the y-value at which the line resulting from linear regression of a dataset will intersect the y-axis (x=0).\",\r\n a: \"Y-intercept of line derived via linear regression.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n KURT: {\r\n d:\r\n 'Calculates the kurtosis of a dataset, which describes the shape, and in particular the \"peakedness\" of that dataset.',\r\n a: \"Kurtosis of a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the dataset.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the dataset.\",\r\n },\r\n ],\r\n },\r\n LARGE: {\r\n d: \"Returns the nth largest element from a data set, where n is user-defined.\",\r\n a: \"Nth largest element from a data set.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"Array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"n\",\r\n detail: \"The rank from largest to smallest of the element to return.\",\r\n },\r\n ],\r\n },\r\n STDEVA: {\r\n d: \"Calculates the standard deviation based on a sample, setting text to the value `0`.\",\r\n a: \"Standard deviation of sample (text as 0).\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the sample.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the sample.\",\r\n },\r\n ],\r\n },\r\n STDEVP: {\r\n d: \"Calculates the standard deviation based on an entire population.\",\r\n a: \"Standard deviation of an entire population.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the population.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the population.\",\r\n },\r\n ],\r\n },\r\n GEOMEAN: {\r\n d: \"Calculates the geometric mean of a dataset.\",\r\n a: \"The geometric mean of a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the population.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the population.\",\r\n },\r\n ],\r\n },\r\n RANK_EQ: {\r\n d:\r\n \"Returns the rank of a specified value in a dataset. If there is more than one entry of the same value in the dataset, the top rank of the entries will be returned.\",\r\n a: \"Top rank of a specified value in a dataset.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value whose rank will be determined.\",\r\n },\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"is_ascending\",\r\n detail:\r\n \"Whether to consider the values in `data` in descending or ascending order. If omitted, the default is descending (FALSE).\",\r\n },\r\n ],\r\n },\r\n RANK_AVG: {\r\n d:\r\n \"Returns the rank of a specified value in a dataset. If there is more than one entry of the same value in the dataset, the average rank of the entries will be returned.\",\r\n a: \"Average rank of a specified value in a dataset.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value whose rank will be determined.\",\r\n },\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"is_ascending\",\r\n detail:\r\n \"Whether to consider the values in `data` in descending or ascending order. If omitted, the default is descending (FALSE).\",\r\n },\r\n ],\r\n },\r\n PERCENTRANK_EXC: {\r\n d: \"Returns the percentage rank (percentile) from 0 to 1 exclusive of a specified value in a dataset.\",\r\n a: \"Percentage rank (percentile) from 0 to 1 exclusive.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"value\",\r\n detail: \"The value whose percentage rank will be determined.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant figures to use in the calculation. Default is 3.\",\r\n },\r\n ],\r\n },\r\n PERCENTRANK_INC: {\r\n d: \"Returns the percentage rank (percentile) from 0 to 1 inclusive of a specified value in a dataset.\",\r\n a: \"Percentage rank (percentile) from 0 to 1 inclusive.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"value\",\r\n detail: \"The value whose percentage rank will be determined.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant figures to use in the calculation. Default is 3.\",\r\n },\r\n ],\r\n },\r\n FORECAST: {\r\n d: \"Calculates the expected y-value for a specified x based on a linear regression of a dataset.\",\r\n a: \"Expected y-value based of linear regression.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The value on the x-axis to forecast.\",\r\n },\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n FISHERINV: {\r\n d: \"Returns the inverse Fisher transformation of a specified value.\",\r\n a: \"Inverse fisher transformation of a specified value.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the inverse Fisher transformation.\",\r\n },\r\n ],\r\n },\r\n FISHER: {\r\n d: \"Returns the Fisher transformation of a specified value.\",\r\n a: \"Fisher transformation of a specified value.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value for which to calculate the Fisher transformation.\",\r\n },\r\n ],\r\n },\r\n MODE_SNGL: {\r\n d: \"Returns the most commonly occurring value in a dataset.\",\r\n a: \"Most commonly occurring value in a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating mode.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating mode.\",\r\n },\r\n ],\r\n },\r\n WEIBULL_DIST: {\r\n d:\r\n \"Returns the value of the Weibull distribution function (or Weibull cumulative distribution function) for a specified shape and scale.\",\r\n a: \"Weibull distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the Weibull distribution function.\",\r\n },\r\n {\r\n name: \"shape\",\r\n detail: \"The shape parameter of the Weibull distribution function.\",\r\n },\r\n {\r\n name: \"scale\",\r\n detail: \"The scale parameter of the Weibull distribution function.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"Whether to use the cumulative distribution function.\",\r\n },\r\n ],\r\n },\r\n COUNT: {\r\n d: \"Returns the number of numeric values in a dataset.\",\r\n a: \"The number of numeric values in dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when counting.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when counting.\",\r\n },\r\n ],\r\n },\r\n COUNTA: {\r\n d: \"Returns the number of values in a dataset.\",\r\n a: \"The number of values in a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when counting.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when counting.\",\r\n },\r\n ],\r\n },\r\n AVEDEV: {\r\n d: \"Calculates the average of the magnitudes of deviations of data from a dataset's mean.\",\r\n a: \"Average magnitude of deviations from mean.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the sample.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the sample.\",\r\n },\r\n ],\r\n },\r\n AVERAGE: {\r\n d: \"Returns the numerical average value in a dataset, ignoring text.\",\r\n a: \"Numerical average value in a dataset, ignoring text.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the average value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the average value.\",\r\n },\r\n ],\r\n },\r\n AVERAGEA: {\r\n d: \"Returns the numerical average value in a dataset.\",\r\n a: \"Numerical average value in a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the average value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the average value.\",\r\n },\r\n ],\r\n },\r\n BINOM_DIST: {\r\n d:\r\n \"Calculates the probability of drawing a certain number of successes (or a maximum number of successes) in a certain number of tries given a population of a certain size containing a certain number of successes, with replacement of draws.\",\r\n a: \"Binomial distribution probability.\",\r\n p: [\r\n {\r\n name: \"num_successes\",\r\n detail: \"The number of successes for which to calculate the probability in `num_trials` trials.\",\r\n },\r\n {\r\n name: \"num_trials\",\r\n detail: \"The number of independent trials.\",\r\n },\r\n {\r\n name: \"prob_success\",\r\n detail: \"The probability of success in any given trial.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"Whether to use the binomial cumulative distribution.\",\r\n },\r\n ],\r\n },\r\n BINOM_INV: {\r\n d:\r\n \"Calculates the smallest value for which the cumulative binomial distribution is greater than or equal to a specified criteria.\",\r\n a: \"Inverse cumulative binomial distribution function.\",\r\n p: [\r\n {\r\n name: \"num_trials\",\r\n detail: \"The number of independent trials.\",\r\n },\r\n {\r\n name: \"prob_success\",\r\n detail: \"The probability of success in any given trial.\",\r\n },\r\n {\r\n name: \"target_prob\",\r\n detail: \"The desired threshold probability.\",\r\n },\r\n ],\r\n },\r\n CONFIDENCE_NORM: {\r\n d: \"Calculates the width of half the confidence interval for a normal distribution.\",\r\n a: \"Confidence interval for a normal distribution.\",\r\n p: [\r\n {\r\n name: \"alpha\",\r\n detail: \"One minus the desired confidence level. E.g. `0.1` for `0.9`, or 90%, confidence.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail: \"The standard deviation of the population.\",\r\n },\r\n {\r\n name: \"pop_size\",\r\n detail: \"The size of the population.\",\r\n },\r\n ],\r\n },\r\n CORREL: {\r\n d: \"Calculates r, the Pearson product-moment correlation coefficient of a dataset.\",\r\n a: \"Pearson Product-Moment Correlation Coefficient.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n COVARIANCE_P: {\r\n d: \"Calculates the covariance of a dataset.\",\r\n a: \"The covariance of a dataset.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n COVARIANCE_S: {\r\n d: \"Calculates the sample covariance of a dataset.\",\r\n a: \"The sample covariance of a dataset.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n DEVSQ: {\r\n d: \"Calculates the sum of squares of deviations based on a sample.\",\r\n a: \"The sum of squares of deviations based on a sample.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the sample.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the sample.\",\r\n },\r\n ],\r\n },\r\n EXPON_DIST: {\r\n d:\r\n \"Returns the value of the exponential distribution function with a specified lambda at a specified value.\",\r\n a: \"Exponential distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the exponential distribution function.\",\r\n },\r\n {\r\n name: \"lambda\",\r\n detail: \"The lambda to specify the exponential distribution function.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"Whether to use the exponential cumulative distribution.\",\r\n },\r\n ],\r\n },\r\n AVERAGEIF: {\r\n d: \"Returns the average of a range depending on criteria.\",\r\n a: \"Average of values depending on criteria.\",\r\n p: [\r\n {\r\n name: \"criteria_range\",\r\n detail: \"The range to check against `criterion`.\",\r\n },\r\n {\r\n name: \"criterion\",\r\n detail: \"The pattern or test to apply to `criteria_range`.\",\r\n },\r\n {\r\n name: \"average_range\",\r\n detail: \"The range to average. If not included, `criteria_range` is used for the average instead.\",\r\n },\r\n ],\r\n },\r\n AVERAGEIFS: {\r\n d: \"Returns the average of a range depending on multiple criteria.\",\r\n a: \"Average of values depending on multiple criteria.\",\r\n p: [\r\n {\r\n name: \"average_range\",\r\n detail: \"The range to average.\",\r\n },\r\n {\r\n name: \"criteria_range1\",\r\n detail: \"The range to check against `criterion1`.\",\r\n },\r\n {\r\n name: \"criterion1\",\r\n detail: \"The pattern or test to apply to `criteria_range1`.\",\r\n },\r\n {\r\n name: \"criteria_range2\",\r\n detail: \"Additional ranges to check.\",\r\n },\r\n ],\r\n },\r\n PERMUT: {\r\n d:\r\n \"Returns the number of ways to choose some number of objects from a pool of a given size of objects, considering order.\",\r\n a: \"Number of permutations from a number of objects.\",\r\n p: [\r\n {\r\n name: \"n\",\r\n detail: \"The size of the pool of objects to choose from.\",\r\n },\r\n {\r\n name: \"k\",\r\n detail: \"The number of objects to choose.\",\r\n },\r\n ],\r\n },\r\n TRIMMEAN: {\r\n d:\r\n \"Calculates the mean of a dataset excluding some proportion of data from the high and low ends of the dataset.\",\r\n a: \"Mean of a dataset excluding high/low ends.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"Array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"exclude_proportion\",\r\n detail: \"The proportion of the dataset to exclude, from the extremities of the set.\",\r\n },\r\n ],\r\n },\r\n PERCENTILE_EXC: {\r\n d: \"Returns the value at a given percentile of a dataset exclusive of 0 and 1.\",\r\n a: \"Value at a given percentile of a dataset exclusive of 0 and 1.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"percentile\",\r\n detail:\r\n \"The percentile, exclusive of 0 and 1, whose value within 'data' will be calculated and returned.\",\r\n },\r\n ],\r\n },\r\n PERCENTILE_INC: {\r\n d: \"Returns the value at a given percentile of a dataset.\",\r\n a: \"Value at a given percentile of a dataset.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"percentile\",\r\n detail: \"The percentile whose value within `data` will be calculated and returned.`\",\r\n },\r\n ],\r\n },\r\n PEARSON: {\r\n d: \"Calculates r, the Pearson product-moment correlation coefficient of a dataset.\",\r\n a: \"Pearson Product-Moment Correlation Coefficient.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n NORM_S_INV: {\r\n d: \"Returns the value of the inverse standard normal distribution function for a specified value.\",\r\n a: \"Inverse standard normal distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the inverse standard normal distribution function.\",\r\n },\r\n ],\r\n },\r\n NORM_S_DIST: {\r\n d: \"Returns the value of the standard normal cumulative distribution function for a specified value.\",\r\n a: \"Standard normal cumulative distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the standard normal cumulative distribution function.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"Determine the logical value of the function form. \\n\\nIf TRUE(), it returns the cumulative distribution function;\\n\\nIf it is FALSE(), it returns the probability density function.\",\r\n },\r\n ],\r\n },\r\n NORM_INV: {\r\n d:\r\n \"Returns the value of the inverse normal distribution function for a specified value, mean, and standard deviation.\",\r\n a: \"Inverse normal distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the inverse normal distribution function.\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"The mean (mu) of the normal distribution function.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail: \"The standard deviation (sigma) of the normal distribution function.\",\r\n },\r\n ],\r\n },\r\n NORM_DIST: {\r\n d:\r\n \"Returns the value of the normal distribution function (or normal cumulative distribution function) for a specified value, mean, and standard deviation.\",\r\n a: \"Normal distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the normal distribution function.\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"The mean (mu) of the normal distribution function.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail: \"The standard deviation (sigma) of the normal distribution function.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"Whether to use the normal cumulative distribution function rather than the distribution function.\",\r\n },\r\n ],\r\n },\r\n NEGBINOM_DIST: {\r\n d:\r\n \"Calculates the probability of drawing a certain number of failures before a certain number of successes given a probability of success in independent trials.\",\r\n a: \"Negative binomial distribution probability.\",\r\n p: [\r\n {\r\n name: \"num_failures\",\r\n detail: \"The number of failures to model.\",\r\n },\r\n {\r\n name: \"num_successes\",\r\n detail: \"The number of successes to model.\",\r\n },\r\n {\r\n name: \"prob_success\",\r\n detail: \"The probability of success in any given trial.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"Determine the logical value of the function form. \\n\\nIf TRUE(), it returns the cumulative distribution function;\\n\\nIf it is FALSE(), it returns the probability density function.\",\r\n },\r\n ],\r\n },\r\n MINA: {\r\n d: \"Returns the minimum numeric value in a dataset.\",\r\n a: \"Minimum numeric value in a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the minimum value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the minimum value.\",\r\n },\r\n ],\r\n },\r\n MIN: {\r\n d: \"Returns the minimum value in a numeric dataset.\",\r\n a: \"Minimum value in a numeric dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the minimum value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the minimum value.\",\r\n },\r\n ],\r\n },\r\n MEDIAN: {\r\n d: \"Returns the median value in a numeric dataset.\",\r\n a: \"Median value in a numeric dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the median value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the median value.\",\r\n },\r\n ],\r\n },\r\n MAXA: {\r\n d: \"Returns the maximum numeric value in a dataset.\",\r\n a: \"Maximum numeric value in a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the maximum value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the maximum value.\",\r\n },\r\n ],\r\n },\r\n MAX: {\r\n d: \"Returns the maximum value in a numeric dataset.\",\r\n a: \"Maximum value in a numeric dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range to consider when calculating the maximum value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to consider when calculating the maximum value.\",\r\n },\r\n ],\r\n },\r\n LOGNORM_INV: {\r\n d:\r\n \"Returns the value of the inverse log-normal cumulative distribution with given mean and standard deviation at a specified value.\",\r\n a: \"Inverse log-normal cumulative distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the inverse log-normal cumulative distribution function.\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"The mean (mu) of the inverse log-normal cumulative distribution function.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail:\r\n \"The standard deviation (sigma) of the inverse log-normal cumulative distribution function.\",\r\n },\r\n ],\r\n },\r\n LOGNORM_DIST: {\r\n d:\r\n \"Returns the value of the log-normal cumulative distribution with given mean and standard deviation at a specified value.\",\r\n a: \"Log-normal cumulative distribution probability.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the log-normal cumulative distribution function.\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"The mean (mu) of the log-normal cumulative distribution function.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail: \"The standard deviation (sigma) of the log-normal cumulative distribution function.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"Determine the logical value of the function form. \\n\\nIf TRUE(), it returns the cumulative distribution function;\\n\\nIf it is FALSE(), it returns the probability density function.\",\r\n },\r\n ],\r\n },\r\n Z_TEST: {\r\n d: \"Returns the one-tailed p-value of a Z-test with standard distribution.\",\r\n a: \"One-tailed p-value of a z-test.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"value\",\r\n detail: \"The test statistic to use in the Z-test.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail:\r\n \"The standard deviation to assume for the Z-test. If this is not provided, the standard deviation of the data will be used.\",\r\n },\r\n ],\r\n },\r\n PROB: {\r\n d:\r\n \"Given a set of values and corresponding probabilities, calculates the probability that a value chosen at random falls between two limits.\",\r\n a: \"Probability values lie in a range.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"Array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"probabilities\",\r\n detail: \"Array or range containing probabilities corresponding to `data`.\",\r\n },\r\n {\r\n name: \"low_limit\",\r\n detail: \"The lower bound on the value range for which to calculate the probability.\",\r\n },\r\n {\r\n name: \"high_limit\",\r\n detail: \"The upper bound on the value range for which to calculate the probability.\",\r\n },\r\n ],\r\n },\r\n QUARTILE_EXC: {\r\n d: \"Returns a value nearest to a specified quartile of a dataset exclusive of 0 and 4.\",\r\n a: \"Value nearest to a specific quartile of a dataset exclusive of 0 and 4.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"quartile_number\",\r\n detail: \"Which quartile to return.\",\r\n },\r\n ],\r\n },\r\n QUARTILE_INC: {\r\n d: \"Returns a value nearest to a specified quartile of a dataset.\",\r\n a: \"Value nearest to a specific quartile of a dataset.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"quartile_number\",\r\n detail: \"Which quartile value to return.\",\r\n },\r\n ],\r\n },\r\n POISSON_DIST: {\r\n d:\r\n \"Returns the value of the Poisson distribution function (or Poisson cumulative distribution function) for a specified value and mean.\",\r\n a: \"Poisson distribution function.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the Poisson distribution function.\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"The mean (mu) of the Poisson distribution function.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"Whether to use the Poisson cumulative distribution function rather than the distribution function.\",\r\n },\r\n ],\r\n },\r\n RSQ: {\r\n d: \"Calculates the square of r, the Pearson product-moment correlation coefficient of a dataset.\",\r\n a: \"Square of the correlation coefficient.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n T_DIST: {\r\n d: \"Calculates the left tail probability for a Student's t-distribution with a given input (x).\",\r\n a: \"The left-tailed Student's t-distribution\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the t-distribution function.\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"The number of degrees of freedom.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"If cumulative is TRUE, T.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function.\",\r\n },\r\n ],\r\n },\r\n T_DIST_2T: {\r\n d: \"Calculates the probability for two tailed Student's t-distribution with a given input (x).\",\r\n a: \"The two tailed Student's t-distribution\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the t-distribution function.\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"The number of degrees of freedom.\",\r\n },\r\n ],\r\n },\r\n T_DIST_RT: {\r\n d: \"Calculates the right tail probability for a Student's t-distribution with a given input (x).\",\r\n a: \"The right-tailed Student's t-distribution\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"The input to the t-distribution function.\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"The number of degrees of freedom.\",\r\n },\r\n ],\r\n },\r\n T_INV: {\r\n d: \"Calculates the negative inverse of the one-tailed TDIST function.\",\r\n a: \"T.INV\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"The probability associated with the two-tailed t-distribution.\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"The number of degrees of freedom.\",\r\n },\r\n ],\r\n },\r\n T_INV_2T: {\r\n d: \"Calculates the inverse of the two-tailed TDIST function.\",\r\n a: \"T.INV.2T\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"The probability associated with the two-tailed t-distribution.\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"The number of degrees of freedom.\",\r\n },\r\n ],\r\n },\r\n T_TEST: {\r\n d:\r\n \"t-test. Returns the probability associated with Student's t-test. Determines whether two samples are likely to have come from the same two underlying populations that have the same mean.\",\r\n a: \"Returns the probability associated with t-test.\",\r\n p: [\r\n {\r\n name: \"range1\",\r\n detail: \"The first sample of data or group of cells to consider for the t-test.\",\r\n },\r\n {\r\n name: \"range2\",\r\n detail: \"The second sample of data or group of cells to consider for the t-test.\",\r\n },\r\n {\r\n name: \"tails\",\r\n detail: \"Specifies the number of distribution tails.\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"Specifies the type of t-test.\",\r\n },\r\n ],\r\n },\r\n F_DIST: {\r\n d:\r\n \"Calculates the left-tailed F probability distribution (degree of diversity) for two data sets with given input x. Alternately called Fisher-Snedecor distribution or Snedecor's F distribution.\",\r\n a: \"F probability distribution (left-tailed).\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail:\r\n \"The input to the F probability distribution function. The value at which to evaluate the function.\",\r\n },\r\n {\r\n name: \"degrees_freedom1\",\r\n detail: \"The numerator of the number of degrees of freedom.\",\r\n },\r\n {\r\n name: \"degrees_freedom2\",\r\n detail: \"The denominator of the number of degrees of freedom.\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"Logical value that determines the form of the function.\",\r\n },\r\n ],\r\n },\r\n F_DIST_RT: {\r\n d:\r\n \"Calculates the right-tailed F probability distribution (degree of diversity) for two data sets with given input x. Alternately called Fisher-Snedecor distribution or Snedecor's F distribution.\",\r\n a: \"F probability distribution.\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail:\r\n \"The input to the F probability distribution function. The value at which to evaluate the function.\",\r\n },\r\n {\r\n name: \"degrees_freedom1\",\r\n detail: \"The numerator of the number of degrees of freedom.\",\r\n },\r\n {\r\n name: \"degrees_freedom2\",\r\n detail: \"The denominator of the number of degrees of freedom.\",\r\n },\r\n ],\r\n },\r\n VAR_P: {\r\n d: \"Calculates the variance based on an entire population.\",\r\n a: \"Variance of entire population.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the population.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the population.\",\r\n },\r\n ],\r\n },\r\n VAR_S: {\r\n d: \"Calculates the variance based on a sample.\",\r\n a: \"Variance.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the sample.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the sample.\",\r\n },\r\n ],\r\n },\r\n VARA: {\r\n d: \"Calculates the variance based on a sample, setting text to the value `0`.\",\r\n a: \"Variance of sample (text as 0).\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the sample.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the sample.\",\r\n },\r\n ],\r\n },\r\n VARPA: {\r\n d: \"Calculates the variance based on an entire population, setting text to the value `0`.\",\r\n a: \"Variance of entire population (text as 0).\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the population.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the population.\",\r\n },\r\n ],\r\n },\r\n STEYX: {\r\n d: \"Calculates the standard error of the predicted y-value for each x in the regression of a dataset.\",\r\n a: \"Standard error of predicted y-values in regression.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n STANDARDIZE: {\r\n d:\r\n \"Calculates the normalized equivalent of a random variable given mean and standard deviation of the distribution.\",\r\n a: \"Normalized equivalent of a random variable.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value of the random variable to normalize.\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"The mean of the distribution.\",\r\n },\r\n {\r\n name: \"standard_deviation\",\r\n detail: \"The standard deviation of the distribution.\",\r\n },\r\n ],\r\n },\r\n SMALL: {\r\n d: \"Returns the nth smallest element from a data set, where n is user-defined.\",\r\n a: \"Nth smallest element in a data set.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the dataset to consider.\",\r\n },\r\n {\r\n name: \"n\",\r\n detail: \"The rank from smallest to largest of the element to return.\",\r\n },\r\n ],\r\n },\r\n SLOPE: {\r\n d: \"Calculates the slope of the line resulting from linear regression of a dataset.\",\r\n a: \"Slope of line from linear regression of data.\",\r\n p: [\r\n {\r\n name: \"data_y\",\r\n detail: \"The range representing the array or matrix of dependent data.\",\r\n },\r\n {\r\n name: \"data_x\",\r\n detail: \"The range representing the array or matrix of independent data.\",\r\n },\r\n ],\r\n },\r\n SKEW: {\r\n d: \"Calculates the skewness of a dataset, which describes the symmetry of that dataset about the mean.\",\r\n a: \"Skewness of a dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the dataset.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the dataset.\",\r\n },\r\n ],\r\n },\r\n SKEW_P: {\r\n d:\r\n \"Calculates the skewness of a dataset, which describes the symmetry of that dataset about the mean. This assumes the dataset is for the population.\",\r\n a: \"Skewness of a population's dataset.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value or range of the dataset.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional values or ranges to include in the dataset.\",\r\n },\r\n ],\r\n },\r\n VLOOKUP: {\r\n d:\r\n \"Vertical lookup. Searches down the first column of a range for a key and returns the value of a specified cell in the row found.\",\r\n a: \"Vertical lookup.\",\r\n p: [\r\n {\r\n name: \"search_key\",\r\n detail: 'The value to search for. For example, `42`, `\"Cats\"`, or `I24`.',\r\n },\r\n {\r\n name: \"range\",\r\n detail:\r\n \"The range to consider for the search. The first column in the range is searched for the key specified in `search_key`.\",\r\n },\r\n {\r\n name: \"index\",\r\n detail:\r\n \"The column index of the value to be returned, where the first column in `range` is numbered 1.\",\r\n },\r\n {\r\n name: \"is_sorted\",\r\n detail:\r\n \"Indicates whether the column to be searched (the first column of the specified range) is sorted, in which case the closest match for `search_key` will be returned.\",\r\n },\r\n ],\r\n },\r\n HLOOKUP: {\r\n d:\r\n \"Horizontal lookup. Searches across the first row of a range for a key and returns the value of a specified cell in the column found.\",\r\n a: \"Horizontal lookup\",\r\n p: [\r\n {\r\n name: \"search_key\",\r\n detail: 'The value to search for. For example, `42`, `\"Cats\"`, or `I24`.',\r\n },\r\n {\r\n name: \"range\",\r\n detail:\r\n \"The range to consider for the search. The first row in the range is searched for the key specified in `search_key`.\",\r\n },\r\n {\r\n name: \"index\",\r\n detail: \"The row index of the value to be returned, where the first row in `range` is numbered 1.\",\r\n },\r\n {\r\n name: \"is_sorted\",\r\n detail:\r\n \"Indicates whether the row to be searched (the first row of the specified range) is sorted.\",\r\n },\r\n ],\r\n },\r\n LOOKUP: {\r\n d:\r\n \"Looks through a sorted row or column for a key and returns the value of the cell in a result range located in the same position as the search row or column.\",\r\n a: \"Look up a value.\",\r\n p: [\r\n {\r\n name: \"search_key\",\r\n detail: 'The value to search for in the row or column. For example, `42`, `\"Cats\"`, or `I24`.',\r\n },\r\n {\r\n name: \"search_range|search_result_array\",\r\n detail:\r\n \"One method of using this function is to provide a single sorted row or column `search_range` to look through for the `search_key` with a second argument `result_range`. The other way is to combine these two arguments into one `search_result_array` where the first row or column is searched and a value is returned from the last row or column in the array. If `search_key` is not found, a non-exact match may be returned.\",\r\n },\r\n {\r\n name: \"result_range\",\r\n detail:\r\n \"The range from which to return a result. The value returned corresponds to the location where `search_key` is found in `search_range`. This range must be only a single row or column and should not be used if using the `search_result_array` method.\",\r\n },\r\n ],\r\n },\r\n ADDRESS: {\r\n d: \"Returns a cell reference as a string.\",\r\n a: \"Cell reference as a string.\",\r\n p: [\r\n {\r\n name: \"row\",\r\n detail: \"The row number of the cell reference\",\r\n },\r\n {\r\n name: \"column\",\r\n detail: \"The column number (not name) of the cell reference. `A` is column number `1`.\",\r\n },\r\n {\r\n name: \"absolute_relative_mode\",\r\n detail:\r\n \"An indicator of whether the reference is row/column absolute. `1` is row and column absolute (e.g. $A$1), `2` is row absolute and column relative (e.g. A$1), `3` is row relative and column absolute (e.g. $A1), and `4` is row and column relative (e.g. A1).\",\r\n },\r\n {\r\n name: \"use_a1_notation\",\r\n detail:\r\n \"A boolean indicating whether to use `A1` style notation (TRUE) or `R1C1` style notation (FALSE).\",\r\n },\r\n {\r\n name: \"sheet\",\r\n detail: \"Text indicating the name of the sheet into which the address points.\",\r\n },\r\n ],\r\n },\r\n INDIRECT: {\r\n d: \"Returns a cell reference specified by a string.\",\r\n a: \"A cell reference specified by a string.\",\r\n p: [\r\n {\r\n name: \"cell_reference_as_string\",\r\n detail: \"A cell reference, written as a string with surrounding quotation marks.\",\r\n },\r\n {\r\n name: \"is_A1_notation\",\r\n detail: \"Indicates if the cell reference is in A1 notation (TRUE) or R1C1 notation (FALSE).\",\r\n },\r\n ],\r\n },\r\n ROW: {\r\n d: \"Returns the row number of a specified cell.\",\r\n a: \"Row number of a specified cell.\",\r\n p: [\r\n {\r\n name: \"cell_reference\",\r\n detail: \"The cell whose row number will be returned.\",\r\n },\r\n ],\r\n },\r\n ROWS: {\r\n d: \"Returns the number of rows in a specified array or range.\",\r\n a: \"Number of rows in a specified array or range.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The range whose row count will be returned.\",\r\n },\r\n ],\r\n },\r\n COLUMN: {\r\n d: \"Returns the column number of a specified cell, with `A=1`.\",\r\n a: \"Column number of a specified cell.\",\r\n p: [\r\n {\r\n name: \"cell_reference\",\r\n detail: \"The cell whose column number will be returned. Column `A` corresponds to `1`.\",\r\n },\r\n ],\r\n },\r\n COLUMNS: {\r\n d: \"Returns the number of columns in a specified array or range.\",\r\n a: \"Number of columns in a specified array or range.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The range whose column count will be returned.\",\r\n },\r\n ],\r\n },\r\n OFFSET: {\r\n d:\r\n \"Returns a range reference shifted a specified number of rows and columns from a starting cell reference.\",\r\n a: \"A range reference offset relative to a cell.\",\r\n p: [\r\n {\r\n name: \"cell_reference\",\r\n detail: \"The starting point from which to count the offset rows and columns.\",\r\n },\r\n {\r\n name: \"offset_rows\",\r\n detail: \"The number of rows to offset by.\",\r\n },\r\n {\r\n name: \"offset_columns\",\r\n detail: \"The number of columns to offset by.\",\r\n },\r\n {\r\n name: \"height\",\r\n detail: \"The height of the range to return starting at the offset target.\",\r\n },\r\n {\r\n name: \"width\",\r\n detail: \"The width of the range to return starting at the offset target.\",\r\n },\r\n ],\r\n },\r\n MATCH: {\r\n d: \"Returns the relative position of an item in a range that matches a specified value.\",\r\n a: \"Position of item in range that matches value.\",\r\n p: [\r\n {\r\n name: \"search_key\",\r\n detail: 'The value to search for. For example, `42`, `\"Cats\"`, or `I24`.',\r\n },\r\n {\r\n name: \"range\",\r\n detail: \"The one-dimensional array to be searched.\",\r\n },\r\n {\r\n name: \"search_type\",\r\n detail:\r\n \"The search method. `1` (default) finds the largest value less than or equal to `search_key` when `range` is sorted in ascending order. `0` finds the exact value when `range` is unsorted. `-1` finds the smallest value greater than or equal to `search_key` when `range` is sorted in descending order.\",\r\n },\r\n ],\r\n },\r\n INDEX: {\r\n d: \"Returns the content of a cell, specified by row and column offset.\",\r\n a: \"Content of cell specified by row and column offset.\",\r\n p: [\r\n {\r\n name: \"reference\",\r\n detail: \"The array of cells to be offset into.\",\r\n },\r\n {\r\n name: \"row\",\r\n detail: \"The number of offset rows.\",\r\n },\r\n {\r\n name: \"column\",\r\n detail: \"The number of offset columns.\",\r\n },\r\n ],\r\n },\r\n GETPIVOTDATA: {\r\n d:\r\n \"Extracts an aggregated value from a pivot table that corresponds to the specified row and column headings.\",\r\n a:\r\n \"Extracts an aggregated value from a pivot table that corresponds to the specified row and column headings.\",\r\n p: [\r\n {\r\n name: \"value_name\",\r\n detail: \"The name of the value in the pivot table for which you want to get data.\",\r\n },\r\n {\r\n name: \"any_pivot_table_cell\",\r\n detail: \"Any reference to a cell in the desired pivot table (top corner recommended).\",\r\n },\r\n {\r\n name: \"original_column\",\r\n detail: \"The name of the column in the original data set (not the pivot table).\",\r\n },\r\n {\r\n name: \"pivot_item\",\r\n detail:\r\n \"The name of the row or column shown in the pivot table corresponding to *original_column* that you want to retrieve.\",\r\n },\r\n ],\r\n },\r\n CHOOSE: {\r\n d: \"Returns an element from a list of choices based on index.\",\r\n a: \"An element from a list of choices based on index.\",\r\n p: [\r\n {\r\n name: \"index\",\r\n detail: \"Which choice (of the up to 30 provided) to return.\",\r\n },\r\n {\r\n name: \"choice1\",\r\n detail:\r\n \"A potential value to return. Required. May be a reference to a cell or an individual value.\",\r\n },\r\n {\r\n name: \"choice2\",\r\n detail: \"Additional values among which to choose.\",\r\n },\r\n ],\r\n },\r\n HYPERLINK: {\r\n d: \"Creates a hyperlink inside a cell.\",\r\n a: \"Creates a hyperlink inside a cell.\",\r\n p: [\r\n {\r\n name: \"url\",\r\n detail:\r\n \"The full URL of the link location enclosed in quotation marks, or a reference to a cell containing such a URL.\",\r\n },\r\n {\r\n name: \"link_label\",\r\n detail:\r\n \"The text to display in the cell as the link, enclosed in quotation marks, or a reference to a cell containing such a label.\",\r\n },\r\n ],\r\n },\r\n TIME: {\r\n d: \"Converts a provided hour, minute, and second into a time.\",\r\n a: \"Converts hour/minute/second into a time.\",\r\n p: [\r\n {\r\n name: \"hour\",\r\n detail: \"The hour component of the time.\",\r\n },\r\n {\r\n name: \"minute\",\r\n detail: \"The minute component of the time.\",\r\n },\r\n {\r\n name: \"second\",\r\n detail: \"The second component of the time.\",\r\n },\r\n ],\r\n },\r\n TIMEVALUE: {\r\n d: \"Returns the fraction of a 24-hour day the time represents.\",\r\n a: \"Converts a time string into its serial number representation.\",\r\n p: [\r\n {\r\n name: \"time_string\",\r\n detail: \"The string that holds the time representation.\",\r\n },\r\n ],\r\n },\r\n EOMONTH: {\r\n d:\r\n \"Returns a date on the last day of a month that falls a specified number of months before or after another date.\",\r\n a: \"Last day of a month before or after a date.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"The date from which to calculate the result.\",\r\n },\r\n {\r\n name: \"months\",\r\n detail: \"The number of months before (negative) or after (positive) 'start_date' to consider.\",\r\n },\r\n ],\r\n },\r\n EDATE: {\r\n d: \"Returns a date a specified number of months before or after another date.\",\r\n a: \"Date a number of months before/after another date.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"The date from which to calculate the result.\",\r\n },\r\n {\r\n name: \"months\",\r\n detail: \"The number of months before (negative) or after (positive) 'start_date' to calculate.\",\r\n },\r\n ],\r\n },\r\n SECOND: {\r\n d: \"Returns the second component of a specific time, in numeric format.\",\r\n a: \"Second component of a specific time.\",\r\n p: [\r\n {\r\n name: \"time\",\r\n detail: \"The time from which to calculate the second component\",\r\n },\r\n ],\r\n },\r\n MINUTE: {\r\n d: \"Returns the minute component of a specific time, in numeric format.\",\r\n a: \"Minute component of a specific time.\",\r\n p: [\r\n {\r\n name: \"time\",\r\n detail: \"The time from which to calculate the minute component.\",\r\n },\r\n ],\r\n },\r\n HOUR: {\r\n d: \"Returns the hour component of a specific time, in numeric format.\",\r\n a: \"Hour component of a specific time.\",\r\n p: [\r\n {\r\n name: \"time\",\r\n detail: \"The time from which to calculate the hour component.\",\r\n },\r\n ],\r\n },\r\n NOW: {\r\n d: \"Returns the current date and time as a date value.\",\r\n a: \"Current date and time as a date value.\",\r\n p: [],\r\n },\r\n NETWORKDAYS: {\r\n d: \"Returns the number of net working days between two provided days.\",\r\n a: \"Net working days between two provided days.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"The start date of the period from which to calculate the number of net working days.\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail: \"The end date of the period from which to calculate the number of net working days.\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail: \"A range or array constant containing the date serial numbers to consider holidays.\",\r\n },\r\n ],\r\n },\r\n NETWORKDAYS_INTL: {\r\n d:\r\n \"Returns the number of net working days between two provided days excluding specified weekend days and holidays.\",\r\n a: \"Net working days between two dates (specifying weekends).\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"The start date of the period from which to calculate the number of net working days.\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail: \"The end date of the period from which to calculate the number of net working days.\",\r\n },\r\n {\r\n name: \"weekend\",\r\n detail: \"A number or string representing which days of the week are considered weekends.\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail: \"A range or array constant containing the dates to consider as holidays.\",\r\n },\r\n ],\r\n },\r\n ISOWEEKNUM: {\r\n d: \"Returns a number representing the ISO week of the year where the provided date falls.\",\r\n a: \"ISO week number of the year.\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail:\r\n \"The date for which to determine the ISO week number. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n ],\r\n },\r\n WEEKNUM: {\r\n d: \"Returns a number representing the week of the year where the provided date falls.\",\r\n a: \"Week number of the year.\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail:\r\n \"The date for which to determine the week number. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"A number representing the day that a week starts on. Sunday = 1.\",\r\n },\r\n ],\r\n },\r\n WEEKDAY: {\r\n d: \"Returns a number representing the day of the week of the date provided.\",\r\n a: \"Day of the week of the date provided (as number).\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail:\r\n \"The date for which to determine the day of the week. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"type\",\r\n detail:\r\n \"A number indicating which numbering system to use to represent weekdays. By default, counts starting with Sunday = 1.\",\r\n },\r\n ],\r\n },\r\n DAY: {\r\n d: \"Returns the day of the month that a specific date falls on, in numeric format.\",\r\n a: \"Day of the month that a specific date falls on.\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail: \"The date from which to extract the day.\",\r\n },\r\n ],\r\n },\r\n DAYS: {\r\n d: \"Returns the number of days between two dates.\",\r\n a: \"Number of days between two dates.\",\r\n p: [\r\n {\r\n name: \"end_date\",\r\n detail: \"The end of the date range.\",\r\n },\r\n {\r\n name: \"start_date\",\r\n detail: \"The start of the date range.\",\r\n },\r\n ],\r\n },\r\n DAYS360: {\r\n d:\r\n \"Returns the difference between two days based on the 360 day year used in some financial interest calculations.\",\r\n a: \"Days between two dates on a 360-day year.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail:\r\n \"The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail:\r\n \"The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"method\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n DATE: {\r\n d: \"Converts a provided year, month, and day into a date.\",\r\n a: \"Converts year/month/day into a date.\",\r\n p: [\r\n {\r\n name: \"year\",\r\n detail: \"The year component of the date.\",\r\n },\r\n {\r\n name: \"month\",\r\n detail: \"The month component of the date.\",\r\n },\r\n {\r\n name: \"day\",\r\n detail: \"The day component of the date.\",\r\n },\r\n ],\r\n },\r\n DATEVALUE: {\r\n d: \"Converts a provided date string in a known format to a date value.\",\r\n a: \"Converts a date string to a date value.\",\r\n p: [\r\n {\r\n name: \"date_string\",\r\n detail: \"The string representing the date.\",\r\n },\r\n ],\r\n },\r\n DATEDIF: {\r\n d: \"Calculates the number of days, months, or years between two dates.\",\r\n a: \"Date Difference.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail:\r\n \"The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail:\r\n \"The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"unit\",\r\n detail:\r\n 'A string abbreviation for unit of time. For example, \"M\" for month. Accepted values are \"Y\",\"M\",\"D\",\"MD\",\"YM\",\"YD\".',\r\n },\r\n ],\r\n },\r\n WORKDAY: {\r\n d: \"Calculates the date after a number of working days from a specified start date.\",\r\n a: \"Number of working days from start date.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"The date from which to begin counting.\",\r\n },\r\n {\r\n name: \"num_days\",\r\n detail: \"The number of working days to advance from `start_date`. If negative, counts backwards.\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail: \"A range or array constant containing the dates to consider holidays.\",\r\n },\r\n ],\r\n },\r\n WORKDAY_INTL: {\r\n d:\r\n \"Calculates the date after a specified number of workdays excluding specified weekend days and holidays.\",\r\n a: \"Date after a number of workdays (specifying weekends).\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"The date from which to begin counting.\",\r\n },\r\n {\r\n name: \"num_days\",\r\n detail: \"The number of working days to advance from `start_date`. If negative, counts backwards.\",\r\n },\r\n {\r\n name: \"weekend\",\r\n detail: \"A number or string representing which days of the week are considered weekends.\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail: \"A range or array constant containing the dates to consider holidays.\",\r\n },\r\n ],\r\n },\r\n YEAR: {\r\n d: \"Returns the year specified by a given date.\",\r\n a: \"Year specified by a given date.\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail: \"The date from which to extract the year.\",\r\n },\r\n ],\r\n },\r\n YEARFRAC: {\r\n d:\r\n \"Returns the number of years, including fractional years, between two dates using a specified day count convention.\",\r\n a: \"Exact number of years between two dates.\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail:\r\n \"The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail:\r\n \"The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n TODAY: {\r\n d: \"Returns the current date as a date value.\",\r\n a: \"Current date as a date value.\",\r\n p: [],\r\n },\r\n MONTH: {\r\n d: \"Returns the month of the year a specific date falls in, in numeric format.\",\r\n a: \"Month of the year a specific date falls in.\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail: \"The date from which to extract the month.\",\r\n },\r\n ],\r\n },\r\n EFFECT: {\r\n d:\r\n \"Calculates the annual effective interest rate given the nominal rate and number of compounding periods per year.\",\r\n a: \"Annual effective interest rate.\",\r\n p: [\r\n {\r\n name: \"nominal_rate\",\r\n detail: \"The nominal interest rate per year.\",\r\n },\r\n {\r\n name: \"periods_per_year\",\r\n detail: \"The number of compounding periods per year.\",\r\n },\r\n ],\r\n },\r\n DOLLAR: {\r\n d: \"Formats a number into the currency specific to your spreadsheet locale.\",\r\n a: \"Formats a number as currency specific to your spreadsheet locale.\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"The value to be formatted.\",\r\n },\r\n {\r\n name: \"number_of_places\",\r\n detail: \"The number of decimal places to display.\",\r\n },\r\n ],\r\n },\r\n DOLLARDE: {\r\n d: \"Converts a price quotation given as a decimal fraction into a decimal value.\",\r\n a: \"Converts a decimal fraction to decimal value.\",\r\n p: [\r\n {\r\n name: \"fractional_price\",\r\n detail: \"The price quotation given using fractional decimal conventions.\",\r\n },\r\n {\r\n name: \"unit\",\r\n detail: \"The units of the fraction, e.g. `8` for 1/8ths or `32` for 1/32nds.\",\r\n },\r\n ],\r\n },\r\n DOLLARFR: {\r\n d: \"Converts a price quotation given as a decimal value into a decimal fraction.\",\r\n a: \"Converts a decimal value to decimal fraction.\",\r\n p: [\r\n {\r\n name: \"decimal_price\",\r\n detail: \"The price quotation given as a decimal value.\",\r\n },\r\n {\r\n name: \"unit\",\r\n detail: \"The units of the desired fraction, e.g. `8` for 1/8ths or `32` for 1/32nds.\",\r\n },\r\n ],\r\n },\r\n DB: {\r\n d:\r\n \"Calculates the depreciation of an asset for a specified period using the arithmetic declining balance method.\",\r\n a: \"Depreciation via declining balance method.\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"The initial cost of the asset.\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"The value of the asset at the end of depreciation.\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"The number of periods over which the asset is depreciated.\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"The single period within `life` for which to calculate depreciation.\",\r\n },\r\n {\r\n name: \"month\",\r\n detail: \"The number of months in the first year of depreciation.\",\r\n },\r\n ],\r\n },\r\n DDB: {\r\n d:\r\n \"Calculates the depreciation of an asset for a specified period using the double-declining balance method.\",\r\n a: \"Depreciation via double-declining balance method.\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"The initial cost of the asset.\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"The value of the asset at the end of depreciation.\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"The number of periods over which the asset is depreciated.\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"The single period within `life` for which to calculate depreciation.\",\r\n },\r\n {\r\n name: \"factor\",\r\n detail: \"The factor by which depreciation decreases.\",\r\n },\r\n ],\r\n },\r\n RATE: {\r\n d:\r\n \"Calculates the interest rate of an annuity investment based on constant-amount periodic payments and the assumption of a constant interest rate.\",\r\n a: \"Interest rate of an annuity investment.\",\r\n p: [\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"payment_per_period\",\r\n detail: \"The amount per period to be paid.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"future_value\",\r\n detail: \"The future value remaining after the final payment has been made.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n {\r\n name: \"rate_guess\",\r\n detail: \"An estimate for what the interest rate will be.\",\r\n },\r\n ],\r\n },\r\n CUMPRINC: {\r\n d:\r\n \"Calculates the cumulative principal paid over a range of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Cumulative principal paid over a set of periods.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"first_period\",\r\n detail: \"The number of the payment period to begin the cumulative calculation.\",\r\n },\r\n {\r\n name: \"last_period\",\r\n detail: \"The number of the payment period to end the cumulative calculation.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n COUPNUM: {\r\n d:\r\n \"Calculates the number of coupons, or interest payments, between the settlement date and the maturity date of the investment.\",\r\n a: \"Number of coupons between settlement and maturity.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n SYD: {\r\n d: \"Calculates the depreciation of an asset for a specified period using the sum of years digits method.\",\r\n a: \"Depreciation via sum of years digits method.\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"The initial cost of the asset.\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"The value of the asset at the end of depreciation.\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"The number of periods over which the asset is depreciated.\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"The single period within `life` for which to calculate depreciation.\",\r\n },\r\n ],\r\n },\r\n TBILLEQ: {\r\n d: \"Calculates the equivalent annualized rate of return of a US Treasury Bill based on discount rate.\",\r\n a: \"Equivalent rate of return for a Treasury bill.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"The discount rate of the bill at time of purchase.\",\r\n },\r\n ],\r\n },\r\n TBILLYIELD: {\r\n d: \"Calculates the yield of a US Treasury Bill based on price.\",\r\n a: \"The yield of a us treasury bill based on price.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"price\",\r\n detail: \"The price at which the security is bought per 100 face value.\",\r\n },\r\n ],\r\n },\r\n TBILLPRICE: {\r\n d: \"Calculates the price of a US Treasury Bill based on discount rate.\",\r\n a: \"Price of US treasury bill.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"The discount rate of the bill at time of purchase.\",\r\n },\r\n ],\r\n },\r\n PV: {\r\n d:\r\n \"Calculates the present value of an annuity investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Present value of an annuity investment.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"payment_amount\",\r\n detail: \"The amount per period to be paid.\",\r\n },\r\n {\r\n name: \"future_value\",\r\n detail: \"The future value remaining after the final payment has been made.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n ACCRINT: {\r\n d: \"Calculates the accrued interest of a security that has periodic payments.\",\r\n a: \"Accrued interest of security with periodic payments.\",\r\n p: [\r\n {\r\n name: \"issue\",\r\n detail: \"The date the security was initially issued.\",\r\n },\r\n {\r\n name: \"first_payment\",\r\n detail: \"The first date interest will be paid.\",\r\n },\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n {\r\n name: \"calc_method\",\r\n detail:\r\n \"[Optional-defaults to TRUE()] - A logical value that specifies the method used to calculate the total accrued interest when the settlement date is later than the first interest accrual date. \\n\\nIf the value is TRUE, the total accrued interest from the issue date to the settlement date is returned. \\n\\nIf the value is FALSE, return the accrued interest from the first interest accrual date to the settlement date.\",\r\n },\r\n ],\r\n },\r\n ACCRINTM: {\r\n d: \"Calculates the accrued interest of a security that pays interest at maturity.\",\r\n a: \"Accrued interest of security paying at maturity.\",\r\n p: [\r\n {\r\n name: \"issue\",\r\n detail: \"The date the security was initially issued.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity date of the security.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n COUPDAYBS: {\r\n d: \"Calculates the number of days from the first coupon, or interest payment, until settlement.\",\r\n a: \"Number of days from first coupon to settlement.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n COUPDAYS: {\r\n d:\r\n \"Calculates the number of days in the coupon, or interest payment, period that contains the specified settlement date.\",\r\n a: \"Days in coupon period containing settlement date.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n COUPDAYSNC: {\r\n d: \"Calculates the number of days from the settlement date until the next coupon, or interest payment.\",\r\n a: \"Days from settlement until next coupon.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n COUPNCD: {\r\n d: \"Calculates next coupon, or interest payment, date after the settlement date.\",\r\n a: \"Next coupon date after the settlement date.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n COUPPCD: {\r\n d: \"Calculates last coupon, or interest payment, date before the settlement date.\",\r\n a: \"Last coupon date before settlement date.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n FV: {\r\n d:\r\n \"Calculates the future value of an annuity investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Future value of an annuity investment.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"payment_amount\",\r\n detail: \"The amount per period to be paid.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n FVSCHEDULE: {\r\n d:\r\n \"Calculates the future value of some principal based on a specified series of potentially varying interest rates.\",\r\n a: \"Future value of principal from series of rates.\",\r\n p: [\r\n {\r\n name: \"principal\",\r\n detail: \"The amount of initial capital or value to compound against.\",\r\n },\r\n {\r\n name: \"rate_schedule\",\r\n detail: \"A series of interest rates to compound against the `principal`.\",\r\n },\r\n ],\r\n },\r\n YIELD: {\r\n d:\r\n \"Calculates the annual yield of a security paying periodic interest, such as a US Treasury Bond, based on price.\",\r\n a: \"Annual yield of a security paying periodic interest.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"price\",\r\n detail: \"The price at which the security is bought per 100 face value.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n YIELDDISC: {\r\n d: \"Calculates the annual yield of a discount (non-interest-bearing) security, based on price.\",\r\n a: \"Annual yield of a discount security.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"price\",\r\n detail: \"The price at which the security is bought per 100 face value.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n NOMINAL: {\r\n d:\r\n \"Calculates the annual nominal interest rate given the effective rate and number of compounding periods per year.\",\r\n a: \"Annual nominal interest rate.\",\r\n p: [\r\n {\r\n name: \"effective_rate\",\r\n detail: \"The effective interest rate per year.\",\r\n },\r\n {\r\n name: \"periods_per_year\",\r\n detail: \"The number of compounding periods per year.\",\r\n },\r\n ],\r\n },\r\n XIRR: {\r\n d:\r\n \"Calculates the internal rate of return of an investment based on a specified series of potentially irregularly spaced cash flows.\",\r\n a: \"Internal rate of return given non-periodic cashflows.\",\r\n p: [\r\n {\r\n name: \"cashflow_amounts\",\r\n detail: \"An array or range containing the income or payments associated with the investment.\",\r\n },\r\n {\r\n name: \"cashflow_dates\",\r\n detail: \"An array or range with dates corresponding to the cash flows in `cashflow_amounts`.\",\r\n },\r\n {\r\n name: \"rate_guess\",\r\n detail: \"An estimate for what the internal rate of return will be.\",\r\n },\r\n ],\r\n },\r\n MIRR: {\r\n d:\r\n \"Calculates the modified internal rate of return on an investment based on a series of periodic cash flows and the difference between the interest rate paid on financing versus the return received on reinvested income.\",\r\n a: \"Modified internal rate of return.\",\r\n p: [\r\n {\r\n name: \"cashflow_amounts\",\r\n detail: \"An array or range containing the income or payments associated with the investment.\",\r\n },\r\n {\r\n name: \"financing_rate\",\r\n detail: \"The interest rate paid on funds invested.\",\r\n },\r\n {\r\n name: \"reinvestment_return_rate\",\r\n detail:\r\n \"The return (as a percentage) earned on reinvestment of income received from the investment.\",\r\n },\r\n ],\r\n },\r\n IRR: {\r\n d: \"Calculates the internal rate of return on an investment based on a series of periodic cash flows.\",\r\n a: \"Internal rate of return given periodic cashflows.\",\r\n p: [\r\n {\r\n name: \"cashflow_amounts\",\r\n detail: \"An array or range containing the income or payments associated with the investment.\",\r\n },\r\n {\r\n name: \"rate_guess\",\r\n detail: \"An estimate for what the internal rate of return will be.\",\r\n },\r\n ],\r\n },\r\n NPV: {\r\n d:\r\n \"Calculates the net present value of an investment based on a series of periodic cash flows and a discount rate.\",\r\n a: \"The net present value of an investment based on a series of periodic cash flows and a discount rate.\",\r\n p: [\r\n {\r\n name: \"discount\",\r\n detail: \"The discount rate of the investment over one period.\",\r\n },\r\n {\r\n name: \"cashflow1\",\r\n detail: \"The first future cash flow.\",\r\n },\r\n {\r\n name: \"cashflow2\",\r\n detail: \"Additional future cash flows.\",\r\n },\r\n ],\r\n },\r\n XNPV: {\r\n d:\r\n \"Calculates the net present value of an investment based on a specified series of potentially irregularly spaced cash flows and a discount rate.\",\r\n a: \"Net present value given non-periodic cashflows.\",\r\n p: [\r\n {\r\n name: \"discount\",\r\n detail: \"The discount rate of the investment over one period.\",\r\n },\r\n {\r\n name: \"cashflow_amounts\",\r\n detail: \"A range of cells containing the income or payments associated with the investment.\",\r\n },\r\n {\r\n name: \"cashflow_dates\",\r\n detail: \"A range of cells with dates corresponding to the cash flows in `cashflow_amounts`.\",\r\n },\r\n ],\r\n },\r\n CUMIPMT: {\r\n d:\r\n \"Calculates the cumulative interest over a range of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Cumulative interest paid over a set of periods.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"first_period\",\r\n detail: \"The number of the payment period to begin the cumulative calculation.\",\r\n },\r\n {\r\n name: \"last_period\",\r\n detail: \"The number of the payment period to end the cumulative calculation.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n PMT: {\r\n d:\r\n \"Calculates the periodic payment for an annuity investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Periodic payment for an annuity investment.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"future_value\",\r\n detail: \"The future value remaining after the final payment has been made.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n IPMT: {\r\n d:\r\n \"Calculates the payment on interest for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Payment on interest for an investment.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"The amortization period, in terms of number of periods.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"future_value\",\r\n detail: \"The future value remaining after the final payment has been made.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n PPMT: {\r\n d:\r\n \"Calculates the payment on the principal of an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Payment on the principal of an investment.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"The amortization period, in terms of number of periods.\",\r\n },\r\n {\r\n name: \"number_of_periods\",\r\n detail: \"The number of payments to be made.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"future_value\",\r\n detail: \"The future value remaining after the final payment has been made.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n INTRATE: {\r\n d:\r\n \"Calculates the effective interest rate generated when an investment is purchased at one price and sold at another with no interest or dividends generated by the investment itself.\",\r\n a: \"Calculates effective interest rate.\",\r\n p: [\r\n {\r\n name: \"buy_date\",\r\n detail: \"The date of purchase of the investment.\",\r\n },\r\n {\r\n name: \"sell_date\",\r\n detail: \"The date of sale of the investment.\",\r\n },\r\n {\r\n name: \"buy_price\",\r\n detail: \"The price at which the investment was purchased.\",\r\n },\r\n {\r\n name: \"sell_price\",\r\n detail: \"The price at which the investment was sold.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n PRICE: {\r\n d:\r\n \"Calculates the price of a security paying periodic interest, such as a US Treasury Bond, based on expected yield.\",\r\n a: \"Price of a security paying periodic interest.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"yield\",\r\n detail: \"The expected annual yield of the security.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n PRICEDISC: {\r\n d: \"Calculates the price of a discount (non-interest-bearing) security, based on expected yield.\",\r\n a: \"Price of a discount security.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"The discount rate of the security at time of purchase.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n PRICEMAT: {\r\n d: \"Calculates the price of a security paying interest at maturity, based on expected yield.\",\r\n a: \"Price of security paying interest at maturity.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"issue\",\r\n detail: \"The date the security was initially issued.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"yield\",\r\n detail: \"The expected annual yield of the security.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n RECEIVED: {\r\n d:\r\n \"Calculates the amount received at maturity for an investment in fixed-income securities purchased on a given date.\",\r\n a: \"Amount received at maturity for a security.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"investment\",\r\n detail: \"The amount invested (irrespective of face value of each security).\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"The discount rate of the security invested in.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n DISC: {\r\n d: \"Calculates the discount rate of a security based on price.\",\r\n a: \"The discount rate of a security based on price.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"price\",\r\n detail: \"The price at which the security is bought per 100 face value.\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"The redemption amount per 100 face value, or par.\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n NPER: {\r\n d:\r\n \"Calculates the number of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n a: \"Number of payment periods for an investment.\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"The interest rate.\",\r\n },\r\n {\r\n name: \"payment_amount\",\r\n detail: \"The amount of each payment made.\",\r\n },\r\n {\r\n name: \"present_value\",\r\n detail: \"The current value of the annuity.\",\r\n },\r\n {\r\n name: \"future_value\",\r\n detail: \"The future value remaining after the final payment has been made.\",\r\n },\r\n {\r\n name: \"end_or_beginning\",\r\n detail: \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\",\r\n },\r\n ],\r\n },\r\n SLN: {\r\n d: \"Calculates the depreciation of an asset for one period using the straight-line method.\",\r\n a: \"Depreciation of asset using the straight-line method.\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"The initial cost of the asset.\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"The value of the asset at the end of depreciation.\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"The number of periods over which the asset is depreciated.\",\r\n },\r\n ],\r\n },\r\n DURATION: {\r\n d:\r\n \"Calculates the number of compounding periods required for an investment of a specified present value appreciating at a given rate to reach a target value.\",\r\n a: \"Number of periods for an investment to reach a value.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"yield\",\r\n detail: \"The expected annual yield of the security.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n MDURATION: {\r\n d:\r\n \"Calculates the modified Macaulay duration of a security paying periodic interest, such as a US Treasury Bond, based on expected yield.\",\r\n a: \"Modified Macaulay duration.\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail:\r\n \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"The maturity or end date of the security, when it can be redeemed at face, or par value.\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"The annualized rate of interest.\",\r\n },\r\n {\r\n name: \"yield\",\r\n detail: \"The expected annual yield of the security.\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail: \"The number of interest or coupon payments per year (1, 2, or 4).\",\r\n },\r\n {\r\n name: \"day_count_convention\",\r\n detail: \"An indicator of what day count method to use.\",\r\n },\r\n ],\r\n },\r\n BIN2DEC: {\r\n d: \"Converts a signed binary number to decimal format.\",\r\n a: \"Converts a signed binary number to decimal format.\",\r\n p: [\r\n {\r\n name: \"signed_binary_number\",\r\n detail: \"The signed 10-bit binary value to be converted to decimal, provided as a string.\",\r\n },\r\n ],\r\n },\r\n BIN2HEX: {\r\n d: \"Converts a signed binary number to signed hexadecimal format.\",\r\n a: \"Converts a binary number to hexadecimal.\",\r\n p: [\r\n {\r\n name: \"signed_binary_number\",\r\n detail:\r\n \"The signed 10-bit binary value to be converted to signed hexademical, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n BIN2OCT: {\r\n d: \"Converts a signed binary number to signed octal format.\",\r\n a: \"Converts a binary number to octal.\",\r\n p: [\r\n {\r\n name: \"signed_binary_number\",\r\n detail: \"The signed 10-bit binary value to be converted to signed octal, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n DEC2BIN: {\r\n d: \"Converts a decimal number to signed binary format.\",\r\n a: \"Converts a decimal number to signed binary format.\",\r\n p: [\r\n {\r\n name: \"decimal_number\",\r\n detail: \"The decimal value to be converted to signed binary, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n DEC2HEX: {\r\n d: \"Converts a decimal number to signed hexadecimal format.\",\r\n a: \"Converts a decimal number to hexadecimal.\",\r\n p: [\r\n {\r\n name: \"decimal_number\",\r\n detail: \"The decimal value to be converted to signed hexadecimal, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n DEC2OCT: {\r\n d: \"Converts a decimal number to signed octal format.\",\r\n a: \"Converts a decimal number to signed octal format.\",\r\n p: [\r\n {\r\n name: \"decimal_number\",\r\n detail: \"The decimal value to be converted to signed octal, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n HEX2BIN: {\r\n d: \"Converts a signed hexadecimal number to signed binary format.\",\r\n a: \"Converts a hexadecimal number to binary.\",\r\n p: [\r\n {\r\n name: \"signed_hexadecimal_number\",\r\n detail:\r\n \"The signed 40-bit hexadecimal value to be converted to signed binary, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n HEX2DEC: {\r\n d: \"Converts a signed hexadecimal number to decimal format.\",\r\n a: \"Converts a hexadecimal number to decimal.\",\r\n p: [\r\n {\r\n name: \"signed_hexadecimal_number\",\r\n detail: \"The signed 40-bit hexadecimal value to be converted to decimal, provided as a string.\",\r\n },\r\n ],\r\n },\r\n HEX2OCT: {\r\n d: \"Converts a signed hexadecimal number to signed octal format.\",\r\n a: \"Converts a hexadecimal number to octal.\",\r\n p: [\r\n {\r\n name: \"signed_hexadecimal_number\",\r\n detail:\r\n \"The signed 40-bit hexadecimal value to be converted to signed octal, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n OCT2BIN: {\r\n d: \"Converts a signed octal number to signed binary format.\",\r\n a: \"Converts an octal number to binary.\",\r\n p: [\r\n {\r\n name: \"signed_octal_number\",\r\n detail: \"The signed 30-bit octal value to be converted to signed binary, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n OCT2DEC: {\r\n d: \"Converts a signed octal number to decimal format.\",\r\n a: \"Converts a signed octal number to decimal format.\",\r\n p: [\r\n {\r\n name: \"signed_octal_number\",\r\n detail: \"The signed 30-bit octal value to be converted to decimal, provided as a string.\",\r\n },\r\n ],\r\n },\r\n OCT2HEX: {\r\n d: \"Converts a signed octal number to signed hexadecimal format.\",\r\n a: \"Converts an octal number to hexadecimal.\",\r\n p: [\r\n {\r\n name: \"signed_octal_number\",\r\n detail:\r\n \"The signed 30-bit octal value to be converted to signed hexadecimal, provided as a string.\",\r\n },\r\n {\r\n name: \"significant_digits\",\r\n detail: \"The number of significant digits to ensure in the result.\",\r\n },\r\n ],\r\n },\r\n COMPLEX: {\r\n d: \"Creates a complex number given real and imaginary coefficients.\",\r\n a: \"Creates a complex number.\",\r\n p: [\r\n {\r\n name: \"real_part\",\r\n detail: \"The real coefficient.\",\r\n },\r\n {\r\n name: \"imaginary_part\",\r\n detail: \"The imaginary coefficient.\",\r\n },\r\n {\r\n name: \"suffix\",\r\n detail:\r\n \"The suffix for the imaginary coefficient, can only be 'i' or 'j'. If omitted, 'i' will be used.\",\r\n },\r\n ],\r\n },\r\n IMREAL: {\r\n d: \"Returns the real coefficient of a complex number.\",\r\n a: \"The real coefficient of a complex number.\",\r\n p: [\r\n {\r\n name: \"complex_number\",\r\n detail: \"The complex number, in the a+bi or a+bj format.\",\r\n },\r\n ],\r\n },\r\n IMAGINARY: {\r\n d: \"Returns the imaginary coefficient of a complex number.\",\r\n a: \"The imaginary coefficient of a complex number.\",\r\n p: [\r\n {\r\n name: \"complex_number\",\r\n detail: \"The complex number, in the a+bi or a+bj format.\",\r\n },\r\n ],\r\n },\r\n IMCONJUGATE: {\r\n d: \"Returns the complex conjugate of a number.\",\r\n a: \"The complex conjugate of a number.\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"The complex number to calculate the conjugate for.\",\r\n },\r\n ],\r\n },\r\n IMABS: {\r\n d: \"Returns absolute value (or modulus) of a complex number.\",\r\n a: \"The absolute value of a complex number.\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"The complex number to calculate the absolute value of.\",\r\n },\r\n ],\r\n },\r\n DELTA: {\r\n d: \"Compare two numeric values, returning 1 if they're equal.\",\r\n a: \"Compare two numeric values.\",\r\n p: [\r\n {\r\n name: \"number1\",\r\n detail: \"The first number to compare.\",\r\n },\r\n {\r\n name: \"number2\",\r\n detail: \"The second number to compare.\",\r\n },\r\n ],\r\n },\r\n IMSUM: {\r\n d: \"Returns the sum of a series of complex numbers.\",\r\n a: \"Sum of a series of complex numbers.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first complex number or range to add together.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"Additional complex numbers or ranges to add to `value1`.\",\r\n },\r\n ],\r\n },\r\n IMSUB: {\r\n d: \"Returns the difference between two complex numbers.\",\r\n a: \"The difference between two complex numbers.\",\r\n p: [\r\n {\r\n name: \"first_number\",\r\n detail: \"The complex number to subtract second_number from.\",\r\n },\r\n {\r\n name: \"second_number\",\r\n detail: \"The complex number to subtract from first_number.\",\r\n },\r\n ],\r\n },\r\n IMPRODUCT: {\r\n d: \"Returns the result of multiplying a series of complex numbers together.\",\r\n a: \"Result of multiplying a series of complex numbers together.\",\r\n p: [\r\n {\r\n name: \"factor1\",\r\n detail: \"The first number or range to calculate for the product.\",\r\n },\r\n {\r\n name: \"factor2\",\r\n detail: \"Additional complex numbers or ranges to calculate for the product.\",\r\n },\r\n ],\r\n },\r\n IMDIV: {\r\n d: \"Returns one complex number divided by another.\",\r\n a: \"One complex number divided by another.\",\r\n p: [\r\n {\r\n name: \"dividend\",\r\n detail: \"The complex number to be divided.\",\r\n },\r\n {\r\n name: \"divisor\",\r\n detail: \"The complex number to divide by.\",\r\n },\r\n ],\r\n },\r\n NOT: {\r\n d: \"Returns the opposite of a logical value - `NOT(TRUE)` returns `FALSE`; `NOT(FALSE)` returns `TRUE`.\",\r\n a: \"Returns opposite of provided logical value.\",\r\n p: [\r\n {\r\n name: \"logical_expression\",\r\n detail:\r\n \"An expression or reference to a cell holding an expression that represents some logical value.\",\r\n },\r\n ],\r\n },\r\n TRUE: {\r\n d: \"Returns the logical value `TRUE`.\",\r\n a: \"Logical value `true`.\",\r\n p: [],\r\n },\r\n FALSE: {\r\n d: \"Returns the logical value `FALSE`.\",\r\n a: \"Logical value `false`.\",\r\n p: [],\r\n },\r\n AND: {\r\n d:\r\n \"Returns true if all of the provided arguments are logically true, and false if any of the provided arguments are logically false.\",\r\n a: \"Logical `and` operator.\",\r\n p: [\r\n {\r\n name: \"logical_expression1\",\r\n detail:\r\n \"An expression or reference to a cell containing an expression that represents some logical value, i.e. `TRUE` or `FALSE`, or an expression that can be coerced to a logical value.\",\r\n },\r\n {\r\n name: \"logical_expression2\",\r\n detail: \"More expressions that represent logical values.\",\r\n },\r\n ],\r\n },\r\n IFERROR: {\r\n d:\r\n \"Returns the first argument if it is not an error value, otherwise returns the second argument if present, or a blank if the second argument is absent.\",\r\n a: \"Value if it is not an error, otherwise 2nd argument.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to return if `value` itself is not an error.\",\r\n },\r\n {\r\n name: \"value_if_error\",\r\n detail: \"The value the function returns if `value` is an error.\",\r\n },\r\n ],\r\n },\r\n IF: {\r\n d: \"Returns one value if a logical expression is `TRUE` and another if it is `FALSE`.\",\r\n a: \"Returns value depending on logical expression.\",\r\n p: [\r\n {\r\n name: \"logical_expression\",\r\n detail:\r\n \"An expression or reference to a cell containing an expression that represents some logical value, i.e. `TRUE` or `FALSE`.\",\r\n },\r\n {\r\n name: \"value_if_true\",\r\n detail: \"The value the function returns if `logical_expression` is `TRUE`.\",\r\n },\r\n {\r\n name: \"value_if_false\",\r\n detail: \"The value the function returns if `logical_expression` is `FALSE`.\",\r\n },\r\n ],\r\n },\r\n OR: {\r\n d:\r\n \"Returns true if any of the provided arguments are logically true, and false if all of the provided arguments are logically false.\",\r\n a: \"Logical `or` operator.\",\r\n p: [\r\n {\r\n name: \"logical_expression1\",\r\n detail:\r\n \"An expression or reference to a cell containing an expression that represents some logical value, i.e. `TRUE` or `FALSE`, or an expression that can be coerced to a logical value.\",\r\n },\r\n {\r\n name: \"logical_expression2\",\r\n detail: \"More expressions that evaluate to logical values.\",\r\n },\r\n ],\r\n },\r\n NE: {\r\n d:\r\n \"Returns `TRUE` if two specified values are not equal and `FALSE` otherwise. Equivalent to the `!=` operator.\",\r\n a: \"Not equal.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The value to test against `value1` for inequality.\",\r\n },\r\n ],\r\n },\r\n EQ: {\r\n d:\r\n \"Returns `TRUE` if two specified values are equal and `FALSE` otherwise. Equivalent to the `==` operator.\",\r\n a: \"Equal.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first value.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The value to test against `value1` for equality.\",\r\n },\r\n ],\r\n },\r\n GT: {\r\n d:\r\n \"Returns `TRUE` if the first argument is strictly greater than the second, and `FALSE` otherwise. Equivalent to the `>` operator.\",\r\n a: \"Strictly greater than.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The value to test as being greater than `value2`.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The second value.\",\r\n },\r\n ],\r\n },\r\n GTE: {\r\n d:\r\n \"Returns `TRUE` if the first argument is greater than or equal to the second, and `FALSE` otherwise. Equivalent to the `>=` operator.\",\r\n a: \"Greater than or equal to.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The value to test as being greater than or equal to `value2`.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The second value.\",\r\n },\r\n ],\r\n },\r\n LT: {\r\n d:\r\n \"Returns `TRUE` if the first argument is strictly less than the second, and `FALSE` otherwise. Equivalent to the `<` operator.\",\r\n a: \"Less than.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The value to test as being less than `value2`.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The second value.\",\r\n },\r\n ],\r\n },\r\n LTE: {\r\n d:\r\n \"Returns `TRUE` if the first argument is less than or equal to the second, and `FALSE` otherwise. Equivalent to the `<=` operator.\",\r\n a: \"Less than or equal to.\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The value to test as being less than or equal to `value2`.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The second value.\",\r\n },\r\n ],\r\n },\r\n ADD: {\r\n d: \"Returns the sum of two numbers. Equivalent to the `+` operator.\",\r\n a: \"Sum of two numbers\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The first addend.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The second addend.\",\r\n },\r\n ],\r\n },\r\n MINUS: {\r\n d: \"Returns the difference of two numbers. Equivalent to the `-` operator.\",\r\n a: \"Difference of two numbers\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The minuend, or number to be subtracted from.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The subtrahend, or number to subtract from `value1`.\",\r\n },\r\n ],\r\n },\r\n MULTIPLY: {\r\n d: \"Returns the product of two numbers. Equivalent to the `*` operator.\",\r\n a: \"Product of two numbers\",\r\n p: [\r\n {\r\n name: \"factor1\",\r\n detail: \"The first multiplicand.\",\r\n },\r\n {\r\n name: \"factor2\",\r\n detail: \"The second multiplicand.\",\r\n },\r\n ],\r\n },\r\n DIVIDE: {\r\n d: \"Returns one number divided by another. Equivalent to the `/` operator.\",\r\n a: \"One number divided by another\",\r\n p: [\r\n {\r\n name: \"dividend\",\r\n detail: \"The number to be divided.\",\r\n },\r\n {\r\n name: \"divisor\",\r\n detail: \"The number to divide by.\",\r\n },\r\n ],\r\n },\r\n CONCAT: {\r\n d: \"Returns the concatenation of two values. Equivalent to the `&` operator.\",\r\n a: \"Concatenation of two values\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"The value to which `value2` will be appended.\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"The value to append to `value1`.\",\r\n },\r\n ],\r\n },\r\n UNARY_PERCENT: {\r\n d: \"Returns a value interpreted as a percentage; that is, `UNARY_PERCENT(100)` equals `1`.\",\r\n a: \"Value interpreted as a percentage.\",\r\n p: [\r\n {\r\n name: \"percentage\",\r\n detail: \"The value to interpret as a percentage.\",\r\n },\r\n ],\r\n },\r\n CONCATENATE: {\r\n d: \"Appends strings to one another.\",\r\n a: \"Appends strings to one another.\",\r\n p: [\r\n {\r\n name: \"string1\",\r\n detail: \"The initial string.\",\r\n },\r\n {\r\n name: \"string2\",\r\n detail: \"More strings to append in sequence.\",\r\n },\r\n ],\r\n },\r\n CODE: {\r\n d: \"Returns the numeric Unicode map value of the first character in the string provided.\",\r\n a: \"Numeric unicode map value of character.\",\r\n p: [\r\n {\r\n name: \"string\",\r\n detail: \"The string whose first character's Unicode map value will be returned.\",\r\n },\r\n ],\r\n },\r\n CHAR: {\r\n d: \"Convert a number into a character according to the current Unicode table.\",\r\n a: \"Gets character associated with number.\",\r\n p: [\r\n {\r\n name: \"table_number\",\r\n detail: \"The number of the character to look up from the current Unicode table in decimal format.\",\r\n },\r\n ],\r\n },\r\n ARABIC: {\r\n d: \"Computes the value of a Roman numeral.\",\r\n a: \"Computes the value of a roman numeral.\",\r\n p: [\r\n {\r\n name: \"roman_numeral\",\r\n detail: \"The Roman numeral to format, whose value must be between 1 and 3999, inclusive.\",\r\n },\r\n ],\r\n },\r\n ROMAN: {\r\n d: \"Formats a number in Roman numerals.\",\r\n a: \"Formats a number in Roman numerals.\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"The number to format, between 1 and 3999, inclusive.\",\r\n },\r\n ],\r\n },\r\n REGEXEXTRACT: {\r\n d: \"Extracts matching substrings according to a regular expression.\",\r\n a: \"Extracts matching substrings with regular expression.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The input text.\",\r\n },\r\n {\r\n name: \"regular_expression\",\r\n detail: \"The first part of `text` that matches this expression will be returned.\",\r\n },\r\n ],\r\n },\r\n REGEXMATCH: {\r\n d: \"Whether a piece of text matches a regular expression.\",\r\n a: \"Whether a piece of text matches regular expression.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The text to be tested against the regular expression.\",\r\n },\r\n {\r\n name: \"regular_expression\",\r\n detail: \"The regular expression to test the text against.\",\r\n },\r\n ],\r\n },\r\n REGEXREPLACE: {\r\n d: \"Replaces part of a text string with a different text string using regular expressions.\",\r\n a: \"Replaces text with regular expressions.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The text, a part of which will be replaced.\",\r\n },\r\n {\r\n name: \"regular_expression\",\r\n detail: \"The regular expression. All matching instances in `text` will be replaced.\",\r\n },\r\n {\r\n name: \"replacement\",\r\n detail: \"The text which will be inserted into the original text.\",\r\n },\r\n ],\r\n },\r\n T: {\r\n d: \"Returns string arguments as text, or the empty string if the value is not text.\",\r\n a: \"String arguments as text.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument to be converted to text.\",\r\n },\r\n ],\r\n },\r\n FIXED: {\r\n d: \"Formats a number with a fixed number of decimal places.\",\r\n a: \"Formats number with fixed number of decimal places.\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"The number to format.\",\r\n },\r\n {\r\n name: \"number_of_places\",\r\n detail: \"The number of decimal places to display in the result.\",\r\n },\r\n {\r\n name: \"suppress_separator\",\r\n detail:\r\n \"Whether or not to suppress the thousands separator used in some locales (e.g. `1,000` becomes `1000`). Separators will be present if this value is 0 or omitted, and absent otherwise.\",\r\n },\r\n ],\r\n },\r\n FIND: {\r\n d:\r\n \"Returns the position at which a string is first found within text where the capitalization of letters matters. Returns `#VALUE!` if the string is not found.\",\r\n a: \"First position of string found in text, case-sensitive.\",\r\n p: [\r\n {\r\n name: \"search_for\",\r\n detail: \"The string to look for within `text_to_search`.\",\r\n },\r\n {\r\n name: \"text_to_search\",\r\n detail: \"The text to search for the first occurrence of `search_for`.\",\r\n },\r\n {\r\n name: \"starting_at\",\r\n detail: \"The character within `text_to_search` at which to start the search.\",\r\n },\r\n ],\r\n },\r\n FINDB: {\r\n d: \"Returns the position at which a string is first found within text counting each double-character as 2.\",\r\n a: \"Position at which a string is first found within text (binary).\",\r\n p: [\r\n {\r\n name: \"search_for\",\r\n detail: \"The string to look for within `text_to_search`.\",\r\n },\r\n {\r\n name: \"text_to_search\",\r\n detail: \"The text to search for the first occurrence of `search_for`.\",\r\n },\r\n {\r\n name: \"starting_at\",\r\n detail: \"The character within `text_to_search` at which to start the search.\",\r\n },\r\n ],\r\n },\r\n JOIN: {\r\n d: \"Concatenates the elements of one or more one-dimensional arrays using a specified delimiter.\",\r\n a: \"Concatenates elements of arrays with delimiter.\",\r\n p: [\r\n {\r\n name: \"delimiter\",\r\n detail: \"The character or string to place between each concatenated value.\",\r\n },\r\n {\r\n name: \"value_or_array1\",\r\n detail: \"The value or values to be appended using `delimiter`.\",\r\n },\r\n {\r\n name: \"value_or_array2\",\r\n detail: \"More values to be appended using `delimiter`.\",\r\n },\r\n ],\r\n },\r\n LEFT: {\r\n d: \"Returns a substring from the beginning of a specified string.\",\r\n a: \"Substring from beginning of specified string.\",\r\n p: [\r\n {\r\n name: \"string\",\r\n detail: \"The string from which the left portion will be returned.\",\r\n },\r\n {\r\n name: \"number_of_characters\",\r\n detail: \"The number of characters to return from the left side of `string`.\",\r\n },\r\n ],\r\n },\r\n RIGHT: {\r\n d: \"Returns a substring from the end of a specified string.\",\r\n a: \"A substring from the end of a specified string.\",\r\n p: [\r\n {\r\n name: \"string\",\r\n detail: \"The string from which the right portion will be returned.\",\r\n },\r\n {\r\n name: \"number_of_characters\",\r\n detail: \"The number of characters to return from the right side of `string`.\",\r\n },\r\n ],\r\n },\r\n MID: {\r\n d: \"Returns a segment of a string.\",\r\n a: \"A segment of a string.\",\r\n p: [\r\n {\r\n name: \"string\",\r\n detail: \"The string to extract a segment from.\",\r\n },\r\n {\r\n name: \"starting_at\",\r\n detail:\r\n \"The index from the left of `string` from which to begin extracting. The first character in `string` has the index 1.\",\r\n },\r\n {\r\n name: \"extract_length\",\r\n detail: \"The length of the segment to extract.\",\r\n },\r\n ],\r\n },\r\n LEN: {\r\n d: \"Returns the length of a string.\",\r\n a: \"Length of a string.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The string whose length will be returned.\",\r\n },\r\n ],\r\n },\r\n LENB: {\r\n d: \"Returns the length of a string in bytes.\",\r\n a: \"Length of a string in bytes.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The string whose length will be returned.\",\r\n },\r\n ],\r\n },\r\n LOWER: {\r\n d: \"Converts a specified string to lowercase.\",\r\n a: \"Converts a specified string to lowercase.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The string to convert to lowercase.\",\r\n },\r\n ],\r\n },\r\n UPPER: {\r\n d: \"Converts a specified string to uppercase.\",\r\n a: \"Converts a specified string to uppercase.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The string to convert to uppercase.\",\r\n },\r\n ],\r\n },\r\n EXACT: {\r\n d: \"Tests whether two strings are identical.\",\r\n a: \"Tests whether two strings are identical.\",\r\n p: [\r\n {\r\n name: \"string1\",\r\n detail: \"The first string to compare\",\r\n },\r\n {\r\n name: \"string2\",\r\n detail: \"The second string to compare\",\r\n },\r\n ],\r\n },\r\n REPLACE: {\r\n d: \"Replaces part of a text string with a different text string.\",\r\n a: \"Replaces part of a text string with different text.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The text, a part of which will be replaced.\",\r\n },\r\n {\r\n name: \"position\",\r\n detail: \"The position where the replacement will begin (starting from 1).\",\r\n },\r\n {\r\n name: \"length\",\r\n detail: \"The number of characters in the text to be replaced.\",\r\n },\r\n {\r\n name: \"new_text\",\r\n detail: \"The text which will be inserted into the original text.\",\r\n },\r\n ],\r\n },\r\n REPT: {\r\n d: \"Returns specified text repeated a number of times.\",\r\n a: \"Specified text repeated a number of times.\",\r\n p: [\r\n {\r\n name: \"text_to_repeat\",\r\n detail: \"The character or string to repeat.\",\r\n },\r\n {\r\n name: \"number_of_repetitions\",\r\n detail: \"The number of times `text_to_repeat` should appear in the value returned.\",\r\n },\r\n ],\r\n },\r\n SEARCH: {\r\n d:\r\n \"Returns the position at which a string is first found within text and ignores capitalization of letters. Returns `#VALUE!` if the string is not found.\",\r\n a: \"First position of string found in text, ignoring case.\",\r\n p: [\r\n {\r\n name: \"search_for\",\r\n detail: \"The string to look for within `text_to_search`.\",\r\n },\r\n {\r\n name: \"text_to_search\",\r\n detail: \"The text to search for the first occurrence of `search_for`.\",\r\n },\r\n {\r\n name: \"starting_at\",\r\n detail: \"The character within `text_to_search` at which to start the search.\",\r\n },\r\n ],\r\n },\r\n SUBSTITUTE: {\r\n d: \"Replaces existing text with new text in a string.\",\r\n a: \"Replaces existing text with new text in a string.\",\r\n p: [\r\n {\r\n name: \"text_to_search\",\r\n detail: \"The text within which to search and replace.\",\r\n },\r\n {\r\n name: \"search_for\",\r\n detail: \"The string to search for within `text_to_search`.\",\r\n },\r\n {\r\n name: \"replace_with\",\r\n detail: \"The string that will replace `search_for`.\",\r\n },\r\n {\r\n name: \"occurrence_number\",\r\n detail:\r\n \"The instance of `search_for` within `text_to_search` to replace with `replace_with`. By default, all occurrences of `search_for` are replaced; however, if `occurrence_number` is specified, only the indicated instance of `search_for` is replaced.\",\r\n },\r\n ],\r\n },\r\n CLEAN: {\r\n d: \"Returns the text with the non-printable ASCII characters removed.\",\r\n a: \"Removes non-printable characters from a piece of text.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The text whose non-printable characters are to be removed.\",\r\n },\r\n ],\r\n },\r\n TEXT: {\r\n d: \"Converts a number into text according to a specified format.\",\r\n a: \"Formats a number into text.\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"The number, date, or time to format.\",\r\n },\r\n {\r\n name: \"format\",\r\n detail: \"The pattern by which to format the number, enclosed in quotation marks.\",\r\n },\r\n ],\r\n },\r\n TRIM: {\r\n d: \"Removes leading, trailing, and repeated spaces in text.\",\r\n a: \"Removes space characters.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The text or reference to a cell containing text to be trimmed.\",\r\n },\r\n ],\r\n },\r\n VALUE: {\r\n d:\r\n \"Converts a string in any of the date, time or number formats that Google Sheets understands into a number.\",\r\n a: \"Converts a date/time/number string into a number.\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"The string containing the value to be converted.\",\r\n },\r\n ],\r\n },\r\n PROPER: {\r\n d: \"Capitalizes each word in a specified string.\",\r\n a: \"Capitalizes each word in a specified string.\",\r\n p: [\r\n {\r\n name: \"text_to_capitalize\",\r\n detail:\r\n \"The text which will be returned with the first letter of each word in uppercase and all other letters in lowercase.\",\r\n },\r\n ],\r\n },\r\n CONVERT: {\r\n d: \"Converts a numeric value to a different unit of measure.\",\r\n a: \"Unit conversion for numbers.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The numeric value in `start_unit` to convert to `end_unit`.\",\r\n },\r\n {\r\n name: \"start_unit\",\r\n detail: \"The starting unit, the unit currently assigned to `value`.\",\r\n },\r\n {\r\n name: \"end_unit\",\r\n detail: \"The unit of measure into which to convert the argument, `value`.\",\r\n },\r\n ],\r\n },\r\n SUMX2MY2: {\r\n d: \"Calculates the sum of the differences of the squares of values in two arrays.\",\r\n a: \"Sum of the differences of squares.\",\r\n p: [\r\n {\r\n name: \"array_x\",\r\n detail:\r\n \"The array or range of values whose squares will be reduced by the squares of corresponding entries in `array_y` and added together.\",\r\n },\r\n {\r\n name: \"array_y\",\r\n detail:\r\n \"The array or range of values whose squares will be subtracted from the squares of corresponding entries in `array_x` and added together.\",\r\n },\r\n ],\r\n },\r\n SUMX2PY2: {\r\n d: \"Calculates the sum of the sums of the squares of values in two arrays.\",\r\n a: \"Sum of the sums of squares.\",\r\n p: [\r\n {\r\n name: \"array_x\",\r\n detail:\r\n \"The array or range of values whose squares will be added to the squares of corresponding entries in `array_y` and added together.\",\r\n },\r\n {\r\n name: \"array_y\",\r\n detail:\r\n \"The array or range of values whose squares will be added to the squares of corresponding entries in `array_x` and added together.\",\r\n },\r\n ],\r\n },\r\n SUMXMY2: {\r\n d: \"Calculates the sum of the squares of differences of values in two arrays.\",\r\n a: \"Sum of the squares of differences.\",\r\n p: [\r\n {\r\n name: \"array_x\",\r\n detail:\r\n \"The array or range of values that will be reduced by corresponding entries in `array_y`, squared, and added together.\",\r\n },\r\n {\r\n name: \"array_y\",\r\n detail:\r\n \"The array or range of values that will be subtracted from corresponding entries in `array_x`, the result squared, and all such results added together.\",\r\n },\r\n ],\r\n },\r\n TRANSPOSE: {\r\n d: \"Transposes the rows and columns of an array or range of cells.\",\r\n a: \"Transposes the rows and columns of an array.\",\r\n p: [\r\n {\r\n name: \"array_or_range\",\r\n detail: \"The array or range whose rows and columns will be swapped.\",\r\n },\r\n ],\r\n },\r\n TREND: {\r\n d:\r\n \"Given partial data about a linear trend, fits an ideal linear trend using the least squares method and/or predicts further values.\",\r\n a: \"Fits points to linear trend derived via least-squares.\",\r\n p: [\r\n {\r\n name: \"known_data_y\",\r\n detail:\r\n \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal linear trend.\",\r\n },\r\n {\r\n name: \"known_data_x\",\r\n detail: \"The values of the independent variable(s) corresponding with `known_data_y`.\",\r\n },\r\n {\r\n name: \"new_data_x\",\r\n detail: \"The data points to return the `y` values for on the ideal curve fit.\",\r\n },\r\n {\r\n name: \"b\",\r\n detail:\r\n \"Given a general linear form of `y = m*x+b` for a curve fit, calculates `b` if `TRUE` or forces `b` to be `0` and only calculates the `m` values if `FALSE`, i.e. forces the curve fit to pass through the origin.\",\r\n },\r\n ],\r\n },\r\n FREQUENCY: {\r\n d: \"Calculates the frequency distribution of a one-column array into specified classes.\",\r\n a: \"The frequency distribution of array.\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"The array or range containing the values to be counted.\",\r\n },\r\n {\r\n name: \"classes\",\r\n detail: \"The array or range containing the set of classes.\",\r\n },\r\n ],\r\n },\r\n GROWTH: {\r\n d:\r\n \"Given partial data about an exponential growth trend, fits an ideal exponential growth trend and/or predicts further values.\",\r\n a: \"Fits points to exponential growth trend.\",\r\n p: [\r\n {\r\n name: \"known_data_y\",\r\n detail:\r\n \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal exponential growth curve.\",\r\n },\r\n {\r\n name: \"known_data_x\",\r\n detail: \"The values of the independent variable(s) corresponding with `known_data_y`.\",\r\n },\r\n {\r\n name: \"new_data_x\",\r\n detail: \"The data points to return the `y` values for on the ideal curve fit.\",\r\n },\r\n {\r\n name: \"b\",\r\n detail:\r\n \"Given a general exponential form of `y = b*m^x` for a curve fit, calculates `b` if `TRUE` or forces `b` to be `1` and only calculates the `m` values if `FALSE`.\",\r\n },\r\n ],\r\n },\r\n LINEST: {\r\n d:\r\n \"Given partial data about a linear trend, calculates various parameters about the ideal linear trend using the least-squares method.\",\r\n a: \"Best-fit linear trend via least-squares.\",\r\n p: [\r\n {\r\n name: \"known_data_y\",\r\n detail:\r\n \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal linear trend.\",\r\n },\r\n {\r\n name: \"known_data_x\",\r\n detail: \"The values of the independent variable(s) corresponding with `known_data_y`.\",\r\n },\r\n {\r\n name: \"calculate_b\",\r\n detail:\r\n \"Given a linear form of `y = m*x+b`, calculates the y-intercept (`b`) if `TRUE`. Otherwise, forces `b` to be `0` and only calculates the `m` values if `FALSE`, i.e. forces the curve fit to pass through the origin.\",\r\n },\r\n {\r\n name: \"verbose\",\r\n detail:\r\n \"A flag specifying whether to return additional regression statistics or only the linear coefficients and the y-intercept (default).\",\r\n },\r\n ],\r\n },\r\n LOGEST: {\r\n d:\r\n \"Given partial data about an exponential growth curve, calculates various parameters about the best fit ideal exponential growth curve.\",\r\n a: \"Best-fit exponential growth curve.\",\r\n p: [\r\n {\r\n name: \"known_data_y\",\r\n detail:\r\n \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal exponential growth curve.\",\r\n },\r\n {\r\n name: \"known_data_x\",\r\n detail: \"The values of the independent variable(s) corresponding with `known_data_y`.\",\r\n },\r\n {\r\n name: \"b\",\r\n detail:\r\n \"Given a general exponential form of `y = b*m^x` for a curve fit, calculates `b` if `TRUE` or forces `b` to be `1` and only calculates the `m` values if `FALSE`.\",\r\n },\r\n {\r\n name: \"verbose\",\r\n detail:\r\n \"A flag specifying whether to return additional regression statistics or only the calculated coefficient and exponents.\",\r\n },\r\n ],\r\n },\r\n MDETERM: {\r\n d: \"Returns the matrix determinant of a square matrix specified as an array or range.\",\r\n a: \"Matrix determinant of a square matrix.\",\r\n p: [\r\n {\r\n name: \"square_matrix\",\r\n detail:\r\n \"An array or range with an equal number of rows and columns representing a matrix whose determinant will be calculated.\",\r\n },\r\n ],\r\n },\r\n MINVERSE: {\r\n d: \"Returns the multiplicative inverse of a square matrix specified as an array or range.\",\r\n a: \"Multiplicative inverse of square matrix.\",\r\n p: [\r\n {\r\n name: \"square_matrix\",\r\n detail:\r\n \"An array or range with an equal number of rows and columns representing a matrix whose multiplicative inverse will be calculated.\",\r\n },\r\n ],\r\n },\r\n MMULT: {\r\n d: \"Calculates the matrix product of two matrices specified as arrays or ranges.\",\r\n a: \"The matrix product of two matrices.\",\r\n p: [\r\n {\r\n name: \"matrix1\",\r\n detail:\r\n \"The first matrix in the matrix multiplication operation, represented as an array or range.\",\r\n },\r\n {\r\n name: \"matrix2\",\r\n detail:\r\n \"The second matrix in the matrix multiplication operation, represented as an array or range.\",\r\n },\r\n ],\r\n },\r\n SUMPRODUCT: {\r\n d: \"Calculates the sum of the products of corresponding entries in two equal-sized arrays or ranges.\",\r\n a: \"Sum of products of elements in two arrays.\",\r\n p: [\r\n {\r\n name: \"array1\",\r\n detail:\r\n \"The first array or range whose entries will be multiplied with corresponding entries in the second such array or range.\",\r\n },\r\n {\r\n name: \"array2\",\r\n detail:\r\n \"The second array or range whose entries will be multiplied with corresponding entries in the first such array or range.\",\r\n },\r\n ],\r\n },\r\n ISFORMULA: {\r\n d: \"Checks whether a value is a formula.\",\r\n a: \"Whether a value is a formula.\",\r\n p: [\r\n {\r\n name: \"cell\",\r\n detail: \"The cell to be verified as containing a formula.\",\r\n },\r\n ],\r\n },\r\n CELL: {\r\n d: \"Returns the requested information about the specified cell.\",\r\n a: \"Gets information about a cell.\",\r\n p: [\r\n {\r\n name: \"info_type\",\r\n detail: \"The type of information requested (see article for available types)\",\r\n },\r\n {\r\n name: \"reference\",\r\n detail: \"The reference to the cell.\",\r\n },\r\n ],\r\n },\r\n NA: {\r\n d: 'Returns the \"value not available\" error, `#N/A`.',\r\n a: \"The `#N/A` error.\",\r\n p: [],\r\n },\r\n ERROR_TYPE: {\r\n d: \"Returns a number corresponding to the error value in a different cell.\",\r\n a: \"Error value of cell (as number).\",\r\n p: [\r\n {\r\n name: \"reference\",\r\n detail:\r\n \"The cell to find the error number for although you can also provide the error value directly.\",\r\n },\r\n ],\r\n },\r\n ISBLANK: {\r\n d: \"Checks whether the referenced cell is empty.\",\r\n a: \"Whether the referenced cell is empty.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"Reference to the cell that will be checked for emptiness.\",\r\n },\r\n ],\r\n },\r\n ISERR: {\r\n d: \"Checks whether a value is an error other than `#N/A`.\",\r\n a: \"Whether a value is an error other than `#n/a`.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as an error type other than `#N/A`.\",\r\n },\r\n ],\r\n },\r\n ISERROR: {\r\n d: \"Checks whether a value is an error.\",\r\n a: \"Whether a value is an error.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as an error type.\",\r\n },\r\n ],\r\n },\r\n ISLOGICAL: {\r\n d: \"Checks whether a value is `TRUE` or `FALSE`.\",\r\n a: \"Whether a value is `true` or `false`.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as a logical `TRUE` or `FALSE`.\",\r\n },\r\n ],\r\n },\r\n ISNA: {\r\n d: \"Checks whether a value is the error `#N/A`.\",\r\n a: \"Whether a value is the error `#n/a`.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be compared with the error value `#N/A`.\",\r\n },\r\n ],\r\n },\r\n ISNONTEXT: {\r\n d: \"Checks whether a value is non-textual.\",\r\n a: \"Whether a value is non-textual.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be checked.\",\r\n },\r\n ],\r\n },\r\n ISNUMBER: {\r\n d: \"Checks whether a value is a number.\",\r\n a: \"Whether a value is a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as a number.\",\r\n },\r\n ],\r\n },\r\n ISREF: {\r\n d: \"Checks whether a value is a valid cell reference.\",\r\n a: \"Whether a value is a valid cell reference.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as a cell reference.\",\r\n },\r\n ],\r\n },\r\n ISTEXT: {\r\n d: \"Checks whether a value is text.\",\r\n a: \"Whether a value is text.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as text.\",\r\n },\r\n ],\r\n },\r\n TYPE: {\r\n d: \"Returns a number associated with the type of data passed into the function.\",\r\n a: \"Get the type of a value.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value whose type is to be determined.\",\r\n },\r\n ],\r\n },\r\n N: {\r\n d: \"Returns the argument provided as a number. Text is converted to 0 and errors are returned as-is.\",\r\n a: \"Argument provided as a number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument to be converted to a number.\",\r\n },\r\n ],\r\n },\r\n TO_DATE: {\r\n d: \"Converts a provided number to a date.\",\r\n a: \"Converts a provided number to a date.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument or reference to a cell to be converted to a date.\",\r\n },\r\n ],\r\n },\r\n TO_PURE_NUMBER: {\r\n d:\r\n \"Converts a provided date/time, percentage, currency or other formatted numeric value to a pure number without formatting.\",\r\n a: \"Converts any numeric value to a pure number.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument or reference to a cell to be converted to a pure number.\",\r\n },\r\n ],\r\n },\r\n TO_TEXT: {\r\n d: \"Converts a provided numeric value to a text value.\",\r\n a: \"Converts a provided numeric value to a text value.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument or reference to a cell to be converted to text.\",\r\n },\r\n ],\r\n },\r\n TO_DOLLARS: {\r\n d: \"Converts a provided number to a dollar value.\",\r\n a: \"Converts a provided number to a dollar value.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument or reference to a cell to be converted to a dollar value.\",\r\n },\r\n ],\r\n },\r\n TO_PERCENT: {\r\n d: \"Converts a provided number to a percentage.\",\r\n a: \"Converts a provided number to a percentage.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The argument or reference to a cell to be converted to a percentage.\",\r\n },\r\n ],\r\n },\r\n DGET: {\r\n d: \"Returns a single value from a database table-like array or range using a SQL-like query.\",\r\n a: \"Single value from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DMAX: {\r\n d: \"Returns the maximum value selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Maximum of values from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DMIN: {\r\n d: \"Returns the minimum value selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Minimum of values from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DAVERAGE: {\r\n d:\r\n \"Returns the average of a set of values selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Average of a set of values from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DCOUNT: {\r\n d: \"Counts numeric values selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Counts values from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DCOUNTA: {\r\n d:\r\n \"Counts values, including text, selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Counts values and text from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DPRODUCT: {\r\n d:\r\n \"Returns the product of values selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Product of values from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DSTDEV: {\r\n d:\r\n \"Returns the standard deviation of a population sample selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Standard deviation of population sample from table.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DSTDEVP: {\r\n d:\r\n \"Returns the standard deviation of an entire population selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Standard deviation of entire population from table.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DSUM: {\r\n d: \"Returns the sum of values selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Sum of values from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DVAR: {\r\n d:\r\n \"Returns the variance of a population sample selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Variance of population sample from table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n DVARP: {\r\n d:\r\n \"Returns the variance of an entire population selected from a database table-like array or range using a SQL-like query.\",\r\n a: \"Variance of a population from a table-like range.\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail:\r\n \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\",\r\n },\r\n {\r\n name: \"field\",\r\n detail: \"Indicates which column in `database` contains the values to be extracted and operated on.\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail:\r\n \"An array or range containing zero or more criteria to filter the `database` values by before operating.\",\r\n },\r\n ],\r\n },\r\n AGE_BY_IDCARD: {\r\n d: \"Calculate the age based on the Chinese ID number. Support 15 or 18\",\r\n a: \"Get age based on ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n {\r\n name: \"Deadline\",\r\n detail: \"The deadline or range of age calculation. The default is the current day.\",\r\n },\r\n ],\r\n },\r\n SEX_BY_IDCARD: {\r\n d: \"Calculate gender based on Chinese ID number. Support 15 or 18\",\r\n a: \"Get gender based on ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n ],\r\n },\r\n BIRTHDAY_BY_IDCARD: {\r\n d: \"Calculate the birthday based on the Chinese ID number. Support 15 or 18\",\r\n a: \"Get the birthday based on the ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n {\r\n name: \"Birthday format\",\r\n detail: \"Date type, default:0:[1900/01/01], 1:[1900-01-01], 2:[1900\u5E741\u67081\u65E5]\",\r\n },\r\n ],\r\n },\r\n PROVINCE_BY_IDCARD: {\r\n d: \"Calculate the province of birthplace based on the Chinese ID number. Support 15 or 18\",\r\n a: \"Get the province of birthplace based on the ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n ],\r\n },\r\n CITY_BY_IDCARD: {\r\n d: \"Calculate the city of birthplace based on the Chinese ID number. Support 15 or 18\",\r\n a: \"Get the city of birthplace based on the ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n ],\r\n },\r\n STAR_BY_IDCARD: {\r\n d: \"Calculate the constellation based on the Chinese ID number. Support 15 or 18\",\r\n a: \"Get the constellation based on the ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n ],\r\n },\r\n ANIMAL_BY_IDCARD: {\r\n d: \"Calculate the zodiac (rat, ox, tiger, rabbit...) based on the Chinese ID number. Support 15 or 18\",\r\n a: \"Get the zodiac according to the ID number.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n ],\r\n },\r\n ISIDCARD: {\r\n d: \"Verify that the format of the ID card is correct. Support 15 or 18\",\r\n a: \"Verify the correctness of the ID card format.\",\r\n p: [\r\n {\r\n name: \"ID number\",\r\n detail: \"15-digit or 18-digit ID number or range.\",\r\n },\r\n ],\r\n },\r\n DM_TEXT_CUTWORD: {\r\n d: \"Text segmentation. Split a series of words into a series of individual words\",\r\n a: \"Chinese text segmentation.\",\r\n p: [\r\n {\r\n name: \"Text\",\r\n detail: \"Any text that needs word segmentation.\",\r\n },\r\n {\r\n name: \"Word segmentation mode\",\r\n detail: \"The default is 0[precision mode], 1[full mode], 2[search engine mode].\",\r\n },\r\n ],\r\n },\r\n DM_TEXT_TFIDF: {\r\n d: \"Use tf-idf algorithm for keyword extraction. Identify keywords from a series of text\",\r\n a: \"tf-idf keyword recognition.\",\r\n p: [\r\n {\r\n name: \"Text\",\r\n detail: \"Any text that needs word segmentation.\",\r\n },\r\n {\r\n name: \"Number of keywords\",\r\n detail: \"The number of keywords returned by the algorithm, the default is 20\",\r\n },\r\n {\r\n name: \"Corpus\",\r\n detail: \"Select a corpus in a specific field, the default is 0[General], 1[Finance], 2[Medical]\",\r\n },\r\n ],\r\n },\r\n DM_TEXT_TEXTRANK: {\r\n d: \"Use TextRank algorithm to extract keywords. Identify keywords from a series of text\",\r\n a: \"TextRank keyword recognition.\",\r\n p: [\r\n {\r\n name: \"Text\",\r\n detail: \"Any text that needs word segmentation.\",\r\n },\r\n {\r\n name: \"Number of keywords\",\r\n detail: \"The number of keywords returned by the algorithm, the default is 20\",\r\n },\r\n {\r\n name: \"Corpus\",\r\n detail: \"Select a corpus in a specific field, the default is 0[General], 1[Finance], 2[Medical]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_CLOSE: {\r\n d: \"According to the stock code and date, return the corresponding stock closing price of A shares.\",\r\n a: \"Returns the closing price of stock.\",\r\n p: [\r\n {\r\n name: \"Stock code\",\r\n detail: \"6-digit stock code, required.\",\r\n },\r\n {\r\n name: \"Date\",\r\n detail: \"The trading day of the stock, the default is the latest trading day\",\r\n },\r\n {\r\n name: \"Reversion and exclusion\",\r\n detail:\r\n \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_OPEN: {\r\n d: \"According to the stock code and date, return the opening price of stock.\",\r\n a: \"Return the opening price of a shares.\",\r\n p: [\r\n {\r\n name: \"Stock code\",\r\n detail: \"6-digit stock code, required.\",\r\n },\r\n {\r\n name: \"Date\",\r\n detail: \"The trading day of the stock, the default is the latest trading day\",\r\n },\r\n {\r\n name: \"Reversion and exclusion\",\r\n detail:\r\n \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_MAX: {\r\n d: \"According to the stock code and date, return the highest price of stock.\",\r\n a: \"Return the highest price of stock.\",\r\n p: [\r\n {\r\n name: \"Stock code\",\r\n detail: \"6-digit stock code, required.\",\r\n },\r\n {\r\n name: \"Date\",\r\n detail: \"The trading day of the stock, the default is the latest trading day\",\r\n },\r\n {\r\n name: \"Reversion and exclusion\",\r\n detail:\r\n \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_MIN: {\r\n d: \"According to the stock code and date, return the lowest price of stock.\",\r\n a: \"Returns the lowest price of stock.\",\r\n p: [\r\n {\r\n name: \"Stock code\",\r\n detail: \"6-digit stock code, required.\",\r\n },\r\n {\r\n name: \"Date\",\r\n detail: \"The trading day of the stock, the default is the latest trading day\",\r\n },\r\n {\r\n name: \"Reversion and exclusion\",\r\n detail:\r\n \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_VOLUMN: {\r\n d: \"According to the stock code and date, return the corresponding stock trading volume of A shares.\",\r\n a: \"Returns the corresponding stock trading volume of A shares.\",\r\n p: [\r\n {\r\n name: \"Stock code\",\r\n detail: \"6-digit stock code, required.\",\r\n },\r\n {\r\n name: \"Date\",\r\n detail: \"The trading day of the stock, the default is the latest trading day\",\r\n },\r\n {\r\n name: \"Reversion and exclusion\",\r\n detail:\r\n \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_AMOUNT: {\r\n d: \"According to the stock code and date, return the corresponding stock turnover of A shares.\",\r\n a: \"Returns the corresponding stock turnover of A shares.\",\r\n p: [\r\n {\r\n name: \"Stock code\",\r\n detail: \"6-digit stock code, required.\",\r\n },\r\n {\r\n name: \"Date\",\r\n detail: \"The trading day of the stock, the default is the latest trading day\",\r\n },\r\n {\r\n name: \"Reversion and exclusion\",\r\n detail:\r\n \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\",\r\n },\r\n ],\r\n },\r\n ISDATE: {\r\n d: \"Returns whether a value is a date.\",\r\n a: \"Whether a value is a date.\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"The value to be verified as a date.\",\r\n },\r\n ],\r\n },\r\n LINESPLINES: {\r\n d: \"Generate sparklines embedded in the cell to describe the continuous trend of data\",\r\n a: \"Generate sparklines line chart\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Line color\",\r\n detail:\r\n \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #2ec7c9\",\r\n },\r\n {\r\n name: \"Line thickness\",\r\n detail: \"Line thickness of the line graph, the default is 1px\",\r\n },\r\n {\r\n name: \"Auxiliary line\",\r\n detail:\r\n \"A horizontal line, which can be min, max, avg, median, range or custom value, default 0 none\",\r\n },\r\n {\r\n name: \"Auxiliary line color\",\r\n detail: \"Color setting of auxiliary line, same as line color configuration, default #000\",\r\n },\r\n {\r\n name: \"Maximum mark\",\r\n detail:\r\n \"Identifies the maximum value of the line graph, the same line color configuration, default 0 does not display\",\r\n },\r\n {\r\n name: \"Minimum mark\",\r\n detail:\r\n \"Identify the minimum value of the line graph, the same line color configuration, default 0 does not display\",\r\n },\r\n {\r\n name: \"Mark size\",\r\n detail: \"The maximum and minimum mark size settings, the default is 1.5\",\r\n },\r\n ],\r\n },\r\n AREASPLINES: {\r\n d:\r\n \"Generate sparklines embedded in the cell area chart, generally used to describe the continuous cumulative value trend of the data\",\r\n a: \"Generate sparklines area chart\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Line color\",\r\n detail:\r\n \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #2ec7c9\",\r\n },\r\n {\r\n name: \"Fill color\",\r\n detail: \"Form an area chart, the same line color configuration, default 0 does not display\",\r\n },\r\n {\r\n name: \"Line thickness\",\r\n detail: \"Line thickness of the line graph, the default is 1px\",\r\n },\r\n {\r\n name: \"Auxiliary line\",\r\n detail:\r\n \"A horizontal line, which can be min, max, avg, median, range or custom value, default 0 none\",\r\n },\r\n {\r\n name: \"Auxiliary line color\",\r\n detail: \"Color setting of auxiliary line, same as line color configuration, default #000\",\r\n },\r\n ],\r\n },\r\n COLUMNSPLINES: {\r\n d:\r\n \"Generate sparklines embedded in the vertical histogram of cells, generally used to describe the size of discrete data\",\r\n a: \"Generate sparklines vertical histogram\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Bar interval\",\r\n detail: \"The distance between bars, the default is 1\",\r\n },\r\n {\r\n name: \"Bar color\",\r\n detail:\r\n \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #fc5c5c\",\r\n },\r\n {\r\n name: \"Negative bar color\",\r\n detail:\r\n \"Negative bar color setting, representing the color of negative value, same as the bar color configuration, default #97b552\",\r\n },\r\n {\r\n name: \"Max\",\r\n detail:\r\n \"The maximum value of the bar chart, used to standardize the length of the bar chart, the default is to automatically calculate false, auto, null\",\r\n },\r\n {\r\n name: \"Color palette\",\r\n detail:\r\n \"The color palette can set the color of each bar individually, multiple settings can be set, and two formats are supported: 1 color such as #000, which means that the color of the first bar is black; 2 value range: color, such as -2:# 000 indicates that the bar with a value of -2 is black, 0:5:#000 indicates that the bar with a value of 0-5 is black, and the default is empty\",\r\n },\r\n ],\r\n },\r\n STACKCOLUMNSPLINES: {\r\n d:\r\n \"Generate sparklines, a cumulative vertical histogram embedded in a cell, generally used to describe the numerical size of multiple dimensions of discrete data\",\r\n a: \"Generate sparklines cumulative vertical histogram\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Stack by column\",\r\n detail: \"If you need to stack by row, set this item to false or 0, the default is 1\",\r\n },\r\n {\r\n name: \"Bar interval\",\r\n detail: \"The distance between bars, the default is 1\",\r\n },\r\n {\r\n name: \"Max\",\r\n detail:\r\n \"The maximum value of the cumulative bar, used to regulate the length of the bar, the default is to automatically calculate false, auto, null\",\r\n },\r\n {\r\n name: \"Color palette\",\r\n detail:\r\n \"The color palette can individually set the bar color of each dimension, which can be set to the range of A1:A10, etc. The default is #2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\",\r\n },\r\n ],\r\n },\r\n BARSPLINES: {\r\n d: \"Generate sparklines embedded in the cell, generally used to describe the size of discrete data\",\r\n a: \"Generate sparklines horizontal bar graph\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Bar interval\",\r\n detail: \"The distance between bars, the default is 1\",\r\n },\r\n {\r\n name: \"Bar color\",\r\n detail:\r\n \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #fc5c5c\",\r\n },\r\n {\r\n name: \"Negative bar color\",\r\n detail:\r\n \"Negative bar color setting, representing the color of negative value, same as the bar color configuration, default #97b552\",\r\n },\r\n {\r\n name: \"Max\",\r\n detail:\r\n \"The maximum value of the bar chart, used to standardize the length of the bar chart, the default is to automatically calculate false, auto, null\",\r\n },\r\n {\r\n name: \"Color palette\",\r\n detail:\r\n \"The color palette can set the color of each bar individually, multiple settings can be set, and two formats are supported: 1 color such as #000, which means that the color of the first bar is black; 2 value range: color, such as -2:# 000 indicates that the bar with a value of -2 is black, 0:5:#000 indicates that the bar with a value of 0-5 is black, and the default is empty\",\r\n },\r\n ],\r\n },\r\n STACKBARSPLINES: {\r\n d:\r\n \"Generate sparklines, a cumulative horizontal bar graph embedded in a cell, which is generally used to describe the numerical size of multiple dimensions of discrete data\",\r\n a: \"Generate sparklines cumulative horizontal bar graph\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Stack by column\",\r\n detail: \"If you need to stack by row, set this item to false or 0, the default is 1\",\r\n },\r\n {\r\n name: \"Bar interval\",\r\n detail: \"The distance between bars, the default is 1\",\r\n },\r\n {\r\n name: \"Max\",\r\n detail:\r\n \"The maximum value of the cumulative bar, used to regulate the length of the bar, the default is to automatically calculate false, auto, null\",\r\n },\r\n {\r\n name: \"Color palette\",\r\n detail:\r\n \"The color palette can individually set the bar color of each dimension, which can be set to the range of A1:A10, etc. The default is #2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\",\r\n },\r\n ],\r\n },\r\n DISCRETESPLINES: {\r\n d: \"Generate sparklines embedded in the cell, generally used to describe the trend of discrete data\",\r\n a: \"Generate sparklines discrete graph\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Segmentation threshold\",\r\n detail:\r\n \"Discrete graph column color distinction, for example: if the value is 0, blue is greater than 0, red is less than 0, and the default is 0\",\r\n },\r\n {\r\n name: \"Above threshold color\",\r\n detail:\r\n \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #2ec7c9\",\r\n },\r\n {\r\n name: \"Below threshold color\",\r\n detail:\r\n \"The color setting of the bar below the threshold, the same as the color above the threshold, default #fc5c5c\",\r\n },\r\n ],\r\n },\r\n TRISTATESPLINES: {\r\n d:\r\n \"Generate sparklines, a three-state graph embedded in the cell, which is generally used to describe the trend of three situations, such as winning, losing, or drawing.\",\r\n a: \"Generate sparklines three-state graph\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Bar interval\",\r\n detail: \"The distance between bars, the default is 1\",\r\n },\r\n {\r\n name: \"Bar color\",\r\n detail:\r\n \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #fc5c5c\",\r\n },\r\n {\r\n name: \"Negative bar color\",\r\n detail:\r\n \"Negative bar color setting, representing the color of negative value, same as the bar color configuration, default #97b552\",\r\n },\r\n {\r\n name: \"Zero value bar color\",\r\n detail:\r\n \"Zero value bar color setting, representing 0 value color, the same color configuration of the bar, default #999\",\r\n },\r\n {\r\n name: \"Color palette\",\r\n detail:\r\n \"The color palette can set the color of each bar individually, multiple settings can be set, and two formats are supported: 1 color such as #000, which means that the color of the first bar is black; 2 value range: color, such as -2:# 000 indicates that the bar with a value of -2 is black, 0:5:#000 indicates that the bar with a value of 0-5 is black, and the default is empty\",\r\n },\r\n ],\r\n },\r\n PIESPLINES: {\r\n d: \"Generate sparklines pie chart embedded in the cell, generally used to describe the proportion of data\",\r\n a: \"Generate sparklines pie chart\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Rotation angle\",\r\n detail: \"The rotation angle of the pie chart, the default is 0\",\r\n },\r\n {\r\n name: \"border\",\r\n detail: \"Pie chart border size, default is none 0\",\r\n },\r\n {\r\n name: \"Border color\",\r\n detail: \"The border color of the pie chart, the default is #000\",\r\n },\r\n {\r\n name: \"Color palette\",\r\n detail:\r\n \"The color of the slice can be set in the palette, which can be set to the range of A1:A10, etc. The default is #2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\",\r\n },\r\n ],\r\n },\r\n BOXSPLINES: {\r\n d:\r\n \"Generate sparklines embedded in the cell box plot, generally used to describe the statistical distribution of the data set\",\r\n a: \"Generate sparklines box plot\",\r\n p: [\r\n {\r\n name: \"Range\",\r\n detail: \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\",\r\n },\r\n {\r\n name: \"Outlier ratio\",\r\n detail:\r\n \"The threshold range of outliers, if it is 0 or false, it will not be displayed, the default is 1.5 times\",\r\n },\r\n {\r\n name: \"Target value\",\r\n detail: \"The target value setting on the box plot, the default is false and does not display\",\r\n },\r\n {\r\n name: \"Point size\",\r\n detail: \"The radius of the target point and outlier is set, the default is 1.5\",\r\n },\r\n ],\r\n },\r\n BULLETSPLINES: {\r\n d: \"Generate sparklines embedded in the cell, generally used to describe the task achievement rate\",\r\n a: \"Generating sparklines bullets\",\r\n p: [\r\n {\r\n name: \"Target\",\r\n detail:\r\n \"The numerical value can be calculated effectively for the achieved target value, such as A1, 100, etc.\",\r\n },\r\n {\r\n name: \"achieved\",\r\n detail:\r\n \"Only when the value is completed can the value be calculated effectively, such as A1, 100, etc.\",\r\n },\r\n {\r\n name: \"Contrast\",\r\n detail:\r\n \"Comparative values, such as excess, minimum, and bottom line for awards, can be effectively calculated, such as A1, 100, etc. You can set up to 9 comparison values\",\r\n },\r\n ],\r\n },\r\n COMPOSESPLINES: {\r\n d: \"Support multiple types of pictures in the same cell, each parameter represents a sparklines diagram\",\r\n a: \"Combine sparklines graphs into one cell\",\r\n p: [\r\n {\r\n name: \"config\",\r\n detail:\r\n \"Sparklines chart settings, such as A1:A20, a completed pie chart, line chart settings, etc.\",\r\n },\r\n ],\r\n },\r\n SORT: {\r\n d: \"Sorts the rows of a given array or range by the values in one or more columns.\",\r\n a: \"Sorts rows of range by specified column.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The data to be sorted.\",\r\n },\r\n {\r\n name: \"sort_column\",\r\n detail:\r\n \"The index of the column in `range` or a range outside of `range` containing the values by which to sort.\",\r\n },\r\n {\r\n name: \"is_ascending\",\r\n detail:\r\n \"`TRUE` or `FALSE` indicating whether to sort `sort_column` in ascending order. `FALSE` sorts in descending order.\",\r\n },\r\n {\r\n name: \"sort_column2\",\r\n detail: \"Additional columns.\",\r\n },\r\n ],\r\n },\r\n FILTER: {\r\n d:\r\n \"Returns a filtered version of the source range, returning only rows or columns which meet the specified conditions.\",\r\n a: \"Filters a range based off provided conditions.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The data to be filtered.\",\r\n },\r\n {\r\n name: \"condition1\",\r\n detail:\r\n \"A column or row containing true or false values corresponding to the first column or row of `range`, or an array formula evaluating to true or false.\",\r\n },\r\n {\r\n name: \"condition2\",\r\n detail:\r\n \"Additional rows or columns containing boolean values `TRUE` or `FALSE` indicating whether the corresponding row or column in `range` should pass through `FILTER`. Can also contain array formula expressions which evaluate to such rows or columns. All conditions must be of the same type (row or column). Mixing row conditions and column conditions is not permitted.\",\r\n },\r\n ],\r\n },\r\n UNIQUE: {\r\n d:\r\n \"Returns unique rows in the provided source range, discarding duplicates. Rows are returned in the order in which they first appear in the source range.\",\r\n a: \"Unique rows in the provided source range.\",\r\n p: [\r\n {\r\n name: \"range\",\r\n detail: \"The data to filter by unique entries.\",\r\n },\r\n {\r\n name: \"by_col\",\r\n detail:\r\n \"[Option] - Logical value, indicating how to compare; by row = FALSE() or omitted; by column = TRUE().\",\r\n },\r\n {\r\n name: \"occurs_once\",\r\n detail:\r\n \"[Option] - Logical value, only one occurrence in the unique value is returned = TRUE(); including all unique values = FALSE() or omitted.\",\r\n },\r\n ],\r\n },\r\n RANDARRAY: {\r\n d:\r\n \"Returns a grid of random numbers between 0 inclusive and 1 exclusive. The grid size will match the provided rows and columns arguments. If neither rows nor columns are provided, then the grid will be size 1 x 1.\",\r\n a: \"Returns a grid of random numbers.\",\r\n p: [\r\n {\r\n name: \"rows\",\r\n detail: \"The number of rows to populate with a random number.\",\r\n },\r\n {\r\n name: \"columns\",\r\n detail: \"The number of columns to populate with a random number.\",\r\n },\r\n ],\r\n },\r\n SEQUENCE: {\r\n d:\r\n \"Returns a grid of sequential numbers starting at a specified start value and increasing by a specified step size. By default, the sequence starts at and increases by 1.\",\r\n a: \"Returns a grid of sequential numbers.\",\r\n p: [\r\n {\r\n name: \"rows\",\r\n detail: \"The number of rows in the function's resulting grid.\",\r\n },\r\n {\r\n name: \"columns\",\r\n detail:\r\n \"The number of columns in the function's resulting grid. If omitted, the result grid will have 1 column.\",\r\n },\r\n {\r\n name: \"start\",\r\n detail: \"The number, at which to start the sequence. If omitted, the sequence will start at 1.\",\r\n },\r\n {\r\n name: \"step\",\r\n detail:\r\n \"The amount each value in the sequence will differ by. If omitted, each value will differ by 1.\",\r\n },\r\n ],\r\n },\r\n EVALUATE: {\r\n d: \"Evaluate a formula or expression expressed in words and return the result\",\r\n a: \"Evaluate according to literal formula or expression.\",\r\n p: [\r\n {\r\n name: \"expression\",\r\n detail: \"Formula or expression\",\r\n },\r\n ],\r\n },\r\n REMOTE: {\r\n d: \"Calls a function on a remote server\",\r\n a: \"Calls a function on a remote back end server/API.\",\r\n p: [\r\n {\r\n name: \"remote_expression\",\r\n detail: \"Formula\",\r\n },\r\n ],\r\n },\r\n },\r\n toolbar: {\r\n undo: \"Undo\",\r\n redo: \"Redo\",\r\n paintFormat: \"Paint format\",\r\n currencyFormat: \"Format as currency\",\r\n percentageFormat: \"Format as percent\",\r\n numberDecrease: \"Decrease decimal places\",\r\n numberIncrease: \"Increase decimal places\",\r\n moreFormats: \"More formats\",\r\n font: \"Font\",\r\n fontSize: \"Font size\",\r\n bold: \"Bold (Ctrl+B)\",\r\n italic: \"Italic (Ctrl+I)\",\r\n strikethrough: \"Strikethrough (Alt+Shift+5)\",\r\n underline: \"Underline\",\r\n textColor: \"Text color\",\r\n chooseColor: \"choose color\",\r\n resetColor: \"Reset\",\r\n customColor: \"CUSTOM\",\r\n alternatingColors: \"Alternating colors\",\r\n confirmColor: \"OK\",\r\n cancelColor: \"Cancel\",\r\n collapse: \"Collapse\",\r\n fillColor: \"Fill color\",\r\n border: \"Border\",\r\n borderStyle: \"Border style\",\r\n mergeCell: \"Merge cells\",\r\n chooseMergeType: \"Choose merge type\",\r\n horizontalAlign: \"Horizontal align\",\r\n verticalAlign: \"Vertical align\",\r\n alignment: \"Alignment\",\r\n textWrap: \"Text wrap\",\r\n textWrapMode: \"Text wrap mode\",\r\n textRotate: \"Text rotate\",\r\n textRotateMode: \"Text rotate mode\",\r\n freezeTopRow: \"Freeze first row\",\r\n sortAndFilter: \"Sort and filter\",\r\n findAndReplace: \"Find and replace\",\r\n sum: \"SUM\",\r\n autoSum: \"Auto SUM\",\r\n moreFunction: \"More functions\",\r\n conditionalFormat: \"Conditional format\",\r\n postil: \"Comment\",\r\n pivotTable: \"Pivot Table\",\r\n chart: \"Chart\",\r\n screenshot: \"Screenshot\",\r\n splitColumn: \"Split text\",\r\n insertImage: \"Insert image\",\r\n exportXlsx: \"Export Xlsx\",\r\n insertLink: \"Insert link\",\r\n dataVerification: \"Data verification\",\r\n protection: \"Protect the sheet\",\r\n\r\n clearText: \"Clear color\",\r\n noColorSelectedText: \"No color is selected\",\r\n\r\n toolMore: \"More\",\r\n toolLess: \"Less\",\r\n toolClose: \"Close\",\r\n toolMoreTip: \"More features\",\r\n moreOptions: \"More options\",\r\n\r\n cellFormat: \"Cell format config\",\r\n print: \"Print\",\r\n },\r\n alternatingColors: {\r\n applyRange: \"Apply to range\",\r\n selectRange: \"Select a data range\",\r\n header: \"Header\",\r\n footer: \"Footer\",\r\n\r\n errorInfo:\r\n \"Cannot perform this operation on multiple selection areas, please select a single area and try again\",\r\n textTitle: \"Format style\",\r\n custom: \"CUSTOM\",\r\n close: \"close\",\r\n selectionTextColor: \"Click to select text color\",\r\n selectionCellColor: \"Click to select cell color\",\r\n removeColor: \"Remove alternating colors\",\r\n colorShow: \"color\",\r\n currentColor: \"Current\",\r\n\r\n tipSelectRange: \"Please select the range of alternating colors\",\r\n errorNoRange: \"No range is selected\",\r\n errorExistColors: \"Alternating colors already exist and cannot be edited\",\r\n },\r\n button: {\r\n confirm: \"OK\",\r\n cancel: \"Cancel\",\r\n close: \"Close\",\r\n update: \"Update\",\r\n delete: \"Delete\",\r\n insert: \"Insert\",\r\n prevPage: \"Previous\",\r\n nextPage: \"Next\",\r\n total: \"total:\",\r\n },\r\n paint: {\r\n start: \"Paint format start\",\r\n end: \"ESC\",\r\n\r\n tipSelectRange: \"Please select the range to be copied\",\r\n tipNotMulti: \"Cannot perform this operation on multiple selection ranges\",\r\n },\r\n format: {\r\n moreCurrency: \"More currency formats\",\r\n moreDateTime: \"More date and time formats\",\r\n moreNumber: \"More number formats\",\r\n\r\n titleCurrency: \"Currency formats\",\r\n decimalPlaces: \"Decimal places\",\r\n titleDateTime: \"Date and time formats\",\r\n titleNumber: \"Number formats\",\r\n },\r\n info: {\r\n detailUpdate: \"New opened\",\r\n detailSave: \"Local cache restored\",\r\n row: \"\",\r\n column: \"\",\r\n loading: \"Loading...\",\r\n\r\n copy: \"Copy\",\r\n return: \"Exit\",\r\n rename: \"Rename\",\r\n tips: \"WorkBook rename\",\r\n noName: \"Untitled spreadsheet\",\r\n wait: \"waiting for update\",\r\n\r\n add: \"Add\",\r\n addLast: \"more rows at bottom\",\r\n backTop: \"Back to the top\",\r\n pageInfo: \"Total ${total}\uFF0C${totalPage} page\uFF0Ccurrent ${currentPage}\",\r\n nextPage: \"Next\",\r\n\r\n tipInputNumber: \"Please enter the number\",\r\n tipInputNumberLimit: \"The increase range is limited to 1-100\",\r\n\r\n tipRowHeightLimit: \"Row height must be between 0 ~ 545\",\r\n tipColumnWidthLimit: \"The column width must be between 0 ~ 2038\",\r\n pageInfoFull: \"Total ${total}\uFF0C${totalPage} page\uFF0CAll data displayed\",\r\n },\r\n currencyDetail: {\r\n RMB: \"RMB\",\r\n USdollar: \"US dollar\",\r\n EUR: \"EUR\",\r\n GBP: \"GBP\",\r\n HK: \"HK\",\r\n JPY: \"JPY\",\r\n AlbanianLek: \"Albanian Lek\",\r\n AlgerianDinar: \"Algerian Dinar\",\r\n Afghani: \"Afghani\",\r\n ArgentinePeso: \"Argentine Peso\",\r\n UnitedArabEmiratesDirham: \"United Arab Emirates Dirham\",\r\n ArubanFlorin: \"Aruban Florin\",\r\n OmaniRial: \"Omani Rial\",\r\n Azerbaijanimanat: \"Azerbaijani manat\",\r\n EgyptianPound: \"Egyptian Pound\",\r\n EthiopianBirr: \"Ethiopian Birr\",\r\n AngolaKwanza: \"Angola Kwanza\",\r\n AustralianDollar: \"Australian Dollar\",\r\n Patacas: \"Patacas\",\r\n BarbadosDollar: \"Barbados Dollar\",\r\n PapuaNewGuineaKina: \"Papua New Guinea Kina\",\r\n BahamianDollar: \"Bahamian Dollar\",\r\n PakistanRupee: \"Pakistan Rupee\",\r\n ParaguayanGuarani: \"Paraguayan Guarani\",\r\n BahrainiDinar: \"Bahraini Dinar\",\r\n PanamanianBalboa: \"Panamanian Balboa\",\r\n Brazilianreal: \"Brazilian real\",\r\n Belarusianruble: \"Belarusian ruble\",\r\n BermudianDollar: \"Bermudian Dollar\",\r\n BulgarianLev: \"Bulgarian Lev\",\r\n IcelandKrona: \"Iceland Krona\",\r\n BosniaHerzegovinaConvertibleMark: \"Bosnia-Herzegovina Convertible Mark\",\r\n PolishZloty: \"Polish Zloty\",\r\n Boliviano: \"Boliviano\",\r\n BelizeDollar: \"Belize Dollar\",\r\n BotswanaPula: \"Botswana Pula\",\r\n NotDannuzhamu: \"Not Dannuzhamu\",\r\n BurundiFranc: \"Burundi Franc\",\r\n NorthKoreanWon: \"North Korean Won\",\r\n DanishKrone: \"Danish Krone\",\r\n EastCaribbeanDollar: \"East Caribbean Dollar\",\r\n DominicaPeso: \"Dominica Peso\",\r\n RussianRuble: \"Russian Ruble\",\r\n EritreanNakfa: \"Eritrean Nakfa\",\r\n CFAfranc: \"CFA franc\",\r\n PhilippinePeso: \"Philippine Peso\",\r\n FijiDollar: \"Fiji Dollar\",\r\n CapeVerdeEscudo: \"Cape Verde Escudo\",\r\n FalklandIslandsPound: \"Falkland Islands Pound\",\r\n GambianDalasi: \"Gambian Dalasi\",\r\n Congolesefranc: \"Congolese franc\",\r\n ColombianPeso: \"Colombian Peso\",\r\n CostaRicanColon: \"Costa Rican Colon\",\r\n CubanPeso: \"Cuban Peso\",\r\n Cubanconvertiblepeso: \"Cuban convertible peso\",\r\n GuyanaDollar: \"Guyana Dollar\",\r\n KazakhstanTenge: \"Kazakhstan Tenge\",\r\n Haitiangourde: \"Haitian gourde\",\r\n won: \"won\",\r\n NetherlandsAntillesGuilder: \"Netherlands Antilles Guilder\",\r\n Honduraslempiras: \"Honduras lempiras\",\r\n DjiboutiFranc: \"Djibouti Franc\",\r\n KyrgyzstanSom: \"Kyrgyzstan Som\",\r\n GuineaFranc: \"Guinea Franc\",\r\n CanadianDollar: \"Canadian Dollar\",\r\n GhanaianCedi: \"Ghanaian Cedi\",\r\n Cambodianriel: \"Cambodian riel\",\r\n CzechKoruna: \"Czech Koruna\",\r\n ZimbabweDollar: \"Zimbabwe Dollar\",\r\n QatariRiyal: \"Qatari Riyal\",\r\n CaymanIslandsDollar: \"Cayman Islands Dollar\",\r\n Comorianfranc: \"Comorian franc\",\r\n KuwaitiDinar: \"Kuwaiti Dinar\",\r\n CroatianKuna: \"Croatian Kuna\",\r\n KenyanShilling: \"Kenyan Shilling\",\r\n LesothoLoti: \"Lesotho Loti\",\r\n LaoKip: \"Lao Kip\",\r\n LebanesePound: \"Lebanese Pound\",\r\n Lithuanianlitas: \"Lithuanian litas\",\r\n LibyanDinar: \"Libyan Dinar\",\r\n LiberianDollar: \"Liberian Dollar\",\r\n RwandaFranc: \"Rwanda Franc\",\r\n RomanianLeu: \"Romanian Leu\",\r\n MalagasyAriary: \"Malagasy Ariary\",\r\n MaldivianRufiyaa: \"Maldivian Rufiyaa\",\r\n MalawiKwacha: \"Malawi Kwacha\",\r\n MalaysianRinggit: \"Malaysian Ringgit\",\r\n MacedoniawearingDinar: \"Macedonia wearing Dinar\",\r\n MauritiusRupee: \"Mauritius Rupee\",\r\n MauritanianOuguiya: \"Mauritanian Ouguiya\",\r\n MongolianTugrik: \"Mongolian Tugrik\",\r\n BangladeshiTaka: \"Bangladeshi Taka\",\r\n PeruvianNuevoSol: \"Peruvian Nuevo Sol\",\r\n MyanmarKyat: \"Myanmar Kyat\",\r\n MoldovanLeu: \"Moldovan Leu\",\r\n MoroccanDirham: \"Moroccan Dirham\",\r\n MozambiqueMetical: \"Mozambique Metical\",\r\n MexicanPeso: \"Mexican Peso\",\r\n NamibianDollar: \"Namibian Dollar\",\r\n SouthAfricanRand: \"South African Rand\",\r\n SouthSudanesePound: \"South Sudanese Pound\",\r\n NicaraguaCordoba: \"Nicaragua Cordoba\",\r\n NepaleseRupee: \"Nepalese Rupee\",\r\n NigerianNaira: \"Nigerian Naira\",\r\n NorwegianKrone: \"Norwegian Krone\",\r\n GeorgianLari: \"Georgian Lari\",\r\n RMBOffshore: \"RMB (Offshore)\",\r\n SwedishKrona: \"Swedish Krona\",\r\n SwissFranc: \"Swiss Franc\",\r\n SerbianDinar: \"Serbian Dinar\",\r\n SierraLeone: \"Sierra Leone\",\r\n SeychellesRupee: \"Seychelles Rupee\",\r\n SaudiRiyal: \"Saudi Riyal\",\r\n SaoTomeDobra: \"Sao Tome Dobra\",\r\n SaintHelenapound: \"Saint Helena pound\",\r\n SriLankaRupee: \"Sri Lanka Rupee\",\r\n SwazilandLilangeni: \"Swaziland Lilangeni\",\r\n SudanesePound: \"Sudanese Pound\",\r\n Surinamesedollar: \"Surinamese dollar\",\r\n SolomonIslandsDollar: \"Solomon Islands Dollar\",\r\n SomaliShilling: \"Somali Shilling\",\r\n TajikistanSomoni: \"Tajikistan Somoni\",\r\n PacificFranc: \"Pacific Franc\",\r\n ThaiBaht: \"Thai Baht\",\r\n TanzanianShilling: \"Tanzanian Shilling\",\r\n TonganPaanga: \"Tongan Pa'anga\",\r\n TrinidadandTobagoDollar: \"Trinidad and Tobago Dollar\",\r\n TunisianDinar: \"Tunisian Dinar\",\r\n TurkishLira: \"Turkish Lira\",\r\n VanuatuVatu: \"Vanuatu Vatu\",\r\n GuatemalanQuetzal: \"Guatemalan Quetzal\",\r\n CommissionBolivar: \"Commission Bolivar\",\r\n BruneiDollar: \"Brunei Dollar\",\r\n UgandanShilling: \"Ugandan Shilling\",\r\n UkrainianHryvnia: \"Ukrainian Hryvnia\",\r\n UruguayanPeso: \"Uruguayan Peso\",\r\n Uzbekistansom: \"Uzbekistan som\",\r\n WesternSamoaTala: \"Western Samoa Tala\",\r\n SingaporeDollar: \"Singapore Dollar\",\r\n NT: \"NT\",\r\n NewZealandDollar: \"New Zealand Dollar\",\r\n HungarianForint: \"Hungarian Forint\",\r\n SyrianPound: \"Syrian Pound\",\r\n JamaicanDollar: \"Jamaican Dollar\",\r\n ArmenianDram: \"Armenian Dram\",\r\n YemeniRial: \"Yemeni Rial\",\r\n IraqiDinar: \"Iraqi Dinar\",\r\n IranianRial: \"Iranian Rial\",\r\n NewIsraeliShekel: \"New Israeli Shekel\",\r\n IndianRupee: \"Indian Rupee\",\r\n IndonesianRupiah: \"Indonesian Rupiah\",\r\n JordanianDinar: \"Jordanian Dinar\",\r\n VND: \"VND\",\r\n ZambianKwacha: \"Zambian Kwacha\",\r\n GibraltarPound: \"Gibraltar Pound\",\r\n ChileanPeso: \"Chilean Peso\",\r\n CFAFrancBEAC: \"CFA Franc BEAC\",\r\n },\r\n defaultFmt: [\r\n { text: \"Automatic\", value: \"General\", example: \"\" },\r\n { text: \"Plain text\", value: \"@\", example: \"\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"Number\", value: \"##0.00\", example: \"1000.12\" },\r\n { text: \"Percent\", value: \"#0.00%\", example: \"12.21%\" },\r\n { text: \"Scientific\", value: \"0.00E+00\", example: \"1.01E+5\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"Accounting\", value: \"\u00A5(0.00)\", example: \"\u00A5(1200.09)\" },\r\n\r\n { text: \"Currency\", value: \"\u00A50.00\", example: \"\u00A51200.09\" },\r\n\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"Date\", value: \"yyyy-MM-dd\", example: \"2017-11-29\" },\r\n { text: \"Time\", value: \"hh:mm AM/PM\", example: \"3:00 PM\" },\r\n { text: \"Time 24H\", value: \"hh:mm\", example: \"15:00\" },\r\n { text: \"Date time\", value: \"yyyy-MM-dd hh:mm AM/PM\", example: \"2017-11-29 3:00 PM\" },\r\n { text: \"Date time 24 H\", value: \"yyyy-MM-dd hh:mm\", example: \"2017-11-29 15:00\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"Custom formats\", value: \"fmtOtherSelf\", example: \"more\" },\r\n ],\r\n dateFmtList: [\r\n {\r\n name: \"1930-08-05\",\r\n value: \"yyyy-MM-dd\",\r\n },\r\n {\r\n name: \"1930/8/5\",\r\n value: \"yyyy/MM/dd\",\r\n },\r\n {\r\n name: \"08-05\",\r\n value: \"MM-dd\",\r\n },\r\n {\r\n name: \"8-5\",\r\n value: \"M-d\",\r\n },\r\n {\r\n name: \"13:30:30\",\r\n value: \"h:mm:ss\",\r\n },\r\n {\r\n name: \"13:30\",\r\n value: \"h:mm\",\r\n },\r\n {\r\n name: \"PM 01:30\",\r\n value: \"AM/PM hh:mm\",\r\n },\r\n {\r\n name: \"PM 1:30\",\r\n value: \"AM/PM h:mm\",\r\n },\r\n {\r\n name: \"PM 1:30:30\",\r\n value: \"AM/PM h:mm:ss\",\r\n },\r\n {\r\n name: \"08-05 PM 01:30\",\r\n value: \"MM-dd AM/PM hh:mm\",\r\n },\r\n ],\r\n fontFamily: {\r\n MicrosoftYaHei: \"YaHei\",\r\n },\r\n fontarray: [\"Times New Roman\", \"Arial\", \"Tahoma\", \"Verdana\"],\r\n fontjson: { \"times new roman\": 0, arial: 1, tahoma: 2, verdana: 3 },\r\n border: {\r\n borderTop: \"borderTop\",\r\n borderBottom: \"borderBottom\",\r\n borderLeft: \"borderLeft\",\r\n borderRight: \"borderRight\",\r\n borderNone: \"borderNone\",\r\n borderAll: \"borderAll\",\r\n borderOutside: \"borderOutside\",\r\n borderInside: \"borderInside\",\r\n borderHorizontal: \"borderHorizontal\",\r\n borderVertical: \"borderVertical\",\r\n borderColor: \"borderColor\",\r\n borderSize: \"borderSize\",\r\n },\r\n merge: {\r\n mergeAll: \"Merge all\",\r\n mergeV: \"Vertically\",\r\n mergeH: \"Horizontally\",\r\n mergeCancel: \"Unmerge\",\r\n overlappingError: \"Cannot merge overlapping areas\",\r\n partiallyError: \"Cannot perform this operation on partially merged cells\",\r\n },\r\n align: {\r\n left: \"left\",\r\n center: \"center\",\r\n right: \"right\",\r\n\r\n top: \"Top\",\r\n middle: \"Middle\",\r\n bottom: \"Bottom\",\r\n },\r\n textWrap: {\r\n overflow: \"Overflow\",\r\n wrap: \"Wrap\",\r\n clip: \"Clip\",\r\n },\r\n rotation: {\r\n none: \"None\",\r\n angleup: \"Tilt Up\",\r\n angledown: \"Tilt Down\",\r\n vertical: \"Stack Vertically\",\r\n rotationUp: \"Rotate Up\",\r\n rotationDown: \"Rotate Down\",\r\n },\r\n freezen: {\r\n default: \"Freeze\",\r\n freezenRow: \"First Row\",\r\n freezenColumn: \"First Column\",\r\n freezenRC: \"Both\",\r\n freezenRowRange: \"Freezen row range\",\r\n freezenColumnRange: \"Freezen column range\",\r\n freezenRCRange: \"Freezen both range\",\r\n freezenCancel: \"Cancel\",\r\n\r\n noSeletionError: \"No Range to be selected\",\r\n rangeRCOverErrorTitle: \"Freeze reminder\",\r\n rangeRCOverError:\r\n \"The frozen pane is beyond the visible range, which will lead to abnormal operation. Please reset the frozen area.\",\r\n },\r\n sort: {\r\n asc: \"Ascending \",\r\n desc: \"Descending \",\r\n custom: \"Custom sort\",\r\n\r\n hasTitle: \"Data has a header row\",\r\n sortBy: \"Sort by\",\r\n addOthers: \"Add another sort column\",\r\n close: \"close\",\r\n confirm: \"sort\",\r\n\r\n columnOperation: \"Column\",\r\n secondaryTitle: \"then by\",\r\n\r\n sortTitle: \"Sort range\",\r\n\r\n sortRangeTitle: \"Sort range from\",\r\n sortRangeTitleTo: \"to\",\r\n\r\n noRangeError:\r\n \"Cannot perform this operation on multiple selection areas, please select a single range and try again\",\r\n mergeError: \"There are merged cells in the selection, this operation cannot be performed!\",\r\n columnSortMergeError:\r\n \"Column sorting will extend to the entire table selection. There are merged cells, this operation cannot be performed. Please use the sort feature in the toolbar.\",\r\n },\r\n filter: {\r\n filter: \"create filter\",\r\n\r\n sortByAsc: \"Sort A-Z\",\r\n sortByDesc: \"Sort Z-A\",\r\n filterByColor: \"Filter by color\",\r\n filterByCondition: \"Filter by condition\",\r\n filterByValues: \"Filter by values\",\r\n\r\n filiterInputNone: \"None\",\r\n\r\n filiterInputTip: \"Enter filter value\",\r\n filiterRangeStart: \"\",\r\n filiterRangeStartTip: \"Value for formula\",\r\n filiterRangeEnd: \"and\",\r\n filiterRangeEndTip: \"Value for formula\",\r\n\r\n filterValueByAllBtn: \"Check all\",\r\n filterValueByClearBtn: \"Clear\",\r\n filterValueByInverseBtn: \"Inverse\",\r\n filterValueByTip: \"filter By Values\",\r\n filterConform: \"Confirm\",\r\n filterCancel: \"Cancel\",\r\n clearFilter: \"Clear filter\",\r\n\r\n conditionNone: \"None\",\r\n conditionCellIsNull: \"Is empty\",\r\n conditionCellNotNull: \"Is not empty\",\r\n conditionCellTextContain: \"Text contains\",\r\n conditionCellTextNotContain: \"Text does not contain\",\r\n conditionCellTextStart: \"Text starts with\",\r\n conditionCellTextEnd: \"Text ends with\",\r\n conditionCellTextEqual: \"Text is exactly\",\r\n conditionCellDateEqual: \"Date is\",\r\n conditionCellDateBefore: \"Date is before\",\r\n conditionCellDateAfter: \"Date is after\",\r\n conditionCellGreater: \"Greater than\",\r\n conditionCellGreaterEqual: \"Greater than or equal to\",\r\n conditionCellLess: \"Less than\",\r\n conditionCellLessEqual: \"Less than or equal to\",\r\n conditionCellEqual: \"Is equal to\",\r\n conditionCellNotEqual: \"Is not equal to\",\r\n conditionCellBetween: \"Is between\",\r\n conditionCellNotBetween: \"Is not between\",\r\n\r\n filiterMoreDataTip: \"Big amount of data! please wait\",\r\n filiterMonthText: \"Month\",\r\n filiterYearText: \"Year\",\r\n filiterByColorTip: \"Filter by cell color\",\r\n filiterByTextColorTip: \"Filter by font color\",\r\n filterContainerOneColorTip: \"This column contains only one color\",\r\n filterDateFormatTip: \"Date format\",\r\n\r\n valueBlank: \"(Null)\",\r\n mergeError: \"There are merged cells in the filter selection, this operation cannot be performed!\",\r\n },\r\n rightclick: {\r\n copy: \"Copy\",\r\n copyAs: \"Copy as\",\r\n paste: \"Paste\",\r\n insert: \"Insert\",\r\n delete: \"Delete\",\r\n deleteCell: \"Delete cell\",\r\n deleteSelected: \"Delete selected \",\r\n hide: \"Hide\",\r\n hideSelected: \"Hide selected \",\r\n showHide: \"Show hidden \",\r\n to: \"Towards\",\r\n left: \"Left\",\r\n right: \"Right\",\r\n top: \"Top\",\r\n bottom: \"Bottom\",\r\n moveLeft: \"Move left\",\r\n moveUp: \"Move up\",\r\n add: \"Add\",\r\n row: \"Row\",\r\n column: \"Column\",\r\n width: \"Width\",\r\n height: \"Height\",\r\n number: \"Number\",\r\n confirm: \"Confirm\",\r\n orderAZ: \"A-Z order\",\r\n orderZA: \"Z-A order\",\r\n clearContent: \"Clear content\",\r\n matrix: \"Matrix operation\",\r\n sortSelection: \"Sort\",\r\n filterSelection: \"Filter\",\r\n chartGeneration: \"Create chart\",\r\n firstLineTitle: \"first line title\",\r\n untitled: \"untitled\",\r\n array1: \"One-dimensional array\",\r\n array2: \"Two-dimensional array\",\r\n array3: \"Multidimensional Arrays\",\r\n diagonal: \"Diagonal\",\r\n antiDiagonal: \"Anti-diagonal\",\r\n diagonalOffset: \"Diagonal offset\",\r\n offset: \"Offset\",\r\n boolean: \"Boolean\",\r\n flip: \"Flip\",\r\n upAndDown: \"Up and down\",\r\n leftAndRight: \"Left and right\",\r\n clockwise: \"Clockwise\",\r\n counterclockwise: \"Counterclockwise\",\r\n transpose: \"Transpose\",\r\n matrixCalculation: \"Matrix calculation\",\r\n plus: \"Plus\",\r\n minus: \"Minus\",\r\n multiply: \"Multiply\",\r\n divided: \"Divided\",\r\n power: \"Power\",\r\n root: \"Root\",\r\n log: \"Log\",\r\n delete0: \"Delete 0 values at both ends\",\r\n removeDuplicate: \"Remove duplicate values\",\r\n byRow: \"By row\",\r\n byCol: \"By column\",\r\n generateNewMatrix: \"Generate new matrix\",\r\n },\r\n comment: {\r\n insert: \"Insert\",\r\n edit: \"Edit\",\r\n delete: \"Delete\",\r\n showOne: \"Show/Hide\",\r\n showAll: \"Show/Hide All\",\r\n },\r\n screenshot: {\r\n screenshotTipNoSelection: \"Please select the scope of the screenshot\",\r\n screenshotTipTitle: \"Warning\uFF01\",\r\n screenshotTipHasMerge: \"This operation cannot be performed on merged cells\",\r\n screenshotTipHasMulti: \"This operation cannot be performed on multiple selection regions\",\r\n screenshotTipSuccess: \"Successful\",\r\n screenshotImageName: \"Screenshot\",\r\n\r\n downLoadClose: \"Close\",\r\n downLoadCopy: \"Copy to clipboard\",\r\n downLoadBtn: \"Download\",\r\n browserNotTip: \"not supported by IE browser!\",\r\n rightclickTip: 'Please right-click \"copy\" on the picture',\r\n successTip: 'Successfully (if pasting fails, please right-click on the image to \"copy image\")',\r\n },\r\n splitText: {\r\n splitDelimiters: \"Delimiters\",\r\n splitOther: \"Other\",\r\n splitContinueSymbol: \"Consecutive separators are treated as a single\",\r\n splitDataPreview: \"Preview\",\r\n splitTextTitle: \"Split text\",\r\n splitConfirmToExe: \"There is already data here, do you want to replace it?\",\r\n\r\n tipNoMulti:\r\n \"Cannot perform this operation on multiple selection areas, please select a single area and try again\",\r\n tipNoMultiColumn:\r\n \"Only one column of data can be converted at a time. The selected area can have multiple rows but not multiple columns. Please try again after selecting a single column range\",\r\n },\r\n imageText: {\r\n imageSetting: \"Image setting\",\r\n close: \"Close\",\r\n conventional: \"Conventional\",\r\n moveCell1: \"Move and resize cells\",\r\n moveCell2: \"Move and do not resize the cell\",\r\n moveCell3: \"Do not move and resize the cell\",\r\n fixedPos: \"Fixed position\",\r\n border: \"Border\",\r\n width: \"Width\",\r\n radius: \"Radius\",\r\n style: \"Style\",\r\n solid: \"Solid\",\r\n dashed: \"Dashed\",\r\n dotted: \"Dotted\",\r\n double: \"Double\",\r\n color: \"Color\",\r\n },\r\n punctuation: {\r\n tab: \"Tab\",\r\n semicolon: \"semicolon\",\r\n comma: \"comma\",\r\n space: \"space\",\r\n },\r\n findAndReplace: {\r\n find: \"Find\",\r\n replace: \"Replace\",\r\n goto: \"Go to\",\r\n location: \"Location\",\r\n formula: \"Formula\",\r\n date: \"Date\",\r\n number: \"Number\",\r\n string: \"String\",\r\n error: \"Error\",\r\n condition: \"Condition\",\r\n rowSpan: \"Row span\",\r\n columnSpan: \"Column span\",\r\n locationExample: \"Location\",\r\n lessTwoRowTip: \"Please select at least two rows\",\r\n lessTwoColumnTip: \"Please select at least two columns\",\r\n\r\n findTextbox: \"Find Content\",\r\n replaceTextbox: \"Replace Content\",\r\n\r\n regexTextbox: \"Regular Expression\",\r\n wholeTextbox: \"Whole word\",\r\n distinguishTextbox: \"Case sensitive\",\r\n\r\n allReplaceBtn: \"Replace All\",\r\n replaceBtn: \"Replace\",\r\n allFindBtn: \"Find All\",\r\n findBtn: \"Find next\",\r\n\r\n noFindTip: \"The content was not found\",\r\n modeTip: \"This operation is not available in this mode\",\r\n\r\n searchTargetSheet: \"Sheet\",\r\n searchTargetCell: \"Cell\",\r\n searchTargetValue: \"Value\",\r\n\r\n searchInputTip: \"Please enter the search content\",\r\n\r\n noReplceTip: \"There is nothing to replace\",\r\n noMatchTip: \"No match found\",\r\n\r\n successTip: \"${xlength} items found\",\r\n\r\n locationConstant: \"Constant\",\r\n locationFormula: \"Formula\",\r\n locationDate: \"Date\",\r\n locationDigital: \"Number\",\r\n locationString: \"String\",\r\n locationBool: \"Logical\",\r\n locationError: \"Error\",\r\n locationNull: \"Null\",\r\n locationCondition: \"Conditional format\",\r\n locationRowSpan: \"Row span\",\r\n locationColumnSpan: \"Column span\",\r\n\r\n locationTiplessTwoRow: \"Please select at least two rows\",\r\n locationTiplessTwoColumn: \"Please select at least two columns\",\r\n locationTipNotFindCell: \"Cell not found\",\r\n },\r\n sheetconfig: {\r\n delete: \"Delete\",\r\n copy: \"Copy\",\r\n rename: \"Rename\",\r\n changeColor: \"Change color\",\r\n hide: \"Hide\",\r\n unhide: \"Unhide\",\r\n moveLeft: \"Move left\",\r\n moveRight: \"Move right\",\r\n resetColor: \"Reset color\",\r\n cancelText: \"Cancel\",\r\n chooseText: \"Confirm color\",\r\n\r\n tipNameRepeat: \"The name of the tab page cannot be repeated! Please revise\",\r\n noMoreSheet:\r\n \"The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.\",\r\n confirmDelete: \"Are you sure to delete\",\r\n redoDelete: \"Can be undo by Ctrl+Z\",\r\n noHide: \"Can't hide, at least keep one sheet tag\",\r\n chartEditNoOpt: \"This operation is not allowed in chart editing mode!\",\r\n sheetNameSpecCharError: \"The name cannot contain:[ ] : ? * / ' \\\"\",\r\n sheetNamecannotIsEmptyError: \"Sheet name cannot be empty\",\r\n },\r\n conditionformat: {\r\n conditionformat_greaterThan: \"Conditionformat-GreaterThan\",\r\n conditionformat_greaterThan_title: \"Format cells greater than\",\r\n conditionformat_lessThan: \"Conditionformat-LessThan\",\r\n conditionformat_lessThan_title: \"Format cells smaller than\",\r\n conditionformat_betweenness: \"Conditionformat-Betweenness\",\r\n conditionformat_betweenness_title: \"Format cells with values between\",\r\n conditionformat_equal: \"Conditionformat-Equal\",\r\n conditionformat_equal_title: \"Format cells equal to\",\r\n conditionformat_textContains: \"Conditionformat-TextContains\",\r\n conditionformat_textContains_title: \"Format cells containing the following text\",\r\n conditionformat_occurrenceDate: \"Conditionformat-OccurrenceDate\",\r\n conditionformat_occurrenceDate_title: \"Format cells containing the following dates\",\r\n conditionformat_duplicateValue: \"Conditionformat-DuplicateValue\",\r\n conditionformat_duplicateValue_title: \"Format cells containing the following types of values\",\r\n conditionformat_top10: \"Conditionformat-Top10\",\r\n conditionformat_top10_percent: \"Conditionformat-Top10%\",\r\n conditionformat_top10_title: \"Format the cells with the highest value\",\r\n conditionformat_last10: \"Conditionformat-Last10\",\r\n conditionformat_last10_percent: \"Conditionformat-Last10%\",\r\n conditionformat_last10_title: \"Format the cells with the smallest value\",\r\n conditionformat_AboveAverage: \"Conditionformat-AboveAverage\",\r\n conditionformat_AboveAverage_title: \"Format cells above average\",\r\n conditionformat_SubAverage: \"Conditionformat-SubAverage\",\r\n conditionformat_SubAverage_title: \"Format cells below average\",\r\n rule: \"Rule\",\r\n newRule: \"New rule\",\r\n editRule: \"Edit rule\",\r\n deleteRule: \"Delete rule\",\r\n deleteCellRule: \"Delete cell rule\",\r\n deleteSheetRule: \"Delete sheet rule\",\r\n manageRules: \"Management rules\",\r\n showRules: \"Show its formatting rules\",\r\n highlightCellRules: \"Highlight cell rules\",\r\n itemSelectionRules: \"Item selection rules\",\r\n conditionformatManageRules: \"Conditional Formatting Rule Manager\",\r\n format: \"Format\",\r\n setFormat: \"Set format\",\r\n setAs: \"Set as\",\r\n setAsByArea: \"For the selected area, set to\",\r\n applyRange: \"Apply range\",\r\n selectRange: \"Select application range\",\r\n selectRange_percent: \"Percentage of selected range\",\r\n selectRange_average: \"Average value of selected range\",\r\n selectRange_value: \"Value in the selected range\",\r\n pleaseSelectRange: \"Please select application range\",\r\n selectDataRange: \"Select data range\",\r\n selectCell: \"select cell\",\r\n pleaseSelectCell: \"Please select cell\",\r\n pleaseSelectADate: \"Please select a date\",\r\n pleaseEnterInteger: \"Please enter an integer between 1 and 1000\",\r\n onlySingleCell: \"Only a single cell can be referenced\",\r\n conditionValueCanOnly: \"The condition value can only be a number or a single cell\",\r\n ruleTypeItem1: \"Format all cells based on their respective values\",\r\n ruleTypeItem2: \"Only format cells that contain\",\r\n ruleTypeItem2_title: \"Only for cells that meet the following conditions\",\r\n ruleTypeItem3: \"Format only the top or bottom numbers\",\r\n ruleTypeItem3_title: \"Is the value in the following ranking\",\r\n ruleTypeItem4: \"Format only values above or below the average\",\r\n ruleTypeItem4_title: \"Is a value that satisfies the following conditions\",\r\n ruleTypeItem5: \"Format only unique or repeated values\",\r\n ruleTypeItem6: \"Use formulas to determine which cells to format\",\r\n formula: \"Formula\",\r\n textColor: \"Text color\",\r\n cellColor: \"Cell color\",\r\n confirm: \"Confirm\",\r\n confirmColor: \"Confirm color\",\r\n cancel: \"Cancel\",\r\n close: \"Close\",\r\n clearColorSelect: \"Clear color select\",\r\n sheet: \"Sheet\",\r\n currentSheet: \"Current Sheet\",\r\n dataBar: \"data bar\",\r\n dataBarColor: \"data bar color\",\r\n gradientDataBar_1: \"Blue-white gradient data bar\",\r\n gradientDataBar_2: \"Green-white gradient data bar\",\r\n gradientDataBar_3: \"Red-white gradient data bar\",\r\n gradientDataBar_4: \"Orange-white gradient stripes\",\r\n gradientDataBar_5: \"Light blue-white gradient stripes\",\r\n gradientDataBar_6: \"Purple-white gradient data bar\",\r\n solidColorDataBar_1: \"Blue data bar\",\r\n solidColorDataBar_2: \"Green data bar\",\r\n solidColorDataBar_3: \"Red data bar\",\r\n solidColorDataBar_4: \"Orange data bar\",\r\n solidColorDataBar_5: \"Light blue data bar\",\r\n solidColorDataBar_6: \"Purple data bar\",\r\n colorGradation: \"color gradation\",\r\n colorGradation_1: \"Green-yellow-red color gradation\",\r\n colorGradation_2: \"Red-yellow-green color gradation\",\r\n colorGradation_3: \"Green-white-red color gradation\",\r\n colorGradation_4: \"Red-white-green color gradation\",\r\n colorGradation_5: \"Blue-white-red color gradation\",\r\n colorGradation_6: \"Red-white-blue color gradation\",\r\n colorGradation_7: \"White-red color gradation\",\r\n colorGradation_8: \"Red-white color gradation\",\r\n colorGradation_9: \"Green-white color gradation\",\r\n colorGradation_10: \"White-green color gradation\",\r\n colorGradation_11: \"Green-yellow color gradation\",\r\n colorGradation_12: \"Yellow-green color gradation\",\r\n icons: \"icons\",\r\n pleaseSelectIcon: \"Please click to select a group of icons:\",\r\n cellValue: \"Cell value\",\r\n specificText: \"Specific text\",\r\n occurrence: \"Date\",\r\n greaterThan: \"Greater than\",\r\n lessThan: \"Less than\",\r\n between: \"Between\",\r\n equal: \"Equal\",\r\n in: \"In\",\r\n between2: \"\",\r\n contain: \"Contain\",\r\n textContains: \"Text contains\",\r\n duplicateValue: \"Duplicate value\",\r\n uniqueValue: \"Unique value\",\r\n top: \"Top\",\r\n top10: \"Top 10\",\r\n top10_percent: \"Top 10%\",\r\n last: \"Last\",\r\n last10: \"Last 10\",\r\n last10_percent: \"Last 10%\",\r\n oneself: \"\",\r\n above: \"Above\",\r\n aboveAverage: \"Above average\",\r\n below: \"Below\",\r\n belowAverage: \"Below average\",\r\n all: \"All\",\r\n yesterday: \"YTD\",\r\n today: \"Today\",\r\n tomorrow: \"Tomorrow\",\r\n lastWeek: \"Last week\",\r\n thisWeek: \"This week\",\r\n lastMonth: \"Last month\",\r\n thisMonth: \"This month\",\r\n lastYear: \"Last year\",\r\n thisYear: \"This year\",\r\n last7days: \"Last 7 days\",\r\n last30days: \"Last 30 days\",\r\n next7days: \"Next 7 days\",\r\n next30days: \"Next 30 days\",\r\n next60days: \"Next 60 days\",\r\n chooseRuleType: \"Choose rule type\",\r\n editRuleDescription: \"Edit rule description\",\r\n newFormatRule: \"New format rule\",\r\n editFormatRule: \"Edit format rule\",\r\n formatStyle: \"Style\",\r\n fillType: \"Fill\",\r\n color: \"Color\",\r\n twocolor: \"Two-color\",\r\n tricolor: \"Tricolor\",\r\n multicolor: \"Multi color\",\r\n grayColor: \"Gray color\",\r\n gradient: \"Gradient\",\r\n solid: \"Solid\",\r\n maxValue: \"Max value\",\r\n medianValue: \"Median value\",\r\n minValue: \"Min value\",\r\n direction: \"Direction\",\r\n threeWayArrow: \"Three-way arrow\",\r\n fourWayArrow: \"Four-way arrow\",\r\n fiveWayArrow: \"Five-way arrow\",\r\n threeTriangles: \"Three triangles\",\r\n shape: \"Shape\",\r\n threeColorTrafficLight: \"Three-color traffic light\",\r\n fourColorTrafficLight: \"Four-color traffic light\",\r\n threeSigns: \"Three signs\",\r\n greenRedBlackGradient: \"Green-red-black gradient\",\r\n rimless: \"Rimless\",\r\n bordered: \"Bordered\",\r\n mark: \"Mark\",\r\n threeSymbols: \"Three symbols\",\r\n tricolorFlag: \"Tricolor flag\",\r\n circled: \"Circled\",\r\n noCircle: \"No circle\",\r\n grade: \"Grade\",\r\n grade4: \"4 Grade\",\r\n grade5: \"5 Grade\",\r\n threeStars: \"3 Stars\",\r\n fiveQuadrantDiagram: \"Five-quadrant diagram\",\r\n fiveBoxes: \"5 Boxes\",\r\n },\r\n insertLink: {\r\n linkText: \"Text\",\r\n linkType: \"Link type\",\r\n external: \"External link\",\r\n internal: \"Internal link\",\r\n linkAddress: \"Link address\",\r\n linkSheet: \"Worksheet\",\r\n linkCell: \"Cell reference\",\r\n linkTooltip: \"Tooltip\",\r\n placeholder1: \"Please enter the web link address\",\r\n placeholder2: \"Please enter the cell to be quoted, example A1\",\r\n placeholder3: \"Please enter the prompt content\",\r\n tooltipInfo1: \"Please enter a valid link\",\r\n tooltipInfo2: \"Please enter the correct cell reference\",\r\n },\r\n dataVerification: {\r\n cellRange: \"Cell range\",\r\n selectCellRange: \"Click to select a cell range\",\r\n selectCellRange2: \"Please select a range of cells\",\r\n verificationCondition: \"Verification condition\",\r\n allowMultiSelect: \"Allow multiple selection\",\r\n dropdown: \"drop-down list\",\r\n checkbox: \"Checkbox\",\r\n number: \"Number\",\r\n number_integer: \"Number-integer\",\r\n number_decimal: \"Number-decimal\",\r\n text_content: \"Text-content\",\r\n text_length: \"Text-length\",\r\n date: \"Date\",\r\n validity: \"Effectiveness\",\r\n placeholder1: \"Please enter the options, separated by commas, such as 1,2,3,4,5\",\r\n placeholder2: \"Please enter content\",\r\n placeholder3: \"Numeric value, such as 10\",\r\n placeholder4: \"Please enter the specified text\",\r\n placeholder5: \"Please enter the prompt displayed when the cell is selected\",\r\n selected: \"Selected\",\r\n notSelected: \"Not selected\",\r\n between: \"Between\",\r\n notBetween: \"Not between\",\r\n equal: \"Equal\",\r\n notEqualTo: \"Not equal to\",\r\n moreThanThe: \"More than the\",\r\n lessThan: \"Less than\",\r\n greaterOrEqualTo: \"Greater or equal to\",\r\n lessThanOrEqualTo: \"Less than or equal to\",\r\n include: \"Include\",\r\n exclude: \"Exclude\",\r\n earlierThan: \"Earlier than\",\r\n noEarlierThan: \"No earlier than\",\r\n laterThan: \"Later than\",\r\n noLaterThan: \"No later than\",\r\n identificationNumber: \"Identification number\",\r\n phoneNumber: \"Phone number\",\r\n remote: \"Automatic remote acquisition option\",\r\n prohibitInput: \"Prohibit input when input data is invalid\",\r\n hintShow: \"Show prompt when the cell is selected\",\r\n deleteVerification: \"Delete verification\",\r\n tooltipInfo1: \"The drop-down list option cannot be empty\",\r\n tooltipInfo2: \"Checkbox content cannot be empty\",\r\n tooltipInfo3: \"The value entered is not a numeric type\",\r\n tooltipInfo4: \"The value 2 cannot be less than the value 1\",\r\n tooltipInfo5: \"The text content cannot be empty\",\r\n tooltipInfo6: \"The value entered is not a date type\",\r\n tooltipInfo7: \"Date 2 cannot be less than date 1\",\r\n textlengthInteger: \"Text length must be an integer greater than or equal to 0\",\r\n },\r\n formula: {\r\n sum: \"Sum\",\r\n average: \"Average\",\r\n count: \"Count\",\r\n max: \"Max\",\r\n min: \"Min\",\r\n ifGenerate: \"If formula generator\",\r\n find: \"Learn more\",\r\n\r\n tipNotBelongToIf: \"This cell function does not belong to the if formula!\",\r\n tipSelectCell: \"Please select the cell to insert the function\",\r\n\r\n ifGenCompareValueTitle: \"Comparison value\",\r\n ifGenSelectCellTitle: \"Click to select cell\",\r\n ifGenRangeTitle: \"Range\",\r\n ifGenRangeTo: \"to\",\r\n ifGenRangeEvaluate: \"Range evaluate\",\r\n ifGenSelectRangeTitle: \"Click to select range\",\r\n ifGenCutWay: \"Partition way\",\r\n ifGenCutSame: \"Same Partition value\",\r\n ifGenCutNpiece: \"Partition by N\",\r\n ifGenCutCustom: \"Custom\",\r\n ifGenCutConfirm: \"Confirm\",\r\n\r\n ifGenTipSelectCell: \"Select cells\",\r\n ifGenTipSelectCellPlace: \"Please select cells\",\r\n\r\n ifGenTipSelectRange: \"Select range\",\r\n ifGenTipSelectRangePlace: \"Please select range\",\r\n\r\n ifGenTipNotNullValue: \"The comparison value cannot be empty!\",\r\n ifGenTipLableTitile: \"Label\",\r\n ifGenTipRangeNotforNull: \"The range cannot be empty!\",\r\n ifGenTipCutValueNotforNull: \"The partition value cannot be empty!\",\r\n ifGenTipNotGenCondition: \"No conditions are available for generation!\",\r\n },\r\n formulaMore: {\r\n valueTitle: \"Value\",\r\n tipSelectDataRange: \"Select data range\",\r\n tipDataRangeTile: \"Data range\",\r\n findFunctionTitle: \"Search function\",\r\n tipInputFunctionName: \"Function name or brief description of function\",\r\n\r\n Array: \"Array\",\r\n Database: \"Database\",\r\n Date: \"Date\",\r\n Engineering: \"Engineering\",\r\n Filter: \"Filter\",\r\n Financial: \"Financial\",\r\n luckysheet: \"Luckysheet\",\r\n other: \"Other\",\r\n Logical: \"Logical\",\r\n Lookup: \"Lookup\",\r\n Math: \"Math\",\r\n Operator: \"Operator\",\r\n Parser: \"Parser\",\r\n Statistical: \"Statistical\",\r\n Text: \"Text\",\r\n dataMining: \"Data Mining\",\r\n\r\n selectFunctionTitle: \"Select a function\",\r\n calculationResult: \"Result\",\r\n\r\n tipSuccessText: \"Success\",\r\n tipParamErrorText: \"Parameter type error\",\r\n\r\n helpClose: \"Close\",\r\n helpCollapse: \"Collapse\",\r\n helpExample: \"Example\",\r\n helpAbstract: \"Abstract\",\r\n\r\n execfunctionError: \"Error in the formula\",\r\n execfunctionSelfError: \"The formula cannot refer to its own cell\",\r\n execfunctionSelfErrorResult:\r\n \"The formula cannot refer to its own cell, which will lead to inaccurate calculation results\",\r\n\r\n allowRepeatText: \"Repeat\",\r\n allowOptionText: \"Option\",\r\n\r\n selectCategory: \"Or select a category\",\r\n },\r\n drag: {\r\n noMerge: \"Cannot perform this operation on merged cells\",\r\n affectPivot: \"This change cannot be made to the selected cell because it will affect the pivot table!\",\r\n noMulti: \"Cannot perform this operation on multiple selection areas, please select a single area\",\r\n noPaste: \"Unable to paste this content here, please select a cell in the paste area and try to paste again\",\r\n noPartMerge: \"Cannot perform this operation on partially merged cells\",\r\n\r\n inputCorrect: \"Please enter the correct value\",\r\n notLessOne: \"The number of rows and columns cannot be less than 1\",\r\n offsetColumnLessZero: \"The offset column cannot be negative!\",\r\n\r\n pasteMustKeybordAlert: \"Copy and paste in the Sheet: Ctrl + C to copy, Ctrl + V to paste, Ctrl + X to cut\",\r\n pasteMustKeybordAlertHTMLTitle: \"Copy and paste in the Sheet\",\r\n pasteMustKeybordAlertHTML:\r\n \"Ctrl + C  to copy
Ctrl + V  to paste
Ctrl + X  to cut\",\r\n },\r\n paste: {\r\n warning: \"Warning\",\r\n errorNotAllowMulti:\r\n \"Cannot perform this operation on multiple selection areas, please select a single range and try again\",\r\n errorNotAllowMerged: \"Cannot make partial changes to merged cells\",\r\n },\r\n pivotTable: {\r\n title: \"Pivot Table\",\r\n closePannel: \"Close\",\r\n editRange: \"Range\",\r\n tipPivotFieldSelected: \"Select the fields\",\r\n tipClearSelectedField: \"Clear all fields\",\r\n btnClearSelectedField: \"Clear\",\r\n btnFilter: \"Filter\",\r\n titleRow: \"Row\",\r\n titleColumn: \"Column\",\r\n titleValue: \"Value\",\r\n tipShowColumn: \"Statistics fields are displayed as columns\",\r\n tipShowRow: \"Statistics fields are displayed as rows\",\r\n\r\n titleSelectionDataRange: \"Select range\",\r\n titleDataRange: \"Data range\",\r\n\r\n valueSum: \"SUM\",\r\n\r\n valueStatisticsSUM: \"Sum\",\r\n valueStatisticsCOUNT: \"Count\",\r\n valueStatisticsCOUNTA: \"Count A\",\r\n valueStatisticsCOUNTUNIQUE: \"Count Unique\",\r\n valueStatisticsAVERAGE: \"Average\",\r\n valueStatisticsMAX: \"Max\",\r\n valueStatisticsMIN: \"Min\",\r\n valueStatisticsMEDIAN: \"Median\",\r\n valueStatisticsPRODUCT: \"Product\",\r\n valueStatisticsSTDEV: \"Stdev\",\r\n\r\n valueStatisticsSTDEVP: \"Stdevp\",\r\n valueStatisticslet: \"Var\",\r\n valueStatisticsVARP: \"VarP\",\r\n\r\n errorNotAllowEdit: \"This operation is prohibited in non-editing mode!\",\r\n errorNotAllowMulti:\r\n \"Cannot perform this operation on multiple selection areas, please select a single range and try again\",\r\n errorSelectRange: \"Please select the range of the new pivot table\",\r\n errorIsDamage: \"The source data of this pivot table is corrupted!\",\r\n errorNotAllowPivotData: \"Cannot select pivot table as source data!\",\r\n errorSelectionRange: \"Selection failed, wrong input range!\",\r\n errorIncreaseRange: \"Please expand the selected range!\",\r\n\r\n titleAddColumn: \"Add column to pivot table\",\r\n titleMoveColumn: \"Move the column to the white box below\",\r\n titleClearColumnFilter: \"Clear the filter for this column\",\r\n titleFilterColumn: \"Filter\",\r\n\r\n titleSort: \"Sort\",\r\n titleNoSort: \"No sort\",\r\n titleSortAsc: \"ASC\",\r\n titleSortDesc: \"DESC\",\r\n titleSortBy: \"Sort by\",\r\n titleShowSum: \"Show total\",\r\n titleStasticTrue: \"Yes\",\r\n titleStasticFalse: \"No\",\r\n },\r\n dropCell: {\r\n copyCell: \"Copy\",\r\n sequence: \"Sequence\",\r\n onlyFormat: \"Only format\",\r\n noFormat: \"Not format\",\r\n day: \"Day\",\r\n workDay: \"Work Day\",\r\n month: \"Month\",\r\n year: \"Year\",\r\n chineseNumber: \"Chinese numbers\",\r\n },\r\n imageCtrl: {\r\n borderTile: \"Image border color\",\r\n borderCur: \"Color\",\r\n },\r\n protection: {\r\n protectiontTitle: \"Protection\",\r\n enterPassword: \"Enter a password (optional)\",\r\n enterHintTitle: \"Prompt when editing is prohibited (optional)\",\r\n enterHint:\r\n \"The cell or chart you are trying to change is in a protected worksheet. If you want to change it, please unprotect the worksheet. You may need to enter a password\",\r\n swichProtectionTip: \"Protect the sheet and contents of locked cells\",\r\n authorityTitle: \"Allow users of this sheet to:\",\r\n selectLockedCells: \"Select locked cells\",\r\n selectunLockedCells: \"Select unlocked cells\",\r\n formatCells: \"Format cells\",\r\n formatColumns: \"Format columns\",\r\n formatRows: \"Format rows\",\r\n insertColumns: \"Insert columns\",\r\n insertRows: \"Insert rows\",\r\n insertHyperlinks: \"Insert hyperlinks\",\r\n deleteColumns: \"Delete columns\",\r\n deleteRows: \"Delete rows\",\r\n sort: \"Sort\",\r\n filter: \"Filter\",\r\n usePivotTablereports: \"Use Pivot Table reports\",\r\n editObjects: \"Edit objects\",\r\n editScenarios: \"Edit scenarios\",\r\n\r\n allowRangeTitle: \"Allow users of range to:\",\r\n allowRangeAdd: \"New...\",\r\n\r\n allowRangeAddTitle: \"Title\",\r\n allowRangeAddSqrf: \"Reference\",\r\n selectCellRange: \"Click to select a cell range\",\r\n selectCellRangeHolder: \"Cell range\",\r\n allowRangeAddTitlePassword: \"Password\",\r\n allowRangeAddTitleHint: \"Prompt\",\r\n allowRangeAddTitleHintTitle: \"Prompt when a password is set (optional)\",\r\n allowRangeAddtitleDefault: \"Input range name\",\r\n\r\n rangeItemDblclick: \"Double click to edit\",\r\n rangeItemHasPassword: \"Has password\",\r\n\r\n rangeItemErrorTitleNull: \"Title is null\",\r\n rangeItemErrorRangeNull: \"Reference is null\",\r\n rangeItemErrorRange: \"Reference is error\",\r\n\r\n validationTitle: \"Password validation\",\r\n validationTips: \"Need to enter a password to unlock the protection of the worksheet\",\r\n validationInputHint: \"Enter a password\",\r\n\r\n checkPasswordNullalert: \"Password is required!\",\r\n checkPasswordWrongalert: \"Incorrect password, please try again!\",\r\n\r\n checkPasswordSucceedalert: \"Unlock Succeed!\",\r\n defaultRangeHintText: \"The cell is being password protected.\",\r\n defaultSheetHintText:\r\n \"The cell or chart is in a protected worksheet. To make changes, please unprotect the worksheet. You may need to enter a password\",\r\n },\r\n cellFormat: {\r\n cellFormatTitle: \"Format cells\",\r\n protection: \"Protection\",\r\n locked: \"Locked\",\r\n hidden: \"Hidden\",\r\n protectionTips:\r\n \"To lock cells or hide formulas, protect the worksheet. On the toolbar, Click Protect Sheet Button\",\r\n tipsPart: \"Partial checked\",\r\n tipsAll: \"All checked\",\r\n\r\n selectionIsNullAlert: \"Selection is required!\",\r\n sheetDataIsNullAlert: \"error, Data is none!\",\r\n },\r\n print: {\r\n normalBtn: \"Normal\",\r\n layoutBtn: \"Page Layout\",\r\n pageBtn: \"Page\u2002break\u2002preview\",\r\n\r\n menuItemPrint: \"Print (Ctrl+P)\",\r\n menuItemAreas: \"Print areas\",\r\n menuItemRows: \"Print title rows\",\r\n menuItemColumns: \"Print title columns\",\r\n suggest: \"Any suggestions for the print function?\",\r\n range: \"Print Range\",\r\n size: \"Paper Size\",\r\n direction: \"Print Direction\",\r\n horizontal: \"Horizontal\",\r\n vertical: \"Vertical\",\r\n title: \"Print Setup\",\r\n current: \"Current Sheet\",\r\n area: \"Selected Range\",\r\n letter: \"letter\",\r\n paper: \"tabloid paper\",\r\n law: \"official paper\",\r\n admin: \"administrative paper\",\r\n expire: \"expired\",\r\n remain: \"remaining days\",\r\n error: \"error\",\r\n showLine: \"show grid line\",\r\n show: \"show\",\r\n hide: \"hide\",\r\n preview: \"preview\",\r\n },\r\n edit: {\r\n typing: \"typing\",\r\n },\r\n websocket: {\r\n success: \"WebSocket connection success\",\r\n refresh: \"An error occurred in the WebSocket connection, please refresh the page!\",\r\n wait: \"An error occurred in the WebSocket connection, please be patient!\",\r\n close: \"WebSocket connection closed\",\r\n contact:\r\n \"Server communication error occurred, please refresh the page and try again, if not, please contact the administrator!\",\r\n support: \"The current browser does not support WebSocket\",\r\n },\r\n exportXlsx: {\r\n notice: \"Please configure the export plugin\",\r\n serverError: \"server is under maintenance\",\r\n title: \"Export XLSX\",\r\n range: \"Range\",\r\n currentSheet: \"Current sheet\",\r\n allSheets: \"All sheets\",\r\n },\r\n};\r\n", "export default {\r\n functionlist: {\r\n SUMIF: {\r\n d: \"\u5BF9\u8303\u56F4\u4E2D\u7B26\u5408\u6307\u5B9A\u6761\u4EF6\u7684\u503C\u6C42\u548C\u3002\",\r\n a: \"\u5BF9\u8303\u56F4\u4E2D\u7B26\u5408\u6307\u5B9A\u6761\u4EF6\u7684\u503C\u6C42\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"\u8303\u56F4\",\r\n detail: \"\u8981\u6839\u636E\u6761\u4EF6\u8FDB\u884C\u68C0\u6D4B\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF6\",\r\n detail:\r\n \"\u8981\u5E94\u7528\u4E8E\u8303\u56F4\u7684\u6A21\u5F0F\u6216\u6D4B\u8BD5\u6761\u4EF6\u3002\\n\\n\u5982\u679C\u8303\u56F4\u5305\u542B\u7684\u662F\u8981\u68C0\u6D4B\u7684\u6587\u672C\uFF0C\u5219\u6761\u4EF6\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32\u3002\u6761\u4EF6\u53EF\u4EE5\u5305\u542B\u901A\u914D\u7B26\uFF0C\u5305\u62EC\u7528\u4E8E\u5339\u914D\u5355\u4E2A\u5B57\u7B26\u7684?\u6216\u7528\u4E8E\u5339\u914D\u96F6\u4E2A\u6216\u8FDE\u7EED\u591A\u4E2A\u5B57\u7B26\u7684*\u3002\u8981\u5339\u914D\u95EE\u53F7\u661F\u53F7\u672C\u8EAB\uFF0C\u8BF7\u5728\u8BE5\u5B57\u7B26\u524D\u9762\u52A0\u4E0A\u6CE2\u6D6A\u53F7(~)\u524D\u7F00\uFF08\u5373~?\u548C~*\uFF09\u3002\u5B57\u7B26\u4E32\u6761\u4EF6\u5FC5\u987B\u7528\u5F15\u53F7\u62EC\u8D77\u6765\u3002\u51FD\u6570\u4F1A\u68C0\u67E5\u8303\u56F4\u4E2D\u7684\u6BCF\u4E2A\u5355\u5143\u683C\u4E0E\u6761\u4EF6\u662F\u5426\u76F8\u7B49\u6216\u5339\u914D\uFF08\u5982\u679C\u4F7F\u7528\u4E86\u901A\u914D\u7B26\uFF09\u3002\\n\\n\u5982\u679C\u8303\u56F4\u5305\u542B\u7684\u662F\u8981\u68C0\u6D4B\u7684\u6570\u5B57\uFF0C\u5219\u6761\u4EF6\u53EF\u4EE5\u662F\u5B57\u7B26\u4E32\u4E5F\u53EF\u4EE5\u662F\u6570\u5B57\u3002\u5982\u679C\u7ED9\u5B9A\u7684\u6761\u4EF6\u662F\u4E00\u4E2A\u6570\u5B57\uFF0C\u5219\u68C0\u67E5\u8303\u56F4\u4E2D\u7684\u6BCF\u4E2A\u5355\u5143\u683C\u662F\u5426\u7B49\u4E8E\u6761\u4EF6\u3002\u53E6\u5916\uFF0C\u6761\u4EF6\u4E5F\u53EF\u80FD\u662F\u5305\u542B\u6570\u5B57\u7684\u5B57\u7B26\u4E32\uFF08\u4E5F\u5C06\u5BF9\u5176\u8FDB\u884C\u76F8\u7B49\u68C0\u6D4B\uFF09\uFF0C\u6216\u8005\u5E26\u6709\u4EE5\u4E0B\u524D\u7F00\u7684\u6570\u5B57\uFF1A=\uFF08\u68C0\u67E5\u662F\u5426\u76F8\u7B49\uFF09\u3001>\uFF08\u68C0\u67E5\u8303\u56F4\u5355\u5143\u683C\u7684\u503C\u662F\u5426\u5927\u4E8E\u6761\u4EF6\u503C\uFF09\u6216<\uFF08\u68C0\u67E5\u8303\u56F4\u5355\u5143\u683C\u7684\u503C\u662F\u5426\u5C0F\u4E8E\u6761\u4EF6\u503C\uFF09\",\r\n },\r\n {\r\n name: \"\u6C42\u548C\u8303\u56F4\",\r\n detail: \"\u8981\u6C42\u548C\u7684\u8303\u56F4\uFF08\u5982\u679C\u4E0E\u8303\u56F4\u4E0D\u540C\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n TAN: {\r\n d: \"\u8FD4\u56DE\u5DF2\u77E5\u89D2\u5EA6\u7684\u6B63\u5207\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u5DF2\u77E5\u89D2\u5EA6\u7684\u6B63\u5207\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u89D2\u5EA6\",\r\n detail: \"\u8981\u6C42\u5176\u6B63\u5207\u503C\u7684\u89D2\u5EA6\uFF0C\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n },\r\n ],\r\n },\r\n TANH: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B9E\u6570\u7684\u53CC\u66F2\u6B63\u5207\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B9E\u6570\u7684\u53CC\u66F2\u6B63\u5207\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CC\u66F2\u6B63\u5207\u503C\u7684\u5B9E\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n CEILING: {\r\n d: \"\u5C06\u6570\u503C\u5411\u4E0A\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u6307\u5B9A\u56E0\u6570\u7684\u500D\u6570\u3002\",\r\n a: \"\u5C06\u6570\u503C\u5411\u4E0A\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u6307\u5B9A\u56E0\u6570\u7684\u500D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u5411\u4E0A\u820D\u5165\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u56E0\u6570\",\r\n detail: \"\u8981\u5C06\u503C\u820D\u5165\u5230\u6B64\u6570\u7684\u6574\u6570\u500D\u3002\",\r\n },\r\n ],\r\n },\r\n ATAN: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u6B63\u5207\u503C\uFF0C\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u6B63\u5207\u503C\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CD\u6B63\u5207\u503C\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ASINH: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u53CC\u66F2\u6B63\u5F26\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u53CC\u66F2\u6B63\u5F26\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CD\u53CC\u66F2\u6B63\u5F26\u503C\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ABS: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u7EDD\u5BF9\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u7EDD\u5BF9\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u7EDD\u5BF9\u503C\u7684\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n ACOS: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u4F59\u5F26\u503C\uFF0C\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u4F59\u5F26\u503C\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CD\u4F59\u5F26\u503C\u7684\u6570\u503C\u3002\u5FC5\u987B\u4ECB\u4E8E-1\u548C1\u4E4B\u95F4\uFF0C\u5305\u62EC\u4E24\u7AEF\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ACOSH: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u53CC\u66F2\u4F59\u5F26\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u53CC\u66F2\u4F59\u5F26\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CD\u53CC\u66F2\u4F59\u5F26\u503C\u7684\u6570\u503C\u3002\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E1\u3002\",\r\n },\r\n ],\r\n },\r\n MULTINOMIAL: {\r\n d: \"\u8FD4\u56DE\u53C2\u6570\u548C\u7684\u9636\u4E58\u9664\u4EE5\u5404\u53C2\u6570\u9636\u4E58\u7684\u4E58\u79EF\u540E\u5F97\u5230\u7684\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u53C2\u6570\u548C\u7684\u9636\u4E58\u9664\u4EE5\u5404\u53C2\u6570\u9636\u4E58\u7684\u4E58\u79EF\u540E\u5F97\u5230\u7684\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u7684\u7B2C\u4E00\u9879\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n ATANH: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u53CC\u66F2\u6B63\u5207\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u53CC\u66F2\u6B63\u5207\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CD\u53CC\u66F2\u6B63\u5207\u503C\u7684\u6570\u503C\u3002\u5FC5\u987B\u4ECB\u4E8E-1\u548C1\u4E4B\u95F4\uFF08\u4E0D\u5305\u62EC-1\u548C1\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n ATAN2: {\r\n d: \"\u4EE5\u5F27\u5EA6\u4E3A\u5355\u4F4D\u8FD4\u56DE x \u8F74\u4E0E\u4ECE\u539F\u70B9 (0,0) \u5230\u6307\u5B9A\u5750\u6807\u70B9 (`x`,`y`) \u4E4B\u95F4\u8FDE\u7EBF\u7684\u5939\u89D2\u3002\",\r\n a: \"\u4EE5\u5F27\u5EA6\u4E3A\u5355\u4F4D\u8FD4\u56DE x \u8F74\u4E0E\u4ECE\u539F\u70B9 (0,0) \u5230\u6307\u5B9A\u5750\u6807\u70B9 (`x`,`y`) \u4E4B\u95F4\u8FDE\u7EBF\u7684\u5939\u89D2\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u4E0Ex\u8F74\u5939\u89D2\u5927\u5C0F\u7684\u7EBF\u6BB5\u7684\u7EC8\u70B9x\u5750\u6807\u3002\",\r\n },\r\n {\r\n name: \"y\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u4E0Ex\u8F74\u5939\u89D2\u5927\u5C0F\u7684\u7EBF\u6BB5\u7684\u7EC8\u70B9y\u5750\u6807\u3002\",\r\n },\r\n ],\r\n },\r\n COUNTBLANK: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u8303\u56F4\u5185\u7684\u7A7A\u5355\u5143\u683C\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u8303\u56F4\u5185\u7684\u7A7A\u5355\u5143\u683C\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u8303\u56F4\",\r\n detail: \"\u8981\u7EDF\u8BA1\u7A7A\u767D\u5355\u5143\u683C\u6570\u91CF\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n COSH: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B9E\u6570\u7684\u53CC\u66F2\u4F59\u5F26\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B9E\u6570\u7684\u53CC\u66F2\u4F59\u5F26\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CC\u66F2\u4F59\u5F26\u503C\u7684\u5B9E\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n INT: {\r\n d: \"\u5C06\u6570\u503C\u5411\u4E0B\u53D6\u6574\u4E3A\u5C0F\u4E8E\u6216\u7B49\u4E8E\u8BE5\u6570\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6570\u3002\",\r\n a: \"\u5C06\u6570\u503C\u5411\u4E0B\u53D6\u6574\u4E3A\u5C0F\u4E8E\u6216\u7B49\u4E8E\u8BE5\u6570\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u5411\u4E0B\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u6574\u6570\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ISEVEN: {\r\n d: \"\u68C0\u67E5\u6240\u63D0\u4F9B\u7684\u6570\u503C\u662F\u5426\u4E3A\u5076\u6570\u3002\",\r\n a: \"\u68C0\u67E5\u6240\u63D0\u4F9B\u7684\u6570\u503C\u662F\u5426\u4E3A\u5076\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A\u5076\u6570\u7684\u6570\u503C\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u5076\u6570\u6216\u6307\u5411\u5305\u542B\u5076\u6570\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CISEVEN\u5C06\u8FD4\u56DETRUE\uFF0C\u5426\u5219\u8FD4\u56DEFALSE\u3002\",\r\n },\r\n ],\r\n },\r\n ISODD: {\r\n d: \"\u68C0\u67E5\u6240\u63D0\u4F9B\u7684\u6570\u503C\u662F\u5426\u4E3A\u5947\u6570\u3002\",\r\n a: \"\u68C0\u67E5\u6240\u63D0\u4F9B\u7684\u6570\u503C\u662F\u5426\u4E3A\u5947\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A\u5947\u6570\u7684\u6570\u503C\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u5947\u6570\u6216\u6307\u5411\u5305\u542B\u5947\u6570\u7684\u5355\u5143\u683C\uFF0CISODD\u5C06\u8FD4\u56DETRUE\uFF0C\u5426\u5219\u8FD4\u56DEFALSE\u3002\",\r\n },\r\n ],\r\n },\r\n LCM: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u6216\u591A\u4E2A\u6574\u6570\u7684\u6700\u5C0F\u516C\u500D\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u6216\u591A\u4E2A\u6574\u6570\u7684\u6700\u5C0F\u516C\u500D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8981\u5728\u6C42\u6700\u5C0F\u516C\u500D\u6570\u6570\u7684\u8BA1\u7B97\u4E2D\u68C0\u67E5\u5176\u56E0\u6570\u7684\u7B2C\u4E00\u9879\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u5728\u6C42\u6700\u5C0F\u516C\u500D\u6570\u65F6\u8981\u8003\u8651\u5176\u56E0\u6570\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n LN: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u4EE5 e\uFF08\u6B27\u62C9\u6570\uFF09\u4E3A\u5E95\u7684\u5BF9\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u4EE5 e\uFF08\u6B27\u62C9\u6570\uFF09\u4E3A\u5E95\u7684\u5BF9\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u4EE5 e \u4E3A\u5E95\u6570\u8BA1\u7B97\u5176\u5BF9\u6570\u7684\u503C\u3002\\n\\n\u503C\u5FC5\u987B\u4E3A\u6B63\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n LOG: {\r\n d: \"\u6839\u636E\u6307\u5B9A\u5E95\u6570\u8FD4\u56DE\u6570\u5B57\u7684\u5BF9\u6570\u3002\",\r\n a: \"\u6839\u636E\u6307\u5B9A\u5E95\u6570\u8FD4\u56DE\u6570\u5B57\u7684\u5BF9\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u60F3\u8981\u8BA1\u7B97\u5176\u5BF9\u6570\u7684\u6B63\u5B9E\u6570\u3002\",\r\n },\r\n {\r\n name: \"\u5E95\u6570\",\r\n detail: \"[\u53EF\u9009] - \u5BF9\u6570\u7684\u5E95\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n LOG10: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u4EE510\u4E3A\u5E95\u7684\u5BF9\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u4EE510\u4E3A\u5E95\u7684\u5BF9\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u4EE510\u4E3A\u5E95\u7684\u5BF9\u6570\u7684\u6570\u503C\u3002\\n\\n\u503C\u5FC5\u987B\u4E3A\u6B63\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n MOD: {\r\n d: \"\u8FD4\u56DE\u4E24\u6570\u76F8\u9664\u7684\u4F59\u6570, \u7ED3\u679C\u7684\u7B26\u53F7\u4E0E\u9664\u6570\u76F8\u540C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u6570\u76F8\u9664\u7684\u4F59\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u88AB\u9664\u6570\",\r\n detail: \"\u8981\u5C06\u5176\u76F8\u9664\u4EE5\u5F97\u5230\u4F59\u6570\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u9664\u6570\",\r\n detail: \"\u7528\u4E8E\u9664\u5176\u4ED6\u6570\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n MROUND: {\r\n d: \"\u5C06\u6570\u503C\u53D6\u6574\u4E3A\u53E6\u4E00\u6574\u6570\u6700\u63A5\u8FD1\u7684\u6574\u6570\u500D\u3002\",\r\n a: \"\u5C06\u6570\u503C\u53D6\u6574\u4E3A\u53E6\u4E00\u6574\u6570\u6700\u63A5\u8FD1\u7684\u6574\u6570\u500D\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u53D6\u6574\u4E3A\u53E6\u4E00\u6574\u6570\u6700\u63A5\u8FD1\u7684\u6574\u6570\u500D\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u56E0\u6570\",\r\n detail: \"\u503C\u5C06\u53D6\u6B64\u56E0\u6570\u7684\u6574\u6570\u500D\u3002\",\r\n },\r\n ],\r\n },\r\n ODD: {\r\n d: \"\u5C06\u6570\u503C\u5411\u4E0A\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u5947\u6574\u6570\u3002\",\r\n a: \"\u5C06\u6570\u503C\u5411\u4E0A\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u5947\u6574\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail:\r\n \"\u8981\u5411\u4E0A\u53D6\u6574\u7684\u6570\u503C\uFF0C\u53D6\u6574\u503C\u4E3A\u5927\u4E8E\u6B64\u503C\u7684\u6700\u63A5\u8FD1\u7684\u5947\u6570\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u8D1F\u6570\uFF0C\u5219\u5C06\u5176\u53D6\u6574\u4E3A\u7EDD\u5BF9\u503C\u5927\u4E8E\u8BE5\u503C\u7684\u76F8\u90BB\u8D1F\u5947\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n SUMSQ: {\r\n d: \"\u8FD4\u56DE\u4E00\u7EC4\u6570\u503C\u548C/\u6216\u5355\u5143\u683C\u7684\u5E73\u65B9\u603B\u548C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u7EC4\u6570\u503C\u548C/\u6216\u5355\u5143\u683C\u7684\u5E73\u65B9\u603B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8981\u5C06\u5176\u5E73\u65B9\u76F8\u52A0\u7684\u7B2C\u4E00\u4E2A\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u8981\u5C06\u5176\u5E73\u65B9\u4E0E\u503C1\u7684\u5E73\u65B9\u76F8\u52A0\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n COMBIN: {\r\n d: \"\u7ED9\u5B9A\u96C6\u5408\u4E2D\u7684\u5BF9\u8C61\u603B\u6570\u548C\u8981\u9009\u62E9\u7684\u5BF9\u8C61\u6570\u91CF\uFF0C\u8FD4\u56DE\u5171\u6709\u591A\u5C11\u79CD\u4E0D\u540C\u9009\u62E9\u65B9\u5F0F\u3002\",\r\n a: \"\u7ED9\u5B9A\u96C6\u5408\u4E2D\u7684\u5BF9\u8C61\u603B\u6570\u548C\u8981\u9009\u62E9\u7684\u5BF9\u8C61\u6570\u91CF\",\r\n p: [\r\n {\r\n name: \"n\",\r\n detail: \"\u8981\u4ECE\u4E2D\u8FDB\u884C\u9009\u62E9\u7684\u5BF9\u8C61\u96C6\u5408\u7684\u5927\u5C0F\u3002\",\r\n },\r\n {\r\n name: \"k\",\r\n detail: \"\u8981\u9009\u62E9\u7684\u5BF9\u8C61\u6570\u91CF\u3002\",\r\n },\r\n ],\r\n },\r\n SUM: {\r\n d: \"\u8FD4\u56DE\u4E00\u7EC4\u6570\u503C\u548C/\u6216\u5355\u5143\u683C\u7684\u603B\u548C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u7EC4\u6570\u503C\u548C/\u6216\u5355\u5143\u683C\u7684\u603B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8981\u76F8\u52A0\u7684\u7B2C\u4E00\u4E2A\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u8981\u76F8\u52A0\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n SUBTOTAL: {\r\n d: \"\u4F7F\u7528\u6307\u5B9A\u7684\u6C47\u603B\u51FD\u6570\uFF0C\u8FD4\u56DE\u4E00\u7CFB\u5217\u7EB5\u5411\u5355\u5143\u683C\u7684\u5206\u7C7B\u6C47\u603B\u3002\",\r\n a: \"\u4F7F\u7528\u6307\u5B9A\u7684\u6C47\u603B\u51FD\u6570\",\r\n p: [\r\n {\r\n name: \"\u51FD\u6570\u4EE3\u7801\",\r\n detail:\r\n \"\u7528\u4E8E\u8BA1\u7B97\u5206\u7C7B\u6C47\u603B\u7684\u51FD\u6570\u3002\\n\\n1\u4EE3\u8868AVERAGE\\n\\n2\u4EE3\u8868COUNT\\n\\n3\u4EE3\u8868COUNTA\\n\\n4\u4EE3\u8868MAX\\n\\n5\u4EE3\u8868MIN\\n\\n6\u4EE3\u8868PRODUCT\\n\\n7\u4EE3\u8868STDEV\\n\\n8\u4EE3\u8868STDEVP\\n\\n9\u4EE3\u8868SUM\\n\\n10\u4EE3\u8868VAR\\n\\n11\u4EE3\u8868VARP\\n\\n\u901A\u8FC7\u5728\u8FD9\u4E9B2\u4F4D\u4EE3\u7801\u524D\u9644\u52A010\uFF08\u5BF9\u4E8E1\u4F4D\u4EE3\u7801\uFF09\u62161\uFF08\u5BF9\u4E8E2\u4F4D\u4EE3\u7801\uFF09\uFF0C\u53EF\u4EE5\u5C06\u9690\u85CF\u503C\u5FFD\u7565\u3002\u4F8B\u5982\uFF0C102\u4EE3\u8868\u5FFD\u7565\u9690\u85CF\u5355\u5143\u683C\u7684COUNT\uFF0C\u800C110\u5219\u4EE3\u8868\u5FFD\u7565\u9690\u85CF\u503C\u7684VAR\u3002\",\r\n },\r\n {\r\n name: \"\u8303\u56F41\",\r\n detail: \"\u8981\u8BA1\u7B97\u5206\u7C7B\u6C47\u603B\u7684\u7B2C\u4E00\u4E2A\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u8303\u56F42\",\r\n detail: \"[\u53EF\u9009] - \u8981\u8BA1\u7B97\u5206\u7C7B\u6C47\u603B\u7684\u5176\u4ED6\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n ASIN: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u6B63\u5F26\u503C\uFF0C\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u53CD\u6B63\u5F26\u503C\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CD\u6B63\u5F26\u503C\u7684\u6570\u503C\u3002\u5FC5\u987B\u4ECB\u4E8E-1\u548C1\u4E4B\u95F4\uFF0C\u5305\u62EC\u4E24\u7AEF\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n COUNTIF: {\r\n d: \"\u8FD4\u56DE\u8303\u56F4\u5185\u6EE1\u8DB3\u67D0\u4E2A\u6761\u4EF6\u7684\u5355\u5143\u683C\u7684\u6570\u91CF\u3002\",\r\n a: \"\u8FD4\u56DE\u8303\u56F4\u5185\u6EE1\u8DB3\u67D0\u4E2A\u6761\u4EF6\u7684\u5355\u5143\u683C\u7684\u6570\u91CF\u3002\",\r\n p: [\r\n {\r\n name: \"\u8303\u56F4\",\r\n detail: \"\u8981\u6839\u636E\u6761\u4EF6\u8FDB\u884C\u68C0\u6D4B\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF6\",\r\n detail:\r\n \"\u8981\u5E94\u7528\u4E8E\u8303\u56F4\u7684\u6A21\u5F0F\u6216\u6D4B\u8BD5\u6761\u4EF6\u3002\\n\\n\u5982\u679C\u8303\u56F4\u5305\u542B\u7684\u662F\u8981\u68C0\u6D4B\u7684\u6587\u672C\uFF0C\u5219\u6761\u4EF6\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32\u3002\u6761\u4EF6\u53EF\u4EE5\u5305\u542B\u901A\u914D\u7B26\uFF0C\u5305\u62EC\u7528\u4E8E\u5339\u914D\u5355\u4E2A\u5B57\u7B26\u7684?\u6216\u7528\u4E8E\u5339\u914D\u96F6\u4E2A\u6216\u8FDE\u7EED\u591A\u4E2A\u5B57\u7B26\u7684*\u3002\u8981\u5339\u914D\u95EE\u53F7\u661F\u53F7\u672C\u8EAB\uFF0C\u8BF7\u5728\u8BE5\u5B57\u7B26\u524D\u9762\u52A0\u4E0A\u6CE2\u6D6A\u53F7(~)\u524D\u7F00\uFF08\u5373~?\u548C~*\uFF09\u3002\u5B57\u7B26\u4E32\u6761\u4EF6\u5FC5\u987B\u7528\u5F15\u53F7\u62EC\u8D77\u6765\u3002\u51FD\u6570\u4F1A\u68C0\u67E5\u8303\u56F4\u4E2D\u7684\u6BCF\u4E2A\u5355\u5143\u683C\u4E0E\u6761\u4EF6\u662F\u5426\u76F8\u7B49\u6216\u5339\u914D\uFF08\u5982\u679C\u4F7F\u7528\u4E86\u901A\u914D\u7B26\uFF09\u3002\\n\\n\u5982\u679C\u8303\u56F4\u5305\u542B\u7684\u662F\u8981\u68C0\u6D4B\u7684\u6570\u5B57\uFF0C\u5219\u6761\u4EF6\u53EF\u4EE5\u662F\u5B57\u7B26\u4E32\u4E5F\u53EF\u4EE5\u662F\u6570\u5B57\u3002\u5982\u679C\u7ED9\u5B9A\u7684\u6761\u4EF6\u662F\u4E00\u4E2A\u6570\u5B57\uFF0C\u5219\u68C0\u67E5\u8303\u56F4\u4E2D\u7684\u6BCF\u4E2A\u5355\u5143\u683C\u662F\u5426\u7B49\u4E8E\u6761\u4EF6\u3002\u53E6\u5916\uFF0C\u6761\u4EF6\u4E5F\u53EF\u80FD\u662F\u5305\u542B\u6570\u5B57\u7684\u5B57\u7B26\u4E32\uFF08\u4E5F\u5C06\u5BF9\u5176\u8FDB\u884C\u76F8\u7B49\u68C0\u6D4B\uFF09\uFF0C\u6216\u8005\u5E26\u6709\u4EE5\u4E0B\u524D\u7F00\u7684\u6570\u5B57\uFF1A=\u3001>\u3001>=\u3001<\u6216<=\uFF0C\u8FD9\u4E9B\u6761\u4EF6\u5C06\u5206\u522B\u7528\u4E8E\u68C0\u67E5\u8303\u56F4\u4E2D\u7684\u5355\u5143\u683C\u662F\u5426\u7B49\u4E8E\u3001\u5927\u4E8E\u3001\u5927\u4E8E\u7B49\u4E8E\u3001\u5C0F\u4E8E\u3001\u5C0F\u4E8E\u7B49\u4E8E\u6761\u4EF6\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n RADIANS: {\r\n d: \"\u5C06\u4EE5\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F6C\u6362\u4E3A\u5F27\u5EA6\u3002\",\r\n a: \"\u5C06\u4EE5\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F6C\u6362\u4E3A\u5F27\u5EA6\u3002\",\r\n p: [\r\n {\r\n name: \"\u89D2\u5EA6\",\r\n detail: \"\u8981\u4ECE\u5EA6\u8F6C\u6362\u4E3A\u5F27\u5EA6\u7684\u89D2\u5EA6\u3002\",\r\n },\r\n ],\r\n },\r\n RAND: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF08\u5305\u62EC0\u4F46\u4E0D\u5305\u62EC1\uFF09\u7684\u968F\u673A\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF08\u5305\u62EC0\u4F46\u4E0D\u5305\u62EC1\uFF09\u7684\u968F\u673A\u6570\u3002\",\r\n p: [],\r\n },\r\n COUNTUNIQUE: {\r\n d: \"\u8BA1\u7B97\u4E00\u5217\u6307\u5B9A\u503C\u548C\u8303\u56F4\u4E2D\u4E0D\u91CD\u590D\u6570\u503C\u7684\u4E2A\u6570\u3002\",\r\n a: \"\u8BA1\u7B97\u4E00\u5217\u6307\u5B9A\u503C\u548C\u8303\u56F4\u4E2D\u4E0D\u91CD\u590D\u6570\u503C\u7684\u4E2A\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8981\u68C0\u67E5\u5176\u662F\u5426\u552F\u4E00\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u8981\u68C0\u67E5\u662F\u5426\u552F\u4E00\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n DEGREES: {\r\n d: \"\u5C06\u4EE5\u5F27\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F6C\u6362\u4E3A\u5EA6\u3002\",\r\n a: \"\u5C06\u4EE5\u5F27\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F6C\u6362\u4E3A\u5EA6\u3002\",\r\n p: [\r\n {\r\n name: \"\u89D2\u5EA6\",\r\n detail: \"\u8981\u4ECE\u5F27\u5EA6\u8F6C\u6362\u4E3A\u5EA6\u7684\u89D2\u5EA6\u3002\",\r\n },\r\n ],\r\n },\r\n ERFC: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u4E92\u8865\u9AD8\u65AF\u8BEF\u5DEE\u51FD\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u4E92\u8865\u9AD8\u65AF\u8BEF\u5DEE\u51FD\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"z\",\r\n detail: \"\u8981\u4E3A\u5176\u8BA1\u7B97\u4E92\u8865\u9AD8\u65AF\u8BEF\u5DEE\u51FD\u6570\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n EVEN: {\r\n d: \"\u5C06\u6570\u503C\u5411\u4E0A\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u5076\u6574\u6570\u3002\",\r\n a: \"\u5C06\u6570\u503C\u5411\u4E0A\u53D6\u6574\u4E3A\u6700\u63A5\u8FD1\u7684\u5076\u6574\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail:\r\n \"\u8981\u5411\u4E0A\u53D6\u6574\u7684\u6570\u503C\uFF0C\u53D6\u6574\u503C\u4E3A\u5927\u4E8E\u6B64\u503C\u7684\u6700\u63A5\u8FD1\u7684\u5076\u6570\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u8D1F\u6570\uFF0C\u5219\u5C06\u5176\u53D6\u6574\u4E3A\u7EDD\u5BF9\u503C\u5927\u4E8E\u8BE5\u503C\u7684\u76F8\u90BB\u8D1F\u5076\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n EXP: {\r\n d: \"\u8FD4\u56DE\u6B27\u62C9\u6570 e (~2.718) \u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n a: \"\u8FD4\u56DE\u6B27\u62C9\u6570 e (~2.718) \u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n p: [\r\n {\r\n name: \"\u6307\u6570\",\r\n detail: \"\u6307\u5B9Ae\u7684\u81EA\u4E58\u5E42\u6B21\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n FACT: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u9636\u4E58\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u9636\u4E58\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5E76\u8FD4\u56DE\u5176\u9636\u4E58\u7684\u6570\u5B57\u6216\u5BF9\u6570\u5B57\uFF08\u6240\u5728\u5355\u5143\u683C\uFF09\u7684\u5F15\u7528\u3002\",\r\n },\r\n ],\r\n },\r\n FACTDOUBLE: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u201C\u53CC\u9636\u4E58\u201D\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u201C\u53CC\u9636\u4E58\u201D\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5E76\u8FD4\u56DE\u5176\u53CC\u9636\u4E58\u7684\u6570\u5B57\u6216\u5BF9\u6570\u5B57\uFF08\u6240\u5728\u5355\u5143\u683C\uFF09\u7684\u5F15\u7528\u3002\",\r\n },\r\n ],\r\n },\r\n PI: {\r\n d: \"\u8FD4\u56DE\u5E26\u670914\u4F4D\u5C0F\u6570\u7684 PI \u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u5E26\u670914\u4F4D\u5C0F\u6570\u7684 PI \u503C\u3002\",\r\n p: [],\r\n },\r\n FLOOR: {\r\n d: \"\u5C06\u6570\u503C\u5411\u4E0B\u53D6\u6574\u4E3A\u6307\u5B9A\u56E0\u6570\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6570\u500D\u3002\",\r\n a: \"\u5C06\u6570\u503C\u5411\u4E0B\u53D6\u6574\u4E3A\u6307\u5B9A\u56E0\u6570\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6570\u500D\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u5411\u4E0B\u820D\u5165\u4E3A\u56E0\u6570\u7684\u6700\u63A5\u8FD1\u6574\u6570\u500D\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u56E0\u6570\",\r\n detail: \"\u8981\u5C06\u503C\u820D\u5165\u5230\u6B64\u6570\u7684\u6574\u6570\u500D\u3002\\n\\n\u56E0\u6570\u4E0D\u5F97\u4E3A0\u3002\",\r\n },\r\n ],\r\n },\r\n GCD: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u6216\u591A\u4E2A\u6574\u6570\u7684\u6700\u5927\u516C\u7EA6\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u6216\u591A\u4E2A\u6574\u6570\u7684\u6700\u5927\u516C\u7EA6\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8981\u5728\u67E5\u627E\u6700\u5927\u516C\u7EA6\u6570\u7684\u8BA1\u7B97\u4E2D\u68C0\u67E5\u5176\u56E0\u6570\u7684\u7B2C\u4E00\u9879\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u5728\u6C42\u6700\u5927\u516C\u7EA6\u6570\u65F6\u8981\u8003\u8651\u5176\u56E0\u6570\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n RANDBETWEEN: {\r\n d: \"\u8FD4\u56DE\u4ECB\u4E8E\u4E24\u4E2A\u6574\u6570\u4E4B\u95F4\uFF08\u5305\u62EC\u8FD9\u4E24\u4E2A\u6574\u6570\uFF09\u7684\u968F\u673A\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4ECB\u4E8E\u4E24\u4E2A\u6574\u6570\u4E4B\u95F4\uFF08\u5305\u62EC\u8FD9\u4E24\u4E2A\u6574\u6570\uFF09\u7684\u968F\u673A\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u4E0B\u754C\",\r\n detail: \"\u968F\u673A\u503C\u8303\u56F4\u7684\u4E0B\u754C\u3002\",\r\n },\r\n {\r\n name: \"\u4E0A\u754C\",\r\n detail: \"\u968F\u673A\u503C\u8303\u56F4\u7684\u4E0A\u754C\u3002\",\r\n },\r\n ],\r\n },\r\n ROUND: {\r\n d: \"\u5C06\u6570\u5B57\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570\u3002\",\r\n a: \"\u5C06\u6570\u5B57\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u56DB\u820D\u4E94\u5165\u7684\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"\u4F4D\u6570\",\r\n detail:\r\n \"\u8981\u8FDB\u884C\u56DB\u820D\u4E94\u5165\u8FD0\u7B97\u7684\u4F4D\u6570\u3002\\n\\n\u4F4D\u6570\u53EF\u4EE5\u53D6\u8D1F\u503C\uFF0C\u5728\u8FD9\u79CD\u60C5\u51B5\u4E0B\u4F1A\u5C06\u503C\u7684\u5C0F\u6570\u70B9\u5DE6\u4FA7\u90E8\u5206\u820D\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n ROUNDDOWN: {\r\n d: \"\u671D\u7740\u96F6\u7684\u65B9\u5411\u5C06\u6570\u5B57\u8FDB\u884C\u5411\u4E0B\u820D\u5165\u3002\",\r\n a: \"\u671D\u7740\u96F6\u7684\u65B9\u5411\u5C06\u6570\u5B57\u8FDB\u884C\u5411\u4E0B\u820D\u5165\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u9700\u8981\u5411\u4E0B\u820D\u5165\u7684\u4EFB\u610F\u5B9E\u6570\u3002\",\r\n },\r\n {\r\n name: \"\u4F4D\u6570\",\r\n detail:\r\n \"\u8981\u901A\u8FC7\u820D\u5165\u8FBE\u5230\u7684\u5C0F\u6570\u4F4D\u6570\u3002\\n\\n\u4F4D\u6570\u53EF\u4EE5\u53D6\u8D1F\u503C\uFF0C\u5728\u8FD9\u79CD\u60C5\u51B5\u4E0B\u4F1A\u5C06\u503C\u7684\u5C0F\u6570\u70B9\u5DE6\u4FA7\u90E8\u5206\u820D\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n ROUNDUP: {\r\n d: \"\u671D\u7740\u8FDC\u79BB 0\uFF08\u96F6\uFF09\u7684\u65B9\u5411\u5C06\u6570\u5B57\u8FDB\u884C\u5411\u4E0A\u820D\u5165\u3002\",\r\n a: \"\u671D\u7740\u8FDC\u79BB 0\uFF08\u96F6\uFF09\u7684\u65B9\u5411\u5C06\u6570\u5B57\u8FDB\u884C\u5411\u4E0A\u820D\u5165\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u5C06\u5176\u820D\u5165\u4E3A\u4F4D\u6570\u4F4D\u6570\u5B57\u7684\u503C\uFF0C\u59CB\u7EC8\u5411\u4E0A\u820D\u5165\u3002\",\r\n },\r\n {\r\n name: \"\u4F4D\u6570\",\r\n detail:\r\n \"\u8981\u901A\u8FC7\u820D\u5165\u8FBE\u5230\u7684\u5C0F\u6570\u4F4D\u6570\u3002\\n\\n\u4F4D\u6570\u53EF\u4EE5\u53D6\u8D1F\u503C\uFF0C\u5728\u8FD9\u79CD\u60C5\u51B5\u4E0B\u4F1A\u5C06\u503C\u7684\u5C0F\u6570\u70B9\u5DE6\u4FA7\u90E8\u5206\u820D\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n SERIESSUM: {\r\n d:\r\n \"\u7ED9\u5B9A\u53C2\u6570 x\u3001n\u3001m \u548C a\uFF0C\u8FD4\u56DE\u5E42\u7EA7\u6570\u7684\u548C a1xn + a2x(n+m) + ... + aix(n+(i-1)m)\uFF0C\u5176\u4E2D i \u4E3A\u8303\u56F4 a \u4E2D\u7684\u9879\u6570\u3002\",\r\n a: \"\u7ED9\u5B9A\u53C2\u6570 x\u3001n\u3001m \u548C a\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u5E42\u7EA7\u6570\u7684\u8F93\u5165\u503C\u3002\u968F\u76F8\u5E94\u7684\u8FD1\u4F3C\u7C7B\u578B\u800C\u53D8\uFF0C\u6709\u53EF\u80FD\u4E3A\u89D2\u5EA6\u3001\u6307\u6570\u6216\u5176\u4ED6\u4E00\u4E9B\u503C\u3002\",\r\n },\r\n {\r\n name: \"n\",\r\n detail: \"\u5728\u5E42\u7EA7\u6570\u4E2Dx\u7684\u521D\u59CB\u81EA\u4E58\u5E42\u6B21\u3002\",\r\n },\r\n {\r\n name: \"m\",\r\n detail: \"x\u7684\u5E42\u6B21\u4E2D\u7684\u9644\u52A0\u589E\u91CF\u3002\",\r\n },\r\n {\r\n name: \"a\",\r\n detail: \"\u5305\u542B\u5E42\u7EA7\u6570\u7CFB\u6570\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n SIGN: {\r\n d: \"\u7ED9\u5B9A\u8F93\u5165\u6570\u503C\uFF0C\u5982\u679C\u4E3A\u8D1F\u8FD4\u56DE-1\uFF1B\u5982\u679C\u4E3A\u6B63\u8FD4\u56DE1\uFF1B\u5982\u679C\u4E3A\u96F6\u5219\u8FD4\u56DE0\u3002\",\r\n a: \"\u7ED9\u5B9A\u8F93\u5165\u6570\u503C\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u7B26\u53F7\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n SIN: {\r\n d: \"\u7ED9\u5B9A\u89D2\u5EA6\uFF08\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\uFF0C\u8FD4\u56DE\u5176\u6B63\u5F26\u503C\u3002\",\r\n a: \"\u7ED9\u5B9A\u89D2\u5EA6\uFF08\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\",\r\n p: [\r\n {\r\n name: \"\u89D2\u5EA6\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u6B63\u5F26\u503C\u7684\u89D2\u5EA6\uFF0C\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n },\r\n ],\r\n },\r\n SINH: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B9E\u6570\u7684\u53CC\u66F2\u6B63\u5F26\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B9E\u6570\u7684\u53CC\u66F2\u6B63\u5F26\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u53CC\u66F2\u6B63\u5F26\u503C\u7684\u5B9E\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n SQRT: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u6B63\u6570\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u6B63\u6570\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u6B63\u5E73\u65B9\u6839\u7684\u6570\u503C\u3002\\n\\n\u503C\u5FC5\u987B\u4E3A\u6B63\u6570\uFF1B\u5982\u679C\u4E3A\u8D1F\uFF0CSQRT \u5C06\u8FD4\u56DE #NUM! \u9519\u8BEF\u3002\",\r\n },\r\n ],\r\n },\r\n SQRTPI: {\r\n d: \"\u8FD4\u56DE PI \u4E0E\u7ED9\u5B9A\u6B63\u6570\u4E58\u79EF\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n a: \"\u8FD4\u56DE PI \u4E0E\u7ED9\u5B9A\u6B63\u6570\u4E58\u79EF\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail:\r\n \"\u8981\u5C06\u5176\u4E0E PI \u76F8\u4E58\u5E76\u8FD4\u56DE\u8BE5\u4E58\u79EF\u7684\u5E73\u65B9\u6839\u7684\u6570\u503C\\n\\n\u503C\u5FC5\u987B\u4E3A\u6B63\u6570\uFF1B\u5982\u679C\u4E3A\u8D1F\u6570\uFF0CSQRTPI \u5C06\u8FD4\u56DE #NUM! \u9519\u8BEF\u3002\",\r\n },\r\n ],\r\n },\r\n GAMMALN: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u4F3D\u739B\u51FD\u6570\u7684\u4EE5 e\uFF08\u6B27\u62C9\u6570\uFF09\u4E3A\u5E95\u7684\u5BF9\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u4F3D\u739B\u51FD\u6570\u7684\u4EE5 e\uFF08\u6B27\u62C9\u6570\uFF09\u4E3A\u5E95\u7684\u5BF9\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u4F3D\u739B\u51FD\u6570\u7684\u8F93\u5165\u503C\u3002\u8FD4\u56DE\u7684\u5C06\u662F\u4F3D\u739B (\u503C) \u7684\u81EA\u7136\u5BF9\u6570\u3002\\n\\n\u503C\u5FC5\u987B\u4E3A\u6B63\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n COS: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u89D2\u5EA6\u7684\u4F59\u5F26\u503C\uFF08\u89D2\u5EA6\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u89D2\u5EA6\u7684\u4F59\u5F26\u503C\uFF08\u89D2\u5EA6\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"\u89D2\u5EA6\",\r\n detail: \"\u8981\u53D6\u5176\u4F59\u5F26\u503C\u7684\u89D2\u5EA6\uFF0C\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n },\r\n ],\r\n },\r\n TRUNC: {\r\n d: \"\u622A\u9664\u6307\u5B9A\u6709\u6548\u4F4D\u4E4B\u5916\u7684\u90E8\u5206\uFF0C\u53D6\u6570\u636E\u7684\u6307\u5B9A\u6709\u6548\u4F4D\u3002\",\r\n a: \"\u622A\u9664\u6307\u5B9A\u6709\u6548\u4F4D\u4E4B\u5916\u7684\u90E8\u5206\",\r\n p: [\r\n {\r\n name: \"\u503C\",\r\n detail: \"\u8981\u622A\u53D6\u7684\u6570\u636E\u3002\",\r\n },\r\n {\r\n name: \"\u4F4D\u6570\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0] - \u5C0F\u6570\u70B9\u53F3\u4FA7\u8981\u4FDD\u7559\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u4F4D\u6570\u5927\u4E8E\u503C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5C06\u201C\u503C\u201D\u539F\u6837\u8FD4\u56DE\u3002\\n\\n\u4F4D\u6570\u53EF\u4EE5\u53D6\u8D1F\u503C\uFF0C\u5728\u8FD9\u79CD\u60C5\u51B5\u4E0B\u4F1A\u5C06\u5C0F\u6570\u70B9\u5DE6\u4FA7\u6307\u5B9A\u4F4D\u6570\u7684\u503C\u66F4\u6539\u4E3A\u96F6\u3002\u5C0F\u6570\u70B9\u53F3\u4FA7\u7684\u6240\u6709\u4F4D\u6570\u90FD\u4F1A\u88AB\u820D\u5F03\u3002\u5982\u679C\u503C\u7684\u6240\u6709\u4F4D\u90FD\u88AB\u66F4\u6539\u4E3A\u96F6\uFF0C\u5219TRUNC\u4F1A\u8FD4\u56DE0\u3002\",\r\n },\r\n ],\r\n },\r\n QUOTIENT: {\r\n d: \"\u8FD4\u56DE\u4EE5\u4E00\u4E2A\u6570\u9664\u4EE5\u53E6\u4E00\u4E2A\u6570\u6240\u5F97\u7684\u7ED3\u679C\uFF0C\u4E0D\u5305\u542B\u4F59\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5\u4E00\u4E2A\u6570\u9664\u4EE5\u53E6\u4E00\u4E2A\u6570\u6240\u5F97\u7684\u7ED3\u679C\",\r\n p: [\r\n {\r\n name: \"\u88AB\u9664\u6570\",\r\n detail: \"\u8981\u88AB\u9664\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u9664\u6570\",\r\n detail: \"\u7528\u4E8E\u9664\u5176\u4ED6\u6570\u7684\u6570\u503C\u3002\\n\\n\u9664\u6570\u4E0D\u5F97\u4E3A0\u3002\",\r\n },\r\n ],\r\n },\r\n POWER: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n p: [\r\n {\r\n name: \"\u5E95\u6570\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u6307\u6570\u6B21\u5E42\u7684\u6570\u503C\u3002\\n\\n\u5982\u679C\u5E95\u6570\u4E3A\u8D1F\uFF0C\u5219\u6307\u6570\u5FC5\u987B\u4E3A\u6574\u6570\u3002\",\r\n },\r\n {\r\n name: \"\u6307\u6570\",\r\n detail: \"\u6307\u5B9A\u5E95\u6570\u7684\u81EA\u4E58\u5E42\u6B21\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n SUMIFS: {\r\n d: \"\u6839\u636E\u591A\u9879\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u4E4B\u548C\u3002\",\r\n a: \"\u6839\u636E\u591A\u9879\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u4E4B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"\u6C42\u548C\u8303\u56F4\",\r\n detail: \"\u8981\u5BF9\u5176\u6C42\u548C\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF6\u8303\u56F41\",\r\n detail: \"\u8981\u5728\u54EA\u4E2A\u8303\u56F4\u5185\u68C0\u67E5\u6761\u4EF61\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF61\",\r\n detail: \"\u8981\u5E94\u7528\u4E8E\u6761\u4EF6\u8303\u56F41\u7684\u6A21\u5F0F\u6216\u6D4B\u8BD5\u6761\u4EF6\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF6\u8303\u56F42, \u6761\u4EF62...\",\r\n detail: \"[ \u53EF\u9009 ] - \u8981\u68C0\u67E5\u7684\u5176\u4ED6\u8303\u56F4\u548C\u6761\u4EF6\u3002\",\r\n },\r\n ],\r\n },\r\n GET_TARGET: {\r\n d: \"\u67E5\u8BE2\u76EE\u6807\u6570\u636E\u3002\",\r\n a: \"\u67E5\u8BE2\u76EE\u6807\u6570\u636E\u3002\",\r\n p: [],\r\n },\r\n GET_AIRTABLE_DATA: {\r\n d: \"\u67E5\u8BE2AirTable\u6570\u636E\u3002\",\r\n a: \"\u67E5\u8BE2AirTable\u6570\u636E\u3002\",\r\n p: [\r\n {\r\n name: \"AirTable \u5730\u5740\",\r\n detail: \"AirTable URL\u94FE\u63A5\u5730\u5740\",\r\n },\r\n {\r\n name: \"\u6392\u5E8F\u5217\",\r\n detail: \"\u8868\u793A\u8981\u6392\u5E8F\u7684\u5217\u7684\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"\u662F\u5426\u5347\u5E8F\",\r\n detail: \"[\u53EF\u9009] - 1 \u6216 0 \u8868\u793A\u662F\u5426\u6309\u5347\u5E8F\u5BF9 `\u6392\u5E8F\u5217` \u8FDB\u884C\u6392\u5E8F\u3002 0 \u6309\u964D\u5E8F\u6392\u5217\uFF0C1 \u6309\u5347\u5E8F\u6392\u5217\u3002\",\r\n },\r\n ],\r\n },\r\n ASK_AI: {\r\n d: \"\u5411AI\u63D0\u95EE\u3002\",\r\n a: \"\u5411AI\u63D0\u95EE\u3002\",\r\n p: [\r\n {\r\n name: \"\u95EE\u9898\",\r\n detail: \"\u5411AI\u54A8\u8BE2\uFF0C\u4F60\u60F3\u5F97\u5230\u7684\u6570\u636E\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF6\u8303\u56F4\",\r\n detail: \"\u8981\u5728\u54EA\u4E2A\u8303\u56F4\u5185\u5904\u7406\u6570\u636E\u3002\",\r\n },\r\n ],\r\n },\r\n COUNTIFS: {\r\n d: \"\u6839\u636E\u591A\u9879\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u4E2D\u7684\u5355\u5143\u683C\u6570\u91CF\u3002\",\r\n a: \"\u6839\u636E\u591A\u9879\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u4E2D\u7684\u5355\u5143\u683C\u6570\u91CF\u3002\",\r\n p: [\r\n {\r\n name: \"\u6761\u4EF6\u8303\u56F41\",\r\n detail: \"\u8981\u5728\u54EA\u4E2A\u8303\u56F4\u5185\u68C0\u67E5\u6761\u4EF61\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF61\",\r\n detail: \"\u8981\u5E94\u7528\u4E8E\u6761\u4EF6\u8303\u56F41\u7684\u6A21\u5F0F\u6216\u6D4B\u8BD5\u6761\u4EF6\u3002\",\r\n },\r\n {\r\n name: \"\u6761\u4EF6\u8303\u56F42, \u6761\u4EF62...\",\r\n detail: \"[ \u53EF\u9009 ] - \u8981\u68C0\u67E5\u7684\u5176\u4ED6\u8303\u56F4\u548C\u6761\u4EF6\uFF0C\u53EF\u91CD\u590D\u3002\",\r\n },\r\n ],\r\n },\r\n PRODUCT: {\r\n d: \"\u8FD4\u56DE\u5C06\u4E00\u7EC4\u6570\u76F8\u4E58\u6240\u5F97\u7684\u7ED3\u679C\u3002\",\r\n a: \"\u8FD4\u56DE\u5C06\u4E00\u7EC4\u6570\u76F8\u4E58\u6240\u5F97\u7684\u7ED3\u679C\u3002\",\r\n p: [\r\n {\r\n name: \"\u4E58\u65701\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u4E58\u79EF\u7684\u7B2C\u4E00\u4E2A\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u4E58\u65702 ... \u4E58\u657030\",\r\n detail: \"[\u53EF\u9009] - \u8981\u76F8\u4E58\u7684\u5176\u4ED6\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n HARMEAN: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u8C03\u548C\u5E73\u5747\u503C\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u8C03\u548C\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n HYPGEOMDIST: {\r\n d:\r\n \"\u8FD4\u56DE\u8D85\u51E0\u4F55\u5206\u5E03\u3002 \u5982\u679C\u5DF2\u77E5\u6837\u672C\u91CF\u3001\u603B\u4F53\u6210\u529F\u6B21\u6570\u548C\u603B\u4F53\u5927\u5C0F\uFF0C\u5219 HYPGEOM.DIST \u8FD4\u56DE\u6837\u672C\u53D6\u5F97\u5DF2\u77E5\u6210\u529F\u6B21\u6570\u7684\u6982\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u8D85\u51E0\u4F55\u5206\u5E03\u3002\",\r\n p: [\r\n {\r\n name: \"Sample_s\",\r\n detail: \"\u6837\u672C\u4E2D\u6210\u529F\u7684\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"Number_sample\",\r\n detail: \"\u6837\u672C\u91CF\u3002\",\r\n },\r\n {\r\n name: \"Population_s\",\r\n detail: \"\u603B\u4F53\u4E2D\u6210\u529F\u7684\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"Number_pop\",\r\n detail: \"\u603B\u4F53\u5927\u5C0F\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u51B3\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\\n\\n\u5982\u679C cumulative \u4E3A TRUE()\uFF0C\u5219 HYPGEOM.DIST \u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n INTERCEPT: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u7EBF\u6027\u56DE\u5F52\u65B9\u7A0B\u76F4\u7EBF\u4E0E Y \u8F74\u7684\u76F8\u4EA4\u70B9 (x=0) \u7684 y \u503C\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u7EBF\u6027\u56DE\u5F52\u65B9\u7A0B\u76F4\u7EBF\u4E0E Y \u8F74\u7684\u76F8\u4EA4\u70B9 (x=0) \u7684 y \u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n KURT: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u5CED\u5EA6\uFF0C\u8BE5\u6307\u6807\u6307\u793A\u6570\u636E\u96C6\uFF08\u5206\u5E03\uFF09\u7684\u5F62\u6001\uFF0C\u5C24\u5176\u662F\u8BE5\u5F62\u6001\u7684\u9661\u5CED\u7A0B\u5EA6\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u5CED\u5EA6\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6570\u636E\u96C6\u4E2D\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n LARGE: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7B2C n \u4E2A\u6700\u5927\u5143\u7D20\uFF0Cn \u7531\u7528\u6237\u6307\u5B9A\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7B2C n \u4E2A\u6700\u5927\u5143\u7D20\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\",\r\n detail: \"\u5305\u542B\u76F8\u5173\u6570\u636E\u96C6\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"n\",\r\n detail:\r\n \"\u8981\u8FD4\u56DE\u7684\u5143\u7D20\u7684\u6392\u884C\u4F4D\u7F6E\uFF08\u4ECE\u5927\u5230\u5C0F\u987A\u5E8F\uFF09\u3002\\n\\n\u4F8B\u5982\uFF0C\u5C06n\u8BBE\u4E3A4\u5C06\u4F7FLARGE\u8FD4\u56DE\u6570\u636E\u4E2D\u6392\u540D\u7B2C4\u7684\u6700\u5927\u5143\u7D20\u3002\",\r\n },\r\n ],\r\n },\r\n STDEVA: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u6807\u51C6\u504F\u5DEE\uFF0C\u5C06\u6587\u672C\u53D6\u503C\u4E3A0\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u6807\u51C6\u504F\u5DEE\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2,\u2026\",\r\n detail: \"[\u53EF\u9009] - \u6837\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n STDEVP: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u6807\u51C6\u504F\u5DEE\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u6807\u51C6\u504F\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6570\u636E\u96C6\u4E2D\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n GEOMEAN: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u51E0\u4F55\u5E73\u5747\u503C\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u51E0\u4F55\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n RANK_EQ: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6570\u636E\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6570\u636E\u96C6\u4E2D\u5B58\u5728\u591A\u9879\uFF0C\u5219\u8FD4\u56DE\u5176\u4E2D\u7684\u6700\u9AD8\u6392\u540D\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6570\u636E\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6570\u636E\u96C6\u4E2D\u5B58\u5728\u591A\u9879\uFF0C\u5219\u8FD4\u56DE\u5176\u4E2D\u7684\u6700\u9AD8\u6392\u540D\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8981\u786E\u5B9A\u5176\u6392\u540D\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"ref\",\r\n detail: \"\u5305\u542B\u76F8\u5173\u6570\u636E\u96C6\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"order\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A\u6309\u964D\u5E8F (FALSE()) ] - \u8981\u6309\u5347\u5E8F\u8FD8\u662F\u6309\u964D\u5E8F\u8003\u8651\u201Cdata\u201D\u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n RANK_AVG: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6570\u636E\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6570\u636E\u96C6\u4E2D\u5B58\u5728\u591A\u9879\uFF0C\u5219\u8FD4\u56DE\u8FD9\u4E9B\u9879\u6392\u540D\u7684\u5E73\u5747\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6570\u636E\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6570\u636E\u96C6\u4E2D\u5B58\u5728\u591A\u9879\uFF0C\u5219\u8FD4\u56DE\u8FD9\u4E9B\u9879\u6392\u540D\u7684\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8981\u786E\u5B9A\u5176\u6392\u540D\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"ref\",\r\n detail: \"\u5305\u542B\u76F8\u5173\u6570\u636E\u96C6\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"order\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A\u6309\u964D\u5E8F (FALSE()) ] - \u8981\u6309\u5347\u5E8F\u8FD8\u662F\u6309\u964D\u5E8F\u8003\u8651\u201Cdata\u201D\u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n PERCENTRANK_EXC: {\r\n d: \"\u4EE5\u767E\u5206\u6570\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7ED9\u5B9A\u6570\u636E\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF0C\u4E0D\u5305\u62EC\u4E24\u7AEF\u503C\uFF09\u3002\",\r\n a: \"\u4EE5\u767E\u5206\u6570\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7ED9\u5B9A\u6570\u636E\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF0C\u4E0D\u5305\u62EC\u4E24\u7AEF\u503C\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"\u5305\u542B\u76F8\u5173\u6570\u636E\u96C6\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"x\",\r\n detail: \"\u8981\u786E\u5B9A\u5176\u767E\u5206\u6BD4\u6392\u4F4D\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"significance\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 3] - \u8981\u5728\u8BA1\u7B97\u4E2D\u4F7F\u7528\u7684\u6709\u6548\u4F4D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n PERCENTRANK_INC: {\r\n d: \"\u4EE5\u767E\u5206\u6BD4\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7ED9\u5B9A\u6570\u636E\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF0C\u5305\u62EC\u4E24\u7AEF\u503C\uFF09\u3002\",\r\n a: \"\u4EE5\u767E\u5206\u6BD4\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7ED9\u5B9A\u6570\u636E\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF0C\u5305\u62EC\u4E24\u7AEF\u503C\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"data\",\r\n detail: \"\u5305\u542B\u76F8\u5173\u6570\u636E\u96C6\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"x\",\r\n detail: \"\u8981\u786E\u5B9A\u5176\u767E\u5206\u6BD4\u6392\u4F4D\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"significance\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 3] - \u8981\u5728\u8BA1\u7B97\u4E2D\u4F7F\u7528\u7684\u6709\u6548\u4F4D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n FORECAST: {\r\n d: \"\u57FA\u4E8E\u6570\u636E\u96C6\u7684\u7EBF\u6027\u56DE\u5F52\uFF0C\u8BA1\u7B97\u6307\u5B9A x \u7684\u9884\u671F y \u503C\u3002\",\r\n a: \"\u57FA\u4E8E\u6570\u636E\u96C6\u7684\u7EBF\u6027\u56DE\u5F52\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"x\u8F74\u4E0A\u7528\u4E8E\u9884\u6D4B\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n FISHERINV: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u503C\u7684 Fisher \u9006\u53D8\u6362\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u503C\u7684 Fisher \u9006\u53D8\u6362\u3002\",\r\n p: [\r\n {\r\n name: \"y\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176Fisher\u9006\u53D8\u6362\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n FISHER: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u503C\u7684 Fisher \u53D8\u6362\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u503C\u7684 Fisher \u53D8\u6362\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176Fisher\u53D8\u6362\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n MODE_SNGL: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u51FA\u73B0\u6B21\u6570\u6700\u591A\u7684\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u51FA\u73B0\u6B21\u6570\u6700\u591A\u7684\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u6A21\u5F0F\u65F6\u8981\u68C0\u67E5\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u6A21\u5F0F\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n WEIBULL_DIST: {\r\n d: \"\u7ED9\u5B9A\u5F62\u72B6\u548C\u5C3A\u5EA6\uFF0C\u8FD4\u56DE\u97E6\u4F2F\u5206\u5E03\u51FD\u6570\uFF08\u6216\u97E6\u4F2F\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF09\u7684\u503C\u3002\",\r\n a: \"\u7ED9\u5B9A\u5F62\u72B6\u548C\u5C3A\u5EA6\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"WEIBULL \u5206\u5E03\u51FD\u6570\u7684\u8F93\u5165\u503C\u3002\",\r\n },\r\n {\r\n name: \"alpha\",\r\n detail: \"Weibull \u5206\u5E03\u51FD\u6570\u7684\u5F62\u72B6\u53C2\u6570\u3002\\n\\nalpha \u503C\u5FC5\u987B\u5927\u4E8E 0\u3002\",\r\n },\r\n {\r\n name: \"beta\",\r\n detail: \"Weibull \u5206\u5E03\u51FD\u6570\u7684\u5C3A\u5EA6\u53C2\u6570\u3002\\n\\nbeta \u503C\u5FC5\u987B\u5927\u4E8E 0\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"TRUE() \u8868\u793A\u4F7F\u7528\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF0CFALSE() \u5219\u8868\u793A\u4F7F\u7528\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n COUNT: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u6570\u503C\u7684\u4E2A\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u6570\u503C\u7684\u4E2A\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u6570\u65F6\u8981\u68C0\u67E5\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u6570\u65F6\u8981\u68C0\u67E5\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n COUNTA: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u503C\u7684\u6570\u91CF\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u503C\u7684\u6570\u91CF\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u6570\u65F6\u8981\u68C0\u67E5\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u6570\u65F6\u8981\u68C0\u67E5\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n AVEDEV: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u4E0E\u6570\u636E\u96C6\u5747\u503C\u4E4B\u95F4\u7684\u504F\u5DEE\u5927\u5C0F\u7684\u5E73\u5747\u503C\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u4E0E\u6570\u636E\u96C6\u5747\u503C\u4E4B\u95F4\u7684\u504F\u5DEE\u5927\u5C0F\u7684\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6837\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n AVERAGE: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u7B97\u672F\u5E73\u5747\u503C\uFF0C\u5BF9\u6587\u672C\u5FFD\u7565\u4E0D\u8BA1\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u7B97\u672F\u5E73\u5747\u503C\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u5E73\u5747\u503C\u65F6\u7528\u5230\u7684\u7B2C\u4E00\u4E2A\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u5E73\u5747\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n AVERAGEA: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u7B97\u672F\u5E73\u5747\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u7B97\u672F\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u5E73\u5747\u503C\u65F6\u7528\u5230\u7684\u7B2C\u4E00\u4E2A\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u5E73\u5747\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n BINOM_DIST: {\r\n d: \"\u8FD4\u56DE\u4E00\u5143\u4E8C\u9879\u5F0F\u5206\u5E03\u7684\u6982\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u5143\u4E8C\u9879\u5F0F\u5206\u5E03\u7684\u6982\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"number_s\",\r\n detail: \"\u8BD5\u9A8C\u7684\u6210\u529F\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"trials\",\r\n detail: \"\u72EC\u7ACB\u68C0\u9A8C\u7684\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"probability_s\",\r\n detail: \"\u4EFB\u4E00\u7ED9\u5B9A\u68C0\u9A8C\u7684\u6210\u529F\u6982\u7387\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"\u662F\u5426\u4F7F\u7528\u4E8C\u9879\u5F0F\u7D2F\u79EF\u5206\u5E03\u3002\",\r\n },\r\n ],\r\n },\r\n BINOM_INV: {\r\n d: \"\u8BA1\u7B97\u7D2F\u79EF\u4E8C\u9879\u5F0F\u5206\u5E03\u5927\u4E8E\u6216\u7B49\u4E8E\u6307\u5B9A\u6761\u4EF6\u7684\u6700\u5C0F\u503C\u3002\",\r\n a: \"\u8BA1\u7B97\u7D2F\u79EF\u4E8C\u9879\u5F0F\u5206\u5E03\u5927\u4E8E\u6216\u7B49\u4E8E\u6307\u5B9A\u6761\u4EF6\u7684\u6700\u5C0F\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"trials\",\r\n detail: \"\u8D1D\u52AA\u5229\u8BD5\u9A8C\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"probability_s\",\r\n detail: \"\u4EFB\u4E00\u6B21\u7ED9\u5B9A\u68C0\u9A8C\u7684\u6210\u529F\u6982\u7387\u3002\",\r\n },\r\n {\r\n name: \"alpha\",\r\n detail: \"\u671F\u671B\u7684\u4E34\u754C\u6982\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n CONFIDENCE_NORM: {\r\n d: \"\u8BA1\u7B97\u6B63\u6001\u5206\u5E03\u7684\u7F6E\u4FE1\u533A\u95F4\u7684\u4E00\u534A\u5BBD\u5EA6\u3002\",\r\n a: \"\u8BA1\u7B97\u6B63\u6001\u5206\u5E03\u7684\u7F6E\u4FE1\u533A\u95F4\u7684\u4E00\u534A\u5BBD\u5EA6\u3002\",\r\n p: [\r\n {\r\n name: \"alpha\",\r\n detail:\r\n \"\u7528\u6765\u8BA1\u7B97\u7F6E\u4FE1\u6C34\u5E73\u7684\u663E\u8457\u6027\u6C34\u5E73\u3002\\n\\n\u7F6E\u4FE1\u6C34\u5E73\u7B49\u4E8E 100*(1 - alpha)%\uFF0C\u4EA6\u5373\uFF0C\u5982\u679C alpha \u4E3A 0.05\uFF0C\u5219\u7F6E\u4FE1\u6C34\u5E73\u4E3A 95%\u3002\",\r\n },\r\n {\r\n name: \"standard_dev\",\r\n detail: \"\u6570\u636E\u533A\u57DF\u7684\u603B\u4F53\u6807\u51C6\u504F\u5DEE\u3002\",\r\n },\r\n {\r\n name: \"size\",\r\n detail: \"\u6837\u672C\u603B\u91CF\u7684\u5927\u5C0F\u3002\",\r\n },\r\n ],\r\n },\r\n CORREL: {\r\n d: \"\u8BA1\u7B97\u7ED9\u5B9A\u6570\u636E\u96C6\u7684\u76AE\u5C14\u900A\u79EF\u77E9\u76F8\u5173\u7CFB\u6570 r\u3002\",\r\n a: \"\u8BA1\u7B97\u7ED9\u5B9A\u6570\u636E\u96C6\u7684\u76AE\u5C14\u900A\u79EF\u77E9\u76F8\u5173\u7CFB\u6570 r\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n COVARIANCE_P: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u603B\u4F53\u534F\u65B9\u5DEE\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u603B\u4F53\u534F\u65B9\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n COVARIANCE_S: {\r\n d: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u6837\u672C\u534F\u65B9\u5DEE\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u636E\u96C6\u7684\u6837\u672C\u534F\u65B9\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n DEVSQ: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u5176\u504F\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u5176\u504F\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6837\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n EXPON_DIST: {\r\n d: \"\u8FD4\u56DE\u5E26\u6709\u6307\u5B9A Lambda \u548C\u6307\u5B9A\u503C\u7684\u6307\u6570\u5206\u5E03\u51FD\u6570\u7684\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u5E26\u6709\u6307\u5B9A Lambda \u548C\u6307\u5B9A\u503C\u7684\u6307\u6570\u5206\u5E03\u51FD\u6570\u7684\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u6307\u6570\u5206\u5E03\u51FD\u6570\u7684\u8F93\u5165\u503C\u3002\",\r\n },\r\n {\r\n name: \"lambda\",\r\n detail: \"\u7528\u4E8E\u6307\u5B9A\u6307\u6570\u5206\u5E03\u51FD\u6570\u7684 lambda \u503C\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail: \"\u662F\u5426\u4F7F\u7528\u6307\u6570\u7D2F\u79EF\u5206\u5E03\u3002\",\r\n },\r\n ],\r\n },\r\n AVERAGEIF: {\r\n d: \"\u6839\u636E\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u7684\u5E73\u5747\u503C\u3002\",\r\n a: \"\u6839\u636E\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u7684\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"criteria_range\",\r\n detail: \"\u8981\u5BF9\u5176\u68C0\u67E5 criterion \u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"criterion\",\r\n detail:\r\n '\u8981\u5E94\u7528\u4E8E criteria_range \u7684\u6A21\u5F0F\u6216\u6D4B\u8BD5\u6761\u4EF6\u3002\\n\\n\u7B49\u4E8E\uFF1A\"\u6587\u672C\" \u6216 1 \u6216 \"=\u6587\u672C\" \u6216 \"=1\"\\n\\n\u5927\u4E8E\uFF1A\">1\"\\n\\n\u5927\u4E8E\u7B49\u4E8E\uFF1A\">=1\"\\n\\n\u5C0F\u4E8E\uFF1A\"<1\"\\n\\n\u5C0F\u4E8E\u7B49\u4E8E\uFF1A\"<=1\"\\n\\n\u4E0D\u7B49\u4E8E\uFF1A\"<>1\"\u6216\"<>\u6587\u672C\"',\r\n },\r\n {\r\n name: \"average_range\",\r\n detail: \"[\u53EF\u9009] - \u8981\u8BA1\u7B97\u5E73\u5747\u503C\u7684\u8303\u56F4\u3002\u5982\u679C\u672A\u63D0\u4F9B\u6B64\u53C2\u6570\uFF0C\u5219\u6539\u7528 criteria_range \u6765\u8BA1\u7B97\u5E73\u5747\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n AVERAGEIFS: {\r\n d: \"\u6839\u636E\u591A\u9879\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u7684\u5E73\u5747\u503C\u3002\",\r\n a: \"\u6839\u636E\u591A\u9879\u6761\u4EF6\u8FD4\u56DE\u8303\u56F4\u7684\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"average_range\",\r\n detail: \"\u8981\u8BA1\u7B97\u5E73\u5747\u503C\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"criteria_range1\",\r\n detail: \"\u8981\u5BF9\u5176\u68C0\u67E5 criterion1 \u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"criterion1\",\r\n detail: \"\u8981\u5E94\u7528\u4E8E criteria_range1 \u7684\u6A21\u5F0F\u6216\u6D4B\u8BD5\u6761\u4EF6\u3002\",\r\n },\r\n {\r\n name: \"criteria_range2, criterion2, ...\",\r\n detail: \"[\u53EF\u9009] - \u8981\u68C0\u67E5\u7684\u5176\u4ED6\u8303\u56F4\u548C\u6761\u4EF6\u3002\",\r\n },\r\n ],\r\n },\r\n PERMUT: {\r\n d: \"\u8FD4\u56DE\u53EF\u4ECE\u6570\u5B57\u5BF9\u8C61\u4E2D\u9009\u62E9\u7684\u7ED9\u5B9A\u6570\u76EE\u5BF9\u8C61\u7684\u6392\u5217\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u53EF\u4ECE\u6570\u5B57\u5BF9\u8C61\u4E2D\u9009\u62E9\u7684\u7ED9\u5B9A\u6570\u76EE\u5BF9\u8C61\u7684\u6392\u5217\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8868\u793A\u5BF9\u8C61\u4E2A\u6570\u7684\u6574\u6570\u3002\",\r\n },\r\n {\r\n name: \"number_chosen\",\r\n detail: \"\u8868\u793A\u6BCF\u4E2A\u6392\u5217\u4E2D\u5BF9\u8C61\u4E2A\u6570\u7684\u6574\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n TRIMMEAN: {\r\n d: \"\u5728\u6392\u9664\u6570\u636E\u96C6\u9AD8\u4F4E\u4E24\u7AEF\u7684\u90E8\u5206\u6570\u636E\u4E4B\u540E\u8BA1\u7B97\u6240\u5F97\u7684\u5747\u503C\u3002\",\r\n a: \"\u5728\u6392\u9664\u6570\u636E\u96C6\u9AD8\u4F4E\u4E24\u7AEF\u7684\u90E8\u5206\u6570\u636E\u4E4B\u540E\u8BA1\u7B97\u6240\u5F97\u7684\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\",\r\n detail: \"\u5305\u542B\u76F8\u5173\u6570\u636E\u96C6\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6392\u9664\u6BD4\u4F8B\",\r\n detail: \"\u8981\u4ECE\u6570\u636E\u96C6\u7684\u6781\u503C\u90E8\u5206\u6392\u9664\u7684\u6570\u636E\u5360\u6570\u636E\u96C6\u7684\u6BD4\u4F8B\u3002\\n\\n\u6392\u9664\u6BD4\u4F8B\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E0\u4E14\u5C0F\u4E8E1\u3002\",\r\n },\r\n ],\r\n },\r\n PERCENTILE_EXC: {\r\n d: \"\u8FD4\u56DE\u6570\u7EC4\u7684 K \u767E\u5206\u70B9\u503C\uFF0CK \u4ECB\u4E8E 0 \u5230 1 \u4E4B\u95F4\uFF0C\u4E0D\u542B 0 \u4E0E 1\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u7EC4\u7684 K \u767E\u5206\u70B9\u503C\uFF0CK \u4ECB\u4E8E 0 \u5230 1 \u4E4B\u95F4\uFF0C\u4E0D\u542B 0 \u4E0E 1\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u5B9A\u4E49\u76F8\u5BF9\u4F4D\u7F6E\u7684\u6570\u7EC4\u6216\u6570\u636E\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"k\",\r\n detail: \"0 \u5230 1 \u4E4B\u95F4\u7684\u767E\u5206\u70B9\u503C\uFF0C\u4E0D\u5305\u542B 0 \u548C 1\u3002\",\r\n },\r\n ],\r\n },\r\n PERCENTILE_INC: {\r\n d: \"\u8FD4\u56DE\u6570\u7EC4\u7684 K \u767E\u5206\u70B9\u503C\uFF0CK \u4ECB\u4E8E 0 \u5230 1 \u4E4B\u95F4\uFF0C\u5305\u542B 0 \u4E0E 1\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u7EC4\u7684 K \u767E\u5206\u70B9\u503C\uFF0CK \u4ECB\u4E8E 0 \u5230 1 \u4E4B\u95F4\uFF0C\u5305\u542B 0 \u4E0E 1\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u5B9A\u4E49\u76F8\u5BF9\u4F4D\u7F6E\u7684\u6570\u7EC4\u6216\u6570\u636E\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"k\",\r\n detail: \"0 \u5230 1 \u4E4B\u95F4\u7684\u767E\u5206\u70B9\u503C\uFF0C\u5305\u542B 0 \u548C 1\u3002\",\r\n },\r\n ],\r\n },\r\n PEARSON: {\r\n d: \"\u8FD4\u56DE\u76AE\u5C14\u751F(Pearson)\u4E58\u79EF\u77E9\u76F8\u5173\u7CFB\u6570 r\u3002\",\r\n a: \"\u8FD4\u56DE\u76AE\u5C14\u751F(Pearson)\u4E58\u79EF\u77E9\u76F8\u5173\u7CFB\u6570 r\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n NORM_S_INV: {\r\n d: \"\u8FD4\u56DE\u6807\u51C6\u6B63\u6001\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u7684\u53CD\u51FD\u6570\u503C\u3002 \u8BE5\u5206\u5E03\u7684\u5E73\u5747\u503C\u4E3A 0\uFF0C\u6807\u51C6\u504F\u5DEE\u4E3A 1\u3002\",\r\n a: \"\u8FD4\u56DE\u6807\u51C6\u6B63\u6001\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u7684\u53CD\u51FD\u6570\u503C\u3002 \u8BE5\u5206\u5E03\u7684\u5E73\u5747\u503C\u4E3A 0\uFF0C\u6807\u51C6\u504F\u5DEE\u4E3A 1\u3002\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"\u5BF9\u5E94\u4E8E\u6B63\u6001\u5206\u5E03\u7684\u6982\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n NORM_S_DIST: {\r\n d: \"\u8FD4\u56DE\u6807\u51C6\u6B63\u6001\u5206\u5E03\u51FD\u6570\uFF08\u8BE5\u5206\u5E03\u7684\u5E73\u5747\u503C\u4E3A 0\uFF0C\u6807\u51C6\u504F\u5DEE\u4E3A 1\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u6807\u51C6\u6B63\u6001\u5206\u5E03\u51FD\u6570\uFF08\u8BE5\u5206\u5E03\u7684\u5E73\u5747\u503C\u4E3A 0\uFF0C\u6807\u51C6\u504F\u5DEE\u4E3A 1\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"z\",\r\n detail: \"\u9700\u8981\u8BA1\u7B97\u5176\u5206\u5E03\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u51B3\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\\n\\n\u5982\u679C\u4E3A TRUE()\uFF0C\u5219\u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n NORM_INV: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6807\u51C6\u504F\u5DEE\u7684\u6B63\u6001\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u7684\u53CD\u51FD\u6570\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6807\u51C6\u504F\u5DEE\u7684\u6B63\u6001\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u7684\u53CD\u51FD\u6570\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"\u5BF9\u5E94\u4E8E\u6B63\u6001\u5206\u5E03\u7684\u6982\u7387\u3002\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"\u5206\u5E03\u7684\u7B97\u672F\u5E73\u5747\u503C\u3002\",\r\n },\r\n {\r\n name: \"standard_dev\",\r\n detail: \"\u5206\u5E03\u7684\u6807\u51C6\u504F\u5DEE\u3002\",\r\n },\r\n ],\r\n },\r\n NORM_DIST: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6807\u51C6\u504F\u5DEE\u7684\u6B63\u6001\u5206\u5E03\u51FD\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6807\u51C6\u504F\u5DEE\u7684\u6B63\u6001\u5206\u5E03\u51FD\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u9700\u8981\u8BA1\u7B97\u5176\u5206\u5E03\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"\u5206\u5E03\u7684\u7B97\u672F\u5E73\u5747\u503C\u3002\",\r\n },\r\n {\r\n name: \"standard_dev\",\r\n detail: \"\u5206\u5E03\u7684\u6807\u51C6\u504F\u5DEE\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u51B3\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\\n\\n\u5982\u679C\u4E3A TRUE()\uFF0C\u5219\u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n NEGBINOM_DIST: {\r\n d: \"\u8FD4\u56DE\u8D1F\u4E8C\u9879\u5F0F\u5206\u5E03\u3002\",\r\n a: \"\u8FD4\u56DE\u8D1F\u4E8C\u9879\u5F0F\u5206\u5E03\u3002\",\r\n p: [\r\n {\r\n name: \"number_f\",\r\n detail: \"\u8981\u6A21\u62DF\u7684\u5931\u8D25\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"number_s\",\r\n detail: \"\u8981\u6A21\u62DF\u7684\u6210\u529F\u6B21\u6570\u3002\",\r\n },\r\n {\r\n name: \"probability_s\",\r\n detail: \"\u4EFB\u4E00\u6B21\u7ED9\u5B9A\u68C0\u9A8C\u7684\u6210\u529F\u6982\u7387\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u51B3\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\\n\\n\u5982\u679C\u4E3A TRUE()\uFF0C\u5219\u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n MINA: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5C0F\u6570\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5C0F\u6570\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u6700\u5C0F\u503C\u65F6\u6240\u7528\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u6700\u5C0F\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n MIN: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5C0F\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5C0F\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u6700\u5C0F\u503C\u65F6\u6240\u7528\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u6700\u5C0F\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n MEDIAN: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u6570\u636E\u96C6\u4E2D\u7684\u4E2D\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u6570\u636E\u96C6\u4E2D\u7684\u4E2D\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u4E2D\u503C\u65F6\u6240\u7528\u7684\u7B2C\u4E00\u4E2A\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u4E2D\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n MAXA: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u6570\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u6570\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u6700\u5927\u503C\u65F6\u6240\u7528\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u6700\u5927\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n MAX: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u8BA1\u7B97\u6700\u5927\u503C\u65F6\u6240\u7528\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2\",\r\n detail: \"[\u53EF\u9009] - \u5728\u8BA1\u7B97\u6700\u5927\u503C\u65F6\u8981\u8003\u8651\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n LOGNORM_INV: {\r\n d: \"\u8FD4\u56DE x \u7684\u5BF9\u6570\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u7684\u53CD\u51FD\u6570\u503C\u3002\",\r\n a: \"\u8FD4\u56DE x \u7684\u5BF9\u6570\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u7684\u53CD\u51FD\u6570\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"\u4E0E\u5BF9\u6570\u5206\u5E03\u76F8\u5173\u7684\u6982\u7387\uFF0C\u4ECB\u4E8E 0 \u4E0E 1 \u4E4B\u95F4\uFF08\u4E0D\u542B 0 \u4E0E 1\uFF09\u3002\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"ln(x) \u7684\u5E73\u5747\u503C\u3002\",\r\n },\r\n {\r\n name: \"standard_dev\",\r\n detail: \"ln(x) \u7684\u6807\u51C6\u504F\u5DEE\uFF0C\u6B63\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n LOGNORM_DIST: {\r\n d: \"\u8FD4\u56DE x \u7684\u5BF9\u6570\u5206\u5E03\u51FD\u6570\u3002\",\r\n a: \"\u8FD4\u56DE x \u7684\u5BF9\u6570\u5206\u5E03\u51FD\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u7528\u6765\u8BA1\u7B97\u51FD\u6570\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"ln(x) \u7684\u5E73\u5747\u503C\u3002\",\r\n },\r\n {\r\n name: \"standard_dev\",\r\n detail: \"ln(x) \u7684\u6807\u51C6\u504F\u5DEE\uFF0C\u6B63\u6570\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u51B3\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\\n\\n\u5982\u679C\u4E3A TRUE()\uFF0C\u5219\u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n Z_TEST: {\r\n d: \"\u8FD4\u56DE z \u68C0\u9A8C\u7684\u5355\u5C3E P \u503C\u3002\",\r\n a: \"\u8FD4\u56DE z \u68C0\u9A8C\u7684\u5355\u5C3E P \u503C\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u7528\u6765\u68C0\u9A8C x \u7684\u6570\u7EC4\u6216\u6570\u636E\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"x\",\r\n detail: \"\u8981\u6D4B\u8BD5\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"sigma\",\r\n detail: \"[\u53EF\u9009] - \u603B\u4F53\uFF08\u5DF2\u77E5\uFF09\u6807\u51C6\u504F\u5DEE\u3002 \u5982\u679C\u7701\u7565\uFF0C\u5219\u4F7F\u7528\u6837\u672C\u6807\u51C6\u504F\u5DEE\u3002\",\r\n },\r\n ],\r\n },\r\n PROB: {\r\n d: \"\u8FD4\u56DE\u533A\u57DF\u4E2D\u7684\u6570\u503C\u843D\u5728\u6307\u5B9A\u533A\u95F4\u5185\u7684\u6982\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u533A\u57DF\u4E2D\u7684\u6570\u503C\u843D\u5728\u6307\u5B9A\u533A\u95F4\u5185\u7684\u6982\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"x_range\",\r\n detail: \"\u5177\u6709\u5404\u81EA\u76F8\u5E94\u6982\u7387\u503C\u7684 x \u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"prob_range\",\r\n detail: \"\u4E0E x_range \u4E2D\u7684\u503C\u76F8\u5173\u8054\u7684\u4E00\u7EC4\u6982\u7387\u503C\u3002\",\r\n },\r\n {\r\n name: \"lower_limit\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u6982\u7387\u7684\u6570\u503C\u4E0B\u754C\u3002\",\r\n },\r\n {\r\n name: \"upper_limit\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A\u4E0B\u754C] - \u8981\u8BA1\u7B97\u5176\u6982\u7387\u7684\u53EF\u9009\u6570\u503C\u4E0A\u754C\u3002\\n\\n\u5982\u679C\u7701\u7565\u4E0A\u754C\uFF0CPROB\u5219\u8BA1\u7B97\u968F\u673A\u9009\u53D6\u76F8\u5E94\u503C\u7684\u6B21\u6570\u6070\u597D\u7B49\u4E8E\u4E0B\u754C\u7684\u6982\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n QUARTILE_EXC: {\r\n d: \"\u57FA\u4E8E 0 \u5230 1 \u4E4B\u95F4\uFF08\u4E0D\u5305\u62EC 0 \u548C 1\uFF09\u7684\u767E\u5206\u70B9\u503C\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u56DB\u5206\u4F4D\u6570\u3002\",\r\n a: \"\u57FA\u4E8E 0 \u5230 1 \u4E4B\u95F4\uFF08\u4E0D\u5305\u62EC 0 \u548C 1\uFF09\u7684\u767E\u5206\u70B9\u503C\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u56DB\u5206\u4F4D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u6C42\u5F97\u56DB\u5206\u4F4D\u6570\u503C\u7684\u6570\u7EC4\u6216\u6570\u5B57\u578B\u5355\u5143\u683C\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"quart\",\r\n detail:\r\n \"\u8981\u8FD4\u56DE\u7B2C\u51E0\u4E2A\u56DB\u5206\u4F4D\u503C\u3002\\n\\n1\u8FD4\u56DE\u6570\u636E\u4E2D\u6700\u9760\u8FD1\u7B2C\u4E00\u4E2A\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0825%\u6807\u8BB0\uFF09\u3002\\n\\n2\u8FD4\u56DE\u6570\u636E\u4E2D\u6700\u63A5\u8FD1\u4E2D\u503C\u7684\u503C\uFF0850%\u6807\u8BB0\uFF09\u3002\\n\\n3\u8FD4\u56DE\u6570\u636E\u4E2D\u6700\u63A5\u8FD1\u7B2C\u4E09\u4E2A\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0875%\u6807\u8BB0\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n QUARTILE_INC: {\r\n d: \"\u6839\u636E 0 \u5230 1 \u4E4B\u95F4\u7684\u767E\u5206\u70B9\u503C\uFF08\u5305\u542B 0 \u548C 1\uFF09\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u56DB\u5206\u4F4D\u6570\u3002\",\r\n a: \"\u6839\u636E 0 \u5230 1 \u4E4B\u95F4\u7684\u767E\u5206\u70B9\u503C\uFF08\u5305\u542B 0 \u548C 1\uFF09\u8FD4\u56DE\u6570\u636E\u96C6\u7684\u56DB\u5206\u4F4D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u6C42\u5F97\u56DB\u5206\u4F4D\u6570\u503C\u7684\u6570\u7EC4\u6216\u6570\u5B57\u578B\u5355\u5143\u683C\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"quart\",\r\n detail:\r\n \"\u8981\u8FD4\u56DE\u7B2C\u51E0\u4E2A\u56DB\u5206\u4F4D\u503C\u3002\\n\\n0\u8FD4\u56DE\u6570\u636E\u4E2D\u7684\u6700\u5C0F\u503C\uFF080%\u6807\u8BB0\uFF09\u3002\\n\\n1\u8FD4\u56DE\u6570\u636E\u4E2D\u6700\u9760\u8FD1\u7B2C\u4E00\u4E2A\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0825%\u6807\u8BB0\uFF09\u3002\\n\\n2\u8FD4\u56DE\u6570\u636E\u4E2D\u6700\u63A5\u8FD1\u4E2D\u503C\u7684\u503C\uFF0850%\u6807\u8BB0\uFF09\u3002\\n\\n3\u8FD4\u56DE\u6570\u636E\u4E2D\u6700\u63A5\u8FD1\u7B2C\u4E09\u4E2A\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0875%\u6807\u8BB0\uFF09\u3002\\n\\n4\u8FD4\u56DE\u6570\u636E\u4E2D\u7684\u6700\u5927\u503C\uFF08100%\u6807\u8BB0\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n POISSON_DIST: {\r\n d: \"\u8FD4\u56DE\u6CCA\u677E\u5206\u5E03\u3002\",\r\n a: \"\u8FD4\u56DE\u6CCA\u677E\u5206\u5E03\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u4E8B\u4EF6\u6570\u3002\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"\u671F\u671B\u503C\u3002\u975E\u8D1F\u6570\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u4E00\u903B\u8F91\u503C\uFF0C\u786E\u5B9A\u6240\u8FD4\u56DE\u7684\u6982\u7387\u5206\u5E03\u7684\u5F62\u5F0F\u3002\\n\\n\u5982\u679C\u4E3A TRUE()\uFF0C\u5219\u8FD4\u56DE\u53D1\u751F\u7684\u968F\u673A\u4E8B\u4EF6\u6570\u5728\u96F6\uFF08\u542B\u96F6\uFF09\u548C x\uFF08\u542B x\uFF09\u4E4B\u95F4\u7684\u7D2F\u79EF\u6CCA\u677E\u6982\u7387\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u53D1\u751F\u7684\u4E8B\u4EF6\u6570\u6B63\u597D\u662F x \u7684\u6CCA\u677E\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n RSQ: {\r\n d: \"\u8FD4\u56DE\u76AE\u5C14\u751F(Pearson)\u4E58\u79EF\u77E9\u76F8\u5173\u7CFB\u6570 r \u7684\u5E73\u65B9\u3002\",\r\n a: \"\u8FD4\u56DE\u76AE\u5C14\u751F(Pearson)\u4E58\u79EF\u77E9\u76F8\u5173\u7CFB\u6570 r \u7684\u5E73\u65B9\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n T_DIST: {\r\n d: \"\u8FD4\u56DE\u5B66\u751F\u7684\u5DE6\u5C3E t \u5206\u5E03\u3002\",\r\n a: \"\u8FD4\u56DE\u5B66\u751F\u7684\u5DE6\u5C3E t \u5206\u5E03\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"T-\u5206\u5E03\u51FD\u6570\u7684\u8F93\u5165\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"\u81EA\u7531\u5EA6\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"tails\",\r\n detail:\r\n \"\u51B3\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\\n\\n\u5982\u679C cumulative \u4E3A TRUE()\uFF0C\u5219 HYPGEOM.DIST \u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\uFF1B\\n\\n\u5982\u679C\u4E3A FALSE()\uFF0C\u5219\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n T_DIST_2T: {\r\n d: \"\u8FD4\u56DE\u5B66\u751F\u7684\u53CC\u5C3E t \u5206\u5E03\u3002\",\r\n a: \"\u8FD4\u56DE\u5B66\u751F\u7684\u53CC\u5C3E t \u5206\u5E03\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"T-\u5206\u5E03\u51FD\u6570\u7684\u8F93\u5165\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"\u81EA\u7531\u5EA6\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n T_DIST_RT: {\r\n d: \"\u8FD4\u56DE\u5B66\u751F\u7684\u53F3\u5C3E t \u5206\u5E03\u3002\",\r\n a: \"\u8FD4\u56DE\u5B66\u751F\u7684\u53F3\u5C3E t \u5206\u5E03\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"T-\u5206\u5E03\u51FD\u6570\u7684\u8F93\u5165\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom\",\r\n detail: \"\u81EA\u7531\u5EA6\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n T_INV: {\r\n d: \"\u8FD4\u56DE\u5B66\u751F\u7684 t \u5206\u5E03\u7684\u5DE6\u5C3E\u53CD\u51FD\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u5B66\u751F\u7684 t \u5206\u5E03\u7684\u5DE6\u5C3E\u53CD\u51FD\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"\u4E0E\u5B66\u751F\u7684 t \u5206\u5E03\u76F8\u5173\u7684\u6982\u7387\u3002\\n\\n\u5FC5\u987B\u5927\u4E8E 0 \u4E14\u5C0F\u4E8E 1\u3002\",\r\n },\r\n {\r\n name: \"deg_freedom\",\r\n detail: \"\u81EA\u7531\u5EA6\u6570\u503C\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u53C2\u6570\u4E0D\u662F\u6574\u6570\uFF0C\u5C06\u622A\u53D6\u5176\u6574\u6570\u90E8\u5206\u3002\\n\\n\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E 1\u3002\",\r\n },\r\n ],\r\n },\r\n T_INV_2T: {\r\n d: \"\u8FD4\u56DE\u5B66\u751F t \u5206\u5E03\u7684\u53CC\u5C3E\u53CD\u51FD\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u5B66\u751F t \u5206\u5E03\u7684\u53CC\u5C3E\u53CD\u51FD\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"probability\",\r\n detail: \"\u4E0E\u5B66\u751F\u7684 t \u5206\u5E03\u76F8\u5173\u7684\u6982\u7387\u3002\\n\\n\u5FC5\u987B\u5927\u4E8E 0 \u4E14\u5C0F\u4E8E1\u3002\",\r\n },\r\n {\r\n name: \"deg_freedom\",\r\n detail: \"\u81EA\u7531\u5EA6\u6570\u503C\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u53C2\u6570\u4E0D\u662F\u6574\u6570\uFF0C\u5C06\u622A\u53D6\u5176\u6574\u6570\u90E8\u5206\u3002\\n\\n\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E 1\u3002\",\r\n },\r\n ],\r\n },\r\n T_TEST: {\r\n d: \"\u8FD4\u56DE\u4E0Et-\u68C0\u9A8C\u76F8\u5173\u7684\u6982\u7387\u3002\u7528\u4E8E\u5224\u65AD\u4E24\u4E2A\u6837\u672C\u662F\u5426\u53EF\u80FD\u662F\u51FA\u81EA\u5E73\u5747\u503C\u76F8\u540C\u7684\u4E24\u4E2A\u6837\u672C\u603B\u4F53\u3002\",\r\n a: \"\u8FD4\u56DE\u4E0Et-\u68C0\u9A8C\u76F8\u5173\u7684\u6982\u7387\u3002\u7528\u4E8E\u5224\u65AD\u4E24\u4E2A\u6837\u672C\u662F\u5426\u53EF\u80FD\u662F\u51FA\u81EA\u5E73\u5747\u503C\u76F8\u540C\u7684\u4E24\u4E2A\u6837\u672C\u603B\u4F53\u3002\",\r\n p: [\r\n {\r\n name: \"array1\",\r\n detail: \"\u5C06\u7528\u4E8E t \u68C0\u9A8C\u7684\u7B2C\u4E00\u4E2A\u6570\u636E\u6837\u672C\u6216\u7B2C\u4E00\u7EC4\u5355\u5143\u683C\u3002\",\r\n },\r\n {\r\n name: \"array2\",\r\n detail: \"\u5C06\u7528\u4E8E t \u68C0\u9A8C\u7684\u7B2C\u4E8C\u4E2A\u6570\u636E\u6837\u672C\u6216\u7B2C\u4E8C\u7EC4\u5355\u5143\u683C\u3002\",\r\n },\r\n {\r\n name: \"tails\",\r\n detail: \"\u6307\u5B9A\u5206\u5E03\u7684\u5C3E\u6570\u3002\\n\\n\u5982\u679C\u4E3A 1\uFF1A\u4F7F\u7528\u5355\u5C3E\u5206\u5E03\u3002\\n\\n\u5982\u679C\u4E3A 2\uFF1A\u4F7F\u7528\u53CC\u5C3E\u5206\u5E03\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail:\r\n \"\u6307\u5B9A t \u68C0\u9A8C\u7684\u7C7B\u578B\u3002\\n\\n\u5982\u679C\u4E3A 1\uFF1A\u6267\u884C\u914D\u5BF9\u68C0\u9A8C\u3002\\n\\n\u5982\u679C\u4E3A 2\uFF1A\u6267\u884C\u53CC\u6837\u672C\u7B49\u65B9\u5DEE\uFF08\u540C\u65B9\u5DEE\uFF09\u68C0\u9A8C\u3002\\n\\n\u5982\u679C\u4E3A3\uFF1A\u6267\u884C\u53CC\u6837\u672C\u4E0D\u7B49\u65B9\u5DEE\uFF08\u5F02\u65B9\u5DEE\uFF09\u68C0\u9A8C\u3002\",\r\n },\r\n ],\r\n },\r\n F_DIST: {\r\n d:\r\n \"\u7ED9\u5B9A\u8F93\u5165\u503C x\uFF0C\u8BA1\u7B97\u4E24\u4E2A\u6570\u636E\u96C6\u7684\u5DE6\u5C3E F \u6982\u7387\u5206\u5E03\uFF08\u5DEE\u5F02\u7A0B\u5EA6\uFF09\u3002\u6B64\u5206\u5E03\u4E5F\u79F0\u4E3A Fisher-Snedecor \u5206\u5E03\u6216 Snedecor F \u5206\u5E03\u3002\",\r\n a: \"\u7ED9\u5B9A\u8F93\u5165\u503C x\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u7528\u6765\u8BA1\u7B97\u51FD\u6570\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom1\",\r\n detail: \"\u5206\u5B50\u81EA\u7531\u5EA6\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom2\",\r\n detail: \"\u5206\u6BCD\u81EA\u7531\u5EA6\u3002\",\r\n },\r\n {\r\n name: \"cumulative\",\r\n detail:\r\n \"\u7528\u4E8E\u786E\u5B9A\u51FD\u6570\u5F62\u5F0F\u7684\u903B\u8F91\u503C\u3002\u9ED8\u8BA4\u503C\u4E3A FALSE\u3002\\n\\n\u5982\u679C\u4E3A TRUE()\uFF1AF.DIST \u5C06\u8FD4\u56DE\u7D2F\u79EF\u5206\u5E03\u51FD\u6570\u503C\u3002\\n\\n\u5982\u679C\u4E3A FALSE()\uFF1AF.DIST \u5C06\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n F_DIST_RT: {\r\n d:\r\n \"\u7ED9\u5B9A\u8F93\u5165x\uFF0C\u8BA1\u7B97\u4E24\u4E2A\u6570\u636E\u96C6\u7684\u53F3\u5C3EF\u6982\u7387\u5206\u5E03\uFF08\u5DEE\u5F02\u7A0B\u5EA6\uFF09\u3002 \u6B64\u5206\u5E03\u4E5F\u79F0\u4E3AFisher-Snedecor\u5206\u5E03\u6216Snedecor F\u5206\u5E03\u3002\",\r\n a: \"\u7ED9\u5B9A\u8F93\u5165x\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u7528\u6765\u8BA1\u7B97\u51FD\u6570\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom1\",\r\n detail: \"\u5206\u5B50\u81EA\u7531\u5EA6\u3002\",\r\n },\r\n {\r\n name: \"degrees_freedom2\",\r\n detail: \"\u5206\u6BCD\u81EA\u7531\u5EA6\u3002\",\r\n },\r\n ],\r\n },\r\n VAR_P: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u65B9\u5DEE\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u65B9\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6570\u636E\u96C6\u4E2D\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, \u2026\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n VAR_S: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u65B9\u5DEE\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u65B9\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, \u2026\",\r\n detail: \"[\u53EF\u9009] - \u6837\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n VARA: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u65B9\u5DEE\uFF0C\u5C06\u6587\u672C\u53D6\u503C\u4E3A0\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u65B9\u5DEE\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"value2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6837\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n VARPA: {\r\n d: \"\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u65B9\u5DEE\uFF0C\u5C06\u6587\u672C\u53D6\u503C\u4E3A0\u3002\",\r\n a: \"\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u65B9\u5DEE\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6837\u672C\u4E2D\u7684\u7B2C\u4E00\u9879\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u6570\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n STEYX: {\r\n d: \"\u8FD4\u56DE\u901A\u8FC7\u7EBF\u6027\u56DE\u5F52\u6CD5\u9884\u6D4B\u6BCF\u4E2A x \u7684 y \u503C\u65F6\u6240\u4EA7\u751F\u7684\u6807\u51C6\u8BEF\u5DEE\u3002\",\r\n a: \"\u8FD4\u56DE\u901A\u8FC7\u7EBF\u6027\u56DE\u5F52\u6CD5\u9884\u6D4B\u6BCF\u4E2A x \u7684 y \u503C\u65F6\u6240\u4EA7\u751F\u7684\u6807\u51C6\u8BEF\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n STANDARDIZE: {\r\n d: \"\u7ED9\u5B9A\u5206\u5E03\u7684\u5747\u503C\u548C\u6807\u51C6\u504F\u5DEE\uFF0C\u8BA1\u7B97\u4E00\u4E2A\u968F\u673A\u53D8\u91CF\u6B63\u6001\u5316\u7684\u76F8\u5E94\u503C\u3002\",\r\n a: \"\u7ED9\u5B9A\u5206\u5E03\u7684\u5747\u503C\u548C\u6807\u51C6\u504F\u5DEE\uFF0C\u8BA1\u7B97\u4E00\u4E2A\u968F\u673A\u53D8\u91CF\u6B63\u6001\u5316\u7684\u76F8\u5E94\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"x\",\r\n detail: \"\u8981\u6B63\u6001\u5316\u7684\u968F\u673A\u53D8\u91CF\u503C\u3002\",\r\n },\r\n {\r\n name: \"mean\",\r\n detail: \"\u5206\u5E03\u7684\u5747\u503C\u3002\",\r\n },\r\n {\r\n name: \"standard_dev\",\r\n detail: \"\u5206\u5E03\u7684\u6807\u51C6\u504F\u5DEE\u3002\",\r\n },\r\n ],\r\n },\r\n SMALL: {\r\n d: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7684\u7B2C k \u4E2A\u6700\u5C0F\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u636E\u96C6\u4E2D\u7684\u7B2C k \u4E2A\u6700\u5C0F\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u9700\u8981\u627E\u5230\u7B2C k \u4E2A\u6700\u5C0F\u503C\u7684\u6570\u7EC4\u6216\u6570\u503C\u6570\u636E\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"k\",\r\n detail: \"\u8981\u8FD4\u56DE\u7684\u6570\u636E\u5728\u6570\u7EC4\u6216\u6570\u636E\u533A\u57DF\u91CC\u7684\u4F4D\u7F6E\uFF08\u4ECE\u5C0F\u5230\u5927\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n SLOPE: {\r\n d: \"\u8BA1\u7B97\u901A\u8FC7\u6570\u636E\u96C6\u7684\u7EBF\u6027\u56DE\u5F52\u5F97\u5230\u7684\u76F4\u7EBF\u7684\u659C\u7387\u3002\",\r\n a: \"\u8BA1\u7B97\u901A\u8FC7\u6570\u636E\u96C6\u7684\u7EBF\u6027\u56DE\u5F52\u5F97\u5230\u7684\u76F4\u7EBF\u7684\u659C\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E_y\",\r\n detail: \"\u4EE3\u8868\u56E0\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u6570\u636E_x\",\r\n detail: \"\u4EE3\u8868\u81EA\u53D8\u91CF\u6570\u636E\u6570\u7EC4\u6216\u77E9\u9635\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n SKEW: {\r\n d:\r\n \"\u8FD4\u56DE\u5206\u5E03\u7684\u504F\u659C\u5EA6\u3002 \u504F\u659C\u5EA6\u8868\u660E\u5206\u5E03\u76F8\u5BF9\u4E8E\u5E73\u5747\u503C\u7684\u4E0D\u5BF9\u79F0\u7A0B\u5EA6\u3002 \u6B63\u504F\u659C\u5EA6\u8868\u660E\u5206\u5E03\u7684\u4E0D\u5BF9\u79F0\u5C3E\u90E8\u8D8B\u5411\u4E8E\u66F4\u591A\u6B63\u503C\u3002 \u8D1F\u504F\u659C\u5EA6\u8868\u660E\u5206\u5E03\u7684\u4E0D\u5BF9\u79F0\u5C3E\u90E8\u8D8B\u5411\u4E8E\u66F4\u591A\u8D1F\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u5206\u5E03\u7684\u504F\u659C\u5EA6\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6570\u636E\u96C6\u4E2D\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n SKEW_P: {\r\n d: \"\u8FD4\u56DE\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u7684\u5206\u5E03\u4E0D\u5BF9\u79F0\u5EA6\uFF1A\u8868\u660E\u5206\u5E03\u76F8\u5BF9\u4E8E\u5E73\u5747\u503C\u7684\u4E0D\u5BF9\u79F0\u7A0B\u5EA6\u3002\",\r\n a: \"\u8FD4\u56DE\u57FA\u4E8E\u6837\u672C\u603B\u4F53\u7684\u5206\u5E03\u4E0D\u5BF9\u79F0\u5EA6\uFF1A\u8868\u660E\u5206\u5E03\u76F8\u5BF9\u4E8E\u5E73\u5747\u503C\u7684\u4E0D\u5BF9\u79F0\u7A0B\u5EA6\u3002\",\r\n p: [\r\n {\r\n name: \"\u503C1\",\r\n detail: \"\u6570\u636E\u96C6\u4E2D\u7684\u7B2C\u4E00\u4E2A\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u503C2, ...\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n VLOOKUP: {\r\n d: \"\u7EB5\u5411\u67E5\u627E\u3002\u5728\u8303\u56F4\u7684\u7B2C\u4E00\u5217\u4E2D\u81EA\u4E0A\u800C\u4E0B\u641C\u7D22\u67D0\u4E2A\u952E\u503C\uFF0C\u5E76\u8FD4\u56DE\u6240\u627E\u5230\u7684\u884C\u4E2D\u6307\u5B9A\u5355\u5143\u683C\u7684\u503C\u3002\",\r\n a: \"\u7EB5\u5411\u67E5\u627E\u3002\u5728\u8303\u56F4\u7684\u7B2C\u4E00\u5217\u4E2D\u81EA\u4E0A\u800C\u4E0B\u641C\u7D22\u67D0\u4E2A\u952E\u503C\",\r\n p: [\r\n {\r\n name: \"\u641C\u7D22\u952E\u503C\",\r\n detail: '\u8981\u641C\u7D22\u7684\u503C\uFF0C\u5982 42\u3001\"Cats\" \u6216 I24\u3002',\r\n },\r\n {\r\n name: \"\u8303\u56F4\",\r\n detail: \"\u8981\u8FDB\u884C\u641C\u7D22\u7684\u8303\u56F4\u3002VLOOKUP \u5C06\u5728\u8BE5\u8303\u56F4\u7684\u7B2C\u4E00\u5217\u4E2D\u641C\u7D22\u641C\u7D22\u952E\u503C\u4E2D\u6307\u5B9A\u7684\u952E\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u7D22\u5F15\",\r\n detail:\r\n \"\u8981\u8FD4\u56DE\u7684\u503C\u7684\u5217\u7D22\u5F15\uFF0C\u8303\u56F4\u4E2D\u7684\u7B2C\u4E00\u5217\u7F16\u53F7\u4E3A 1\u3002\\n\\n\u5982\u679C\u7D22\u5F15\u4E0D\u662F\u4ECB\u4E8E 1 \u548C\u8303\u56F4\u4E2D\u7684\u5217\u6570\u4E4B\u95F4\uFF0C\u5C06\u8FD4\u56DE #VALUE! \u3002\",\r\n },\r\n {\r\n name: \"\u5DF2\u6392\u5E8F\",\r\n detail:\r\n \"[\u9ED8\u8BA4\u503C\u4E3A TRUE() ] - \u6307\u793A\u8981\u641C\u7D22\u7684\u5217\uFF08\u6307\u5B9A\u8303\u56F4\u7684\u7B2C\u4E00\u5217\uFF09\u662F\u5426\u5DF2\u6392\u5E8F\u3002\u5927\u591A\u6570\u60C5\u51B5\u4E0B\uFF0C\u5EFA\u8BAE\u8BBE\u4E3A FALSE()\u3002\\n\\n\u5EFA\u8BAE\u5C06\u5DF2\u6392\u5E8F\u8BBE\u4E3A FALSE\u3002\u5982\u679C\u8BBE\u4E3A FALSE\uFF0C\u5C06\u8FD4\u56DE\u5B8C\u5168\u5339\u914D\u9879\u3002\u5982\u679C\u5B58\u5728\u591A\u4E2A\u5339\u914D\u503C\uFF0C\u5C06\u8FD4\u56DE\u627E\u5230\u7684\u7B2C\u4E00\u4E2A\u503C\u5BF9\u5E94\u7684\u5355\u5143\u683C\u7684\u5185\u5BB9\uFF0C\u5982\u679C\u627E\u4E0D\u5230\u5339\u914D\u503C\uFF0C\u5219\u8FD4\u56DE #N/A\u3002\\n\\n\u5982\u679C\u5C06\u5DF2\u6392\u5E8F\u8BBE\u4E3A TRUE \u6216\u7701\u7565\uFF0C\u5C06\u8FD4\u56DE\uFF08\u5C0F\u4E8E\u6216\u7B49\u4E8E\u641C\u7D22\u952E\u503C\u7684\uFF09\u6700\u63A5\u8FD1\u7684\u5339\u914D\u9879\u3002\u5982\u679C\u641C\u7D22\u7684\u5217\u4E2D\u6240\u6709\u7684\u503C\u5747\u5927\u4E8E\u641C\u7D22\u952E\u503C\uFF0C\u5219\u8FD4\u56DE #N/A\u3002\",\r\n },\r\n ],\r\n },\r\n HLOOKUP: {\r\n d: \"\u6A2A\u5411\u67E5\u627E\u3002\u5728\u8303\u56F4\u7684\u7B2C\u4E00\u884C\u4E2D\u641C\u7D22\u67D0\u4E2A\u952E\u503C\uFF0C\u5E76\u8FD4\u56DE\u6240\u627E\u5230\u7684\u5217\u4E2D\u6307\u5B9A\u5355\u5143\u683C\u7684\u503C\u3002\",\r\n a: \"\u6A2A\u5411\u67E5\u627E\u3002\u5728\u8303\u56F4\u7684\u7B2C\u4E00\u884C\u4E2D\u641C\u7D22\u67D0\u4E2A\u952E\u503C\",\r\n p: [\r\n {\r\n name: \"\u641C\u7D22\u952E\u503C\",\r\n detail: '\u8981\u641C\u7D22\u7684\u503C\u3002\u4F8B\u5982\uFF0C42\u3001\"Cats\"\u6216I24\u3002',\r\n },\r\n {\r\n name: \"\u8303\u56F4\",\r\n detail: \"\u8981\u8FDB\u884C\u641C\u7D22\u7684\u8303\u56F4\u3002\u5C06\u5728\u8BE5\u8303\u56F4\u7684\u7B2C\u4E00\u884C\u4E2D\u641C\u7D22\u5728\u641C\u7D22\u952E\u503C\u4E2D\u6307\u5B9A\u7684\u952E\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u7D22\u5F15\",\r\n detail:\r\n \"\u8981\u8FD4\u56DE\u7684\u503C\u7684\u884C\u7D22\u5F15\uFF0C\u8303\u56F4\u4E2D\u7684\u7B2C\u4E00\u884C\u7F16\u53F7\u4E3A1\u3002\\n\\n\u5982\u679C\u7D22\u5F15\u4E0D\u662F\u4ECB\u4E8E1\u548C\u8303\u56F4\u4E2D\u7684\u884C\u6570\u4E4B\u95F4\uFF0C\u5C06\u8FD4\u56DE#VALUE!\u3002\",\r\n },\r\n {\r\n name: \"\u5DF2\u6392\u5E8F\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] - \u6307\u793A\u8981\u641C\u7D22\u7684\u884C\uFF08\u6307\u5B9A\u8303\u56F4\u7684\u7B2C\u4E00\u884C\uFF09\u662F\u5426\u5DF2\u6392\u5E8F\u3002\\n\\n\u5982\u679C\u5C06\u5DF2\u6392\u5E8F\u8BBE\u4E3ATRUE\u6216\u7701\u7565\uFF0C\u5C06\u8FD4\u56DE\u6700\u63A5\u8FD1\u7684\u5339\u914D\u503C\uFF08\u5C0F\u4E8E\u6216\u7B49\u4E8E\u641C\u7D22\u952E\u503C\uFF09\u3002\u5982\u679C\u5728\u641C\u7D22\u7684\u884C\u4E2D\u6240\u6709\u7684\u503C\u5747\u5927\u4E8E\u641C\u7D22\u952E\u503C\uFF0C\u5219\u8FD4\u56DE#N/A\u3002\\n\\n\u5982\u679C\u5C06\u5DF2\u6392\u5E8F\u8BBE\u4E3ATRUE\u6216\u5C06\u5176\u7701\u7565\uFF0C\u800C\u8303\u56F4\u7684\u9996\u884C\u5E76\u975E\u5904\u4E8E\u5DF2\u6392\u5E8F\u72B6\u6001\uFF0C\u5219\u8FD4\u56DE\u503C\u53EF\u80FD\u4F1A\u662F\u9519\u8BEF\u7684\u3002\\n\\n\u5982\u679C\u5C06\u5DF2\u6392\u5E8F\u8BBE\u4E3AFALSE\uFF0C\u5219\u4EC5\u8FD4\u56DE\u5B8C\u5168\u5339\u914D\u3002\u5982\u679C\u5B58\u5728\u591A\u4E2A\u5339\u914D\u503C\uFF0C\u5C06\u8FD4\u56DE\u4E0E\u627E\u5230\u7684\u7B2C\u4E00\u4E2A\u503C\u5BF9\u5E94\u7684\u5355\u5143\u683C\u7684\u5185\u5BB9\uFF0C\u5982\u679C\u627E\u4E0D\u5230\u5339\u914D\u503C\u5219\u8FD4\u56DE#N/A\u3002\",\r\n },\r\n ],\r\n },\r\n LOOKUP: {\r\n d: \"\u5728\u884C\u6216\u5217\u4E2D\u67E5\u627E\u76F8\u5E94\u952E\uFF0C\u5E76\u5C06\u76F8\u5E94\u5355\u5143\u683C\u7684\u503C\u8FD4\u56DE\u5230\u4E0E\u641C\u7D22\u884C\u6216\u5217\u6240\u5728\u4F4D\u7F6E\u76F8\u540C\u7684\u7ED3\u679C\u8303\u56F4\u4E2D\u3002\",\r\n a: \"\u5728\u884C\u6216\u5217\u4E2D\u67E5\u627E\u76F8\u5E94\u952E\",\r\n p: [\r\n {\r\n name: \"\u641C\u7D22\u952E\u503C\",\r\n detail: '\u8981\u5728\u884C\u6216\u5217\u4E2D\u641C\u7D22\u7684\u503C\u3002\u4F8B\u5982\uFF0C42\u3001\"Cats\" \u6216 I24\u3002',\r\n },\r\n {\r\n name: \"\u641C\u7D22\u8303\u56F4 | \u641C\u7D22\u7ED3\u679C\u6570\u7EC4\",\r\n detail:\r\n \"\u4F7F\u7528 LOOKUP \u7684\u4E00\u79CD\u65B9\u6CD5\u662F\u7ED9\u5B9A\u5355\u884C\u6216\u5355\u5217\u5F62\u5F0F\u7684\u641C\u7D22\u8303\u56F4\u8FDB\u884C\u641C\u7D22\u67E5\u627E\uFF0C\u8FD9\u79CD\u65B9\u5F0F\u8981\u7528\u5230\u53E6\u4E00\u4E2A\u53C2\u6570\u7ED3\u679C\u8303\u56F4\u3002\u53E6\u4E00\u79CD\u65B9\u5F0F\u662F\u5C06\u8FD9\u4E24\u4E2A\u53C2\u6570\u5408\u5E76\u4E3A\u4E00\u4E2A\u641C\u7D22\u7ED3\u679C\u6570\u7EC4\uFF0C\u5176\u4E2D\u7B2C\u4E00\u884C\u6216\u7B2C\u4E00\u5217\u7528\u4E8E\u641C\u7D22\uFF0C\u5E76\u5C06\u8FD4\u56DE\u503C\u653E\u5728\u8BE5\u6570\u7EC4\u7684\u6700\u540E\u4E00\u884C\u6216\u6700\u540E\u4E00\u5217\u4E2D\u3002\",\r\n },\r\n {\r\n name: \"\u7ED3\u679C\u8303\u56F4\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7528\u4E8E\u5B58\u653E\u8FD4\u56DE\u7ED3\u679C\u7684\u8303\u56F4\u3002\u8FD4\u56DE\u503C\u5BF9\u5E94\u4E8E\u5728\u641C\u7D22\u8303\u56F4\u4E2D\u627E\u5230\u641C\u7D22\u952E\u503C\u7684\u4F4D\u7F6E\u3002\u6B64\u8303\u56F4\u5FC5\u987B\u4EC5\u4E3A\u5355\u884C\u6216\u5355\u5217\uFF0C\u800C\u5982\u679C\u60A8\u4F7F\u7528\u7684\u662F\u641C\u7D22\u7ED3\u679C\u6570\u7EC4\u65B9\u5F0F\uFF0C\u5219\u4E0D\u5E94\u63D0\u4F9B\u6B64\u53C2\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n ADDRESS: {\r\n d: \"\u8FD4\u56DE\u5B57\u7B26\u4E32\u5F62\u5F0F\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n a: \"\u8FD4\u56DE\u5B57\u7B26\u4E32\u5F62\u5F0F\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n p: [\r\n {\r\n name: \"row_num\",\r\n detail: \"\u4E00\u4E2A\u6570\u503C\uFF0C\u6307\u5B9A\u8981\u5728\u5355\u5143\u683C\u5F15\u7528\u4E2D\u4F7F\u7528\u7684\u884C\u53F7\u3002\",\r\n },\r\n {\r\n name: \"column_num\",\r\n detail: \"\u4E00\u4E2A\u6570\u503C\uFF0C\u6307\u5B9A\u8981\u5728\u5355\u5143\u683C\u5F15\u7528\u4E2D\u4F7F\u7528\u7684\u5217\u53F7\uFF08\u800C\u975E\u540D\u79F0\uFF09\u3002A\u5217\u7684\u7F16\u53F7\u4E3A1\u3002\",\r\n },\r\n {\r\n name: \"abs_num\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u4E00\u4E2A\u6570\u503C\uFF0C\u6307\u5B9A\u8981\u8FD4\u56DE\u7684\u5F15\u7528\u7C7B\u578B\u3002\\n\\n1 \u8868\u793A\u884C\u5217\u5747\u91C7\u7528\u7EDD\u5BF9\u503C\uFF08\u4F8B\u5982$A$1\uFF09\uFF1B\\n\\n2 \u8868\u793A\u91C7\u7528\u7EDD\u5BF9\u884C\u53F7\uFF0C\u76F8\u5BF9\u5217\u6807\uFF08\u4F8B\u5982A$1\uFF09\uFF1B\\n\\n3 \u8868\u793A\u91C7\u7528\u76F8\u5BF9\u884C\u53F7\uFF0C\u7EDD\u5BF9\u5217\u6807\uFF08\u4F8B\u5982$A1\uFF09\uFF1B\\n\\n4 \u8868\u793A\u884C\u5217\u5747\u91C7\u7528\u76F8\u5BF9\u503C\uFF08\u4F8B\u5982A1\uFF09\u3002\",\r\n },\r\n {\r\n name: \"A1\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] - \u4E00\u4E2A\u5E03\u5C14\u503C\uFF0C\u6307\u793A\u91C7\u7528A1\u6807\u8BB0\u5F62\u5F0F(TRUE)\u8FD8\u662FR1C1\u6807\u8BB0\u5F62\u5F0F(FALSE)\u3002\",\r\n },\r\n {\r\n name: \"sheet_text\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u7F3A\u7701] - \u7528\u4E8E\u6307\u5B9A\u5730\u5740\u6240\u6307\u5411\u7684\u5DE5\u4F5C\u8868\u540D\u79F0\u3002\",\r\n },\r\n ],\r\n },\r\n INDIRECT: {\r\n d: \"\u8FD4\u56DE\u4EE5\u5B57\u7B26\u4E32\u6307\u5B9A\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5\u5B57\u7B26\u4E32\u6307\u5B9A\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n p: [\r\n {\r\n name: \"ref_text\",\r\n detail: \"\u4EE5\u5E26\u5F15\u53F7\u7684\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n },\r\n {\r\n name: \"A1\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] - \u4E00\u4E2A\u5E03\u5C14\u503C\uFF0C\u6307\u793A\u91C7\u7528A1\u6807\u8BB0\u5F62\u5F0F(TRUE)\u8FD8\u662FR1C1\u6807\u8BB0\u5F62\u5F0F(FALSE)\u3002\",\r\n },\r\n ],\r\n },\r\n ROW: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u5355\u5143\u683C\u7684\u884C\u53F7\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u5355\u5143\u683C\u7684\u884C\u53F7\",\r\n p: [\r\n {\r\n name: \"reference\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A\u6B64\u516C\u5F0F\u6240\u5728\u7684\u5355\u5143\u683C] - \u8981\u8FD4\u56DE\u5176\u884C\u53F7\u7684\u5355\u5143\u683C\u3002\\n\\n\u5982\u679C\u5355\u5143\u683C\u5F15\u7528\u6307\u5411\u7684\u8303\u56F4\u5176\u5BBD\u5EA6\u5927\u4E8E\u4E00\u4E2A\u5355\u5143\u683C\uFF0C\u800C\u6B64\u516C\u5F0F\u4E0D\u662F\u7528\u4F5C\u6570\u7EC4\u516C\u5F0F\u7684\uFF0C\u8FD9\u65F6\u4F1A\u4EC5\u8FD4\u56DE\u5355\u5143\u683C\u5F15\u7528\u4E2D\u9996\u884C\u7684\u7F16\u53F7\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ROWS: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u884C\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u884C\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u884C\u6570\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n COLUMN: {\r\n d: \"\u6309\u7167 `A=1` \u7684\u89C4\u5219\u8FD4\u56DE\u6307\u5B9A\u5355\u5143\u683C\u7684\u5217\u53F7\u3002\",\r\n a: \"\u6309\u7167 `A=1` \u7684\u89C4\u5219\u8FD4\u56DE\u6307\u5B9A\u5355\u5143\u683C\u7684\u5217\u53F7\u3002\",\r\n p: [\r\n {\r\n name: \"reference\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A\u5305\u542B\u6B64\u516C\u5F0F\u7684\u5355\u5143\u683C] - \u8981\u8FD4\u56DE\u5176\u5217\u53F7\u7684\u5355\u5143\u683C\u3002A\u5217\u5BF9\u5E94\u7684\u7F16\u53F7\u4E3A1\u3002\\n\\n\u5982\u679C\u5355\u5143\u683C\u5F15\u7528\u662F\u5BBD\u5EA6\u8D85\u8FC7\u4E00\u4E2A\u5355\u5143\u683C\u7684\u8303\u56F4\uFF0C\u800C\u6B64\u516C\u5F0F\u4E0D\u662F\u4F5C\u4E3A\u6570\u7EC4\u516C\u5F0F\u6765\u4F7F\u7528\u7684\uFF0C\u56E0\u6B64\u5C06\u8FD4\u56DE\u5355\u5143\u683C\u5F15\u7528\u4E2D\u7684\u7B2C\u4E00\u5217\u7684\u4F4D\u7F6E\u3002\",\r\n },\r\n ],\r\n },\r\n COLUMNS: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u5217\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u5217\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u5217\u6570\u7684\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n OFFSET: {\r\n d: \"\u7ED9\u5B9A\u67D0\u8303\u56F4\u7684\u8D77\u59CB\u5355\u5143\u683C\u5F15\u7528\u4EE5\u53CA\u8BE5\u8303\u56F4\u6DB5\u76D6\u7684\u884C\u5217\u6570\u91CF\uFF0C\u8FD4\u56DE\u8BE5\u8303\u56F4\u7684\u5F15\u7528\u3002\",\r\n a: \"\u7ED9\u5B9A\u67D0\u8303\u56F4\u7684\u8D77\u59CB\u5355\u5143\u683C\u5F15\u7528\u4EE5\u53CA\u8BE5\u8303\u56F4\u6DB5\u76D6\u7684\u884C\u5217\u6570\u91CF\uFF0C\u8FD4\u56DE\u8BE5\u8303\u56F4\u7684\u5F15\u7528\u3002\",\r\n p: [\r\n {\r\n name: \"reference\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u884C\u5217\u504F\u79FB\u91CF\u7684\u8D77\u70B9\u3002\",\r\n },\r\n {\r\n name: \"rows\",\r\n detail:\r\n \"\u8981\u504F\u79FB\u7684\u884C\u6570\u3002\\n\\n\u884C\u504F\u79FB\u91CF\u5FC5\u987B\u662F\u6574\u6570\uFF0C\u4F46\u4E5F\u53EF\u4EE5\u662F\u8D1F\u6570\u3002\u5982\u679C\u63D0\u4F9B\u7684\u53C2\u6570\u5E26\u6709\u5C0F\u6570\uFF0C\u5C0F\u6570\u90E8\u5206\u5C06\u88AB\u622A\u53BB\u3002\",\r\n },\r\n {\r\n name: \"cols\",\r\n detail:\r\n \"\u8981\u504F\u79FB\u7684\u5217\u6570\u3002\\n\\n\u5217\u504F\u79FB\u91CF\u5FC5\u987B\u662F\u6574\u6570\uFF0C\u4F46\u4E5F\u53EF\u4EE5\u662F\u8D1F\u6570\u3002\u5982\u679C\u63D0\u4F9B\u7684\u53C2\u6570\u5E26\u6709\u5C0F\u6570\uFF0C\u5C0F\u6570\u90E8\u5206\u5C06\u88AB\u622A\u53BB\u3002\",\r\n },\r\n {\r\n name: \"height\",\r\n detail: \"[\u53EF\u9009] - \u8981\u4ECE\u504F\u79FB\u76EE\u6807\u5F00\u59CB\u8FD4\u56DE\u7684\u8303\u56F4\u7684\u9AD8\u5EA6\u3002\",\r\n },\r\n {\r\n name: \"width\",\r\n detail: \"[\u53EF\u9009] - \u8981\u4ECE\u504F\u79FB\u76EE\u6807\u5F00\u59CB\u8FD4\u56DE\u7684\u8303\u56F4\u7684\u5BBD\u5EA6\u3002\",\r\n },\r\n ],\r\n },\r\n MATCH: {\r\n d: \"\u5728\u5355\u5143\u683C\u4E2D\u641C\u7D22\u6307\u5B9A\u9879\uFF0C\u7136\u540E\u8FD4\u56DE\u8BE5\u9879\u5728\u5355\u5143\u683C\u533A\u57DF\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\",\r\n a: \"\u5728\u5355\u5143\u683C\u4E2D\u641C\u7D22\u6307\u5B9A\u9879\uFF0C\u7136\u540E\u8FD4\u56DE\u8BE5\u9879\u5728\u5355\u5143\u683C\u533A\u57DF\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\",\r\n p: [\r\n {\r\n name: \"lookup_value\",\r\n detail: \"\u8981\u5728 lookup_array \u4E2D\u5339\u914D\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"lookup_array\",\r\n detail: \"\u8981\u641C\u7D22\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\\n\\n\u5982\u679C\u6240\u7528\u7684\u8303\u56F4\u7684\u9AD8\u5EA6\u548C\u5BBD\u5EA6\u5747\u5927\u4E8E1\uFF0CMATCH\u5C06\u8FD4\u56DE#N/A!\u3002\",\r\n },\r\n {\r\n name: \"match_type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u8981\u91C7\u7528\u7684\u641C\u7D22\u65B9\u5F0F\u3002\\n\\n1\u4E3A\u9ED8\u8BA4\u7C7B\u578B\uFF0C\u6B64\u65F6MATCH\u4F1A\u5047\u8BBE\u8303\u56F4\u5DF2\u6309\u5347\u5E8F\u6392\u5E8F\uFF0C\u5E76\u8FD4\u56DE\u5C0F\u4E8E\u7B49\u4E8E\u641C\u7D22\u952E\u503C\u7684\u6700\u5927\u503C\u3002\\n\\n0\u8868\u793A\u5B8C\u5168\u5339\u914D\uFF0C\u5728\u8303\u56F4\u672A\u6392\u5E8F\u7684\u60C5\u51B5\u4E0B\u9700\u8981\u4F7F\u7528\u6B64\u65B9\u5F0F\u3002\\n\\n-1\u8BA9MATCH\u5047\u8BBE\u8303\u56F4\u662F\u6309\u964D\u5E8F\u6392\u5E8F\u7684\uFF0C\u5E76\u8FD4\u56DE\u5927\u4E8E\u7B49\u4E8E\u641C\u7D22\u952E\u503C\u7684\u6700\u5C0F\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n INDEX: {\r\n d: \"\u8FD4\u56DE\u8868\u683C\u6216\u4E2D\u7684\u5143\u7D20\u503C\uFF0C\u6B64\u5143\u7D20\u7531\u884C\u53F7\u548C\u5217\u53F7\u7684\u7D22\u5F15\u503C\u7ED9\u5B9A\u3002\",\r\n a: \"\u8FD4\u56DE\u8868\u683C\u6216\u4E2D\u7684\u5143\u7D20\u503C\uFF0C\u6B64\u5143\u7D20\u7531\u884C\u53F7\u548C\u5217\u53F7\u7684\u7D22\u5F15\u503C\u7ED9\u5B9A\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u5355\u5143\u683C\u533A\u57DF\u6216\u6570\u7EC4\u5E38\u91CF\u3002\",\r\n },\r\n {\r\n name: \"row_num\",\r\n detail: \"\u9009\u62E9\u6570\u7EC4\u4E2D\u7684\u67D0\u884C\uFF0C\u51FD\u6570\u4ECE\u8BE5\u884C\u8FD4\u56DE\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"column_num\",\r\n detail: \"\u9009\u62E9\u6570\u7EC4\u4E2D\u7684\u67D0\u5217\uFF0C\u51FD\u6570\u4ECE\u8BE5\u5217\u8FD4\u56DE\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n GETPIVOTDATA: {\r\n d: \"\u4ECE\u4E0E\u6307\u5B9A\u884C\u548C\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6570\u636E\u900F\u89C6\u8868\u4E2D\u63D0\u53D6\u6C47\u603B\u503C\u3002\",\r\n a: \"\u4ECE\u4E0E\u6307\u5B9A\u884C\u548C\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6570\u636E\u900F\u89C6\u8868\u4E2D\u63D0\u53D6\u6C47\u603B\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"data_field\",\r\n detail:\r\n \"\u60A8\u60F3\u4ECE\u6570\u636E\u900F\u89C6\u8868\u4E2D\u83B7\u53D6\u5176\u6570\u636E\u7684\u503C\u540D\u79F0\u3002\\n\u503C\u540D\u79F0\u5FC5\u987B\u62EC\u5728\u5F15\u53F7\u4E2D\u6216\u662F\u6307\u5411\u5305\u542B\u76F8\u5173\u6587\u672C\u7684\u4EFB\u4F55\u5355\u5143\u683C\u7684\u5F15\u7528\u3002\\n\u5982\u679C\u6709\u591A\u4E2A\u503C\u5B57\u6BB5\uFF0C\u5219\u5FC5\u987B\u4F7F\u7528\u6570\u636E\u900F\u89C6\u8868\u4E2D\u663E\u793A\u7684\u786E\u5207\u540D\u79F0\uFF08\u5982\u201C\u9500\u552E\u603B\u989D\u201D\uFF09\u3002\",\r\n },\r\n {\r\n name: \"pivot_table\",\r\n detail: \"\u76EE\u6807\u6570\u636E\u900F\u89C6\u8868\u4E2D\u7684\u4EFB\u4F55\u5355\u5143\u683C\u7684\u5F15\u7528\uFF08\u63A8\u8350\u4F4D\u4E8E\u9876\u89D2\u7684\u5355\u5143\u683C\uFF09\u3002\",\r\n },\r\n {\r\n name: \"field1\",\r\n detail: \"[\u53EF\u9009] - \u6E90\u6570\u636E\u96C6\uFF08\u4E0D\u662F\u6570\u636E\u900F\u89C6\u8868\uFF09\u4E2D\u5217\u7684\u540D\u79F0\u3002\",\r\n },\r\n {\r\n name: \"item1\",\r\n detail: \"[\u53EF\u9009] - \u6570\u636E\u900F\u89C6\u8868\u4E2D\u663E\u793A\u7684\u4E0E\u60A8\u8981\u68C0\u7D22\u7684\u5B57\u6BB5\u540D\u79F0 1 \u76F8\u5BF9\u5E94\u7684\u884C\u6216\u5217\u7684\u540D\u79F0\u3002\",\r\n },\r\n ],\r\n },\r\n CHOOSE: {\r\n d: \"\u57FA\u4E8E\u7D22\u5F15\u8FD4\u56DE\u9009\u9879\u5217\u8868\u4E2D\u7684\u5143\u7D20\u3002\",\r\n a: \"\u57FA\u4E8E\u7D22\u5F15\u8FD4\u56DE\u9009\u9879\u5217\u8868\u4E2D\u7684\u5143\u7D20\u3002\",\r\n p: [\r\n {\r\n name: \"index_num\",\r\n detail: \"\u6307\u5B9A\u8981\u8FD4\u56DE\u54EA\u4E00\u9879\u3002\\n\\n\u5982\u679C\u7D22\u5F15\u4E3A\u96F6\u3001\u8D1F\u503C\u6216\u5927\u4E8E\u63D0\u4F9B\u7684\u9009\u62E9\u6570\u91CF\uFF0C\u5C06\u8FD4\u56DE#VALUE!\u9519\u8BEF\u3002\",\r\n },\r\n {\r\n name: \"value1\",\r\n detail: \"\u4E00\u9879\u53EF\u80FD\u7684\u8FD4\u56DE\u503C\u3002\u5FC5\u987B\u63D0\u4F9B\u3002\u53EF\u4EE5\u662F\u5355\u5143\u683C\u5F15\u7528\u6216\u5355\u72EC\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"[\u53EF\u9009] - \u5176\u4ED6\u53EF\u4EE5\u9009\u62E9\u7684\u503C\u3002\u9009\u62E9\",\r\n },\r\n ],\r\n },\r\n HYPERLINK: {\r\n d: \"\u5728\u5355\u5143\u683C\u5185\u521B\u5EFA\u4E00\u4E2A\u8D85\u94FE\u63A5\u3002\",\r\n a: \"\u5728\u5355\u5143\u683C\u5185\u521B\u5EFA\u4E00\u4E2A\u8D85\u94FE\u63A5\u3002\",\r\n p: [\r\n {\r\n name: \"\u7F51\u5740\",\r\n detail:\r\n \"\u4EE5\u5F15\u53F7\u62EC\u4F4F\u7684\u94FE\u63A5\u4F4D\u7F6E\u7684\u5B8C\u6574\u7F51\u5740\uFF0C\u6216\u5BF9\u5305\u542B\u8FD9\u79CD\u7F51\u5740\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3002\\n\\n\u4EC5\u5141\u8BB8\u67D0\u4E9B\u94FE\u63A5\u7C7B\u578B\u3002\u5176\u4E2D\u5305\u62EC\uFF1Ahttp://\u3001https://\u3001mailto:\u3001aim:\u3001ftp://\u3001gopher://\u3001telnet://\u548Cnews://\uFF0C\u660E\u786E\u7981\u7528\u4F7F\u7528\u5176\u4ED6\u534F\u8BAE\u3002\u5982\u679C\u6307\u5B9A\u7684\u662F\u5176\u4ED6\u534F\u8BAE\uFF0C\u5C06\u4F1A\u5728\u5355\u5143\u683C\u4E2D\u663E\u793A\u94FE\u63A5\u6807\u7B7E\uFF0C\u4F46\u8BE5\u6807\u7B7E\u4E0D\u4F1A\u4EE5\u94FE\u63A5\u5F62\u5F0F\u5448\u73B0\u3002\\n\\n\u5982\u679C\u672A\u6307\u5B9A\u534F\u8BAE\uFF0C\u5219\u5047\u8BBE\u4F7F\u7528http://\uFF0C\u5E76\u5C06\u5176\u4F5C\u4E3A\u7F51\u5740\u7684\u524D\u7F00\u3002\",\r\n },\r\n {\r\n name: \"\u94FE\u63A5\u6807\u7B7E\",\r\n detail:\r\n '[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A\u7F51\u5740] - \u8981\u5728\u5355\u5143\u683C\u4E2D\u4F5C\u4E3A\u94FE\u63A5\u663E\u793A\u7684\u6587\u672C\uFF08\u7528\u5F15\u53F7\u62EC\u8D77\u6765\u7684\uFF09\uFF0C\u6216\u8005\u6307\u5411\u5305\u542B\u8FD9\u79CD\u6807\u7B7E\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3002\\n\\n\u5982\u679C\u94FE\u63A5\u6807\u7B7E\u662F\u6307\u5411\u67D0\u4E2A\u7A7A\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5982\u679C\u7F51\u5740\u6709\u6548\uFF0C\u5C31\u5C06\u5176\u4F5C\u4E3A\u94FE\u63A5\u663E\u793A\uFF0C\u5426\u5219\u4F5C\u4E3A\u7EAF\u6587\u672C\u663E\u793A\u3002\\n\\n\u5982\u679C\u94FE\u63A5\u6807\u7B7E\u4E3A\u7A7A\u5B57\u7B26\u4E32\u5E38\u91CF(\"\")\uFF0C\u6240\u5728\u5355\u5143\u683C\u663E\u793A\u7684\u5185\u5BB9\u5C06\u4E3A\u7A7A\u767D\uFF0C\u4F46\u901A\u8FC7\u70B9\u51FB\u8BE5\u5355\u5143\u683C\u6216\u8F6C\u5165\u8BE5\u5355\u5143\u683C\u4ECD\u7136\u53EF\u4EE5\u8BBF\u95EE\u94FE\u63A5\u3002',\r\n },\r\n ],\r\n },\r\n TIME: {\r\n d: \"\u5C06\u7ED9\u5B9A\u7684\u5C0F\u65F6\u3001\u5206\u949F\u548C\u79D2\u8F6C\u6362\u4E3A\u65F6\u95F4\u3002\",\r\n a: \"\u5C06\u7ED9\u5B9A\u7684\u5C0F\u65F6\u3001\u5206\u949F\u548C\u79D2\u8F6C\u6362\u4E3A\u65F6\u95F4\u3002\",\r\n p: [\r\n {\r\n name: \"\u5C0F\u65F6\",\r\n detail: \"0\uFF08\u96F6\uFF09\u5230 32767 \u4E4B\u95F4\u7684\u6570\u5B57\uFF0C\u4EE3\u8868\u5C0F\u65F6\u3002\\n\\n\u4EFB\u4F55\u5927\u4E8E 23 \u7684\u503C\u90FD\u4F1A\u9664\u4EE5 24\uFF0C\u4F59\u6570\u5C06\u4F5C\u4E3A\u5C0F\u65F6\u503C\u3002\",\r\n },\r\n {\r\n name: \"\u5206\u949F\",\r\n detail: \"0\uFF08\u96F6\uFF09\u5230 32767 \u4E4B\u95F4\u7684\u6570\u5B57\uFF0C\u4EE3\u8868\u5206\u949F\u3002\\n\\n\u4EFB\u4F55\u5927\u4E8E 59 \u7684\u503C\u5C06\u8F6C\u6362\u4E3A\u5C0F\u65F6\u548C\u5206\u949F\u3002\",\r\n },\r\n {\r\n name: \"\u79D2\",\r\n detail: \"0\uFF08\u96F6\uFF09\u5230 32767 \u4E4B\u95F4\u7684\u6570\u5B57\uFF0C\u4EE3\u8868\u79D2\u3002\\n\\n\u4EFB\u4F55\u5927\u4E8E 59 \u7684\u503C\u5C06\u8F6C\u6362\u4E3A\u5C0F\u65F6\u3001\u5206\u949F\u548C\u79D2\u3002\",\r\n },\r\n ],\r\n },\r\n TIMEVALUE: {\r\n d: \"\u6309\u4E00\u592924\u5C0F\u65F6\u8FD4\u56DE\u8BE5\u65F6\u95F4\u7684\u5206\u6570\u8868\u793A\u3002\",\r\n a: \"\u6309\u4E00\u592924\u5C0F\u65F6\u8FD4\u56DE\u8BE5\u65F6\u95F4\u7684\u5206\u6570\u8868\u793A\u3002\",\r\n p: [\r\n {\r\n name: \"time_text\",\r\n detail: \"\u7528\u4E8E\u8868\u793A\u65F6\u95F4\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n EOMONTH: {\r\n d: \"\u8FD4\u56DE\u67D0\u4E2A\u6708\u4EFD\u6700\u540E\u4E00\u5929\u7684\u5E8F\u5217\u53F7\uFF0C\u8BE5\u6708\u4EFD\u5728\u53E6\u4E00\u4E2A\u65E5\u671F\u4E4B\u524D\u6216\u4E4B\u540E\u7684\u6570\u4E2A\u6708\uFF08\u6708\u6570\u7531\u53C2\u6570\u6307\u5B9A\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u67D0\u4E2A\u6708\u4EFD\u6700\u540E\u4E00\u5929\u7684\u5E8F\u5217\u53F7\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u7ED3\u679C\u7684\u53C2\u7167\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"months\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u7684\u8D77\u59CB\u65E5\u671F\u4E4B\u524D\uFF08\u8D1F\uFF09\u6216\u4E4B\u540E\uFF08\u6B63\uFF09\u7684\u6708\u6570\u3002\u8FD4\u56DE\u7684\u662F\u8BA1\u7B97\u6240\u5F97\u6708\u4EFD\u7684\u6700\u540E\u90A3\u5929\u3002\",\r\n },\r\n ],\r\n },\r\n EDATE: {\r\n d: \"\u8FD4\u56DE\u8868\u793A\u67D0\u4E2A\u65E5\u671F\u7684\u5E8F\u5217\u53F7\uFF0C\u8BE5\u65E5\u671F\u5728\u53E6\u4E00\u4E2A\u65E5\u671F\u7684\u6570\u6708\u4E4B\u524D/\u4E4B\u540E\u3002\",\r\n a: \"\u8FD4\u56DE\u8868\u793A\u67D0\u4E2A\u65E5\u671F\u7684\u5E8F\u5217\u53F7\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u7ED3\u679C\u7684\u53C2\u7167\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"months\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u7684\u8D77\u59CB\u65E5\u671F\u4E4B\u524D\uFF08\u8D1F\uFF09\u6216\u4E4B\u540E\uFF08\u6B63\uFF09\u7684\u6708\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n SECOND: {\r\n d: \"\u8FD4\u56DE\u65F6\u95F4\u503C\u7684\u79D2\u6570\u3002 \u79D2\u6570\u662F 0\uFF08\u96F6\uFF09\u5230 59 \u8303\u56F4\u5185\u7684\u6574\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u65F6\u95F4\u503C\u7684\u79D2\u6570\u3002 \u79D2\u6570\u662F 0\uFF08\u96F6\uFF09\u5230 59 \u8303\u56F4\u5185\u7684\u6574\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u65F6\u95F4\",\r\n detail:\r\n \"\u7528\u4E8E\u8BA1\u7B97\u79D2\u949F\u90E8\u5206\u7684\u65F6\u95F4\u3002\u5FC5\u987B\u4E3A\u4EE5\u4E0B\u503C\u4E4B\u4E00\uFF1A\u6307\u5411\u5305\u542B\u65E5\u671F/\u65F6\u95F4\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F/\u65F6\u95F4\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n MINUTE: {\r\n d: \"\u4EE5\u6570\u5B57\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u90E8\u5206\u3002\",\r\n a: \"\u4EE5\u6570\u5B57\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u90E8\u5206\u3002\",\r\n p: [\r\n {\r\n name: \"\u65F6\u95F4\",\r\n detail:\r\n \"\u7528\u4E8E\u8BA1\u7B97\u5206\u949F\u90E8\u5206\u7684\u65F6\u95F4\u3002\u5FC5\u987B\u4E3A\u4EE5\u4E0B\u503C\u4E4B\u4E00\uFF1A\u6307\u5411\u5305\u542B\u65E5\u671F/\u65F6\u95F4\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F/\u65F6\u95F4\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n HOUR: {\r\n d: \"\u4EE5\u6570\u5B57\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u90E8\u5206\u3002\",\r\n a: \"\u4EE5\u6570\u5B57\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u90E8\u5206\u3002\",\r\n p: [\r\n {\r\n name: \"\u65F6\u95F4\",\r\n detail:\r\n \"\u7528\u4E8E\u8BA1\u7B97\u5C0F\u65F6\u90E8\u5206\u7684\u65F6\u95F4\u3002\u5FC5\u987B\u4E3A\u4EE5\u4E0B\u503C\u4E4B\u4E00\uFF1A\u6307\u5411\u5305\u542B\u65E5\u671F/\u65F6\u95F4\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F/\u65F6\u95F4\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n NOW: {\r\n d: \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u5F53\u524D\u65E5\u671F\u548C\u65F6\u95F4\u3002\",\r\n a: \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u5F53\u524D\u65E5\u671F\u548C\u65F6\u95F4\u3002\",\r\n p: [],\r\n },\r\n NETWORKDAYS: {\r\n d: \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\u7684\u65F6\u95F4\u6BB5\u5F00\u59CB\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\u7684\u65F6\u95F4\u6BB5\u7ED3\u675F\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail:\r\n \"[\u53EF\u9009] - \u4E00\u4E2A\u8303\u56F4\u6216\u6570\u7EC4\u5E38\u91CF\uFF0C\u5176\u4E2D\u5305\u542B\u4F5C\u4E3A\u8282\u5047\u65E5\u7684\u65E5\u671F\u5E8F\u53F7\u3002\\n\\n\u5728\u8282\u5047\u65E5\u6570\u7EC4\u4E2D\u63D0\u4F9B\u7684\u503C\u5FC5\u987B\u662F\u65E5\u671F\u5E8F\u53F7\u503C\uFF08\u4F8B\u5982\u7531N\u6240\u8FD4\u56DE\u7684\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982\u7531DATE\u3001DATEVALUE\u6216TO_DATE\u8FD4\u56DE\u7684\u503C\uFF09\u3002\u7531\u8303\u56F4\u6307\u5B9A\u7684\u503C\u5E94\u8BE5\u662F\u6807\u51C6\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n NETWORKDAYS_INTL: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u7684\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\uFF08\u6392\u9664\u6307\u5B9A\u7684\u5468\u672B\u548C\u8282\u5047\u65E5\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u7684\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\uFF08\u6392\u9664\u6307\u5B9A\u7684\u5468\u672B\u548C\u8282\u5047\u65E5\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\u7684\u65F6\u95F4\u6BB5\u5F00\u59CB\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u51C0\u5DE5\u4F5C\u65E5\u5929\u6570\u7684\u65F6\u95F4\u6BB5\u7ED3\u675F\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"weekend\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u7528\u4E8E\u8868\u793A\u54EA\u4E9B\u5929\u4E3A\u5468\u672B\u7684\u6570\u5B57\u6216\u5B57\u7B26\u4E32\u3002\\n\u5B57\u7B26\u4E32\u65B9\u5F0F\uFF1A\u53EF\u4EE5\u4F7F\u7528\u75310\u548C1\u7EC4\u6210\u7684\u5B57\u7B26\u4E32\u6765\u6307\u5B9A\u5468\u672B\uFF0C\u4E32\u4E2D\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u5B57\u7B26\u4EE3\u8868\u5468\u4E00\uFF0C\u6700\u540E\u4E00\u4E2A\u5219\u4EE3\u8868\u5468\u65E5\u3002\u96F6\u8868\u793A\u8FD9\u4E00\u5929\u662F\u5DE5\u4F5C\u65E5\uFF0C1\u8868\u793A\u8FD9\u4E00\u5929\u4E3A\u5468\u672B\u3002\u4F8B\u5982\uFF0C\u201C0000011\u201D\u8868\u793A\u5C06\u5468\u516D\u548C\u5468\u65E5\u4F5C\u4E3A\u5468\u672B\u3002\\n\u6570\u5B57\u65B9\u5F0F\uFF1A\u8FD9\u79CD\u65B9\u5F0F\u4E0D\u4F7F\u7528\u4E0A\u8FF0\u5B57\u7B26\u4E32\u5F62\u5F0F\uFF0C\u800C\u662F\u4F7F\u7528\u4E00\u4E2A\u6570\u5B57\u30021 =\u5468\u516D/\u5468\u65E5\u4E3A\u5468\u672B\uFF0C2 =\u5468\u65E5/\u5468\u4E00\u4E3A\u5468\u672B\uFF0C\u4F9D\u6B64\u7C7B\u63A8\u52197 =\u5468\u4E94/\u5468\u516D\u300211 =\u5468\u65E5\u4E3A\u552F\u4E00\u5468\u672B\uFF0C12 =\u5468\u4E00\u4E3A\u552F\u4E00\u5468\u672B\uFF0C\u4F9D\u6B64\u7C7B\u63A8\u521917 =\u5468\u516D\u4E3A\u552F\u4E00\u5468\u672B\u3002\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u8FD9\u662F\u4E00\u4E2A\u8303\u56F4\u6216\u6570\u7EC4\u5E38\u91CF\uFF0C\u5176\u4E2D\u5305\u542B\u4F5C\u4E3A\u8282\u5047\u65E5\u7684\u65E5\u671F\u3002\\n\u5728\u8282\u5047\u65E5\u6570\u7EC4\u5185\u63D0\u4F9B\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u5E8F\u6570\u503C\uFF08\u4F8B\u5982N\u7684\u8FD4\u56DE\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982DATE\u3001DATEVALUE\u6216TO_DATE\u7684\u8FD4\u56DE\u503C\uFF09\u3002\u7531\u8303\u56F4\u6307\u5B9A\u7684\u503C\u5E94\u8BE5\u662F\u6807\u51C6\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ISOWEEKNUM: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u65E5\u671F\u5728\u5168\u5E74\u4E2D\u7684 ISO \u5468\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u65E5\u671F\u5728\u5168\u5E74\u4E2D\u7684 ISO \u5468\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"date\",\r\n detail: \"\u7528\u4E8E\u65E5\u671F\u548C\u65F6\u95F4\u8BA1\u7B97\u7684\u65E5\u671F-\u65F6\u95F4\u4EE3\u7801\u3002\",\r\n },\r\n ],\r\n },\r\n WEEKNUM: {\r\n d: \"\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u7684\u5468\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u7684\u5468\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"serial_number\",\r\n detail: \"\u8981\u786E\u5B9A\u5176\u4F4D\u4E8E\u7B2C\u51E0\u5468\u7684\u65E5\u671F\uFF0C\u5FC5\u987B\u662F\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"return_type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 1 ] - \u4EE3\u8868\u4E00\u5468\u8D77\u59CB\u65E5\u7684\u6570\u5B57\uFF0C\u7CFB\u7EDF\u4E5F\u4F7F\u7528\u8BE5\u6570\u5B57\u6765\u786E\u5B9A\u4E00\u5E74\u7684\u7B2C\u4E00\u5468\uFF081=\u5468\u65E5\uFF0C2=\u5468\u4E00\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n WEEKDAY: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u6570\u5B57\uFF0C\u5BF9\u5E94\u4E8E\u7ED9\u5B9A\u65E5\u671F\u6240\u5728\u7684\u661F\u671F\u51E0\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u6570\u5B57\uFF0C\u5BF9\u5E94\u4E8E\u7ED9\u5B9A\u65E5\u671F\u6240\u5728\u7684\u661F\u671F\u51E0\u3002\",\r\n p: [\r\n {\r\n name: \"serial_number\",\r\n detail: \"\u8981\u4E3A\u5176\u786E\u5B9A\u661F\u671F\u51E0\u7684\u65E5\u671F\u3002\u5FC5\u987B\u662F\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"return_type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 1] - \u4EE5\u6570\u5B57\u6307\u793A\u4F7F\u7528\u54EA\u79CD\u7F16\u53F7\u987A\u5E8F\u6765\u8868\u793A\u661F\u671F\u51E0\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6309\u661F\u671F\u65E5 (= 1) \u5F00\u59CB\u8BA1\u7B97\u3002\\n\\n\u5982\u679C\u7C7B\u578B\u4E3A 1\uFF0C\u5219\u661F\u671F\u503C\u5C06\u4ECE\u661F\u671F\u65E5\u5F00\u59CB\u7B97\u8D77\uFF0C\u5E76\u4E14\u661F\u671F\u65E5\u7684\u503C\u4E3A 1\uFF0C\u56E0\u6B64\u661F\u671F\u516D\u7684\u503C\u5C31\u662F 7\u3002\\n\\n\u5982\u679C\u7C7B\u578B\u4E3A 2\uFF0C\u5219\u661F\u671F\u503C\u5C06\u4ECE\u661F\u671F\u4E00\u5F00\u59CB\u7B97\u8D77\uFF0C\u5E76\u4E14\u661F\u671F\u4E00\u7684\u503C\u4E3A 1\uFF0C\u56E0\u6B64\u661F\u671F\u65E5\u7684\u503C\u5C31\u662F 7\u3002\\n\\n\u5982\u679C\u7C7B\u578B\u4E3A 3\uFF0C\u5219\u661F\u671F\u503C\u5C06\u4ECE\u661F\u671F\u4E00\u7B97\u8D77\uFF0C\u5E76\u4E14\u661F\u671F\u4E00\u7684\u503C\u4E3A 0\uFF0C\u56E0\u6B64\u661F\u671F\u65E5\u7684\u503C\u5C31\u662F 6\u3002\",\r\n },\r\n ],\r\n },\r\n DAY: {\r\n d: \"\u4EE5\u6570\u5B57\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u6240\u5728\u7684\u5F53\u6708\u51E0\u53F7\u3002\",\r\n a: \"\u4EE5\u6570\u5B57\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u6240\u5728\u7684\u5F53\u6708\u51E0\u53F7\u3002\",\r\n p: [\r\n {\r\n name: \"serial_number\",\r\n detail:\r\n \"\u8981\u4ECE\u4E2D\u63D0\u53D6\u5177\u4F53\u51E0\u53F7\u7684\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n DAYS: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"end_date\",\r\n detail:\r\n \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7ED3\u675F\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"start_date\",\r\n detail:\r\n \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u5F00\u59CB\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n DAYS360: {\r\n d: \"\u6309\u7167\u6BCF\u5E74360\u5929\uFF0C\u8FD4\u56DE\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5DEE\uFF08\u7528\u4E8E\u8BA1\u7B97\u5229\u606F\uFF09\u3002\",\r\n a: \"\u6309\u7167\u6BCF\u5E74360\u5929\uFF0C\u8FD4\u56DE\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5DEE\uFF08\u7528\u4E8E\u8BA1\u7B97\u5229\u606F\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail:\r\n \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u5F00\u59CB\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail:\r\n \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7ED3\u675F\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"method\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3AFALSE()] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\nFALSE - \u91C7\u7528\u7F8E\u56FD (NASD) \u65B9\u6CD5\u65F6\uFF0C\u5982\u679C\u8D77\u59CB\u65E5\u671F\u4E3A\u67D0\u6708\u7684\u6700\u540E\u4E00\u5929\uFF0C\u4E3A\u4FBF\u4E8E\u8BA1\u7B97\uFF0C\u4F1A\u5C06\u8D77\u59CB\u65E5\u671F\u7684\u5F53\u6708\u51E0\u53F7\u66F4\u6539\u4E3A30\u3002\u6B64\u5916\uFF0C\u5982\u679C\u7ED3\u675F\u65E5\u671F\u662F\u6240\u5728\u6708\u4EFD\u7684\u6700\u540E\u4E00\u5929\uFF0C\u800C\u4E14\u8D77\u59CB\u65E5\u671F\u5728\u5176\u6240\u5728\u6708\u768430\u53F7\u4E4B\u524D\uFF0C\u5219\u5C06\u7ED3\u675F\u65E5\u671F\u66F4\u6539\u4E3A\u7ED3\u675F\u65E5\u671F\u4E4B\u540E\u90A3\u4E2A\u6708\u7684\u7B2C\u4E00\u5929\uFF0C\u5426\u5219\u5C06\u7ED3\u675F\u65E5\u671F\u66F4\u6539\u4E3A\u8BE5\u6708\u768430\u53F7\u3002\\n\\nTRUE - \u91C7\u7528\u6B27\u6D32\u65B9\u6CD5\u65F6\uFF0C\u4F1A\u5C06\u6240\u6709\u65E5\u671F\u572831\u53F7\u7684\u8D77\u59CB\u65E5\u671F\u6216\u7ED3\u675F\u65E5\u671F\u66F4\u6539\u4E3A\u5F53\u6708\u768430\u53F7\u3002\",\r\n },\r\n ],\r\n },\r\n DATE: {\r\n d: \"\u5C06\u63D0\u4F9B\u7684\u5E74\u3001\u6708\u3001\u65E5\u8F6C\u6362\u4E3A\u65E5\u671F\u3002\",\r\n a: \"\u5C06\u63D0\u4F9B\u7684\u5E74\u3001\u6708\u3001\u65E5\u8F6C\u6362\u4E3A\u65E5\u671F\u3002\",\r\n p: [\r\n {\r\n name: \"year\",\r\n detail:\r\n \"\u65E5\u671F\u7684\u5E74\u4EFD\u90E8\u5206\uFF0C\u5305\u542B\u4E00\u5230\u56DB\u4F4D\u6570\u5B57\u3002\\n\\n\u4ECB\u4E8E 0\uFF08\u96F6\uFF09\u5230 1899 \u4E4B\u95F4\uFF0C\u4F1A\u5C06\u8BE5\u503C\u4E0E 1900 \u76F8\u52A0\u6765\u8BA1\u7B97\u5E74\u4EFD\uFF1B\\n\\n\u4ECB\u4E8E 1900 \u5230 9999 \u4E4B\u95F4\uFF0C\u5C06\u4F7F\u7528\u8BE5\u6570\u503C\u4F5C\u4E3A\u5E74\u4EFD\uFF1B\\n\\n\u5C0F\u4E8E 0 \u6216\u5927\u4E8E\u7B49\u4E8E 10000\uFF0C\u8FD4\u56DE \u9519\u8BEF\u503C #NUM!\u3002\",\r\n },\r\n {\r\n name: \"month\",\r\n detail:\r\n \"\u65E5\u671F\u7684\u6708\u4EFD\u90E8\u5206\uFF0C\u4E00\u4E2A\u6B63\u6574\u6570\u6216\u8D1F\u6574\u6570\u3002\\n\\n\u5982\u679C month \u5927\u4E8E 12\uFF0C\u5219 month \u4F1A\u5C06\u8BE5\u6708\u4EFD\u6570\u4E0E\u6307\u5B9A\u5E74\u4E2D\u7684\u7B2C\u4E00\u4E2A\u6708\u76F8\u52A0\u3002\\n\\n\u5982\u679C month \u5C0F\u4E8E 1\uFF0Cmonth \u5219\u4ECE\u6307\u5B9A\u5E74\u4EFD\u7684\u4E00\u6708\u4EFD\u5F00\u59CB\u9012\u51CF\u8BE5\u6708\u4EFD\u6570\uFF0C\u7136\u540E\u518D\u52A0\u4E0A 1 \u4E2A\u6708\u3002\",\r\n },\r\n {\r\n name: \"day\",\r\n detail:\r\n \"\u65E5\u671F\u7684\u65E5\u90E8\u5206\uFF0C\u4E00\u4E2A\u6B63\u6574\u6570\u6216\u8D1F\u6574\u6570\u3002\\n\\n\u5982\u679C day \u5927\u4E8E\u6708\u4E2D\u6307\u5B9A\u7684\u5929\u6570\uFF0C\u5219 day \u4F1A\u5C06\u5929\u6570\u4E0E\u8BE5\u6708\u4E2D\u7684\u7B2C\u4E00\u5929\u76F8\u52A0\u3002\\n\\n\u5982\u679C day \u5C0F\u4E8E 1\uFF0C\u5219 day \u4ECE\u6307\u5B9A\u6708\u4EFD\u7684\u7B2C\u4E00\u5929\u5F00\u59CB\u9012\u51CF\u8BE5\u5929\u6570\uFF0C\u7136\u540E\u518D\u52A0\u4E0A 1 \u5929\u3002\",\r\n },\r\n ],\r\n },\r\n DATEVALUE: {\r\n d: \"\u5C06\u63D0\u4F9B\u7684\u65E5\u671F\u5B57\u7B26\u4E32\u8F6C\u6362\u4E3A\u65E5\u671F\u7684\u5E8F\u5217\u53F7\u3002\",\r\n a: \"\u5C06\u63D0\u4F9B\u7684\u65E5\u671F\u5B57\u7B26\u4E32\u8F6C\u6362\u4E3A\u65E5\u671F\u7684\u5E8F\u5217\u53F7\u3002\",\r\n p: [\r\n {\r\n name: \"date_text\",\r\n detail: \"\u8868\u793A\u65E5\u671F\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n DATEDIF: {\r\n d: \"\u8BA1\u7B97\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\u3001\u6708\u6570\u6216\u5E74\u6570\u3002\",\r\n a: \"\u8BA1\u7B97\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\u3001\u6708\u6570\u6216\u5E74\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"\u8D77\u59CB\u65E5\u671F\",\r\n detail: \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u5F00\u59CB\u65E5\u671F\u3002\u5FC5\u987B\u662F\u5BF9\u5305\u542BDATE\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DEDATE\u7C7B\u578B\u7684\u51FD\u6570\u6216\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"\u7ED3\u675F\u65E5\u671F\",\r\n detail: \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7ED3\u675F\u65E5\u671F\u3002\u5FC5\u987B\u662F\u5BF9\u5305\u542BDATE\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DEDATE\u7C7B\u578B\u7684\u51FD\u6570\u6216\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"\u5355\u4F4D\",\r\n detail:\r\n '\u65F6\u95F4\u5355\u4F4D\u7684\u7F29\u5199\u6587\u5B57\u3002\u4F8B\u5982 \"M\" \u4EE3\u8868\u6708\u3002\u6709\u6548\u503C\u5305\u62EC\uFF1A\"Y\"\u3001\"M\"\u3001\"D\"\u3001\"MD\"\u3001\"YM\" \u548C \"YD\"\u3002\\n\\n\"Y\"\uFF1A\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u4E4B\u95F4\u7684\u6574\u5E74\u6570\u3002\\n\\n\"M\"\uFF1A\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u4E4B\u95F4\u7684\u6574\u6708\u6570\u3002\\n\\n\"D\"\uFF1A\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\u3002\\n\\n\"MD\"\uFF1A\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\uFF08\u4E0D\u8BA1\u6574\u6708\u6570\uFF09\u3002\\n\\n\"YM\"\uFF1A\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u4E4B\u95F4\u7684\u6574\u6708\u6570\uFF08\u4E0D\u8BA1\u6574\u5E74\u6570\uFF09\u3002\\n\\n\"YD\"\uFF1A\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\uFF08\u5047\u8BBE\u8D77\u59CB\u65E5\u671F\u548C\u7ED3\u675F\u65E5\u671F\u7684\u95F4\u9694\u4E0D\u8D85\u8FC7\u4E00\u5E74\uFF09\u3002',\r\n },\r\n ],\r\n },\r\n WORKDAY: {\r\n d: \"\u6307\u5B9A\u5DE5\u4F5C\u65E5\u5929\u6570\uFF0C\u8BA1\u7B97\u7ED3\u675F\u65E5\u671F\u3002\",\r\n a: \"\u6307\u5B9A\u5DE5\u4F5C\u65E5\u5929\u6570\uFF0C\u8BA1\u7B97\u7ED3\u675F\u65E5\u671F\u3002\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"\u8BA1\u7B97\u7684\u5F00\u59CB\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"days\",\r\n detail:\r\n \"start_date \u4E4B\u524D\u6216\u4E4B\u540E\u4E0D\u542B\u5468\u672B\u53CA\u8282\u5047\u65E5\u7684\u5929\u6570\u3002\\n\\n\u4E3A\u6B63\u503C\u5C06\u751F\u6210\u672A\u6765\u65E5\u671F\uFF1B\\n\\n\u4E3A\u8D1F\u503C\u751F\u6210\u8FC7\u53BB\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail:\r\n \"[\u53EF\u9009] - \u4E00\u4E2A\u8303\u56F4\u6216\u6570\u7EC4\u5E38\u91CF\uFF0C\u5176\u4E2D\u5305\u542B\u4F5C\u4E3A\u8282\u5047\u65E5\u7684\u65E5\u671F\u5E8F\u53F7\u3002\\n\\n\u5728\u8282\u5047\u65E5\u6570\u7EC4\u4E2D\u63D0\u4F9B\u7684\u503C\u5FC5\u987B\u662F\u65E5\u671F\u5E8F\u53F7\u503C\uFF08\u4F8B\u5982\u7531N\u6240\u8FD4\u56DE\u7684\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982\u7531DATE\u3001DATEVALUE\u6216TO_DATE\u8FD4\u56DE\u7684\u503C\uFF09\u3002\u7531\u8303\u56F4\u6307\u5B9A\u7684\u503C\u5E94\u8BE5\u662F\u6807\u51C6\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n WORKDAY_INTL: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u7684\u82E5\u5E72\u4E2A\u5DE5\u4F5C\u65E5\u4E4B\u524D\u6216\u4E4B\u540E\u7684\u65E5\u671F\u7684\u5E8F\u5217\u53F7\uFF08\u4F7F\u7528\u81EA\u5B9A\u4E49\u5468\u672B\u53C2\u6570\uFF09\u3002 \",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u7684\u82E5\u5E72\u4E2A\u5DE5\u4F5C\u65E5\u4E4B\u524D\u6216\u4E4B\u540E\u7684\u65E5\u671F\u7684\u5E8F\u5217\u53F7\uFF08\u4F7F\u7528\u81EA\u5B9A\u4E49\u5468\u672B\u53C2\u6570\uFF09\u3002 \",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail: \"\u5F00\u59CB\u65E5\u671F\uFF08\u5C06\u88AB\u622A\u5C3E\u53D6\u6574\uFF09\u3002\",\r\n },\r\n {\r\n name: \"days\",\r\n detail:\r\n \"start_date \u4E4B\u524D\u6216\u4E4B\u540E\u7684\u5DE5\u4F5C\u65E5\u7684\u5929\u6570\u3002\\n\\n\u6B63\u503C\u8868\u793A\u672A\u6765\u65E5\u671F\uFF1B\\n\\n\u8D1F\u503C\u8868\u793A\u8FC7\u53BB\u65E5\u671F\uFF1B\\n\\n\u96F6\u503C\u8868\u793A\u5F00\u59CB\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"weekend\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u7528\u4E8E\u8868\u793A\u54EA\u4E9B\u5929\u4E3A\u5468\u672B\u7684\u6570\u5B57\u6216\u5B57\u7B26\u4E32\u3002\\n\u5B57\u7B26\u4E32\u65B9\u5F0F\uFF1A\u53EF\u4EE5\u4F7F\u7528\u75310\u548C1\u7EC4\u6210\u7684\u5B57\u7B26\u4E32\u6765\u6307\u5B9A\u5468\u672B\uFF0C\u4E32\u4E2D\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u5B57\u7B26\u4EE3\u8868\u5468\u4E00\uFF0C\u6700\u540E\u4E00\u4E2A\u5219\u4EE3\u8868\u5468\u65E5\u3002\u96F6\u8868\u793A\u8FD9\u4E00\u5929\u662F\u5DE5\u4F5C\u65E5\uFF0C1\u8868\u793A\u8FD9\u4E00\u5929\u4E3A\u5468\u672B\u3002\u4F8B\u5982\uFF0C\u201C0000011\u201D\u8868\u793A\u5C06\u5468\u516D\u548C\u5468\u65E5\u4F5C\u4E3A\u5468\u672B\u3002\\n\u6570\u5B57\u65B9\u5F0F\uFF1A\u8FD9\u79CD\u65B9\u5F0F\u4E0D\u4F7F\u7528\u4E0A\u8FF0\u5B57\u7B26\u4E32\u5F62\u5F0F\uFF0C\u800C\u662F\u4F7F\u7528\u4E00\u4E2A\u6570\u5B57\u30021 =\u5468\u516D/\u5468\u65E5\u4E3A\u5468\u672B\uFF0C2 =\u5468\u65E5/\u5468\u4E00\u4E3A\u5468\u672B\uFF0C\u4F9D\u6B64\u7C7B\u63A8\u52197 =\u5468\u4E94/\u5468\u516D\u300211 =\u5468\u65E5\u4E3A\u552F\u4E00\u5468\u672B\uFF0C12 =\u5468\u4E00\u4E3A\u552F\u4E00\u5468\u672B\uFF0C\u4F9D\u6B64\u7C7B\u63A8\u521917 =\u5468\u516D\u4E3A\u552F\u4E00\u5468\u672B\u3002\",\r\n },\r\n {\r\n name: \"holidays\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u8FD9\u662F\u4E00\u4E2A\u8303\u56F4\u6216\u6570\u7EC4\u5E38\u91CF\uFF0C\u5176\u4E2D\u5305\u542B\u4F5C\u4E3A\u8282\u5047\u65E5\u7684\u65E5\u671F\u3002\\n\u5728\u8282\u5047\u65E5\u6570\u7EC4\u5185\u63D0\u4F9B\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u5E8F\u6570\u503C\uFF08\u4F8B\u5982N\u7684\u8FD4\u56DE\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982DATE\u3001DATEVALUE\u6216TO_DATE\u7684\u8FD4\u56DE\u503C\uFF09\u3002\u7531\u8303\u56F4\u6307\u5B9A\u7684\u503C\u5E94\u8BE5\u662F\u6807\u51C6\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n YEAR: {\r\n d: \"\u8FD4\u56DE\u5BF9\u5E94\u4E8E\u67D0\u4E2A\u65E5\u671F\u7684\u5E74\u4EFD\u3002 Year \u4F5C\u4E3A 1900 - 9999 \u4E4B\u95F4\u7684\u6574\u6570\u8FD4\u56DE\u3002\",\r\n a: \"\u8FD4\u56DE\u5BF9\u5E94\u4E8E\u67D0\u4E2A\u65E5\u671F\u7684\u5E74\u4EFD\u3002 Year \u4F5C\u4E3A 1900 - 9999 \u4E4B\u95F4\u7684\u6574\u6570\u8FD4\u56DE\u3002\",\r\n p: [\r\n {\r\n name: \"serial_number\",\r\n detail:\r\n \"\u7528\u4E8E\u8BA1\u7B97\u5E74\u4EFD\u7684\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n YEARFRAC: {\r\n d: \"\u8FD4\u56DE start_date \u548C end_date \u4E4B\u95F4\u7684\u5929\u6570\u5360\u5168\u5E74\u5929\u6570\u7684\u767E\u5206\u6BD4\u3002\",\r\n a: \"\u8FD4\u56DE start_date \u548C end_date \u4E4B\u95F4\u7684\u5929\u6570\u5360\u5168\u5E74\u5929\u6570\u7684\u767E\u5206\u6BD4\u3002\",\r\n p: [\r\n {\r\n name: \"start_date\",\r\n detail:\r\n \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u5F00\u59CB\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"end_date\",\r\n detail:\r\n \"\u8BA1\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7ED3\u675F\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u8981\u4F7F\u7528\u7684\u65E5\u8BA1\u6570\u57FA\u51C6\u7C7B\u578B\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n TODAY: {\r\n d: \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u5F53\u524D\u65E5\u671F\u3002\",\r\n a: \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u5F53\u524D\u65E5\u671F\u3002\",\r\n p: [],\r\n },\r\n MONTH: {\r\n d: \"\u8FD4\u56DE\u65E5\u671F\uFF08\u4EE5\u5E8F\u5217\u6570\u8868\u793A\uFF09\u4E2D\u7684\u6708\u4EFD\u3002 \u6708\u4EFD\u662F\u4ECB\u4E8E 1\uFF08\u4E00\u6708\uFF09\u5230 12\uFF08\u5341\u4E8C\u6708\uFF09\u4E4B\u95F4\u7684\u6574\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u65E5\u671F\uFF08\u4EE5\u5E8F\u5217\u6570\u8868\u793A\uFF09\u4E2D\u7684\u6708\u4EFD\u3002 \u6708\u4EFD\u662F\u4ECB\u4E8E 1\uFF08\u4E00\u6708\uFF09\u5230 12\uFF08\u5341\u4E8C\u6708\uFF09\u4E4B\u95F4\u7684\u6574\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"serial_number\",\r\n detail:\r\n \"\u8981\u4ECE\u4E2D\u63D0\u53D6\u6708\u4EFD\u7684\u65E5\u671F\u3002\u5FC5\u987B\u662F\u4EE5\u4E0B\u4E00\u79CD\uFF1A\u5BF9\u5305\u542B\u65E5\u671F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u7C7B\u578B\u7684\u51FD\u6570\u6216\u8005\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n EFFECT: {\r\n d: \"\u6839\u636E\u540D\u4E49\u5229\u7387\u53CA\u6BCF\u5E74\u7684\u590D\u5229\u8BA1\u606F\u671F\u6570\u6765\u8BA1\u7B97\u5B9E\u9645\u5E74\u5229\u7387\u3002\",\r\n a: \"\u6839\u636E\u540D\u4E49\u5229\u7387\u53CA\u6BCF\u5E74\u7684\u590D\u5229\u8BA1\u606F\u671F\u6570\u6765\u8BA1\u7B97\u5B9E\u9645\u5E74\u5229\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"nominal_rate\",\r\n detail: \"\u6BCF\u5E74\u7684\u540D\u4E49\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"npery\",\r\n detail: \"\u6BCF\u5E74\u7684\u590D\u5229\u8BA1\u7B97\u671F\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n DOLLAR: {\r\n d: \"\u5C06\u6570\u5B57\u683C\u5F0F\u8BBE\u7F6E\u4E3A\u4E0E\u8BED\u8A00\u533A\u57DF\u76F8\u5BF9\u5E94\u7684\u8D27\u5E01\u683C\u5F0F\u3002\",\r\n a: \"\u5C06\u6570\u5B57\u683C\u5F0F\u8BBE\u7F6E\u4E3A\u4E0E\u8BED\u8A00\u533A\u57DF\u76F8\u5BF9\u5E94\u7684\u8D27\u5E01\u683C\u5F0F\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8981\u8BBE\u7F6E\u683C\u5F0F\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"decimals\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 2] - \u8981\u663E\u793A\u7684\u5C0F\u6570\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8FD9\u662F\u8D1F\u6570\uFF0C\u5219\u5C06\u6570\u5B57\u56DB\u820D\u4E94\u5165\u5230\u5C0F\u6570\u70B9\u5DE6\u4FA7\u3002\",\r\n },\r\n ],\r\n },\r\n DOLLARDE: {\r\n d: \"\u5C06\u4EE5\u6574\u6570\u90E8\u5206\u548C\u5206\u6570\u90E8\u5206\u8F6C\u6362\u4E3A\u4EE5\u5C0F\u6570\u90E8\u5206\u8868\u793A\u7684\u91D1\u989D\u6570\u5B57\",\r\n a: \"\u5C06\u4EE5\u6574\u6570\u90E8\u5206\u548C\u5206\u6570\u90E8\u5206\u8F6C\u6362\u4E3A\u4EE5\u5C0F\u6570\u90E8\u5206\u8868\u793A\u7684\u91D1\u989D\u6570\u5B57\",\r\n p: [\r\n {\r\n name: \"fractional_dollar\",\r\n detail: \"\u4EE5\u6574\u6570\u90E8\u4EFD\u548C\u5206\u6570\u90E8\u5206\u8868\u793A\u7684\u6570\u5B57\uFF0C\u7528\u5C0F\u6570\u70B9\u9694\u5F00\u3002\",\r\n },\r\n {\r\n name: \"fraction\",\r\n detail: \"\u7528\u4F5C\u5206\u6570\u4E2D\u7684\u5206\u6BCD\u7684\u6574\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n DOLLARFR: {\r\n d: \"\u5C06\u5C0F\u6570\u8F6C\u6362\u4E3A\u5206\u6570\u8868\u793A\u7684\u91D1\u989D\u6570\u5B57\u3002\",\r\n a: \"\u5C06\u5C0F\u6570\u8F6C\u6362\u4E3A\u5206\u6570\u8868\u793A\u7684\u91D1\u989D\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"decimal_dollar\",\r\n detail: \"\u5C0F\u6570\u3002\",\r\n },\r\n {\r\n name: \"fraction\",\r\n detail: \"\u7528\u4F5C\u5206\u6570\u4E2D\u7684\u5206\u6BCD\u7684\u6574\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n DB: {\r\n d: \"\u4F7F\u7528\u56FA\u5B9A\u4F59\u989D\u9012\u51CF\u6CD5\uFF0C\u8FD4\u56DE\u6307\u5B9A\u671F\u95F4\u5185\u67D0\u9879\u56FA\u5B9A\u8D44\u4EA7\u7684\u6298\u65E7\u503C\u3002\",\r\n a: \"\u4F7F\u7528\u56FA\u5B9A\u4F59\u989D\u9012\u51CF\u6CD5\uFF0C\u8FD4\u56DE\u6307\u5B9A\u671F\u95F4\u5185\u67D0\u9879\u56FA\u5B9A\u8D44\u4EA7\u7684\u6298\u65E7\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"\u8D44\u4EA7\u539F\u503C\u3002\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"\u6298\u65E7\u672B\u5C3E\u65F6\u7684\u503C\uFF08\u6709\u65F6\u4E5F\u79F0\u4E3A\u8D44\u4EA7\u6B8B\u503C\uFF09\u3002\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"\u8D44\u4EA7\u7684\u6298\u65E7\u671F\u6570\uFF08\u6709\u65F6\u4E5F\u79F0\u4F5C\u8D44\u4EA7\u7684\u4F7F\u7528\u5BFF\u547D\uFF09\u3002\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"\u5728\u4F7F\u7528\u671F\u9650\u5185\u8981\u8BA1\u7B97\u6298\u65E7\u7684\u6298\u65E7\u671F\u3002\",\r\n },\r\n {\r\n name: \"month\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A12] - \u6298\u65E7\u7B2C\u4E00\u5E74\u4E2D\u7684\u6708\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n DDB: {\r\n d: \"\u7528\u53CC\u500D\u4F59\u989D\u9012\u51CF\u6CD5\uFF0C\u8FD4\u56DE\u6307\u5B9A\u671F\u95F4\u5185\u67D0\u9879\u56FA\u5B9A\u8D44\u4EA7\u7684\u6298\u65E7\u503C\u3002\",\r\n a: \"\u7528\u53CC\u500D\u4F59\u989D\u9012\u51CF\u6CD5\uFF0C\u8FD4\u56DE\u6307\u5B9A\u671F\u95F4\u5185\u67D0\u9879\u56FA\u5B9A\u8D44\u4EA7\u7684\u6298\u65E7\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"\u8D44\u4EA7\u539F\u503C\u3002\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"\u6298\u65E7\u672B\u5C3E\u65F6\u7684\u503C\uFF08\u6709\u65F6\u4E5F\u79F0\u4E3A\u8D44\u4EA7\u6B8B\u503C\uFF09\u3002\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"\u8D44\u4EA7\u7684\u6298\u65E7\u671F\u6570\uFF08\u6709\u65F6\u4E5F\u79F0\u4F5C\u8D44\u4EA7\u7684\u4F7F\u7528\u5BFF\u547D\uFF09\u3002\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"\u5728\u4F7F\u7528\u671F\u9650\u5185\u8981\u8BA1\u7B97\u6298\u65E7\u7684\u6298\u65E7\u671F\u3002\",\r\n },\r\n {\r\n name: \"factor\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A2] - \u6298\u65E7\u7684\u9012\u51CF\u7CFB\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n RATE: {\r\n d: \"\u8FD4\u56DE\u5E74\u91D1\u6BCF\u671F\u7684\u5229\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u5E74\u91D1\u6BCF\u671F\u7684\u5229\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"nper\",\r\n detail: \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u603B\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pmt\",\r\n detail: \"\u6BCF\u671F\u7684\u4ED8\u6B3E\u91D1\u989D\uFF0C\u5728\u5E74\u91D1\u5468\u671F\u5185\u4E0D\u80FD\u66F4\u6539\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u73B0\u503C\u5373\u4E00\u7CFB\u5217\u672A\u6765\u4ED8\u6B3E\u5F53\u524D\u503C\u7684\u603B\u548C\u3002\",\r\n },\r\n {\r\n name: \"fv\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0] - \u672A\u6765\u503C\uFF0C\u6216\u5728\u6700\u540E\u4E00\u6B21\u4ED8\u6B3E\u540E\u5E0C\u671B\u5F97\u5230\u7684\u73B0\u91D1\u4F59\u989D\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n {\r\n name: \"guess\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0.1] - \u9884\u671F\u5229\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n CUMPRINC: {\r\n d: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u6295\u8D44\u5728\u591A\u4E2A\u4ED8\u6B3E\u671F\u5185\u7684\u7D2F\u8BA1\u672C\u91D1\u507F\u8FD8\u989D\u3002\",\r\n a: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u6295\u8D44\u5728\u591A\u4E2A\u4ED8\u6B3E\u671F\u5185\u7684\u7D2F\u8BA1\u672C\u91D1\u507F\u8FD8\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u603B\u4ED8\u6B3E\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u5E74\u91D1\u7684\u73B0\u503C\u3002\",\r\n },\r\n {\r\n name: \"start_period\",\r\n detail: \"\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u53F7\u3002\\n\\n\u9996\u671F\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E1\u3002\",\r\n },\r\n {\r\n name: \"end_period\",\r\n detail: \"\u7ED3\u675F\u7D2F\u8BA1\u8BA1\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u53F7\u3002\\n\\n\u672B\u671F\u5FC5\u987B\u5927\u4E8E\u9996\u671F\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"\u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n COUPNUM: {\r\n d: \"\u8FD4\u56DE\u5728\u7ED3\u7B97\u65E5\u548C\u5230\u671F\u65E5\u4E4B\u95F4\u7684\u4ED8\u606F\u6B21\u6570\uFF0C\u5411\u4E0A\u820D\u5165\u5230\u6700\u8FD1\u7684\u6574\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u5728\u7ED3\u7B97\u65E5\u548C\u5230\u671F\u65E5\u4E4B\u95F4\u7684\u4ED8\u606F\u6B21\u6570\uFF0C\u5411\u4E0A\u820D\u5165\u5230\u6700\u8FD1\u7684\u6574\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002\u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n SYD: {\r\n d: \"\u8FD4\u56DE\u5728\u6307\u5B9A\u671F\u95F4\u5185\u8D44\u4EA7\u6309\u5E74\u9650\u603B\u548C\u6298\u65E7\u6CD5\u8BA1\u7B97\u7684\u6298\u65E7\u3002\",\r\n a: \"\u8FD4\u56DE\u5728\u6307\u5B9A\u671F\u95F4\u5185\u8D44\u4EA7\u6309\u5E74\u9650\u603B\u548C\u6298\u65E7\u6CD5\u8BA1\u7B97\u7684\u6298\u65E7\u3002\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"\u8D44\u4EA7\u539F\u503C\u3002\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"\u6298\u65E7\u672B\u5C3E\u65F6\u7684\u503C\uFF08\u6709\u65F6\u4E5F\u79F0\u4E3A\u8D44\u4EA7\u6B8B\u503C\uFF09\u3002\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"\u8D44\u4EA7\u7684\u6298\u65E7\u671F\u6570\uFF08\u6709\u65F6\u4E5F\u79F0\u4F5C\u8D44\u4EA7\u7684\u4F7F\u7528\u5BFF\u547D\uFF09\u3002\",\r\n },\r\n {\r\n name: \"period\",\r\n detail: \"\u5728\u4F7F\u7528\u671F\u9650\u5185\u8981\u8BA1\u7B97\u6298\u65E7\u7684\u6298\u65E7\u671F\u3002\",\r\n },\r\n ],\r\n },\r\n TBILLEQ: {\r\n d: \"\u57FA\u4E8E\u8D34\u73B0\u7387\u8BA1\u7B97\u7F8E\u56FD\u653F\u5E9C\u77ED\u671F\u503A\u5238\u7684\u7B49\u6548\u5E74\u5316\u6536\u76CA\u7387\u3002\",\r\n a: \"\u57FA\u4E8E\u8D34\u73B0\u7387\u8BA1\u7B97\u7F8E\u56FD\u653F\u5E9C\u77ED\u671F\u503A\u5238\u7684\u7B49\u6548\u5E74\u5316\u6536\u76CA\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u503A\u5238\u7684\u7ED3\u7B97\u65E5\u671F\uFF0C\u6B64\u65E5\u671F\u4E3A\u503A\u5238\u53D1\u884C\u540E\u4EA4\u4ED8\u7ED9\u4E70\u5BB6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u503A\u5238\u7684\u5230\u671F\u6216\u7ED3\u675F\u65E5\u671F\uFF0C\u5C4A\u65F6\u53EF\u5C06\u5176\u4EE5\u9762\u503C\u6216\u7968\u9762\u4EF7\u503C\u8D4E\u56DE\u3002\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"\u503A\u5238\u8D2D\u4E70\u65F6\u7684\u8D34\u73B0\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n TBILLYIELD: {\r\n d: \"\u57FA\u4E8E\u4EF7\u683C\u8BA1\u7B97\u7F8E\u56FD\u653F\u5E9C\u77ED\u671F\u503A\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n a: \"\u57FA\u4E8E\u4EF7\u683C\u8BA1\u7B97\u7F8E\u56FD\u653F\u5E9C\u77ED\u671F\u503A\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u503A\u5238\u7684\u7ED3\u7B97\u65E5\u671F\uFF0C\u6B64\u65E5\u671F\u4E3A\u503A\u5238\u53D1\u884C\u540E\u4EA4\u4ED8\u7ED9\u4E70\u5BB6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u503A\u5238\u7684\u5230\u671F\u6216\u7ED3\u675F\u65E5\u671F\uFF0C\u5C4A\u65F6\u53EF\u5C06\u5176\u4EE5\u9762\u503C\u6216\u7968\u9762\u4EF7\u503C\u8D4E\u56DE\u3002\",\r\n },\r\n {\r\n name: \"pr\",\r\n detail: \"\u503A\u5238\u7684\u8D2D\u4E70\u4EF7\u683C\u3002\",\r\n },\r\n ],\r\n },\r\n TBILLPRICE: {\r\n d: \"\u57FA\u4E8E\u8D34\u73B0\u7387\u8BA1\u7B97\u7F8E\u56FD\u653F\u5E9C\u77ED\u671F\u503A\u5238\u7684\u4EF7\u683C\u3002\",\r\n a: \"\u57FA\u4E8E\u8D34\u73B0\u7387\u8BA1\u7B97\u7F8E\u56FD\u653F\u5E9C\u77ED\u671F\u503A\u5238\u7684\u4EF7\u683C\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u503A\u5238\u7684\u7ED3\u7B97\u65E5\u671F\uFF0C\u6B64\u65E5\u671F\u4E3A\u503A\u5238\u53D1\u884C\u540E\u4EA4\u4ED8\u7ED9\u4E70\u5BB6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u503A\u5238\u7684\u5230\u671F\u6216\u7ED3\u675F\u65E5\u671F\uFF0C\u5C4A\u65F6\u53EF\u5C06\u5176\u4EE5\u9762\u503C\u6216\u7968\u9762\u4EF7\u503C\u8D4E\u56DE\u3002\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"\u503A\u5238\u8D2D\u4E70\u65F6\u7684\u8D34\u73B0\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n PV: {\r\n d: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u5E74\u91D1\u6295\u8D44\u7684\u73B0\u503C\u3002\",\r\n a: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u5E74\u91D1\u6295\u8D44\u7684\u73B0\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5404\u671F\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u603B\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pmt\",\r\n detail: \"\u6BCF\u671F\u7684\u4ED8\u6B3E\u91D1\u989D\uFF0C\u5728\u5E74\u91D1\u5468\u671F\u5185\u4E0D\u80FD\u66F4\u6539\u3002\",\r\n },\r\n {\r\n name: \"fv\",\r\n detail: \"[\u53EF\u9009] - \u672A\u6765\u503C\uFF0C\u6216\u5728\u6700\u540E\u4E00\u6B21\u4ED8\u6B3E\u540E\u5E0C\u671B\u5F97\u5230\u7684\u73B0\u91D1\u4F59\u989D\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n ACCRINT: {\r\n d: \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u8BC1\u5238\u7684\u5E94\u8BA1\u5229\u606F\u3002\",\r\n a: \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u8BC1\u5238\u7684\u5E94\u8BA1\u5229\u606F\u3002\",\r\n p: [\r\n {\r\n name: \"issue\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u53D1\u884C\u65E5\u3002\",\r\n },\r\n {\r\n name: \"first_interest\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u9996\u6B21\u8BA1\u606F\u65E5\u3002\",\r\n },\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"par\",\r\n detail: \"\u8BC1\u5238\u7684\u7968\u9762\u503C\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5\u201D - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n {\r\n name: \"calc_method\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3ATRUE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u6307\u5B9A\u5F53\u7ED3\u7B97\u65E5\u671F\u665A\u4E8E\u9996\u6B21\u8BA1\u606F\u65E5\u671F\u65F6\u7528\u4E8E\u8BA1\u7B97\u603B\u5E94\u8BA1\u5229\u606F\u7684\u65B9\u6CD5\u3002\\n\\n\u5982\u679C\u503C\u4E3A TRUE\uFF0C\u5219\u8FD4\u56DE\u4ECE\u53D1\u884C\u65E5\u5230\u7ED3\u7B97\u65E5\u7684\u603B\u5E94\u8BA1\u5229\u606F\u3002\\n\\n\u5982\u679C\u503C\u4E3A FALSE\uFF0C\u5219\u8FD4\u56DE\u4ECE\u9996\u6B21\u8BA1\u606F\u65E5\u5230\u7ED3\u7B97\u65E5\u7684\u5E94\u8BA1\u5229\u606F\u3002\",\r\n },\r\n ],\r\n },\r\n ACCRINTM: {\r\n d: \"\u8FD4\u56DE\u5728\u5230\u671F\u65E5\u652F\u4ED8\u5229\u606F\u7684\u6709\u4EF7\u8BC1\u5238\u7684\u5E94\u8BA1\u5229\u606F\u3002\",\r\n a: \"\u8FD4\u56DE\u5728\u5230\u671F\u65E5\u652F\u4ED8\u5229\u606F\u7684\u6709\u4EF7\u8BC1\u5238\u7684\u5E94\u8BA1\u5229\u606F\u3002\",\r\n p: [\r\n {\r\n name: \"issue\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u53D1\u884C\u65E5\u3002\",\r\n },\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"par\",\r\n detail: \"\u8BC1\u5238\u7684\u7968\u9762\u503C\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n COUPDAYBS: {\r\n d: \"\u8FD4\u56DE\u4ECE\u4ED8\u606F\u671F\u5F00\u59CB\u5230\u7ED3\u7B97\u65E5\u7684\u5929\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4ECE\u4ED8\u606F\u671F\u5F00\u59CB\u5230\u7ED3\u7B97\u65E5\u7684\u5929\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n COUPDAYS: {\r\n d: \"\u8FD4\u56DE\u7ED3\u7B97\u65E5\u6240\u5728\u7684\u4ED8\u606F\u671F\u7684\u5929\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED3\u7B97\u65E5\u6240\u5728\u7684\u4ED8\u606F\u671F\u7684\u5929\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n COUPDAYSNC: {\r\n d: \"\u8FD4\u56DE\u4ECE\u7ED3\u7B97\u65E5\u5230\u4E0B\u4E00\u7968\u606F\u652F\u4ED8\u65E5\u4E4B\u95F4\u7684\u5929\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4ECE\u7ED3\u7B97\u65E5\u5230\u4E0B\u4E00\u7968\u606F\u652F\u4ED8\u65E5\u4E4B\u95F4\u7684\u5929\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n COUPNCD: {\r\n d: \"\u8BA1\u7B97\u7ED3\u7B97\u65E5\u4E4B\u540E\u7684\u4E0B\u4E00\u7968\u606F\u6216\u5229\u606F\u6D3E\u53D1\u65E5\u671F\u3002\",\r\n a: \"\u8BA1\u7B97\u7ED3\u7B97\u65E5\u4E4B\u540E\u7684\u4E0B\u4E00\u7968\u606F\u6216\u5229\u606F\u6D3E\u53D1\u65E5\u671F\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n COUPPCD: {\r\n d: \"\u8BA1\u7B97\u7ED3\u7B97\u65E5\u4E4B\u524D\u7684\u6700\u540E\u4E00\u4E2A\u7968\u606F\u6216\u5229\u606F\u652F\u4ED8\u65E5\u3002\",\r\n a: \"\u8BA1\u7B97\u7ED3\u7B97\u65E5\u4E4B\u524D\u7684\u6700\u540E\u4E00\u4E2A\u7968\u606F\u6216\u5229\u606F\u652F\u4ED8\u65E5\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n FV: {\r\n d: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u5E74\u91D1\u6295\u8D44\u7684\u672A\u6765\u4EF7\u503C\u3002\",\r\n a: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u5E74\u91D1\u6295\u8D44\u7684\u672A\u6765\u4EF7\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5404\u671F\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u603B\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pmt\",\r\n detail: \"\u5404\u671F\u6240\u5E94\u652F\u4ED8\u7684\u91D1\u989D\uFF0C\u5728\u6574\u4E2A\u5E74\u91D1\u671F\u95F4\u4FDD\u6301\u4E0D\u53D8\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0 ] - \u73B0\u503C\uFF0C\u6216\u4E00\u7CFB\u5217\u672A\u6765\u4ED8\u6B3E\u7684\u5F53\u524D\u503C\u7684\u7D2F\u79EF\u548C\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0 ] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n FVSCHEDULE: {\r\n d: \"\u8FD4\u56DE\u5E94\u7528\u4E00\u7CFB\u5217\u590D\u5229\u7387\u8BA1\u7B97\u7684\u521D\u59CB\u672C\u91D1\u7684\u672A\u6765\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u5E94\u7528\u4E00\u7CFB\u5217\u590D\u5229\u7387\u8BA1\u7B97\u7684\u521D\u59CB\u672C\u91D1\u7684\u672A\u6765\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"principal\",\r\n detail: \"\u73B0\u503C\u3002\",\r\n },\r\n {\r\n name: \"schedule\",\r\n detail:\r\n \"\u7528\u4E8E\u8BA1\u7B97\u672C\u91D1\u590D\u5229\u7684\u4E00\u7EC4\u5229\u7387\u3002\\n\\n\u5229\u7387\u8868\u5FC5\u987B\u662F\u8303\u56F4\u6216\u6570\u7EC4\uFF0C\u5176\u4E2D\u5305\u542B\u8981\u7528\u4E8E\u8BA1\u7B97\u590D\u5229\u7684\u4E00\u7EC4\u5229\u7387\u3002\u8FD9\u4E9B\u5229\u7387\u503C\u5E94\u8BE5\u4EE5\u5341\u8FDB\u5236\u5C0F\u6570\u5F62\u5F0F\u8868\u793A\uFF0C\u6216\u8005\u4F7F\u7528UNARY_PERCENT\u4EE5\u767E\u5206\u6BD4\u5F62\u5F0F\u8868\u793A\uFF0C\u5373\u8868\u793A\u4E3A0.09\u6216UNARY_PERCENT(9)\uFF0C\u800C\u4E0D\u8981\u8868\u793A\u4E3A9\u3002\",\r\n },\r\n ],\r\n },\r\n YIELD: {\r\n d: \"\u8FD4\u56DE\u5B9A\u671F\u652F\u4ED8\u5229\u606F\u7684\u503A\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u5B9A\u671F\u652F\u4ED8\u5229\u606F\u7684\u503A\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"pr\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u6E05\u507F\u4EF7\u503C\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n YIELDDISC: {\r\n d: \"\u57FA\u4E8E\u4EF7\u683C\u8BA1\u7B97\u6298\u4EF7\u53D1\u884C\u7684\uFF08\u4E0D\u5E26\u606F\uFF09\u503A\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n a: \"\u57FA\u4E8E\u4EF7\u683C\u8BA1\u7B97\u6298\u4EF7\u53D1\u884C\u7684\uFF08\u4E0D\u5E26\u606F\uFF09\u503A\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"pr\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u6E05\u507F\u4EF7\u503C\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n NOMINAL: {\r\n d: \"\u57FA\u4E8E\u7ED9\u5B9A\u7684\u5B9E\u9645\u5229\u7387\u548C\u5E74\u590D\u5229\u671F\u6570\uFF0C\u8FD4\u56DE\u540D\u4E49\u5E74\u5229\u7387\u3002\",\r\n a: \"\u57FA\u4E8E\u7ED9\u5B9A\u7684\u5B9E\u9645\u5229\u7387\u548C\u5E74\u590D\u5229\u671F\u6570\uFF0C\u8FD4\u56DE\u540D\u4E49\u5E74\u5229\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"effect_rate\",\r\n detail: \"\u6BCF\u5E74\u7684\u5B9E\u9645\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"npery\",\r\n detail: \"\u6BCF\u5E74\u7684\u590D\u5229\u671F\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n XIRR: {\r\n d: \"\u8FD4\u56DE\u4E00\u7EC4\u4E0D\u4E00\u5B9A\u5B9A\u671F\u53D1\u751F\u7684\u73B0\u91D1\u6D41\u7684\u5185\u90E8\u6536\u76CA\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u7EC4\u4E0D\u4E00\u5B9A\u5B9A\u671F\u53D1\u751F\u7684\u73B0\u91D1\u6D41\u7684\u5185\u90E8\u6536\u76CA\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"values\",\r\n detail:\r\n \"\u5176\u4E2D\u542B\u6709\u6295\u8D44\u76F8\u5173\u6536\u76CA\u6216\u652F\u51FA\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\\n\\n\u73B0\u91D1\u6D41\u6570\u989D\u4E2D\u5FC5\u987B\u81F3\u5C11\u5305\u542B\u4E00\u9879\u8D1F\u7684\u548C\u4E00\u9879\u6B63\u7684\u73B0\u91D1\u6D41\u91D1\u989D\u624D\u80FD\u8BA1\u7B97\u56DE\u62A5\u7387\u3002\",\r\n },\r\n {\r\n name: \"dates\",\r\n detail: \"\u4E0E\u73B0\u91D1\u6D41\u6570\u989D\u53C2\u6570\u4E2D\u7684\u73B0\u91D1\u6D41\u5BF9\u5E94\u7684\u65E5\u671F\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"guess\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0.1] - \u5BF9\u5185\u90E8\u56DE\u62A5\u7387\u7684\u4F30\u7B97\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n MIRR: {\r\n d: \"\u8FD4\u56DE\u4E00\u7CFB\u5217\u5B9A\u671F\u73B0\u91D1\u6D41\u7684\u4FEE\u6539\u540E\u5185\u90E8\u6536\u76CA\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u7CFB\u5217\u5B9A\u671F\u73B0\u91D1\u6D41\u7684\u4FEE\u6539\u540E\u5185\u90E8\u6536\u76CA\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"values\",\r\n detail:\r\n \"\u5176\u4E2D\u542B\u6709\u6295\u8D44\u76F8\u5173\u6536\u76CA\u6216\u652F\u51FA\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\\n\\n\u73B0\u91D1\u6D41\u6570\u989D\u4E2D\u5FC5\u987B\u81F3\u5C11\u5305\u542B\u4E00\u9879\u8D1F\u7684\u548C\u4E00\u9879\u6B63\u7684\u73B0\u91D1\u6D41\u91D1\u989D\u624D\u80FD\u8BA1\u7B97\u56DE\u62A5\u7387\u3002\",\r\n },\r\n {\r\n name: \"finance_rate\",\r\n detail: \"\u73B0\u91D1\u6D41\u4E2D\u4F7F\u7528\u7684\u8D44\u91D1\u652F\u4ED8\u7684\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"reinvest_rate\",\r\n detail: \"\u5C06\u73B0\u91D1\u6D41\u518D\u6295\u8D44\u7684\u6536\u76CA\u7387\u3002\",\r\n },\r\n ],\r\n },\r\n IRR: {\r\n d: \"\u8FD4\u56DE\u7531\u503C\u4E2D\u7684\u6570\u5B57\u8868\u793A\u7684\u4E00\u7CFB\u5217\u73B0\u91D1\u6D41\u7684\u5185\u90E8\u6536\u76CA\u7387\u3002 \",\r\n a: \"\u8FD4\u56DE\u7531\u503C\u4E2D\u7684\u6570\u5B57\u8868\u793A\u7684\u4E00\u7CFB\u5217\u73B0\u91D1\u6D41\u7684\u5185\u90E8\u6536\u76CA\u7387\u3002 \",\r\n p: [\r\n {\r\n name: \"values\",\r\n detail:\r\n \"\u5176\u4E2D\u542B\u6709\u6295\u8D44\u76F8\u5173\u6536\u76CA\u6216\u652F\u51FA\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\\n\\n\u73B0\u91D1\u6D41\u6570\u989D\u4E2D\u5FC5\u987B\u81F3\u5C11\u5305\u542B\u4E00\u9879\u8D1F\u7684\u548C\u4E00\u9879\u6B63\u7684\u73B0\u91D1\u6D41\u91D1\u989D\u624D\u80FD\u8BA1\u7B97\u56DE\u62A5\u7387\u3002\",\r\n },\r\n {\r\n name: \"guess\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A 0.1] - \u5185\u90E8\u6536\u76CA\u7387\u7684\u4F30\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n NPV: {\r\n d: \"\u4F7F\u7528\u8D34\u73B0\u7387\u548C\u4E00\u7CFB\u5217\u672A\u6765\u652F\u51FA\uFF08\u8D1F\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u6765\u8BA1\u7B97\u4E00\u9879\u6295\u8D44\u7684\u51C0\u73B0\u503C\u3002\",\r\n a: \"\u4F7F\u7528\u8D34\u73B0\u7387\u548C\u4E00\u7CFB\u5217\u672A\u6765\u652F\u51FA\uFF08\u8D1F\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u6765\u8BA1\u7B97\u4E00\u9879\u6295\u8D44\u7684\u51C0\u73B0\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u67D0\u4E00\u671F\u95F4\u7684\u8D34\u73B0\u7387\u3002\",\r\n },\r\n {\r\n name: \"value1\",\r\n detail: \"\u7B2C\u4E00\u7B14\u652F\u51FA\uFF08\u8D1F\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u3002\",\r\n },\r\n {\r\n name: \"value2, ...\",\r\n detail: \"[\u53EF\u9009] - \u5176\u4ED6\u652F\u51FA\uFF08\u8D1F\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n XNPV: {\r\n d: \"\u8FD4\u56DE\u4E00\u7EC4\u73B0\u91D1\u6D41\u7684\u51C0\u73B0\u503C\uFF0C\u8FD9\u4E9B\u73B0\u91D1\u6D41\u4E0D\u4E00\u5B9A\u5B9A\u671F\u53D1\u751F\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u7EC4\u73B0\u91D1\u6D41\u7684\u51C0\u73B0\u503C\uFF0C\u8FD9\u4E9B\u73B0\u91D1\u6D41\u4E0D\u4E00\u5B9A\u5B9A\u671F\u53D1\u751F\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5E94\u7528\u4E8E\u73B0\u91D1\u6D41\u7684\u8D34\u73B0\u7387\u3002\",\r\n },\r\n {\r\n name: \"values\",\r\n detail: \"\u4E0E dates \u4E2D\u7684\u652F\u4ED8\u65F6\u95F4\u76F8\u5BF9\u5E94\u7684\u4E00\u7CFB\u5217\u73B0\u91D1\u6D41\u3002\",\r\n },\r\n {\r\n name: \"dates\",\r\n detail: \"\u4E0E\u73B0\u91D1\u6D41\u652F\u4ED8\u76F8\u5BF9\u5E94\u7684\u652F\u4ED8\u65E5\u671F\u8868\u3002\",\r\n },\r\n ],\r\n },\r\n CUMIPMT: {\r\n d: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u6295\u8D44\u5728\u4E00\u7CFB\u5217\u4ED8\u6B3E\u671F\u5185\u7684\u7D2F\u8BA1\u5229\u606F\u3002\",\r\n a: \"\u57FA\u4E8E\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\uFF0C\u8BA1\u7B97\u6295\u8D44\u5728\u4E00\u7CFB\u5217\u4ED8\u6B3E\u671F\u5185\u7684\u7D2F\u8BA1\u5229\u606F\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5229\u606F\u7387\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u603B\u4ED8\u6B3E\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u73B0\u503C\u3002\",\r\n },\r\n {\r\n name: \"start_period\",\r\n detail: \"\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u53F7\u3002\\n\\n\u9996\u671F\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E1\u3002\",\r\n },\r\n {\r\n name: \"end_period\",\r\n detail: \"\u7ED3\u675F\u7D2F\u8BA1\u8BA1\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u53F7\u3002\\n\\n\u672B\u671F\u5FC5\u987B\u5927\u4E8E\u9996\u671F\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"\u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n PMT: {\r\n d: \"\u7528\u4E8E\u6839\u636E\u56FA\u5B9A\u4ED8\u6B3E\u989D\u548C\u56FA\u5B9A\u5229\u7387\u8BA1\u7B97\u8D37\u6B3E\u7684\u4ED8\u6B3E\u989D\u3002\",\r\n a: \"\u7528\u4E8E\u6839\u636E\u56FA\u5B9A\u4ED8\u6B3E\u989D\u548C\u56FA\u5B9A\u5229\u7387\u8BA1\u7B97\u8D37\u6B3E\u7684\u4ED8\u6B3E\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u8D37\u6B3E\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u8BE5\u9879\u8D37\u6B3E\u7684\u4ED8\u6B3E\u603B\u6570\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u73B0\u503C\uFF0C\u6216\u4E00\u7CFB\u5217\u672A\u6765\u4ED8\u6B3E\u989D\u73B0\u5728\u6240\u503C\u7684\u603B\u989D\uFF0C\u4E5F\u53EB\u672C\u91D1\u3002\",\r\n },\r\n {\r\n name: \"fv\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0] - \u672A\u6765\u503C\uFF0C\u6216\u5728\u6700\u540E\u4E00\u6B21\u4ED8\u6B3E\u540E\u5E0C\u671B\u5F97\u5230\u7684\u73B0\u91D1\u4F59\u989D\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n IPMT: {\r\n d: \"\u57FA\u4E8E\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u65B9\u5F0F\uFF0C\u8FD4\u56DE\u7ED9\u5B9A\u671F\u6570\u5185\u5BF9\u6295\u8D44\u7684\u5229\u606F\u507F\u8FD8\u989D\u3002\",\r\n a: \"\u57FA\u4E8E\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u65B9\u5F0F\uFF0C\u8FD4\u56DE\u7ED9\u5B9A\u671F\u6570\u5185\u5BF9\u6295\u8D44\u7684\u5229\u606F\u507F\u8FD8\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5404\u671F\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"per\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u5176\u5229\u606F\u6570\u989D\u7684\u671F\u6570\uFF0C\u5FC5\u987B\u5728 1 \u5230 nper \u4E4B\u95F4\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u603B\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u73B0\u503C\uFF0C\u6216\u4E00\u7CFB\u5217\u672A\u6765\u4ED8\u6B3E\u7684\u5F53\u524D\u503C\u7684\u7D2F\u79EF\u548C\u3002\",\r\n },\r\n {\r\n name: \"fv\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0] - \u672A\u6765\u503C\uFF0C\u6216\u5728\u6700\u540E\u4E00\u6B21\u4ED8\u6B3E\u540E\u5E0C\u671B\u5F97\u5230\u7684\u73B0\u91D1\u4F59\u989D\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n PPMT: {\r\n d: \"\u8FD4\u56DE\u6839\u636E\u5B9A\u671F\u56FA\u5B9A\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\u800C\u5B9A\u7684\u6295\u8D44\u5728\u5DF2\u77E5\u671F\u95F4\u5185\u7684\u672C\u91D1\u507F\u4ED8\u989D\u3002\",\r\n a: \"\u8FD4\u56DE\u6839\u636E\u5B9A\u671F\u56FA\u5B9A\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\u800C\u5B9A\u7684\u6295\u8D44\u5728\u5DF2\u77E5\u671F\u95F4\u5185\u7684\u672C\u91D1\u507F\u4ED8\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5404\u671F\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"per\",\r\n detail: \"\u6307\u5B9A\u671F\u6570\uFF0C\u8BE5\u503C\u5FC5\u987B\u5728 1 \u5230 nper \u8303\u56F4\u5185\u3002\",\r\n },\r\n {\r\n name: \"nper\",\r\n detail: \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u603B\u671F\u6570\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u73B0\u503C\u5373\u4E00\u7CFB\u5217\u672A\u6765\u4ED8\u6B3E\u5F53\u524D\u503C\u7684\u603B\u548C\u3002\",\r\n },\r\n {\r\n name: \"fv\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0] - \u672A\u6765\u503C\uFF0C\u6216\u5728\u6700\u540E\u4E00\u6B21\u4ED8\u6B3E\u540E\u5E0C\u671B\u5F97\u5230\u7684\u73B0\u91D1\u4F59\u989D\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n INTRATE: {\r\n d: \"\u8FD4\u56DE\u5B8C\u5168\u6295\u8D44\u578B\u8BC1\u5238\u7684\u5229\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u5B8C\u5168\u6295\u8D44\u578B\u8BC1\u5238\u7684\u5229\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"investment\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u6295\u8D44\u989D\u3002\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u5230\u671F\u65F6\u7684\u5151\u6362\u503C\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n PRICE: {\r\n d: \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u7684\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n a: \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u7684\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"yld\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u6E05\u507F\u4EF7\u503C\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n PRICEDISC: {\r\n d: \"\u8FD4\u56DE\u6298\u4EF7\u53D1\u884C\u7684\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n a: \"\u8FD4\u56DE\u6298\u4EF7\u53D1\u884C\u7684\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u8D34\u73B0\u7387\u3002\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u6E05\u507F\u4EF7\u503C\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n PRICEMAT: {\r\n d: \"\u8FD4\u56DE\u5230\u671F\u4ED8\u606F\u7684\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n a: \"\u8FD4\u56DE\u5230\u671F\u4ED8\u606F\u7684\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"issue\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u53D1\u884C\u65E5\u3002\",\r\n },\r\n {\r\n name: \"rate\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u5728\u53D1\u884C\u65E5\u7684\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"yld\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n RECEIVED: {\r\n d: \"\u8FD4\u56DE\u4E00\u6B21\u6027\u4ED8\u606F\u7684\u6709\u4EF7\u8BC1\u5238\u5230\u671F\u6536\u56DE\u7684\u91D1\u989D\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u6B21\u6027\u4ED8\u606F\u7684\u6709\u4EF7\u8BC1\u5238\u5230\u671F\u6536\u56DE\u7684\u91D1\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"investment\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u6295\u8D44\u989D\u3002\",\r\n },\r\n {\r\n name: \"discount\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u8D34\u73B0\u7387\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n DISC: {\r\n d: \"\u8FD4\u56DE\u6709\u4EF7\u8BC1\u5238\u7684\u8D34\u73B0\u7387\u3002\",\r\n a: \"\u8FD4\u56DE\u6709\u4EF7\u8BC1\u5238\u7684\u8D34\u73B0\u7387\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"pr\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u4EF7\u683C\uFF08\u6309\u9762\u503C\u4E3A \uFFE5100 \u8BA1\u7B97\uFF09\u3002\",\r\n },\r\n {\r\n name: \"redemption\",\r\n detail: \"\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684\u6E05\u507F\u4EF7\u503C\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n NPER: {\r\n d: \"\u57FA\u4E8E\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u65B9\u5F0F\uFF0C\u8FD4\u56DE\u67D0\u9879\u6295\u8D44\u7684\u603B\u671F\u6570\u3002\",\r\n a: \"\u57FA\u4E8E\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u989D\u5206\u671F\u4ED8\u6B3E\u65B9\u5F0F\uFF0C\u8FD4\u56DE\u67D0\u9879\u6295\u8D44\u7684\u603B\u671F\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"rate\",\r\n detail: \"\u5404\u671F\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"pmt\",\r\n detail: \"\u5404\u671F\u6240\u5E94\u652F\u4ED8\u7684\u91D1\u989D\uFF0C\u5728\u6574\u4E2A\u5E74\u91D1\u671F\u95F4\u4FDD\u6301\u4E0D\u53D8\u3002\",\r\n },\r\n {\r\n name: \"pv\",\r\n detail: \"\u73B0\u503C\uFF0C\u6216\u4E00\u7CFB\u5217\u672A\u6765\u4ED8\u6B3E\u7684\u5F53\u524D\u503C\u7684\u7D2F\u79EF\u548C\u3002\",\r\n },\r\n {\r\n name: \"fv\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0] - \u672A\u6765\u503C\uFF0C\u6216\u5728\u6700\u540E\u4E00\u6B21\u4ED8\u6B3E\u540E\u5E0C\u671B\u5F97\u5230\u7684\u73B0\u91D1\u4F59\u989D\u3002\",\r\n },\r\n {\r\n name: \"type\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u65F6\u95F4\u662F\u5728\u671F\u521D\u8FD8\u662F\u671F\u672B\u3002\\n\\n0 \u8868\u793A\u671F\u672B\uFF1B\\n\\n1 \u8868\u793A\u671F\u521D\u3002\",\r\n },\r\n ],\r\n },\r\n SLN: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u671F\u95F4\u5185\u7684\u8D44\u4EA7\u7684\u76F4\u7EBF\u6298\u65E7\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u671F\u95F4\u5185\u7684\u8D44\u4EA7\u7684\u76F4\u7EBF\u6298\u65E7\u3002\",\r\n p: [\r\n {\r\n name: \"cost\",\r\n detail: \"\u8D44\u4EA7\u539F\u503C\u3002\",\r\n },\r\n {\r\n name: \"salvage\",\r\n detail: \"\u6298\u65E7\u672B\u5C3E\u65F6\u7684\u503C\uFF08\u6709\u65F6\u4E5F\u79F0\u4E3A\u8D44\u4EA7\u6B8B\u503C\uFF09\u3002\",\r\n },\r\n {\r\n name: \"life\",\r\n detail: \"\u8D44\u4EA7\u7684\u6298\u65E7\u671F\u6570\uFF08\u6709\u65F6\u4E5F\u79F0\u4F5C\u8D44\u4EA7\u7684\u4F7F\u7528\u5BFF\u547D\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n DURATION: {\r\n d: \"\u8FD4\u56DE\u5047\u8BBE\u9762\u503C \uFFE5100 \u7684\u5B9A\u671F\u4ED8\u606F\u6709\u4EF7\u8BC1\u5238\u7684\u4FEE\u6B63\u671F\u9650\u3002\",\r\n a: \"\u8FD4\u56DE\u5047\u8BBE\u9762\u503C \uFFE5100 \u7684\u5B9A\u671F\u4ED8\u606F\u6709\u4EF7\u8BC1\u5238\u7684\u4FEE\u6B63\u671F\u9650\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"coupon\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"yld\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n MDURATION: {\r\n d: \"\u8FD4\u56DE\u5047\u8BBE\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684 Macauley \u4FEE\u6B63\u671F\u9650\u3002\",\r\n a: \"\u8FD4\u56DE\u5047\u8BBE\u9762\u503C \uFFE5100 \u7684\u6709\u4EF7\u8BC1\u5238\u7684 Macauley \u4FEE\u6B63\u671F\u9650\u3002\",\r\n p: [\r\n {\r\n name: \"settlement\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u7ED3\u7B97\u65E5\u3002 \u6709\u4EF7\u8BC1\u5238\u7ED3\u7B97\u65E5\u662F\u5728\u53D1\u884C\u65E5\u4E4B\u540E\uFF0C\u6709\u4EF7\u8BC1\u5238\u5356\u7ED9\u8D2D\u4E70\u8005\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"maturity\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5230\u671F\u65E5\u3002 \u5230\u671F\u65E5\u662F\u6709\u4EF7\u8BC1\u5238\u6709\u6548\u671F\u622A\u6B62\u65F6\u7684\u65E5\u671F\u3002\",\r\n },\r\n {\r\n name: \"coupon\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\",\r\n },\r\n {\r\n name: \"yld\",\r\n detail: \"\u6709\u4EF7\u8BC1\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n },\r\n {\r\n name: \"frequency\",\r\n detail:\r\n \"\u5E74\u4ED8\u606F\u6B21\u6570\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8\uFF0Cfrequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8\uFF0Cfrequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8\uFF0Cfrequency = 4\u3002\",\r\n },\r\n {\r\n name: \"basis\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A0] - \u6307\u793A\u8981\u4F7F\u7528\u54EA\u79CD\u5929\u6570\u8BA1\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\u201C\u7F8E\u56FD(NASD) 30/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u56FD\u5168\u56FD\u8BC1\u5238\u4EA4\u6613\u5546\u534F\u4F1A\u6807\u51C6\uFF0C\u5047\u8BBE\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\uFF0C\u5E76\u5BF9\u6240\u8F93\u5165\u7684\u6708\u672B\u65E5\u671F\u8FDB\u884C\u5177\u4F53\u8C03\u6574\u3002\\n\\n1\u8868\u793A\u201C\u5B9E\u9645/\u5B9E\u9645\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8BA1\u7B97\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u4E8E\u7F8E\u56FD\u957F\u671F\u503A\u5238\uFF0C\u4E5F\u662F\u5728\u975E\u8D22\u7ECF\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\u201C\u5B9E\u9645/360\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A360\u5929\u3002\\n\\n3\u8868\u793A\u201C\u5B9E\u9645/365\u201D\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u4E8E\u6307\u5B9A\u65E5\u671F\u4E4B\u95F4\u7684\u5B9E\u9645\u5929\u6570\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u5047\u5B9A\u6BCF\u5E74\u4E3A365\u5929\u3002\\n\\n4\u8868\u793A\u201C\u6B27\u6D3230/360\u201D\u65B9\u6CD5 - \u7C7B\u4F3C\u4E8E0\uFF0C\u6B64\u65B9\u6CD5\u57FA\u4E8E\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u8FDB\u884C\u8BA1\u7B97\uFF0C\u4F46\u6309\u7167\u6B27\u6D32\u91D1\u878D\u60EF\u4F8B\u5BF9\u6708\u672B\u65E5\u671F\u8FDB\u884C\u8C03\u6574\u3002\",\r\n },\r\n ],\r\n },\r\n BIN2DEC: {\r\n d: \"\u5C06\u4E8C\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u4E8C\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768410\u4F4D\u4E8C\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u5BF9\u4E8E\u6B64\u51FD\u6570\uFF0C\u6700\u5927\u7684\u6B63\u6570\u8F93\u5165\u503C\u4E3A0111111111\uFF0C\u6700\u5C0F\u7684\u8D1F\u6570\u8F93\u5165\u503C\u4E3A1000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u4E8C\u8FDB\u5236\u6570\uFF0C\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CBIN2DEC(100)\u548CBIN2DEC(\"100\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A4\u3002',\r\n },\r\n ],\r\n },\r\n BIN2HEX: {\r\n d: \"\u5C06\u4E8C\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u516D\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u4E8C\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u516D\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768410\u4F4D\u4E8C\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u5BF9\u4E8E\u6B64\u51FD\u6570\uFF0C\u6700\u5927\u7684\u6B63\u6570\u8F93\u5165\u503C\u4E3A0111111111\uFF0C\u6700\u5C0F\u7684\u8D1F\u6570\u8F93\u5165\u503C\u4E3A1000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u4E8C\u8FDB\u5236\u6570\uFF0C\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CBIN2HEX(11111)\u548CBIN2HEX(\"11111\")\u5F97\u51FA \u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A1F\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n '[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\u4F8B\u5982\uFF0CBIN2HEX(\"11111\",8)\u6240\u5F97\u7684\u7ED3\u679C\u503C\u4E3A0000001F\u3002\\n\\n\u5982\u679C\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u4E3A1\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u5F53\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u5927\u4E8E\u7B49\u4E8E1000000000\u65F6\u5FFD\u7565\u6B64\u503C\u3002',\r\n },\r\n ],\r\n },\r\n BIN2OCT: {\r\n d: \"\u5C06\u4E8C\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u516B\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u4E8C\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u516B\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768410\u4F4D\u4E8C\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u5BF9\u4E8E\u6B64\u51FD\u6570\uFF0C\u6700\u5927\u7684\u6B63\u6570\u8F93\u5165\u503C\u4E3A0111111111\uFF0C\u6700\u5C0F\u7684\u8D1F\u6570\u8F93\u5165\u503C\u4E3A1000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u4E8C\u8FDB\u5236\u6570\uFF0C\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CBIN2OCT(11111)\u548CBIN2OCT(\"11111\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A37\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n '[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\u4F8B\u5982\uFF0CBIN2OCT(\"11111\")\u5F97\u5230\u7684\u7ED3\u679C\u503C\u4E3A00000037\u3002\\n\\n\u5982\u679C\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u4E3A1\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u5F53\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u5927\u4E8E\u7B49\u4E8E1000000000\u65F6\u5FFD\u7565\u6B64\u503C\u3002',\r\n },\r\n ],\r\n },\r\n DEC2BIN: {\r\n d: \"\u5C06\u5341\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u4E8C\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u5341\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u4E8C\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u5341\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5BF9\u4E8E\u6B64\u51FD\u6570\uFF0C\u6700\u5927\u7684\u6B63\u6570\u8F93\u5165\u503C\u4E3A511\uFF0C\u6700\u5C0F\u7684\u8D1F\u6570\u8F93\u5165\u503C\u4E3A-512\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5341\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u5341\u8FDB\u5236\u6570\uFF0C\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CDEC2BIN(199)\u548CDEC2BIN(\"199\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A11000111\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5341\u8FDB\u5236\u6570\u4E3A\u8D1F\u6570\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DEC2HEX: {\r\n d: \"\u5C06\u5341\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u516D\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u5341\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u516D\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u5341\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A549755813887\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3A-549755814888\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5341\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u5341\u8FDB\u5236\u6570\uFF0C\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CDEC2HEX(100)\u548CDEC2HEX(\"100\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A64\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5341\u8FDB\u5236\u6570\u4E3A\u8D1F\u6570\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DEC2OCT: {\r\n d: \"\u5C06\u5341\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u516B\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u5341\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u516B\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u7684\u5341\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A536870911\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3A-53687092\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5341\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u5341\u8FDB\u5236\u6570\uFF0C\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CDEC2OCT(199)\u548CDEC2OCT(\"199\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A307\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5341\u8FDB\u5236\u6570\u4E3A\u8D1F\u6570\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n HEX2BIN: {\r\n d: \"\u5C06\u5341\u516D\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u4E8C\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u5341\u516D\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u4E8C\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768440\u4F4D\u5341\u516D\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A1FF\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3AFFFFFFFE00\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u5341\u516D\u8FDB\u5236\u6570\uFF0C\u51FD\u6570\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CHEX2BIN(199)\u548CHEX2BIN(\"199\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A110011001\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u4E3A1\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u5F53\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u5927\u4E8E\u7B49\u4E8E8000000000\u65F6\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n HEX2DEC: {\r\n d: \"\u5C06\u5341\u516D\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u5341\u516D\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768440\u4F4D\u5341\u516D\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A7fffffffff\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3A8000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u5341\u516D\u8FDB\u5236\u6570\uFF0C\u51FD\u6570\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CHEX2DEC(199)\u548CHEX2DEC(\"199\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A409\u3002',\r\n },\r\n ],\r\n },\r\n HEX2OCT: {\r\n d: \"\u5C06\u5341\u516D\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u516B\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u5341\u516D\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u516B\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768440\u4F4D\u5341\u516D\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A1FFFFFFF\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3AFFE0000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u5341\u516D\u8FDB\u5236\u6570\uFF0C\u51FD\u6570\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0CHEX2OCT(199)\u548CHEX2OCT(\"199\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A631\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u4E3A1\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u5F53\u7ED9\u5B9A\u7684\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u5927\u4E8E\u7B49\u4E8E8000000000\u65F6\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n OCT2BIN: {\r\n d: \"\u5C06\u516B\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u4E8C\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u516B\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u4E8C\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u4E8C\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768430\u4F4D\u516B\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A777\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3A7777777000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u516B\u8FDB\u5236\u6570\uFF0C\u51FD\u6570\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0COCT2BIN(177)\u548COCT2BIN(\"177\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A1111111\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u4E3A1\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u5F53\u7ED9\u5B9A\u7684\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u5927\u4E8E\u7B49\u4E8E4000000000\u65F6\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n OCT2DEC: {\r\n d: \"\u5C06\u516B\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u516B\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5341\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768430\u4F4D\u516B\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684ba\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A3777777777\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3A4000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u516B\u8FDB\u5236\u6570\uFF0C\u51FD\u6570\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0COCT2DEC(177)\u548COCT2DEC(\"177\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A127\u3002',\r\n },\r\n ],\r\n },\r\n OCT2HEX: {\r\n d: \"\u5C06\u516B\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u516D\u8FDB\u5236\u6570\u3002\",\r\n a: \"\u5C06\u516B\u8FDB\u5236\u6570\u8F6C\u6362\u4E3A\u5341\u516D\u8FDB\u5236\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail:\r\n '\u8981\u8F6C\u6362\u4E3A\u5E26\u7B26\u53F7\u7684\u5341\u516D\u8FDB\u5236\u6570\u7684\u5E26\u7B26\u53F7\u768430\u4F4D\u516B\u8FDB\u5236\u6570\u503C\uFF08\u4EE5\u5B57\u7B26\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E26\u7B26\u53F7\u7684ba\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u53F7\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8BF4\uFF0C\u8D1F\u6570\u662F\u4EE5\u4E8C\u7684\u8865\u7801\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6570\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6570\u503C\u4E3A3777777777\uFF0C\u6700\u5C0F\u8D1F\u6570\u503C\u4E3A4000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u662F\u6709\u6548\u7684\u516B\u8FDB\u5236\u6570\uFF0C\u51FD\u6570\u4F1A\u81EA\u52A8\u5C06\u5176\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u5B57\u7B26\u4E32\u8F93\u5165\u3002\u4F8B\u5982\uFF0COCT2HEX(177)\u548COCT2HEX(\"177\")\u5F97\u51FA\u7684\u7ED3\u679C\u76F8\u540C\uFF0C\u5747\u4E3A7F\u3002',\r\n },\r\n {\r\n name: \"places\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u7ED3\u679C\u4E2D\u8981\u786E\u4FDD\u7684\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u8BBE\u7F6E\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u7ED3\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6570\uFF0C\u5219\u5728\u7ED3\u679C\u7684\u5DE6\u4FA7\u586B\u51450\uFF0C\u4F7F\u603B\u6709\u6548\u4F4D\u6570\u8FBE\u5230\u6709\u6548\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u7684\u6700\u9AD8\u4F4D\u4E3A1\uFF0C\u5219\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u5F53\u7ED9\u5B9A\u7684\u5E26\u7B26\u53F7\u7684\u516B\u8FDB\u5236\u6570\u5927\u4E8E\u7B49\u4E8E4000000000\u65F6\u5FFD\u7565\u6B64\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n COMPLEX: {\r\n d: \"\u5C06\u5B9E\u7CFB\u6570\u53CA\u865A\u7CFB\u6570\u8F6C\u6362\u4E3A x+yi \u6216 x+yj \u5F62\u5F0F\u7684\u590D\u6570\u3002\",\r\n a: \"\u5C06\u5B9E\u7CFB\u6570\u53CA\u865A\u7CFB\u6570\u8F6C\u6362\u4E3A x+yi \u6216 x+yj \u5F62\u5F0F\u7684\u590D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"real_num\",\r\n detail: \"\u590D\u6570\u7684\u5B9E\u7CFB\u6570\u3002\",\r\n },\r\n {\r\n name: \"i_num\",\r\n detail: \"\u590D\u6570\u7684\u865A\u7CFB\u6570\u3002\",\r\n },\r\n {\r\n name: \"suffix\",\r\n detail: '[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A \"i\"] - \u590D\u6570\u4E2D\u865A\u7CFB\u6570\u7684\u540E\u7F00\u3002',\r\n },\r\n ],\r\n },\r\n IMREAL: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u5B9E\u7CFB\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u5B9E\u7CFB\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"inumber\",\r\n detail: \"\u9700\u8981\u8BA1\u7B97\u5176\u5B9E\u7CFB\u6570\u7684\u590D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n IMAGINARY: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u865A\u7CFB\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u865A\u7CFB\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"inumber\",\r\n detail: \"\u9700\u8981\u8BA1\u7B97\u5176\u865A\u7CFB\u6570\u7684\u590D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n IMCONJUGATE: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u5171\u8F6D\u590D\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u5171\u8F6D\u590D\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"inumber\",\r\n detail: \"\u9700\u8981\u8BA1\u7B97\u5176\u5171\u8F6D\u6570\u7684\u590D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n IMABS: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u7EDD\u5BF9\u503C\uFF08\u6A21\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u590D\u6570\u7684\u7EDD\u5BF9\u503C\uFF08\u6A21\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"inumber\",\r\n detail: \"\u8981\u8BA1\u7B97\u5176\u7EDD\u5BF9\u503C\u7684\u590D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n DELTA: {\r\n d: \"\u68C0\u9A8C\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49\u3002 \u5982\u679C number1=number2\uFF0C\u5219\u8FD4\u56DE 1\uFF1B\u5426\u5219\u8FD4\u56DE 0\u3002\",\r\n a: \"\u68C0\u9A8C\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49\u3002 \u5982\u679C number1=number2\uFF0C\u5219\u8FD4\u56DE 1\uFF1B\u5426\u5219\u8FD4\u56DE 0\u3002\",\r\n p: [\r\n {\r\n name: \"number1\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"number2\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A 0] - \u7B2C\u4E8C\u4E2A\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n IMSUM: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u4E2A\u590D\u6570\u7684\u548C\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u4E2A\u590D\u6570\u7684\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"inumber1\",\r\n detail: \"\u8981\u76F8\u52A0\u7684\u7B2C\u4E00\u4E2A\u590D\u6570\",\r\n },\r\n {\r\n name: \"inumber2, \u2026\",\r\n detail: \"[\u53EF\u9009] - \u8981\u4E0E\u503C1 \u76F8\u52A0\u7684\u5176\u4ED6\u590D\u6570\",\r\n },\r\n ],\r\n },\r\n IMSUB: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u4E24\u4E2A\u590D\u6570\u7684\u5DEE\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u4E24\u4E2A\u590D\u6570\u7684\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"inumber1\",\r\n detail: \"\u4ECE\uFF08\u590D\uFF09\u6570\u4E2D\u51CF\u53BB inumber2\u3002\",\r\n },\r\n {\r\n name: \"inumber2\",\r\n detail: \"\u4ECE inumber1 \u4E2D\u51CF\uFF08\u590D\uFF09\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n IMPRODUCT: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u4E2A\u590D\u6570\u7684\u4E58\u79EF\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u4E2A\u590D\u6570\u7684\u4E58\u79EF\u3002\",\r\n p: [\r\n {\r\n name: \"inumber1\",\r\n detail: \"\u7528\u4E8E\u8BA1\u7B97\u4E58\u79EF\u7684\u7B2C\u4E00\u4E2A\u590D\u6570\",\r\n },\r\n {\r\n name: \"inumber2, \u2026\",\r\n detail: \"[\u53EF\u9009] - \u8981\u76F8\u4E58\u7684\u5176\u4ED6\u590D\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n IMDIV: {\r\n d: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u4E24\u4E2A\u590D\u6570\u7684\u5546\u3002\",\r\n a: \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u4E24\u4E2A\u590D\u6570\u7684\u5546\u3002\",\r\n p: [\r\n {\r\n name: \"inumber1\",\r\n detail: \"\u590D\u6570\u5206\u5B50\u6216\u88AB\u9664\u6570\u3002\",\r\n },\r\n {\r\n name: \"inumber2\",\r\n detail: \"\u590D\u6570\u5206\u6BCD\u6216\u9664\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n NOT: {\r\n d: \"\u8FD4\u56DE\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C - \u201CNOT(TRUE())\u201D\u5C06\u8FD4\u56DE FALSE\uFF1B\u201CNOT(FALSE())\u201D\u5C06\u8FD4\u56DE TRUE\u3002\",\r\n a: \"\u8FD4\u56DE\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C - \u201CNOT(TRUE())\u201D\u5C06\u8FD4\u56DE FALSE\uFF1B\u201CNOT(FALSE())\u201D\u5C06\u8FD4\u56DE TRUE\u3002\",\r\n p: [\r\n {\r\n name: \"logical\",\r\n detail: \"\u8BA1\u7B97\u7ED3\u679C\u4E3A TRUE \u6216 FALSE \u7684\u4EFB\u4F55\u503C\u6216\u8868\u8FBE\u5F0F\u3002\",\r\n },\r\n ],\r\n },\r\n TRUE: {\r\n d: \"\u8FD4\u56DE\u903B\u8F91\u503C TRUE\u3002\",\r\n a: \"\u8FD4\u56DE\u903B\u8F91\u503C TRUE\u3002\",\r\n p: [],\r\n },\r\n FALSE: {\r\n d: \"\u8FD4\u56DE\u903B\u8F91\u503C FALSE\u3002\",\r\n a: \"\u8FD4\u56DE\u903B\u8F91\u503C FALSE\u3002\",\r\n p: [],\r\n },\r\n AND: {\r\n d: \"\u6240\u6709\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A TRUE \u65F6\uFF0C\u8FD4\u56DE TRUE\uFF1B\u53EA\u8981\u6709\u4E00\u4E2A\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A FALSE\uFF0C\u5373\u8FD4\u56DE FALSE\u3002\",\r\n a: \"\u6240\u6709\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A TRUE \u65F6\uFF0C\u8FD4\u56DE TRUE\uFF1B\u53EA\u8981\u6709\u4E00\u4E2A\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A FALSE\uFF0C\u5373\u8FD4\u56DE FALSE\u3002\",\r\n p: [\r\n {\r\n name: \"logical1\",\r\n detail: \"\u8981\u6D4B\u8BD5\u7684\u7B2C\u4E00\u4E2A\u6761\u4EF6\uFF0C\u5176\u8BA1\u7B97\u7ED3\u679C\u53EF\u4EE5\u4E3A TRUE \u6216 FALSE\u3002\",\r\n },\r\n {\r\n name: \"logical2,...\",\r\n detail: \"[\u53EF\u9009] - \u8981\u6D4B\u8BD5\u7684\u5176\u4ED6\u6761\u4EF6\uFF0C\u5176\u8BA1\u7B97\u7ED3\u679C\u53EF\u4EE5\u4E3A TRUE \u6216 FALSE\uFF0C\u6700\u591A\u53EF\u5305\u542B 255 \u4E2A\u6761\u4EF6\u3002\",\r\n },\r\n ],\r\n },\r\n IFERROR: {\r\n d: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E0D\u662F\u9519\u8BEF\u503C\uFF0C\u5C31\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u53C2\u6570\uFF1B\u5426\u5219\uFF0C\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570\u3002\",\r\n a: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E0D\u662F\u9519\u8BEF\u503C\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"\u68C0\u67E5\u662F\u5426\u5B58\u5728\u9519\u8BEF\u7684\u53C2\u6570\u3002\",\r\n },\r\n {\r\n name: \"value_if_error\",\r\n detail:\r\n \"\u516C\u5F0F\u7684\u8BA1\u7B97\u7ED3\u679C\u9519\u8BEF\u65F6\u8FD4\u56DE\u7684\u503C\u3002 \u8BA1\u7B97\u4EE5\u4E0B\u9519\u8BEF\u7C7B\u578B\uFF1A#N/A\u3001#VALUE!\u3001#REF!\u3001#DIV/0!\u3001#NUM!\u3001#NAME? \u6216 #NULL!\u3002\",\r\n },\r\n ],\r\n },\r\n IF: {\r\n d: \"\u5F53\u903B\u8F91\u8868\u8FBE\u5F0F\u7684\u503C\u4E3A TRUE \u65F6\u8FD4\u56DE\u4E00\u4E2A\u503C\uFF0C\u800C\u5F53\u5176\u4E3A FALSE \u65F6\u8FD4\u56DE\u53E6\u4E00\u4E2A\u503C\u3002\",\r\n a: \"\u5F53\u903B\u8F91\u8868\u8FBE\u5F0F\u7684\u503C\u4E3A TRUE \u65F6\u8FD4\u56DE\u4E00\u4E2A\u503C\uFF0C\u800C\u5F53\u5176\u4E3A FALSE \u65F6\u8FD4\u56DE\u53E6\u4E00\u4E2A\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"logical_test\",\r\n detail: \"\u4E00\u4E2A\u8868\u8FBE\u5F0F\u6216\u5BF9\u5305\u542B\u8868\u8FBE\u5F0F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u8BE5\u8868\u8FBE\u5F0F\u4EE3\u8868\u67D0\u79CD\u903B\u8F91\u503C\uFF08\u5373TRUE\u6216FALSE\uFF09\u3002\",\r\n },\r\n {\r\n name: \"value_if_true\",\r\n detail: \"\u5F53\u903B\u8F91\u8868\u8FBE\u5F0F\u4E3ATRUE\u65F6\u7684\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n {\r\n name: \"value_if_false\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E3A\u7A7A\u767D] - \u5F53\u903B\u8F91\u8868\u8FBE\u5F0F\u7B49\u4E8EFALSE\u65F6\u7684\u51FD\u6570\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n OR: {\r\n d: \"\u53EA\u8981\u6709\u4E00\u4E2A\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A TRUE \u65F6\uFF0C\u8FD4\u56DE TRUE\uFF1B\u6240\u6709\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A FALSE\uFF0C\u5373\u8FD4\u56DE FALSE\u3002\",\r\n a: \"\u53EA\u8981\u6709\u4E00\u4E2A\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A TRUE \u65F6\uFF0C\u8FD4\u56DE TRUE\uFF1B\u6240\u6709\u53C2\u6570\u7684\u8BA1\u7B97\u7ED3\u679C\u4E3A FALSE\uFF0C\u5373\u8FD4\u56DE FALSE\u3002\",\r\n p: [\r\n {\r\n name: \"logical1\",\r\n detail: \"\u8981\u6D4B\u8BD5\u7684\u7B2C\u4E00\u4E2A\u6761\u4EF6\uFF0C\u5176\u8BA1\u7B97\u7ED3\u679C\u53EF\u4EE5\u4E3A TRUE \u6216 FALSE\u3002\",\r\n },\r\n {\r\n name: \"\u903B\u8F91\u8868\u8FBE\u5F0F2\",\r\n detail:\r\n \"[\u53EF\u9009] - \u5176\u4ED6\u8868\u8FBE\u5F0F\u6216\u5BF9\u5305\u542B\u8868\u8FBE\u5F0F\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u8FD9\u4E9B\u8868\u8FBE\u5F0F\u4EE3\u8868\u67D0\u79CD\u903B\u8F91\u503C\uFF08\u5373TRUE\u6216FALSE\uFF09\u6216\u8005\u53EF\u4EE5\u5F3A\u5236\u8F6C\u6362\u4E3A\u903B\u8F91\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n NE: {\r\n d: \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u4E0D\u76F8\u7B49\uFF0C\u5219\u8FD4\u56DE\u201CTRUE\u201D\uFF1B\u5426\u5219\u8FD4\u56DE\u201CFALSE\u201D\u3002\u76F8\u5F53\u4E8E\u201C<>\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u4E0D\u76F8\u7B49\uFF0C\u5219\u8FD4\u56DE\u201CTRUE\u201D\uFF1B\u5426\u5219\u8FD4\u56DE\u201CFALSE\u201D\u3002\u76F8\u5F53\u4E8E\u201C<>\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u8981\u68C0\u67E5\u662F\u5426\u4E0E value1 \u4E0D\u76F8\u7B49\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n EQ: {\r\n d: \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u76F8\u7B49\uFF0C\u5219\u8FD4\u56DE\u201CTRUE\u201D\uFF1B\u5426\u5219\u8FD4\u56DE\u201CFALSE\u201D\u3002\u76F8\u5F53\u4E8E\u201C=\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u76F8\u7B49\uFF0C\u5219\u8FD4\u56DE\u201CTRUE\u201D\uFF1B\u5426\u5219\u8FD4\u56DE\u201CFALSE\u201D\u3002\u76F8\u5F53\u4E8E\u201C=\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u8981\u68C0\u67E5\u662F\u5426\u4E0E value1 \u76F8\u7B49\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n GT: {\r\n d: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E25\u683C\u5927\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C>\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E25\u683C\u5927\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C>\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5927\u4E8E value2 \u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n GTE: {\r\n d: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u5927\u4E8E\u6216\u7B49\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C>=\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u5927\u4E8E\u6216\u7B49\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C>=\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5927\u4E8E\u7B49\u4E8E value2 \u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n LT: {\r\n d: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E25\u683C\u5C0F\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C<\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E25\u683C\u5C0F\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C<\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5C0F\u4E8E value2 \u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n LTE: {\r\n d: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u5C0F\u4E8E\u6216\u7B49\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C<=\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u5982\u679C\u7B2C\u4E00\u4E2A\u53C2\u6570\u5C0F\u4E8E\u6216\u7B49\u4E8E\u7B2C\u4E8C\u4E2A\uFF0C\u5219\u8FD4\u56DE TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\u76F8\u5F53\u4E8E\u201C<=\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E value2 \u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ADD: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u503C\u4E4B\u548C\u3002\u76F8\u5F53\u4E8E `+` \u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u503C\u4E4B\u548C\u3002\u76F8\u5F53\u4E8E `+` \u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u52A0\u6570\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u52A0\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n MINUS: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u503C\u4E4B\u5DEE\u3002\u76F8\u5F53\u4E8E\u201C-\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u503C\u4E4B\u5DEE\u3002\u76F8\u5F53\u4E8E\u201C-\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u88AB\u51CF\u6570\uFF0C\u5373\u8981\u5BF9\u5176\u8BA1\u51CF\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u51CF\u6570\uFF0C\u5373\u8981\u4ECE value1 \u4E2D\u51CF\u9664\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n MULTIPLY: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u7684\u4E58\u79EF\u3002\u76F8\u5F53\u4E8E\u201C*\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u7684\u4E58\u79EF\u3002\u76F8\u5F53\u4E8E\u201C*\u201D\u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u4E58\u6570\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u4E58\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n DIVIDE: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u53C2\u6570\u76F8\u9664\u6240\u5F97\u7684\u7ED3\u679C\u3002\u76F8\u5F53\u4E8E `/` \u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u53C2\u6570\u76F8\u9664\u6240\u5F97\u7684\u7ED3\u679C\u3002\u76F8\u5F53\u4E8E `/` \u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"\u8981\u88AB\u9664\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u7528\u4E8E\u9664\u5176\u4ED6\u6570\u7684\u6570\u503C\u3002\\n\\n\u9664\u6570\u4E0D\u5F97\u4E3A0\u3002\",\r\n },\r\n ],\r\n },\r\n CONCAT: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u503C\u7684\u4E32\u8054\u3002\u76F8\u5F53\u4E8E `&` \u8FD0\u7B97\u7B26\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u503C\u7684\u4E32\u8054\u3002\u76F8\u5F53\u4E8E `&` \u8FD0\u7B97\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"value1\",\r\n detail: \"value2 \u5C06\u9644\u4E8E\u5176\u540E\u7684\u503C\u3002\",\r\n },\r\n {\r\n name: \"value2\",\r\n detail: \"\u8981\u9644\u4E8E value1 \u4E4B\u540E\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n UNARY_PERCENT: {\r\n d: \"\u8FD4\u56DE\u6309\u767E\u5206\u6BD4\u89E3\u91CA\u7684\u6570\u503C\u3002\u4F8B\u5982\uFF0C\u201CUNARY_PERCENT(100)\u201D\u7B49\u4E8E1\u3002\",\r\n a: \"\u8FD4\u56DE\u6309\u767E\u5206\u6BD4\u89E3\u91CA\u7684\u6570\u503C\u3002\u4F8B\u5982\uFF0C\u201CUNARY_PERCENT(100)\u201D\u7B49\u4E8E1\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8981\u4F5C\u4E3A\u767E\u5206\u6BD4\u89E3\u91CA\u7684\u6570\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n CONCATENATE: {\r\n d: \"\u5C06\u4E24\u4E2A\u6216\u591A\u4E2A\u6587\u672C\u5B57\u7B26\u4E32\u8054\u63A5\u4E3A\u4E00\u4E2A\u5B57\u7B26\u4E32\u3002\",\r\n a: \"\u5C06\u4E24\u4E2A\u6216\u591A\u4E2A\u6587\u672C\u5B57\u7B26\u4E32\u8054\u63A5\u4E3A\u4E00\u4E2A\u5B57\u7B26\u4E32\u3002\",\r\n p: [\r\n {\r\n name: \"text1\",\r\n detail: \"\u521D\u59CB\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"text2 ...\",\r\n detail: \"[\u53EF\u9009] - \u8981\u6309\u987A\u5E8F\u8FDE\u63A5\u5728\u4E00\u8D77\u7684\u5176\u4ED6\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n CODE: {\r\n d: \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u5B57\u7B26\u4E32\u4E2D\u9996\u5B57\u7B26\u7684 Unicode \u6620\u5C04\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u5B57\u7B26\u4E32\u4E2D\u9996\u5B57\u7B26\u7684 Unicode \u6620\u5C04\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u9996\u5B57\u7B26\u7684Unicode\u6620\u5C04\u503C\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n CHAR: {\r\n d: \"\u6309\u7167\u5F53\u524D Unicode \u7F16\u7801\u8868\uFF0C\u5C06\u6570\u5B57\u8F6C\u6362\u4E3A\u5BF9\u5E94\u7684\u5B57\u7B26\u3002\",\r\n a: \"\u6309\u7167\u5F53\u524D Unicode \u7F16\u7801\u8868\uFF0C\u5C06\u6570\u5B57\u8F6C\u6362\u4E3A\u5BF9\u5E94\u7684\u5B57\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u4ECB\u4E8E 1 \u5230 255 \u4E4B\u95F4\u7684\u6570\u5B57\u3002\",\r\n },\r\n ],\r\n },\r\n ARABIC: {\r\n d: \"\u5C06\u7F57\u9A6C\u6570\u5B57\u8F6C\u6362\u4E3A\u963F\u62C9\u4F2F\u6570\u5B57\u3002\",\r\n a: \"\u5C06\u7F57\u9A6C\u6570\u5B57\u8F6C\u6362\u4E3A\u963F\u62C9\u4F2F\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8F6C\u6362\u683C\u5F0F\u7684\u7F57\u9A6C\u6570\u5B57\",\r\n },\r\n ],\r\n },\r\n ROMAN: {\r\n d: \"\u5C06\u6570\u5B57\u683C\u5F0F\u8BBE\u7F6E\u4E3A\u7F57\u9A6C\u6570\u5B57\u5F62\u5F0F\u3002\",\r\n a: \"\u5C06\u6570\u5B57\u683C\u5F0F\u8BBE\u7F6E\u4E3A\u7F57\u9A6C\u6570\u5B57\u5F62\u5F0F\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8981\u8BBE\u7F6E\u683C\u5F0F\u7684\u6570\u5B57\uFF0C\u4ECB\u4E8E1\u52303999\u4E4B\u95F4\uFF08\u5305\u62EC\u8FD9\u4E24\u4E2A\u6570\u5B57\uFF09\u3002\",\r\n },\r\n ],\r\n },\r\n REGEXEXTRACT: {\r\n d: \"\u6309\u7167\u6B63\u5219\u8868\u8FBE\u5F0F\u63D0\u53D6\u5339\u914D\u7684\u5B50\u4E32\u3002\",\r\n a: \"\u6309\u7167\u6B63\u5219\u8868\u8FBE\u5F0F\u63D0\u53D6\u5339\u914D\u7684\u5B50\u4E32\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8F93\u5165\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"regular_expression\",\r\n detail: \"\u6B64\u51FD\u6570\u5C06\u8FD4\u56DE\u6587\u672C\u4E2D\u7B26\u5408\u6B64\u8868\u8FBE\u5F0F\u7684\u7B2C\u4E00\u4E2A\u5B50\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n REGEXMATCH: {\r\n d: \"\u5224\u65AD\u4E00\u6BB5\u6587\u672C\u662F\u5426\u4E0E\u6B63\u5219\u8868\u8FBE\u5F0F\u76F8\u5339\u914D\u3002\",\r\n a: \"\u5224\u65AD\u4E00\u6BB5\u6587\u672C\u662F\u5426\u4E0E\u6B63\u5219\u8868\u8FBE\u5F0F\u76F8\u5339\u914D\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u6D4B\u8BD5\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"regular_expression\",\r\n detail: \"\u7528\u6765\u6D4B\u8BD5\u6587\u672C\u7684\u6B63\u5219\u8868\u8FBE\u5F0F\u3002\",\r\n },\r\n ],\r\n },\r\n REGEXREPLACE: {\r\n d: \"\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u5C06\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u7684\u4E00\u90E8\u5206\u66FF\u6362\u4E3A\u5176\u4ED6\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n a: \"\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u5C06\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u7684\u4E00\u90E8\u5206\u66FF\u6362\u4E3A\u5176\u4ED6\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u5BF9\u5176\u5C40\u90E8\u8FDB\u884C\u66FF\u6362\u64CD\u4F5C\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"regular_expression\",\r\n detail: \"\u6B63\u5219\u8868\u8FBE\u5F0F\u3002 text \u4E2D\u6240\u6709\u5339\u914D\u7684\u5B9E\u4F8B\u90FD\u5C06\u88AB\u66FF\u6362\u3002\",\r\n },\r\n {\r\n name: \"replacement\",\r\n detail: \"\u8981\u63D2\u5165\u5230\u539F\u6709\u6587\u672C\u4E2D\u7684\u6587\u672C\u3002\",\r\n },\r\n ],\r\n },\r\n T: {\r\n d: \"\u8FD4\u56DE\u6587\u672C\u683C\u5F0F\u7684\u5B57\u7B26\u4E32\u53C2\u6570\u3002\",\r\n a: \"\u8FD4\u56DE\u6587\u672C\u683C\u5F0F\u7684\u5B57\u7B26\u4E32\u53C2\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u6587\u672C\u7684\u53C2\u6570\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6587\u672C\uFF0CT\u5C06\u8FD4\u56DE\u503C\u672C\u8EAB\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6307\u5411\u5305\u542B\u6587\u672C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CT\u5C06\u8FD4\u56DE\u503C\u4E2D\u7684\u5185\u5BB9\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u9519\u8BEF\u503C\u6216\u5305\u542B\u9519\u8BEF\u503C\u7684\u5355\u5143\u683C\uFF0CT\u5C06\u8FD4\u56DE\u8BE5\u9519\u8BEF\u503C\u3002\\n\\n\u5BF9\u4E8E\u6240\u6709\u5176\u4ED6\u60C5\u51B5\uFF0CT\u5C06\u8FD4\u56DE\u7A7A\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n FIXED: {\r\n d: \"\u4EE5\u56FA\u5B9A\u7684\u5C0F\u6570\u4F4D\u6570\u8BBE\u7F6E\u6570\u5B57\u7684\u683C\u5F0F\u3002\",\r\n a: \"\u4EE5\u56FA\u5B9A\u7684\u5C0F\u6570\u4F4D\u6570\u8BBE\u7F6E\u6570\u5B57\u7684\u683C\u5F0F\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u8981\u8FDB\u884C\u820D\u5165\u5E76\u8F6C\u6362\u4E3A\u6587\u672C\u7684\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"decimals\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A2] - \u7ED3\u679C\u4E2D\u8981\u663E\u793A\u7684\u5C0F\u6570\u4F4D\u6570\u3002\\n\\n\u5982\u679C\u6570\u503C\u7684\u6709\u6548\u4F4D\u6570\u5C0F\u4E8E\u5C0F\u6570\u4F4D\u6570\uFF0C\u5C06\u4EE5\u96F6\u586B\u5145\u3002\u5982\u679C\u6570\u503C\u7684\u6709\u6548\u4F4D\u6570\u5927\u4E8E\u5C0F\u6570\u4F4D\u6570\uFF0C\u5219\u5C06\u5176\u820D\u5165\u5230\u6240\u9700\u7684\u5C0F\u6570\u4F4D\u6570\u800C\u4E0D\u662F\u5C06\u5176\u622A\u65AD\u3002\",\r\n },\r\n {\r\n name: \"no_commas\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3AFALSE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u5982\u679C\u4E3A TRUE()\uFF0C\u5219\u4F1A\u7981\u6B62 FIXED \u5728\u8FD4\u56DE\u7684\u6587\u672C\u4E2D\u5305\u542B\u9017\u53F7\u3002\",\r\n },\r\n ],\r\n },\r\n FIND: {\r\n d: \"\u8FD4\u56DE\u5B57\u7B26\u4E32\u5728\u6587\u672C\u4E2D\u9996\u6B21\u51FA\u73B0\u7684\u4F4D\u7F6E\uFF08\u533A\u5206\u5927\u5C0F\u5199\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u5B57\u7B26\u4E32\u5728\u6587\u672C\u4E2D\u9996\u6B21\u51FA\u73B0\u7684\u4F4D\u7F6E\uFF08\u533A\u5206\u5927\u5C0F\u5199\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"find_text\",\r\n detail: \"\u8981\u5728\u8981\u641C\u7D22\u7684\u6587\u672C\u4E2D\u67E5\u627E\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"within_text\",\r\n detail: \"\u8981\u5728\u5176\u4E2D\u641C\u7D22\u641C\u7D22\u5B57\u7B26\u4E32\u7684\u9996\u6B21\u51FA\u73B0\u4F4D\u7F6E\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"start_num\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u8981\u5728\u8981\u641C\u7D22\u7684\u6587\u672C\u4E2D\u5F00\u59CB\u641C\u7D22\u7684\u5B57\u7B26\u4F4D\u7F6E\u3002\",\r\n },\r\n ],\r\n },\r\n FINDB: {\r\n d: \"\u8FD4\u56DE\u67D0\u4E2A\u5B57\u7B26\u4E32\u5728\u6587\u672C\u4E2D\u9996\u6B21\u51FA\u73B0\u7684\u4F4D\u7F6E\uFF08\u6BCF\u4E2A\u53CC\u5B57\u8282\u5B57\u7B26\u5360\u4E24\u4E2A\u4F4D\u7F6E\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u67D0\u4E2A\u5B57\u7B26\u4E32\u5728\u6587\u672C\u4E2D\u9996\u6B21\u51FA\u73B0\u7684\u4F4D\u7F6E\uFF08\u6BCF\u4E2A\u53CC\u5B57\u8282\u5B57\u7B26\u5360\u4E24\u4E2A\u4F4D\u7F6E\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"find_text\",\r\n detail: \"\u8981\u5728\u8981\u641C\u7D22\u7684\u6587\u672C\u4E2D\u67E5\u627E\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"within_text\",\r\n detail: \"\u8981\u5728\u5176\u4E2D\u641C\u7D22\u641C\u7D22\u5B57\u7B26\u4E32\u7684\u9996\u6B21\u51FA\u73B0\u4F4D\u7F6E\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"start_num\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A 1] - \u8981\u5728\u8981\u641C\u7D22\u7684\u6587\u672C\u4E2D\u5F00\u59CB\u641C\u7D22\u7684\u5B57\u7B26\u4F4D\u7F6E\u3002\",\r\n },\r\n ],\r\n },\r\n JOIN: {\r\n d: \"\u5C06\u4E00\u4E2A\u6216\u591A\u4E2A\u4F7F\u7528\u6307\u5B9A\u5B9A\u754C\u7B26\u7684\u4E00\u7EF4\u6570\u7EC4\u7684\u5143\u7D20\u8FDE\u63A5\u5230\u4E00\u8D77\u3002\",\r\n a: \"\u5C06\u4E00\u4E2A\u6216\u591A\u4E2A\u4F7F\u7528\u6307\u5B9A\u5B9A\u754C\u7B26\u7684\u4E00\u7EF4\u6570\u7EC4\u7684\u5143\u7D20\u8FDE\u63A5\u5230\u4E00\u8D77\u3002\",\r\n p: [\r\n {\r\n name: \"separator\",\r\n detail: \"\u7F6E\u4E8E\u76F8\u4E92\u8FDE\u63A5\u7684\u503C\u4E4B\u95F4\u7684\u5B57\u7B26\u6216\u5B57\u7B26\u4E32\u3002\\n\\n\u5B9A\u754C\u7B26\u53EF\u4EE5\u4E3A\u7A7A\uFF0C\u4F8B\u5982JOIN(,{1,2,3})\u3002\",\r\n },\r\n {\r\n name: \"array1\",\r\n detail: \"\u8981\u4F7F\u7528\u5B9A\u754C\u7B26\u8FDE\u63A5\u7684\u4E00\u4E2A\u6216\u591A\u4E2A\u503C\u3002\",\r\n },\r\n {\r\n name: \"array2, ...\",\r\n detail: \"[\u53EF\u9009] - \u8981\u4F7F\u7528\u5B9A\u754C\u7B26\u8FDE\u63A5\u7684\u5176\u4ED6\u503C\u6216\u6570\u7EC4\u3002\",\r\n },\r\n ],\r\n },\r\n LEFT: {\r\n d: \"\u4ECE\u6587\u672C\u5B57\u7B26\u4E32\u7684\u7B2C\u4E00\u4E2A\u5B57\u7B26\u5F00\u59CB\u8FD4\u56DE\u6307\u5B9A\u4E2A\u6570\u7684\u5B57\u7B26\u3002\",\r\n a: \"\u4ECE\u6587\u672C\u5B57\u7B26\u4E32\u7684\u7B2C\u4E00\u4E2A\u5B57\u7B26\u5F00\u59CB\u8FD4\u56DE\u6307\u5B9A\u4E2A\u6570\u7684\u5B57\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u5305\u542B\u8981\u63D0\u53D6\u7684\u5B57\u7B26\u7684\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"num_chars\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u6307\u5B9A\u8981\u7531 LEFT \u63D0\u53D6\u7684\u5B57\u7B26\u7684\u6570\u91CF\u3002\",\r\n },\r\n ],\r\n },\r\n RIGHT: {\r\n d: \"\u6839\u636E\u6240\u6307\u5B9A\u7684\u5B57\u7B26\u6570\u8FD4\u56DE\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u6700\u540E\u4E00\u4E2A\u6216\u591A\u4E2A\u5B57\u7B26\u3002\",\r\n a: \"\u6839\u636E\u6240\u6307\u5B9A\u7684\u5B57\u7B26\u6570\u8FD4\u56DE\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u6700\u540E\u4E00\u4E2A\u6216\u591A\u4E2A\u5B57\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u5305\u542B\u8981\u63D0\u53D6\u7684\u5B57\u7B26\u7684\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"num_chars\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1] - \u6307\u5B9A\u8981\u7531 RIGHT \u63D0\u53D6\u7684\u5B57\u7B26\u7684\u6570\u91CF\u3002\",\r\n },\r\n ],\r\n },\r\n MID: {\r\n d: \"\u8FD4\u56DE\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u4ECE\u6307\u5B9A\u4F4D\u7F6E\u5F00\u59CB\u7684\u7279\u5B9A\u6570\u76EE\u7684\u5B57\u7B26\u3002\",\r\n a: \"\u8FD4\u56DE\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u4ECE\u6307\u5B9A\u4F4D\u7F6E\u5F00\u59CB\u7684\u7279\u5B9A\u6570\u76EE\u7684\u5B57\u7B26\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u5305\u542B\u8981\u63D0\u53D6\u7684\u5B57\u7B26\u7684\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"start_num\",\r\n detail: \"\u8981\u4ECE\u5B57\u7B26\u4E32\u4E2D\u5F00\u59CB\u63D0\u53D6\u7684\u4F4D\u7F6E\u3002\u5B57\u7B26\u4E32\u4E2D\u7B2C\u4E00\u4E2A\u5B57\u7B26\u7684\u7D22\u5F15\u4E3A1\u3002\",\r\n },\r\n {\r\n name: \"num_chars\",\r\n detail:\r\n \"\u6307\u5B9A\u8981\u7531 MID \u63D0\u53D6\u7684\u5B57\u7B26\u7684\u6570\u91CF\u3002\\n\\n\u5982\u679C\u63D0\u53D6\u7684\u5B57\u7B26\u6570\u5C1A\u4E0D\u8DB3\u63D0\u53D6\u957F\u5EA6\u4E2A\u5B57\u7B26\u65F6\u5C31\u5230\u8FBE\u4E86\u5B57\u7B26\u4E32\u5C3E\u90E8\uFF0C\u5219MID\u8FD4\u56DE\u4ECE\u5F00\u59CB\u4F4D\u7F6E\u5230\u5B57\u7B26\u4E32\u5C3E\u90E8\u7684\u5B57\u7B26\u3002\",\r\n },\r\n ],\r\n },\r\n LEN: {\r\n d: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B57\u7B26\u4E32\u7684\u957F\u5EA6\u3002\",\r\n a: \"\u8FD4\u56DE\u7ED9\u5B9A\u5B57\u7B26\u4E32\u7684\u957F\u5EA6\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u957F\u5EA6\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n LENB: {\r\n d: \"\u8FD4\u56DE\u6587\u672C\u4E2D\u6240\u5305\u542B\u7684\u5B57\u7B26\u6570\u3002\u4E0E\u53CC\u5B57\u8282\u5B57\u7B26\u96C6(DBCS)\u4E00\u8D77\u4F7F\u7528\u3002\",\r\n a: \"\u8FD4\u56DE\u6587\u672C\u4E2D\u6240\u5305\u542B\u7684\u5B57\u7B26\u6570\u3002\u4E0E\u53CC\u5B57\u8282\u5B57\u7B26\u96C6(DBCS)\u4E00\u8D77\u4F7F\u7528\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8FD4\u56DE\u5176\u5B57\u8282\u6570\u7684\u5B57\u7B26\u4E32\u3002\uFF08\u4E00\u4E2A\u6C49\u5B57\u4E3A\u4E24\u4E2A\u5B57\u8282\u6570\uFF09\",\r\n },\r\n ],\r\n },\r\n LOWER: {\r\n d: \"\u5C06\u6307\u5B9A\u5B57\u7B26\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u3002\",\r\n a: \"\u5C06\u6307\u5B9A\u5B57\u7B26\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8F6C\u6362\u4E3A\u5C0F\u5199\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n UPPER: {\r\n d: \"\u5C06\u6307\u5B9A\u5B57\u7B26\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u3002\",\r\n a: \"\u5C06\u6307\u5B9A\u5B57\u7B26\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8F6C\u6362\u4E3A\u5927\u5199\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n EXACT: {\r\n d: \"\u6BD4\u8F83\u4E24\u4E2A\u5B57\u7B26\u4E32\u662F\u5426\u76F8\u540C\u3002\",\r\n a: \"\u6BD4\u8F83\u4E24\u4E2A\u5B57\u7B26\u4E32\u662F\u5426\u76F8\u540C\u3002\",\r\n p: [\r\n {\r\n name: \"text1\",\r\n detail: \"\u8981\u6BD4\u8F83\u7684\u7B2C\u4E00\u4E2A\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"text2\",\r\n detail: \"\u8981\u6BD4\u8F83\u7684\u7B2C\u4E8C\u4E2A\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n REPLACE: {\r\n d: \"\u5C06\u6587\u672C\u5B57\u7B26\u4E32\u7684\u4E00\u90E8\u5206\u66FF\u6362\u4E3A\u5176\u4ED6\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n a: \"\u5C06\u6587\u672C\u5B57\u7B26\u4E32\u7684\u4E00\u90E8\u5206\u66FF\u6362\u4E3A\u5176\u4ED6\u6587\u672C\u5B57\u7B26\u4E32\u3002\",\r\n p: [\r\n {\r\n name: \"old_text\",\r\n detail: \"\u8981\u5BF9\u5176\u5C40\u90E8\u8FDB\u884C\u66FF\u6362\u64CD\u4F5C\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"start_num\",\r\n detail: \"\u5F00\u59CB\u8FDB\u884C\u66FF\u6362\u64CD\u4F5C\u7684\u4F4D\u7F6E\uFF08\u6587\u672C\u5F00\u5934\u4F4D\u7F6E\u4E3A 1\uFF09\u3002\",\r\n },\r\n {\r\n name: \"num_chars\",\r\n detail: \"\u8981\u5728\u6587\u672C\u4E2D\u66FF\u6362\u7684\u5B57\u7B26\u4E2A\u6570\u3002\",\r\n },\r\n {\r\n name: \"new_text\",\r\n detail: \"\u8981\u63D2\u5165\u5230\u539F\u6709\u6587\u672C\u4E2D\u7684\u6587\u672C\u3002\",\r\n },\r\n ],\r\n },\r\n REPT: {\r\n d: \"\u8FD4\u56DE\u6307\u5B9A\u6587\u672C\u7684\u591A\u6B21\u91CD\u590D\u3002\",\r\n a: \"\u8FD4\u56DE\u6307\u5B9A\u6587\u672C\u7684\u591A\u6B21\u91CD\u590D\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u91CD\u590D\u7684\u5B57\u7B26\u6216\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"number_times\",\r\n detail:\r\n \"\u8981\u91CD\u590D\u7684\u6587\u672C\u8981\u5728\u8FD4\u56DE\u503C\u4E2D\u51FA\u73B0\u7684\u6B21\u6570\u3002\\n\\n\u6700\u5927\u91CD\u590D\u6B21\u6570\u4E3A100\u3002\u5373\u4F7F\u91CD\u590D\u6B21\u6570\u5927\u4E8E100\uFF0CREPT\u4E5F\u4EC5\u5C06\u76F8\u5E94\u6587\u672C\u91CD\u590D100\u6B21\u3002\",\r\n },\r\n ],\r\n },\r\n SEARCH: {\r\n d: \"\u8FD4\u56DE\u5B57\u7B26\u4E32\u5728\u6587\u672C\u4E2D\u9996\u6B21\u51FA\u73B0\u7684\u4F4D\u7F6E\uFF08\u4E0D\u533A\u5206\u5927\u5C0F\u5199\uFF09\u3002\",\r\n a: \"\u8FD4\u56DE\u5B57\u7B26\u4E32\u5728\u6587\u672C\u4E2D\u9996\u6B21\u51FA\u73B0\u7684\u4F4D\u7F6E\uFF08\u4E0D\u533A\u5206\u5927\u5C0F\u5199\uFF09\u3002\",\r\n p: [\r\n {\r\n name: \"find_text\",\r\n detail: \"\u8981\u5728\u8981\u641C\u7D22\u7684\u6587\u672C\u4E2D\u67E5\u627E\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n {\r\n name: \"within_text\",\r\n detail: \"\u8981\u5728\u5176\u4E2D\u641C\u7D22\u641C\u7D22\u5B57\u7B26\u4E32\u7684\u9996\u6B21\u51FA\u73B0\u4F4D\u7F6E\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"start_num\",\r\n detail: \"[ \u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3A1 ] - \u8981\u5728\u8981\u641C\u7D22\u7684\u6587\u672C\u4E2D\u5F00\u59CB\u641C\u7D22\u7684\u5B57\u7B26\u4F4D\u7F6E\u3002\",\r\n },\r\n ],\r\n },\r\n SUBSTITUTE: {\r\n d: \"\u5728\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u7528 new_text \u66FF\u6362 old_text\u3002\",\r\n a: \"\u5728\u6587\u672C\u5B57\u7B26\u4E32\u4E2D\u7528 new_text \u66FF\u6362 old_text\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u9700\u8981\u66FF\u6362\u5176\u4E2D\u5B57\u7B26\u7684\u6587\u672C\uFF0C\u6216\u5BF9\u542B\u6709\u6587\u672C\uFF08\u9700\u8981\u66FF\u6362\u5176\u4E2D\u5B57\u7B26\uFF09\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3002\",\r\n },\r\n {\r\n name: \"old_text\",\r\n detail: \"\u9700\u8981\u66FF\u6362\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"new_text\",\r\n detail: \"\u7528\u4E8E\u66FF\u6362 old_text \u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"instance_num\",\r\n detail:\r\n \"[ \u53EF\u9009 ] - \u6307\u5B9A\u8981\u7528 new_text \u66FF\u6362 old_text \u7684\u4E8B\u4EF6\u3002 \u5982\u679C\u6307\u5B9A\u4E86 instance_num\uFF0C\u5219\u53EA\u6709\u6EE1\u8DB3\u8981\u6C42\u7684 old_text \u88AB\u66FF\u6362\u3002 \u5426\u5219\uFF0C\u6587\u672C\u4E2D\u51FA\u73B0\u7684\u6240\u6709 old_text \u90FD\u4F1A\u66F4\u6539\u4E3A new_text\u3002\",\r\n },\r\n ],\r\n },\r\n CLEAN: {\r\n d: \"\u79FB\u9664\u6587\u672C\u4E2D\u7684\u4E0D\u53EF\u6253\u5370 ASCII \u5B57\u7B26\u540E\u5C06\u5176\u8FD4\u56DE\u3002\",\r\n a: \"\u79FB\u9664\u6587\u672C\u4E2D\u7684\u4E0D\u53EF\u6253\u5370 ASCII \u5B57\u7B26\u540E\u5C06\u5176\u8FD4\u56DE\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u79FB\u9664\u5176\u4E2D\u4E0D\u53EF\u6253\u5370\u5B57\u7B26\u7684\u6587\u672C\u3002\",\r\n },\r\n ],\r\n },\r\n TEXT: {\r\n d: \"\u6309\u7167\u6307\u5B9A\u683C\u5F0F\u5C06\u6570\u5B57\u8F6C\u6362\u4E3A\u6587\u672C\u3002\",\r\n a: \"\u6309\u7167\u6307\u5B9A\u683C\u5F0F\u5C06\u6570\u5B57\u8F6C\u6362\u4E3A\u6587\u672C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"\u8981\u8BBE\u7F6E\u683C\u5F0F\u7684\u6570\u5B57\u3001\u65E5\u671F\u6216\u65F6\u95F4\u3002\",\r\n },\r\n {\r\n name: \"format_text\",\r\n detail:\r\n '\u4EE5\u62EC\u53F7\u62EC\u8D77\u6765\u7684\u6A21\u5F0F\u4E32\uFF0C\u5C06\u6309\u8BE5\u6A21\u5F0F\u8BBE\u7F6E\u6570\u5B57\u7684\u683C\u5F0F\u3002\\n\\n0\u8868\u793A\u5728\u6570\u503C\u4F4D\u6570\u5C11\u4E8E\u683C\u5F0F\u6307\u5B9A\u7684\u4F4D\u6570\u65F6\u5FC5\u5B9A\u4EE5\u96F6\u586B\u5145\u3002\u4F8B\u5982\uFF0CTEXT(12.3,\"000.00\")\u5C06\u8FD4\u56DE012.30\u3002\u5F53\u6570\u503C\u7684\u5C0F\u6570\u4F4D\u6570\u8D85\u8FC7\u6A21\u5F0F\u6307\u5B9A\u7684\u5C0F\u6570\u4F4D\u6570\u65F6\uFF0C\u56DB\u820D\u4E94\u5165\u4E3A\u6307\u5B9A\u7684\u5C0F\u6570\u4F4D\u6570\u3002\u4F8B\u5982\uFF0CTEXT(12.305,\"00.00\")\u5C06\u8FD4\u56DE12.31\u3002\\n\\n#\u7C7B\u4F3C\u4E8E0\uFF0C\u4F46\u5E76\u4E0D\u662F\u5728\u5C0F\u6570\u70B9\u7684\u4E24\u4FA7\u90FD\u4EE5\u96F6\u586B\u5145\u3002\u4F8B\u5982\uFF0CTEXT(12.3,\"###.##\")\u5C06\u8FD4\u56DE12.3\u3002',\r\n },\r\n ],\r\n },\r\n TRIM: {\r\n d: \"\u5220\u9664\u6307\u5B9A\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u3002\",\r\n a: \"\u5220\u9664\u6307\u5B9A\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u4FEE\u526A\u7684\u5B57\u7B26\u4E32\u6216\u6307\u5411\u5305\u542B\u8BE5\u5B57\u7B26\u4E32\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3002\",\r\n },\r\n ],\r\n },\r\n VALUE: {\r\n d: \"\u5C06\u53EF\u8BC6\u522B\u7684\u4EFB\u4F55\u65E5\u671F\u3001\u65F6\u95F4\u6216\u6570\u5B57\u683C\u5F0F\u7684\u5B57\u7B26\u4E32\u8F6C\u6362\u4E3A\u6570\u5B57\u3002\",\r\n a: \"\u5C06\u53EF\u8BC6\u522B\u7684\u4EFB\u4F55\u65E5\u671F\u3001\u65F6\u95F4\u6216\u6570\u5B57\u683C\u5F0F\u7684\u5B57\u7B26\u4E32\u8F6C\u6362\u4E3A\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u5305\u542B\u8981\u8F6C\u6362\u7684\u503C\u7684\u5B57\u7B26\u4E32\u3002\",\r\n },\r\n ],\r\n },\r\n PROPER: {\r\n d: \"\u5C06\u6307\u5B9A\u5B57\u7B26\u4E32\u4E2D\u6BCF\u4E2A\u5355\u8BCD\u7684\u9996\u5B57\u6BCD\u8F6C\u4E3A\u5927\u5199\u3002\",\r\n a: \"\u5C06\u6307\u5B9A\u5B57\u7B26\u4E32\u4E2D\u6BCF\u4E2A\u5355\u8BCD\u7684\u9996\u5B57\u6BCD\u8F6C\u4E3A\u5927\u5199\u3002\",\r\n p: [\r\n {\r\n name: \"text\",\r\n detail: \"\u8981\u8F6C\u6362\u7684\u6587\u672C\uFF0C\u5176\u4E2D\u6BCF\u4E2A\u5355\u8BCD\u7684\u9996\u5B57\u6BCD\u90FD\u5C06\u8F6C\u4E3A\u5927\u5199\uFF0C\u6240\u6709\u5176\u4ED6\u5B57\u6BCD\u5219\u8F6C\u4E3A\u5C0F\u5199\u3002\",\r\n },\r\n ],\r\n },\r\n CONVERT: {\r\n d: \"\u5C06\u6570\u5B57\u4ECE\u4E00\u79CD\u5EA6\u91CF\u7CFB\u7EDF\u8F6C\u6362\u4E3A\u53E6\u4E00\u79CD\u5EA6\u91CF\u7CFB\u7EDF\u3002\",\r\n a: \"\u5C06\u6570\u5B57\u4ECE\u4E00\u79CD\u5EA6\u91CF\u7CFB\u7EDF\u8F6C\u6362\u4E3A\u53E6\u4E00\u79CD\u5EA6\u91CF\u7CFB\u7EDF\u3002\",\r\n p: [\r\n {\r\n name: \"number\",\r\n detail: \"\u662F\u4EE5 from_unit \u4E3A\u5355\u4F4D\u7684\u9700\u8981\u8FDB\u884C\u8F6C\u6362\u7684\u6570\u503C\u3002\",\r\n },\r\n {\r\n name: \"from_unit\",\r\n detail: \"\u662F\u6570\u503C\u7684\u5355\u4F4D\u3002\",\r\n },\r\n {\r\n name: \"to_unit\",\r\n detail: \"\u662F\u7ED3\u679C\u7684\u5355\u4F4D\u3002\",\r\n },\r\n ],\r\n },\r\n SUMX2MY2: {\r\n d: \"\u8FD4\u56DE\u4E24\u6570\u7EC4\u4E2D\u5BF9\u5E94\u6570\u503C\u7684\u5E73\u65B9\u5DEE\u4E4B\u548C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u6570\u7EC4\u4E2D\u5BF9\u5E94\u6570\u503C\u7684\u5E73\u65B9\u5DEE\u4E4B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"array_x\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u6570\u7EC4\u6216\u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"array_y\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u6570\u7EC4\u6216\u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n ],\r\n },\r\n SUMX2PY2: {\r\n d: \"\u8FD4\u56DE\u4E24\u6570\u7EC4\u4E2D\u5BF9\u5E94\u6570\u503C\u7684\u5E73\u65B9\u548C\u4E4B\u548C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u6570\u7EC4\u4E2D\u5BF9\u5E94\u6570\u503C\u7684\u5E73\u65B9\u548C\u4E4B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"array_x\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u6570\u7EC4\u6216\u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"array_y\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u6570\u7EC4\u6216\u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n ],\r\n },\r\n SUMXMY2: {\r\n d: \"\u8FD4\u56DE\u4E24\u6570\u7EC4\u4E2D\u5BF9\u5E94\u6570\u503C\u4E4B\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u6570\u7EC4\u4E2D\u5BF9\u5E94\u6570\u503C\u4E4B\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"array_x\",\r\n detail: \"\u7B2C\u4E00\u4E2A\u6570\u7EC4\u6216\u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"array_y\",\r\n detail: \"\u7B2C\u4E8C\u4E2A\u6570\u7EC4\u6216\u6570\u503C\u533A\u57DF\u3002\",\r\n },\r\n ],\r\n },\r\n TRANSPOSE: {\r\n d: \"\u5C06\u6570\u7EC4\u6216\u5355\u5143\u683C\u8303\u56F4\u7684\u884C\u5217\u8F6C\u7F6E\u3002\",\r\n a: \"\u5C06\u6570\u7EC4\u6216\u5355\u5143\u683C\u8303\u56F4\u7684\u884C\u5217\u8F6C\u7F6E\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u5C06\u5176\u884C\u5217\u4E92\u6362\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n TREND: {\r\n d: \"\u8FD4\u56DE\u7EBF\u6027\u8D8B\u52BF\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u7EBF\u6027\u8D8B\u52BF\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"known_y\",\r\n detail:\r\n \"\u5173\u7CFB\u8868\u8FBE\u5F0F y = mx + b \u4E2D\u5DF2\u77E5\u7684 y \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0C\u5219 known_x \u7684\u7EF4\u6570\u5FC5\u987B\u4E0E\u4E4B\u76F8\u540C\uFF0C\u6216\u8005\u7701\u7565\u6B64\u53C2\u6570\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0Cknown_x \u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C known_y \u4E3A\u5355\u884C\uFF0C\u5219\u5C06 known_x \u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E known_y \u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"known_x\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u8BE5\u6570\u7EC4\u4E3A{1,2,3,...},\u5176\u5927\u5C0F\u4E0E known_y \u76F8\u540C] - \u5173\u7CFB\u8868\u8FBE\u5F0F y = mx + b \u4E2D\u5DF2\u77E5\u7684\u53EF\u9009 x \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0Cknown_x \u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C known_y \u4E3A\u5355\u884C\uFF0C\u5219\u5C06 known_x \u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E known_y \u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"new_x\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E0E known_x \u76F8\u540C] - \u9700\u8981\u51FD\u6570 TREND \u8FD4\u56DE\u5BF9\u5E94 y \u503C\u7684\u65B0 x \u503C\u3002\",\r\n },\r\n {\r\n name: \"const\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u7528\u4E8E\u6307\u5B9A\u662F\u5426\u5C06\u5E38\u91CF b \u5F3A\u5236\u8BBE\u4E3A 0\u3002\\n\\nTRUE() \u8868\u793A b \u5C06\u6309\u6B63\u5E38\u8BA1\u7B97\uFF1B\\n\\nFALSE() \u8868\u793A b \u5C06\u88AB\u8BBE\u4E3A 0\uFF08\u96F6\uFF09\uFF0Cm \u5C06\u88AB\u8C03\u6574\u4EE5\u4F7F y = mx\u3002\",\r\n },\r\n ],\r\n },\r\n FREQUENCY: {\r\n d: \"\u8BA1\u7B97\u6570\u503C\u5728\u67D0\u4E2A\u533A\u57DF\u5185\u7684\u51FA\u73B0\u9891\u7387\uFF0C\u7136\u540E\u8FD4\u56DE\u4E00\u4E2A\u5782\u76F4\u6570\u7EC4\u3002\",\r\n a: \"\u8BA1\u7B97\u6570\u503C\u5728\u67D0\u4E2A\u533A\u57DF\u5185\u7684\u51FA\u73B0\u9891\u7387\uFF0C\u7136\u540E\u8FD4\u56DE\u4E00\u4E2A\u5782\u76F4\u6570\u7EC4\u3002\",\r\n p: [\r\n {\r\n name: \"data_array\",\r\n detail: \"\u8981\u5BF9\u5176\u9891\u7387\u8FDB\u884C\u8BA1\u6570\u7684\u4E00\u7EC4\u6570\u503C\u6216\u5BF9\u8FD9\u7EC4\u6570\u503C\u7684\u5F15\u7528\u3002\",\r\n },\r\n {\r\n name: \"bins_array\",\r\n detail:\r\n \"\u8981\u5C06 data_array \u4E2D\u7684\u503C\u63D2\u5165\u5230\u7684\u95F4\u9694\u6570\u7EC4\u6216\u5BF9\u95F4\u9694\u7684\u5F15\u7528\u3002\\n\\n\u4E3A\u6E05\u6670\u8D77\u89C1\uFF0C\u5E94\u5C06\u7C7B\u522B\u6392\u5E8F\uFF0C\u4F46\u5982\u679C\u672A\u6392\u5E8F\uFF0CFREQUENCY\u4F1A\u5728\u5185\u90E8\u5BF9\u8FD9\u4E9B\u6307\u5B9A\u7684\u503C\u8FDB\u884C\u6392\u5E8F\u5E76\u8FD4\u56DE\u6B63\u786E\u7ED3\u679C\u3002\",\r\n },\r\n ],\r\n },\r\n GROWTH: {\r\n d: \"\u4F7F\u7528\u73B0\u6709\u6570\u636E\u8BA1\u7B97\u9884\u6D4B\u7684\u6307\u6570\u7B49\u6BD4\u3002\",\r\n a: \"\u4F7F\u7528\u73B0\u6709\u6570\u636E\u8BA1\u7B97\u9884\u6D4B\u7684\u6307\u6570\u7B49\u6BD4\u3002\",\r\n p: [\r\n {\r\n name: \"known_y\",\r\n detail:\r\n \"\u5173\u7CFB\u8868\u8FBE\u5F0F y = b*m^x \u4E2D\u5DF2\u77E5\u7684 y \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C\u5DF2\u77E5\u6570\u636E_y\u4E3A\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0C\u5219\u5DF2\u77E5\u6570\u636E_x\u7684\u7EF4\u6570\u5FC5\u987B\u4E0E\u4E4B\u76F8\u540C\uFF0C\u6216\u8005\u7701\u7565\u6B64\u53C2\u6570\u3002\\n\\n\u5982\u679C\u5DF2\u77E5\u6570\u636E_y\u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0C\u5DF2\u77E5\u6570\u636E_x\u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C\u5DF2\u77E5\u6570\u636E_y\u4E3A\u5355\u884C\uFF0C\u5219\u5C06\u5DF2\u77E5\u6570\u636E_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E\u5DF2\u77E5\u6570\u636E_y\u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"known_x\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u8BE5\u6570\u7EC4\u4E3A{1,2,3,...},\u5176\u5927\u5C0F\u4E0E known_y \u76F8\u540C] - \u5173\u7CFB\u8868\u8FBE\u5F0F y = b*m^x \u4E2D\u5DF2\u77E5\u7684\u53EF\u9009 x \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C\u5DF2\u77E5\u6570\u636E_y\u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0C\u5DF2\u77E5\u6570\u636E_x\u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C\u5DF2\u77E5\u6570\u636E_y\u4E3A\u5355\u884C\uFF0C\u5219\u5C06\u5DF2\u77E5\u6570\u636E_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E\u5DF2\u77E5\u6570\u636E_y\u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"new_x\",\r\n detail: \"[\u53EF\u9009 - \u9ED8\u8BA4\u4E0E known_x \u76F8\u540C] - \u9700\u8981\u51FD\u6570 GROWTH \u8FD4\u56DE\u5BF9\u5E94 y \u503C\u7684\u65B0 x \u503C\u3002\",\r\n },\r\n {\r\n name: \"const\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] -\u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u7528\u4E8E\u6307\u5B9A\u662F\u5426\u5C06\u5E38\u91CF b \u5F3A\u5236\u8BBE\u4E3A 1\u3002\\n\\nTRUE() \u8868\u793A b \u5C06\u6309\u6B63\u5E38\u8BA1\u7B97\uFF1B\\n\\nFALSE() \u8868\u793A b \u5C06\u88AB\u8BBE\u4E3A 1\uFF0Cm \u5C06\u88AB\u8C03\u6574\u4EE5\u4F7F y = m^x\u3002\",\r\n },\r\n ],\r\n },\r\n LINEST: {\r\n d: \"\u53EF\u901A\u8FC7\u4F7F\u7528\u6700\u5C0F\u4E8C\u4E58\u6CD5\u8BA1\u7B97\u4E0E\u73B0\u6709\u6570\u636E\u6700\u4F73\u62DF\u5408\u7684\u76F4\u7EBF\uFF0C\u6765\u8BA1\u7B97\u67D0\u76F4\u7EBF\u7684\u7EDF\u8BA1\u503C\uFF0C\u7136\u540E\u8FD4\u56DE\u63CF\u8FF0\u6B64\u76F4\u7EBF\u7684\u6570\u7EC4\u3002\",\r\n a: \"\u53EF\u901A\u8FC7\u4F7F\u7528\u6700\u5C0F\u4E8C\u4E58\u6CD5\u8BA1\u7B97\u4E0E\u73B0\u6709\u6570\u636E\u6700\u4F73\u62DF\u5408\u7684\u76F4\u7EBF\uFF0C\u6765\u8BA1\u7B97\u67D0\u76F4\u7EBF\u7684\u7EDF\u8BA1\u503C\uFF0C\u7136\u540E\u8FD4\u56DE\u63CF\u8FF0\u6B64\u76F4\u7EBF\u7684\u6570\u7EC4\u3002\",\r\n p: [\r\n {\r\n name: \"known_y\",\r\n detail:\r\n \"\u5173\u7CFB\u8868\u8FBE\u5F0F y = mx + b \u4E2D\u5DF2\u77E5\u7684 y \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0C\u5219 known_x \u7684\u7EF4\u6570\u5FC5\u987B\u4E0E\u4E4B\u76F8\u540C\uFF0C\u6216\u8005\u7701\u7565\u6B64\u53C2\u6570\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0Cknown_x \u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C known_y \u4E3A\u5355\u884C\uFF0C\u5219\u5C06 known_x \u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E known_y \u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"known_x\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u8BE5\u6570\u7EC4\u4E3A{1,2,3,...},\u5176\u5927\u5C0F\u4E0E known_y \u76F8\u540C] - \u5173\u7CFB\u8868\u8FBE\u5F0F y = mx + b \u4E2D\u5DF2\u77E5\u7684\u53EF\u9009 x \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0Cknown_x \u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C known_y \u4E3A\u5355\u884C\uFF0C\u5219\u5C06 known_x \u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E known_y \u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"const\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u7528\u4E8E\u6307\u5B9A\u662F\u5426\u5C06\u5E38\u91CF b \u5F3A\u5236\u8BBE\u4E3A 0\u3002\\n\\nTRUE() \u8868\u793A b \u5C06\u6309\u6B63\u5E38\u8BA1\u7B97\uFF1B\\n\\nFALSE() \u8868\u793A b \u5C06\u88AB\u8BBE\u4E3A 0\uFF08\u96F6\uFF09\uFF0Cm \u5C06\u88AB\u8C03\u6574\u4EE5\u4F7F y = mx\u3002\",\r\n },\r\n {\r\n name: \"stats\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3AFALSE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u7528\u4E8E\u6307\u5B9A\u662F\u5426\u8FD4\u56DE\u9644\u52A0\u56DE\u5F52\u7EDF\u8BA1\u503C\u3002\\n\\n\u5982\u679C\u8BE6\u7EC6\u4E3ATRUE\uFF0C\u9664\u4E86\u5BF9\u5E94\u4E8E\u6BCF\u4E2A\u81EA\u53D8\u91CF\u7684\u4E00\u7EC4\u7EBF\u6027\u7CFB\u6570\u548Cy\u622A\u8DDD\u4E4B\u5916\uFF0CLINEST\u8FD8\u8FD4\u56DE\u4EE5\u4E0B\u4FE1\u606F\uFF1A\\n\\n\u6BCF\u9879\u7CFB\u6570\u548C\u622A\u8DDD\u7684\u6807\u51C6\u8BEF\u5DEE\u3001\\n\\n\u9650\u5B9A\u7CFB\u6570\uFF08\u4ECB\u4E8E0\u548C1\u4E4B\u95F4\uFF0C1\u8868\u793A\u5B8C\u5168\u76F8\u5173\uFF09\u3001\\n\\n\u56E0\u53D8\u91CF\u503C\u7684\u6807\u51C6\u8BEF\u5DEE\u3001\\n\\nF\u7EDF\u8BA1\u6216F\u89C2\u6D4B\u503C\uFF0C\u6307\u793A\u6240\u89C2\u6D4B\u5230\u7684\u56E0\u53D8\u91CF\u548C\u81EA\u53D8\u91CF\u53D8\u91CF\u4E4B\u95F4\u7684\u5173\u7CFB\u662F\u968F\u673A\u7684\u8FD8\u662F\u7EBF\u6027\u7684\u3001\\n\\n\u81EA\u7531\u5EA6\uFF0C\u7528\u4E8E\u5728\u53C2\u7167\u8868\u4E2D\u67E5\u627EF\u7EDF\u8BA1\u503C\u4EE5\u4F30\u7B97\u53EF\u4FE1\u5EA6\u3001\\n\\n\u56DE\u5F52\u5E73\u65B9\u548C\uFF0C\u4EE5\u53CA\\n\\n\u6B8B\u5DEE\u5E73\u65B9\u548C\u3002\",\r\n },\r\n ],\r\n },\r\n LOGEST: {\r\n d: \"\u5728\u56DE\u5F52\u5206\u6790\u4E2D\uFF0C\u8BA1\u7B97\u6700\u7B26\u5408\u6570\u636E\u7684\u6307\u6570\u56DE\u5F52\u62DF\u5408\u66F2\u7EBF\uFF0C\u5E76\u8FD4\u56DE\u63CF\u8FF0\u8BE5\u66F2\u7EBF\u7684\u6570\u503C\u6570\u7EC4\u3002\",\r\n a: \"\u5728\u56DE\u5F52\u5206\u6790\u4E2D\uFF0C\u8BA1\u7B97\u6700\u7B26\u5408\u6570\u636E\u7684\u6307\u6570\u56DE\u5F52\u62DF\u5408\u66F2\u7EBF\uFF0C\u5E76\u8FD4\u56DE\u63CF\u8FF0\u8BE5\u66F2\u7EBF\u7684\u6570\u503C\u6570\u7EC4\u3002\",\r\n p: [\r\n {\r\n name: \"known_y\",\r\n detail:\r\n \"\u5173\u7CFB\u8868\u8FBE\u5F0F y = mx + b \u4E2D\u5DF2\u77E5\u7684 y \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0C\u5219 known_x \u7684\u7EF4\u6570\u5FC5\u987B\u4E0E\u4E4B\u76F8\u540C\uFF0C\u6216\u8005\u7701\u7565\u6B64\u53C2\u6570\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0Cknown_x \u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C known_y \u4E3A\u5355\u884C\uFF0C\u5219\u5C06 known_x \u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E known_y \u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"known_x\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u8BE5\u6570\u7EC4\u4E3A{1,2,3,...},\u5176\u5927\u5C0F\u4E0E known_y \u76F8\u540C] - \u5173\u7CFB\u8868\u8FBE\u5F0F y = mx + b \u4E2D\u5DF2\u77E5\u7684\u53EF\u9009 x \u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C known_y \u4E3A\u4E00\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\uFF0Cknown_x \u5219\u53EF\u4EE3\u8868\u4E8C\u7EF4\u6570\u7EC4\u6216\u8303\u56F4\u4E2D\u7684\u591A\u4E2A\u81EA\u53D8\u91CF\u3002\u4E5F\u5C31\u662F\u8BF4\uFF0C\u5982\u679C known_y \u4E3A\u5355\u884C\uFF0C\u5219\u5C06 known_x \u4E2D\u7684\u6BCF\u884C\u89E3\u91CA\u4E3A\u5404\u81EA\u72EC\u7ACB\u7684\u503C\uFF0C\u7C7B\u4F3C\u60C5\u51B5\u4E5F\u9002\u7528\u4E8E known_y \u4E3A\u5355\u5217\u7684\u60C5\u51B5\u3002\",\r\n },\r\n {\r\n name: \"const\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3ATRUE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u7528\u4E8E\u6307\u5B9A\u662F\u5426\u5C06\u5E38\u91CF b \u5F3A\u5236\u8BBE\u4E3A 0\u3002\\n\\nTRUE() \u8868\u793A b \u5C06\u6309\u6B63\u5E38\u8BA1\u7B97\uFF1B\\n\\nFALSE() \u8868\u793A b \u5C06\u88AB\u8BBE\u4E3A 0\uFF08\u96F6\uFF09\uFF0Cm \u5C06\u88AB\u8C03\u6574\u4EE5\u4F7F y = mx\u3002\",\r\n },\r\n {\r\n name: \"stats\",\r\n detail:\r\n \"[\u53EF\u9009 - \u9ED8\u8BA4\u503C\u4E3AFALSE()] - \u4E00\u4E2A\u903B\u8F91\u503C\uFF0C\u7528\u4E8E\u6307\u5B9A\u662F\u5426\u8FD4\u56DE\u9644\u52A0\u56DE\u5F52\u7EDF\u8BA1\u503C\u3002\\n\\n\u5982\u679C\u8BE6\u7EC6\u4E3ATRUE\uFF0C\u5219\u9664\u4E86\u4E3A\u6BCF\u4E2A\u81EA\u53D8\u91CF\u548C\u7CFB\u6570 b \u8FD4\u56DE\u4E00\u7EC4\u6307\u6570\u503C\u4E4B\u5916\uFF0CLOGEST \u8FD8\u5C06\u8FD4\u56DE\u4EE5\u4E0B\u6570\u636E\uFF1A\\n\\n\u6BCF\u9879\u6307\u6570\u548C\u7CFB\u6570\u7684\u6807\u51C6\u8BEF\u5DEE\u3001\\n\\n\u9650\u5B9A\u7CFB\u6570\uFF08\u4ECB\u4E8E 0 \u548C 1 \u4E4B\u95F4\uFF0C1 \u8868\u793A\u5B8C\u5168\u76F8\u5173\uFF09\u3001\\n\\n\u56E0\u53D8\u91CF\u503C\u7684\u6807\u51C6\u8BEF\u5DEE\u3001\\n\\nF \u7EDF\u8BA1\u6216 F \u89C2\u6D4B\u503C\uFF0C\u6307\u793A\u6240\u89C2\u6D4B\u5230\u7684\u56E0\u53D8\u91CF\u548C\u81EA\u53D8\u91CF\u4E4B\u95F4\u7684\u5173\u7CFB\u662F\u968F\u673A\u7684\u8FD8\u662F\u6307\u6570\u7684\u3001\\n\\n\u81EA\u7531\u5EA6 - \u7528\u4E8E\u5728\u53C2\u7167\u8868\u4E2D\u67E5\u627E F \u7EDF\u8BA1\u503C\u4EE5\u4F30\u7B97\u53EF\u4FE1\u5EA6\u3001\\n\\n\u56DE\u5F52\u5E73\u65B9\u548C\uFF0C\u4EE5\u53CA\\n\\n\u6B8B\u5DEE\u5E73\u65B9\u548C\u3002\",\r\n },\r\n ],\r\n },\r\n MDETERM: {\r\n d: \"\u8FD4\u56DE\u4E00\u4E2A\u6570\u7EC4\u7684\u77E9\u9635\u884C\u5217\u5F0F\u7684\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E00\u4E2A\u6570\u7EC4\u7684\u77E9\u9635\u884C\u5217\u5F0F\u7684\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u884C\u6570\u548C\u5217\u6570\u76F8\u7B49\u7684\u6570\u503C\u6570\u7EC4\u3002\",\r\n },\r\n ],\r\n },\r\n MINVERSE: {\r\n d: \"\u8FD4\u56DE\u6570\u7EC4\u4E2D\u5B58\u50A8\u7684\u77E9\u9635\u7684\u9006\u77E9\u9635\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u7EC4\u4E2D\u5B58\u50A8\u7684\u77E9\u9635\u7684\u9006\u77E9\u9635\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u884C\u6570\u548C\u5217\u6570\u76F8\u7B49\u7684\u6570\u503C\u6570\u7EC4\u3002\",\r\n },\r\n ],\r\n },\r\n MMULT: {\r\n d: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u7EC4\u7684\u77E9\u9635\u4E58\u79EF\u3002\u7ED3\u679C\u77E9\u9635\u7684\u884C\u6570\u4E0E array1 \u7684\u884C\u6570\u76F8\u540C\uFF0C\u77E9\u9635\u7684\u5217\u6570\u4E0E array2 \u7684\u5217\u6570\u76F8\u540C\u3002\",\r\n a: \"\u8FD4\u56DE\u4E24\u4E2A\u6570\u7EC4\u7684\u77E9\u9635\u4E58\u79EF\u3002\u7ED3\u679C\u77E9\u9635\u7684\u884C\u6570\u4E0E array1 \u7684\u884C\u6570\u76F8\u540C\uFF0C\u77E9\u9635\u7684\u5217\u6570\u4E0E array2 \u7684\u5217\u6570\u76F8\u540C\u3002\",\r\n p: [\r\n {\r\n name: \"array1\",\r\n detail: \"\u8981\u8FDB\u884C\u77E9\u9635\u4E58\u6CD5\u8FD0\u7B97\u7684\u7B2C\u4E00\u4E2A\u77E9\u9635\u6570\u7EC4\u3002\\n\\narray1 \u5217\u6570\u5FC5\u987B\u4E0E array2 \u7684\u884C\u6570\u76F8\u540C\",\r\n },\r\n {\r\n name: \"array2\",\r\n detail: \"\u8981\u8FDB\u884C\u77E9\u9635\u4E58\u6CD5\u8FD0\u7B97\u7684\u7B2C\u4E8C\u4E2A\u77E9\u9635\u6570\u7EC4\u3002\\n\\narray2 \u7684\u884C\u6570\u5FC5\u987B\u4E0E array1 \u5217\u6570\u76F8\u540C\",\r\n },\r\n ],\r\n },\r\n SUMPRODUCT: {\r\n d: \"\u5728\u7ED9\u5B9A\u7684\u51E0\u7EC4\u6570\u7EC4\u4E2D\uFF0C\u5C06\u6570\u7EC4\u95F4\u5BF9\u5E94\u7684\u5143\u7D20\u76F8\u4E58\uFF0C\u5E76\u8FD4\u56DE\u4E58\u79EF\u4E4B\u548C\u3002\",\r\n a: \"\u5728\u7ED9\u5B9A\u7684\u51E0\u7EC4\u6570\u7EC4\u4E2D\uFF0C\u5C06\u6570\u7EC4\u95F4\u5BF9\u5E94\u7684\u5143\u7D20\u76F8\u4E58\uFF0C\u5E76\u8FD4\u56DE\u4E58\u79EF\u4E4B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"array1\",\r\n detail: \"\u5176\u76F8\u5E94\u5143\u7D20\u9700\u8981\u8FDB\u884C\u76F8\u4E58\u5E76\u6C42\u548C\u7684\u7B2C\u4E00\u4E2A\u6570\u7EC4\u53C2\u6570\u3002\",\r\n },\r\n {\r\n name: \"array2\",\r\n detail: \"[\u53EF\u9009] - \u5176\u76F8\u5E94\u5143\u7D20\u9700\u8981\u8FDB\u884C\u76F8\u4E58\u5E76\u6C42\u548C\u7684\u5176\u5B83\u6570\u7EC4\u53C2\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n ISFORMULA: {\r\n d: \"\u68C0\u67E5\u516C\u5F0F\u662F\u5426\u4F4D\u4E8E\u5F15\u7528\u7684\u5355\u5143\u683C\u4E2D\u3002\",\r\n a: \"\u68C0\u67E5\u516C\u5F0F\u662F\u5426\u4F4D\u4E8E\u5F15\u7528\u7684\u5355\u5143\u683C\u4E2D\u3002\",\r\n p: [\r\n {\r\n name: \"cell\",\r\n detail:\r\n \"\u8981\u68C0\u67E5\u662F\u5426\u5B58\u5728\u516C\u5F0F\u7684\u5355\u5143\u683C\u3002\\n\\n\u5982\u679C cell \u4E3A\u5305\u542B\u516C\u5F0F\u7684\u5355\u5143\u683C\uFF0C\u5219 ISFORMULA \u5C06\u8FD4\u56DE TRUE\u3002\u5982\u679C cell \u4E3A\u76F8\u5E94\u5355\u5143\u683C\u8303\u56F4\uFF0C\u5219\u5F53\u8BE5\u8303\u56F4\u5185\u7684\u9996\u4E2A\u5355\u5143\u683C\u5305\u542B\u516C\u5F0F\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u8FD4\u56DE TRUE\u3002\u5982\u679C\u662F\u4EFB\u4F55\u5176\u4ED6\u503C\uFF0C\u7CFB\u7EDF\u90FD\u5C06\u8FD4\u56DE FALSE\u3002\",\r\n },\r\n ],\r\n },\r\n CELL: {\r\n d: \"\u8FD4\u56DE\u6709\u5173\u5355\u5143\u683C\u7684\u683C\u5F0F\u3001\u4F4D\u7F6E\u6216\u5185\u5BB9\u7684\u4FE1\u606F\u3002\",\r\n a: \"\u8FD4\u56DE\u6709\u5173\u5355\u5143\u683C\u7684\u683C\u5F0F\u3001\u4F4D\u7F6E\u6216\u5185\u5BB9\u7684\u4FE1\u606F\u3002\",\r\n p: [\r\n {\r\n name: \"info_type\",\r\n detail: \"\u4E00\u4E2A\u6587\u672C\u503C\uFF0C\u6307\u5B9A\u8981\u8FD4\u56DE\u7684\u5355\u5143\u683C\u4FE1\u606F\u7684\u7C7B\u578B\u3002\",\r\n },\r\n {\r\n name: \"reference\",\r\n detail: \"\u9700\u8981\u5176\u76F8\u5173\u4FE1\u606F\u7684\u5355\u5143\u683C\u3002\",\r\n },\r\n ],\r\n },\r\n NA: {\r\n d: \"\u8FD4\u56DE\u9519\u8BEF\u503C #N/A\u3002\",\r\n a: \"\u8FD4\u56DE\u9519\u8BEF\u503C #N/A\u3002\",\r\n p: [],\r\n },\r\n ERROR_TYPE: {\r\n d: \"\u8FD4\u56DE\u4E0E\u5176\u4ED6\u5355\u5143\u683C\u4E2D\u7684\u9519\u8BEF\u503C\u76F8\u5BF9\u5E94\u7684\u6570\u5B57\u3002\",\r\n a: \"\u8FD4\u56DE\u4E0E\u5176\u4ED6\u5355\u5143\u683C\u4E2D\u7684\u9519\u8BEF\u503C\u76F8\u5BF9\u5E94\u7684\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"error_val\",\r\n detail: \"\u7528\u4E8E\u67E5\u627E\u9519\u8BEF\u53F7\u7684\u5355\u5143\u683C\uFF0C\u867D\u7136\u60A8\u4E5F\u53EF\u4EE5\u76F4\u63A5\u63D0\u4F9B\u9519\u8BEF\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n ISBLANK: {\r\n d: \"\u68C0\u67E5\u6240\u5F15\u7528\u7684\u5355\u5143\u683C\u662F\u5426\u4E3A\u7A7A\u3002\",\r\n a: \"\u68C0\u67E5\u6240\u5F15\u7528\u7684\u5355\u5143\u683C\u662F\u5426\u4E3A\u7A7A\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail: \"\u5BF9\u8981\u68C0\u67E5\u5176\u662F\u5426\u4E3A\u7A7A\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\u3002\\n\\n\u5982\u679C\u662F\u7A7A\u5355\u5143\u683C\uFF0C\u5219 TRUE\uFF1B\u5426\u5219\u8FD4\u56DE FALSE\u3002\",\r\n },\r\n ],\r\n },\r\n ISERR: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A #N/A \u4EE5\u5916\u7684\u9519\u8BEF\u503C\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A #N/A \u4EE5\u5916\u7684\u9519\u8BEF\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A#N/A\u4EE5\u5916\u7684\u9519\u8BEF\u7C7B\u578B\u7684\u503C\u3002\\n\\n\u5982\u679C\u503C\u662F\u9664#N/A\u4E4B\u5916\u7684\u4EFB\u4F55\u9519\u8BEF\uFF08\u5305\u62EC#DIV/0!\u3001#NAME?\u3001#NULL!\u3001#NUM!\u3001#VALUE!\u548C#REF!\uFF09\uFF0CISERR\u5C06\u8FD4\u56DETRUE\u3002\",\r\n },\r\n ],\r\n },\r\n ISERROR: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u9519\u8BEF\u503C\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u9519\u8BEF\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A\u9519\u8BEF\u7C7B\u578B\u7684\u503C\u3002\\n\\n\u53EA\u8981\u503C\u662F\u67D0\u79CD\u9519\u8BEF\u503C\uFF08\u5305\u62EC#DIV/0!\u3001#N/A\u3001#NAME?\u3001#NULL!\u3001#NUM!\u3001#VALUE!\u548C#REF!\uFF09\uFF0CISERROR\u5C31\u4F1A\u8FD4\u56DETRUE\u3002\",\r\n },\r\n ],\r\n },\r\n ISLOGICAL: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F TRUE \u8FD8\u662F FALSE\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F TRUE \u8FD8\u662F FALSE\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u4E3A\u903B\u8F91TRUE\u8FD8\u662F\u903B\u8F91FALSE\u7684\u503C\u3002\\n\\n*\u5982\u679C\u503C\u4E3ATRUE\u6216FALSE\uFF0C\u6216\u4E3A\u6307\u5411\u503C\u4E3ATRUE\u6216FALSE\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CISLOGICAL\u5C06\u8FD4\u56DETRUE\u3002\",\r\n },\r\n ],\r\n },\r\n ISNA: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u9519\u8BEF\u503C #N/A\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u9519\u8BEF\u503C #N/A\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u4E0E\u9519\u8BEF\u503C#N/A\u8FDB\u884C\u6BD4\u8F83\u7684\u503C\u3002\\n\\n*\u5982\u679C\u503C\u4E3A#N/A\u6216\u6307\u5411\u5305\u542B#N/A\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5219ISNA\u5C06\u8FD4\u56DETRUE\uFF0C\u5426\u5219\u8FD4\u56DEFALSE\u3002\",\r\n },\r\n ],\r\n },\r\n ISNONTEXT: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u975E\u6587\u672C\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u975E\u6587\u672C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u68C0\u67E5\u7684\u6587\u672C\u3002\\n\\n*\u5982\u679C\u53C2\u6570\u4E3A\u6587\u672C\u503C\u6216\u6307\u5411\u5305\u542B\u6587\u672C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CISNONTEXT\u5C06\u8FD4\u56DEFALSE\uFF0C\u5426\u5219\u8FD4\u56DETRUE\u3002\\n\\n\u5F53\u503C\u4E3A\u6307\u5411\u7A7A\u5355\u5143\u683C\u7684\u5F15\u7528\u65F6\uFF0CISNONTEXT\u4F1A\u8FD4\u56DETRUE\u3002\\n\\n\u5F53\u503C\u4E3A\u7A7A\u5B57\u7B26\u4E32\u65F6\uFF0CISNONTEXT\u5C06\u8FD4\u56DEFALSE\uFF0C\u56E0\u4E3A\u7A7A\u4E32\u88AB\u89C6\u4F5C\u6587\u672C\u3002\",\r\n },\r\n ],\r\n },\r\n ISNUMBER: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u6570\u5B57\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A\u6570\u5B57\u7684\u503C\u3002\\n\\n*\u5982\u679C\u53C2\u6570\u4E3A\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u5B57\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CISNUMBER\u5C06\u8FD4\u56DETRUE\uFF0C\u5426\u5219\u8FD4\u56DEFALSE\u3002\",\r\n },\r\n ],\r\n },\r\n ISREF: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u6709\u6548\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u6709\u6548\u7684\u5355\u5143\u683C\u5F15\u7528\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A\u5355\u5143\u683C\u5F15\u7528\u7684\u503C\u3002\\n\\n*\u5982\u679C\u53C2\u6570\u662F\u6709\u6548\u7684\u5355\u5143\u683C\u5F15\u7528\uFF0CISREF\u5C06\u8FD4\u56DETRUE\uFF0C\u5426\u5219\u8FD4\u56DEFALSE\u3002\",\r\n },\r\n ],\r\n },\r\n ISTEXT: {\r\n d: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u6587\u672C\u3002\",\r\n a: \"\u68C0\u67E5\u67D0\u4E2A\u503C\u662F\u5426\u4E3A\u6587\u672C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u9A8C\u8BC1\u5176\u662F\u5426\u4E3A\u6587\u672C\u7684\u503C\u3002\\n\\n\u5982\u679C\u53C2\u6570\u4E3A\u6587\u672C\u503C\u6216\u6307\u5411\u5305\u542B\u6587\u672C\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CISTEXT\u5C06\u8FD4\u56DETRUE\uFF0C\u5426\u5219\u8FD4\u56DEFALSE\u3002\",\r\n },\r\n ],\r\n },\r\n TYPE: {\r\n d: \"\u8FD4\u56DE\u6570\u503C\u7684\u7C7B\u578B\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u503C\u7684\u7C7B\u578B\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u786E\u5B9A\u5176\u7C7B\u578B\u7684\u6570\u636E\u3002\\n\\n\u6570\u5B57 \u8FD4\u56DE 1;\\n\\n\u6587\u672C \u8FD4\u56DE 2;\\n\\n\u903B\u8F91\u503C \u8FD4\u56DE 4;\\n\\n\u9519\u8BEF\u503C \u8FD4\u56DE 16;\\n\\n\u6570\u7EC4 \u8FD4\u56DE 64;\",\r\n },\r\n ],\r\n },\r\n N: {\r\n d: \"\u8FD4\u56DE\u8F6C\u5316\u4E3A\u6570\u503C\u540E\u7684\u503C\u3002\",\r\n a: \"\u8FD4\u56DE\u8F6C\u5316\u4E3A\u6570\u503C\u540E\u7684\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u6570\u5B57\u7684\u53C2\u6570\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6570\u5B57\uFF0C\u5219\u8FD4\u56DE\u8BE5\u6570\u5B57\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u65E5\u671F\uFF0C\u5219\u8FD4\u56DE\u8BE5\u65E5\u671F\u7684\u5E8F\u5217\u53F7\u3002\\n\\n\u5982\u679C\u503C\u4E3ATRUE\uFF0C\u5219\u8FD4\u56DE1\u3002\\n\\n\u5982\u679C\u503C\u4E3AFALSE\uFF0C\u5219\u8FD4\u56DE0\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u9519\u8BEF\u503C\uFF0C\u5219\u8FD4\u56DE\u9519\u8BEF\u503C\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u5176\u4ED6\u503C\uFF0C\u5219\u8FD4\u56DE0\u3002\",\r\n },\r\n ],\r\n },\r\n TO_DATE: {\r\n d: \"\u5C06\u6307\u5B9A\u7684\u6570\u5B57\u8F6C\u6362\u4E3A\u65E5\u671F\u3002\",\r\n a: \"\u5C06\u6307\u5B9A\u7684\u6570\u5B57\u8F6C\u6362\u4E3A\u65E5\u671F\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u65E5\u671F\u7684\u53C2\u6570\u6216\u5176\u5355\u5143\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CTO_DATE\u4F1A\u5C06\u503C\u8F6C\u6362\u4E3A\u76F8\u5E94\u7684\u65E5\u671F\u5E76\u8FD4\u56DE\uFF0C\u503C\u4EE3\u8868\u4ECE\u5341\u4E8C\u670830\u65E5\u5230\u5BF9\u5E94\u7684\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570\uFF0C\\n\\n\u8D1F\u503C\u8868\u793A\u5BF9\u5E94\u7684\u65E5\u671F\u5728\u5341\u4E8C\u670830\u65E5\u4E4B\u524D\uFF0C\u800C\u5C0F\u6570\u503C\u5219\u4EE3\u8868\u4E00\u5929\u4E2D\u4ECE\u5348\u591C\u7B97\u8D77\u7684\u65F6\u95F4\u3002\\n\u5982\u679C\u503C\u4E0D\u662F\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5219TO_DATE\u5C06\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n TO_PURE_NUMBER: {\r\n d: \"\u5C06\u7ED9\u5B9A\u7684\u65E5\u671F/\u65F6\u95F4\u3001\u767E\u5206\u6BD4\u3001\u8D27\u5E01\u91D1\u989D\u6216\u5176\u4ED6\u683C\u5F0F\u7684\u6570\u503C\u8F6C\u6362\u4E3A\u4E0D\u5E26\u683C\u5F0F\u7684\u7EAF\u6570\u5B57\u3002\",\r\n a: \"\u5C06\u7ED9\u5B9A\u7684\u65E5\u671F/\u65F6\u95F4\u3001\u767E\u5206\u6BD4\u3001\u8D27\u5E01\u91D1\u989D\u6216\u5176\u4ED6\u683C\u5F0F\u7684\u6570\u503C\u8F6C\u6362\u4E3A\u4E0D\u5E26\u683C\u5F0F\u7684\u7EAF\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u7EAF\u6570\u5B57\u7684\u53C2\u6570\u6216\u5176\u5355\u5143\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6570\u5B57\u6216\u6307\u5411\u5305\u542B\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CTO_PURE_NUMBER\u5C06\u4EE5\u4E0D\u5E26\u4EFB\u4F55\u683C\u5F0F\u4E0E\u89E3\u91CA\u7684\u5F62\u5F0F\u8FD4\u56DE\u503C\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5219TO_PERCENT\u5C06\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n TO_TEXT: {\r\n d: \"\u5C06\u7ED9\u5B9A\u7684\u6570\u5B57\u503C\u8F6C\u6362\u4E3A\u6587\u672C\u683C\u5F0F\u3002\",\r\n a: \"\u5C06\u7ED9\u5B9A\u7684\u6570\u5B57\u503C\u8F6C\u6362\u4E3A\u6587\u672C\u683C\u5F0F\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u6587\u672C\u7684\u53C2\u6570\u6216\u5176\u5355\u5143\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6570\u5B57\u6216\u6307\u5411\u5305\u542B\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CTO_TEXT\u5C06\u8FD4\u56DE\u5B57\u7B26\u4E32\u5F62\u5F0F\u7684\u503C\uFF0C\u5E76\u4FDD\u6301\u73B0\u6709\u683C\u5F0F\u3002\u5373\u539F\u4E3A\u8D27\u5E01\u7684\u4ECD\u4E3A\u8D27\u5E01\uFF0C\u539F\u4E3A\u5341\u8FDB\u5236\u6570\u7684\u4ECD\u4E3A\u5341\u8FDB\u5236\u6570\uFF0C\u539F\u4E3A\u767E\u5206\u6BD4\u7684\u4ECD\u4E3A\u767E\u5206\u6BD4\uFF0C\u539F\u4E3A\u65E5\u671F\u7684\u4ECD\u4E3A\u65E5\u671F\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5219TO_TEXT\u5C06\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n TO_DOLLARS: {\r\n d: \"\u5C06\u6307\u5B9A\u7684\u6570\u5B57\u8F6C\u6362\u4E3A\u7F8E\u5143\u91D1\u989D\u3002\",\r\n a: \"\u5C06\u6307\u5B9A\u7684\u6570\u5B57\u8F6C\u6362\u4E3A\u7F8E\u5143\u91D1\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u7F8E\u5143\u91D1\u989D\u7684\u53C2\u6570\u6216\u5176\u5355\u5143\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5219 TO_DOLLARS \u5C06\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n TO_PERCENT: {\r\n d: \"\u5C06\u6307\u5B9A\u7684\u6570\u5B57\u8F6C\u6362\u4E3A\u767E\u5206\u6BD4\u3002\",\r\n a: \"\u5C06\u6307\u5B9A\u7684\u6570\u5B57\u8F6C\u6362\u4E3A\u767E\u5206\u6BD4\u3002\",\r\n p: [\r\n {\r\n name: \"value\",\r\n detail:\r\n \"\u8981\u8F6C\u6362\u4E3A\u767E\u5206\u6BD4\u7684\u53C2\u6570\u6216\u5176\u5355\u5143\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u4E3A\u6570\u5B57\u6216\u6307\u5411\u5305\u542B\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0CTO_PERCENT\u4F1A\u4EE51 = 100%\u4E3A\u6807\u51C6\uFF0C\u5C06\u503C\u8F6C\u6362\u4E3A\u767E\u5206\u6BD4\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6570\u5B57\u6216\u6307\u5411\u5185\u5BB9\u4E3A\u6570\u503C\u7684\u5355\u5143\u683C\u7684\u5F15\u7528\uFF0C\u5219TO_PERCENT\u5C06\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DGET: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u4ECE\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5217\u4E2D\u63D0\u53D6\u7B26\u5408\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u4E2A\u503C\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u4ECE\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5217\u4E2D\u63D0\u53D6\u7B26\u5408\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u4E2A\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DMAX: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5927\u6570\u5B57\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5927\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DMIN: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5C0F\u6570\u5B57\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5C0F\u6570\u5B57\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DAVERAGE: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u5BF9\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u503C\u6C42\u5E73\u5747\u503C\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u5BF9\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u503C\u6C42\u5E73\u5747\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DCOUNT: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u5305\u542B\u6570\u5B57\u7684\u5355\u5143\u683C\u7684\u4E2A\u6570\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u5305\u542B\u6570\u5B57\u7684\u5355\u5143\u683C\u7684\u4E2A\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DCOUNTA: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u975E\u7A7A\u5355\u5143\u683C\u7684\u4E2A\u6570\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u975E\u7A7A\u5355\u5143\u683C\u7684\u4E2A\u6570\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DPRODUCT: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u503C\u7684\u4E58\u79EF\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u503C\u7684\u4E58\u79EF\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DSTDEV: {\r\n d:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5229\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4F5C\u4E3A\u4E00\u4E2A\u6837\u672C\u4F30\u7B97\u51FA\u7684\u603B\u4F53\u6807\u51C6\u504F\u5DEE\u3002\",\r\n a:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5229\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4F5C\u4E3A\u4E00\u4E2A\u6837\u672C\u4F30\u7B97\u51FA\u7684\u603B\u4F53\u6807\u51C6\u504F\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DSTDEVP: {\r\n d:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5229\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4F5C\u4E3A\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u51FA\u7684\u603B\u4F53\u6807\u51C6\u504F\u5DEE\u3002\",\r\n a:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5229\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4F5C\u4E3A\u6837\u672C\u603B\u4F53\u8BA1\u7B97\u51FA\u7684\u603B\u4F53\u6807\u51C6\u504F\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DSUM: {\r\n d: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4E4B\u548C\u3002\",\r\n a: \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4E4B\u548C\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DVAR: {\r\n d:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5229\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4F5C\u4E3A\u4E00\u4E2A\u6837\u672C\u4F30\u7B97\u51FA\u7684\u603B\u4F53\u65B9\u5DEE\u3002\",\r\n a:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u8FD4\u56DE\u5229\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u4F5C\u4E3A\u4E00\u4E2A\u6837\u672C\u4F30\u7B97\u51FA\u7684\u603B\u4F53\u65B9\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n DVARP: {\r\n d:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u901A\u8FC7\u4F7F\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u8BA1\u7B97\u6837\u672C\u603B\u4F53\u7684\u6837\u672C\u603B\u4F53\u65B9\u5DEE\u3002\",\r\n a:\r\n \"\u4F7F\u7528 SQL \u5F0F\u67E5\u8BE2\uFF0C\u901A\u8FC7\u4F7F\u7528\u5217\u8868\u6216\u6570\u636E\u5E93\u4E2D\u6EE1\u8DB3\u6307\u5B9A\u6761\u4EF6\u7684\u8BB0\u5F55\u5B57\u6BB5\uFF08\u5217\uFF09\u4E2D\u7684\u6570\u5B57\u8BA1\u7B97\u6837\u672C\u603B\u4F53\u7684\u6837\u672C\u603B\u4F53\u65B9\u5DEE\u3002\",\r\n p: [\r\n {\r\n name: \"database\",\r\n detail: \"\u6784\u6210\u5217\u8868\u6216\u6570\u636E\u5E93\u7684\u5355\u5143\u683C\u533A\u57DF\uFF0C\u5217\u8868\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6807\u7B7E\u3002\",\r\n },\r\n {\r\n name: \"field\",\r\n detail:\r\n \"\u6307\u5B9A database \u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u63D0\u53D6\u548C\u7528\u4E8E\u8BA1\u7B97\u7684\u503C\u3002\\n\\nfield \u53EF\u4EE5\u662F\u4E0E database \u7B2C\u4E00\u884C\u4E2D\u67D0\u4E2A\u5217\u6807\u9898\u5BF9\u5E94\u7684\u6587\u672C\u6807\u7B7E\uFF0C\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u5173\u5217\u7684\u6570\u5B57\u7D22\u5F15\uFF0C\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u4E3A 1\u3002\",\r\n },\r\n {\r\n name: \"criteria\",\r\n detail: \"\u5305\u542B\u6240\u6307\u5B9A\u6761\u4EF6\u7684\u5355\u5143\u683C\u533A\u57DF\u3002\u8BA1\u7B97\u4E4B\u524D\u5C06\u4F7F\u7528\u8FD9\u4E9B\u6761\u4EF6\u6765\u8FC7\u6EE4 database \u4E2D\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n AGE_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u5E74\u9F84\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u5E74\u9F84\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u622A\u6B62\u65E5\u671F\",\r\n detail: \"\u5E74\u9F84\u8BA1\u7B97\u7684\u622A\u6B62\u65E5\u671F\u6216\u8303\u56F4\uFF0C\u9ED8\u8BA4\u4E3A\u5F53\u65E5\u3002\",\r\n },\r\n ],\r\n },\r\n SEX_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u6027\u522B\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u6027\u522B\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n BIRTHDAY_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u751F\u65E5\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u751F\u65E5\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"\u751F\u65E5\u683C\u5F0F\",\r\n detail: \"\u65E5\u671F\u7C7B\u578B,\u9ED8\u8BA40:[1900/01/01], 1:[1900-01-01], 2:[1900\u5E741\u67081\u65E5]\",\r\n },\r\n ],\r\n },\r\n PROVINCE_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u7C4D\u8D2F\u7684\u7701\u4EFD\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u7C4D\u8D2F\u7684\u7701\u4EFD\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n CITY_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u7C4D\u8D2F\u7684\u57CE\u5E02\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u7C4D\u8D2F\u7684\u57CE\u5E02\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n STAR_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u661F\u5EA7\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u661F\u5EA7\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n ANIMAL_BY_IDCARD: {\r\n d: \"\u6839\u636E\u4E2D\u56FD\u8EAB\u4EFD\u8BC1\u53F7\u8BA1\u7B97\u51FA\u751F\u8096\uFF08\u9F20\u3001\u725B\u3001\u864E\u3001\u5154...\uFF09\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u6839\u636E\u8EAB\u4EFD\u8BC1\u53F7\u5F97\u5230\u751F\u8096\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n ISIDCARD: {\r\n d: \"\u9A8C\u8BC1\u8EAB\u4EFD\u8BC1\u7684\u683C\u5F0F\u662F\u5426\u6B63\u786E\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8BC1\",\r\n a: \"\u9A8C\u8BC1\u8EAB\u4EFD\u8BC1\u683C\u5F0F\u6B63\u786E\u6027\u3002\",\r\n p: [\r\n {\r\n name: \"\u8EAB\u4EFD\u8BC1\u53F7\",\r\n detail: \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8BC1\u53F7\u6216\u8303\u56F4\u3002\",\r\n },\r\n ],\r\n },\r\n DM_TEXT_CUTWORD: {\r\n d: \"\u6587\u672C\u5206\u8BCD\u3002\u628A\u4E00\u8FDE\u4E32\u6587\u5B57\u62C6\u5206\u4E3A\u4E00\u7CFB\u5217\u5355\u72EC\u8BCD\u8BED\",\r\n a: \"\u4E2D\u6587\u6587\u672C\u5206\u8BCD\u3002\",\r\n p: [\r\n {\r\n name: \"\u6587\u672C\",\r\n detail: \"\u4EFB\u610F\u9700\u8981\u5206\u8BCD\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"\u5206\u8BCD\u6A21\u5F0F\",\r\n detail: \"\u9ED8\u8BA4\u4E3A0[\u7CBE\u786E\u6A21\u5F0F], 1[\u5168\u6A21\u5F0F], 2[\u641C\u7D22\u5F15\u64CE\u6A21\u5F0F]\u3002\",\r\n },\r\n ],\r\n },\r\n DM_TEXT_TFIDF: {\r\n d: \"\u91C7\u7528tf-idf\u7B97\u6CD5\u8FDB\u884C\u5173\u952E\u8BCD\u63D0\u53D6\u3002\u4ECE\u4E00\u8FDE\u4E32\u6587\u5B57\u4E2D\u8BC6\u522B\u5173\u952E\u8BCD\",\r\n a: \"tf-idf\u5173\u952E\u8BCD\u8BC6\u522B\u3002\",\r\n p: [\r\n {\r\n name: \"\u6587\u672C\",\r\n detail: \"\u4EFB\u610F\u9700\u8981\u5206\u8BCD\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"\u5173\u952E\u8BCD\u4E2A\u6570\",\r\n detail: \"\u7B97\u6CD5\u8FD4\u56DE\u7684\u5173\u952E\u8BCD\u4E2A\u6570\uFF0C\u9ED8\u8BA420\",\r\n },\r\n {\r\n name: \"\u8BED\u6599\u5E93\",\r\n detail: \"\u9009\u62E9\u7279\u5B9A\u9886\u57DF\u7684\u8BED\u6599\u5E93\uFF0C\u9ED8\u8BA40[\u901A\u7528], 1[\u91D1\u878D], 2[\u533B\u7597]\",\r\n },\r\n ],\r\n },\r\n DM_TEXT_TEXTRANK: {\r\n d: \"\u91C7\u7528TextRank\u7B97\u6CD5\u8FDB\u884C\u5173\u952E\u8BCD\u63D0\u53D6\u3002\u4ECE\u4E00\u8FDE\u4E32\u6587\u5B57\u4E2D\u8BC6\u522B\u5173\u952E\u8BCD\",\r\n a: \"TextRank\u5173\u952E\u8BCD\u8BC6\u522B\u3002\",\r\n p: [\r\n {\r\n name: \"\u6587\u672C\",\r\n detail: \"\u4EFB\u610F\u9700\u8981\u5206\u8BCD\u7684\u6587\u672C\u3002\",\r\n },\r\n {\r\n name: \"\u5173\u952E\u8BCD\u4E2A\u6570\",\r\n detail: \"\u7B97\u6CD5\u8FD4\u56DE\u7684\u5173\u952E\u8BCD\u4E2A\u6570\uFF0C\u9ED8\u8BA420\",\r\n },\r\n {\r\n name: \"\u8BED\u6599\u5E93\",\r\n detail: \"\u9009\u62E9\u7279\u5B9A\u9886\u57DF\u7684\u8BED\u6599\u5E93\uFF0C\u9ED8\u8BA40[\u901A\u7528], 1[\u91D1\u878D], 2[\u533B\u7597]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_CLOSE: {\r\n d: \"\u6839\u636E\u80A1\u7968\u4EE3\u7801\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6536\u76D8\u4EF7\u3002\",\r\n a: \"\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6536\u76D8\u4EF7\u3002\",\r\n p: [\r\n {\r\n name: \"\u80A1\u7968\u4EE3\u7801\",\r\n detail: \"6\u4F4D\u80A1\u7968\u4EE3\u7801\uFF0C\u5FC5\u586B\u9879\u3002\",\r\n },\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\",\r\n },\r\n {\r\n name: \"\u590D\u6743\u9664\u6743\",\r\n detail: \"\u9009\u62E9\u80A1\u7968\u7684\u9664\u6743\u590D\u6743\u7C7B\u578B\uFF0C\u9ED8\u8BA40[\u524D\u590D\u6743], 1[\u539F\u59CB\u4EF7\u683C], 2[\u540E\u590D\u6743]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_OPEN: {\r\n d: \"\u6839\u636E\u80A1\u7968\u4EE3\u7801\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u5F00\u76D8\u4EF7\u3002\",\r\n a: \"\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u5F00\u76D8\u4EF7\u3002\",\r\n p: [\r\n {\r\n name: \"\u80A1\u7968\u4EE3\u7801\",\r\n detail: \"6\u4F4D\u80A1\u7968\u4EE3\u7801\uFF0C\u5FC5\u586B\u9879\u3002\",\r\n },\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\",\r\n },\r\n {\r\n name: \"\u590D\u6743\u9664\u6743\",\r\n detail: \"\u9009\u62E9\u80A1\u7968\u7684\u9664\u6743\u590D\u6743\u7C7B\u578B\uFF0C\u9ED8\u8BA40[\u524D\u590D\u6743], 1[\u539F\u59CB\u4EF7\u683C], 2[\u540E\u590D\u6743]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_MAX: {\r\n d: \"\u6839\u636E\u80A1\u7968\u4EE3\u7801\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6700\u9AD8\u4EF7\u3002\",\r\n a: \"\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6700\u9AD8\u4EF7\u3002\",\r\n p: [\r\n {\r\n name: \"\u80A1\u7968\u4EE3\u7801\",\r\n detail: \"6\u4F4D\u80A1\u7968\u4EE3\u7801\uFF0C\u5FC5\u586B\u9879\u3002\",\r\n },\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\",\r\n },\r\n {\r\n name: \"\u590D\u6743\u9664\u6743\",\r\n detail: \"\u9009\u62E9\u80A1\u7968\u7684\u9664\u6743\u590D\u6743\u7C7B\u578B\uFF0C\u9ED8\u8BA40[\u524D\u590D\u6743], 1[\u539F\u59CB\u4EF7\u683C], 2[\u540E\u590D\u6743]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_MIN: {\r\n d: \"\u6839\u636E\u80A1\u7968\u4EE3\u7801\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6700\u4F4E\u4EF7\u3002\",\r\n a: \"\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6700\u4F4E\u4EF7\u3002\",\r\n p: [\r\n {\r\n name: \"\u80A1\u7968\u4EE3\u7801\",\r\n detail: \"6\u4F4D\u80A1\u7968\u4EE3\u7801\uFF0C\u5FC5\u586B\u9879\u3002\",\r\n },\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\",\r\n },\r\n {\r\n name: \"\u590D\u6743\u9664\u6743\",\r\n detail: \"\u9009\u62E9\u80A1\u7968\u7684\u9664\u6743\u590D\u6743\u7C7B\u578B\uFF0C\u9ED8\u8BA40[\u524D\u590D\u6743], 1[\u539F\u59CB\u4EF7\u683C], 2[\u540E\u590D\u6743]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_VOLUMN: {\r\n d: \"\u6839\u636E\u80A1\u7968\u4EE3\u7801\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6210\u4EA4\u91CF\u3002\",\r\n a: \"\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6210\u4EA4\u91CF\u3002\",\r\n p: [\r\n {\r\n name: \"\u80A1\u7968\u4EE3\u7801\",\r\n detail: \"6\u4F4D\u80A1\u7968\u4EE3\u7801\uFF0C\u5FC5\u586B\u9879\u3002\",\r\n },\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\",\r\n },\r\n {\r\n name: \"\u590D\u6743\u9664\u6743\",\r\n detail: \"\u9009\u62E9\u80A1\u7968\u7684\u9664\u6743\u590D\u6743\u7C7B\u578B\uFF0C\u9ED8\u8BA40[\u524D\u590D\u6743], 1[\u539F\u59CB\u4EF7\u683C], 2[\u540E\u590D\u6743]\",\r\n },\r\n ],\r\n },\r\n DATA_CN_STOCK_AMOUNT: {\r\n d: \"\u6839\u636E\u80A1\u7968\u4EE3\u7801\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6210\u4EA4\u989D\u3002\",\r\n a: \"\u8FD4\u56DEA\u80A1\u5BF9\u5E94\u80A1\u7968\u6210\u4EA4\u989D\u3002\",\r\n p: [\r\n {\r\n name: \"\u80A1\u7968\u4EE3\u7801\",\r\n detail: \"6\u4F4D\u80A1\u7968\u4EE3\u7801\uFF0C\u5FC5\u586B\u9879\u3002\",\r\n },\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\",\r\n },\r\n {\r\n name: \"\u590D\u6743\u9664\u6743\",\r\n detail: \"\u9009\u62E9\u80A1\u7968\u7684\u9664\u6743\u590D\u6743\u7C7B\u578B\uFF0C\u9ED8\u8BA40[\u524D\u590D\u6743], 1[\u539F\u59CB\u4EF7\u683C], 2[\u540E\u590D\u6743]\",\r\n },\r\n ],\r\n },\r\n ISDATE: {\r\n d: \"\u9A8C\u8BC1\u65E5\u671F\u7684\u683C\u5F0F\u662F\u5426\u6B63\u786E\u3002\u652F\u6301\u591A\u79CD\u65E5\u671F\u683C\u5F0F\",\r\n a: \"\u9A8C\u8BC1\u65E5\u671F\u683C\u5F0F\u6B63\u786E\u6027\u3002\",\r\n p: [\r\n {\r\n name: \"\u65E5\u671F\",\r\n detail: \"\u65E5\u671F\u503C\uFF0C\u4F8B\u59821990/01/01, 1990\u5E741\u67081\u65E5\u7B49\u3002\",\r\n },\r\n ],\r\n },\r\n LINESPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u6298\u7EBF\u56FEsparklines\uFF0C\u7528\u4E8E\u63CF\u8FF0\u6570\u636E\u7684\u8FDE\u7EED\u8D70\u52BF\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u6298\u7EBF\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u7EBF\u6761\u989C\u8272\",\r\n detail:\r\n \"\u7EBF\u56FE\u7684\u7EBF\u6761\u989C\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u4E2A\u8303\u56F4A1\u3001\u8272\u8868\u7D22\u5F15\u6570\u503C\u6216\u8005\u5177\u4F53\u989C\u8272\u503C\uFF0C\u8BBE\u7F6E\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8BA4#2ec7c9\",\r\n },\r\n {\r\n name: \"\u7EBF\u6761\u7C97\u7EC6\",\r\n detail: \"\u6298\u7EBF\u56FE\u7EBF\u6BB5\u7C97\u7EC6\uFF0C\u9ED8\u8BA4\u4E3A1px\",\r\n },\r\n {\r\n name: \"\u8F85\u52A9\u7EBF\",\r\n detail: \"\u4E00\u6761\u6A2A\u7EBF\uFF0C\u53EF\u4EE5\u662Fmin\u3001max\u3001avg\u3001median\u3001\u8303\u56F4\u6216\u81EA\u5B9A\u4E49\u6570\u503C\uFF0C\u9ED8\u8BA40\u65E0\",\r\n },\r\n {\r\n name: \"\u8F85\u52A9\u7EBF\u989C\u8272\",\r\n detail: \"\u8F85\u52A9\u7EBF\u7684\u989C\u8272\u8BBE\u7F6E\uFF0C\u540C\u7EBF\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA4#000\",\r\n },\r\n {\r\n name: \"\u6700\u5927\u503C\u6807\u8BC6\",\r\n detail: \"\u6807\u8BC6\u7EBF\u56FE\u6700\u5927\u503C\uFF0C\u540C\u7EBF\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA40\u4E0D\u663E\u793A\",\r\n },\r\n {\r\n name: \"\u6700\u5C0F\u503C\u6807\u8BC6\",\r\n detail: \"\u6807\u8BC6\u7EBF\u56FE\u6700\u5C0F\u503C\uFF0C\u540C\u7EBF\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA40\u4E0D\u663E\u793A\",\r\n },\r\n {\r\n name: \"\u6807\u8BC6\u5927\u5C0F\",\r\n detail: \"\u6700\u5927\u503C\u548C\u6700\u5C0F\u503C\u7684\u6807\u8BC6\u5927\u5C0F\u8BBE\u7F6E\uFF0C\u9ED8\u8BA4\u4E3A1.5\",\r\n },\r\n ],\r\n },\r\n AREASPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u9762\u79EF\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u6570\u636E\u7684\u8FDE\u7EED\u7D2F\u79EF\u503C\u8D70\u52BF\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u9762\u79EF\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u7EBF\u6761\u989C\u8272\",\r\n detail:\r\n \"\u7EBF\u56FE\u7684\u7EBF\u6761\u989C\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u4E2A\u8303\u56F4A1\u3001\u8272\u8868\u7D22\u5F15\u6570\u503C\u6216\u8005\u5177\u4F53\u989C\u8272\u503C\uFF0C\u8BBE\u7F6E\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8BA4#2ec7c9\",\r\n },\r\n {\r\n name: \"\u586B\u5145\u989C\u8272\",\r\n detail: \"\u5F62\u6210\u9762\u79EF\u56FE\uFF0C\u540C\u7EBF\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA40\u4E0D\u663E\u793A\",\r\n },\r\n {\r\n name: \"\u7EBF\u6761\u7C97\u7EC6\",\r\n detail: \"\u6298\u7EBF\u56FE\u7EBF\u6BB5\u7C97\u7EC6\uFF0C\u9ED8\u8BA4\u4E3A1px\",\r\n },\r\n {\r\n name: \"\u8F85\u52A9\u7EBF\",\r\n detail: \"\u4E00\u6761\u6A2A\u7EBF\uFF0C\u53EF\u4EE5\u662Fmin\u3001max\u3001avg\u3001median\u3001\u8303\u56F4\u6216\u81EA\u5B9A\u4E49\u6570\u503C\uFF0C\u9ED8\u8BA40\u65E0\",\r\n },\r\n {\r\n name: \"\u8F85\u52A9\u7EBF\u989C\u8272\",\r\n detail: \"\u8F85\u52A9\u7EBF\u7684\u989C\u8272\u8BBE\u7F6E\uFF0C\u540C\u7EBF\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA4#000\",\r\n },\r\n ],\r\n },\r\n COLUMNSPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u5782\u76F4\u67F1\u72B6\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u79BB\u6563\u6570\u636E\u4E4B\u95F4\u7684\u5927\u5C0F\u60C5\u51B5\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u5782\u76F4\u67F1\u72B6\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u95F4\u9694\",\r\n detail: \"\u67F1\u6761\u4E4B\u95F4\u7684\u95F4\u9694\u8DDD\u79BB\uFF0C\u9ED8\u8BA4\u4E3A1\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u989C\u8272\",\r\n detail:\r\n \"\u7EBF\u56FE\u7684\u7EBF\u6761\u989C\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u4E2A\u8303\u56F4A1\u3001\u8272\u8868\u7D22\u5F15\u6570\u503C\u6216\u8005\u5177\u4F53\u989C\u8272\u503C\uFF0C\u8BBE\u7F6E\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8BA4#fc5c5c\",\r\n },\r\n {\r\n name: \"\u8D1F\u5411\u67F1\u6761\u989C\u8272\",\r\n detail: \"\u8D1F\u5411\u67F1\u6761\u989C\u8272\u8BBE\u7F6E\uFF0C\u4EE3\u8868\u8D1F\u503C\u7684\u989C\u8272\uFF0C\u540C\u67F1\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA4#97b552\",\r\n },\r\n {\r\n name: \"\u6700\u5927\u503C\",\r\n detail: \"\u67F1\u56FE\u6700\u5927\u503C\uFF0C\u7528\u4E8E\u89C4\u8303\u67F1\u56FE\u957F\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A\u81EA\u52A8\u8BA1\u7B97false\u3001auto\u3001null\",\r\n },\r\n {\r\n name: \"\u8272\u677F\",\r\n detail:\r\n \"\u8C03\u8272\u677F\u53EF\u4EE5\u5355\u72EC\u8BBE\u7F6E\u6BCF\u4E2A\u67F1\u6761\u7684\u989C\u8272\uFF0C\u53EF\u8BBE\u7F6E\u591A\u4E2A\uFF0C\u652F\u6301\u4E24\u79CD\u683C\u5F0F\uFF1A1\u989C\u8272\u4F8B\u5982#000\uFF0C\u4EE3\u8868\u7B2C\u4E00\u4E2A\u67F1\u7684\u989C\u8272\u662F\u9ED1\u8272\uFF1B2\u6570\u503C\u8303\u56F4:\u989C\u8272\uFF0C\u4F8B\u5982-2:#000\u8868\u793A\u6570\u503C\u4E3A-2\u7684\u67F1\u4E3A\u9ED1\u8272\uFF0C0:5:#000\u8868\u793A\u6570\u503C0-5\u7684\u67F1\u4E3A\u9ED1\u8272\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\",\r\n },\r\n ],\r\n },\r\n STACKCOLUMNSPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u7D2F\u79EF\u5782\u76F4\u67F1\u72B6\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u79BB\u6563\u6570\u636E\u591A\u4E2A\u7EF4\u5EA6\u7684\u6570\u503C\u5927\u5C0F\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u7D2F\u79EF\u5782\u76F4\u67F1\u72B6\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u6309\u5217\u5806\u79EF\",\r\n detail: \"\u5982\u679C\u9700\u8981\u6309\u884C\u5806\u79EF\u5219\u672C\u9879\u8BBE\u4E3Afalse\u62160\uFF0C\u9ED8\u8BA4\u4E3A\u662F1\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u95F4\u9694\",\r\n detail: \"\u67F1\u6761\u4E4B\u95F4\u7684\u95F4\u9694\u8DDD\u79BB\uFF0C\u9ED8\u8BA4\u4E3A1\",\r\n },\r\n {\r\n name: \"\u6700\u5927\u503C\",\r\n detail: \"\u7D2F\u79EF\u67F1\u56FE\u6700\u5927\u503C\uFF0C\u7528\u4E8E\u89C4\u8303\u67F1\u56FE\u957F\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A\u81EA\u52A8\u8BA1\u7B97false\u3001auto\u3001null\",\r\n },\r\n {\r\n name: \"\u7D2F\u79EF\u8272\u677F\",\r\n detail:\r\n \"\u8C03\u8272\u677F\u53EF\u4EE5\u5355\u72EC\u8BBE\u7F6E\u6BCF\u4E2A\u7EF4\u5EA6\u7684\u67F1\u6761\u989C\u8272\uFF0C\u53EF\u8BBE\u7F6E\u4E3AA1:A10\u7B49\u8303\u56F4\uFF0C\u9ED8\u8BA4\u4E3A#2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\",\r\n },\r\n ],\r\n },\r\n BARSPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u6A2A\u5411\u6761\u5F62\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u79BB\u6563\u6570\u636E\u4E4B\u95F4\u7684\u5927\u5C0F\u60C5\u51B5\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u6A2A\u5411\u6761\u5F62\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u95F4\u9694\",\r\n detail: \"\u67F1\u6761\u4E4B\u95F4\u7684\u95F4\u9694\u8DDD\u79BB\uFF0C\u9ED8\u8BA4\u4E3A1\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u989C\u8272\",\r\n detail:\r\n \"\u7EBF\u56FE\u7684\u7EBF\u6761\u989C\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u4E2A\u8303\u56F4A1\u3001\u8272\u8868\u7D22\u5F15\u6570\u503C\u6216\u8005\u5177\u4F53\u989C\u8272\u503C\uFF0C\u8BBE\u7F6E\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8BA4#fc5c5c\",\r\n },\r\n {\r\n name: \"\u8D1F\u5411\u67F1\u6761\u989C\u8272\",\r\n detail: \"\u8D1F\u5411\u67F1\u6761\u989C\u8272\u8BBE\u7F6E\uFF0C\u4EE3\u8868\u8D1F\u503C\u7684\u989C\u8272\uFF0C\u540C\u67F1\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA4#97b552\",\r\n },\r\n {\r\n name: \"\u6700\u5927\u503C\",\r\n detail: \"\u67F1\u56FE\u6700\u5927\u503C\uFF0C\u7528\u4E8E\u89C4\u8303\u67F1\u56FE\u957F\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A\u81EA\u52A8\u8BA1\u7B97false\u3001auto\u3001null\",\r\n },\r\n {\r\n name: \"\u8272\u677F\",\r\n detail:\r\n \"\u8C03\u8272\u677F\u53EF\u4EE5\u5355\u72EC\u8BBE\u7F6E\u6BCF\u4E2A\u67F1\u6761\u7684\u989C\u8272\uFF0C\u53EF\u8BBE\u7F6E\u591A\u4E2A\uFF0C\u652F\u6301\u4E24\u79CD\u683C\u5F0F\uFF1A1\u989C\u8272\u4F8B\u5982#000\uFF0C\u4EE3\u8868\u7B2C\u4E00\u4E2A\u67F1\u7684\u989C\u8272\u662F\u9ED1\u8272\uFF1B2\u6570\u503C\u8303\u56F4:\u989C\u8272\uFF0C\u4F8B\u5982-2:#000\u8868\u793A\u6570\u503C\u4E3A-2\u7684\u67F1\u4E3A\u9ED1\u8272\uFF0C0:5:#000\u8868\u793A\u6570\u503C0-5\u7684\u67F1\u4E3A\u9ED1\u8272\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\",\r\n },\r\n ],\r\n },\r\n STACKBARSPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u7D2F\u79EF\u6A2A\u5411\u6761\u5F62\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u79BB\u6563\u6570\u636E\u591A\u4E2A\u7EF4\u5EA6\u7684\u6570\u503C\u5927\u5C0F\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u7D2F\u79EF\u6A2A\u5411\u6761\u5F62\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u6309\u5217\u5806\u79EF\",\r\n detail: \"\u5982\u679C\u9700\u8981\u6309\u884C\u5806\u79EF\u5219\u672C\u9879\u8BBE\u4E3Afalse\u62160\uFF0C\u9ED8\u8BA4\u4E3A\u662F1\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u95F4\u9694\",\r\n detail: \"\u67F1\u6761\u4E4B\u95F4\u7684\u95F4\u9694\u8DDD\u79BB\uFF0C\u9ED8\u8BA4\u4E3A1\",\r\n },\r\n {\r\n name: \"\u6700\u5927\u503C\",\r\n detail: \"\u7D2F\u79EF\u67F1\u56FE\u6700\u5927\u503C\uFF0C\u7528\u4E8E\u89C4\u8303\u67F1\u56FE\u957F\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A\u81EA\u52A8\u8BA1\u7B97false\u3001auto\u3001null\",\r\n },\r\n {\r\n name: \"\u7D2F\u79EF\u8272\u677F\",\r\n detail:\r\n \"\u8C03\u8272\u677F\u53EF\u4EE5\u5355\u72EC\u8BBE\u7F6E\u6BCF\u4E2A\u7EF4\u5EA6\u7684\u67F1\u6761\u989C\u8272\uFF0C\u53EF\u8BBE\u7F6E\u4E3AA1:A10\u7B49\u8303\u56F4\uFF0C\u9ED8\u8BA4\u4E3A#2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\",\r\n },\r\n ],\r\n },\r\n DISCRETESPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u79BB\u6563\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u79BB\u6563\u6570\u636E\u8D70\u52BF\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u79BB\u6563\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u5206\u5272\u9608\u503C\",\r\n detail: \"\u79BB\u6563\u56FE\u67F1\u5F62\u989C\u8272\u7684\u533A\u5206\uFF0C\u4F8B\u5982\uFF1A\u8BE5\u503C\u4E3A0\uFF0C\u5219\u5927\u4E8E0\u4E3A\u84DD\u8272\uFF0C\u5C0F\u4E8E0\u4E3A\u7EA2\u8272\uFF0C\u9ED8\u8BA4\u4E3A0\",\r\n },\r\n {\r\n name: \"\u9608\u503C\u4EE5\u4E0A\u989C\u8272\",\r\n detail:\r\n \"\u7EBF\u56FE\u7684\u7EBF\u6761\u989C\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u4E2A\u8303\u56F4A1\u3001\u8272\u8868\u7D22\u5F15\u6570\u503C\u6216\u8005\u5177\u4F53\u989C\u8272\u503C\uFF0C\u8BBE\u7F6E\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8BA4#2ec7c9\",\r\n },\r\n {\r\n name: \"\u9608\u503C\u4EE5\u4E0B\u989C\u8272\",\r\n detail: \"\u9608\u503C\u4EE5\u4E0B\u67F1\u6761\u989C\u8272\u8BBE\u7F6E\uFF0C\u540C\u9608\u503C\u4EE5\u4E0A\u989C\u8272\uFF0C\u9ED8\u8BA4#fc5c5c\",\r\n },\r\n ],\r\n },\r\n TRISTATESPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u4E09\u6001\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u4E09\u79CD\u6001\u52BF\u7684\u8D70\u52BF\u4F8B\u5982\u80DC\u8D1F\u5E73\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u4E09\u6001\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u95F4\u9694\",\r\n detail: \"\u67F1\u6761\u4E4B\u95F4\u7684\u95F4\u9694\u8DDD\u79BB\uFF0C\u9ED8\u8BA4\u4E3A1\",\r\n },\r\n {\r\n name: \"\u67F1\u6761\u989C\u8272\",\r\n detail:\r\n \"\u7EBF\u56FE\u7684\u7EBF\u6761\u989C\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u4E2A\u8303\u56F4A1\u3001\u8272\u8868\u7D22\u5F15\u6570\u503C\u6216\u8005\u5177\u4F53\u989C\u8272\u503C\uFF0C\u8BBE\u7F6E\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8BA4#fc5c5c\",\r\n },\r\n {\r\n name: \"\u8D1F\u5411\u67F1\u6761\u989C\u8272\",\r\n detail: \"\u8D1F\u5411\u67F1\u6761\u989C\u8272\u8BBE\u7F6E\uFF0C\u4EE3\u8868\u8D1F\u503C\u7684\u989C\u8272\uFF0C\u540C\u67F1\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA4#97b552\",\r\n },\r\n {\r\n name: \"\u96F6\u503C\u67F1\u6761\u989C\u8272\",\r\n detail: \"\u96F6\u503C\u67F1\u6761\u989C\u8272\u8BBE\u7F6E\uFF0C\u4EE3\u88680\u503C\u989C\u8272\uFF0C\u540C\u67F1\u6761\u989C\u8272\u914D\u7F6E\uFF0C\u9ED8\u8BA4#999\",\r\n },\r\n {\r\n name: \"\u8272\u677F\",\r\n detail:\r\n \"\u8C03\u8272\u677F\u53EF\u4EE5\u5355\u72EC\u8BBE\u7F6E\u6BCF\u4E2A\u67F1\u6761\u7684\u989C\u8272\uFF0C\u53EF\u8BBE\u7F6E\u591A\u4E2A\uFF0C\u652F\u6301\u4E24\u79CD\u683C\u5F0F\uFF1A1\u989C\u8272\u4F8B\u5982#000\uFF0C\u4EE3\u8868\u7B2C\u4E00\u4E2A\u67F1\u7684\u989C\u8272\u662F\u9ED1\u8272\uFF1B2\u6570\u503C\u8303\u56F4:\u989C\u8272\uFF0C\u4F8B\u5982-2:#000\u8868\u793A\u6570\u503C\u4E3A-2\u7684\u67F1\u4E3A\u9ED1\u8272\uFF0C0-5:#000\u8868\u793A\u6570\u503C0-5\u7684\u67F1\u4E3A\u9ED1\u8272\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\",\r\n },\r\n ],\r\n },\r\n PIESPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u997C\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u6570\u636E\u5360\u6BD4\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u997C\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u65CB\u8F6C\u89D2\u5EA6\",\r\n detail: \"\u997C\u56FE\u7684\u65CB\u8F6C\u89D2\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A0\",\r\n },\r\n {\r\n name: \"\u997C\u56FE\u8FB9\u6846\",\r\n detail: \"\u997C\u56FE\u8FB9\u6846\u5927\u5C0F\uFF0C\u9ED8\u8BA4\u4E3A\u65E00\",\r\n },\r\n {\r\n name: \"\u8FB9\u6846\u989C\u8272\",\r\n detail: \"\u997C\u56FE\u8FB9\u6846\u989C\u8272\uFF0C\u9ED8\u8BA4\u4E3A#000\",\r\n },\r\n {\r\n name: \"\u997C\u56FE\u8272\u677F\",\r\n detail:\r\n \"\u8C03\u8272\u677F\u53EF\u4EE5\u8BBE\u7F6E\u5207\u7247\u7684\u989C\u8272\uFF0C\u53EF\u8BBE\u7F6E\u4E3AA1:A10\u7B49\u8303\u56F4\uFF0C\u9ED8\u8BA4\u4E3A#2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\",\r\n },\r\n ],\r\n },\r\n BOXSPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u7BB1\u7EBF\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u6570\u636E\u96C6\u7684\u7EDF\u8BA1\u5206\u5E03\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u7BB1\u7EBF\u56FE\",\r\n p: [\r\n {\r\n name: \"\u6570\u636E\u8303\u56F4\",\r\n detail: \"\u6570\u636E\u8303\u56F4\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C {1,2,3,4,5}\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u79BB\u7FA4\u70B9\u6BD4\u4F8B\",\r\n detail: \"\u79BB\u7FA4\u70B9\u7684\u9608\u503C\u8303\u56F4\uFF0C\u5982\u679C\u4E3A0\u6216false\u5219\u4E0D\u663E\u793A\uFF0C\u9ED8\u8BA4\u4E3A1.5\u500D\",\r\n },\r\n {\r\n name: \"\u76EE\u6807\u70B9\u503C\",\r\n detail: \"\u7BB1\u7EBF\u56FE\u4E0A\u7684\u76EE\u6807\u503C\u8BBE\u7F6E\uFF0C\u9ED8\u8BA4\u4E3Afalse\u4E0D\u663E\u793A\",\r\n },\r\n {\r\n name: \"\u6570\u636E\u70B9\u5927\u5C0F\",\r\n detail: \"\u76EE\u6807\u70B9\u548C\u79BB\u7FA4\u70B9\u7684\u534A\u5F84\u5927\u5C0F\u8BBE\u7F6E\uFF0C\u9ED8\u8BA4\u4E3A1.5\",\r\n },\r\n ],\r\n },\r\n BULLETSPLINES: {\r\n d: \"\u751F\u6210\u5D4C\u5165\u5728\u5355\u5143\u683C\u5185\u7684\u5B50\u5F39\u56FEsparklines\uFF0C\u4E00\u822C\u7528\u4E8E\u63CF\u8FF0\u4EFB\u52A1\u8FBE\u6210\u7387\",\r\n a: \"\u751F\u6210\u5355\u5143\u683C\u5B50\u5F39\u56FE\",\r\n p: [\r\n {\r\n name: \"\u76EE\u6807\",\r\n detail: \"\u8FBE\u6210\u7684\u76EE\u6807\u503C\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1\uFF0C 100\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u5B9E\u9645\u5B8C\u6210\",\r\n detail: \"\u76EE\u524D\u5B8C\u6210\u503C\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1\uFF0C 100\u7B49\u3002\",\r\n },\r\n {\r\n name: \"\u5BF9\u6BD4\u503C\",\r\n detail:\r\n \"\u5BF9\u6BD4\u503C\uFF0C\u4F8B\u5982\u8D85\u989D\u3001\u6700\u4F4E\u3001\u83B7\u5956\u5E95\u7EBF\u7B49\uFF0C\u6570\u503C\u624D\u80FD\u88AB\u6709\u6548\u8BA1\u7B97\uFF0C\u4F8B\u5982A1\uFF0C 100\u7B49\u3002\u53EF\u4EE5\u8BBE\u7F6E\u6700\u591A9\u4E2A\u5BF9\u6BD4\u503C\",\r\n },\r\n ],\r\n },\r\n COMPOSESPLINES: {\r\n d: \"\u652F\u6301\u591A\u4E2A\u7C7B\u578B\u7684\u56FE\u753B\u5728\u540C\u4E00\u4E2A\u5355\u5143\u683C,\u6BCF\u4E2A\u53C2\u6570\u4EE3\u8868\u4E00\u4E2Asparklines\u56FE\",\r\n a: \"\u7EC4\u5408sparklines\u56FE\u5230\u4E00\u4E2A\u5355\u5143\u683C\",\r\n p: [\r\n {\r\n name: \"\u56FE\u8BBE\u7F6E\",\r\n detail: \"sparklines\u56FE\u8BBE\u7F6E\uFF0C\u4F8B\u5982A1:A20\uFF0C \u4E00\u4E2A\u5B8C\u6210\u7684\u997C\u56FE\u3001\u7EBF\u56FE\u8BBE\u7F6E\u7B49\u3002\",\r\n },\r\n ],\r\n },\r\n SORT: {\r\n d: \"\u8FD4\u56DE\u6570\u7EC4\u4E2D\u5143\u7D20\u7684\u6392\u5E8F\u6570\u7EC4\u3002\u8FD4\u56DE\u7684\u6570\u7EC4\u4E0E\u63D0\u4F9B\u7684\u6570\u7EC4\u53C2\u6570\u5F62\u72B6\u76F8\u540C\u3002\",\r\n a: \"\u8FD4\u56DE\u6570\u7EC4\u4E2D\u5143\u7D20\u7684\u6392\u5E8F\u6570\u7EC4\u3002\u8FD4\u56DE\u7684\u6570\u7EC4\u4E0E\u63D0\u4F9B\u7684\u6570\u7EC4\u53C2\u6570\u5F62\u72B6\u76F8\u540C\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u6392\u5E8F\u7684\u8303\u56F4\u6216\u6570\u7EC4\u3002\",\r\n },\r\n {\r\n name: \"sort_index\",\r\n detail: \"[\u53EF\u9009] - \u8868\u793A\u8981\u6392\u5E8F\u7684\u884C\u6216\u5217\u7684\u6570\u5B57\u3002\uFF08\u9ED8\u8BA4row1/col1\uFF09\",\r\n },\r\n {\r\n name: \"sort_order\",\r\n detail: \"[\u53EF\u9009] - \u8868\u793A\u6240\u9700\u6392\u5E8F\u987A\u5E8F\u7684\u6570\u5B57\uFF1B1\u8868\u793A\u5347\u5E8F\uFF08\u9ED8\u8BA4\uFF09\uFF0C-1\u8868\u793A\u964D\u5E8F\u3002\",\r\n },\r\n {\r\n name: \"by_col\",\r\n detail: \"[\u53EF\u9009] - \u8868\u793A\u6240\u9700\u6392\u5E8F\u65B9\u5411\u7684\u903B\u8F91\u503C\uFF1B\u6309\u884C\u6392\u5E8F\u4E3AFALSE()\uFF08\u9ED8\u8BA4\uFF09\uFF0C\u6309\u5217\u6392\u5E8F\u4E3ATRUE()\u3002\",\r\n },\r\n ],\r\n },\r\n FILTER: {\r\n d: \"\u57FA\u4E8E\u4E00\u4E2A\u5E03\u5C14\uFF08\u771F/\u5047\uFF09\u6570\u7EC4\u8FC7\u6EE4\u4E00\u4E2A\u6570\u7EC4\u3002\",\r\n a: \"\u57FA\u4E8E\u4E00\u4E2A\u5E03\u5C14\uFF08\u771F/\u5047\uFF09\u6570\u7EC4\u8FC7\u6EE4\u4E00\u4E2A\u6570\u7EC4\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u8981\u7B5B\u9009\u7684\u6570\u7EC4\u6216\u8303\u56F4\u3002\",\r\n },\r\n {\r\n name: \"include\",\r\n detail: \"\u5E03\u5C14\u6570\u7EC4\uFF0C\u5176\u9AD8\u5EA6\u6216\u5BBD\u5EA6\u4E0E\u6570\u7EC4\u76F8\u540C\",\r\n },\r\n {\r\n name: \"if_empty\",\r\n detail: \"[\u53EF\u9009] - \u5982\u679C\u5305\u542B\u6570\u7EC4\u4E2D\u7684\u6240\u6709\u503C\u90FD\u4E3A\u7A7A(filter\u4E0D\u8FD4\u56DE\u4EFB\u4F55\u503C)\uFF0C\u5219\u8FD4\u56DE\u7684\u503C\u3002\",\r\n },\r\n ],\r\n },\r\n UNIQUE: {\r\n d: \"\u8FD4\u56DE\u5217\u8868\u6216\u533A\u57DF\u4E2D\u7684\u552F\u4E00\u503C\u7684\u5217\u8868\u3002\",\r\n a: \"\u8FD4\u56DE\u5217\u8868\u6216\u533A\u57DF\u4E2D\u7684\u552F\u4E00\u503C\u7684\u5217\u8868\u3002\",\r\n p: [\r\n {\r\n name: \"array\",\r\n detail: \"\u4ECE\u5176\u8FD4\u56DE\u552F\u4E00\u503C\u7684\u6570\u7EC4\u6216\u533A\u57DF\u3002\",\r\n },\r\n {\r\n name: \"by_col\",\r\n detail: \"[\u53EF\u9009] - \u903B\u8F91\u503C\uFF0C\u6307\u793A\u5982\u4F55\u6BD4\u8F83\uFF1B\u6309\u884C = FALSE() \u6216\u7701\u7565\uFF1B\u6309\u5217 = TRUE()\u3002\",\r\n },\r\n {\r\n name: \"occurs_once\",\r\n detail: \"[\u53EF\u9009] - \u903B\u8F91\u503C\uFF0C\u4EC5\u8FD4\u56DE\u552F\u4E00\u503C\u4E2D\u51FA\u73B0\u4E00\u6B21 = TRUE()\uFF1B\u5305\u62EC\u6240\u6709\u552F\u4E00\u503C = FALSE() \u6216\u7701\u7565\u3002\",\r\n },\r\n ],\r\n },\r\n RANDARRAY: {\r\n d: \"\u8FD4\u56DE 0 \u5230 1 \u4E4B\u95F4\u7684\u968F\u673A\u6570\u5B57\u6570\u7EC4\u3002\",\r\n a: \"\u8FD4\u56DE 0 \u5230 1 \u4E4B\u95F4\u7684\u968F\u673A\u6570\u5B57\u6570\u7EC4\u3002\",\r\n p: [\r\n {\r\n name: \"rows\",\r\n detail: \"[\u53EF\u9009] - \u8981\u8FD4\u56DE\u7684\u884C\u6570\u3002\",\r\n },\r\n {\r\n name: \"cols\",\r\n detail: \"[\u53EF\u9009] - \u8981\u8FD4\u56DE\u7684\u5217\u6570\u3002\",\r\n },\r\n ],\r\n },\r\n SEQUENCE: {\r\n d: \"\u751F\u6210\u6570\u5B57\u5E8F\u5217\u7684\u5217\u8868\u3002\",\r\n a: \"\u751F\u6210\u6570\u5B57\u5E8F\u5217\u7684\u5217\u8868\u3002\",\r\n p: [\r\n {\r\n name: \"rows\",\r\n detail: \"\u8981\u8FD4\u56DE\u7684\u884C\u6570\u3002\",\r\n },\r\n {\r\n name: \"cols\",\r\n detail: \"[\u53EF\u9009] - \u8981\u8FD4\u56DE\u7684\u5217\u6570\u3002\",\r\n },\r\n {\r\n name: \"start\",\r\n detail: \"[\u53EF\u9009] - \u5E8F\u5217\u4E2D\u7684\u7B2C\u4E00\u4E2A\u6570\u5B57\u3002\",\r\n },\r\n {\r\n name: \"step\",\r\n detail: \"[\u53EF\u9009] - \u5E8F\u5217\u4E2D\u6BCF\u4E2A\u5E8F\u5217\u503C\u7684\u589E\u91CF\u3002\",\r\n },\r\n ],\r\n },\r\n EVALUATE: {\r\n d: \"\u5BF9\u4EE5\u6587\u5B57\u8868\u793A\u7684\u516C\u5F0F\u6216\u8005\u8868\u8FBE\u5F0F\u6C42\u503C\uFF0C\u5E76\u8FD4\u56DE\u7ED3\u679C\u3002\",\r\n a: \"\u6839\u636E\u6587\u5B57\u516C\u5F0F\u6216\u8005\u8868\u8FBE\u5F0F\u6C42\u503C\u3002\",\r\n p: [\r\n {\r\n name: \"\u516C\u5F0F\",\r\n detail: \"\u516C\u5F0F\u6216\u8868\u8FBE\u5F0F\",\r\n },\r\n ],\r\n },\r\n REMOTE: {\r\n d: \"Calls a function on a remote server\",\r\n a: \"Calls a function on a remote back end server/API.\",\r\n p: [\r\n {\r\n name: \"remote_expression\",\r\n detail: \"Formula\",\r\n },\r\n ],\r\n },\r\n },\r\n toolbar: {\r\n undo: \"\u64A4\u9500\",\r\n redo: \"\u91CD\u505A\",\r\n paintFormat: \"\u683C\u5F0F\u5237\",\r\n currencyFormat: \"\u8D27\u5E01\u683C\u5F0F\",\r\n percentageFormat: \"\u767E\u5206\u6BD4\u683C\u5F0F\",\r\n numberDecrease: \"\u51CF\u5C11\u5C0F\u6570\u4F4D\u6570\",\r\n numberIncrease: \"\u589E\u52A0\u5C0F\u6570\u4F4D\u6570\",\r\n moreFormats: \"\u66F4\u591A\u683C\u5F0F\",\r\n font: \"\u5B57\u4F53\",\r\n fontSize: \"\u5B57\u53F7\u5927\u5C0F\",\r\n bold: \"\u7C97\u4F53 (Ctrl+B)\",\r\n italic: \"\u659C\u4F53 (Ctrl+I)\",\r\n strikethrough: \"\u5220\u9664\u7EBF (Alt+Shift+5)\",\r\n underline: \"\u4E0B\u5212\u7EBF\",\r\n textColor: \"\u6587\u672C\u989C\u8272\",\r\n chooseColor: \"\u989C\u8272\u9009\u62E9\",\r\n resetColor: \"\u91CD\u7F6E\u989C\u8272\",\r\n customColor: \"\u81EA\u5B9A\u4E49\",\r\n alternatingColors: \"\u4EA4\u66FF\u989C\u8272\",\r\n confirmColor: \"\u786E\u5B9A\u989C\u8272\",\r\n cancelColor: \"\u53D6\u6D88\",\r\n collapse: \"\u6536\u8D77\",\r\n fillColor: \"\u5355\u5143\u683C\u989C\u8272\",\r\n border: \"\u8FB9\u6846\",\r\n borderStyle: \"\u8FB9\u6846\u7C7B\u578B\",\r\n mergeCell: \"\u5408\u5E76\u5355\u5143\u683C\",\r\n chooseMergeType: \"\u9009\u62E9\u5408\u5E76\u7C7B\u578B\",\r\n horizontalAlign: \"\u6C34\u5E73\u5BF9\u9F50\",\r\n verticalAlign: \"\u5782\u76F4\u5BF9\u9F50\",\r\n alignment: \"\u5BF9\u9F50\u65B9\u5F0F\",\r\n textWrap: \"\u6587\u672C\u6362\u884C\",\r\n textWrapMode: \"\u6362\u884C\u65B9\u5F0F\",\r\n textRotate: \"\u6587\u672C\u65CB\u8F6C\",\r\n textRotateMode: \"\u65CB\u8F6C\u65B9\u5F0F\",\r\n freezeTopRow: \"\u51BB\u7ED3\u7B2C\u4E00\u884C\",\r\n sortAndFilter: \"\u6392\u5E8F\u548C\u7B5B\u9009\",\r\n findAndReplace: \"\u67E5\u627E\u66FF\u6362\",\r\n sum: \"\u6C42\u548C\",\r\n autoSum: \"\u81EA\u52A8\u6C42\u548C\",\r\n moreFunction: \"\u66F4\u591A\u51FD\u6570\",\r\n conditionalFormat: \"\u6761\u4EF6\u683C\u5F0F\",\r\n postil: \"\u6279\u6CE8\",\r\n pivotTable: \"\u6570\u636E\u900F\u89C6\u8868\",\r\n chart: \"\u56FE\u8868\",\r\n screenshot: \"\u622A\u56FE\",\r\n splitColumn: \"\u5206\u5217\",\r\n insertImage: \"\u63D2\u5165\u56FE\u7247\",\r\n exportXlsx: \"\u5BFC\u51FAXlsx\",\r\n insertLink: \"\u63D2\u5165\u94FE\u63A5\",\r\n dataVerification: \"\u6570\u636E\u9A8C\u8BC1\",\r\n protection: \"\u4FDD\u62A4\u5DE5\u4F5C\u8868\u5185\u5BB9\",\r\n\r\n clearText: \"\u6E05\u9664\u989C\u8272\u9009\u62E9\",\r\n noColorSelectedText: \"\u6CA1\u6709\u989C\u8272\u88AB\u9009\u62E9\",\r\n\r\n toolMore: \"\u66F4\u591A\",\r\n toolLess: \"\u5C11\u4E8E\",\r\n toolClose: \"\u6536\u8D77\",\r\n toolMoreTip: \"\u66F4\u591A\u529F\u80FD\",\r\n moreOptions: \"\u66F4\u591A\u9009\u9879\",\r\n\r\n cellFormat: \"\u8BBE\u7F6E\u5355\u5143\u683C\u683C\u5F0F\",\r\n print: \"\u6253\u5370\",\r\n },\r\n alternatingColors: {\r\n applyRange: \"\u5E94\u7528\u8303\u56F4\",\r\n selectRange: \"\u9009\u62E9\u5E94\u7528\u8303\u56F4\",\r\n header: \"\u9875\u7709\",\r\n footer: \"\u9875\u811A\",\r\n\r\n errorInfo: \"\u4E0D\u80FD\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\uFF0C\u7136\u540E\u518D\u8BD5\",\r\n textTitle: \"\u683C\u5F0F\u6837\u5F0F\",\r\n custom: \"\u81EA\u5B9A\u4E49\",\r\n close: \"\u5173\u95ED\",\r\n selectionTextColor: \"\u9009\u62E9\u6587\u672C\u989C\u8272\",\r\n selectionCellColor: \"\u9009\u62E9\u5355\u5143\u683C\u989C\u8272\",\r\n removeColor: \"\u79FB\u9664\u4EA4\u66FF\u989C\u8272\",\r\n colorShow: \"\u989C\u8272\",\r\n currentColor: \"\u5F53\u524D\u989C\u8272\",\r\n\r\n tipSelectRange: \"\u8BF7\u9009\u62E9\u4EA4\u66FF\u989C\u8272\u5E94\u7528\u8303\u56F4\",\r\n errorNoRange: \"\u60A8\u9009\u62E9\u7684\u5E94\u7528\u8303\u56F4\u4E0D\u662F\u9009\u533A\uFF01\",\r\n errorExistColors: \"\u60A8\u9009\u62E9\u7684\u5E94\u7528\u8303\u56F4\u5DF2\u5B58\u5728\u4EA4\u66FF\u989C\u8272\u4E14\u4E0D\u5C5E\u4E8E\u4F60\u8981\u7F16\u8F91\u7684\u5E94\u7528\u8303\u56F4\uFF01\",\r\n },\r\n button: {\r\n confirm: \"\u786E\u5B9A\",\r\n cancel: \"\u53D6\u6D88\",\r\n close: \"\u5173\u95ED\",\r\n update: \"\u66F4\u65B0\",\r\n delete: \"\u5220\u9664\",\r\n insert: \"\u65B0\u5EFA\",\r\n prevPage: \"\u4E0A\u4E00\u9875\",\r\n nextPage: \"\u4E0B\u4E00\u9875\",\r\n total: \"\u603B\u5171\uFF1A\",\r\n },\r\n paint: {\r\n start: \"\u683C\u5F0F\u5237\u5F00\u542F\",\r\n end: \"ESC\u952E\u9000\u51FA\",\r\n\r\n tipSelectRange: \"\u8BF7\u9009\u62E9\u9700\u8981\u590D\u5236\u683C\u5F0F\u7684\u533A\u57DF\",\r\n tipNotMulti: \"\u65E0\u6CD5\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\",\r\n },\r\n format: {\r\n moreCurrency: \"\u66F4\u591A\u8D27\u5E01\u683C\u5F0F\",\r\n moreDateTime: \"\u66F4\u591A\u65E5\u671F\u4E0E\u65F6\u95F4\u683C\u5F0F\",\r\n moreNumber: \"\u66F4\u591A\u6570\u5B57\u683C\u5F0F\",\r\n\r\n titleCurrency: \"\u8D27\u5E01\u683C\u5F0F\",\r\n decimalPlaces: \"\u5C0F\u6570\u4F4D\u6570\",\r\n titleDateTime: \"\u65E5\u671F\u4E0E\u65F6\u95F4\u683C\u5F0F\",\r\n titleNumber: \"\u6570\u5B57\u683C\u5F0F\",\r\n },\r\n info: {\r\n detailUpdate: \"\u65B0\u6253\u5F00\",\r\n detailSave: \"\u5DF2\u6062\u590D\u672C\u5730\u7F13\u5B58\",\r\n row: \"\u884C\",\r\n column: \"\u5217\",\r\n loading: \"\u6E32\u67D3\u4E2D\u00B7\u00B7\u00B7\",\r\n\r\n copy: \"\u526F\u672C\",\r\n return: \"\u8FD4\u56DE\",\r\n rename: \"\u91CD\u547D\u540D\",\r\n tips: \"\u8868\u683C\u91CD\u547D\u540D\",\r\n noName: \"\u65E0\u6807\u9898\u7684\u7535\u5B50\u8868\u683C\",\r\n wait: \"\u5F85\u66F4\u65B0\",\r\n\r\n add: \"\u6DFB\u52A0\",\r\n addLast: \"\u5728\u5E95\u90E8\u6DFB\u52A0\",\r\n backTop: \"\u56DE\u5230\u9876\u90E8\",\r\n pageInfo: \"\u5171${total}\u6761\uFF0C${totalPage}\u9875\uFF0C\u5F53\u524D\u5DF2\u663E\u793A${currentPage}\u9875\",\r\n nextPage: \"\u4E0B\u4E00\u9875\",\r\n\r\n tipInputNumber: \"\u8BF7\u8F93\u5165\u6570\u5B57\",\r\n tipInputNumberLimit: \"\u589E\u52A0\u8303\u56F4\u9650\u5236\u57281-100\",\r\n\r\n tipRowHeightLimit: \"\u884C\u9AD8\u5FC5\u987B\u57280 ~ 545\u4E4B\u95F4\",\r\n tipColumnWidthLimit: \"\u5217\u5BBD\u5FC5\u987B\u57280 ~ 2038\u4E4B\u95F4\",\r\n pageInfoFull: \"\u5171${total}\u6761\uFF0C${totalPage}\u9875\uFF0C\u5DF2\u663E\u793A\u5168\u90E8\u6570\u636E\",\r\n },\r\n currencyDetail: {\r\n RMB: \"\u4EBA\u6C11\u5E01\",\r\n USdollar: \"\u7F8E\u5143\",\r\n EUR: \"\u6B27\u5143\",\r\n GBP: \"\u82F1\u9551\",\r\n HK: \"\u6E2F\u5143\",\r\n JPY: \"\u65E5\u5143\",\r\n AlbanianLek: \"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u5217\u514B\",\r\n AlgerianDinar: \"\u963F\u5C14\u53CA\u5229\u4E9A\u7B2C\u7EB3\u5C14\",\r\n Afghani: \"\u963F\u5BCC\u6C57\u5C3C\",\r\n ArgentinePeso: \"\u963F\u6839\u5EF7\u6BD4\u7D22\",\r\n UnitedArabEmiratesDirham: \"\u963F\u62C9\u4F2F\u8054\u5408\u914B\u957F\u56FD\u8FEA\u62C9\u59C6\",\r\n ArubanFlorin: \"\u963F\u9C81\u5DF4\u5F17\u7F57\u6797\",\r\n OmaniRial: \"\u963F\u66FC\u91CC\u4E9A\u5C14\",\r\n Azerbaijanimanat: \"\u963F\u585E\u62DC\u7586\u9A6C\u7EB3\u7279\",\r\n EgyptianPound: \"\u57C3\u53CA\u9551\",\r\n EthiopianBirr: \"\u57C3\u585E\u4FC4\u6BD4\u4E9A\u6BD4\u5C14\",\r\n AngolaKwanza: \"\u5B89\u54E5\u62C9\u5BBD\u624E\",\r\n AustralianDollar: \"\u6FB3\u5927\u5229\u4E9A\u5143\",\r\n Patacas: \"\u6FB3\u95E8\u5143\",\r\n BarbadosDollar: \"\u5DF4\u5DF4\u591A\u65AF\u5143\",\r\n PapuaNewGuineaKina: \"\u5DF4\u5E03\u4E9A\u65B0\u51E0\u5185\u4E9A\u57FA\u90A3\",\r\n BahamianDollar: \"\u5DF4\u54C8\u9A6C\u5143\",\r\n PakistanRupee: \"\u5DF4\u57FA\u65AF\u5766\u5362\u6BD4\",\r\n ParaguayanGuarani: \"\u5DF4\u62C9\u572D\u74DC\u62C9\u5C3C\",\r\n BahrainiDinar: \"\u5DF4\u6797\u7B2C\u7EB3\u5C14\",\r\n PanamanianBalboa: \"\u5DF4\u62FF\u9A6C\u5DF4\u6CE2\u4E9A\",\r\n Brazilianreal: \"\u5DF4\u897F\u91CC\u4E9A\u4F0A\",\r\n Belarusianruble: \"\u767D\u4FC4\u7F57\u65AF\u5362\u5E03\",\r\n BermudianDollar: \"\u767E\u6155\u5927\u5143\",\r\n BulgarianLev: \"\u4FDD\u52A0\u5229\u4E9A\u5217\u5F17\",\r\n IcelandKrona: \"\u51B0\u5C9B\u514B\u6717\",\r\n BosniaHerzegovinaConvertibleMark: \"\u6CE2\u9ED1\u53EF\u5151\u6362\u9A6C\u514B\",\r\n PolishZloty: \"\u6CE2\u5170\u5179\u7F57\u63D0\",\r\n Boliviano: \"\u73BB\u5229\u7EF4\u4E9A\u8BFA\",\r\n BelizeDollar: \"\u4F2F\u5229\u5179\u5143\",\r\n BotswanaPula: \"\u535A\u8328\u74E6\u7EB3\u666E\u62C9\",\r\n NotDannuzhamu: \"\u4E0D\u4E39\u52AA\u624E\u59C6\",\r\n BurundiFranc: \"\u5E03\u9686\u8FEA\u6CD5\u90CE\",\r\n NorthKoreanWon: \"\u671D\u9C9C\u5706\",\r\n DanishKrone: \"\u4E39\u9EA6\u514B\u6717\",\r\n EastCaribbeanDollar: \"\u4E1C\u52A0\u52D2\u6BD4\u5143\",\r\n DominicaPeso: \"\u591A\u7C73\u5C3C\u52A0\u6BD4\u7D22\",\r\n RussianRuble: \"\u4FC4\u56FD\u5362\u5E03\",\r\n EritreanNakfa: \"\u5384\u7ACB\u7279\u91CC\u4E9A\u7EB3\u514B\u6CD5\",\r\n CFAfranc: \"\u975E\u6D32\u91D1\u878D\u5171\u540C\u4F53\u6CD5\u90CE\",\r\n PhilippinePeso: \"\u83F2\u5F8B\u5BBE\u6BD4\u7D22\",\r\n FijiDollar: \"\u6590\u6D4E\u5143\",\r\n CapeVerdeEscudo: \"\u4F5B\u5F97\u89D2\u57C3\u65AF\u5E93\u591A\",\r\n FalklandIslandsPound: \"\u798F\u514B\u5170\u7FA4\u5C9B\u9551\",\r\n GambianDalasi: \"\u5188\u6BD4\u4E9A\u8FBE\u62C9\u897F\",\r\n Congolesefranc: \"\u521A\u679C\u6CD5\u90CE\",\r\n ColombianPeso: \"\u54E5\u4F26\u6BD4\u4E9A\u6BD4\u7D22\",\r\n CostaRicanColon: \"\u54E5\u65AF\u8FBE\u9ECE\u52A0\u79D1\u6717\",\r\n CubanPeso: \"\u53E4\u5DF4\u6BD4\u7D22\",\r\n Cubanconvertiblepeso: \"\u53E4\u5DF4\u53EF\u5151\u6362\u6BD4\u7D22\",\r\n GuyanaDollar: \"\u572D\u4E9A\u90A3\u5143\",\r\n KazakhstanTenge: \"\u54C8\u8428\u514B\u65AF\u5766\u575A\u6208\",\r\n Haitiangourde: \"\u6D77\u5730\u53E4\u5FB7\",\r\n won: \"\u97E9\u5143\",\r\n NetherlandsAntillesGuilder: \"\u8377\u5C5E\u5B89\u7684\u5217\u65AF\u76FE\",\r\n Honduraslempiras: \"\u6D2A\u90FD\u62C9\u65AF\u62C9\u4F26\u76AE\u62C9\",\r\n DjiboutiFranc: \"\u5409\u5E03\u63D0\u6CD5\u90CE\",\r\n KyrgyzstanSom: \"\u5409\u5C14\u5409\u65AF\u65AF\u5766\u7D22\u59C6\",\r\n GuineaFranc: \"\u51E0\u5185\u4E9A\u6CD5\u90CE\",\r\n CanadianDollar: \"\u52A0\u62FF\u5927\u5143\",\r\n GhanaianCedi: \"\u52A0\u7EB3\u585E\u5730\",\r\n Cambodianriel: \"\u67EC\u57D4\u5BE8\u745E\u5C14\",\r\n CzechKoruna: \"\u6377\u514B\u514B\u6717\",\r\n ZimbabweDollar: \"\u6D25\u5DF4\u5E03\u97E6\u5143\",\r\n QatariRiyal: \"\u5361\u5854\u5C14\u91CC\u4E9A\u5C14\",\r\n CaymanIslandsDollar: \"\u5F00\u66FC\u7FA4\u5C9B\u5143\",\r\n Comorianfranc: \"\u79D1\u6469\u7F57\u6CD5\u90CE\",\r\n KuwaitiDinar: \"\u79D1\u5A01\u7279\u7B2C\u7EB3\u5C14\",\r\n CroatianKuna: \"\u514B\u7F57\u5730\u4E9A\u5E93\u7EB3\",\r\n KenyanShilling: \"\u80AF\u5C3C\u4E9A\u5148\u4EE4\",\r\n LesothoLoti: \"\u83B1\u7D22\u6258\u6D1B\u8482\",\r\n LaoKip: \"\u8001\u631D\u57FA\u666E\",\r\n LebanesePound: \"\u9ECE\u5DF4\u5AE9\u9551\",\r\n Lithuanianlitas: \"\u7ACB\u9676\u5B9B\u7ACB\u7279\",\r\n LibyanDinar: \"\u5229\u6BD4\u4E9A\u7B2C\u7EB3\u5C14\",\r\n LiberianDollar: \"\u5229\u6BD4\u4E9A\u5143\",\r\n RwandaFranc: \"\u5362\u65FA\u8FBE\u6CD5\u90CE\",\r\n RomanianLeu: \"\u7F57\u9A6C\u5C3C\u4E9A\u5217\u4F0A\",\r\n MalagasyAriary: \"\u9A6C\u8FBE\u52A0\u65AF\u52A0\u963F\u91CC\u4E9A\u91CC\",\r\n MaldivianRufiyaa: \"\u9A6C\u5C14\u4EE3\u592B\u62C9\u83F2\u4E9A\",\r\n MalawiKwacha: \"\u9A6C\u62C9\u7EF4\u514B\u74E6\u67E5\",\r\n MalaysianRinggit: \"\u9A6C\u6765\u897F\u4E9A\u6797\u5409\u7279\",\r\n MacedoniawearingDinar: \"\u9A6C\u5176\u987F\u6234\u7B2C\u7EB3\u5C14\",\r\n MauritiusRupee: \"\u6BDB\u91CC\u6C42\u65AF\u5362\u6BD4\",\r\n MauritanianOuguiya: \"\u6BDB\u91CC\u5854\u5C3C\u4E9A\u4E4C\u5409\u4E9A\",\r\n MongolianTugrik: \"\u8499\u53E4\u56FE\u683C\u91CC\u514B\",\r\n BangladeshiTaka: \"\u5B5F\u52A0\u62C9\u5854\u5361\",\r\n PeruvianNuevoSol: \"\u79D8\u9C81\u65B0\u7D22\u5C14\",\r\n MyanmarKyat: \"\u7F05\u7538\u5F00\u4E9A\u7279\",\r\n MoldovanLeu: \"\u6469\u5C14\u591A\u74E6\u5217\u4F0A\",\r\n MoroccanDirham: \"\u6469\u6D1B\u54E5\u8FEA\u62C9\u59C6\",\r\n MozambiqueMetical: \"\u83AB\u6851\u6BD4\u514B\u6885\u8482\u5361\u5C14\",\r\n MexicanPeso: \"\u58A8\u897F\u54E5\u6BD4\u7D22\",\r\n NamibianDollar: \"\u7EB3\u7C73\u6BD4\u4E9A\u5143\",\r\n SouthAfricanRand: \"\u5357\u975E\u5170\u7279\",\r\n SouthSudanesePound: \"\u5357\u82CF\u4E39\u9551\",\r\n NicaraguaCordoba: \"\u5C3C\u52A0\u62C9\u74DC\u79D1\u591A\u5DF4\",\r\n NepaleseRupee: \"\u5C3C\u6CCA\u5C14\u5362\u6BD4\",\r\n NigerianNaira: \"\u5C3C\u65E5\u5229\u4E9A\u5948\u62C9\",\r\n NorwegianKrone: \"\u632A\u5A01\u514B\u6717\",\r\n GeorgianLari: \"\u4E54\u6CBB\u4E9A\u62C9\u745E\",\r\n RMBOffshore: \"\u4EBA\u6C11\u5E01\uFF08\u79BB\u5CB8\uFF09\",\r\n SwedishKrona: \"\u745E\u5178\u514B\u6717\",\r\n SwissFranc: \"\u745E\u58EB\u6CD5\u90CE\",\r\n SerbianDinar: \"\u585E\u5C14\u7EF4\u4E9A\u7B2C\u7EB3\u5C14\",\r\n SierraLeone: \"\u585E\u62C9\u5229\u6602\u5229\u6602\",\r\n SeychellesRupee: \"\u585E\u820C\u5C14\u5362\u6BD4\",\r\n SaudiRiyal: \"\u6C99\u7279\u91CC\u4E9A\u5C14\",\r\n SaoTomeDobra: \"\u5723\u591A\u7F8E\u591A\u5E03\u62C9\",\r\n SaintHelenapound: \"\u5723\u8D6B\u52D2\u62FF\u7FA4\u5C9B\u78C5\",\r\n SriLankaRupee: \"\u65AF\u91CC\u5170\u5361\u5362\u6BD4\",\r\n SwazilandLilangeni: \"\u65AF\u5A01\u58EB\u5170\u91CC\u5170\u5409\u5C3C\",\r\n SudanesePound: \"\u82CF\u4E39\u9551\",\r\n Surinamesedollar: \"\u82CF\u91CC\u5357\u5143\",\r\n SolomonIslandsDollar: \"\u6240\u7F57\u95E8\u7FA4\u5C9B\u5143\",\r\n SomaliShilling: \"\u7D22\u9A6C\u91CC\u5148\u4EE4\",\r\n TajikistanSomoni: \"\u5854\u5409\u514B\u65AF\u5766\u7D22\u83AB\u5C3C\",\r\n PacificFranc: \"\u592A\u5E73\u6D0B\u6CD5\u90CE\",\r\n ThaiBaht: \"\u6CF0\u56FD\u94E2\",\r\n TanzanianShilling: \"\u5766\u6851\u5C3C\u4E9A\u5148\u4EE4\",\r\n TonganPaanga: \"\u6C64\u52A0\u6F58\u52A0\",\r\n TrinidadandTobagoDollar: \"\u7279\u7ACB\u5C3C\u8FBE\u548C\u591A\u5DF4\u54E5\u5143\",\r\n TunisianDinar: \"\u7A81\u5C3C\u65AF\u7B2C\u7EB3\u5C14\",\r\n TurkishLira: \"\u571F\u8033\u5176\u91CC\u62C9\",\r\n VanuatuVatu: \"\u74E6\u52AA\u963F\u56FE\u74E6\u56FE\",\r\n GuatemalanQuetzal: \"\u5371\u5730\u9A6C\u62C9\u683C\u67E5\u5C14\",\r\n CommissionBolivar: \"\u59D4\u5185\u745E\u62C9\u535A\u5229\u74E6\",\r\n BruneiDollar: \"\u6587\u83B1\u5143\",\r\n UgandanShilling: \"\u4E4C\u5E72\u8FBE\u5148\u4EE4\",\r\n UkrainianHryvnia: \"\u4E4C\u514B\u5170\u683C\u91CC\u592B\u5C3C\u4E9A\",\r\n UruguayanPeso: \"\u4E4C\u62C9\u572D\u6BD4\u7D22\",\r\n Uzbekistansom: \"\u4E4C\u5179\u522B\u514B\u65AF\u5766\u82CF\u59C6\",\r\n WesternSamoaTala: \"\u897F\u8428\u6469\u4E9A\u5854\u62C9\",\r\n SingaporeDollar: \"\u65B0\u52A0\u5761\u5143\",\r\n NT: \"\u65B0\u53F0\u5E01\",\r\n NewZealandDollar: \"\u65B0\u897F\u5170\u5143\",\r\n HungarianForint: \"\u5308\u7259\u5229\u798F\u6797\",\r\n SyrianPound: \"\u53D9\u5229\u4E9A\u9551\",\r\n JamaicanDollar: \"\u7259\u4E70\u52A0\u5143\",\r\n ArmenianDram: \"\u4E9A\u7F8E\u5C3C\u4E9A\u5FB7\u62C9\u59C6\",\r\n YemeniRial: \"\u4E5F\u95E8\u91CC\u4E9A\u5C14\",\r\n IraqiDinar: \"\u4F0A\u62C9\u514B\u7B2C\u7EB3\u5C14\",\r\n IranianRial: \"\u4F0A\u6717\u91CC\u4E9A\u5C14\",\r\n NewIsraeliShekel: \"\u4EE5\u8272\u5217\u65B0\u8C22\u514B\u5C14\",\r\n IndianRupee: \"\u5370\u5EA6\u5362\u6BD4\",\r\n IndonesianRupiah: \"\u5370\u5EA6\u5C3C\u897F\u4E9A\u5362\u6BD4\",\r\n JordanianDinar: \"\u7EA6\u65E6\u7B2C\u7EB3\u5C14\",\r\n VND: \"\u8D8A\u5357\u76FE\",\r\n ZambianKwacha: \"\u8D5E\u6BD4\u4E9A\u514B\u74E6\u67E5\",\r\n GibraltarPound: \"\u76F4\u5E03\u7F57\u9640\u9551\",\r\n ChileanPeso: \"\u667A\u5229\u6BD4\u7D22\",\r\n CFAFrancBEAC: \"\u4E2D\u975E\u91D1\u878D\u5408\u4F5C\u6CD5\u90CE\",\r\n },\r\n defaultFmt: [\r\n { text: \"\u81EA\u52A8\", value: \"General\", example: \"\" },\r\n { text: \"\u7EAF\u6587\u672C\", value: \"@\", example: \"\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"\u6570\u5B57\", value: \"##0.00\", example: \"1000.12\" },\r\n { text: \"\u767E\u5206\u6BD4\", value: \"#0.00%\", example: \"12.21%\" },\r\n { text: \"\u79D1\u5B66\u8BA1\u6570\", value: \"0.00E+00\", example: \"1.01E+5\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"\u4F1A\u8BA1\", value: \"\u00A5(0.00)\", example: \"\u00A5(1200.09)\" },\r\n //{ \"text\": \"\u8D22\u52A1\", \"value\": \"(#.####)\", \"example\": \"(1200.09)\" },\r\n { text: \"\u4E07\u5143\", value: \"w\", example: \"1\u4EBF2000\u4E072500\" },\r\n { text: \"\u8D27\u5E01\", value: \"\u00A50.00\", example: \"\u00A51200.09\" },\r\n //{ \"text\": \"\u8D27\u5E01\u6574\u6570\", \"value\": \"\u00A5####\", \"example\": \"\u00A51200\" },\r\n { text: \"\u4E07\u51432\u4F4D\u5C0F\u6570\", value: \"w0.00\", example: \"2\u4E072500.55\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"\u65E5\u671F\", value: \"yyyy-MM-dd\", example: \"2017-11-29\" },\r\n { text: \"\u65F6\u95F4\", value: \"hh:mm AM/PM\", example: \"3:00 PM\" },\r\n { text: \"\u65F6\u95F424H\", value: \"hh:mm\", example: \"15:00\" },\r\n { text: \"\u65E5\u671F\u65F6\u95F4\", value: \"yyyy-MM-dd hh:mm AM/PM\", example: \"2017-11-29 3:00 PM\" },\r\n { text: \"\u65E5\u671F\u65F6\u95F424H\", value: \"yyyy-MM-dd hh:mm\", example: \"2017-11-29 15:00\" },\r\n { text: \"\", value: \"split\", example: \"\" },\r\n { text: \"\u81EA\u5B9A\u4E49\u683C\u5F0F\", value: \"fmtOtherSelf\", example: \"more\" },\r\n ],\r\n dateFmtList: [\r\n {\r\n name: \"1930-08-05\",\r\n value: \"yyyy-MM-dd\",\r\n },\r\n {\r\n name: \"1930/8/5\",\r\n value: \"yyyy/MM/dd\",\r\n },\r\n {\r\n name: \"1930\u5E748\u67085\u65E5\",\r\n value: 'yyyy\"\u5E74\"M\"\u6708\"d\"\u65E5\"',\r\n },\r\n {\r\n name: \"08-05\",\r\n value: \"MM-dd\",\r\n },\r\n {\r\n name: \"8-5\",\r\n value: \"M-d\",\r\n },\r\n {\r\n name: \"8\u67085\u65E5\",\r\n value: 'M\"\u6708\"d\"\u65E5\"',\r\n },\r\n {\r\n name: \"13:30:30\",\r\n value: \"h:mm:ss\",\r\n },\r\n {\r\n name: \"13:30\",\r\n value: \"h:mm\",\r\n },\r\n {\r\n name: \"\u4E0B\u534801:30\",\r\n value: \"\u4E0A\u5348/\u4E0B\u5348 hh:mm\",\r\n },\r\n {\r\n name: \"\u4E0B\u53481:30\",\r\n value: \"\u4E0A\u5348/\u4E0B\u5348 h:mm\",\r\n },\r\n {\r\n name: \"\u4E0B\u53481:30:30\",\r\n value: \"\u4E0A\u5348/\u4E0B\u5348 h:mm:ss\",\r\n },\r\n {\r\n name: \"08-05 \u4E0B\u534801:30\",\r\n value: \"MM-dd \u4E0A\u5348/\u4E0B\u5348 hh:mm\",\r\n },\r\n // {\r\n // \"name\": \"1930\u5E748\u67085\u65E5\u661F\u671F\u4E8C\",\r\n // \"value\": ''\r\n // },\r\n // {\r\n // \"name\": \"1930\u5E748\u67085\u65E5\u661F\u671F\u4E8C \u4E0B\u53481:30:30\",\r\n // \"value\": ''\r\n // },\r\n ],\r\n fontFamily: {\r\n MicrosoftYaHei: \"Microsoft YaHei\",\r\n },\r\n fontarray: [\r\n \"Times New Roman\",\r\n \"Arial\",\r\n \"Tahoma\",\r\n \"Verdana\",\r\n \"\u5FAE\u8F6F\u96C5\u9ED1\",\r\n \"\u5B8B\u4F53\",\r\n \"\u9ED1\u4F53\",\r\n \"\u6977\u4F53\",\r\n \"\u4EFF\u5B8B\",\r\n \"\u65B0\u5B8B\u4F53\",\r\n \"\u534E\u6587\u65B0\u9B4F\",\r\n \"\u534E\u6587\u884C\u6977\",\r\n \"\u534E\u6587\u96B6\u4E66\",\r\n ],\r\n fontjson: {\r\n \"times new roman\": 0,\r\n arial: 1,\r\n tahoma: 2,\r\n verdana: 3,\r\n \u5FAE\u8F6F\u96C5\u9ED1: 4,\r\n \"microsoft yahei\": 4,\r\n \u5B8B\u4F53: 5,\r\n simsun: 5,\r\n \u9ED1\u4F53: 6,\r\n simhei: 6,\r\n \u6977\u4F53: 7,\r\n kaiti: 7,\r\n \u4EFF\u5B8B: 8,\r\n fangsong: 8,\r\n \u65B0\u5B8B\u4F53: 9,\r\n nsimsun: 9,\r\n \u534E\u6587\u65B0\u9B4F: 10,\r\n stxinwei: 10,\r\n \u534E\u6587\u884C\u6977: 11,\r\n stxingkai: 11,\r\n \u534E\u6587\u96B6\u4E66: 12,\r\n stliti: 12,\r\n },\r\n border: {\r\n borderTop: \"\u4E0A\u6846\u7EBF\",\r\n borderBottom: \"\u4E0B\u6846\u7EBF\",\r\n borderLeft: \"\u5DE6\u6846\u7EBF\",\r\n borderRight: \"\u53F3\u6846\u7EBF\",\r\n borderNone: \"\u65E0\",\r\n borderAll: \"\u6240\u6709\",\r\n borderOutside: \"\u5916\u4FA7\",\r\n borderInside: \"\u5185\u4FA7\",\r\n borderHorizontal: \"\u5185\u4FA7\u6A2A\u7EBF\",\r\n borderVertical: \"\u5185\u4FA7\u7AD6\u7EBF\",\r\n borderColor: \"\u8FB9\u6846\u989C\u8272\",\r\n borderSize: \"\u8FB9\u6846\u7C97\u7EC6\",\r\n },\r\n merge: {\r\n mergeAll: \"\u5168\u90E8\u5408\u5E76\",\r\n mergeV: \"\u5782\u76F4\u5408\u5E76\",\r\n mergeH: \"\u6C34\u5E73\u5408\u5E76\",\r\n mergeCancel: \"\u53D6\u6D88\u5408\u5E76\",\r\n overlappingError: \"\u4E0D\u80FD\u5408\u5E76\u91CD\u53E0\u533A\u57DF\",\r\n partiallyError: \"\u65E0\u6CD5\u5BF9\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\u6267\u884C\u6B64\u64CD\u4F5C\",\r\n },\r\n align: {\r\n left: \"\u5DE6\u5BF9\u9F50\",\r\n center: \"\u4E2D\u95F4\u5BF9\u9F50\",\r\n right: \"\u53F3\u5BF9\u9F50\",\r\n\r\n top: \"\u9876\u90E8\u5BF9\u9F50\",\r\n middle: \"\u5C45\u4E2D\u5BF9\u9F50\",\r\n bottom: \"\u5E95\u90E8\u5BF9\u9F50\",\r\n },\r\n textWrap: {\r\n overflow: \"\u6EA2\u51FA\",\r\n wrap: \"\u81EA\u52A8\u6362\u884C\",\r\n clip: \"\u622A\u65AD\",\r\n },\r\n rotation: {\r\n none: \"\u65E0\u65CB\u8F6C\",\r\n angleup: \"\u5411\u4E0A\u503E\u659C\",\r\n angledown: \"\u5411\u4E0B\u503E\u659C\",\r\n vertical: \"\u7AD6\u6392\u6587\u5B57\",\r\n rotationUp: \"\u5411\u4E0A90\u00B0\",\r\n rotationDown: \"\u5411\u4E0B90\u00B0\",\r\n },\r\n freezen: {\r\n default: \"\u51BB\u7ED3\u7B2C\u4E00\u884C\",\r\n freezenRow: \"\u51BB\u7ED3\u7B2C\u4E00\u884C\",\r\n freezenColumn: \"\u51BB\u7ED3\u7B2CA\u5217\",\r\n freezenRC: \"\u51BB\u7ED3\u7B2C\u4E00\u884C\u7B2CA\u5217\",\r\n freezenRowRange: \"\u51BB\u7ED3\u884C\u5230\u9009\u533A\",\r\n freezenColumnRange: \"\u51BB\u7ED3\u5217\u5230\u9009\u533A\",\r\n freezenRCRange: \"\u51BB\u7ED3\u884C\u5217\u5230\u9009\u533A\",\r\n freezenCancel: \"\u53D6\u6D88\u51BB\u7ED3\",\r\n\r\n noSeletionError: \"\u6CA1\u6709\u9009\u533A\",\r\n rangeRCOverErrorTitle: \"\u51BB\u7ED3\u63D0\u9192\",\r\n rangeRCOverError: \"\u51BB\u7ED3\u7A97\u683C\u8D85\u8FC7\u53EF\u89C1\u8303\u56F4\uFF0C\u4F1A\u5BFC\u81F4\u65E0\u6CD5\u6B63\u5E38\u64CD\u4F5C\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u51BB\u7ED3\u533A\u57DF\u3002\",\r\n },\r\n sort: {\r\n asc: \"\u5347\u5E8F\",\r\n desc: \"\u964D\u5E8F\",\r\n custom: \"\u81EA\u5B9A\u4E49\u6392\u5E8F\",\r\n\r\n hasTitle: \"\u6570\u636E\u5177\u6709\u6807\u9898\u884C\",\r\n sortBy: \"\u6392\u5E8F\u4F9D\u636E\",\r\n addOthers: \"\u6DFB\u52A0\u5176\u4ED6\u6392\u5E8F\u5217\",\r\n close: \"\u5173\u95ED\",\r\n confirm: \"\u6392\u5E8F\",\r\n\r\n columnOperation: \"\u5217\",\r\n secondaryTitle: \"\u6B21\u8981\u6392\u5E8F\",\r\n\r\n sortTitle: \"\u6392\u5E8F\u8303\u56F4\",\r\n\r\n sortRangeTitle: \"\u6392\u5E8F\u8303\u56F4\u4ECE\",\r\n sortRangeTitleTo: \"\u5230\",\r\n\r\n noRangeError: \"\u4E0D\u80FD\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\uFF0C\u7136\u540E\u518D\u8BD5\",\r\n mergeError: \"\u9009\u533A\u6709\u5408\u5E76\u5355\u5143\u683C\uFF0C\u65E0\u6CD5\u6267\u884C\u6B64\u64CD\u4F5C\uFF01\",\r\n columnSortMergeError: \"\u5217\u6392\u5E8F\u4F1A\u6269\u5C55\u81F3\u6574\u4E2A\u8868\u683C\u9009\u533A\uFF0C\u9009\u533A\u6709\u5408\u5E76\u5355\u5143\u683C\uFF0C\u65E0\u6CD5\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u529F\u80FD\u680F\u6392\u5E8F\u529F\u80FD\uFF01\",\r\n },\r\n filter: {\r\n filter: \"\u7B5B\u9009\",\r\n clearFilter: \"\u6E05\u9664\u7B5B\u9009\",\r\n\r\n sortByAsc: \"\u4EE5A-Z\u5347\u5E8F\u6392\u5217\",\r\n sortByDesc: \"\u4EE5Z-A\u964D\u5E8F\u6392\u5217\",\r\n filterByColor: \"\u6309\u989C\u8272\u7B5B\u9009\",\r\n filterByCondition: \"\u6309\u6761\u4EF6\u8FC7\u6EE4\",\r\n filterByValues: \"\u6309\u503C\u8FC7\u6EE4\",\r\n\r\n filiterInputNone: \"\u65E0\",\r\n\r\n filiterInputTip: \"\u8F93\u5165\u7B5B\u9009\u503C\",\r\n filiterRangeStart: \"\u4ECE\",\r\n filiterRangeStartTip: \"\u8303\u56F4\u5F00\u59CB\",\r\n filiterRangeEnd: \"\u5230\",\r\n filiterRangeEndTip: \"\u8303\u56F4\u7ED3\u675F\",\r\n\r\n filterValueByAllBtn: \"\u5168\u9009\",\r\n filterValueByClearBtn: \"\u6E05\u9664\",\r\n filterValueByInverseBtn: \"\u53CD\u9009\",\r\n filterValueByTip: \"\u6309\u7167\u503C\u8FDB\u884C\u7B5B\u9009\",\r\n filterConform: \"\u786E \u8BA4\",\r\n filterCancel: \"\u53D6 \u6D88\",\r\n\r\n conditionNone: \"\u65E0\",\r\n conditionCellIsNull: \"\u5355\u5143\u683C\u4E3A\u7A7A\",\r\n conditionCellNotNull: \"\u5355\u5143\u683C\u6709\u6570\u636E\",\r\n conditionCellTextContain: \"\u6587\u672C\u5305\u542B\",\r\n conditionCellTextNotContain: \"\u6587\u672C\u4E0D\u5305\u542B\",\r\n conditionCellTextStart: \"\u6587\u672C\u5F00\u5934\u4E3A\",\r\n conditionCellTextEnd: \"\u6587\u672C\u7ED3\u5C3E\u4E3A\",\r\n conditionCellTextEqual: \"\u6587\u672C\u7B49\u4E8E\",\r\n conditionCellDateEqual: \"\u65E5\u671F\u7B49\u4E8E\",\r\n conditionCellDateBefore: \"\u65E5\u671F\u65E9\u4E8E\",\r\n conditionCellDateAfter: \"\u65E5\u671F\u665A\u4E8E\",\r\n conditionCellGreater: \"\u5927\u4E8E\",\r\n conditionCellGreaterEqual: \"\u5927\u4E8E\u7B49\u4E8E\",\r\n conditionCellLess: \"\u5C0F\u4E8E\",\r\n conditionCellLessEqual: \"\u5C0F\u4E8E\u7B49\u4E8E\",\r\n conditionCellEqual: \"\u7B49\u4E8E\",\r\n conditionCellNotEqual: \"\u4E0D\u7B49\u4E8E\",\r\n conditionCellBetween: \"\u4ECB\u4E8E\",\r\n conditionCellNotBetween: \"\u4E0D\u5728\u5176\u4E2D\",\r\n\r\n filiterMoreDataTip: \"\u6570\u636E\u91CF\u5927\uFF01\u8BF7\u7A0D\u540E\",\r\n filiterMonthText: \"\u6708\",\r\n filiterYearText: \"\u5E74\",\r\n filiterByColorTip: \"\u6309\u5355\u5143\u683C\u989C\u8272\u7B5B\u9009\",\r\n filiterByTextColorTip: \"\u6309\u5355\u5143\u683C\u5B57\u4F53\u989C\u8272\u7B5B\u9009\",\r\n filterContainerOneColorTip: \"\u672C\u5217\u4EC5\u5305\u542B\u4E00\u79CD\u989C\u8272\",\r\n filterDateFormatTip: \"\u65E5\u671F\u683C\u5F0F\",\r\n\r\n valueBlank: \"(\u7A7A\u767D)\",\r\n mergeError: \"\u7B5B\u9009\u9009\u533A\u6709\u5408\u5E76\u5355\u5143\u683C\uFF0C\u65E0\u6CD5\u6267\u884C\u6B64\u64CD\u4F5C\uFF01\",\r\n },\r\n rightclick: {\r\n copy: \"\u590D\u5236\",\r\n copyAs: \"\u590D\u5236\u4E3A\",\r\n paste: \"\u7C98\u8D34\",\r\n insert: \"\u63D2\u5165\",\r\n delete: \"\u5220\u9664\",\r\n deleteCell: \"\u5220\u9664\u5355\u5143\u683C\",\r\n deleteSelected: \"\u5220\u9664\u9009\u4E2D\",\r\n hide: \"\u9690\u85CF\",\r\n hideSelected: \"\u9690\u85CF\u9009\u4E2D\",\r\n showHide: \"\u663E\u793A\u9690\u85CF\",\r\n to: \"\u5411\",\r\n left: \"\u5DE6\",\r\n right: \"\u53F3\",\r\n top: \"\u4E0A\",\r\n bottom: \"\u4E0B\",\r\n moveLeft: \"\u5DE6\u79FB\",\r\n moveUp: \"\u4E0A\u79FB\",\r\n add: \"\u589E\u52A0\",\r\n row: \"\u884C\",\r\n column: \"\u5217\",\r\n width: \"\u5BBD\",\r\n height: \"\u9AD8\",\r\n number: \"\u6570\u5B57\",\r\n confirm: \"\u786E\u8BA4\",\r\n orderAZ: \"A-Z\u987A\u5E8F\u6392\u5217\",\r\n orderZA: \"Z-A\u964D\u5E8F\u6392\u5217\",\r\n clearContent: \"\u6E05\u9664\u5185\u5BB9\",\r\n matrix: \"\u77E9\u9635\u64CD\u4F5C\u9009\u533A\",\r\n sortSelection: \"\u6392\u5E8F\u9009\u533A\",\r\n filterSelection: \"\u7B5B\u9009\u9009\u533A\",\r\n chartGeneration: \"\u56FE\u8868\u751F\u6210\",\r\n firstLineTitle: \"\u9996\u884C\u4E3A\u6807\u9898\",\r\n untitled: \"\u65E0\u6807\u9898\",\r\n array1: \"\u4E00\u7EF4\u6570\u7EC4\",\r\n array2: \"\u4E8C\u7EF4\u6570\u7EC4\",\r\n array3: \"\u591A\u7EF4\u6570\u7EC4\",\r\n diagonal: \"\u5BF9\u89D2\u7EBF\",\r\n antiDiagonal: \"\u53CD\u5BF9\u89D2\u7EBF\",\r\n diagonalOffset: \"\u5BF9\u89D2\u504F\u79FB\",\r\n offset: \"\u504F\u79FB\u91CF\",\r\n boolean: \"\u5E03\u5C14\u503C\",\r\n flip: \"\u7FFB\u8F6C\",\r\n upAndDown: \"\u4E0A\u4E0B\",\r\n leftAndRight: \"\u5DE6\u53F3\",\r\n clockwise: \"\u987A\u65F6\u9488\",\r\n counterclockwise: \"\u9006\u65F6\u9488\",\r\n transpose: \"\u8F6C\u7F6E\",\r\n matrixCalculation: \"\u77E9\u9635\u8BA1\u7B97\",\r\n plus: \"\u52A0\",\r\n minus: \"\u51CF\",\r\n multiply: \"\u4E58\",\r\n divided: \"\u9664\",\r\n power: \"\u6B21\u65B9\",\r\n root: \"\u6B21\u65B9\u6839\",\r\n log: \"log\",\r\n delete0: \"\u5220\u9664\u4E24\u7AEF0\u503C\",\r\n removeDuplicate: \"\u5220\u9664\u91CD\u590D\u503C\",\r\n byRow: \"\u6309\u884C\",\r\n byCol: \"\u6309\u5217\",\r\n generateNewMatrix: \"\u751F\u6210\u65B0\u77E9\u9635\",\r\n },\r\n comment: {\r\n insert: \"\u65B0\u5EFA\u6279\u6CE8\",\r\n edit: \"\u7F16\u8F91\u6279\u6CE8\",\r\n delete: \"\u5220\u9664\",\r\n showOne: \"\u663E\u793A/\u9690\u85CF\u6279\u6CE8\",\r\n showAll: \"\u663E\u793A/\u9690\u85CF\u6240\u6709\u6279\u6CE8\",\r\n },\r\n screenshot: {\r\n screenshotTipNoSelection: \"\u8BF7\u6846\u9009\u9700\u8981\u622A\u56FE\u7684\u8303\u56F4\",\r\n screenshotTipTitle: \"\u63D0\u793A\uFF01\",\r\n screenshotTipHasMerge: \"\u65E0\u6CD5\u5BF9\u5408\u5E76\u5355\u5143\u683C\u6267\u884C\u6B64\u64CD\u4F5C\",\r\n screenshotTipHasMulti: \"\u65E0\u6CD5\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\",\r\n screenshotTipSuccess: \"\u622A\u53D6\u6210\u529F\",\r\n screenshotImageName: \"\u622A\u56FE\",\r\n\r\n downLoadClose: \"\u5173\u95ED\",\r\n downLoadCopy: \"\u590D\u5236\u5230\u526A\u5207\u677F\",\r\n downLoadBtn: \"\u4E0B\u8F7D\",\r\n browserNotTip: \"\u4E0B\u8F7D\u529F\u80FDIE\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\uFF01\",\r\n rightclickTip: \"\u8BF7\u5728\u56FE\u7247\u4E0A\u53F3\u952E\u70B9\u51FB'\u590D\u5236'\",\r\n successTip: \"\u5DF2\u6210\u529F\u590D\u5236\uFF08\u5982\u679C\u7C98\u8D34\u5931\u8D25\uFF0C\u8BF7\u5728\u56FE\u7247\u4E0A\u53F3\u952E\u70B9\u51FB'\u590D\u5236\u56FE\u7247'\uFF09\",\r\n },\r\n splitText: {\r\n splitDelimiters: \"\u5206\u5272\u7B26\u53F7\",\r\n splitOther: \"\u5176\u5B83\",\r\n splitContinueSymbol: \"\u8FDE\u7EED\u5206\u9694\u7B26\u53F7\u89C6\u4E3A\u5355\u4E2A\u5904\u7406\",\r\n splitDataPreview: \"\u6570\u636E\u9884\u89C8\",\r\n splitTextTitle: \"\u6587\u672C\u5206\u5217\",\r\n splitConfirmToExe: \"\u6B64\u5904\u5DF2\u6709\u6570\u636E\uFF0C\u662F\u5426\u66FF\u6362\u5B83\uFF1F\",\r\n\r\n tipNoMulti: \"\u4E0D\u80FD\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\uFF0C\u7136\u540E\u518D\u8BD5\",\r\n tipNoMultiColumn: \"\u4E00\u6B21\u53EA\u80FD\u8F6C\u6362\u4E00\u5217\u6570\u636E\uFF0C\u9009\u5B9A\u533A\u57DF\u53EF\u4EE5\u6709\u591A\u884C\uFF0C\u4F46\u4E0D\u80FD\u6709\u591A\u5217\uFF0C\u8BF7\u5728\u9009\u5B9A\u5355\u5217\u533A\u57DF\u4EE5\u540E\u518D\u8BD5\",\r\n },\r\n imageText: {\r\n imageSetting: \"\u56FE\u7247\u8BBE\u7F6E\",\r\n close: \"\u5173\u95ED\",\r\n conventional: \"\u5E38\u89C4\",\r\n moveCell1: \"\u79FB\u52A8\u5E76\u8C03\u6574\u5355\u5143\u683C\u5927\u5C0F\",\r\n moveCell2: \"\u79FB\u52A8\u5E76\u4E14\u4E0D\u8C03\u6574\u5355\u5143\u683C\u7684\u5927\u5C0F\",\r\n moveCell3: \"\u4E0D\u8981\u79FB\u52A8\u5355\u5143\u683C\u5E76\u8C03\u6574\u5176\u5927\u5C0F\",\r\n fixedPos: \"\u56FA\u5B9A\u4F4D\u7F6E\",\r\n border: \"\u8FB9\u6846\",\r\n width: \"\u5BBD\u5EA6\",\r\n radius: \"\u534A\u5F84\",\r\n style: \"\u6837\u5F0F\",\r\n solid: \"\u5B9E\u7EBF\",\r\n dashed: \"\u865A\u7EBF\",\r\n dotted: \"\u70B9\u72B6\",\r\n double: \"\u53CC\u7EBF\",\r\n color: \"\u989C\u8272\",\r\n },\r\n punctuation: {\r\n tab: \"Tab \u952E\",\r\n semicolon: \"\u5206\u53F7\",\r\n comma: \"\u9017\u53F7\",\r\n space: \"\u7A7A\u683C\",\r\n },\r\n findAndReplace: {\r\n find: \"\u67E5\u627E\",\r\n replace: \"\u66FF\u6362\",\r\n goto: \"\u8F6C\u5230\",\r\n location: \"\u5B9A\u4F4D\u6761\u4EF6\",\r\n formula: \"\u516C\u5F0F\",\r\n date: \"\u65E5\u671F\",\r\n number: \"\u6570\u5B57\",\r\n string: \"\u5B57\u7B26\",\r\n error: \"\u9519\u8BEF\",\r\n condition: \"\u6761\u4EF6\u683C\u5F0F\",\r\n rowSpan: \"\u95F4\u9694\u884C\",\r\n columnSpan: \"\u95F4\u9694\u5217\",\r\n locationExample: \"\u5B9A\u4F4D\",\r\n lessTwoRowTip: \"\u8BF7\u9009\u62E9\u6700\u5C11\u4E24\u884C\",\r\n lessTwoColumnTip: \"\u8BF7\u9009\u62E9\u6700\u5C11\u4E24\u884C\",\r\n\r\n findTextbox: \"\u67E5\u627E\u5185\u5BB9\",\r\n replaceTextbox: \"\u66FF\u6362\u5185\u5BB9\",\r\n\r\n regexTextbox: \"\u6B63\u5219\u8868\u8FBE\u5F0F\u5339\u914D\",\r\n wholeTextbox: \"\u6574\u8BCD\u5339\u914D\",\r\n distinguishTextbox: \"\u533A\u5206\u5927\u5C0F\u5199\u5339\u914D\",\r\n\r\n allReplaceBtn: \"\u5168\u90E8\u66FF\u6362\",\r\n replaceBtn: \"\u66FF\u6362\",\r\n allFindBtn: \"\u67E5\u627E\u5168\u90E8\",\r\n findBtn: \"\u67E5\u627E\u4E0B\u4E00\u4E2A\",\r\n\r\n noFindTip: \"\u6CA1\u6709\u67E5\u627E\u5230\u8BE5\u5185\u5BB9\",\r\n modeTip: \"\u8BE5\u6A21\u5F0F\u4E0B\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\",\r\n\r\n searchTargetSheet: \"\u5DE5\u4F5C\u8868\",\r\n searchTargetCell: \"\u5355\u5143\u683C\",\r\n searchTargetValue: \"\u503C\",\r\n\r\n searchInputTip: \"\u8BF7\u8F93\u5165\u67E5\u627E\u5185\u5BB9\",\r\n\r\n noReplceTip: \"\u6CA1\u6709\u53EF\u66FF\u6362\u7684\u5185\u5BB9\",\r\n noMatchTip: \"\u627E\u4E0D\u5230\u5339\u914D\u9879\",\r\n\r\n successTip: \"\u5DF2\u7ECF\u5E2E\u60A8\u641C\u7D22\u5E76\u8FDB\u884C\u4E86${xlength}\u5904\u66FF\u6362\",\r\n\r\n locationConstant: \"\u5E38\u91CF\",\r\n locationFormula: \"\u516C\u5F0F\",\r\n locationDate: \"\u65E5\u671F\",\r\n locationDigital: \"\u6570\u5B57\",\r\n locationString: \"\u5B57\u7B26\",\r\n locationBool: \"\u903B\u8F91\u503C\",\r\n locationError: \"\u9519\u8BEF\",\r\n locationNull: \"\u7A7A\u503C\",\r\n locationCondition: \"\u6761\u4EF6\u683C\u5F0F\",\r\n locationRowSpan: \"\u95F4\u9694\u884C\",\r\n locationColumnSpan: \"\u95F4\u9694\u5217\",\r\n\r\n locationTiplessTwoRow: \"\u8BF7\u9009\u62E9\u6700\u5C11\u4E24\u884C\",\r\n locationTiplessTwoColumn: \"\u8BF7\u9009\u62E9\u6700\u5C11\u4E24\u5217\",\r\n locationTipNotFindCell: \"\u672A\u627E\u5230\u5355\u5143\u683C\",\r\n },\r\n sheetconfig: {\r\n delete: \"\u5220\u9664\",\r\n copy: \"\u590D\u5236\",\r\n rename: \"\u91CD\u547D\u540D\",\r\n changeColor: \"\u66F4\u6539\u989C\u8272\",\r\n hide: \"\u9690\u85CF\",\r\n unhide: \"\u53D6\u6D88\u9690\u85CF\",\r\n moveLeft: \"\u5411\u5DE6\u79FB\",\r\n moveRight: \"\u5411\u53F3\u79FB\",\r\n resetColor: \"\u91CD\u7F6E\u989C\u8272\",\r\n cancelText: \"\u53D6\u6D88\",\r\n chooseText: \"\u786E\u5B9A\u989C\u8272\",\r\n\r\n tipNameRepeat: \"\u6807\u7B7E\u9875\u7684\u540D\u79F0\u4E0D\u80FD\u91CD\u590D\uFF01\u8BF7\u91CD\u65B0\u4FEE\u6539\",\r\n noMoreSheet:\r\n \"\u5DE5\u4F5C\u8584\u5185\u81F3\u5C11\u542B\u6709\u4E00\u5F20\u53EF\u89C6\u5DE5\u4F5C\u8868\u3002\u82E5\u9700\u5220\u9664\u9009\u5B9A\u7684\u5DE5\u4F5C\u8868\uFF0C\u8BF7\u5148\u63D2\u5165\u4E00\u5F20\u65B0\u5DE5\u4F5C\u8868\u6216\u663E\u793A\u4E00\u5F20\u9690\u85CF\u7684\u5DE5\u4F5C\u8868\u3002\",\r\n confirmDelete: \"\u662F\u5426\u5220\u9664\",\r\n redoDelete: \"\u53EF\u4EE5\u901A\u8FC7Ctrl+Z\u64A4\u9500\u5220\u9664\",\r\n noHide: \"\u4E0D\u80FD\u9690\u85CF, \u81F3\u5C11\u4FDD\u7559\u4E00\u4E2Asheet\u6807\u7B7E\",\r\n chartEditNoOpt: \"\u56FE\u8868\u7F16\u8F91\u6A21\u5F0F\u4E0B\u4E0D\u5141\u8BB8\u8BE5\u64CD\u4F5C\uFF01\",\r\n sheetNameSpecCharError: \"\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC731\u4E2A\u5B57\u7B26\uFF0C\u9996\u5C3E\u4E0D\u80FD\u662F' \u4E14\u540D\u79F0\u4E0D\u80FD\u5305\u542B:\\r\\n[ ] : \\\\ ? * /\",\r\n sheetNamecannotIsEmptyError: \"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A!\",\r\n },\r\n conditionformat: {\r\n conditionformat_greaterThan: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u5927\u4E8E\",\r\n conditionformat_greaterThan_title: \"\u4E3A\u5927\u4E8E\u4EE5\u4E0B\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_lessThan: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u5C0F\u4E8E\",\r\n conditionformat_lessThan_title: \"\u4E3A\u5C0F\u4E8E\u4EE5\u4E0B\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_betweenness: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u4ECB\u4E8E\",\r\n conditionformat_betweenness_title: \"\u4E3A\u4ECB\u4E8E\u4EE5\u4E0B\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_equal: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u7B49\u4E8E\",\r\n conditionformat_equal_title: \"\u4E3A\u7B49\u4E8E\u4EE5\u4E0B\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_textContains: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u6587\u672C\u5305\u542B\",\r\n conditionformat_textContains_title: \"\u4E3A\u5305\u542B\u4EE5\u4E0B\u6587\u672C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_occurrenceDate: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u53D1\u751F\u65E5\u671F\",\r\n conditionformat_occurrenceDate_title: \"\u4E3A\u5305\u542B\u4EE5\u4E0B\u65E5\u671F\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_duplicateValue: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u91CD\u590D\u503C\",\r\n conditionformat_duplicateValue_title: \"\u4E3A\u5305\u542B\u4EE5\u4E0B\u7C7B\u578B\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_top10: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u524D 10 \u9879\",\r\n conditionformat_top10_percent: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u524D 10%\",\r\n conditionformat_top10_title: \"\u4E3A\u503C\u6700\u5927\u7684\u90A3\u4E9B\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_last10: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u6700\u540E 10 \u9879\",\r\n conditionformat_last10_percent: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u6700\u540E 10%\",\r\n conditionformat_last10_title: \"\u4E3A\u503C\u6700\u5C0F\u7684\u90A3\u4E9B\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_AboveAverage: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u9AD8\u4E8E\u5E73\u5747\u503C\",\r\n conditionformat_AboveAverage_title: \"\u4E3A\u9AD8\u4E8E\u5E73\u5747\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n conditionformat_SubAverage: \"\u6761\u4EF6\u683C\u5F0F\u2014\u2014\u4F4E\u4E8E\u5E73\u5747\u503C\",\r\n conditionformat_SubAverage_title: \"\u4E3A\u4F4E\u4E8E\u5E73\u5747\u503C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n rule: \"\u89C4\u5219\",\r\n newRule: \"\u65B0\u5EFA\u89C4\u5219\",\r\n editRule: \"\u7F16\u8F91\u89C4\u5219\",\r\n deleteRule: \"\u5220\u9664\u89C4\u5219\",\r\n deleteCellRule: \"\u6E05\u9664\u6240\u9009\u5355\u5143\u683C\u7684\u89C4\u5219\",\r\n deleteSheetRule: \"\u6E05\u9664\u6574\u4E2A\u5DE5\u4F5C\u8868\u7684\u89C4\u5219\",\r\n manageRules: \"\u7BA1\u7406\u89C4\u5219\",\r\n showRules: \"\u663E\u793A\u5176\u683C\u5F0F\u89C4\u5219\",\r\n highlightCellRules: \"\u7A81\u51FA\u663E\u793A\u5355\u5143\u683C\u89C4\u5219\",\r\n itemSelectionRules: \"\u9879\u76EE\u9009\u53D6\u89C4\u5219\",\r\n conditionformatManageRules: \"\u6761\u4EF6\u683C\u5F0F\u89C4\u5219\u7BA1\u7406\u5668\",\r\n format: \"\u683C\u5F0F\",\r\n setFormat: \"\u8BBE\u7F6E\u683C\u5F0F\",\r\n setAs: \"\u8BBE\u7F6E\u4E3A\",\r\n setAsByArea: \"\u9488\u5BF9\u9009\u5B9A\u533A\u57DF\uFF0C\u8BBE\u7F6E\u4E3A\",\r\n applyRange: \"\u5E94\u7528\u8303\u56F4\",\r\n selectRange: \"\u70B9\u51FB\u9009\u62E9\u5E94\u7528\u8303\u56F4\",\r\n selectRange_percent: \"\u6240\u9009\u8303\u56F4\u7684\u767E\u5206\u6BD4\",\r\n selectRange_average: \"\u9009\u5B9A\u8303\u56F4\u7684\u5E73\u5747\u503C\",\r\n selectRange_value: \"\u9009\u5B9A\u8303\u56F4\u4E2D\u7684\u6570\u503C\",\r\n pleaseSelectRange: \"\u8BF7\u9009\u62E9\u5E94\u7528\u8303\u56F4\",\r\n selectDataRange: \"\u70B9\u51FB\u9009\u62E9\u6570\u636E\u8303\u56F4\",\r\n selectCell: \"\u9009\u62E9\u5355\u5143\u683C\",\r\n pleaseSelectCell: \"\u8BF7\u9009\u62E9\u5355\u5143\u683C\",\r\n pleaseSelectADate: \"\u8BF7\u9009\u62E9\u65E5\u671F\",\r\n pleaseEnterInteger: \"\u8BF7\u8F93\u5165\u4E00\u4E2A\u4ECB\u4E8E 1 \u548C 1000 \u4E4B\u95F4\u7684\u6574\u6570\",\r\n onlySingleCell: \"\u53EA\u80FD\u5BF9\u5355\u4E2A\u5355\u5143\u683C\u8FDB\u884C\u5F15\u7528\",\r\n conditionValueCanOnly: \"\u6761\u4EF6\u503C\u53EA\u80FD\u662F\u6570\u5B57\u6216\u8005\u5355\u4E2A\u5355\u5143\u683C\",\r\n ruleTypeItem1: \"\u57FA\u4E8E\u5404\u81EA\u503C\u8BBE\u7F6E\u6240\u6709\u5355\u5143\u683C\u7684\u683C\u5F0F\",\r\n ruleTypeItem2: \"\u53EA\u4E3A\u5305\u542B\u4EE5\u4E0B\u5185\u5BB9\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\",\r\n ruleTypeItem2_title: \"\u53EA\u4E3A\u6EE1\u8DB3\u4EE5\u4E0B\u6761\u4EF6\u7684\u5355\u5143\u683C\",\r\n ruleTypeItem3: \"\u4EC5\u5BF9\u6392\u540D\u9760\u524D\u6216\u9760\u540E\u7684\u6570\u503C\u8BBE\u7F6E\u683C\u5F0F\",\r\n ruleTypeItem3_title: \"\u4E3A\u4EE5\u4E0B\u6392\u540D\u5185\u7684\u503C\",\r\n ruleTypeItem4: \"\u4EC5\u5BF9\u9AD8\u4E8E\u6216\u4F4E\u4E8E\u5E73\u5747\u503C\u7684\u6570\u503C\u8BBE\u7F6E\u683C\u5F0F\",\r\n ruleTypeItem4_title: \"\u4E3A\u6EE1\u8DB3\u4EE5\u4E0B\u6761\u4EF6\u7684\u503C\",\r\n ruleTypeItem5: \"\u4EC5\u5BF9\u552F\u4E00\u503C\u6216\u91CD\u590D\u503C\u8BBE\u7F6E\u683C\u5F0F\",\r\n ruleTypeItem6: \"\u4F7F\u7528\u516C\u5F0F\u786E\u5B9A\u8981\u8BBE\u7F6E\u683C\u5F0F\u7684\u5355\u5143\u683C\",\r\n formula: \"\u516C\u5F0F\",\r\n textColor: \"\u6587\u672C\u989C\u8272\",\r\n cellColor: \"\u5355\u5143\u683C\u989C\u8272\",\r\n confirm: \"\u786E\u5B9A\",\r\n confirmColor: \"\u786E\u5B9A\u989C\u8272\",\r\n cancel: \"\u53D6\u6D88\",\r\n close: \"\u5173\u95ED\",\r\n clearColorSelect: \"\u6E05\u9664\u989C\u8272\u9009\u62E9\",\r\n sheet: \"\u8868\",\r\n currentSheet: \"\u5F53\u524D\u5DE5\u4F5C\u8868\",\r\n dataBar: \"\u6570\u636E\u6761\",\r\n dataBarColor: \"\u6570\u636E\u6761\u989C\u8272\",\r\n gradientDataBar_1: \"\u84DD-\u767D\u6E10\u53D8\u6570\u636E\u6761\",\r\n gradientDataBar_2: \"\u7EFF-\u767D\u6E10\u53D8\u6570\u636E\u6761\",\r\n gradientDataBar_3: \"\u7EA2-\u767D\u6E10\u53D8\u6570\u636E\u6761\",\r\n gradientDataBar_4: \"\u6A59-\u767D\u6E10\u53D8\u6570\u636E\u6761\",\r\n gradientDataBar_5: \"\u6D45\u84DD-\u767D\u6E10\u53D8\u6570\u636E\u6761\",\r\n gradientDataBar_6: \"\u7D2B-\u767D\u6E10\u53D8\u6570\u636E\u6761\",\r\n solidColorDataBar_1: \"\u84DD\u8272\u6570\u636E\u6761\",\r\n solidColorDataBar_2: \"\u7EFF\u8272\u6570\u636E\u6761\",\r\n solidColorDataBar_3: \"\u7EA2\u8272\u6570\u636E\u6761\",\r\n solidColorDataBar_4: \"\u6A59\u8272\u6570\u636E\u6761\",\r\n solidColorDataBar_5: \"\u6D45\u84DD\u8272\u6570\u636E\u6761\",\r\n solidColorDataBar_6: \"\u7D2B\u8272\u6570\u636E\u6761\",\r\n colorGradation: \"\u8272\u9636\",\r\n colorGradation_1: \"\u7EFF-\u9EC4-\u7EA2\u8272\u9636\",\r\n colorGradation_2: \"\u7EA2-\u9EC4-\u7EFF\u8272\u9636\",\r\n colorGradation_3: \"\u7EFF-\u767D-\u7EA2\u8272\u9636\",\r\n colorGradation_4: \"\u7EA2-\u767D-\u7EFF\u8272\u9636\",\r\n colorGradation_5: \"\u84DD-\u767D-\u7EA2\u8272\u9636\",\r\n colorGradation_6: \"\u7EA2-\u767D-\u84DD\u8272\u9636\",\r\n colorGradation_7: \"\u767D-\u7EA2\u8272\u9636\",\r\n colorGradation_8: \"\u7EA2-\u767D\u8272\u9636\",\r\n colorGradation_9: \"\u7EFF-\u767D\u8272\u9636\",\r\n colorGradation_10: \"\u767D-\u7EFF\u8272\u9636\",\r\n colorGradation_11: \"\u7EFF-\u9EC4\u8272\u9636\",\r\n colorGradation_12: \"\u9EC4-\u7EFF\u8272\u9636\",\r\n icons: \"\u56FE\u6807\u96C6\",\r\n pleaseSelectIcon: \"\u8BF7\u70B9\u51FB\u9009\u62E9\u4E00\u7EC4\u56FE\u6807\uFF1A\",\r\n cellValue: \"\u5355\u5143\u683C\u503C\",\r\n specificText: \"\u7279\u5B9A\u6587\u672C\",\r\n occurrence: \"\u53D1\u751F\u65E5\u671F\",\r\n greaterThan: \"\u5927\u4E8E\",\r\n lessThan: \"\u5C0F\u4E8E\",\r\n between: \"\u4ECB\u4E8E\",\r\n equal: \"\u7B49\u4E8E\",\r\n in: \"\u548C\",\r\n to: \"\u5230\",\r\n between2: \"\u4E4B\u95F4\",\r\n contain: \"\u5305\u542B\",\r\n textContains: \"\u6587\u672C\u5305\u542B\",\r\n duplicateValue: \"\u91CD\u590D\u503C\",\r\n uniqueValue: \"\u552F\u4E00\u503C\",\r\n top: \"\u524D\",\r\n top10: \"\u524D 10 \u9879\",\r\n top10_percent: \"\u524D 10%\",\r\n last: \"\u540E\",\r\n last10: \"\u540E 10 \u9879\",\r\n last10_percent: \"\u540E 10%\",\r\n oneself: \"\u4E2A\",\r\n above: \"\u9AD8\u4E8E\",\r\n aboveAverage: \"\u9AD8\u4E8E\u5E73\u5747\u503C\",\r\n below: \"\u4F4E\u4E8E\",\r\n belowAverage: \"\u4F4E\u4E8E\u5E73\u5747\u503C\",\r\n all: \"\u5168\u90E8\",\r\n yesterday: \"\u6628\u5929\",\r\n today: \"\u4ECA\u5929\",\r\n tomorrow: \"\u660E\u5929\",\r\n lastWeek: \"\u4E0A\u5468\",\r\n thisWeek: \"\u672C\u5468\",\r\n lastMonth: \"\u4E0A\u6708\",\r\n thisMonth: \"\u672C\u6708\",\r\n lastYear: \"\u53BB\u5E74\",\r\n thisYear: \"\u672C\u5E74\",\r\n last7days: \"\u6700\u8FD17\u5929\",\r\n last30days: \"\u6700\u8FD130\u5929\",\r\n next7days: \"\u672A\u67657\u5929\",\r\n next30days: \"\u672A\u676530\u5929\",\r\n next60days: \"\u672A\u676560\u5929\",\r\n chooseRuleType: \"\u9009\u62E9\u89C4\u5219\u7C7B\u578B\",\r\n editRuleDescription: \"\u7F16\u8F91\u89C4\u5219\u8BF4\u660E\",\r\n newFormatRule: \"\u65B0\u5EFA\u683C\u5F0F\u89C4\u5219\",\r\n editFormatRule: \"\u7F16\u8F91\u683C\u5F0F\u89C4\u5219\",\r\n formatStyle: \"\u683C\u5F0F\u6837\u5F0F\",\r\n fillType: \"\u586B\u5145\u7C7B\u578B\",\r\n color: \"\u989C\u8272\",\r\n twocolor: \"\u53CC\u8272\",\r\n tricolor: \"\u4E09\u8272\",\r\n multicolor: \"\u5F69\u8272\",\r\n grayColor: \"\u7070\u8272\",\r\n gradient: \"\u6E10\u53D8\",\r\n solid: \"\u5B9E\u5FC3\",\r\n maxValue: \"\u6700\u5927\u503C\",\r\n medianValue: \"\u4E2D\u95F4\u503C\",\r\n minValue: \"\u6700\u5C0F\u503C\",\r\n direction: \"\u65B9\u5411\",\r\n threeWayArrow: \"\u4E09\u5411\u7BAD\u5934\",\r\n fourWayArrow: \"\u56DB\u5411\u7BAD\u5934\",\r\n fiveWayArrow: \"\u4E94\u5411\u7BAD\u5934\",\r\n threeTriangles: \"3\u4E2A\u4E09\u89D2\u5F62\",\r\n shape: \"\u5F62\u72B6\",\r\n threeColorTrafficLight: \"\u4E09\u8272\u4EA4\u901A\u706F\",\r\n fourColorTrafficLight: \"\u56DB\u8272\u4EA4\u901A\u706F\",\r\n threeSigns: \"\u4E09\u6807\u5FD7\",\r\n greenRedBlackGradient: \"\u7EFF-\u7EA2-\u9ED1\u6E10\u53D8\",\r\n rimless: \"\u65E0\u8FB9\u6846\",\r\n bordered: \"\u6709\u8FB9\u6846\",\r\n mark: \"\u6807\u8BB0\",\r\n threeSymbols: \"\u4E09\u4E2A\u7B26\u53F7\",\r\n tricolorFlag: \"\u4E09\u8272\u65D7\",\r\n circled: \"\u6709\u5706\u5708\",\r\n noCircle: \"\u65E0\u5706\u5708\",\r\n grade: \"\u7B49\u7EA7\",\r\n grade4: \"\u56DB\u7B49\u7EA7\",\r\n grade5: \"\u4E94\u7B49\u7EA7\",\r\n threeStars: \"3\u4E2A\u661F\u5F62\",\r\n fiveQuadrantDiagram: \"\u4E94\u8C61\u9650\u56FE\",\r\n fiveBoxes: \"5\u4E2A\u6846\",\r\n },\r\n insertLink: {\r\n linkText: \"\u6587\u672C\",\r\n linkType: \"\u94FE\u63A5\u7C7B\u578B\",\r\n external: \"\u5916\u90E8\u94FE\u63A5\",\r\n internal: \"\u5185\u90E8\u94FE\u63A5\",\r\n linkAddress: \"\u94FE\u63A5\u5730\u5740\",\r\n linkSheet: \"\u5DE5\u4F5C\u8868\",\r\n linkCell: \"\u5355\u5143\u683C\u5F15\u7528\",\r\n linkTooltip: \"\u63D0\u793A\",\r\n placeholder1: \"\u8BF7\u8F93\u5165\u7F51\u9875\u94FE\u63A5\u5730\u5740\",\r\n placeholder2: \"\u8BF7\u8F93\u5165\u8981\u5F15\u7528\u7684\u5355\u5143\u683C\uFF0C\u4F8BA1\",\r\n placeholder3: \"\u8BF7\u8F93\u5165\u63D0\u793A\u5185\u5BB9\",\r\n tooltipInfo1: \"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u94FE\u63A5\",\r\n tooltipInfo2: \"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u5355\u5143\u683C\u5F15\u7528\",\r\n },\r\n dataVerification: {\r\n cellRange: \"\u5355\u5143\u683C\u8303\u56F4\",\r\n selectCellRange: \"\u70B9\u51FB\u9009\u62E9\u5355\u5143\u683C\u8303\u56F4\",\r\n selectCellRange2: \"\u8BF7\u9009\u62E9\u5355\u5143\u683C\u8303\u56F4\",\r\n verificationCondition: \"\u9A8C\u8BC1\u6761\u4EF6\",\r\n allowMultiSelect: \"\u662F\u5426\u5141\u8BB8\u591A\u9009\",\r\n dropdown: \"\u4E0B\u62C9\u5217\u8868\",\r\n checkbox: \"\u590D\u9009\u6846\",\r\n number: \"\u6570\u5B57\",\r\n number_integer: \"\u6570\u5B57-\u6574\u6570\",\r\n number_decimal: \"\u6570\u5B57-\u5C0F\u6570\",\r\n text_content: \"\u6587\u672C-\u5185\u5BB9\",\r\n text_length: \"\u6587\u672C-\u957F\u5EA6\",\r\n date: \"\u65E5\u671F\",\r\n validity: \"\u6709\u6548\u6027\",\r\n placeholder1: \"\u8BF7\u8F93\u5165\u9009\u9879\uFF0C\u4EE5\u82F1\u6587\u9017\u53F7\u5206\u9694\uFF0C\u59821,2,3,4,5\",\r\n placeholder2: \"\u8BF7\u8F93\u5165\u5185\u5BB9\",\r\n placeholder3: \"\u6570\u503C\uFF0C\u598210\",\r\n placeholder4: \"\u8BF7\u8F93\u5165\u6307\u5B9A\u7684\u6587\u672C\",\r\n placeholder5: \"\u8BF7\u8F93\u5165\u9009\u4E2D\u5355\u5143\u683C\u65F6\u663E\u793A\u7684\u63D0\u793A\u8BED\",\r\n selected: \"\u9009\u62E9\u65F6\",\r\n notSelected: \"\u672A\u9009\u62E9\",\r\n between: \"\u4ECB\u4E8E\",\r\n notBetween: \"\u4E0D\u4ECB\u4E8E\",\r\n equal: \"\u7B49\u4E8E\",\r\n notEqualTo: \"\u4E0D\u7B49\u4E8E\",\r\n moreThanThe: \"\u5927\u4E8E\",\r\n lessThan: \"\u5C0F\u4E8E\",\r\n greaterOrEqualTo: \"\u5927\u4E8E\u7B49\u4E8E\",\r\n lessThanOrEqualTo: \"\u5C0F\u4E8E\u7B49\u4E8E\",\r\n include: \"\u5305\u62EC\",\r\n exclude: \"\u4E0D\u5305\u62EC\",\r\n earlierThan: \"\u65E9\u4E8E\",\r\n noEarlierThan: \"\u4E0D\u65E9\u4E8E\",\r\n laterThan: \"\u665A\u4E8E\",\r\n noLaterThan: \"\u4E0D\u665A\u4E8E\",\r\n identificationNumber: \"\u8EAB\u4EFD\u8BC1\u53F7\u7801\",\r\n phoneNumber: \"\u624B\u673A\u53F7\",\r\n remote: \"\u81EA\u52A8\u8FDC\u7A0B\u83B7\u53D6\u9009\u9879\",\r\n prohibitInput: \"\u8F93\u5165\u6570\u636E\u65E0\u6548\u65F6\u7981\u6B62\u8F93\u5165\",\r\n hintShow: \"\u9009\u4E2D\u5355\u5143\u683C\u65F6\u663E\u793A\u63D0\u793A\u8BED\",\r\n deleteVerification: \"\u5220\u9664\u9A8C\u8BC1\",\r\n tooltipInfo1: \"\u4E0B\u62C9\u5217\u8868\u9009\u9879\u4E0D\u53EF\u4E3A\u7A7A\",\r\n tooltipInfo2: \"\u590D\u9009\u6846\u5185\u5BB9\u4E0D\u53EF\u4E3A\u7A7A\",\r\n tooltipInfo3: \"\u8F93\u5165\u7684\u503C\u4E0D\u662F\u6570\u503C\u7C7B\u578B\",\r\n tooltipInfo4: \"\u6570\u503C2\u4E0D\u80FD\u5C0F\u4E8E\u6570\u503C1\",\r\n tooltipInfo5: \"\u6587\u672C\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A\",\r\n tooltipInfo6: \"\u8F93\u5165\u7684\u503C\u4E0D\u662F\u65E5\u671F\u7C7B\u578B\",\r\n tooltipInfo7: \"\u65E5\u671F2\u4E0D\u80FD\u5C0F\u4E8E\u65E5\u671F1\",\r\n textlengthInteger: \"\u6587\u672C\u957F\u5EA6\u5FC5\u987B\u662F\u5927\u4E8E\u7B49\u4E8E0\u7684\u6574\u6570\",\r\n },\r\n formula: {\r\n sum: \"\u6C42\u548C\",\r\n average: \"\u5E73\u5747\u503C\",\r\n count: \"\u8BA1\u6570\",\r\n max: \"\u6700\u5927\u503C\",\r\n min: \"\u6700\u5C0F\u503C\",\r\n ifGenerate: \"if\u516C\u5F0F\u751F\u6210\u5668\",\r\n find: \"\u66F4\u591A\u51FD\u6570\",\r\n\r\n tipNotBelongToIf: \"\u8BE5\u5355\u5143\u683C\u51FD\u6570\u4E0D\u5C5E\u4E8Eif\u516C\u5F0F\uFF01\",\r\n tipSelectCell: \"\u8BF7\u9009\u62E9\u5355\u5143\u683C\u63D2\u5165\u51FD\u6570\",\r\n\r\n ifGenCompareValueTitle: \"\u6BD4\u8F83\u503C\",\r\n ifGenSelectCellTitle: \"\u70B9\u51FB\u9009\u62E9\u5355\u5143\u683C\",\r\n ifGenRangeTitle: \"\u8303\u56F4\",\r\n ifGenRangeTo: \"\u81F3\",\r\n ifGenRangeEvaluate: \"\u8303\u56F4\u8BC4\u4F30\",\r\n ifGenSelectRangeTitle: \"\u70B9\u51FB\u9009\u62E9\u8303\u56F4\",\r\n ifGenCutWay: \"\u5212\u5206\u65B9\u5F0F\",\r\n ifGenCutSame: \"\u5212\u5206\u503C\u76F8\u540C\",\r\n ifGenCutNpiece: \"\u5212\u5206\u4E3AN\u4EFD\",\r\n ifGenCutCustom: \"\u81EA\u5B9A\u4E49\u8F93\u5165\",\r\n ifGenCutConfirm: \"\u751F\u6210\",\r\n\r\n ifGenTipSelectCell: \"\u9009\u62E9\u5355\u5143\u683C\",\r\n ifGenTipSelectCellPlace: \"\u8BF7\u9009\u62E9\u5355\u5143\u683C\",\r\n\r\n ifGenTipSelectRange: \"\u9009\u62E9\u5355\u8303\u56F4\",\r\n ifGenTipSelectRangePlace: \"\u8BF7\u9009\u62E9\u8303\u56F4\",\r\n\r\n ifGenTipNotNullValue: \"\u6BD4\u8F83\u503C\u4E0D\u80FD\u4E3A\u7A7A\uFF01\",\r\n ifGenTipLableTitile: \"\u6807\u7B7E\",\r\n ifGenTipRangeNotforNull: \"\u8303\u56F4\u4E0D\u80FD\u4E3A\u7A7A\uFF01\",\r\n ifGenTipCutValueNotforNull: \"\u5212\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A\uFF01\",\r\n ifGenTipNotGenCondition: \"\u6CA1\u6709\u751F\u6210\u53EF\u7528\u7684\u6761\u4EF6\uFF01\",\r\n },\r\n formulaMore: {\r\n valueTitle: \"\u503C\",\r\n tipSelectDataRange: \"\u9009\u53D6\u6570\u636E\u8303\u56F4\",\r\n tipDataRangeTile: \"\u6570\u636E\u8303\u56F4\",\r\n findFunctionTitle: \"\u67E5\u627E\u51FD\u6570\",\r\n tipInputFunctionName: \"\u8BF7\u8F93\u5165\u60A8\u8981\u67E5\u627E\u7684\u51FD\u6570\u540D\u79F0\u6216\u51FD\u6570\u529F\u80FD\u7684\u7B80\u8981\u63CF\u8FF0\",\r\n\r\n Array: \"\u6570\u7EC4\",\r\n Database: \"\u6570\u636E\u6E90\",\r\n Date: \"\u65E5\u671F\",\r\n Engineering: \"\u5DE5\u7A0B\u8BA1\u7B97\",\r\n Filter: \"\u8FC7\u6EE4\u5668\",\r\n Financial: \"\u8D22\u52A1\",\r\n luckysheet: \"Luckysheet\u5185\u7F6E\",\r\n other: \"\u5176\u5B83\",\r\n Logical: \"\u903B\u8F91\",\r\n Lookup: \"\u67E5\u627E\",\r\n Math: \"\u6570\u5B66\",\r\n Operator: \"\u8FD0\u7B97\u7B26\",\r\n Parser: \"\u8F6C\u6362\u5DE5\u5177\",\r\n Statistical: \"\u7EDF\u8BA1\",\r\n Text: \"\u6587\u672C\",\r\n dataMining: \"\u6570\u636E\u6316\u6398\",\r\n\r\n selectFunctionTitle: \"\u9009\u62E9\u51FD\u6570\",\r\n calculationResult: \"\u8BA1\u7B97\u7ED3\u679C\",\r\n\r\n tipSuccessText: \"\u6210\u529F\",\r\n tipParamErrorText: \"\u53C2\u6570\u7C7B\u578B\u9519\u8BEF\",\r\n\r\n helpClose: \"\u5173\u95ED\",\r\n helpCollapse: \"\u6536\u8D77\",\r\n helpExample: \"\u793A\u4F8B\",\r\n helpAbstract: \"\u6458\u8981\",\r\n\r\n execfunctionError: '\u63D0\u793A\", \"\u516C\u5F0F\u5B58\u5728\u9519\u8BEF',\r\n execfunctionSelfError: \"\u516C\u5F0F\u4E0D\u53EF\u5F15\u7528\u5176\u672C\u8EAB\u7684\u5355\u5143\u683C\",\r\n execfunctionSelfErrorResult: \"\u516C\u5F0F\u4E0D\u53EF\u5F15\u7528\u5176\u672C\u8EAB\u7684\u5355\u5143\u683C\uFF0C\u4F1A\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\",\r\n\r\n allowRepeatText: \"\u53EF\u91CD\u590D\",\r\n allowOptionText: \"\u53EF\u9009\",\r\n\r\n selectCategory: \"\u6216\u9009\u62E9\u7C7B\u522B\",\r\n },\r\n drag: {\r\n noMerge: \"\u65E0\u6CD5\u5BF9\u5408\u5E76\u5355\u5143\u683C\u6267\u884C\u6B64\u64CD\u4F5C\",\r\n affectPivot: \"\u65E0\u6CD5\u5BF9\u6240\u9009\u5355\u5143\u683C\u8FDB\u884C\u6B64\u66F4\u6539\uFF0C\u56E0\u4E3A\u5B83\u4F1A\u5F71\u54CD\u6570\u636E\u900F\u89C6\u8868\uFF01\",\r\n noMulti: \"\u65E0\u6CD5\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C,\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\",\r\n noPaste: \"\u65E0\u6CD5\u5728\u6B64\u5904\u7C98\u8D34\u6B64\u5185\u5BB9\uFF0C\u8BF7\u9009\u62E9\u7C98\u8D34\u533A\u57DF\u7684\u4E00\u4E2A\u5355\u5143\u683C\uFF0C\u7136\u540E\u518D\u6B21\u5C1D\u8BD5\u7C98\u8D34\",\r\n noPartMerge: \"\u65E0\u6CD5\u5BF9\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\u6267\u884C\u6B64\u64CD\u4F5C\",\r\n\r\n inputCorrect: \"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6570\u503C\",\r\n notLessOne: \"\u884C\u5217\u6570\u4E0D\u80FD\u5C0F\u4E8E1\",\r\n offsetColumnLessZero: \"\u504F\u79FB\u5217\u4E0D\u80FD\u4E3A\u8D1F\u6570\uFF01\",\r\n\r\n pasteMustKeybordAlert: \"Copy and paste in the Sheet: Ctrl + C to copy, Ctrl + V to paste, Ctrl + X to cut\",\r\n pasteMustKeybordAlertHTMLTitle: \"Copy and paste in the Sheet\",\r\n pasteMustKeybordAlertHTML:\r\n \"Ctrl + C  to copy
Ctrl + V  to paste
Ctrl + X  to cut\",\r\n },\r\n paste: {\r\n warning: \"\u63D0\u793A\",\r\n errorNotAllowMulti: \"\u4E0D\u80FD\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\uFF0C\u7136\u540E\u518D\u8BD5\",\r\n errorNotAllowMerged: \"\u4E0D\u80FD\u5BF9\u5408\u5E76\u5355\u5143\u683C\u505A\u90E8\u5206\u66F4\u6539\",\r\n },\r\n pivotTable: {\r\n title: \"\u6570\u636E\u900F\u89C6\u8868\",\r\n closePannel: \"\u5173\u95ED\",\r\n editRange: \"\u7F16\u8F91\u8303\u56F4\",\r\n tipPivotFieldSelected: \"\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u5230\u6570\u636E\u900F\u89C6\u8868\u7684\u5B57\u6BB5\",\r\n tipClearSelectedField: \"\u6E05\u9664\u6240\u6709\u5DF2\u9009\u5B57\u6BB5\",\r\n btnClearSelectedField: \"\u6E05\u9664\",\r\n btnFilter: \"\u7B5B\u9009\",\r\n titleRow: \"\u884C\",\r\n titleColumn: \"\u5217\",\r\n titleValue: \"\u6570\u503C\",\r\n tipShowColumn: \"\u7EDF\u8BA1\u5B57\u6BB5\u663E\u793A\u4E3A\u5217\",\r\n tipShowRow: \"\u7EDF\u8BA1\u5B57\u6BB5\u663E\u793A\u4E3A\u884C\",\r\n\r\n titleSelectionDataRange: \"\u9009\u53D6\u6570\u636E\u8303\u56F4\",\r\n titleDataRange: \"\u6570\u636E\u8303\u56F4\",\r\n\r\n valueSum: \"\u603B\u8BA1\",\r\n\r\n valueStatisticsSUM: \"\u6C42\u548C\",\r\n valueStatisticsCOUNT: \"\u6570\u503C\u8BA1\u6570\",\r\n valueStatisticsCOUNTA: \"\u8BA1\u6570\",\r\n valueStatisticsCOUNTUNIQUE: \"\u53BB\u91CD\u8BA1\u6570\",\r\n valueStatisticsAVERAGE: \"\u5E73\u5747\u503C\",\r\n valueStatisticsMAX: \"\u6700\u5927\u503C\",\r\n valueStatisticsMIN: \"\u6700\u5C0F\u503C\",\r\n valueStatisticsMEDIAN: \"\u4E2D\u4F4D\u6570\",\r\n valueStatisticsPRODUCT: \"\u4E58\u79EF\",\r\n valueStatisticsSTDEV: \"\u6807\u51C6\u5DEE\",\r\n\r\n valueStatisticsSTDEVP: \"\u6574\u4F53\u6807\u51C6\u5DEE\",\r\n valueStatisticslet: \"\u65B9\u5DEE\",\r\n valueStatisticsVARP: \"\u6574\u4F53\u65B9\u5DEE\",\r\n\r\n errorNotAllowEdit: \"\u975E\u7F16\u8F91\u6A21\u5F0F\u4E0B\u7981\u6B62\u8BE5\u64CD\u4F5C\uFF01\",\r\n errorNotAllowMulti: \"\u4E0D\u80FD\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\uFF0C\u7136\u540E\u518D\u8BD5\",\r\n errorSelectRange: \"\u8BF7\u9009\u62E9\u65B0\u5EFA\u900F\u89C6\u8868\u7684\u533A\u57DF\",\r\n errorIsDamage: \"\u6B64\u6570\u636E\u900F\u89C6\u8868\u7684\u6E90\u6570\u636E\u5DF2\u635F\u574F\uFF01\",\r\n errorNotAllowPivotData: \"\u4E0D\u53EF\u9009\u62E9\u6570\u636E\u900F\u89C6\u8868\u4E3A\u6E90\u6570\u636E\uFF01\",\r\n errorSelectionRange: \"\u9009\u62E9\u5931\u8D25, \u8F93\u5165\u8303\u56F4\u9519\u8BEF\uFF01\",\r\n errorIncreaseRange: \"\u8BF7\u6269\u5927\u9009\u62E9\u7684\u6570\u636E\u8303\u56F4!\",\r\n\r\n titleAddColumn: \"\u6DFB\u52A0\u5217\u5230\u6570\u636E\u900F\u89C6\u8868\",\r\n titleMoveColumn: \"\u79FB\u52A8\u8BE5\u5217\u5230\u4E0B\u65B9\u767D\u6846\",\r\n titleClearColumnFilter: \"\u6E05\u9664\u8BE5\u5217\u7684\u7B5B\u9009\u6761\u4EF6\",\r\n titleFilterColumn: \"\u7B5B\u9009\u8BE5\u5217\",\r\n\r\n titleSort: \"\u6392\u5E8F\",\r\n titleNoSort: \"\u65E0\u6392\u5E8F\",\r\n titleSortAsc: \"\u5347\u5E8F\",\r\n titleSortDesc: \"\u964D\u5E8F\",\r\n titleSortBy: \"\u6392\u5E8F\u4F9D\u636E\",\r\n titleShowSum: \"\u663E\u793A\u603B\u8BA1\",\r\n titleStasticTrue: \"\u662F\",\r\n titleStasticFalse: \"\u5426\",\r\n },\r\n dropCell: {\r\n copyCell: \"\u590D\u5236\u5355\u5143\u683C\",\r\n sequence: \"\u586B\u5145\u5E8F\u5217\",\r\n onlyFormat: \"\u4EC5\u586B\u5145\u683C\u5F0F\",\r\n noFormat: \"\u4E0D\u5E26\u683C\u5F0F\u586B\u5145\",\r\n day: \"\u4EE5\u5929\u6570\u586B\u5145\",\r\n workDay: \"\u4EE5\u5DE5\u4F5C\u65E5\u586B\u5145\",\r\n month: \"\u4EE5\u6708\u586B\u5145\",\r\n year: \"\u4EE5\u5E74\u586B\u5145\",\r\n chineseNumber: \"\u4EE5\u4E2D\u6587\u5C0F\u5199\u6570\u5B57\u586B\u5145\",\r\n },\r\n imageCtrl: {\r\n borderTile: \"\u56FE\u7247\u8FB9\u6846\u989C\u8272\u9009\u62E9\",\r\n borderCur: \"\u5F53\u524D\u989C\u8272\",\r\n },\r\n protection: {\r\n protectiontTitle: \"\u4FDD\u62A4\u5DE5\u4F5C\u8868\",\r\n enterPassword: \"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF08\u53EF\u7559\u7A7A\uFF09\",\r\n enterHint: \"\u60A8\u8BD5\u56FE\u66F4\u6539\u7684\u5355\u5143\u683C\u6216\u56FE\u8868\u4F4D\u4E8E\u53D7\u4FDD\u62A4\u7684\u5DE5\u4F5C\u8868\u4E2D\u3002\u82E5\u8981\u66F4\u6539\uFF0C\u8BF7\u53D6\u6D88\u5DE5\u4F5C\u8868\u4FDD\u62A4\u3002\u60A8\u53EF\u80FD\u9700\u8981\u8F93\u5165\u5BC6\u7801\",\r\n swichProtectionTip: \"\u4FDD\u62A4\u5DE5\u4F5C\u8868\u53CA\u9501\u5B9A\u7684\u5355\u5143\u683C\u5185\u5BB9\",\r\n authorityTitle: \"\u5141\u8BB8\u6B64\u5DE5\u4F5C\u8868\u7684\u7528\u6237\u8FDB\u884C:\",\r\n selectLockedCells: \"\u9009\u5B9A\u9501\u5B9A\u5355\u5143\u683C\",\r\n selectunLockedCells: \"\u9009\u5B9A\u89E3\u9664\u9501\u5B9A\u7684\u5355\u5143\u683C\",\r\n formatCells: \"\u8BBE\u7F6E\u5355\u5143\u683C\u683C\u5F0F\",\r\n formatColumns: \"\u8BBE\u7F6E\u5217\u683C\u5F0F\",\r\n formatRows: \"\u8BBE\u7F6E\u884C\u683C\u5F0F\",\r\n insertColumns: \"\u63D2\u5165\u5217\",\r\n insertRows: \"\u63D2\u5165\u884C\",\r\n insertHyperlinks: \"\u63D2\u5165\u8D85\u94FE\u63A5\",\r\n deleteColumns: \"\u5220\u9664\u5217\",\r\n deleteRows: \"\u5220\u9664\u884C\",\r\n sort: \"\u6392\u5E8F\",\r\n filter: \"\u4F7F\u7528\u81EA\u52A8\u7B5B\u9009\",\r\n usePivotTablereports: \"\u4F7F\u7528\u6570\u636E\u900F\u89C6\u8868\u548C\u62A5\u8868\",\r\n editObjects: \"\u7F16\u8F91\u5BF9\u8C61\",\r\n editScenarios: \"\u7F16\u8F91\u65B9\u6848\",\r\n\r\n allowRangeTitle: \"\u5141\u8BB8\u7528\u6237\u7F16\u8F91\u533A\u57DF\",\r\n allowRangeAdd: \"\u65B0\u5EFA...\",\r\n\r\n allowRangeAddTitle: \"\u6807\u9898\",\r\n allowRangeAddSqrf: \"\u5F15\u7528\u5355\u5143\u683C\",\r\n selectCellRange: \"\u70B9\u51FB\u9009\u62E9\u5355\u5143\u683C\u8303\u56F4\",\r\n selectCellRangeHolder: \"\u8BF7\u8F93\u5165\u5355\u5143\u683C\u8303\u56F4\",\r\n allowRangeAddTitlePassword: \"\u5BC6\u7801\",\r\n allowRangeAddTitleHint: \"\u63D0\u793A\",\r\n allowRangeAddTitleHintTitle: \"\u8BBE\u7F6E\u5BC6\u7801\u540E\uFF0C\u63D0\u793A\u7528\u6237\u8F93\u5165\u5BC6\u7801(\u53EF\u7559\u7A7A)\",\r\n allowRangeAddtitleDefault: \"\u8BF7\u8F93\u5165\u533A\u57DF\u540D\u79F0\",\r\n\r\n rangeItemDblclick: \"\u53CC\u51FB\u8FDB\u884C\u7F16\u8F91\",\r\n rangeItemHasPassword: \"\u5DF2\u8BBE\u7F6E\u5BC6\u7801\",\r\n\r\n rangeItemErrorTitleNull: \"\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A\",\r\n rangeItemErrorRangeNull: \"\u5355\u5143\u683C\u8303\u56F4\u4E0D\u80FD\u4E3A\u7A7A\",\r\n rangeItemErrorRange: \"\u5355\u5143\u683C\u8303\u56F4\u683C\u5F0F\u9519\u8BEF\",\r\n\r\n validationTitle: \"\u9A8C\u8BC1\u63D0\u793A\",\r\n validationTips: \"\u9700\u8981\u8F93\u5165\u5BC6\u7801\u6765\u64A4\u9500\u5DE5\u4F5C\u8868\u7684\u4FDD\u62A4\",\r\n validationInputHint: \"\u8BF7\u8F93\u5165\u5BC6\u7801\",\r\n\r\n checkPasswordNullalert: \"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01\",\r\n checkPasswordWrongalert: \"\u5BC6\u7801\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5\uFF01\",\r\n\r\n checkPasswordSucceedalert: \"\u89E3\u9501\u6210\u529F\uFF0C\u53EF\u4EE5\u7F16\u8F91\u8BE5\u533A\u57DF!\",\r\n defaultRangeHintText: \"\u8BE5\u5355\u5143\u683C\u6B63\u5728\u53D7\u5BC6\u7801\u4FDD\u62A4\u3002\",\r\n defaultSheetHintText:\r\n \"\u8BE5\u5355\u5143\u683C\u6216\u56FE\u8868\u4F4D\u4E8E\u53D7\u4FDD\u62A4\u7684\u5DE5\u4F5C\u8868\u4E2D\uFF0C\u82E5\u8981\u8FDB\u884C\u66F4\u6539\uFF0C\u8BF7\u53D6\u6D88\u5DE5\u4F5C\u8868\u4FDD\u62A4\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u8F93\u5165\u5BC6\u7801\u3002\",\r\n },\r\n cellFormat: {\r\n cellFormatTitle: \"\u8BBE\u7F6E\u5355\u5143\u683C\u683C\u5F0F\",\r\n protection: \"\u4FDD\u62A4\",\r\n locked: \"\u9501\u5B9A\u5355\u5143\u683C\",\r\n hidden: \"\u9690\u85CF\u516C\u5F0F\",\r\n protectionTips: \"\u53EA\u6709\u4FDD\u62A4\u5DE5\u4F5C\u8868\u529F\u80FD(\u5728\u83DC\u5355\u680F\u70B9\u51FB\u4FDD\u62A4\u5DE5\u4F5C\u8868\u6309\u94AE\u8FDB\u884C\u8BBE\u7F6E)\u5F00\u542F\u540E\uFF0C\u9501\u5B9A\u5355\u5143\u683C\u6216\u9690\u85CF\u516C\u5F0F\u624D\u80FD\u751F\u6548\",\r\n tipsPart: \"\u90E8\u5206\u9009\u4E2D\",\r\n tipsAll: \"\u5168\u90E8\u9009\u4E2D\",\r\n selectionIsNullAlert: \"\u8BF7\u9009\u62E9\u4E00\u4E2A\u8303\u56F4\uFF01\",\r\n sheetDataIsNullAlert: \"\u6570\u636E\u4E3A\u7A7A\u65E0\u6CD5\u8BBE\u7F6E\uFF01\",\r\n },\r\n print: {\r\n normalBtn: \"\u5E38\u89C4\u89C6\u56FE\",\r\n layoutBtn: \"\u9875\u9762\u5E03\u5C40\",\r\n pageBtn: \"\u5206\u9875\u9884\u89C8\",\r\n\r\n menuItemPrint: \"\u6253\u5370(Ctrl+P)\",\r\n menuItemAreas: \"\u6253\u5370\u533A\u57DF\",\r\n menuItemRows: \"\u6253\u5370\u6807\u9898\u884C\",\r\n menuItemColumns: \"\u6253\u5370\u6807\u9898\u5217\",\r\n suggest: \"\u5BF9\u6253\u5370\u529F\u80FD\u6709\u4EC0\u4E48\u5EFA\u8BAE\uFF1F\",\r\n range: \"\u6253\u5370\u8303\u56F4\",\r\n size: \"\u7EB8\u5F20\u5927\u5C0F\",\r\n direction: \"\u6253\u5370\u65B9\u5411\",\r\n horizontal: \"\u6A2A\u5411\",\r\n vertical: \"\u7EB5\u5411\",\r\n title: \"\u6253\u5370\u8BBE\u7F6E\",\r\n current: \"\u5F53\u524D\u5DE5\u4F5C\u8868\",\r\n area: \"\u9009\u4E2D\u533A\u57DF\",\r\n letter: \"\u4FE1\u5C01\",\r\n paper: \"\u5C0F\u62A5\u7528\u7EB8\",\r\n law: \"\u6CD5\u5B9A\u7528\u7EB8\",\r\n admin: \"\u884C\u653F\u7528\u7EB8\",\r\n expire: \"\u5DF2\u8FC7\u671F\",\r\n remain: \"\u5269\u4F59\u5929\u6570\",\r\n error: \"\u9519\u8BEF\",\r\n showLine: \"\u663E\u793A\u7F51\u683C\u7EBF\",\r\n show: \"\u663E\u793A\",\r\n hide: \"\u9690\u85CF\",\r\n preview: \"\u9884\u89C8\",\r\n },\r\n edit: {\r\n typing: \"\u6B63\u5728\u8F93\u5165\",\r\n },\r\n websocket: {\r\n success: \"WebSocket\u8FDE\u63A5\u6210\u529F\",\r\n refresh: \"WebSocket\u8FDE\u63A5\u53D1\u751F\u9519\u8BEF, \u8BF7\u5237\u65B0\u9875\u9762\uFF01\",\r\n wait: \"WebSocket\u8FDE\u63A5\u53D1\u751F\u9519\u8BEF, \u8BF7\u8010\u5FC3\u7B49\u5F85\uFF01\",\r\n close: \"WebSocket\u8FDE\u63A5\u5173\u95ED\",\r\n contact: \"\u670D\u52A1\u5668\u901A\u4FE1\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u540E\u518D\u8BD5\uFF0C\u5982\u82E5\u4E0D\u884C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01\",\r\n support: \"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301WebSocket\",\r\n },\r\n exportXlsx: {\r\n notice: \"\u8BF7\u914D\u7F6E\u5BFC\u51FA\u63D2\u4EF6\",\r\n serverError: \"\u670D\u52A1\u5668\u6B63\u5728\u7EF4\u62A4\",\r\n title: \"\u5BFC\u51FAXLSX\",\r\n range: \"\u8303\u56F4\",\r\n currentSheet: \"\u5F53\u524D\u5DE5\u4F5C\u8868\",\r\n allSheets: \"\u6240\u6709\u5DE5\u4F5C\u8868\",\r\n },\r\n};\r\n", "export default {\r\n functionlist: {\r\n \"SUMIF\": {\r\n \"d\": \"Returns a conditional sum across a range.\",\r\n \"a\": \"A conditional sum across a range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The range which is tested against `criterion`.\"\r\n },\r\n {\r\n \"name\": \"criterion\",\r\n \"detail\": \"The pattern or test to apply to `range`.\"\r\n },\r\n {\r\n \"name\": \"sum_range\",\r\n \"detail\": \"The range to be summed, if different from `range`.\"\r\n }\r\n ]\r\n },\r\n \"TAN\": {\r\n \"d\": \"Returns the tangent of an angle provided in radians.\",\r\n \"a\": \"Tangent of an angle provided in radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"angle\",\r\n \"detail\": \"The angle to find the tangent of, in radians.\"\r\n }\r\n ]\r\n },\r\n \"TANH\": {\r\n \"d\": \"Returns the hyperbolic tangent of any real number.\",\r\n \"a\": \"Hyperbolic tangent of any real number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"Any real value to calculate the hyperbolic tangent of.\"\r\n }\r\n ]\r\n },\r\n \"CEILING\": {\r\n \"d\": \"Rounds a number up to the nearest integer multiple of specified significance `factor`.\",\r\n \"a\": \"Rounds number up to nearest multiple of a factor.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round up to the nearest integer multiple of `factor`.\"\r\n },\r\n {\r\n \"name\": \"factor\",\r\n \"detail\": \"The number to whose multiples `value` will be rounded.\"\r\n }\r\n ]\r\n },\r\n \"ATAN\": {\r\n \"d\": \"Returns the inverse tangent of a value, in radians.\",\r\n \"a\": \"Inverse tangent of a value, in radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse tangent.\"\r\n }\r\n ]\r\n },\r\n \"ASINH\": {\r\n \"d\": \"Returns the inverse hyperbolic sine of a number.\",\r\n \"a\": \"Inverse hyperbolic sine of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse hyperbolic sine.\"\r\n }\r\n ]\r\n },\r\n \"ABS\": {\r\n \"d\": \"Returns the absolute value of a number.\",\r\n \"a\": \"Absolute value of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The number of which to return the absolute value.\"\r\n }\r\n ]\r\n },\r\n \"ACOS\": {\r\n \"d\": \"Returns the inverse cosine of a value, in radians.\",\r\n \"a\": \"Inverse cosine of a value, in radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse cosine. Must be between `-1` and `1`, inclusive.\"\r\n }\r\n ]\r\n },\r\n \"ACOSH\": {\r\n \"d\": \"Returns the inverse hyperbolic cosine of a number.\",\r\n \"a\": \"Inverse hyperbolic cosine of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse hyperbolic cosine. Must be greater than or equal to `1`.\"\r\n }\r\n ]\r\n },\r\n \"MULTINOMIAL\": {\r\n \"d\": \"Returns the factorial of the sum of values divided by the product of the values' factorials.\",\r\n \"a\": \"Multinomial distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider.\"\r\n }\r\n ]\r\n },\r\n \"ATANH\": {\r\n \"d\": \"Returns the inverse hyperbolic tangent of a number.\",\r\n \"a\": \"Inverse hyperbolic tangent of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse hyperbolic tangent. Must be between -1 and 1, exclusive.\"\r\n }\r\n ]\r\n },\r\n \"ATAN2\": {\r\n \"d\": \"Returns the angle between the x-axis and a line segment from the origin (0,0) to specified coordinate pair (`x`,`y`), in radians.\",\r\n \"a\": \"Arctangent of a value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The x coordinate of the endpoint of the line segment for which to calculate the angle from the x-axis.\"\r\n },\r\n {\r\n \"name\": \"y\",\r\n \"detail\": \"The y coordinate of the endpoint of the line segment for which to calculate the angle from the x-axis.\"\r\n }\r\n ]\r\n },\r\n \"COUNTBLANK\": {\r\n \"d\": \"Returns the number of empty values in a list of values and ranges.\",\r\n \"a\": \"Number of empty values.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range in which to count the number of blanks.\"\r\n }\r\n ]\r\n },\r\n \"COSH\": {\r\n \"d\": \"Returns the hyperbolic cosine of any real number.\",\r\n \"a\": \"Hyperbolic cosine of any real number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"Any real value to calculate the hyperbolic cosine of.\"\r\n }\r\n ]\r\n },\r\n \"INT\": {\r\n \"d\": \"Rounds a number down to the nearest integer that is less than or equal to it.\",\r\n \"a\": \"Rounds number down to nearest integer.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round down to the nearest integer.\"\r\n }\r\n ]\r\n },\r\n \"ISEVEN\": {\r\n \"d\": \"Checks whether the provided value is even.\",\r\n \"a\": \"Whether the provided value is even.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as even.\"\r\n }\r\n ]\r\n },\r\n \"ISODD\": {\r\n \"d\": \"Checks whether the provided value is odd.\",\r\n \"a\": \"Whether the provided value is odd.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as odd.\"\r\n }\r\n ]\r\n },\r\n \"LCM\": {\r\n \"d\": \"Returns the least common multiple of one or more integers.\",\r\n \"a\": \"Least common multiple of one or more integers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range whose factors to consider in a calculation to find the least common multiple.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges whose factors to consider to find the least common multiple.\"\r\n }\r\n ]\r\n },\r\n \"LN\": {\r\n \"d\": \"Returns the logarithm of a number, base e (Euler's number).\",\r\n \"a\": \"The logarithm of a number, base e (euler's number).\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the logarithm, base e.\"\r\n }\r\n ]\r\n },\r\n \"LOG\": {\r\n \"d\": \"Returns the logarithm of a number with respect to a base.\",\r\n \"a\": \"The logarithm of a number with respect to a base.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the logarithm.\"\r\n },\r\n {\r\n \"name\": \"base\",\r\n \"detail\": \"The base to use for calculation of the logarithm.\"\r\n }\r\n ]\r\n },\r\n \"LOG10\": {\r\n \"d\": \"Returns the logarithm of a number, base 10.\",\r\n \"a\": \"The logarithm of a number, base 10.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the logarithm, base 10.\"\r\n }\r\n ]\r\n },\r\n \"MOD\": {\r\n \"d\": \"Returns the result of the modulo operator, the remainder after a division operation.\",\r\n \"a\": \"Modulo (remainder) operator.\",\r\n \"p\": [\r\n {\r\n \"name\": \"dividend\",\r\n \"detail\": \"The number to be divided to find the remainder.\"\r\n },\r\n {\r\n \"name\": \"divisor\",\r\n \"detail\": \"The number to divide by.\"\r\n }\r\n ]\r\n },\r\n \"MROUND\": {\r\n \"d\": \"Rounds one number to the nearest integer multiple of another.\",\r\n \"a\": \"Rounds a number to the nearest integer multiple.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The number to round to the nearest integer multiple of another.\"\r\n },\r\n {\r\n \"name\": \"factor\",\r\n \"detail\": \"The number to whose multiples `value` will be rounded.\"\r\n }\r\n ]\r\n },\r\n \"ODD\": {\r\n \"d\": \"Rounds a number up to the nearest odd integer.\",\r\n \"a\": \"Rounds a number up to the nearest odd integer.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round to the next greatest odd number.\"\r\n }\r\n ]\r\n },\r\n \"SUMSQ\": {\r\n \"d\": \"Returns the sum of the squares of a series of numbers and/or cells.\",\r\n \"a\": \"Sum of squares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first number or range whose squares to add together.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional numbers or ranges whose squares to add to the square(s) of `value1`.\"\r\n }\r\n ]\r\n },\r\n \"COMBIN\": {\r\n \"d\": \"Returns the number of ways to choose some number of objects from a pool of a given size of objects.\",\r\n \"a\": \"Number of combinations from a set of objects.\",\r\n \"p\": [\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"The size of the pool of objects to choose from.\"\r\n },\r\n {\r\n \"name\": \"k\",\r\n \"detail\": \"The number of objects to choose.\"\r\n }\r\n ]\r\n },\r\n \"SUM\": {\r\n \"d\": \"Returns the sum of a series of numbers and/or cells.\",\r\n \"a\": \"Sum of a series of numbers and/or cells.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first number or range to add together.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional numbers or ranges to add to `value1`.\"\r\n }\r\n ]\r\n },\r\n \"SUBTOTAL\": {\r\n \"d\": \"Returns a subtotal for a vertical range of cells using a specified aggregation function.\",\r\n \"a\": \"Subtotal for a range using a specific function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"function_code\",\r\n \"detail\": \"The function to use in subtotal aggregation.\"\r\n },\r\n {\r\n \"name\": \"range1\",\r\n \"detail\": \"The first range over which to calculate a subtotal.\"\r\n },\r\n {\r\n \"name\": \"range2\",\r\n \"detail\": \"Additional ranges over which to calculate subtotals.\"\r\n }\r\n ]\r\n },\r\n \"ASIN\": {\r\n \"d\": \"Returns the inverse sine of a value, in radians.\",\r\n \"a\": \"Inverse sine of a value, in radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse sine. Must be between `-1` and `1`, inclusive.\"\r\n }\r\n ]\r\n },\r\n \"COUNTIF\": {\r\n \"d\": \"Returns a conditional count across a range.\",\r\n \"a\": \"A conditional count across a range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The range that is tested against `criterion`.\"\r\n },\r\n {\r\n \"name\": \"criterion\",\r\n \"detail\": \"The pattern or test to apply to `range`.\"\r\n }\r\n ]\r\n },\r\n \"RADIANS\": {\r\n \"d\": \"Converts an angle value in degrees to radians.\",\r\n \"a\": \"Converts an angle value in degrees to radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"angle\",\r\n \"detail\": \"The angle to convert from degrees to radians.\"\r\n }\r\n ]\r\n },\r\n \"RAND\": {\r\n \"d\": \"Returns a random number between 0 inclusive and 1 exclusive.\",\r\n \"a\": \"A random number between 0 inclusive and 1 exclusive.\",\r\n \"p\": []\r\n },\r\n \"COUNTUNIQUE\": {\r\n \"d\": \"Counts the number of unique values in a list of specified values and ranges.\",\r\n \"a\": \"Counts number of unique values in a range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider for uniqueness.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider for uniqueness.\"\r\n }\r\n ]\r\n },\r\n \"DEGREES\": {\r\n \"d\": \"Converts an angle value in radians to degrees.\",\r\n \"a\": \"Converts an angle value in radians to degrees.\",\r\n \"p\": [\r\n {\r\n \"name\": \"angle\",\r\n \"detail\": \"The angle to convert from radians to degrees.\"\r\n }\r\n ]\r\n },\r\n \"ERFC\": {\r\n \"d\": \"Returns the complementary Gauss error function of a value.\",\r\n \"a\": \"Complementary gauss error function of a value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"z\",\r\n \"detail\": \"The number for which to calculate the complementary Gauss error function.\"\r\n }\r\n ]\r\n },\r\n \"EVEN\": {\r\n \"d\": \"Rounds a number up to the nearest even integer.\",\r\n \"a\": \"Rounds a number up to the nearest even integer.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round to the next greatest even number.\"\r\n }\r\n ]\r\n },\r\n \"EXP\": {\r\n \"d\": \"Returns Euler's number, e (~2.718) raised to a power.\",\r\n \"a\": \"Euler's number, e (~2.718) raised to a power.\",\r\n \"p\": [\r\n {\r\n \"name\": \"exponent\",\r\n \"detail\": \"The exponent to raise e to.\"\r\n }\r\n ]\r\n },\r\n \"FACT\": {\r\n \"d\": \"Returns the factorial of a number.\",\r\n \"a\": \"Factorial of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The number or reference to a number whose factorial will be calculated and returned.\"\r\n }\r\n ]\r\n },\r\n \"FACTDOUBLE\": {\r\n \"d\": \"Returns the \\\"double factorial\\\" of a number.\",\r\n \"a\": \"\\\"double factorial\\\" of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The number or reference to a number whose double factorial will be calculated and returned.\"\r\n }\r\n ]\r\n },\r\n \"PI\": {\r\n \"d\": \"Returns the value of Pi to 14 decimal places.\",\r\n \"a\": \"The number pi.\",\r\n \"p\": []\r\n },\r\n \"FLOOR\": {\r\n \"d\": \"Rounds a number down to the nearest integer multiple of specified significance `factor`.\",\r\n \"a\": \"Rounds number down to nearest multiple of a factor.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round down to the nearest integer multiple of `factor`.\"\r\n },\r\n {\r\n \"name\": \"factor\",\r\n \"detail\": \"The number to whose multiples `value` will be rounded.\"\r\n }\r\n ]\r\n },\r\n \"GCD\": {\r\n \"d\": \"Returns the greatest common divisor of one or more integers.\",\r\n \"a\": \"Greatest common divisor of one or more integers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range whose factors to consider in a calculation to find the greatest common divisor.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges whose factors to consider to find the greatest common divisor.\"\r\n }\r\n ]\r\n },\r\n \"RANDBETWEEN\": {\r\n \"d\": \"Returns a uniformly random integer between two values, inclusive.\",\r\n \"a\": \"Random integer between two values, inclusive.\",\r\n \"p\": [\r\n {\r\n \"name\": \"low\",\r\n \"detail\": \"The low end of the random range.\"\r\n },\r\n {\r\n \"name\": \"high\",\r\n \"detail\": \"The high end of the random range.\"\r\n }\r\n ]\r\n },\r\n \"ROUND\": {\r\n \"d\": \"Rounds a number to a certain number of decimal places according to standard rules.\",\r\n \"a\": \"Rounds a number according to standard rules.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round to `places` number of places.\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"The number of decimal places to which to round.\"\r\n }\r\n ]\r\n },\r\n \"ROUNDDOWN\": {\r\n \"d\": \"Rounds a number to a certain number of decimal places, always rounding down to the next valid increment.\",\r\n \"a\": \"Rounds down a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round to `places` number of places, always rounding down.\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"The number of decimal places to which to round.\"\r\n }\r\n ]\r\n },\r\n \"ROUNDUP\": {\r\n \"d\": \"Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.\",\r\n \"a\": \"Rounds up a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to round to `places` number of places, always rounding up.\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"The number of decimal places to which to round.\"\r\n }\r\n ]\r\n },\r\n \"SERIESSUM\": {\r\n \"d\": \"Given parameters `x`, `n`, `m`, and `a`, returns the power series sum a\",\r\n \"a\": \"Sum of a power series.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the power series. Varies depending on the type of approximation, may be angle, exponent, or some other value.\"\r\n },\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"The initial power to which to raise `x` in the power series.\"\r\n },\r\n {\r\n \"name\": \"m\",\r\n \"detail\": \"The additive increment by which to increase `x`.\"\r\n },\r\n {\r\n \"name\": \"a\",\r\n \"detail\": \"The array or range containing the coefficients of the power series.\"\r\n }\r\n ]\r\n },\r\n \"SIGN\": {\r\n \"d\": \"Given an input number, returns `-1` if it is negative, `1` if positive, and `0` if it is zero.\",\r\n \"a\": \"Sign of a provided number (+/-/0).\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value whose sign will be evaluated.\"\r\n }\r\n ]\r\n },\r\n \"SIN\": {\r\n \"d\": \"Returns the sine of an angle provided in radians.\",\r\n \"a\": \"Sine of an angle provided in radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"angle\",\r\n \"detail\": \"The angle to find the sine of, in radians.\"\r\n }\r\n ]\r\n },\r\n \"SINH\": {\r\n \"d\": \"Returns the hyperbolic sine of any real number.\",\r\n \"a\": \"Hyperbolic sine of any real number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"Any real value to calculate the hyperbolic sine of.\"\r\n }\r\n ]\r\n },\r\n \"SQRT\": {\r\n \"d\": \"Returns the positive square root of a positive number.\",\r\n \"a\": \"Positive square root of a positive number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The number for which to calculate the positive square root.\"\r\n }\r\n ]\r\n },\r\n \"SQRTPI\": {\r\n \"d\": \"Returns the positive square root of the product of Pi and the given positive number.\",\r\n \"a\": \"Square root of the product of pi and number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The number which will be multiplied by Pi and have the product's square root returned\"\r\n }\r\n ]\r\n },\r\n \"GAMMALN\": {\r\n \"d\": \"Returns the logarithm of a specified Gamma function, base e (Euler's number).\",\r\n \"a\": \"Logarithm of gamma function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The input to the Gamma function. The natural logarithm of Gamma(`value`) will be returned.\"\r\n }\r\n ]\r\n },\r\n \"COS\": {\r\n \"d\": \"Returns the cosine of an angle provided in radians.\",\r\n \"a\": \"Cosine of an angle provided in radians.\",\r\n \"p\": [\r\n {\r\n \"name\": \"angle\",\r\n \"detail\": \"The angle to find the cosine of, in radians.\"\r\n }\r\n ]\r\n },\r\n \"TRUNC\": {\r\n \"d\": \"Truncates a number to a certain number of significant digits by omitting less significant digits.\",\r\n \"a\": \"Truncates a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be truncated.\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"The number of significant digits to the right of the decimal point to retain.\"\r\n }\r\n ]\r\n },\r\n \"QUOTIENT\": {\r\n \"d\": \"Returns one number divided by another.\",\r\n \"a\": \"One number divided by another.\",\r\n \"p\": [\r\n {\r\n \"name\": \"dividend\",\r\n \"detail\": \"The number to be divided.\"\r\n },\r\n {\r\n \"name\": \"divisor\",\r\n \"detail\": \"The number to divide by.\"\r\n }\r\n ]\r\n },\r\n \"POWER\": {\r\n \"d\": \"Returns a number raised to a power.\",\r\n \"a\": \"A number raised to a power.\",\r\n \"p\": [\r\n {\r\n \"name\": \"base\",\r\n \"detail\": \"The number to raise to the `exponent` power.\"\r\n },\r\n {\r\n \"name\": \"exponent\",\r\n \"detail\": \"The exponent to raise `base` to.\"\r\n }\r\n ]\r\n },\r\n \"SUMIFS\": {\r\n \"d\": \"Returns the sum of a range depending on multiple criteria.\",\r\n \"a\": \"Sums a range depending on multiple criteria.\",\r\n \"p\": [\r\n {\r\n \"name\": \"sum_range\",\r\n \"detail\": \"The range to sum.\"\r\n },\r\n {\r\n \"name\": \"criteria_range1\",\r\n \"detail\": \"The range to check against criterion1.\"\r\n },\r\n {\r\n \"name\": \"criterion1\",\r\n \"detail\": \"The pattern or test to apply to criteria_range1.\"\r\n },\r\n {\r\n \"name\": \"criteria_range2\",\r\n \"detail\": \"Additional ranges to check.\"\r\n }\r\n ]\r\n },\r\n \"COUNTIFS\": {\r\n \"d\": \"Returns the count of a range depending on multiple criteria.\",\r\n \"a\": \"Count values depending on multiple criteria.\",\r\n \"p\": [\r\n {\r\n \"name\": \"criteria_range1\",\r\n \"detail\": \"The range to check against `criterion1`.\"\r\n },\r\n {\r\n \"name\": \"criterion1\",\r\n \"detail\": \"The pattern or test to apply to `criteria_range1`.\"\r\n },\r\n {\r\n \"name\": \"criteria_range2\",\r\n \"detail\": \"Additional ranges to check.\"\r\n }\r\n ]\r\n },\r\n \"PRODUCT\": {\r\n \"d\": \"Returns the result of multiplying a series of numbers together.\",\r\n \"a\": \"Result of multiplying a series of numbers together.\",\r\n \"p\": [\r\n {\r\n \"name\": \"factor1\",\r\n \"detail\": \"The first number or range to calculate for the product.\"\r\n },\r\n {\r\n \"name\": \"factor2\",\r\n \"detail\": \"More numbers or ranges to calculate for the product.\"\r\n }\r\n ]\r\n },\r\n \"HARMEAN\": {\r\n \"d\": \"Calculates the harmonic mean of a dataset.\",\r\n \"a\": \"The harmonic mean of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the population.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the population.\"\r\n }\r\n ]\r\n },\r\n \"HYPGEOMDIST\": {\r\n \"d\": \"Calculates the probability of drawing a certain number of successes in a certain number of tries given a population of a certain size containing a certain number of successes, without replacement of draws.\",\r\n \"a\": \"Hypergeometric distribution probability.\",\r\n \"p\": [\r\n {\r\n \"name\": \"num_successes\",\r\n \"detail\": \"The desired number of successes.\"\r\n },\r\n {\r\n \"name\": \"num_draws\",\r\n \"detail\": \"The number of permitted draws.\"\r\n },\r\n {\r\n \"name\": \"successes_in_pop\",\r\n \"detail\": \"The total number of successes in the population.\"\r\n },\r\n {\r\n \"name\": \"pop_size\",\r\n \"detail\": \"The total size of the population\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Determine the logical value of the function form. \\n\\nIf cumulative is TRUE(), HYPGEOM.DIST returns the cumulative distribution function;\\n\\nif FALSE(), it returns the probability density function.\"\r\n }\r\n ]\r\n },\r\n \"INTERCEPT\": {\r\n \"d\": \"Calculates the y-value at which the line resulting from linear regression of a dataset will intersect the y-axis (x=0).\",\r\n \"a\": \"Y-intercept of line derived via linear regression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"KURT\": {\r\n \"d\": \"Calculates the kurtosis of a dataset, which describes the shape, and in particular the \\\"peakedness\\\" of that dataset.\",\r\n \"a\": \"Kurtosis of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the dataset.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the dataset.\"\r\n }\r\n ]\r\n },\r\n \"LARGE\": {\r\n \"d\": \"Returns the nth largest element from a data set, where n is user-defined.\",\r\n \"a\": \"Nth largest element from a data set.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"Array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"The rank from largest to smallest of the element to return.\"\r\n }\r\n ]\r\n },\r\n \"STDEVA\": {\r\n \"d\": \"Calculates the standard deviation based on a sample, setting text to the value `0`.\",\r\n \"a\": \"Standard deviation of sample (text as 0).\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the sample.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the sample.\"\r\n }\r\n ]\r\n },\r\n \"STDEVP\": {\r\n \"d\": \"Calculates the standard deviation based on an entire population.\",\r\n \"a\": \"Standard deviation of an entire population.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the population.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the population.\"\r\n }\r\n ]\r\n },\r\n \"GEOMEAN\": {\r\n \"d\": \"Calculates the geometric mean of a dataset.\",\r\n \"a\": \"The geometric mean of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the population.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the population.\"\r\n }\r\n ]\r\n },\r\n \"RANK_EQ\": {\r\n \"d\": \"Returns the rank of a specified value in a dataset. If there is more than one entry of the same value in the dataset, the top rank of the entries will be returned.\",\r\n \"a\": \"Top rank of a specified value in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value whose rank will be determined.\"\r\n },\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"is_ascending\",\r\n \"detail\": \"Whether to consider the values in `data` in descending or ascending order. If omitted, the default is descending (FALSE).\"\r\n }\r\n ]\r\n },\r\n \"RANK_AVG\": {\r\n \"d\": \"Returns the rank of a specified value in a dataset. If there is more than one entry of the same value in the dataset, the average rank of the entries will be returned.\",\r\n \"a\": \"Average rank of a specified value in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value whose rank will be determined.\"\r\n },\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"is_ascending\",\r\n \"detail\": \"Whether to consider the values in `data` in descending or ascending order. If omitted, the default is descending (FALSE).\"\r\n }\r\n ]\r\n },\r\n \"PERCENTRANK_EXC\": {\r\n \"d\": \"Returns the percentage rank (percentile) from 0 to 1 exclusive of a specified value in a dataset.\",\r\n \"a\": \"Percentage rank (percentile) from 0 to 1 exclusive.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value whose percentage rank will be determined.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant figures to use in the calculation. Default is 3.\"\r\n }\r\n ]\r\n },\r\n \"PERCENTRANK_INC\": {\r\n \"d\": \"Returns the percentage rank (percentile) from 0 to 1 inclusive of a specified value in a dataset.\",\r\n \"a\": \"Percentage rank (percentile) from 0 to 1 inclusive.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value whose percentage rank will be determined.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant figures to use in the calculation. Default is 3.\"\r\n }\r\n ]\r\n },\r\n \"FORECAST\": {\r\n \"d\": \"Calculates the expected y-value for a specified x based on a linear regression of a dataset.\",\r\n \"a\": \"Expected y-value based of linear regression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The value on the x-axis to forecast.\"\r\n },\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"FISHERINV\": {\r\n \"d\": \"Returns the inverse Fisher transformation of a specified value.\",\r\n \"a\": \"Inverse fisher transformation of a specified value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the inverse Fisher transformation.\"\r\n }\r\n ]\r\n },\r\n \"FISHER\": {\r\n \"d\": \"Returns the Fisher transformation of a specified value.\",\r\n \"a\": \"Fisher transformation of a specified value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value for which to calculate the Fisher transformation.\"\r\n }\r\n ]\r\n },\r\n \"MODE_SNGL\": {\r\n \"d\": \"Returns the most commonly occurring value in a dataset.\",\r\n \"a\": \"Most commonly occurring value in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating mode.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating mode.\"\r\n }\r\n ]\r\n },\r\n \"WEIBULL_DIST\": {\r\n \"d\": \"Returns the value of the Weibull distribution function (or Weibull cumulative distribution function) for a specified shape and scale.\",\r\n \"a\": \"Weibull distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the Weibull distribution function.\"\r\n },\r\n {\r\n \"name\": \"shape\",\r\n \"detail\": \"The shape parameter of the Weibull distribution function.\"\r\n },\r\n {\r\n \"name\": \"scale\",\r\n \"detail\": \"The scale parameter of the Weibull distribution function.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Whether to use the cumulative distribution function.\"\r\n }\r\n ]\r\n },\r\n \"COUNT\": {\r\n \"d\": \"Returns the number of numeric values in a dataset.\",\r\n \"a\": \"The number of numeric values in dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when counting.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when counting.\"\r\n }\r\n ]\r\n },\r\n \"COUNTA\": {\r\n \"d\": \"Returns the number of values in a dataset.\",\r\n \"a\": \"The number of values in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when counting.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when counting.\"\r\n }\r\n ]\r\n },\r\n \"AVEDEV\": {\r\n \"d\": \"Calculates the average of the magnitudes of deviations of data from a dataset's mean.\",\r\n \"a\": \"Average magnitude of deviations from mean.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the sample.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the sample.\"\r\n }\r\n ]\r\n },\r\n \"AVERAGE\": {\r\n \"d\": \"Returns the numerical average value in a dataset, ignoring text.\",\r\n \"a\": \"Numerical average value in a dataset, ignoring text.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the average value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the average value.\"\r\n }\r\n ]\r\n },\r\n \"AVERAGEA\": {\r\n \"d\": \"Returns the numerical average value in a dataset.\",\r\n \"a\": \"Numerical average value in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the average value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the average value.\"\r\n }\r\n ]\r\n },\r\n \"BINOM_DIST\": {\r\n \"d\": \"Calculates the probability of drawing a certain number of successes (or a maximum number of successes) in a certain number of tries given a population of a certain size containing a certain number of successes, with replacement of draws.\",\r\n \"a\": \"Binomial distribution probability.\",\r\n \"p\": [\r\n {\r\n \"name\": \"num_successes\",\r\n \"detail\": \"The number of successes for which to calculate the probability in `num_trials` trials.\"\r\n },\r\n {\r\n \"name\": \"num_trials\",\r\n \"detail\": \"The number of independent trials.\"\r\n },\r\n {\r\n \"name\": \"prob_success\",\r\n \"detail\": \"The probability of success in any given trial.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Whether to use the binomial cumulative distribution.\"\r\n }\r\n ]\r\n },\r\n \"BINOM_INV\": {\r\n \"d\": \"Calculates the smallest value for which the cumulative binomial distribution is greater than or equal to a specified criteria.\",\r\n \"a\": \"Inverse cumulative binomial distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"num_trials\",\r\n \"detail\": \"The number of independent trials.\"\r\n },\r\n {\r\n \"name\": \"prob_success\",\r\n \"detail\": \"The probability of success in any given trial.\"\r\n },\r\n {\r\n \"name\": \"target_prob\",\r\n \"detail\": \"The desired threshold probability.\"\r\n }\r\n ]\r\n },\r\n \"CONFIDENCE_NORM\": {\r\n \"d\": \"Calculates the width of half the confidence interval for a normal distribution.\",\r\n \"a\": \"Confidence interval for a normal distribution.\",\r\n \"p\": [\r\n {\r\n \"name\": \"alpha\",\r\n \"detail\": \"One minus the desired confidence level. E.g. `0.1` for `0.9`, or 90%, confidence.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation of the population.\"\r\n },\r\n {\r\n \"name\": \"pop_size\",\r\n \"detail\": \"The size of the population.\"\r\n }\r\n ]\r\n },\r\n \"CORREL\": {\r\n \"d\": \"Calculates r, the Pearson product-moment correlation coefficient of a dataset.\",\r\n \"a\": \"Pearson Product-Moment Correlation Coefficient.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"COVARIANCE_P\": {\r\n \"d\": \"Calculates the covariance of a dataset.\",\r\n \"a\": \"The covariance of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"COVARIANCE_S\": {\r\n \"d\": \"Calculates the sample covariance of a dataset.\",\r\n \"a\": \"The sample covariance of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"DEVSQ\": {\r\n \"d\": \"Calculates the sum of squares of deviations based on a sample.\",\r\n \"a\": \"The sum of squares of deviations based on a sample.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the sample.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the sample.\"\r\n }\r\n ]\r\n },\r\n \"EXPON_DIST\": {\r\n \"d\": \"Returns the value of the exponential distribution function with a specified lambda at a specified value.\",\r\n \"a\": \"Exponential distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the exponential distribution function.\"\r\n },\r\n {\r\n \"name\": \"lambda\",\r\n \"detail\": \"The lambda to specify the exponential distribution function.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Whether to use the exponential cumulative distribution.\"\r\n }\r\n ]\r\n },\r\n \"AVERAGEIF\": {\r\n \"d\": \"Returns the average of a range depending on criteria.\",\r\n \"a\": \"Average of values depending on criteria.\",\r\n \"p\": [\r\n {\r\n \"name\": \"criteria_range\",\r\n \"detail\": \"The range to check against `criterion`.\"\r\n },\r\n {\r\n \"name\": \"criterion\",\r\n \"detail\": \"The pattern or test to apply to `criteria_range`.\"\r\n },\r\n {\r\n \"name\": \"average_range\",\r\n \"detail\": \"The range to average. If not included, `criteria_range` is used for the average instead.\"\r\n }\r\n ]\r\n },\r\n \"AVERAGEIFS\": {\r\n \"d\": \"Returns the average of a range depending on multiple criteria.\",\r\n \"a\": \"Average of values depending on multiple criteria.\",\r\n \"p\": [\r\n {\r\n \"name\": \"average_range\",\r\n \"detail\": \"The range to average.\"\r\n },\r\n {\r\n \"name\": \"criteria_range1\",\r\n \"detail\": \"The range to check against `criterion1`.\"\r\n },\r\n {\r\n \"name\": \"criterion1\",\r\n \"detail\": \"The pattern or test to apply to `criteria_range1`.\"\r\n },\r\n {\r\n \"name\": \"criteria_range2\",\r\n \"detail\": \"Additional ranges to check.\"\r\n }\r\n ]\r\n },\r\n \"PERMUT\": {\r\n \"d\": \"Returns the number of ways to choose some number of objects from a pool of a given size of objects, considering order.\",\r\n \"a\": \"Number of permutations from a number of objects.\",\r\n \"p\": [\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"The size of the pool of objects to choose from.\"\r\n },\r\n {\r\n \"name\": \"k\",\r\n \"detail\": \"The number of objects to choose.\"\r\n }\r\n ]\r\n },\r\n \"TRIMMEAN\": {\r\n \"d\": \"Calculates the mean of a dataset excluding some proportion of data from the high and low ends of the dataset.\",\r\n \"a\": \"Mean of a dataset excluding high/low ends.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"Array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"exclude_proportion\",\r\n \"detail\": \"The proportion of the dataset to exclude, from the extremities of the set.\"\r\n }\r\n ]\r\n },\r\n \"PERCENTILE_EXC\": {\r\n \"d\": \"Returns the value at a given percentile of a dataset exclusive of 0 and 1.\",\r\n \"a\": \"Value at a given percentile of a dataset exclusive of 0 and 1.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"percentile\",\r\n \"detail\": \"The percentile, exclusive of 0 and 1, whose value within 'data' will be calculated and returned.\"\r\n }\r\n ]\r\n },\r\n \"PERCENTILE_INC\": {\r\n \"d\": \"Returns the value at a given percentile of a dataset.\",\r\n \"a\": \"Value at a given percentile of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"percentile\",\r\n \"detail\": \"The percentile whose value within `data` will be calculated and returned.`\"\r\n }\r\n ]\r\n },\r\n \"PEARSON\": {\r\n \"d\": \"Calculates r, the Pearson product-moment correlation coefficient of a dataset.\",\r\n \"a\": \"Pearson Product-Moment Correlation Coefficient.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"NORM_S_INV\": {\r\n \"d\": \"Returns the value of the inverse standard normal distribution function for a specified value.\",\r\n \"a\": \"Inverse standard normal distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the inverse standard normal distribution function.\"\r\n }\r\n ]\r\n },\r\n \"NORM_S_DIST\": {\r\n \"d\": \"Returns the value of the standard normal cumulative distribution function for a specified value.\",\r\n \"a\": \"Standard normal cumulative distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the standard normal cumulative distribution function.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Determine the logical value of the function form. \\n\\nIf TRUE(), it returns the cumulative distribution function;\\n\\nIf it is FALSE(), it returns the probability density function.\"\r\n }\r\n ]\r\n },\r\n \"NORM_INV\": {\r\n \"d\": \"Returns the value of the inverse normal distribution function for a specified value, mean, and standard deviation.\",\r\n \"a\": \"Inverse normal distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the inverse normal distribution function.\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"The mean (mu) of the normal distribution function.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation (sigma) of the normal distribution function.\"\r\n }\r\n ]\r\n },\r\n \"NORM_DIST\": {\r\n \"d\": \"Returns the value of the normal distribution function (or normal cumulative distribution function) for a specified value, mean, and standard deviation.\",\r\n \"a\": \"Normal distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the normal distribution function.\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"The mean (mu) of the normal distribution function.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation (sigma) of the normal distribution function.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Whether to use the normal cumulative distribution function rather than the distribution function.\"\r\n }\r\n ]\r\n },\r\n \"NEGBINOM_DIST\": {\r\n \"d\": \"Calculates the probability of drawing a certain number of failures before a certain number of successes given a probability of success in independent trials.\",\r\n \"a\": \"Negative binomial distribution probability.\",\r\n \"p\": [\r\n {\r\n \"name\": \"num_failures\",\r\n \"detail\": \"The number of failures to model.\"\r\n },\r\n {\r\n \"name\": \"num_successes\",\r\n \"detail\": \"The number of successes to model.\"\r\n },\r\n {\r\n \"name\": \"prob_success\",\r\n \"detail\": \"The probability of success in any given trial.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Determine the logical value of the function form. \\n\\nIf TRUE(), it returns the cumulative distribution function;\\n\\nIf it is FALSE(), it returns the probability density function.\"\r\n }\r\n ]\r\n },\r\n \"MINA\": {\r\n \"d\": \"Returns the minimum numeric value in a dataset.\",\r\n \"a\": \"Minimum numeric value in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the minimum value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the minimum value.\"\r\n }\r\n ]\r\n },\r\n \"MIN\": {\r\n \"d\": \"Returns the minimum value in a numeric dataset.\",\r\n \"a\": \"Minimum value in a numeric dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the minimum value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the minimum value.\"\r\n }\r\n ]\r\n },\r\n \"MEDIAN\": {\r\n \"d\": \"Returns the median value in a numeric dataset.\",\r\n \"a\": \"Median value in a numeric dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the median value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the median value.\"\r\n }\r\n ]\r\n },\r\n \"MAXA\": {\r\n \"d\": \"Returns the maximum numeric value in a dataset.\",\r\n \"a\": \"Maximum numeric value in a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the maximum value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the maximum value.\"\r\n }\r\n ]\r\n },\r\n \"MAX\": {\r\n \"d\": \"Returns the maximum value in a numeric dataset.\",\r\n \"a\": \"Maximum value in a numeric dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range to consider when calculating the maximum value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to consider when calculating the maximum value.\"\r\n }\r\n ]\r\n },\r\n \"LOGNORM_INV\": {\r\n \"d\": \"Returns the value of the inverse log-normal cumulative distribution with given mean and standard deviation at a specified value.\",\r\n \"a\": \"Inverse log-normal cumulative distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the inverse log-normal cumulative distribution function.\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"The mean (mu) of the inverse log-normal cumulative distribution function.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation (sigma) of the inverse log-normal cumulative distribution function.\"\r\n }\r\n ]\r\n },\r\n \"LOGNORM_DIST\": {\r\n \"d\": \"Returns the value of the log-normal cumulative distribution with given mean and standard deviation at a specified value.\",\r\n \"a\": \"Log-normal cumulative distribution probability.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the log-normal cumulative distribution function.\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"The mean (mu) of the log-normal cumulative distribution function.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation (sigma) of the log-normal cumulative distribution function.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Determine the logical value of the function form. \\n\\nIf TRUE(), it returns the cumulative distribution function;\\n\\nIf it is FALSE(), it returns the probability density function.\"\r\n }\r\n ]\r\n },\r\n \"Z_TEST\": {\r\n \"d\": \"Returns the one-tailed p-value of a Z-test with standard distribution.\",\r\n \"a\": \"One-tailed p-value of a z-test.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The test statistic to use in the Z-test.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation to assume for the Z-test. If this is not provided, the standard deviation of the data will be used.\"\r\n }\r\n ]\r\n },\r\n \"PROB\": {\r\n \"d\": \"Given a set of values and corresponding probabilities, calculates the probability that a value chosen at random falls between two limits.\",\r\n \"a\": \"Probability values lie in a range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"Array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"probabilities\",\r\n \"detail\": \"Array or range containing probabilities corresponding to `data`.\"\r\n },\r\n {\r\n \"name\": \"low_limit\",\r\n \"detail\": \"The lower bound on the value range for which to calculate the probability.\"\r\n },\r\n {\r\n \"name\": \"high_limit\",\r\n \"detail\": \"The upper bound on the value range for which to calculate the probability.\"\r\n }\r\n ]\r\n },\r\n \"QUARTILE_EXC\": {\r\n \"d\": \"Returns a value nearest to a specified quartile of a dataset exclusive of 0 and 4.\",\r\n \"a\": \"Value nearest to a specific quartile of a dataset exclusive of 0 and 4.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"quartile_number\",\r\n \"detail\": \"Which quartile to return.\"\r\n }\r\n ]\r\n },\r\n \"QUARTILE_INC\": {\r\n \"d\": \"Returns a value nearest to a specified quartile of a dataset.\",\r\n \"a\": \"Value nearest to a specific quartile of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"quartile_number\",\r\n \"detail\": \"Which quartile value to return.\"\r\n }\r\n ]\r\n },\r\n \"POISSON_DIST\": {\r\n \"d\": \"Returns the value of the Poisson distribution function (or Poisson cumulative distribution function) for a specified value and mean.\",\r\n \"a\": \"Poisson distribution function.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the Poisson distribution function.\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"The mean (mu) of the Poisson distribution function.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Whether to use the Poisson cumulative distribution function rather than the distribution function.\"\r\n }\r\n ]\r\n },\r\n \"RSQ\": {\r\n \"d\": \"Calculates the square of r, the Pearson product-moment correlation coefficient of a dataset.\",\r\n \"a\": \"Square of the correlation coefficient.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"T_DIST\": {\r\n \"d\": \"Calculates the left tail probability for a Student's t-distribution with a given input (x).\",\r\n \"a\": \"The left-tailed Student's t-distribution\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the t-distribution function.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"The number of degrees of freedom.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"If cumulative is TRUE, T.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function.\"\r\n }\r\n ]\r\n },\r\n \"T_DIST_2T\": {\r\n \"d\": \"Calculates the probability for two tailed Student's t-distribution with a given input (x).\",\r\n \"a\": \"The two tailed Student's t-distribution\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the t-distribution function.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"The number of degrees of freedom.\"\r\n }\r\n ]\r\n },\r\n \"T_DIST_RT\": {\r\n \"d\": \"Calculates the right tail probability for a Student's t-distribution with a given input (x).\",\r\n \"a\": \"The right-tailed Student's t-distribution\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the t-distribution function.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"The number of degrees of freedom.\"\r\n }\r\n ]\r\n },\r\n \"T_INV\": {\r\n \"d\": \"Calculates the negative inverse of the one-tailed TDIST function.\",\r\n \"a\": \"T.INV\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"The probability associated with the two-tailed t-distribution.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"The number of degrees of freedom.\"\r\n }\r\n ]\r\n },\r\n \"T_INV_2T\": {\r\n \"d\": \"Calculates the inverse of the two-tailed TDIST function.\",\r\n \"a\": \"T.INV.2T\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"The probability associated with the two-tailed t-distribution.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"The number of degrees of freedom.\"\r\n }\r\n ]\r\n },\r\n \"T_TEST\": {\r\n \"d\": \"t-test. Returns the probability associated with Student's t-test. Determines whether two samples are likely to have come from the same two underlying populations that have the same mean.\",\r\n \"a\": \"Returns the probability associated with t-test.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range1\",\r\n \"detail\": \"The first sample of data or group of cells to consider for the t-test.\"\r\n },\r\n {\r\n \"name\": \"range2\",\r\n \"detail\": \"The second sample of data or group of cells to consider for the t-test.\"\r\n },\r\n {\r\n \"name\": \"tails\",\r\n \"detail\": \"Specifies the number of distribution tails.\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"Specifies the type of t-test.\"\r\n }\r\n ]\r\n },\r\n \"F_DIST\": {\r\n \"d\": \"Calculates the left-tailed F probability distribution (degree of diversity) for two data sets with given input x. Alternately called Fisher-Snedecor distribution or Snedecor's F distribution.\",\r\n \"a\": \"F probability distribution (left-tailed).\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the F probability distribution function. The value at which to evaluate the function.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom1\",\r\n \"detail\": \"The numerator of the number of degrees of freedom.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom2\",\r\n \"detail\": \"The denominator of the number of degrees of freedom.\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"Logical value that determines the form of the function.\"\r\n }\r\n ]\r\n },\r\n \"F_DIST_RT\": {\r\n \"d\": \"Calculates the right-tailed F probability distribution (degree of diversity) for two data sets with given input x. Alternately called Fisher-Snedecor distribution or Snedecor's F distribution.\",\r\n \"a\": \"F probability distribution.\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"The input to the F probability distribution function. The value at which to evaluate the function.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom1\",\r\n \"detail\": \"The numerator of the number of degrees of freedom.\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom2\",\r\n \"detail\": \"The denominator of the number of degrees of freedom.\"\r\n }\r\n ]\r\n },\r\n \"VAR_P\": {\r\n \"d\": \"Calculates the variance based on an entire population.\",\r\n \"a\": \"Variance of entire population.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the population.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the population.\"\r\n }\r\n ]\r\n },\r\n \"VAR_S\": {\r\n \"d\": \"Calculates the variance based on a sample.\",\r\n \"a\": \"Variance.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the sample.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the sample.\"\r\n }\r\n ]\r\n },\r\n \"VARA\": {\r\n \"d\": \"Calculates the variance based on a sample, setting text to the value `0`.\",\r\n \"a\": \"Variance of sample (text as 0).\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the sample.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the sample.\"\r\n }\r\n ]\r\n },\r\n \"VARPA\": {\r\n \"d\": \"Calculates the variance based on an entire population, setting text to the value `0`.\",\r\n \"a\": \"Variance of entire population (text as 0).\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the population.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the population.\"\r\n }\r\n ]\r\n },\r\n \"STEYX\": {\r\n \"d\": \"Calculates the standard error of the predicted y-value for each x in the regression of a dataset.\",\r\n \"a\": \"Standard error of predicted y-values in regression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"STANDARDIZE\": {\r\n \"d\": \"Calculates the normalized equivalent of a random variable given mean and standard deviation of the distribution.\",\r\n \"a\": \"Normalized equivalent of a random variable.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value of the random variable to normalize.\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"The mean of the distribution.\"\r\n },\r\n {\r\n \"name\": \"standard_deviation\",\r\n \"detail\": \"The standard deviation of the distribution.\"\r\n }\r\n ]\r\n },\r\n \"SMALL\": {\r\n \"d\": \"Returns the nth smallest element from a data set, where n is user-defined.\",\r\n \"a\": \"Nth smallest element in a data set.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the dataset to consider.\"\r\n },\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"The rank from smallest to largest of the element to return.\"\r\n }\r\n ]\r\n },\r\n \"SLOPE\": {\r\n \"d\": \"Calculates the slope of the line resulting from linear regression of a dataset.\",\r\n \"a\": \"Slope of line from linear regression of data.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_y\",\r\n \"detail\": \"The range representing the array or matrix of dependent data.\"\r\n },\r\n {\r\n \"name\": \"data_x\",\r\n \"detail\": \"The range representing the array or matrix of independent data.\"\r\n }\r\n ]\r\n },\r\n \"SKEW\": {\r\n \"d\": \"Calculates the skewness of a dataset, which describes the symmetry of that dataset about the mean.\",\r\n \"a\": \"Skewness of a dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the dataset.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the dataset.\"\r\n }\r\n ]\r\n },\r\n \"SKEW_P\": {\r\n \"d\": \"Calculates the skewness of a dataset, which describes the symmetry of that dataset about the mean. This assumes the dataset is for the population.\",\r\n \"a\": \"Skewness of a population's dataset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value or range of the dataset.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional values or ranges to include in the dataset.\"\r\n }\r\n ]\r\n },\r\n \"VLOOKUP\": {\r\n \"d\": \"Vertical lookup. Searches down the first column of a range for a key and returns the value of a specified cell in the row found.\",\r\n \"a\": \"Vertical lookup.\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_key\",\r\n \"detail\": \"The value to search for. For example, `42`, `\\\"Cats\\\"`, or `I24`.\"\r\n },\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The range to consider for the search. The first column in the range is searched for the key specified in `search_key`.\"\r\n },\r\n {\r\n \"name\": \"index\",\r\n \"detail\": \"The column index of the value to be returned, where the first column in `range` is numbered 1.\"\r\n },\r\n {\r\n \"name\": \"is_sorted\",\r\n \"detail\": \"Indicates whether the column to be searched (the first column of the specified range) is sorted, in which case the closest match for `search_key` will be returned.\"\r\n }\r\n ]\r\n },\r\n \"HLOOKUP\": {\r\n \"d\": \"Horizontal lookup. Searches across the first row of a range for a key and returns the value of a specified cell in the column found.\",\r\n \"a\": \"Horizontal lookup\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_key\",\r\n \"detail\": \"The value to search for. For example, `42`, `\\\"Cats\\\"`, or `I24`.\"\r\n },\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The range to consider for the search. The first row in the range is searched for the key specified in `search_key`.\"\r\n },\r\n {\r\n \"name\": \"index\",\r\n \"detail\": \"The row index of the value to be returned, where the first row in `range` is numbered 1.\"\r\n },\r\n {\r\n \"name\": \"is_sorted\",\r\n \"detail\": \"Indicates whether the row to be searched (the first row of the specified range) is sorted.\"\r\n }\r\n ]\r\n },\r\n \"LOOKUP\": {\r\n \"d\": \"Looks through a sorted row or column for a key and returns the value of the cell in a result range located in the same position as the search row or column.\",\r\n \"a\": \"Look up a value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_key\",\r\n \"detail\": \"The value to search for in the row or column. For example, `42`, `\\\"Cats\\\"`, or `I24`.\"\r\n },\r\n {\r\n \"name\": \"search_range|search_result_array\",\r\n \"detail\": \"One method of using this function is to provide a single sorted row or column `search_range` to look through for the `search_key` with a second argument `result_range`. The other way is to combine these two arguments into one `search_result_array` where the first row or column is searched and a value is returned from the last row or column in the array. If `search_key` is not found, a non-exact match may be returned.\"\r\n },\r\n {\r\n \"name\": \"result_range\",\r\n \"detail\": \"The range from which to return a result. The value returned corresponds to the location where `search_key` is found in `search_range`. This range must be only a single row or column and should not be used if using the `search_result_array` method.\"\r\n }\r\n ]\r\n },\r\n \"ADDRESS\": {\r\n \"d\": \"Returns a cell reference as a string.\",\r\n \"a\": \"Cell reference as a string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"row\",\r\n \"detail\": \"The row number of the cell reference\"\r\n },\r\n {\r\n \"name\": \"column\",\r\n \"detail\": \"The column number (not name) of the cell reference. `A` is column number `1`.\"\r\n },\r\n {\r\n \"name\": \"absolute_relative_mode\",\r\n \"detail\": \"An indicator of whether the reference is row/column absolute. `1` is row and column absolute (e.g. $A$1), `2` is row absolute and column relative (e.g. A$1), `3` is row relative and column absolute (e.g. $A1), and `4` is row and column relative (e.g. A1).\"\r\n },\r\n {\r\n \"name\": \"use_a1_notation\",\r\n \"detail\": \"A boolean indicating whether to use `A1` style notation (TRUE) or `R1C1` style notation (FALSE).\"\r\n },\r\n {\r\n \"name\": \"sheet\",\r\n \"detail\": \"Text indicating the name of the sheet into which the address points.\"\r\n }\r\n ]\r\n },\r\n \"INDIRECT\": {\r\n \"d\": \"Returns a cell reference specified by a string.\",\r\n \"a\": \"A cell reference specified by a string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cell_reference_as_string\",\r\n \"detail\": \"A cell reference, written as a string with surrounding quotation marks.\"\r\n },\r\n {\r\n \"name\": \"is_A1_notation\",\r\n \"detail\": \"Indicates if the cell reference is in A1 notation (TRUE) or R1C1 notation (FALSE).\"\r\n }\r\n ]\r\n },\r\n \"ROW\": {\r\n \"d\": \"Returns the row number of a specified cell.\",\r\n \"a\": \"Row number of a specified cell.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cell_reference\",\r\n \"detail\": \"The cell whose row number will be returned.\"\r\n }\r\n ]\r\n },\r\n \"ROWS\": {\r\n \"d\": \"Returns the number of rows in a specified array or range.\",\r\n \"a\": \"Number of rows in a specified array or range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The range whose row count will be returned.\"\r\n }\r\n ]\r\n },\r\n \"COLUMN\": {\r\n \"d\": \"Returns the column number of a specified cell, with `A=1`.\",\r\n \"a\": \"Column number of a specified cell.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cell_reference\",\r\n \"detail\": \"The cell whose column number will be returned. Column `A` corresponds to `1`.\"\r\n }\r\n ]\r\n },\r\n \"COLUMNS\": {\r\n \"d\": \"Returns the number of columns in a specified array or range.\",\r\n \"a\": \"Number of columns in a specified array or range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The range whose column count will be returned.\"\r\n }\r\n ]\r\n },\r\n \"OFFSET\": {\r\n \"d\": \"Returns a range reference shifted a specified number of rows and columns from a starting cell reference.\",\r\n \"a\": \"A range reference offset relative to a cell.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cell_reference\",\r\n \"detail\": \"The starting point from which to count the offset rows and columns.\"\r\n },\r\n {\r\n \"name\": \"offset_rows\",\r\n \"detail\": \"The number of rows to offset by.\"\r\n },\r\n {\r\n \"name\": \"offset_columns\",\r\n \"detail\": \"The number of columns to offset by.\"\r\n },\r\n {\r\n \"name\": \"height\",\r\n \"detail\": \"The height of the range to return starting at the offset target.\"\r\n },\r\n {\r\n \"name\": \"width\",\r\n \"detail\": \"The width of the range to return starting at the offset target.\"\r\n }\r\n ]\r\n },\r\n \"MATCH\": {\r\n \"d\": \"Returns the relative position of an item in a range that matches a specified value.\",\r\n \"a\": \"Position of item in range that matches value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_key\",\r\n \"detail\": \"The value to search for. For example, `42`, `\\\"Cats\\\"`, or `I24`.\"\r\n },\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The one-dimensional array to be searched.\"\r\n },\r\n {\r\n \"name\": \"search_type\",\r\n \"detail\": \"The search method. `1` (default) finds the largest value less than or equal to `search_key` when `range` is sorted in ascending order. `0` finds the exact value when `range` is unsorted. `-1` finds the smallest value greater than or equal to `search_key` when `range` is sorted in descending order.\"\r\n }\r\n ]\r\n },\r\n \"INDEX\": {\r\n \"d\": \"Returns the content of a cell, specified by row and column offset.\",\r\n \"a\": \"Content of cell specified by row and column offset.\",\r\n \"p\": [\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"The array of cells to be offset into.\"\r\n },\r\n {\r\n \"name\": \"row\",\r\n \"detail\": \"The number of offset rows.\"\r\n },\r\n {\r\n \"name\": \"column\",\r\n \"detail\": \"The number of offset columns.\"\r\n }\r\n ]\r\n },\r\n \"GETPIVOTDATA\": {\r\n \"d\": \"Extracts an aggregated value from a pivot table that corresponds to the specified row and column headings.\",\r\n \"a\": \"Extracts an aggregated value from a pivot table that corresponds to the specified row and column headings.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value_name\",\r\n \"detail\": \"The name of the value in the pivot table for which you want to get data.\"\r\n },\r\n {\r\n \"name\": \"any_pivot_table_cell\",\r\n \"detail\": \"Any reference to a cell in the desired pivot table (top corner recommended).\"\r\n },\r\n {\r\n \"name\": \"original_column\",\r\n \"detail\": \"The name of the column in the original data set (not the pivot table).\"\r\n },\r\n {\r\n \"name\": \"pivot_item\",\r\n \"detail\": \"The name of the row or column shown in the pivot table corresponding to *original_column* that you want to retrieve.\"\r\n }\r\n ]\r\n },\r\n \"CHOOSE\": {\r\n \"d\": \"Returns an element from a list of choices based on index.\",\r\n \"a\": \"An element from a list of choices based on index.\",\r\n \"p\": [\r\n {\r\n \"name\": \"index\",\r\n \"detail\": \"Which choice (of the up to 30 provided) to return.\"\r\n },\r\n {\r\n \"name\": \"choice1\",\r\n \"detail\": \"A potential value to return. Required. May be a reference to a cell or an individual value.\"\r\n },\r\n {\r\n \"name\": \"choice2\",\r\n \"detail\": \"Additional values among which to choose.\"\r\n }\r\n ]\r\n },\r\n \"HYPERLINK\": {\r\n \"d\": \"Creates a hyperlink inside a cell.\",\r\n \"a\": \"Creates a hyperlink inside a cell.\",\r\n \"p\": [\r\n {\r\n \"name\": \"url\",\r\n \"detail\": \"The full URL of the link location enclosed in quotation marks, or a reference to a cell containing such a URL.\"\r\n },\r\n {\r\n \"name\": \"link_label\",\r\n \"detail\": \"The text to display in the cell as the link, enclosed in quotation marks, or a reference to a cell containing such a label.\"\r\n }\r\n ]\r\n },\r\n \"TIME\": {\r\n \"d\": \"Converts a provided hour, minute, and second into a time.\",\r\n \"a\": \"Converts hour/minute/second into a time.\",\r\n \"p\": [\r\n {\r\n \"name\": \"hour\",\r\n \"detail\": \"The hour component of the time.\"\r\n },\r\n {\r\n \"name\": \"minute\",\r\n \"detail\": \"The minute component of the time.\"\r\n },\r\n {\r\n \"name\": \"second\",\r\n \"detail\": \"The second component of the time.\"\r\n }\r\n ]\r\n },\r\n \"TIMEVALUE\": {\r\n \"d\": \"Returns the fraction of a 24-hour day the time represents.\",\r\n \"a\": \"Converts a time string into its serial number representation.\",\r\n \"p\": [\r\n {\r\n \"name\": \"time_string\",\r\n \"detail\": \"The string that holds the time representation.\"\r\n }\r\n ]\r\n },\r\n \"EOMONTH\": {\r\n \"d\": \"Returns a date on the last day of a month that falls a specified number of months before or after another date.\",\r\n \"a\": \"Last day of a month before or after a date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The date from which to calculate the result.\"\r\n },\r\n {\r\n \"name\": \"months\",\r\n \"detail\": \"The number of months before (negative) or after (positive) 'start_date' to consider.\"\r\n }\r\n ]\r\n },\r\n \"EDATE\": {\r\n \"d\": \"Returns a date a specified number of months before or after another date.\",\r\n \"a\": \"Date a number of months before/after another date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The date from which to calculate the result.\"\r\n },\r\n {\r\n \"name\": \"months\",\r\n \"detail\": \"The number of months before (negative) or after (positive) 'start_date' to calculate.\"\r\n }\r\n ]\r\n },\r\n \"SECOND\": {\r\n \"d\": \"Returns the second component of a specific time, in numeric format.\",\r\n \"a\": \"Second component of a specific time.\",\r\n \"p\": [\r\n {\r\n \"name\": \"time\",\r\n \"detail\": \"The time from which to calculate the second component\"\r\n }\r\n ]\r\n },\r\n \"MINUTE\": {\r\n \"d\": \"Returns the minute component of a specific time, in numeric format.\",\r\n \"a\": \"Minute component of a specific time.\",\r\n \"p\": [\r\n {\r\n \"name\": \"time\",\r\n \"detail\": \"The time from which to calculate the minute component.\"\r\n }\r\n ]\r\n },\r\n \"HOUR\": {\r\n \"d\": \"Returns the hour component of a specific time, in numeric format.\",\r\n \"a\": \"Hour component of a specific time.\",\r\n \"p\": [\r\n {\r\n \"name\": \"time\",\r\n \"detail\": \"The time from which to calculate the hour component.\"\r\n }\r\n ]\r\n },\r\n \"NOW\": {\r\n \"d\": \"Returns the current date and time as a date value.\",\r\n \"a\": \"Current date and time as a date value.\",\r\n \"p\": []\r\n },\r\n \"NETWORKDAYS\": {\r\n \"d\": \"Returns the number of net working days between two provided days.\",\r\n \"a\": \"Net working days between two provided days.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The start date of the period from which to calculate the number of net working days.\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"The end date of the period from which to calculate the number of net working days.\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"A range or array constant containing the date serial numbers to consider holidays.\"\r\n }\r\n ]\r\n },\r\n \"NETWORKDAYS_INTL\": {\r\n \"d\": \"Returns the number of net working days between two provided days excluding specified weekend days and holidays.\",\r\n \"a\": \"Net working days between two dates (specifying weekends).\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The start date of the period from which to calculate the number of net working days.\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"The end date of the period from which to calculate the number of net working days.\"\r\n },\r\n {\r\n \"name\": \"weekend\",\r\n \"detail\": \"A number or string representing which days of the week are considered weekends.\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"A range or array constant containing the dates to consider as holidays.\"\r\n }\r\n ]\r\n },\r\n \"ISOWEEKNUM\": {\r\n \"d\": \"Returns a number representing the ISO week of the year where the provided date falls.\",\r\n \"a\": \"ISO week number of the year.\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"The date for which to determine the ISO week number. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n }\r\n ]\r\n },\r\n \"WEEKNUM\": {\r\n \"d\": \"Returns a number representing the week of the year where the provided date falls.\",\r\n \"a\": \"Week number of the year.\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"The date for which to determine the week number. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"A number representing the day that a week starts on. Sunday = 1.\"\r\n }\r\n ]\r\n },\r\n \"WEEKDAY\": {\r\n \"d\": \"Returns a number representing the day of the week of the date provided.\",\r\n \"a\": \"Day of the week of the date provided (as number).\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"The date for which to determine the day of the week. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"A number indicating which numbering system to use to represent weekdays. By default, counts starting with Sunday = 1.\"\r\n }\r\n ]\r\n },\r\n \"DAY\": {\r\n \"d\": \"Returns the day of the month that a specific date falls on, in numeric format.\",\r\n \"a\": \"Day of the month that a specific date falls on.\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"The date from which to extract the day.\"\r\n }\r\n ]\r\n },\r\n \"DAYS\": {\r\n \"d\": \"Returns the number of days between two dates.\",\r\n \"a\": \"Number of days between two dates.\",\r\n \"p\": [\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"The end of the date range.\"\r\n },\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The start of the date range.\"\r\n }\r\n ]\r\n },\r\n \"DAYS360\": {\r\n \"d\": \"Returns the difference between two days based on the 360 day year used in some financial interest calculations.\",\r\n \"a\": \"Days between two dates on a 360-day year.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"method\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"DATE\": {\r\n \"d\": \"Converts a provided year, month, and day into a date.\",\r\n \"a\": \"Converts year/month/day into a date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"year\",\r\n \"detail\": \"The year component of the date.\"\r\n },\r\n {\r\n \"name\": \"month\",\r\n \"detail\": \"The month component of the date.\"\r\n },\r\n {\r\n \"name\": \"day\",\r\n \"detail\": \"The day component of the date.\"\r\n }\r\n ]\r\n },\r\n \"DATEVALUE\": {\r\n \"d\": \"Converts a provided date string in a known format to a date value.\",\r\n \"a\": \"Converts a date string to a date value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"date_string\",\r\n \"detail\": \"The string representing the date.\"\r\n }\r\n ]\r\n },\r\n \"DATEDIF\": {\r\n \"d\": \"Calculates the number of days, months, or years between two dates.\",\r\n \"a\": \"Date Difference.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"unit\",\r\n \"detail\": \"A string abbreviation for unit of time. For example, \\\"M\\\" for month. Accepted values are \\\"Y\\\",\\\"M\\\",\\\"D\\\",\\\"MD\\\",\\\"YM\\\",\\\"YD\\\".\"\r\n }\r\n ]\r\n },\r\n \"WORKDAY\": {\r\n \"d\": \"Calculates the date after a number of working days from a specified start date.\",\r\n \"a\": \"Number of working days from start date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The date from which to begin counting.\"\r\n },\r\n {\r\n \"name\": \"num_days\",\r\n \"detail\": \"The number of working days to advance from `start_date`. If negative, counts backwards.\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"A range or array constant containing the dates to consider holidays.\"\r\n }\r\n ]\r\n },\r\n \"WORKDAY_INTL\": {\r\n \"d\": \"Calculates the date after a specified number of workdays excluding specified weekend days and holidays.\",\r\n \"a\": \"Date after a number of workdays (specifying weekends).\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The date from which to begin counting.\"\r\n },\r\n {\r\n \"name\": \"num_days\",\r\n \"detail\": \"The number of working days to advance from `start_date`. If negative, counts backwards.\"\r\n },\r\n {\r\n \"name\": \"weekend\",\r\n \"detail\": \"A number or string representing which days of the week are considered weekends.\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"A range or array constant containing the dates to consider holidays.\"\r\n }\r\n ]\r\n },\r\n \"YEAR\": {\r\n \"d\": \"Returns the year specified by a given date.\",\r\n \"a\": \"Year specified by a given date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"The date from which to extract the year.\"\r\n }\r\n ]\r\n },\r\n \"YEARFRAC\": {\r\n \"d\": \"Returns the number of years, including fractional years, between two dates using a specified day count convention.\",\r\n \"a\": \"Exact number of years between two dates.\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"TODAY\": {\r\n \"d\": \"Returns the current date as a date value.\",\r\n \"a\": \"Current date as a date value.\",\r\n \"p\": []\r\n },\r\n \"MONTH\": {\r\n \"d\": \"Returns the month of the year a specific date falls in, in numeric format.\",\r\n \"a\": \"Month of the year a specific date falls in.\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"The date from which to extract the month.\"\r\n }\r\n ]\r\n },\r\n \"EFFECT\": {\r\n \"d\": \"Calculates the annual effective interest rate given the nominal rate and number of compounding periods per year.\",\r\n \"a\": \"Annual effective interest rate.\",\r\n \"p\": [\r\n {\r\n \"name\": \"nominal_rate\",\r\n \"detail\": \"The nominal interest rate per year.\"\r\n },\r\n {\r\n \"name\": \"periods_per_year\",\r\n \"detail\": \"The number of compounding periods per year.\"\r\n }\r\n ]\r\n },\r\n \"DOLLAR\": {\r\n \"d\": \"Formats a number into the currency specific to your spreadsheet locale.\",\r\n \"a\": \"Formats a number as currency specific to your spreadsheet locale.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"The value to be formatted.\"\r\n },\r\n {\r\n \"name\": \"number_of_places\",\r\n \"detail\": \"The number of decimal places to display.\"\r\n }\r\n ]\r\n },\r\n \"DOLLARDE\": {\r\n \"d\": \"Converts a price quotation given as a decimal fraction into a decimal value.\",\r\n \"a\": \"Converts a decimal fraction to decimal value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"fractional_price\",\r\n \"detail\": \"The price quotation given using fractional decimal conventions.\"\r\n },\r\n {\r\n \"name\": \"unit\",\r\n \"detail\": \"The units of the fraction, e.g. `8` for 1/8ths or `32` for 1/32nds.\"\r\n }\r\n ]\r\n },\r\n \"DOLLARFR\": {\r\n \"d\": \"Converts a price quotation given as a decimal value into a decimal fraction.\",\r\n \"a\": \"Converts a decimal value to decimal fraction.\",\r\n \"p\": [\r\n {\r\n \"name\": \"decimal_price\",\r\n \"detail\": \"The price quotation given as a decimal value.\"\r\n },\r\n {\r\n \"name\": \"unit\",\r\n \"detail\": \"The units of the desired fraction, e.g. `8` for 1/8ths or `32` for 1/32nds.\"\r\n }\r\n ]\r\n },\r\n \"DB\": {\r\n \"d\": \"Calculates the depreciation of an asset for a specified period using the arithmetic declining balance method.\",\r\n \"a\": \"Depreciation via declining balance method.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"The initial cost of the asset.\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"The value of the asset at the end of depreciation.\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"The number of periods over which the asset is depreciated.\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"The single period within `life` for which to calculate depreciation.\"\r\n },\r\n {\r\n \"name\": \"month\",\r\n \"detail\": \"The number of months in the first year of depreciation.\"\r\n }\r\n ]\r\n },\r\n \"DDB\": {\r\n \"d\": \"Calculates the depreciation of an asset for a specified period using the double-declining balance method.\",\r\n \"a\": \"Depreciation via double-declining balance method.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"The initial cost of the asset.\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"The value of the asset at the end of depreciation.\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"The number of periods over which the asset is depreciated.\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"The single period within `life` for which to calculate depreciation.\"\r\n },\r\n {\r\n \"name\": \"factor\",\r\n \"detail\": \"The factor by which depreciation decreases.\"\r\n }\r\n ]\r\n },\r\n \"RATE\": {\r\n \"d\": \"Calculates the interest rate of an annuity investment based on constant-amount periodic payments and the assumption of a constant interest rate.\",\r\n \"a\": \"Interest rate of an annuity investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"payment_per_period\",\r\n \"detail\": \"The amount per period to be paid.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"future_value\",\r\n \"detail\": \"The future value remaining after the final payment has been made.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n },\r\n {\r\n \"name\": \"rate_guess\",\r\n \"detail\": \"An estimate for what the interest rate will be.\"\r\n }\r\n ]\r\n },\r\n \"CUMPRINC\": {\r\n \"d\": \"Calculates the cumulative principal paid over a range of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Cumulative principal paid over a set of periods.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"first_period\",\r\n \"detail\": \"The number of the payment period to begin the cumulative calculation.\"\r\n },\r\n {\r\n \"name\": \"last_period\",\r\n \"detail\": \"The number of the payment period to end the cumulative calculation.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"COUPNUM\": {\r\n \"d\": \"Calculates the number of coupons, or interest payments, between the settlement date and the maturity date of the investment.\",\r\n \"a\": \"Number of coupons between settlement and maturity.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"SYD\": {\r\n \"d\": \"Calculates the depreciation of an asset for a specified period using the sum of years digits method.\",\r\n \"a\": \"Depreciation via sum of years digits method.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"The initial cost of the asset.\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"The value of the asset at the end of depreciation.\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"The number of periods over which the asset is depreciated.\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"The single period within `life` for which to calculate depreciation.\"\r\n }\r\n ]\r\n },\r\n \"TBILLEQ\": {\r\n \"d\": \"Calculates the equivalent annualized rate of return of a US Treasury Bill based on discount rate.\",\r\n \"a\": \"Equivalent rate of return for a Treasury bill.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"The discount rate of the bill at time of purchase.\"\r\n }\r\n ]\r\n },\r\n \"TBILLYIELD\": {\r\n \"d\": \"Calculates the yield of a US Treasury Bill based on price.\",\r\n \"a\": \"The yield of a us treasury bill based on price.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"price\",\r\n \"detail\": \"The price at which the security is bought per 100 face value.\"\r\n }\r\n ]\r\n },\r\n \"TBILLPRICE\": {\r\n \"d\": \"Calculates the price of a US Treasury Bill based on discount rate.\",\r\n \"a\": \"Price of US treasury bill.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"The discount rate of the bill at time of purchase.\"\r\n }\r\n ]\r\n },\r\n \"PV\": {\r\n \"d\": \"Calculates the present value of an annuity investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Present value of an annuity investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"payment_amount\",\r\n \"detail\": \"The amount per period to be paid.\"\r\n },\r\n {\r\n \"name\": \"future_value\",\r\n \"detail\": \"The future value remaining after the final payment has been made.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"ACCRINT\": {\r\n \"d\": \"Calculates the accrued interest of a security that has periodic payments.\",\r\n \"a\": \"Accrued interest of security with periodic payments.\",\r\n \"p\": [\r\n {\r\n \"name\": \"issue\",\r\n \"detail\": \"The date the security was initially issued.\"\r\n },\r\n {\r\n \"name\": \"first_payment\",\r\n \"detail\": \"The first date interest will be paid.\"\r\n },\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n },\r\n {\r\n \"name\": \"calc_method\",\r\n \"detail\": \"[Optional-defaults to TRUE()] - A logical value that specifies the method used to calculate the total accrued interest when the settlement date is later than the first interest accrual date. \\n\\nIf the value is TRUE, the total accrued interest from the issue date to the settlement date is returned. \\n\\nIf the value is FALSE, return the accrued interest from the first interest accrual date to the settlement date.\"\r\n }\r\n ]\r\n },\r\n \"ACCRINTM\": {\r\n \"d\": \"Calculates the accrued interest of a security that pays interest at maturity.\",\r\n \"a\": \"Accrued interest of security paying at maturity.\",\r\n \"p\": [\r\n {\r\n \"name\": \"issue\",\r\n \"detail\": \"The date the security was initially issued.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity date of the security.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"COUPDAYBS\": {\r\n \"d\": \"Calculates the number of days from the first coupon, or interest payment, until settlement.\",\r\n \"a\": \"Number of days from first coupon to settlement.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"COUPDAYS\": {\r\n \"d\": \"Calculates the number of days in the coupon, or interest payment, period that contains the specified settlement date.\",\r\n \"a\": \"Days in coupon period containing settlement date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"COUPDAYSNC\": {\r\n \"d\": \"Calculates the number of days from the settlement date until the next coupon, or interest payment.\",\r\n \"a\": \"Days from settlement until next coupon.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"COUPNCD\": {\r\n \"d\": \"Calculates next coupon, or interest payment, date after the settlement date.\",\r\n \"a\": \"Next coupon date after the settlement date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"COUPPCD\": {\r\n \"d\": \"Calculates last coupon, or interest payment, date before the settlement date.\",\r\n \"a\": \"Last coupon date before settlement date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"FV\": {\r\n \"d\": \"Calculates the future value of an annuity investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Future value of an annuity investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"payment_amount\",\r\n \"detail\": \"The amount per period to be paid.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"FVSCHEDULE\": {\r\n \"d\": \"Calculates the future value of some principal based on a specified series of potentially varying interest rates.\",\r\n \"a\": \"Future value of principal from series of rates.\",\r\n \"p\": [\r\n {\r\n \"name\": \"principal\",\r\n \"detail\": \"The amount of initial capital or value to compound against.\"\r\n },\r\n {\r\n \"name\": \"rate_schedule\",\r\n \"detail\": \"A series of interest rates to compound against the `principal`.\"\r\n }\r\n ]\r\n },\r\n \"YIELD\": {\r\n \"d\": \"Calculates the annual yield of a security paying periodic interest, such as a US Treasury Bond, based on price.\",\r\n \"a\": \"Annual yield of a security paying periodic interest.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"price\",\r\n \"detail\": \"The price at which the security is bought per 100 face value.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"YIELDDISC\": {\r\n \"d\": \"Calculates the annual yield of a discount (non-interest-bearing) security, based on price.\",\r\n \"a\": \"Annual yield of a discount security.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"price\",\r\n \"detail\": \"The price at which the security is bought per 100 face value.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"NOMINAL\": {\r\n \"d\": \"Calculates the annual nominal interest rate given the effective rate and number of compounding periods per year.\",\r\n \"a\": \"Annual nominal interest rate.\",\r\n \"p\": [\r\n {\r\n \"name\": \"effective_rate\",\r\n \"detail\": \"The effective interest rate per year.\"\r\n },\r\n {\r\n \"name\": \"periods_per_year\",\r\n \"detail\": \"The number of compounding periods per year.\"\r\n }\r\n ]\r\n },\r\n \"XIRR\": {\r\n \"d\": \"Calculates the internal rate of return of an investment based on a specified series of potentially irregularly spaced cash flows.\",\r\n \"a\": \"Internal rate of return given non-periodic cashflows.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cashflow_amounts\",\r\n \"detail\": \"An array or range containing the income or payments associated with the investment.\"\r\n },\r\n {\r\n \"name\": \"cashflow_dates\",\r\n \"detail\": \"An array or range with dates corresponding to the cash flows in `cashflow_amounts`.\"\r\n },\r\n {\r\n \"name\": \"rate_guess\",\r\n \"detail\": \"An estimate for what the internal rate of return will be.\"\r\n }\r\n ]\r\n },\r\n \"MIRR\": {\r\n \"d\": \"Calculates the modified internal rate of return on an investment based on a series of periodic cash flows and the difference between the interest rate paid on financing versus the return received on reinvested income.\",\r\n \"a\": \"Modified internal rate of return.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cashflow_amounts\",\r\n \"detail\": \"An array or range containing the income or payments associated with the investment.\"\r\n },\r\n {\r\n \"name\": \"financing_rate\",\r\n \"detail\": \"The interest rate paid on funds invested.\"\r\n },\r\n {\r\n \"name\": \"reinvestment_return_rate\",\r\n \"detail\": \"The return (as a percentage) earned on reinvestment of income received from the investment.\"\r\n }\r\n ]\r\n },\r\n \"IRR\": {\r\n \"d\": \"Calculates the internal rate of return on an investment based on a series of periodic cash flows.\",\r\n \"a\": \"Internal rate of return given periodic cashflows.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cashflow_amounts\",\r\n \"detail\": \"An array or range containing the income or payments associated with the investment.\"\r\n },\r\n {\r\n \"name\": \"rate_guess\",\r\n \"detail\": \"An estimate for what the internal rate of return will be.\"\r\n }\r\n ]\r\n },\r\n \"NPV\": {\r\n \"d\": \"Calculates the net present value of an investment based on a series of periodic cash flows and a discount rate.\",\r\n \"a\": \"The net present value of an investment based on a series of periodic cash flows and a discount rate.\",\r\n \"p\": [\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"The discount rate of the investment over one period.\"\r\n },\r\n {\r\n \"name\": \"cashflow1\",\r\n \"detail\": \"The first future cash flow.\"\r\n },\r\n {\r\n \"name\": \"cashflow2\",\r\n \"detail\": \"Additional future cash flows.\"\r\n }\r\n ]\r\n },\r\n \"XNPV\": {\r\n \"d\": \"Calculates the net present value of an investment based on a specified series of potentially irregularly spaced cash flows and a discount rate.\",\r\n \"a\": \"Net present value given non-periodic cashflows.\",\r\n \"p\": [\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"The discount rate of the investment over one period.\"\r\n },\r\n {\r\n \"name\": \"cashflow_amounts\",\r\n \"detail\": \"A range of cells containing the income or payments associated with the investment.\"\r\n },\r\n {\r\n \"name\": \"cashflow_dates\",\r\n \"detail\": \"A range of cells with dates corresponding to the cash flows in `cashflow_amounts`.\"\r\n }\r\n ]\r\n },\r\n \"CUMIPMT\": {\r\n \"d\": \"Calculates the cumulative interest over a range of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Cumulative interest paid over a set of periods.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"first_period\",\r\n \"detail\": \"The number of the payment period to begin the cumulative calculation.\"\r\n },\r\n {\r\n \"name\": \"last_period\",\r\n \"detail\": \"The number of the payment period to end the cumulative calculation.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"PMT\": {\r\n \"d\": \"Calculates the periodic payment for an annuity investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Periodic payment for an annuity investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"future_value\",\r\n \"detail\": \"The future value remaining after the final payment has been made.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"IPMT\": {\r\n \"d\": \"Calculates the payment on interest for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Payment on interest for an investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"The amortization period, in terms of number of periods.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"future_value\",\r\n \"detail\": \"The future value remaining after the final payment has been made.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"PPMT\": {\r\n \"d\": \"Calculates the payment on the principal of an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Payment on the principal of an investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"The amortization period, in terms of number of periods.\"\r\n },\r\n {\r\n \"name\": \"number_of_periods\",\r\n \"detail\": \"The number of payments to be made.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"future_value\",\r\n \"detail\": \"The future value remaining after the final payment has been made.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"INTRATE\": {\r\n \"d\": \"Calculates the effective interest rate generated when an investment is purchased at one price and sold at another with no interest or dividends generated by the investment itself.\",\r\n \"a\": \"Calculates effective interest rate.\",\r\n \"p\": [\r\n {\r\n \"name\": \"buy_date\",\r\n \"detail\": \"The date of purchase of the investment.\"\r\n },\r\n {\r\n \"name\": \"sell_date\",\r\n \"detail\": \"The date of sale of the investment.\"\r\n },\r\n {\r\n \"name\": \"buy_price\",\r\n \"detail\": \"The price at which the investment was purchased.\"\r\n },\r\n {\r\n \"name\": \"sell_price\",\r\n \"detail\": \"The price at which the investment was sold.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"PRICE\": {\r\n \"d\": \"Calculates the price of a security paying periodic interest, such as a US Treasury Bond, based on expected yield.\",\r\n \"a\": \"Price of a security paying periodic interest.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"yield\",\r\n \"detail\": \"The expected annual yield of the security.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"PRICEDISC\": {\r\n \"d\": \"Calculates the price of a discount (non-interest-bearing) security, based on expected yield.\",\r\n \"a\": \"Price of a discount security.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"The discount rate of the security at time of purchase.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"PRICEMAT\": {\r\n \"d\": \"Calculates the price of a security paying interest at maturity, based on expected yield.\",\r\n \"a\": \"Price of security paying interest at maturity.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"issue\",\r\n \"detail\": \"The date the security was initially issued.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"yield\",\r\n \"detail\": \"The expected annual yield of the security.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"RECEIVED\": {\r\n \"d\": \"Calculates the amount received at maturity for an investment in fixed-income securities purchased on a given date.\",\r\n \"a\": \"Amount received at maturity for a security.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"investment\",\r\n \"detail\": \"The amount invested (irrespective of face value of each security).\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"The discount rate of the security invested in.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"DISC\": {\r\n \"d\": \"Calculates the discount rate of a security based on price.\",\r\n \"a\": \"The discount rate of a security based on price.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"price\",\r\n \"detail\": \"The price at which the security is bought per 100 face value.\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"The redemption amount per 100 face value, or par.\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"NPER\": {\r\n \"d\": \"Calculates the number of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.\",\r\n \"a\": \"Number of payment periods for an investment.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The interest rate.\"\r\n },\r\n {\r\n \"name\": \"payment_amount\",\r\n \"detail\": \"The amount of each payment made.\"\r\n },\r\n {\r\n \"name\": \"present_value\",\r\n \"detail\": \"The current value of the annuity.\"\r\n },\r\n {\r\n \"name\": \"future_value\",\r\n \"detail\": \"The future value remaining after the final payment has been made.\"\r\n },\r\n {\r\n \"name\": \"end_or_beginning\",\r\n \"detail\": \"Whether payments are due at the end (`0`) or beginning (`1`) of each period.\"\r\n }\r\n ]\r\n },\r\n \"SLN\": {\r\n \"d\": \"Calculates the depreciation of an asset for one period using the straight-line method.\",\r\n \"a\": \"Depreciation of asset using the straight-line method.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"The initial cost of the asset.\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"The value of the asset at the end of depreciation.\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"The number of periods over which the asset is depreciated.\"\r\n }\r\n ]\r\n },\r\n \"DURATION\": {\r\n \"d\": \"Calculates the number of compounding periods required for an investment of a specified present value appreciating at a given rate to reach a target value.\",\r\n \"a\": \"Number of periods for an investment to reach a value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"yield\",\r\n \"detail\": \"The expected annual yield of the security.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"MDURATION\": {\r\n \"d\": \"Calculates the modified Macaulay duration of a security paying periodic interest, such as a US Treasury Bond, based on expected yield.\",\r\n \"a\": \"Modified Macaulay duration.\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"The settlement date of the security, the date after issuance when the security is delivered to the buyer.\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"The maturity or end date of the security, when it can be redeemed at face, or par value.\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"The annualized rate of interest.\"\r\n },\r\n {\r\n \"name\": \"yield\",\r\n \"detail\": \"The expected annual yield of the security.\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"The number of interest or coupon payments per year (1, 2, or 4).\"\r\n },\r\n {\r\n \"name\": \"day_count_convention\",\r\n \"detail\": \"An indicator of what day count method to use.\"\r\n }\r\n ]\r\n },\r\n \"BIN2DEC\": {\r\n \"d\": \"Converts a signed binary number to decimal format.\",\r\n \"a\": \"Converts a signed binary number to decimal format.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_binary_number\",\r\n \"detail\": \"The signed 10-bit binary value to be converted to decimal, provided as a string.\"\r\n }\r\n ]\r\n },\r\n \"BIN2HEX\": {\r\n \"d\": \"Converts a signed binary number to signed hexadecimal format.\",\r\n \"a\": \"Converts a binary number to hexadecimal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_binary_number\",\r\n \"detail\": \"The signed 10-bit binary value to be converted to signed hexademical, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"BIN2OCT\": {\r\n \"d\": \"Converts a signed binary number to signed octal format.\",\r\n \"a\": \"Converts a binary number to octal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_binary_number\",\r\n \"detail\": \"The signed 10-bit binary value to be converted to signed octal, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"DEC2BIN\": {\r\n \"d\": \"Converts a decimal number to signed binary format.\",\r\n \"a\": \"Converts a decimal number to signed binary format.\",\r\n \"p\": [\r\n {\r\n \"name\": \"decimal_number\",\r\n \"detail\": \"The decimal value to be converted to signed binary, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"DEC2HEX\": {\r\n \"d\": \"Converts a decimal number to signed hexadecimal format.\",\r\n \"a\": \"Converts a decimal number to hexadecimal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"decimal_number\",\r\n \"detail\": \"The decimal value to be converted to signed hexadecimal, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"DEC2OCT\": {\r\n \"d\": \"Converts a decimal number to signed octal format.\",\r\n \"a\": \"Converts a decimal number to signed octal format.\",\r\n \"p\": [\r\n {\r\n \"name\": \"decimal_number\",\r\n \"detail\": \"The decimal value to be converted to signed octal, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"HEX2BIN\": {\r\n \"d\": \"Converts a signed hexadecimal number to signed binary format.\",\r\n \"a\": \"Converts a hexadecimal number to binary.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_hexadecimal_number\",\r\n \"detail\": \"The signed 40-bit hexadecimal value to be converted to signed binary, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"HEX2DEC\": {\r\n \"d\": \"Converts a signed hexadecimal number to decimal format.\",\r\n \"a\": \"Converts a hexadecimal number to decimal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_hexadecimal_number\",\r\n \"detail\": \"The signed 40-bit hexadecimal value to be converted to decimal, provided as a string.\"\r\n }\r\n ]\r\n },\r\n \"HEX2OCT\": {\r\n \"d\": \"Converts a signed hexadecimal number to signed octal format.\",\r\n \"a\": \"Converts a hexadecimal number to octal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_hexadecimal_number\",\r\n \"detail\": \"The signed 40-bit hexadecimal value to be converted to signed octal, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"OCT2BIN\": {\r\n \"d\": \"Converts a signed octal number to signed binary format.\",\r\n \"a\": \"Converts an octal number to binary.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_octal_number\",\r\n \"detail\": \"The signed 30-bit octal value to be converted to signed binary, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"OCT2DEC\": {\r\n \"d\": \"Converts a signed octal number to decimal format.\",\r\n \"a\": \"Converts a signed octal number to decimal format.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_octal_number\",\r\n \"detail\": \"The signed 30-bit octal value to be converted to decimal, provided as a string.\"\r\n }\r\n ]\r\n },\r\n \"OCT2HEX\": {\r\n \"d\": \"Converts a signed octal number to signed hexadecimal format.\",\r\n \"a\": \"Converts an octal number to hexadecimal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"signed_octal_number\",\r\n \"detail\": \"The signed 30-bit octal value to be converted to signed hexadecimal, provided as a string.\"\r\n },\r\n {\r\n \"name\": \"significant_digits\",\r\n \"detail\": \"The number of significant digits to ensure in the result.\"\r\n }\r\n ]\r\n },\r\n \"COMPLEX\": {\r\n \"d\": \"Creates a complex number given real and imaginary coefficients.\",\r\n \"a\": \"Creates a complex number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"real_part\",\r\n \"detail\": \"The real coefficient.\"\r\n },\r\n {\r\n \"name\": \"imaginary_part\",\r\n \"detail\": \"The imaginary coefficient.\"\r\n },\r\n {\r\n \"name\": \"suffix\",\r\n \"detail\": \"The suffix for the imaginary coefficient, can only be 'i' or 'j'. If omitted, 'i' will be used.\"\r\n }\r\n ]\r\n },\r\n \"IMREAL\": {\r\n \"d\": \"Returns the real coefficient of a complex number.\",\r\n \"a\": \"The real coefficient of a complex number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"complex_number\",\r\n \"detail\": \"The complex number, in the a+bi or a+bj format.\"\r\n }\r\n ]\r\n },\r\n \"IMAGINARY\": {\r\n \"d\": \"Returns the imaginary coefficient of a complex number.\",\r\n \"a\": \"The imaginary coefficient of a complex number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"complex_number\",\r\n \"detail\": \"The complex number, in the a+bi or a+bj format.\"\r\n }\r\n ]\r\n },\r\n \"IMCONJUGATE\": {\r\n \"d\": \"Returns the complex conjugate of a number.\",\r\n \"a\": \"The complex conjugate of a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"The complex number to calculate the conjugate for.\"\r\n }\r\n ]\r\n },\r\n \"IMABS\": {\r\n \"d\": \"Returns absolute value (or modulus) of a complex number.\",\r\n \"a\": \"The absolute value of a complex number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"The complex number to calculate the absolute value of.\"\r\n }\r\n ]\r\n },\r\n \"DELTA\": {\r\n \"d\": \"Compare two numeric values, returning 1 if they're equal.\",\r\n \"a\": \"Compare two numeric values.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number1\",\r\n \"detail\": \"The first number to compare.\"\r\n },\r\n {\r\n \"name\": \"number2\",\r\n \"detail\": \"The second number to compare.\"\r\n }\r\n ]\r\n },\r\n \"IMSUM\": {\r\n \"d\": \"Returns the sum of a series of complex numbers.\",\r\n \"a\": \"Sum of a series of complex numbers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first complex number or range to add together.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"Additional complex numbers or ranges to add to `value1`.\"\r\n }\r\n ]\r\n },\r\n \"IMSUB\": {\r\n \"d\": \"Returns the difference between two complex numbers.\",\r\n \"a\": \"The difference between two complex numbers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"first_number\",\r\n \"detail\": \"The complex number to subtract second_number from.\"\r\n },\r\n {\r\n \"name\": \"second_number\",\r\n \"detail\": \"The complex number to subtract from first_number.\"\r\n }\r\n ]\r\n },\r\n \"IMPRODUCT\": {\r\n \"d\": \"Returns the result of multiplying a series of complex numbers together.\",\r\n \"a\": \"Result of multiplying a series of complex numbers together.\",\r\n \"p\": [\r\n {\r\n \"name\": \"factor1\",\r\n \"detail\": \"The first number or range to calculate for the product.\"\r\n },\r\n {\r\n \"name\": \"factor2\",\r\n \"detail\": \"Additional complex numbers or ranges to calculate for the product.\"\r\n }\r\n ]\r\n },\r\n \"IMDIV\": {\r\n \"d\": \"Returns one complex number divided by another.\",\r\n \"a\": \"One complex number divided by another.\",\r\n \"p\": [\r\n {\r\n \"name\": \"dividend\",\r\n \"detail\": \"The complex number to be divided.\"\r\n },\r\n {\r\n \"name\": \"divisor\",\r\n \"detail\": \"The complex number to divide by.\"\r\n }\r\n ]\r\n },\r\n \"NOT\": {\r\n \"d\": \"Returns the opposite of a logical value - `NOT(TRUE)` returns `FALSE`; `NOT(FALSE)` returns `TRUE`.\",\r\n \"a\": \"Returns opposite of provided logical value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical_expression\",\r\n \"detail\": \"An expression or reference to a cell holding an expression that represents some logical value.\"\r\n }\r\n ]\r\n },\r\n \"TRUE\": {\r\n \"d\": \"Returns the logical value `TRUE`.\",\r\n \"a\": \"Logical value `true`.\",\r\n \"p\": []\r\n },\r\n \"FALSE\": {\r\n \"d\": \"Returns the logical value `FALSE`.\",\r\n \"a\": \"Logical value `false`.\",\r\n \"p\": []\r\n },\r\n \"AND\": {\r\n \"d\": \"Returns true if all of the provided arguments are logically true, and false if any of the provided arguments are logically false.\",\r\n \"a\": \"Logical `and` operator.\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical_expression1\",\r\n \"detail\": \"An expression or reference to a cell containing an expression that represents some logical value, i.e. `TRUE` or `FALSE`, or an expression that can be coerced to a logical value.\"\r\n },\r\n {\r\n \"name\": \"logical_expression2\",\r\n \"detail\": \"More expressions that represent logical values.\"\r\n }\r\n ]\r\n },\r\n \"IFERROR\": {\r\n \"d\": \"Returns the first argument if it is not an error value, otherwise returns the second argument if present, or a blank if the second argument is absent.\",\r\n \"a\": \"Value if it is not an error, otherwise 2nd argument.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to return if `value` itself is not an error.\"\r\n },\r\n {\r\n \"name\": \"value_if_error\",\r\n \"detail\": \"The value the function returns if `value` is an error.\"\r\n }\r\n ]\r\n },\r\n \"IF\": {\r\n \"d\": \"Returns one value if a logical expression is `TRUE` and another if it is `FALSE`.\",\r\n \"a\": \"Returns value depending on logical expression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical_expression\",\r\n \"detail\": \"An expression or reference to a cell containing an expression that represents some logical value, i.e. `TRUE` or `FALSE`.\"\r\n },\r\n {\r\n \"name\": \"value_if_true\",\r\n \"detail\": \"The value the function returns if `logical_expression` is `TRUE`.\"\r\n },\r\n {\r\n \"name\": \"value_if_false\",\r\n \"detail\": \"The value the function returns if `logical_expression` is `FALSE`.\"\r\n }\r\n ]\r\n },\r\n \"OR\": {\r\n \"d\": \"Returns true if any of the provided arguments are logically true, and false if all of the provided arguments are logically false.\",\r\n \"a\": \"Logical `or` operator.\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical_expression1\",\r\n \"detail\": \"An expression or reference to a cell containing an expression that represents some logical value, i.e. `TRUE` or `FALSE`, or an expression that can be coerced to a logical value.\"\r\n },\r\n {\r\n \"name\": \"logical_expression2\",\r\n \"detail\": \"More expressions that evaluate to logical values.\"\r\n }\r\n ]\r\n },\r\n \"NE\": {\r\n \"d\": \"Returns `TRUE` if two specified values are not equal and `FALSE` otherwise. Equivalent to the `!=` operator.\",\r\n \"a\": \"Not equal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The value to test against `value1` for inequality.\"\r\n }\r\n ]\r\n },\r\n \"EQ\": {\r\n \"d\": \"Returns `TRUE` if two specified values are equal and `FALSE` otherwise. Equivalent to the `==` operator.\",\r\n \"a\": \"Equal.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first value.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The value to test against `value1` for equality.\"\r\n }\r\n ]\r\n },\r\n \"GT\": {\r\n \"d\": \"Returns `TRUE` if the first argument is strictly greater than the second, and `FALSE` otherwise. Equivalent to the `>` operator.\",\r\n \"a\": \"Strictly greater than.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The value to test as being greater than `value2`.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The second value.\"\r\n }\r\n ]\r\n },\r\n \"GTE\": {\r\n \"d\": \"Returns `TRUE` if the first argument is greater than or equal to the second, and `FALSE` otherwise. Equivalent to the `>=` operator.\",\r\n \"a\": \"Greater than or equal to.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The value to test as being greater than or equal to `value2`.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The second value.\"\r\n }\r\n ]\r\n },\r\n \"LT\": {\r\n \"d\": \"Returns `TRUE` if the first argument is strictly less than the second, and `FALSE` otherwise. Equivalent to the `<` operator.\",\r\n \"a\": \"Less than.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The value to test as being less than `value2`.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The second value.\"\r\n }\r\n ]\r\n },\r\n \"LTE\": {\r\n \"d\": \"Returns `TRUE` if the first argument is less than or equal to the second, and `FALSE` otherwise. Equivalent to the `<=` operator.\",\r\n \"a\": \"Less than or equal to.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The value to test as being less than or equal to `value2`.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The second value.\"\r\n }\r\n ]\r\n },\r\n \"ADD\": {\r\n \"d\": \"Returns the sum of two numbers. Equivalent to the `+` operator.\",\r\n \"a\": \"Sum of two numbers\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The first addend.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The second addend.\"\r\n }\r\n ]\r\n },\r\n \"MINUS\": {\r\n \"d\": \"Returns the difference of two numbers. Equivalent to the `-` operator.\",\r\n \"a\": \"Difference of two numbers\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The minuend, or number to be subtracted from.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The subtrahend, or number to subtract from `value1`.\"\r\n }\r\n ]\r\n },\r\n \"MULTIPLY\": {\r\n \"d\": \"Returns the product of two numbers. Equivalent to the `*` operator.\",\r\n \"a\": \"Product of two numbers\",\r\n \"p\": [\r\n {\r\n \"name\": \"factor1\",\r\n \"detail\": \"The first multiplicand.\"\r\n },\r\n {\r\n \"name\": \"factor2\",\r\n \"detail\": \"The second multiplicand.\"\r\n }\r\n ]\r\n },\r\n \"DIVIDE\": {\r\n \"d\": \"Returns one number divided by another. Equivalent to the `/` operator.\",\r\n \"a\": \"One number divided by another\",\r\n \"p\": [\r\n {\r\n \"name\": \"dividend\",\r\n \"detail\": \"The number to be divided.\"\r\n },\r\n {\r\n \"name\": \"divisor\",\r\n \"detail\": \"The number to divide by.\"\r\n }\r\n ]\r\n },\r\n \"CONCAT\": {\r\n \"d\": \"Returns the concatenation of two values. Equivalent to the `&` operator.\",\r\n \"a\": \"Concatenation of two values\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"The value to which `value2` will be appended.\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"The value to append to `value1`.\"\r\n }\r\n ]\r\n },\r\n \"UNARY_PERCENT\": {\r\n \"d\": \"Returns a value interpreted as a percentage; that is, `UNARY_PERCENT(100)` equals `1`.\",\r\n \"a\": \"Value interpreted as a percentage.\",\r\n \"p\": [\r\n {\r\n \"name\": \"percentage\",\r\n \"detail\": \"The value to interpret as a percentage.\"\r\n }\r\n ]\r\n },\r\n \"CONCATENATE\": {\r\n \"d\": \"Appends strings to one another.\",\r\n \"a\": \"Appends strings to one another.\",\r\n \"p\": [\r\n {\r\n \"name\": \"string1\",\r\n \"detail\": \"The initial string.\"\r\n },\r\n {\r\n \"name\": \"string2\",\r\n \"detail\": \"More strings to append in sequence.\"\r\n }\r\n ]\r\n },\r\n \"CODE\": {\r\n \"d\": \"Returns the numeric Unicode map value of the first character in the string provided.\",\r\n \"a\": \"Numeric unicode map value of character.\",\r\n \"p\": [\r\n {\r\n \"name\": \"string\",\r\n \"detail\": \"The string whose first character's Unicode map value will be returned.\"\r\n }\r\n ]\r\n },\r\n \"CHAR\": {\r\n \"d\": \"Convert a number into a character according to the current Unicode table.\",\r\n \"a\": \"Gets character associated with number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"table_number\",\r\n \"detail\": \"The number of the character to look up from the current Unicode table in decimal format.\"\r\n }\r\n ]\r\n },\r\n \"ARABIC\": {\r\n \"d\": \"Computes the value of a Roman numeral.\",\r\n \"a\": \"Computes the value of a roman numeral.\",\r\n \"p\": [\r\n {\r\n \"name\": \"roman_numeral\",\r\n \"detail\": \"The Roman numeral to format, whose value must be between 1 and 3999, inclusive.\"\r\n }\r\n ]\r\n },\r\n \"ROMAN\": {\r\n \"d\": \"Formats a number in Roman numerals.\",\r\n \"a\": \"Formats a number in Roman numerals.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"The number to format, between 1 and 3999, inclusive.\"\r\n }\r\n ]\r\n },\r\n \"REGEXEXTRACT\": {\r\n \"d\": \"Extracts matching substrings according to a regular expression.\",\r\n \"a\": \"Extracts matching substrings with regular expression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The input text.\"\r\n },\r\n {\r\n \"name\": \"regular_expression\",\r\n \"detail\": \"The first part of `text` that matches this expression will be returned.\"\r\n }\r\n ]\r\n },\r\n \"REGEXMATCH\": {\r\n \"d\": \"Whether a piece of text matches a regular expression.\",\r\n \"a\": \"Whether a piece of text matches regular expression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The text to be tested against the regular expression.\"\r\n },\r\n {\r\n \"name\": \"regular_expression\",\r\n \"detail\": \"The regular expression to test the text against.\"\r\n }\r\n ]\r\n },\r\n \"REGEXREPLACE\": {\r\n \"d\": \"Replaces part of a text string with a different text string using regular expressions.\",\r\n \"a\": \"Replaces text with regular expressions.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The text, a part of which will be replaced.\"\r\n },\r\n {\r\n \"name\": \"regular_expression\",\r\n \"detail\": \"The regular expression. All matching instances in `text` will be replaced.\"\r\n },\r\n {\r\n \"name\": \"replacement\",\r\n \"detail\": \"The text which will be inserted into the original text.\"\r\n }\r\n ]\r\n },\r\n \"T\": {\r\n \"d\": \"Returns string arguments as text, or the empty string if the value is not text.\",\r\n \"a\": \"String arguments as text.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument to be converted to text.\"\r\n }\r\n ]\r\n },\r\n \"FIXED\": {\r\n \"d\": \"Formats a number with a fixed number of decimal places.\",\r\n \"a\": \"Formats number with fixed number of decimal places.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"The number to format.\"\r\n },\r\n {\r\n \"name\": \"number_of_places\",\r\n \"detail\": \"The number of decimal places to display in the result.\"\r\n },\r\n {\r\n \"name\": \"suppress_separator\",\r\n \"detail\": \"Whether or not to suppress the thousands separator used in some locales (e.g. `1,000` becomes `1000`). Separators will be present if this value is 0 or omitted, and absent otherwise.\"\r\n }\r\n ]\r\n },\r\n \"FIND\": {\r\n \"d\": \"Returns the position at which a string is first found within text where the capitalization of letters matters. Returns `#VALUE!` if the string is not found.\",\r\n \"a\": \"First position of string found in text, case-sensitive.\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_for\",\r\n \"detail\": \"The string to look for within `text_to_search`.\"\r\n },\r\n {\r\n \"name\": \"text_to_search\",\r\n \"detail\": \"The text to search for the first occurrence of `search_for`.\"\r\n },\r\n {\r\n \"name\": \"starting_at\",\r\n \"detail\": \"The character within `text_to_search` at which to start the search.\"\r\n }\r\n ]\r\n },\r\n \"FINDB\": {\r\n \"d\": \"Returns the position at which a string is first found within text counting each double-character as 2.\",\r\n \"a\": \"Position at which a string is first found within text (binary).\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_for\",\r\n \"detail\": \"The string to look for within `text_to_search`.\"\r\n },\r\n {\r\n \"name\": \"text_to_search\",\r\n \"detail\": \"The text to search for the first occurrence of `search_for`.\"\r\n },\r\n {\r\n \"name\": \"starting_at\",\r\n \"detail\": \"The character within `text_to_search` at which to start the search.\"\r\n }\r\n ]\r\n },\r\n \"JOIN\": {\r\n \"d\": \"Concatenates the elements of one or more one-dimensional arrays using a specified delimiter.\",\r\n \"a\": \"Concatenates elements of arrays with delimiter.\",\r\n \"p\": [\r\n {\r\n \"name\": \"delimiter\",\r\n \"detail\": \"The character or string to place between each concatenated value.\"\r\n },\r\n {\r\n \"name\": \"value_or_array1\",\r\n \"detail\": \"The value or values to be appended using `delimiter`.\"\r\n },\r\n {\r\n \"name\": \"value_or_array2\",\r\n \"detail\": \"More values to be appended using `delimiter`.\"\r\n }\r\n ]\r\n },\r\n \"LEFT\": {\r\n \"d\": \"Returns a substring from the beginning of a specified string.\",\r\n \"a\": \"Substring from beginning of specified string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"string\",\r\n \"detail\": \"The string from which the left portion will be returned.\"\r\n },\r\n {\r\n \"name\": \"number_of_characters\",\r\n \"detail\": \"The number of characters to return from the left side of `string`.\"\r\n }\r\n ]\r\n },\r\n \"RIGHT\": {\r\n \"d\": \"Returns a substring from the end of a specified string.\",\r\n \"a\": \"A substring from the end of a specified string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"string\",\r\n \"detail\": \"The string from which the right portion will be returned.\"\r\n },\r\n {\r\n \"name\": \"number_of_characters\",\r\n \"detail\": \"The number of characters to return from the right side of `string`.\"\r\n }\r\n ]\r\n },\r\n \"MID\": {\r\n \"d\": \"Returns a segment of a string.\",\r\n \"a\": \"A segment of a string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"string\",\r\n \"detail\": \"The string to extract a segment from.\"\r\n },\r\n {\r\n \"name\": \"starting_at\",\r\n \"detail\": \"The index from the left of `string` from which to begin extracting. The first character in `string` has the index 1.\"\r\n },\r\n {\r\n \"name\": \"extract_length\",\r\n \"detail\": \"The length of the segment to extract.\"\r\n }\r\n ]\r\n },\r\n \"LEN\": {\r\n \"d\": \"Returns the length of a string.\",\r\n \"a\": \"Length of a string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The string whose length will be returned.\"\r\n }\r\n ]\r\n },\r\n \"LENB\": {\r\n \"d\": \"Returns the length of a string in bytes.\",\r\n \"a\": \"Length of a string in bytes.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The string whose length will be returned.\"\r\n }\r\n ]\r\n },\r\n \"LOWER\": {\r\n \"d\": \"Converts a specified string to lowercase.\",\r\n \"a\": \"Converts a specified string to lowercase.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The string to convert to lowercase.\"\r\n }\r\n ]\r\n },\r\n \"UPPER\": {\r\n \"d\": \"Converts a specified string to uppercase.\",\r\n \"a\": \"Converts a specified string to uppercase.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The string to convert to uppercase.\"\r\n }\r\n ]\r\n },\r\n \"EXACT\": {\r\n \"d\": \"Tests whether two strings are identical.\",\r\n \"a\": \"Tests whether two strings are identical.\",\r\n \"p\": [\r\n {\r\n \"name\": \"string1\",\r\n \"detail\": \"The first string to compare\"\r\n },\r\n {\r\n \"name\": \"string2\",\r\n \"detail\": \"The second string to compare\"\r\n }\r\n ]\r\n },\r\n \"REPLACE\": {\r\n \"d\": \"Replaces part of a text string with a different text string.\",\r\n \"a\": \"Replaces part of a text string with different text.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The text, a part of which will be replaced.\"\r\n },\r\n {\r\n \"name\": \"position\",\r\n \"detail\": \"The position where the replacement will begin (starting from 1).\"\r\n },\r\n {\r\n \"name\": \"length\",\r\n \"detail\": \"The number of characters in the text to be replaced.\"\r\n },\r\n {\r\n \"name\": \"new_text\",\r\n \"detail\": \"The text which will be inserted into the original text.\"\r\n }\r\n ]\r\n },\r\n \"REPT\": {\r\n \"d\": \"Returns specified text repeated a number of times.\",\r\n \"a\": \"Specified text repeated a number of times.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text_to_repeat\",\r\n \"detail\": \"The character or string to repeat.\"\r\n },\r\n {\r\n \"name\": \"number_of_repetitions\",\r\n \"detail\": \"The number of times `text_to_repeat` should appear in the value returned.\"\r\n }\r\n ]\r\n },\r\n \"SEARCH\": {\r\n \"d\": \"Returns the position at which a string is first found within text and ignores capitalization of letters. Returns `#VALUE!` if the string is not found.\",\r\n \"a\": \"First position of string found in text, ignoring case.\",\r\n \"p\": [\r\n {\r\n \"name\": \"search_for\",\r\n \"detail\": \"The string to look for within `text_to_search`.\"\r\n },\r\n {\r\n \"name\": \"text_to_search\",\r\n \"detail\": \"The text to search for the first occurrence of `search_for`.\"\r\n },\r\n {\r\n \"name\": \"starting_at\",\r\n \"detail\": \"The character within `text_to_search` at which to start the search.\"\r\n }\r\n ]\r\n },\r\n \"SUBSTITUTE\": {\r\n \"d\": \"Replaces existing text with new text in a string.\",\r\n \"a\": \"Replaces existing text with new text in a string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text_to_search\",\r\n \"detail\": \"The text within which to search and replace.\"\r\n },\r\n {\r\n \"name\": \"search_for\",\r\n \"detail\": \"The string to search for within `text_to_search`.\"\r\n },\r\n {\r\n \"name\": \"replace_with\",\r\n \"detail\": \"The string that will replace `search_for`.\"\r\n },\r\n {\r\n \"name\": \"occurrence_number\",\r\n \"detail\": \"The instance of `search_for` within `text_to_search` to replace with `replace_with`. By default, all occurrences of `search_for` are replaced; however, if `occurrence_number` is specified, only the indicated instance of `search_for` is replaced.\"\r\n }\r\n ]\r\n },\r\n \"CLEAN\": {\r\n \"d\": \"Returns the text with the non-printable ASCII characters removed.\",\r\n \"a\": \"Removes non-printable characters from a piece of text.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The text whose non-printable characters are to be removed.\"\r\n }\r\n ]\r\n },\r\n \"TEXT\": {\r\n \"d\": \"Converts a number into text according to a specified format.\",\r\n \"a\": \"Formats a number into text.\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"The number, date, or time to format.\"\r\n },\r\n {\r\n \"name\": \"format\",\r\n \"detail\": \"The pattern by which to format the number, enclosed in quotation marks.\"\r\n }\r\n ]\r\n },\r\n \"TRIM\": {\r\n \"d\": \"Removes leading, trailing, and repeated spaces in text.\",\r\n \"a\": \"Removes space characters.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The text or reference to a cell containing text to be trimmed.\"\r\n }\r\n ]\r\n },\r\n \"VALUE\": {\r\n \"d\": \"Converts a string in any of the date, time or number formats that Google Sheets understands into a number.\",\r\n \"a\": \"Converts a date/time/number string into a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"The string containing the value to be converted.\"\r\n }\r\n ]\r\n },\r\n \"PROPER\": {\r\n \"d\": \"Capitalizes each word in a specified string.\",\r\n \"a\": \"Capitalizes each word in a specified string.\",\r\n \"p\": [\r\n {\r\n \"name\": \"text_to_capitalize\",\r\n \"detail\": \"The text which will be returned with the first letter of each word in uppercase and all other letters in lowercase.\"\r\n }\r\n ]\r\n },\r\n \"CONVERT\": {\r\n \"d\": \"Converts a numeric value to a different unit of measure.\",\r\n \"a\": \"Unit conversion for numbers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The numeric value in `start_unit` to convert to `end_unit`.\"\r\n },\r\n {\r\n \"name\": \"start_unit\",\r\n \"detail\": \"The starting unit, the unit currently assigned to `value`.\"\r\n },\r\n {\r\n \"name\": \"end_unit\",\r\n \"detail\": \"The unit of measure into which to convert the argument, `value`.\"\r\n }\r\n ]\r\n },\r\n \"SUMX2MY2\": {\r\n \"d\": \"Calculates the sum of the differences of the squares of values in two arrays.\",\r\n \"a\": \"Sum of the differences of squares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_x\",\r\n \"detail\": \"The array or range of values whose squares will be reduced by the squares of corresponding entries in `array_y` and added together.\"\r\n },\r\n {\r\n \"name\": \"array_y\",\r\n \"detail\": \"The array or range of values whose squares will be subtracted from the squares of corresponding entries in `array_x` and added together.\"\r\n }\r\n ]\r\n },\r\n \"SUMX2PY2\": {\r\n \"d\": \"Calculates the sum of the sums of the squares of values in two arrays.\",\r\n \"a\": \"Sum of the sums of squares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_x\",\r\n \"detail\": \"The array or range of values whose squares will be added to the squares of corresponding entries in `array_y` and added together.\"\r\n },\r\n {\r\n \"name\": \"array_y\",\r\n \"detail\": \"The array or range of values whose squares will be added to the squares of corresponding entries in `array_x` and added together.\"\r\n }\r\n ]\r\n },\r\n \"SUMXMY2\": {\r\n \"d\": \"Calculates the sum of the squares of differences of values in two arrays.\",\r\n \"a\": \"Sum of the squares of differences.\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_x\",\r\n \"detail\": \"The array or range of values that will be reduced by corresponding entries in `array_y`, squared, and added together.\"\r\n },\r\n {\r\n \"name\": \"array_y\",\r\n \"detail\": \"The array or range of values that will be subtracted from corresponding entries in `array_x`, the result squared, and all such results added together.\"\r\n }\r\n ]\r\n },\r\n \"TRANSPOSE\": {\r\n \"d\": \"Transposes the rows and columns of an array or range of cells.\",\r\n \"a\": \"Transposes the rows and columns of an array.\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_or_range\",\r\n \"detail\": \"The array or range whose rows and columns will be swapped.\"\r\n }\r\n ]\r\n },\r\n \"TREND\": {\r\n \"d\": \"Given partial data about a linear trend, fits an ideal linear trend using the least squares method and/or predicts further values.\",\r\n \"a\": \"Fits points to linear trend derived via least-squares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_data_y\",\r\n \"detail\": \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal linear trend.\"\r\n },\r\n {\r\n \"name\": \"known_data_x\",\r\n \"detail\": \"The values of the independent variable(s) corresponding with `known_data_y`.\"\r\n },\r\n {\r\n \"name\": \"new_data_x\",\r\n \"detail\": \"The data points to return the `y` values for on the ideal curve fit.\"\r\n },\r\n {\r\n \"name\": \"b\",\r\n \"detail\": \"Given a general linear form of `y = m*x+b` for a curve fit, calculates `b` if `TRUE` or forces `b` to be `0` and only calculates the `m` values if `FALSE`, i.e. forces the curve fit to pass through the origin.\"\r\n }\r\n ]\r\n },\r\n \"FREQUENCY\": {\r\n \"d\": \"Calculates the frequency distribution of a one-column array into specified classes.\",\r\n \"a\": \"The frequency distribution of array.\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"The array or range containing the values to be counted.\"\r\n },\r\n {\r\n \"name\": \"classes\",\r\n \"detail\": \"The array or range containing the set of classes.\"\r\n }\r\n ]\r\n },\r\n \"GROWTH\": {\r\n \"d\": \"Given partial data about an exponential growth trend, fits an ideal exponential growth trend and/or predicts further values.\",\r\n \"a\": \"Fits points to exponential growth trend.\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_data_y\",\r\n \"detail\": \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal exponential growth curve.\"\r\n },\r\n {\r\n \"name\": \"known_data_x\",\r\n \"detail\": \"The values of the independent variable(s) corresponding with `known_data_y`.\"\r\n },\r\n {\r\n \"name\": \"new_data_x\",\r\n \"detail\": \"The data points to return the `y` values for on the ideal curve fit.\"\r\n },\r\n {\r\n \"name\": \"b\",\r\n \"detail\": \"Given a general exponential form of `y = b*m^x` for a curve fit, calculates `b` if `TRUE` or forces `b` to be `1` and only calculates the `m` values if `FALSE`.\"\r\n }\r\n ]\r\n },\r\n \"LINEST\": {\r\n \"d\": \"Given partial data about a linear trend, calculates various parameters about the ideal linear trend using the least-squares method.\",\r\n \"a\": \"Best-fit linear trend via least-squares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_data_y\",\r\n \"detail\": \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal linear trend.\"\r\n },\r\n {\r\n \"name\": \"known_data_x\",\r\n \"detail\": \"The values of the independent variable(s) corresponding with `known_data_y`.\"\r\n },\r\n {\r\n \"name\": \"calculate_b\",\r\n \"detail\": \"Given a linear form of `y = m*x+b`, calculates the y-intercept (`b`) if `TRUE`. Otherwise, forces `b` to be `0` and only calculates the `m` values if `FALSE`, i.e. forces the curve fit to pass through the origin.\"\r\n },\r\n {\r\n \"name\": \"verbose\",\r\n \"detail\": \"A flag specifying whether to return additional regression statistics or only the linear coefficients and the y-intercept (default).\"\r\n }\r\n ]\r\n },\r\n \"LOGEST\": {\r\n \"d\": \"Given partial data about an exponential growth curve, calculates various parameters about the best fit ideal exponential growth curve.\",\r\n \"a\": \"Best-fit exponential growth curve.\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_data_y\",\r\n \"detail\": \"The array or range containing dependent (y) values that are already known, used to curve fit an ideal exponential growth curve.\"\r\n },\r\n {\r\n \"name\": \"known_data_x\",\r\n \"detail\": \"The values of the independent variable(s) corresponding with `known_data_y`.\"\r\n },\r\n {\r\n \"name\": \"b\",\r\n \"detail\": \"Given a general exponential form of `y = b*m^x` for a curve fit, calculates `b` if `TRUE` or forces `b` to be `1` and only calculates the `m` values if `FALSE`.\"\r\n },\r\n {\r\n \"name\": \"verbose\",\r\n \"detail\": \"A flag specifying whether to return additional regression statistics or only the calculated coefficient and exponents.\"\r\n }\r\n ]\r\n },\r\n \"MDETERM\": {\r\n \"d\": \"Returns the matrix determinant of a square matrix specified as an array or range.\",\r\n \"a\": \"Matrix determinant of a square matrix.\",\r\n \"p\": [\r\n {\r\n \"name\": \"square_matrix\",\r\n \"detail\": \"An array or range with an equal number of rows and columns representing a matrix whose determinant will be calculated.\"\r\n }\r\n ]\r\n },\r\n \"MINVERSE\": {\r\n \"d\": \"Returns the multiplicative inverse of a square matrix specified as an array or range.\",\r\n \"a\": \"Multiplicative inverse of square matrix.\",\r\n \"p\": [\r\n {\r\n \"name\": \"square_matrix\",\r\n \"detail\": \"An array or range with an equal number of rows and columns representing a matrix whose multiplicative inverse will be calculated.\"\r\n }\r\n ]\r\n },\r\n \"MMULT\": {\r\n \"d\": \"Calculates the matrix product of two matrices specified as arrays or ranges.\",\r\n \"a\": \"The matrix product of two matrices.\",\r\n \"p\": [\r\n {\r\n \"name\": \"matrix1\",\r\n \"detail\": \"The first matrix in the matrix multiplication operation, represented as an array or range.\"\r\n },\r\n {\r\n \"name\": \"matrix2\",\r\n \"detail\": \"The second matrix in the matrix multiplication operation, represented as an array or range.\"\r\n }\r\n ]\r\n },\r\n \"SUMPRODUCT\": {\r\n \"d\": \"Calculates the sum of the products of corresponding entries in two equal-sized arrays or ranges.\",\r\n \"a\": \"Sum of products of elements in two arrays.\",\r\n \"p\": [\r\n {\r\n \"name\": \"array1\",\r\n \"detail\": \"The first array or range whose entries will be multiplied with corresponding entries in the second such array or range.\"\r\n },\r\n {\r\n \"name\": \"array2\",\r\n \"detail\": \"The second array or range whose entries will be multiplied with corresponding entries in the first such array or range.\"\r\n }\r\n ]\r\n },\r\n \"ISFORMULA\": {\r\n \"d\": \"Checks whether a value is a formula.\",\r\n \"a\": \"Whether a value is a formula.\",\r\n \"p\": [\r\n {\r\n \"name\": \"cell\",\r\n \"detail\": \"The cell to be verified as containing a formula.\"\r\n }\r\n ]\r\n },\r\n \"CELL\": {\r\n \"d\": \"Returns the requested information about the specified cell.\",\r\n \"a\": \"Gets information about a cell.\",\r\n \"p\": [\r\n {\r\n \"name\": \"info_type\",\r\n \"detail\": \"The type of information requested (see article for available types)\"\r\n },\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"The reference to the cell.\"\r\n }\r\n ]\r\n },\r\n \"NA\": {\r\n \"d\": \"Returns the \\\"value not available\\\" error, `#N/A`.\",\r\n \"a\": \"The `#N/A` error.\",\r\n \"p\": []\r\n },\r\n \"ERROR_TYPE\": {\r\n \"d\": \"Returns a number corresponding to the error value in a different cell.\",\r\n \"a\": \"Error value of cell (as number).\",\r\n \"p\": [\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"The cell to find the error number for although you can also provide the error value directly.\"\r\n }\r\n ]\r\n },\r\n \"ISBLANK\": {\r\n \"d\": \"Checks whether the referenced cell is empty.\",\r\n \"a\": \"Whether the referenced cell is empty.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"Reference to the cell that will be checked for emptiness.\"\r\n }\r\n ]\r\n },\r\n \"ISERR\": {\r\n \"d\": \"Checks whether a value is an error other than `#N/A`.\",\r\n \"a\": \"Whether a value is an error other than `#n/a`.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as an error type other than `#N/A`.\"\r\n }\r\n ]\r\n },\r\n \"ISERROR\": {\r\n \"d\": \"Checks whether a value is an error.\",\r\n \"a\": \"Whether a value is an error.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as an error type.\"\r\n }\r\n ]\r\n },\r\n \"ISLOGICAL\": {\r\n \"d\": \"Checks whether a value is `TRUE` or `FALSE`.\",\r\n \"a\": \"Whether a value is `true` or `false`.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as a logical `TRUE` or `FALSE`.\"\r\n }\r\n ]\r\n },\r\n \"ISNA\": {\r\n \"d\": \"Checks whether a value is the error `#N/A`.\",\r\n \"a\": \"Whether a value is the error `#n/a`.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be compared with the error value `#N/A`.\"\r\n }\r\n ]\r\n },\r\n \"ISNONTEXT\": {\r\n \"d\": \"Checks whether a value is non-textual.\",\r\n \"a\": \"Whether a value is non-textual.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be checked.\"\r\n }\r\n ]\r\n },\r\n \"ISNUMBER\": {\r\n \"d\": \"Checks whether a value is a number.\",\r\n \"a\": \"Whether a value is a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as a number.\"\r\n }\r\n ]\r\n },\r\n \"ISREF\": {\r\n \"d\": \"Checks whether a value is a valid cell reference.\",\r\n \"a\": \"Whether a value is a valid cell reference.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as a cell reference.\"\r\n }\r\n ]\r\n },\r\n \"ISTEXT\": {\r\n \"d\": \"Checks whether a value is text.\",\r\n \"a\": \"Whether a value is text.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as text.\"\r\n }\r\n ]\r\n },\r\n \"TYPE\": {\r\n \"d\": \"Returns a number associated with the type of data passed into the function.\",\r\n \"a\": \"Get the type of a value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value whose type is to be determined.\"\r\n }\r\n ]\r\n },\r\n \"N\": {\r\n \"d\": \"Returns the argument provided as a number. Text is converted to 0 and errors are returned as-is.\",\r\n \"a\": \"Argument provided as a number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument to be converted to a number.\"\r\n }\r\n ]\r\n },\r\n \"TO_DATE\": {\r\n \"d\": \"Converts a provided number to a date.\",\r\n \"a\": \"Converts a provided number to a date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument or reference to a cell to be converted to a date.\"\r\n }\r\n ]\r\n },\r\n \"TO_PURE_NUMBER\": {\r\n \"d\": \"Converts a provided date/time, percentage, currency or other formatted numeric value to a pure number without formatting.\",\r\n \"a\": \"Converts any numeric value to a pure number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument or reference to a cell to be converted to a pure number.\"\r\n }\r\n ]\r\n },\r\n \"TO_TEXT\": {\r\n \"d\": \"Converts a provided numeric value to a text value.\",\r\n \"a\": \"Converts a provided numeric value to a text value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument or reference to a cell to be converted to text.\"\r\n }\r\n ]\r\n },\r\n \"TO_DOLLARS\": {\r\n \"d\": \"Converts a provided number to a dollar value.\",\r\n \"a\": \"Converts a provided number to a dollar value.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument or reference to a cell to be converted to a dollar value.\"\r\n }\r\n ]\r\n },\r\n \"TO_PERCENT\": {\r\n \"d\": \"Converts a provided number to a percentage.\",\r\n \"a\": \"Converts a provided number to a percentage.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The argument or reference to a cell to be converted to a percentage.\"\r\n }\r\n ]\r\n },\r\n \"DGET\": {\r\n \"d\": \"Returns a single value from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Single value from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DMAX\": {\r\n \"d\": \"Returns the maximum value selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Maximum of values from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DMIN\": {\r\n \"d\": \"Returns the minimum value selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Minimum of values from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DAVERAGE\": {\r\n \"d\": \"Returns the average of a set of values selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Average of a set of values from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DCOUNT\": {\r\n \"d\": \"Counts numeric values selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Counts values from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DCOUNTA\": {\r\n \"d\": \"Counts values, including text, selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Counts values and text from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DPRODUCT\": {\r\n \"d\": \"Returns the product of values selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Product of values from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DSTDEV\": {\r\n \"d\": \"Returns the standard deviation of a population sample selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Standard deviation of population sample from table.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DSTDEVP\": {\r\n \"d\": \"Returns the standard deviation of an entire population selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Standard deviation of entire population from table.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DSUM\": {\r\n \"d\": \"Returns the sum of values selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Sum of values from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DVAR\": {\r\n \"d\": \"Returns the variance of a population sample selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Variance of population sample from table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"DVARP\": {\r\n \"d\": \"Returns the variance of an entire population selected from a database table-like array or range using a SQL-like query.\",\r\n \"a\": \"Variance of a population from a table-like range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"Indicates which column in `database` contains the values to be extracted and operated on.\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"An array or range containing zero or more criteria to filter the `database` values by before operating.\"\r\n }\r\n ]\r\n },\r\n \"AGE_BY_IDCARD\": {\r\n \"d\": \"Calculate the age based on the Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get age based on ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n },\r\n {\r\n \"name\": \"Deadline\",\r\n \"detail\": \"The deadline or range of age calculation. The default is the current day.\"\r\n }\r\n ]\r\n },\r\n \"SEX_BY_IDCARD\": {\r\n \"d\": \"Calculate gender based on Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get gender based on ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n }\r\n ]\r\n },\r\n \"BIRTHDAY_BY_IDCARD\": {\r\n \"d\": \"Calculate the birthday based on the Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get the birthday based on the ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n },\r\n {\r\n \"name\": \"Birthday format\",\r\n \"detail\": \"Date type, default:0:[1900/01/01], 1:[1900-01-01], 2:[1900\u5E741\u67081\u65E5]\"\r\n }\r\n ]\r\n },\r\n \"PROVINCE_BY_IDCARD\": {\r\n \"d\": \"Calculate the province of birthplace based on the Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get the province of birthplace based on the ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n }\r\n ]\r\n },\r\n \"CITY_BY_IDCARD\": {\r\n \"d\": \"Calculate the city of birthplace based on the Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get the city of birthplace based on the ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n }\r\n ]\r\n },\r\n \"STAR_BY_IDCARD\": {\r\n \"d\": \"Calculate the constellation based on the Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get the constellation based on the ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n }\r\n ]\r\n },\r\n \"ANIMAL_BY_IDCARD\": {\r\n \"d\": \"Calculate the zodiac (rat, ox, tiger, rabbit...) based on the Chinese ID number. Support 15 or 18\",\r\n \"a\": \"Get the zodiac according to the ID number.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n }\r\n ]\r\n },\r\n \"ISIDCARD\": {\r\n \"d\": \"Verify that the format of the ID card is correct. Support 15 or 18\",\r\n \"a\": \"Verify the correctness of the ID card format.\",\r\n \"p\": [\r\n {\r\n \"name\": \"ID number\",\r\n \"detail\": \"15-digit or 18-digit ID number or range.\"\r\n }\r\n ]\r\n },\r\n \"DM_TEXT_CUTWORD\": {\r\n \"d\": \"Text segmentation. Split a series of words into a series of individual words\",\r\n \"a\": \"Chinese text segmentation.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Text\",\r\n \"detail\": \"Any text that needs word segmentation.\"\r\n },\r\n {\r\n \"name\": \"Word segmentation mode\",\r\n \"detail\": \"The default is 0[precision mode], 1[full mode], 2[search engine mode].\"\r\n }\r\n ]\r\n },\r\n \"DM_TEXT_TFIDF\": {\r\n \"d\": \"Use tf-idf algorithm for keyword extraction. Identify keywords from a series of text\",\r\n \"a\": \"tf-idf keyword recognition.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Text\",\r\n \"detail\": \"Any text that needs word segmentation.\"\r\n },\r\n {\r\n \"name\": \"Number of keywords\",\r\n \"detail\": \"The number of keywords returned by the algorithm, the default is 20\"\r\n },\r\n {\r\n \"name\": \"Corpus\",\r\n \"detail\": \"Select a corpus in a specific field, the default is 0[General], 1[Finance], 2[Medical]\"\r\n }\r\n ]\r\n },\r\n \"DM_TEXT_TEXTRANK\": {\r\n \"d\": \"Use TextRank algorithm to extract keywords. Identify keywords from a series of text\",\r\n \"a\": \"TextRank keyword recognition.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Text\",\r\n \"detail\": \"Any text that needs word segmentation.\"\r\n },\r\n {\r\n \"name\": \"Number of keywords\",\r\n \"detail\": \"The number of keywords returned by the algorithm, the default is 20\"\r\n },\r\n {\r\n \"name\": \"Corpus\",\r\n \"detail\": \"Select a corpus in a specific field, the default is 0[General], 1[Finance], 2[Medical]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_CLOSE\": {\r\n \"d\": \"According to the stock code and date, return the corresponding stock closing price of A shares.\",\r\n \"a\": \"Returns the closing price of stock.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Stock code\",\r\n \"detail\": \"6-digit stock code, required.\"\r\n },\r\n {\r\n \"name\": \"Date\",\r\n \"detail\": \"The trading day of the stock, the default is the latest trading day\"\r\n },\r\n {\r\n \"name\": \"Reversion and exclusion\",\r\n \"detail\": \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_OPEN\": {\r\n \"d\": \"According to the stock code and date, return the opening price of stock.\",\r\n \"a\": \"Return the opening price of a shares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Stock code\",\r\n \"detail\": \"6-digit stock code, required.\"\r\n },\r\n {\r\n \"name\": \"Date\",\r\n \"detail\": \"The trading day of the stock, the default is the latest trading day\"\r\n },\r\n {\r\n \"name\": \"Reversion and exclusion\",\r\n \"detail\": \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_MAX\": {\r\n \"d\": \"According to the stock code and date, return the highest price of stock.\",\r\n \"a\": \"Return the highest price of stock.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Stock code\",\r\n \"detail\": \"6-digit stock code, required.\"\r\n },\r\n {\r\n \"name\": \"Date\",\r\n \"detail\": \"The trading day of the stock, the default is the latest trading day\"\r\n },\r\n {\r\n \"name\": \"Reversion and exclusion\",\r\n \"detail\": \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_MIN\": {\r\n \"d\": \"According to the stock code and date, return the lowest price of stock.\",\r\n \"a\": \"Returns the lowest price of stock.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Stock code\",\r\n \"detail\": \"6-digit stock code, required.\"\r\n },\r\n {\r\n \"name\": \"Date\",\r\n \"detail\": \"The trading day of the stock, the default is the latest trading day\"\r\n },\r\n {\r\n \"name\": \"Reversion and exclusion\",\r\n \"detail\": \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_VOLUMN\": {\r\n \"d\": \"According to the stock code and date, return the corresponding stock trading volume of A shares.\",\r\n \"a\": \"Returns the corresponding stock trading volume of A shares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Stock code\",\r\n \"detail\": \"6-digit stock code, required.\"\r\n },\r\n {\r\n \"name\": \"Date\",\r\n \"detail\": \"The trading day of the stock, the default is the latest trading day\"\r\n },\r\n {\r\n \"name\": \"Reversion and exclusion\",\r\n \"detail\": \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_AMOUNT\": {\r\n \"d\": \"According to the stock code and date, return the corresponding stock turnover of A shares.\",\r\n \"a\": \"Returns the corresponding stock turnover of A shares.\",\r\n \"p\": [\r\n {\r\n \"name\": \"Stock code\",\r\n \"detail\": \"6-digit stock code, required.\"\r\n },\r\n {\r\n \"name\": \"Date\",\r\n \"detail\": \"The trading day of the stock, the default is the latest trading day\"\r\n },\r\n {\r\n \"name\": \"Reversion and exclusion\",\r\n \"detail\": \"Select the ex right restoration type of the stock, default to 0 [former reversion], 1 [original price], 2 [post reversion]\"\r\n }\r\n ]\r\n },\r\n \"ISDATE\": {\r\n \"d\": \"Returns whether a value is a date.\",\r\n \"a\": \"Whether a value is a date.\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"The value to be verified as a date.\"\r\n }\r\n ]\r\n },\r\n \"LINESPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the cell to describe the continuous trend of data\",\r\n \"a\": \"Generate sparklines line chart\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Line color\",\r\n \"detail\": \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #2ec7c9\"\r\n },\r\n {\r\n \"name\": \"Line thickness\",\r\n \"detail\": \"Line thickness of the line graph, the default is 1px\"\r\n },\r\n {\r\n \"name\": \"Auxiliary line\",\r\n \"detail\": \"A horizontal line, which can be min, max, avg, median, range or custom value, default 0 none\"\r\n },\r\n {\r\n \"name\": \"Auxiliary line color\",\r\n \"detail\": \"Color setting of auxiliary line, same as line color configuration, default #000\"\r\n },\r\n {\r\n \"name\": \"Maximum mark\",\r\n \"detail\": \"Identifies the maximum value of the line graph, the same line color configuration, default 0 does not display\"\r\n },\r\n {\r\n \"name\": \"Minimum mark\",\r\n \"detail\": \"Identify the minimum value of the line graph, the same line color configuration, default 0 does not display\"\r\n },\r\n {\r\n \"name\": \"Mark size\",\r\n \"detail\": \"The maximum and minimum mark size settings, the default is 1.5\"\r\n }\r\n ]\r\n },\r\n \"AREASPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the cell area chart, generally used to describe the continuous cumulative value trend of the data\",\r\n \"a\": \"Generate sparklines area chart\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Line color\",\r\n \"detail\": \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #2ec7c9\"\r\n },\r\n {\r\n \"name\": \"Fill color\",\r\n \"detail\": \"Form an area chart, the same line color configuration, default 0 does not display\"\r\n },\r\n {\r\n \"name\": \"Line thickness\",\r\n \"detail\": \"Line thickness of the line graph, the default is 1px\"\r\n },\r\n {\r\n \"name\": \"Auxiliary line\",\r\n \"detail\": \"A horizontal line, which can be min, max, avg, median, range or custom value, default 0 none\"\r\n },\r\n {\r\n \"name\": \"Auxiliary line color\",\r\n \"detail\": \"Color setting of auxiliary line, same as line color configuration, default #000\"\r\n }\r\n ]\r\n },\r\n \"COLUMNSPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the vertical histogram of cells, generally used to describe the size of discrete data\",\r\n \"a\": \"Generate sparklines vertical histogram\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Bar interval\",\r\n \"detail\": \"The distance between bars, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Bar color\",\r\n \"detail\": \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #fc5c5c\"\r\n },\r\n {\r\n \"name\": \"Negative bar color\",\r\n \"detail\": \"Negative bar color setting, representing the color of negative value, same as the bar color configuration, default #97b552\"\r\n },\r\n {\r\n \"name\": \"Max\",\r\n \"detail\": \"The maximum value of the bar chart, used to standardize the length of the bar chart, the default is to automatically calculate false, auto, null\"\r\n },\r\n {\r\n \"name\": \"Color palette\",\r\n \"detail\": \"The color palette can set the color of each bar individually, multiple settings can be set, and two formats are supported: 1 color such as #000, which means that the color of the first bar is black; 2 value range: color, such as -2:# 000 indicates that the bar with a value of -2 is black, 0:5:#000 indicates that the bar with a value of 0-5 is black, and the default is empty\"\r\n }\r\n ]\r\n },\r\n \"STACKCOLUMNSPLINES\": {\r\n \"d\": \"Generate sparklines, a cumulative vertical histogram embedded in a cell, generally used to describe the numerical size of multiple dimensions of discrete data\",\r\n \"a\": \"Generate sparklines cumulative vertical histogram\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Stack by column\",\r\n \"detail\": \"If you need to stack by row, set this item to false or 0, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Bar interval\",\r\n \"detail\": \"The distance between bars, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Max\",\r\n \"detail\": \"The maximum value of the cumulative bar, used to regulate the length of the bar, the default is to automatically calculate false, auto, null\"\r\n },\r\n {\r\n \"name\": \"Color palette\",\r\n \"detail\": \"The color palette can individually set the bar color of each dimension, which can be set to the range of A1:A10, etc. The default is #2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\"\r\n }\r\n ]\r\n },\r\n \"BARSPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the cell, generally used to describe the size of discrete data\",\r\n \"a\": \"Generate sparklines horizontal bar graph\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Bar interval\",\r\n \"detail\": \"The distance between bars, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Bar color\",\r\n \"detail\": \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #fc5c5c\"\r\n },\r\n {\r\n \"name\": \"Negative bar color\",\r\n \"detail\": \"Negative bar color setting, representing the color of negative value, same as the bar color configuration, default #97b552\"\r\n },\r\n {\r\n \"name\": \"Max\",\r\n \"detail\": \"The maximum value of the bar chart, used to standardize the length of the bar chart, the default is to automatically calculate false, auto, null\"\r\n },\r\n {\r\n \"name\": \"Color palette\",\r\n \"detail\": \"The color palette can set the color of each bar individually, multiple settings can be set, and two formats are supported: 1 color such as #000, which means that the color of the first bar is black; 2 value range: color, such as -2:# 000 indicates that the bar with a value of -2 is black, 0:5:#000 indicates that the bar with a value of 0-5 is black, and the default is empty\"\r\n }\r\n ]\r\n },\r\n \"STACKBARSPLINES\": {\r\n \"d\": \"Generate sparklines, a cumulative horizontal bar graph embedded in a cell, which is generally used to describe the numerical size of multiple dimensions of discrete data\",\r\n \"a\": \"Generate sparklines cumulative horizontal bar graph\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Stack by column\",\r\n \"detail\": \"If you need to stack by row, set this item to false or 0, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Bar interval\",\r\n \"detail\": \"The distance between bars, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Max\",\r\n \"detail\": \"The maximum value of the cumulative bar, used to regulate the length of the bar, the default is to automatically calculate false, auto, null\"\r\n },\r\n {\r\n \"name\": \"Color palette\",\r\n \"detail\": \"The color palette can individually set the bar color of each dimension, which can be set to the range of A1:A10, etc. The default is #2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\"\r\n }\r\n ]\r\n },\r\n \"DISCRETESPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the cell, generally used to describe the trend of discrete data\",\r\n \"a\": \"Generate sparklines discrete graph\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Segmentation threshold\",\r\n \"detail\": \"Discrete graph column color distinction, for example: if the value is 0, blue is greater than 0, red is less than 0, and the default is 0\"\r\n },\r\n {\r\n \"name\": \"Above threshold color\",\r\n \"detail\": \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #2ec7c9\"\r\n },\r\n {\r\n \"name\": \"Below threshold color\",\r\n \"detail\": \"The color setting of the bar below the threshold, the same as the color above the threshold, default #fc5c5c\"\r\n }\r\n ]\r\n },\r\n \"TRISTATESPLINES\": {\r\n \"d\": \"Generate sparklines, a three-state graph embedded in the cell, which is generally used to describe the trend of three situations, such as winning, losing, or drawing.\",\r\n \"a\": \"Generate sparklines three-state graph\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Bar interval\",\r\n \"detail\": \"The distance between bars, the default is 1\"\r\n },\r\n {\r\n \"name\": \"Bar color\",\r\n \"detail\": \"The line color of the line graph can be range A1, color table index value or specific color value. Set it to 0 or false to not display it. It supports regx, rgb, rgba, etc. Default #fc5c5c\"\r\n },\r\n {\r\n \"name\": \"Negative bar color\",\r\n \"detail\": \"Negative bar color setting, representing the color of negative value, same as the bar color configuration, default #97b552\"\r\n },\r\n {\r\n \"name\": \"Zero value bar color\",\r\n \"detail\": \"Zero value bar color setting, representing 0 value color, the same color configuration of the bar, default #999\"\r\n },\r\n {\r\n \"name\": \"Color palette\",\r\n \"detail\": \"The color palette can set the color of each bar individually, multiple settings can be set, and two formats are supported: 1 color such as #000, which means that the color of the first bar is black; 2 value range: color, such as -2:# 000 indicates that the bar with a value of -2 is black, 0:5:#000 indicates that the bar with a value of 0-5 is black, and the default is empty\"\r\n }\r\n ]\r\n },\r\n \"PIESPLINES\": {\r\n \"d\": \"Generate sparklines pie chart embedded in the cell, generally used to describe the proportion of data\",\r\n \"a\": \"Generate sparklines pie chart\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Rotation angle\",\r\n \"detail\": \"The rotation angle of the pie chart, the default is 0\"\r\n },\r\n {\r\n \"name\": \"border\",\r\n \"detail\": \"Pie chart border size, default is none 0\"\r\n },\r\n {\r\n \"name\": \"Border color\",\r\n \"detail\": \"The border color of the pie chart, the default is #000\"\r\n },\r\n {\r\n \"name\": \"Color palette\",\r\n \"detail\": \"The color of the slice can be set in the palette, which can be set to the range of A1:A10, etc. The default is #2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\"\r\n }\r\n ]\r\n },\r\n \"BOXSPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the cell box plot, generally used to describe the statistical distribution of the data set\",\r\n \"a\": \"Generate sparklines box plot\",\r\n \"p\": [\r\n {\r\n \"name\": \"Range\",\r\n \"detail\": \"Range\uFF0CValues can be calculated effectively, such as A1:A20, {1,2,3,4,5}, etc.\"\r\n },\r\n {\r\n \"name\": \"Outlier ratio\",\r\n \"detail\": \"The threshold range of outliers, if it is 0 or false, it will not be displayed, the default is 1.5 times\"\r\n },\r\n {\r\n \"name\": \"Target value\",\r\n \"detail\": \"The target value setting on the box plot, the default is false and does not display\"\r\n },\r\n {\r\n \"name\": \"Point size\",\r\n \"detail\": \"The radius of the target point and outlier is set, the default is 1.5\"\r\n }\r\n ]\r\n },\r\n \"BULLETSPLINES\": {\r\n \"d\": \"Generate sparklines embedded in the cell, generally used to describe the task achievement rate\",\r\n \"a\": \"Generating sparklines bullets\",\r\n \"p\": [\r\n {\r\n \"name\": \"Target\",\r\n \"detail\": \"The numerical value can be calculated effectively for the achieved target value, such as A1, 100, etc.\"\r\n },\r\n {\r\n \"name\": \"achieved\",\r\n \"detail\": \"Only when the value is completed can the value be calculated effectively, such as A1, 100, etc.\"\r\n },\r\n {\r\n \"name\": \"Contrast\",\r\n \"detail\": \"Comparative values, such as excess, minimum, and bottom line for awards, can be effectively calculated, such as A1, 100, etc. You can set up to 9 comparison values\"\r\n }\r\n ]\r\n },\r\n \"COMPOSESPLINES\": {\r\n \"d\": \"Support multiple types of pictures in the same cell, each parameter represents a sparklines diagram\",\r\n \"a\": \"Combine sparklines graphs into one cell\",\r\n \"p\": [\r\n {\r\n \"name\": \"config\",\r\n \"detail\": \"Sparklines chart settings, such as A1:A20, a completed pie chart, line chart settings, etc.\"\r\n }\r\n ]\r\n },\r\n \"SORT\": {\r\n \"d\": \"Sorts the rows of a given array or range by the values in one or more columns.\",\r\n \"a\": \"Sorts rows of range by specified column.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The data to be sorted.\"\r\n },\r\n {\r\n \"name\": \"sort_column\",\r\n \"detail\": \"The index of the column in `range` or a range outside of `range` containing the values by which to sort.\"\r\n },\r\n {\r\n \"name\": \"is_ascending\",\r\n \"detail\": \"`TRUE` or `FALSE` indicating whether to sort `sort_column` in ascending order. `FALSE` sorts in descending order.\"\r\n },\r\n {\r\n \"name\": \"sort_column2\",\r\n \"detail\": \"Additional columns.\"\r\n }\r\n ]\r\n },\r\n \"FILTER\": {\r\n \"d\": \"Returns a filtered version of the source range, returning only rows or columns which meet the specified conditions.\",\r\n \"a\": \"Filters a range based off provided conditions.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The data to be filtered.\"\r\n },\r\n {\r\n \"name\": \"condition1\",\r\n \"detail\": \"A column or row containing true or false values corresponding to the first column or row of `range`, or an array formula evaluating to true or false.\"\r\n },\r\n {\r\n \"name\": \"condition2\",\r\n \"detail\": \"Additional rows or columns containing boolean values `TRUE` or `FALSE` indicating whether the corresponding row or column in `range` should pass through `FILTER`. Can also contain array formula expressions which evaluate to such rows or columns. All conditions must be of the same type (row or column). Mixing row conditions and column conditions is not permitted.\"\r\n }\r\n ]\r\n },\r\n \"UNIQUE\": {\r\n \"d\": \"Returns unique rows in the provided source range, discarding duplicates. Rows are returned in the order in which they first appear in the source range.\",\r\n \"a\": \"Unique rows in the provided source range.\",\r\n \"p\": [\r\n {\r\n \"name\": \"range\",\r\n \"detail\": \"The data to filter by unique entries.\"\r\n },\r\n {\r\n \"name\": \"by_col\",\r\n \"detail\": \"[Option] - Logical value, indicating how to compare; by row = FALSE() or omitted; by column = TRUE().\"\r\n },\r\n {\r\n \"name\": \"occurs_once\",\r\n \"detail\": \"[Option] - Logical value, only one occurrence in the unique value is returned = TRUE(); including all unique values = FALSE() or omitted.\"\r\n }\r\n ]\r\n },\r\n \"RANDARRAY\": {\r\n \"d\": \"Returns a grid of random numbers between 0 inclusive and 1 exclusive. The grid size will match the provided rows and columns arguments. If neither rows nor columns are provided, then the grid will be size 1 x 1.\",\r\n \"a\": \"Returns a grid of random numbers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rows\",\r\n \"detail\": \"The number of rows to populate with a random number.\"\r\n },\r\n {\r\n \"name\": \"columns\",\r\n \"detail\": \"The number of columns to populate with a random number.\"\r\n }\r\n ]\r\n },\r\n \"SEQUENCE\": {\r\n \"d\": \"Returns a grid of sequential numbers starting at a specified start value and increasing by a specified step size. By default, the sequence starts at and increases by 1.\",\r\n \"a\": \"Returns a grid of sequential numbers.\",\r\n \"p\": [\r\n {\r\n \"name\": \"rows\",\r\n \"detail\": \"The number of rows in the function's resulting grid.\"\r\n },\r\n {\r\n \"name\": \"columns\",\r\n \"detail\": \"The number of columns in the function's resulting grid. If omitted, the result grid will have 1 column.\"\r\n },\r\n {\r\n \"name\": \"start\",\r\n \"detail\": \"The number, at which to start the sequence. If omitted, the sequence will start at 1.\"\r\n },\r\n {\r\n \"name\": \"step\",\r\n \"detail\": \"The amount each value in the sequence will differ by. If omitted, each value will differ by 1.\"\r\n }\r\n ]\r\n },\r\n \"EVALUATE\": {\r\n \"d\": \"Evaluate a formula or expression expressed in words and return the result\",\r\n \"a\": \"Evaluate according to literal formula or expression.\",\r\n \"p\": [\r\n {\r\n \"name\": \"expression\",\r\n \"detail\": \"Formula or expression\"\r\n }\r\n ]\r\n },\r\n \"REMOTE\": {\r\n \"d\": \"Calls a function on a remote server\",\r\n \"a\": \"Calls a function on a remote back end server/API.\",\r\n \"p\": [\r\n {\r\n \"name\": \"remote_expression\",\r\n \"detail\": \"Formula\"\r\n }\r\n ]\r\n }\r\n },\r\n toolbar: {\r\n undo: 'Deshacer',\r\n redo: 'Rehacer',\r\n paintFormat: 'Clonar formato',\r\n currencyFormat: 'Formato de moneda',\r\n percentageFormat: 'Formato de porcentaje',\r\n numberDecrease: 'Menos decimales',\r\n numberIncrease: 'M\u00E1s decimales',\r\n moreFormats:'M\u00E1s formatos',\r\n font: 'Fuente',\r\n fontSize: 'Tama\u00F1o Fuente',\r\n bold: 'Negrita (Ctrl+B)',\r\n italic : 'It\u00E1lica (Ctrl+I)',\r\n strikethrough: 'Tachar (Alt+Shift+5)',\r\n underline: 'Guion bajo',\r\n textColor: 'Color texto',\r\n chooseColor: 'elegir color',\r\n resetColor: 'Reinicializar',\r\n customColor: 'PERSONALIZADO',\r\n alternatingColors: 'Colores alternos',\r\n confirmColor: 'Vale',\r\n cancelColor: 'Cancelar',\r\n collapse: 'Recoger',\r\n fillColor: 'Color de relleno',\r\n border: 'Borde',\r\n borderStyle: 'Estilo Borde',\r\n mergeCell: 'Juntar celdas',\r\n chooseMergeType: 'Elegir tipo de uni\u00F3n',\r\n horizontalAlign: 'Alineaci\u00F3n Horizontal',\r\n verticalAlign: 'Alineaci\u00F3n Vertical',\r\n alignment: 'Alineaci\u00F3n',\r\n textWrap: 'Ajuste de texto',\r\n textWrapMode: 'Modo de ajuste de texto',\r\n textRotate: 'Rotar texto',\r\n textRotateMode: 'Modo de rotar texto',\r\n freezeTopRow: 'Fijar fila superior',\r\n sortAndFilter: 'Ordenar y filtrar',\r\n findAndReplace: 'Buscar y reemplazar',\r\n sum: 'SUMA',\r\n autoSum: 'SUMA autom\u00E1tica',\r\n moreFunction: 'M\u00E1s funciones',\r\n conditionalFormat: 'Formato condicional',\r\n postil: 'Comentario',\r\n pivotTable: 'Tabla Din\u00E1mica',\r\n chart: 'Gr\u00E1fica',\r\n screenshot: 'Captura de pantalla',\r\n splitColumn: 'Separar texto',\r\n insertImage: 'Insertar imagen',\r\n exportXlsx: \"Exportar Xlsx\",\r\n dataVerification: 'Verificaci\u00F3n de datos',\r\n protection:\"Proteger la hoja\",\r\n\r\n clearText:\"Limpiar color\",\r\n noColorSelectedText:\"Ning\u00FAn color seleccionado\",\r\n\r\n toolMore:\"M\u00E1s\",\r\n toolLess:\"Menos\",\r\n toolClose:\"Cerrar\",\r\n toolMoreTip:\"M\u00E1s funcionalidades\",\r\n moreOptions:\"M\u00E1s opciones\",\r\n\r\n cellFormat:\"Configuraci\u00F3n formato de celda\",\r\n print:\"Imprimir\",\r\n },\r\n alternatingColors:{\r\n applyRange: 'Aplicar a rango',\r\n selectRange: 'Seleccionar un rango de datos',\r\n header: 'Cabecera',\r\n footer: 'Pie',\r\n\r\n errorInfo:\"No se puede realizar esta operaci\u00F3n en varias \u00E1reas de selecci\u00F3n, selecciona una sola \u00E1rea y vuelve a intentarlo\",\r\n textTitle:\"Estilo Formato\",\r\n custom:\"PERSONALIZADO\",\r\n close:\"cerrar\",\r\n selectionTextColor:\"Haz clic para seleccionar el color del texto\",\r\n selectionCellColor:\"Haz clic para seleccionar el color de la celda\",\r\n removeColor:\"Eliminar colores alternos\",\r\n colorShow:\"color\",\r\n currentColor:\"Actual\",\r\n\r\n tipSelectRange:\"Selecciona la gama de colores alternos\",\r\n errorNoRange:\"No hay ning\u00FAn rango seleccionado\",\r\n errorExistColors:\"Los colores alternos ya existen y no se pueden editar\",\r\n },\r\n button: {\r\n confirm: 'Vale',\r\n cancel: 'Cancelar',\r\n close:\"Cerrar\",\r\n update:\"Actualizar\",\r\n delete:\"Eliminar\",\r\n insert:\"Insertar\",\r\n prevPage: \"Previous\",\r\n nextPage: \"Next\",\r\n total: \"total:\"\r\n },\r\n paint:{\r\n start: 'Inicio clonar formato',\r\n end: 'ESC',\r\n\r\n tipSelectRange:\"Selecciona el rango que quieres copiar\",\r\n tipNotMulti:\"No se puede realizar esta operaci\u00F3n en un rango de selecci\u00F3n m\u00FAltiple\",\r\n },\r\n format:{\r\n moreCurrency: 'M\u00E1s formatos de moneda',\r\n moreDateTime: 'M\u00E1s formatos de fecha y hora',\r\n moreNumber: 'M\u00E1s formatos de n\u00FAmero',\r\n\r\n titleCurrency: 'Formatos de moneda',\r\n decimalPlaces: 'Decimales',\r\n titleDateTime: 'Formatos de fecha y hora',\r\n titleNumber: 'Formatos de n\u00FAmeros'\r\n },\r\n info:{\r\n detailUpdate: 'Nuevo abierto',\r\n detailSave: 'Cache local restaurado',\r\n row: '',\r\n column: '',\r\n loading:\"Cargando...\",\r\n\r\n copy:\"Copiar\",\r\n return:\"Salir\",\r\n rename:\"Renombrar\",\r\n tips:\"Renombrar Libro\",\r\n noName:\"Hoja sin t\u00EDtulo\",\r\n wait:\"esperando actualizaci\u00F3n\",\r\n\r\n add:\"A\u00F1adir\",\r\n addLast:\"m\u00E1s filas al final\",\r\n backTop:\"Volver arriba\",\r\n pageInfo:'Total ${total}\uFF0Cp\u00E1gina ${totalPage}\uFF0Cactual ${currentPage}',\r\n nextPage:\"Siguiente\",\r\n\r\n tipInputNumber:\"Introduce el n\u00FAmero\",\r\n tipInputNumberLimit:\"El rango de aumento est\u00E1 limitado a 1-100\",\r\n\r\n tipRowHeightLimit:\"La altura de la fila debe estar entre 0 ~ 545\",\r\n tipColumnWidthLimit:\"El ancho de la columna debe estar entre 0 ~ 2038\",\r\n pageInfoFull:'Total ${total}\uFF0Cp\u00E1gina ${totalPage}\uFF0CSe muestran todos los datos',\r\n },\r\n currencyDetail:{\r\n RMB:'RMB',\r\n USdollar:'D\u00F3lar US',\r\n EUR:'EUR',\r\n GBP:'GBP',\r\n HK:'HK',\r\n JPY:'JPY',\r\n AlbanianLek:'Albanian Lek',\r\n AlgerianDinar:'Algerian Dinar',\r\n Afghani:'Afghani',\r\n ArgentinePeso:'Argentine Peso',\r\n UnitedArabEmiratesDirham:'United Arab Emirates Dirham',\r\n ArubanFlorin:'Aruban Florin',\r\n OmaniRial:'Omani Rial',\r\n Azerbaijanimanat:'Azerbaijani manat',\r\n EgyptianPound:'Egyptian Pound',\r\n EthiopianBirr:'Ethiopian Birr',\r\n AngolaKwanza:'Angola Kwanza',\r\n AustralianDollar:'Australian Dollar',\r\n Patacas:'Patacas',\r\n BarbadosDollar:'Barbados Dollar',\r\n PapuaNewGuineaKina:'Papua New Guinea Kina',\r\n BahamianDollar:'Bahamian Dollar',\r\n PakistanRupee:'Pakistan Rupee',\r\n ParaguayanGuarani:'Paraguayan Guarani',\r\n BahrainiDinar:'Bahraini Dinar',\r\n PanamanianBalboa:'Panamanian Balboa',\r\n Brazilianreal:'Brazilian real',\r\n Belarusianruble:'Belarusian ruble',\r\n BermudianDollar:'Bermudian Dollar',\r\n BulgarianLev:'Bulgarian Lev',\r\n IcelandKrona:'Iceland Krona',\r\n BosniaHerzegovinaConvertibleMark:'Bosnia-Herzegovina Convertible Mark',\r\n PolishZloty:'Polish Zloty',\r\n Boliviano:'Boliviano',\r\n BelizeDollar:'Belize Dollar',\r\n BotswanaPula:'Botswana Pula',\r\n NotDannuzhamu:'Not Dannuzhamu',\r\n BurundiFranc:'Burundi Franc',\r\n NorthKoreanWon:'North Korean Won',\r\n DanishKrone:'Danish Krone',\r\n EastCaribbeanDollar:'East Caribbean Dollar',\r\n DominicaPeso:'Dominica Peso',\r\n RussianRuble:'Russian Ruble',\r\n EritreanNakfa:'Eritrean Nakfa',\r\n CFAfranc:'CFA franc',\r\n PhilippinePeso:'Philippine Peso',\r\n FijiDollar:'Fiji Dollar',\r\n CapeVerdeEscudo:'Cape Verde Escudo',\r\n FalklandIslandsPound:'Falkland Islands Pound',\r\n GambianDalasi:'Gambian Dalasi',\r\n Congolesefranc:'Congolese franc',\r\n ColombianPeso:'Colombian Peso',\r\n CostaRicanColon:'Costa Rican Colon',\r\n CubanPeso:'Cuban Peso',\r\n Cubanconvertiblepeso:'Cuban convertible peso',\r\n GuyanaDollar:'Guyana Dollar',\r\n KazakhstanTenge:'Kazakhstan Tenge',\r\n Haitiangourde:'Haitian gourde',\r\n won:'won',\r\n NetherlandsAntillesGuilder:'Netherlands Antilles Guilder',\r\n Honduraslempiras:'Honduras lempiras',\r\n DjiboutiFranc:'Djibouti Franc',\r\n KyrgyzstanSom:'Kyrgyzstan Som',\r\n GuineaFranc:'Guinea Franc',\r\n CanadianDollar:'Canadian Dollar',\r\n GhanaianCedi:'Ghanaian Cedi',\r\n Cambodianriel:'Cambodian riel',\r\n CzechKoruna:'Czech Koruna',\r\n ZimbabweDollar:'Zimbabwe Dollar',\r\n QatariRiyal:'Qatari Riyal',\r\n CaymanIslandsDollar:'Cayman Islands Dollar',\r\n Comorianfranc:'Comorian franc',\r\n KuwaitiDinar:'Kuwaiti Dinar',\r\n CroatianKuna:'Croatian Kuna',\r\n KenyanShilling:'Kenyan Shilling',\r\n LesothoLoti:'Lesotho Loti',\r\n LaoKip:'Lao Kip',\r\n LebanesePound:'Lebanese Pound',\r\n Lithuanianlitas:'Lithuanian litas',\r\n LibyanDinar:'Libyan Dinar',\r\n LiberianDollar:'Liberian Dollar',\r\n RwandaFranc:'Rwanda Franc',\r\n RomanianLeu:'Romanian Leu',\r\n MalagasyAriary:'Malagasy Ariary',\r\n MaldivianRufiyaa:'Maldivian Rufiyaa',\r\n MalawiKwacha:'Malawi Kwacha',\r\n MalaysianRinggit:'Malaysian Ringgit',\r\n MacedoniawearingDinar:'Macedonia wearing Dinar',\r\n MauritiusRupee:'Mauritius Rupee',\r\n MauritanianOuguiya:'Mauritanian Ouguiya',\r\n MongolianTugrik:'Mongolian Tugrik',\r\n BangladeshiTaka:'Bangladeshi Taka',\r\n PeruvianNuevoSol:'Peruvian Nuevo Sol',\r\n MyanmarKyat:'Myanmar Kyat',\r\n MoldovanLeu:'Moldovan Leu',\r\n MoroccanDirham:'Moroccan Dirham',\r\n MozambiqueMetical:'Mozambique Metical',\r\n MexicanPeso:'Mexican Peso',\r\n NamibianDollar:'Namibian Dollar',\r\n SouthAfricanRand:'South African Rand',\r\n SouthSudanesePound:'South Sudanese Pound',\r\n NicaraguaCordoba:'Nicaragua Cordoba',\r\n NepaleseRupee:'Nepalese Rupee',\r\n NigerianNaira:'Nigerian Naira',\r\n NorwegianKrone:'Norwegian Krone',\r\n GeorgianLari:'Georgian Lari',\r\n RMBOffshore:'RMB (Offshore)',\r\n SwedishKrona:'Swedish Krona',\r\n SwissFranc:'Swiss Franc',\r\n SerbianDinar:'Serbian Dinar',\r\n SierraLeone:'Sierra Leone',\r\n SeychellesRupee:'Seychelles Rupee',\r\n SaudiRiyal:'Saudi Riyal',\r\n SaoTomeDobra:'Sao Tome Dobra',\r\n SaintHelenapound:'Saint Helena pound',\r\n SriLankaRupee:'Sri Lanka Rupee',\r\n SwazilandLilangeni:'Swaziland Lilangeni',\r\n SudanesePound:'Sudanese Pound',\r\n Surinamesedollar:'Surinamese dollar',\r\n SolomonIslandsDollar:'Solomon Islands Dollar',\r\n SomaliShilling:'Somali Shilling',\r\n TajikistanSomoni:'Tajikistan Somoni',\r\n PacificFranc:'Pacific Franc',\r\n ThaiBaht:'Thai Baht',\r\n TanzanianShilling:'Tanzanian Shilling',\r\n TonganPaanga:\"Tongan Pa'anga\",\r\n TrinidadandTobagoDollar:'Trinidad and Tobago Dollar',\r\n TunisianDinar:'Tunisian Dinar',\r\n TurkishLira:'Turkish Lira',\r\n VanuatuVatu:'Vanuatu Vatu',\r\n GuatemalanQuetzal:'Guatemalan Quetzal',\r\n CommissionBolivar:'Commission Bolivar',\r\n BruneiDollar:'Brunei Dollar',\r\n UgandanShilling:'Ugandan Shilling',\r\n UkrainianHryvnia:'Ukrainian Hryvnia',\r\n UruguayanPeso:'Uruguayan Peso',\r\n Uzbekistansom:'Uzbekistan som',\r\n WesternSamoaTala:'Western Samoa Tala',\r\n SingaporeDollar:'Singapore Dollar',\r\n NT:'NT',\r\n NewZealandDollar:'New Zealand Dollar',\r\n HungarianForint:'Hungarian Forint',\r\n SyrianPound:'Syrian Pound',\r\n JamaicanDollar:'Jamaican Dollar',\r\n ArmenianDram:'Armenian Dram',\r\n YemeniRial:'Yemeni Rial',\r\n IraqiDinar:'Iraqi Dinar',\r\n IranianRial:'Iranian Rial',\r\n NewIsraeliShekel:'New Israeli Shekel',\r\n IndianRupee:'Indian Rupee',\r\n IndonesianRupiah:'Indonesian Rupiah',\r\n JordanianDinar:'Jordanian Dinar',\r\n VND:'VND',\r\n ZambianKwacha:'Zambian Kwacha',\r\n GibraltarPound:'Gibraltar Pound',\r\n ChileanPeso:'Chilean Peso',\r\n CFAFrancBEAC:'CFA Franc BEAC'\r\n },\r\n defaultFmt:[\r\n { \"text\": 'Autom\u00E1tico', \"value\": \"General\", \"example\": \"\" },\r\n { \"text\": 'Texto', \"value\": \"@\", \"example\": \"\" },\r\n { \"text\": \"\", \"value\": \"partir\", \"example\": \"\" },\r\n { \"text\": 'N\u00FAmero', \"value\": \"##0.00\", \"example\": \"1000.12\" },\r\n { \"text\": 'Porcentaje', \"value\": \"#0.00%\", \"example\": \"12.21%\" },\r\n { \"text\": 'Cient\u00EDfico', \"value\": \"0.00E+00\", \"example\": \"1.01E+5\" },\r\n { \"text\": \"\", \"value\": \"split\", \"example\": \"\" },\r\n { \"text\": 'Contabilidad', \"value\": \"\u00A5(0.00)\", \"example\": \"\u00A5(1200.09)\" },\r\n\r\n\r\n { \"text\": 'Moneda', \"value\": \"\u00A50.00\", \"example\": \"\u00A51200.09\" },\r\n\r\n\r\n { \"text\": \"\", \"value\": \"partir\", \"example\": \"\" },\r\n { \"text\": 'Fecha', \"value\": \"yyyy-MM-dd\", \"example\": \"2017-11-29\" },\r\n { \"text\": 'Hora', \"value\": \"hh:mm AM/PM\", \"example\": \"3:00 PM\" },\r\n { \"text\": 'Hora 24H', \"value\": \"hh:mm\", \"example\": \"15:00\" },\r\n { \"text\": 'Fecha Hora', \"value\": \"yyyy-MM-dd hh:mm AM/PM\", \"example\": \"2017-11-29 3:00 PM\" },\r\n { \"text\": 'Fecha Hora 24 H', \"value\": \"yyyy-MM-dd hh:mm\", \"example\": \"2017-11-29 15:00\" },\r\n { \"text\": \"\", \"value\": \"partir\", \"example\": \"\" },\r\n { \"text\": 'Formatos personalizados', \"value\": \"fmtOtherSelf\", \"example\": \"m\u00E1s\" }\r\n ],\r\n dateFmtList:[\r\n {\r\n \"name\": \"1930-08-05\",\r\n \"value\": \"yyyy-MM-dd\"\r\n },\r\n {\r\n \"name\": \"1930/8/5\",\r\n \"value\": \"yyyy/MM/dd\"\r\n },\r\n {\r\n \"name\": \"08-05\",\r\n \"value\": \"MM-dd\"\r\n },\r\n {\r\n \"name\": \"8-5\",\r\n \"value\": \"M-d\"\r\n },\r\n {\r\n \"name\": \"13:30:30\",\r\n \"value\": \"h:mm:ss\"\r\n },\r\n {\r\n \"name\": \"13:30\",\r\n \"value\": \"h:mm\"\r\n },\r\n {\r\n \"name\": \"PM 01:30\",\r\n \"value\": 'AM/PM hh:mm'\r\n },\r\n {\r\n \"name\": \"PM 1:30\",\r\n \"value\": 'AM/PM h:mm'\r\n },\r\n {\r\n \"name\": \"PM 1:30:30\",\r\n \"value\": 'AM/PM h:mm:ss'\r\n },\r\n {\r\n \"name\": \"08-05 PM 01:30\",\r\n \"value\": \"MM-dd AM/PM hh:mm\"\r\n }\r\n ],\r\n fontFamily:{\r\n MicrosoftYaHei:\"YaHei\",\r\n },\r\n fontarray: [\"Times New Roman\",\"Arial\",\"Tahoma\",\"Verdana\"],\r\n fontjson: {\"times new roman\":0,\"arial\":1,\"tahoma\":2,\"verdana\":3},\r\n border:{\r\n borderTop:'borderTop',\r\n borderBottom:'borderBottom',\r\n borderLeft:'borderLeft',\r\n borderRight:'borderRight',\r\n borderNone:'borderNone',\r\n borderAll:'borderAll',\r\n borderOutside:'borderOutside',\r\n borderInside:'borderInside',\r\n borderHorizontal:'borderHorizontal',\r\n borderVertical:'borderVertical',\r\n borderColor:'borderColor',\r\n borderSize:'borderSize',\r\n },\r\n merge:{\r\n mergeAll:\"Unir todo\",\r\n mergeV:\"Verticalmente\",\r\n mergeH:\"Horizontalmente\",\r\n mergeCancel:\"Separar\",\r\n overlappingError:\"No se pueden fusionar \u00E1reas superpuestas\",\r\n partiallyError:\"No se puede realizar esta operaci\u00F3n en celdas parcialmente unidas\",\r\n },\r\n align:{\r\n left:\"izquierda\",\r\n center:\"centro\",\r\n right:\"derecha\",\r\n\r\n top:\"Arriba\",\r\n middle:\"Centro\",\r\n bottom:\"Abajo\",\r\n },\r\n textWrap:{\r\n \"overflow\":\"Desbordar\",\r\n \"wrap\":\"Ajustar\",\r\n \"clip\":\"Cortar\",\r\n },\r\n rotation:{\r\n \"none\":\"Ninguno\",\r\n \"angleup\":\"Ladear Arriba\",\r\n \"angledown\":\"Ladear Abajo\",\r\n \"vertical\":\"Apilar Verticalmente\",\r\n \"rotationUp\":\"Rotar Arriba\",\r\n \"rotationDown\":\"Rotar Abajo\"\r\n },\r\n freezen:{\r\n default:\"Fijar\",\r\n freezenRow:\"Primera Fila\",\r\n freezenColumn:\"Primera Columna\",\r\n freezenRC:\"Ambas\",\r\n freezenRowRange:\"Fijar rango filas\",\r\n freezenColumnRange:\"Fijar rango columnas\",\r\n freezenRCRange:\"Fijar ambos rangos\",\r\n freezenCancel:\"Cancelar\",\r\n\r\n noSeletionError:\"No hay rango para seleccionar\",\r\n rangeRCOverErrorTitle: \"Recordatorio de congelaci\u00F3n\",\r\n rangeRCOverError: \"El panel de congelaci\u00F3n excede el rango visible y puede causar que no funcione correctamente. Reinicie el \u00E1rea de congelaci\u00F3n.\"\r\n },\r\n sort:{\r\n \"asc\":\"Ascendente \",\r\n \"desc\":\"Descendente \",\r\n \"custom\":\"Ordenaci\u00F3n personalizada\",\r\n\r\n \"hasTitle\":\"Los datos tienen una fila de encabezado\",\r\n \"sortBy\":\"Ordenar por\",\r\n \"addOthers\":\"A\u00F1adir otra columna de ordenaci\u00F3n\",\r\n \"close\":\"cerrar\",\r\n \"confirm\":\"ordenar\",\r\n\r\n \"columnOperation\":\"Columna\",\r\n \"secondaryTitle\":\"y despu\u00E9s por\",\r\n\r\n \"sortTitle\":\"Ordenar rango\",\r\n\r\n \"sortRangeTitle\":\"Ordenar rango de\",\r\n \"sortRangeTitleTo\":\"a\",\r\n\r\n\r\n \"noRangeError\":\"No se puede realizar esta operaci\u00F3n en m\u00FAltiples \u00E1reas de selecci\u00F3n, selecciona un solo rango e intenta nuevamente\",\r\n \"mergeError\":\"Hay celdas combinadas en la selecci\u00F3n, \u00A1esta operaci\u00F3n no se puede realizar!\",\r\n \"columnSortMergeError\":\"La ordenaci\u00F3n de las columnas se extiende a toda la selecci\u00F3n de la tabla. Esta operaci\u00F3n no puede realizarse si hay celdas fusionadas. Utilice la funci\u00F3n de clasificaci\u00F3n de la barra de herramientas.\",\r\n },\r\n filter:{\r\n filter:\"crear filtro\",\r\n\r\n sortByAsc:\"Ordenar A-Z\",\r\n sortByDesc:\"Ordenar Z-A\",\r\n filterByColor:\"Filtrar por color\",\r\n filterByCondition:\"Filtrar por condici\u00F3n\",\r\n filterByValues:\"Filtrar por valores\",\r\n\r\n filiterInputNone:\"Ninguno\",\r\n\r\n filiterInputTip:\"Introduce valor de filtro\",\r\n filiterRangeStart:\"\",\r\n filiterRangeStartTip:\"Valor para f\u00F3rmula\",\r\n filiterRangeEnd:\"e\",\r\n filiterRangeEndTip:\"Valor para f\u00F3rmula\",\r\n\r\n filterValueByAllBtn:\"Seleccionar todos\",\r\n filterValueByClearBtn:\"Limpiar\",\r\n filterValueByInverseBtn:\"Invertir\",\r\n filterValueByTip:\"filtrar por valores\",\r\n filterConform:\"Confirmar\",\r\n filterCancel:\"Cancelar\",\r\n clearFilter:\"Quitar filtro\",\r\n\r\n conditionNone:\"Ninguno\",\r\n conditionCellIsNull: \"Est\u00E1 vac\u00EDo\",\r\n conditionCellNotNull: \"No est\u00E1 vac\u00EDo\",\r\n conditionCellTextContain: \"El texto contiene\",\r\n conditionCellTextNotContain: \"El texto no contiene\",\r\n conditionCellTextStart: \"El texto empieza con\",\r\n conditionCellTextEnd: \"El texto termina con\",\r\n conditionCellTextEqual: \"El texto es exactamente\",\r\n conditionCellDateEqual: \"La fecha es\",\r\n conditionCellDateBefore: \"La fecha es anterior\",\r\n conditionCellDateAfter: \"La fecha es posterior\",\r\n conditionCellGreater: \"Mayor que\",\r\n conditionCellGreaterEqual: \"Mayor o igual que\",\r\n conditionCellLess: \"Menor que\",\r\n conditionCellLessEqual: \"Menor o igual que\",\r\n conditionCellEqual: \"Es igual a\",\r\n conditionCellNotEqual: \"No es igual a\",\r\n conditionCellBetween: \"Est\u00E1 entre\",\r\n conditionCellNotBetween: \"No est\u00E1 entre\",\r\n\r\n filiterMoreDataTip:\"\u00A1Gran cantidad de datos! por favor espera\",\r\n filiterMonthText:\"Mes\",\r\n filiterYearText:\"A\u00F1o\",\r\n filiterByColorTip:\"Filtrar por color de celda\",\r\n filiterByTextColorTip:\"Filtrar por color de fuente\",\r\n filterContainerOneColorTip:\"Esta columna contiene solo un color\",\r\n filterDateFormatTip:\"Format fecha\",\r\n\r\n valueBlank:\"(Nulo)\",\r\n mergeError:\"Hay celdas combinadas en la selecci\u00F3n del filtro, \u00A1esta operaci\u00F3n no se puede realizar!\",\r\n },\r\n rightclick: {\r\n copy: 'Copiar',\r\n copyAs: 'Copiar como',\r\n paste: 'Pegar',\r\n insert: 'Insertar',\r\n delete: 'Eliminar',\r\n deleteCell: 'Eliminar celda',\r\n deleteSelected: 'Eliminar seleccionado ',\r\n hide: 'Esconder',\r\n hideSelected: 'Esconder seleccionado ',\r\n showHide: 'Mostrar ocultos ',\r\n to: 'Hacia',\r\n left: 'Izquierda',\r\n right: 'Derecha',\r\n top: 'Arriba',\r\n bottom: 'Abajo',\r\n moveLeft: 'Mover izquierda',\r\n moveUp: 'Mover arriba',\r\n add: 'A\u00F1adir',\r\n row: 'Fila',\r\n column: 'Columna',\r\n width: 'Ancho',\r\n height: 'Alto',\r\n number: 'N\u00FAmero',\r\n confirm: 'Confirmar',\r\n orderAZ: 'Ordenar A-Z',\r\n orderZA: 'Ordenar Z-A',\r\n clearContent: 'Limpiar contenido',\r\n matrix: 'Operaci\u00F3n de Matriz',\r\n sortSelection: 'Ordenar',\r\n filterSelection: 'Filtrar',\r\n chartGeneration: 'Crear gr\u00E1fico',\r\n firstLineTitle: 't\u00EDtulo primera l\u00EDnea',\r\n untitled: 'sin t\u00EDtulo',\r\n array1: 'Matriz unidimensional',\r\n array2: 'Matriz bidimensional',\r\n array3: 'Matrices multidimensionales',\r\n diagonal: 'Diagonal',\r\n antiDiagonal: 'Anti-diagonal',\r\n diagonalOffset: 'Desplazamiento Diagonal',\r\n offset: 'Desplazamiento',\r\n boolean: 'Booleana',\r\n flip: 'Voltear',\r\n upAndDown: 'Arriba y abajo',\r\n leftAndRight: 'Izquierda y derecha',\r\n clockwise: 'Sentido horario',\r\n counterclockwise: 'Sentido anti-horario',\r\n transpose: 'Transponer',\r\n matrixCalculation: 'C\u00E1lculo de matrices',\r\n plus: 'Suma',\r\n minus: 'Resta',\r\n multiply: 'Multiplicaci\u00F3n',\r\n divided: 'Divisi\u00F3n',\r\n power: 'Exponenciaci\u00F3n',\r\n root: 'Ra\u00EDz Cuadrada',\r\n log: 'Logaritmo',\r\n delete0: 'Eliminar valores nulos en ambos extremos',\r\n removeDuplicate: 'Eliminar valores duplicados',\r\n byRow: 'Por fila',\r\n byCol: 'Por columna',\r\n generateNewMatrix: 'Generar nueva matriz',\r\n\r\n },\r\n comment:{\r\n \"insert\":\"Insertar\",\r\n \"edit\":\"Editar\",\r\n \"delete\":\"Elimiar\",\r\n \"showOne\":\"Mostrar/Ocular\",\r\n \"showAll\":\"Mostrar/Ocular Todo\"\r\n },\r\n screenshot:{\r\n screenshotTipNoSelection:\"Selecciona el alcance de la captura de pantalla\",\r\n screenshotTipTitle:\"\u00A1Advertencia!\",\r\n screenshotTipHasMerge:\"Esta operaci\u00F3n no se puede realizar en celdas combinadas\",\r\n screenshotTipHasMulti:\"Esta operaci\u00F3n no se puede realizar en varios rangos de selecci\u00F3n\",\r\n screenshotTipSuccess:\"Exitoso\",\r\n screenshotImageName:\"Captura de pantalla\",\r\n\r\n downLoadClose:\"Cerrar\",\r\n downLoadCopy:\"Copiar al portapapeles\",\r\n downLoadBtn:\"Descargar\",\r\n browserNotTip:\"no es compatible con el navegador IE.\",\r\n rightclickTip:\"Haz clic con el bot\u00F3n derecho en la imagen y selecciona \\\"copiar\\\"\",\r\n successTip:\"Con \u00E9xito (si falla el pegado, haz clic con el bot\u00F3n derecho en la imagen para \\\"copiar imagen\\\")\",\r\n },\r\n splitText:{\r\n splitDelimiters:\"Delimitadores\",\r\n splitOther:\"Otros\",\r\n splitContinueSymbol:\"Los separadores consecutivos se tratan como uno solo\",\r\n splitDataPreview:\"Previsualizar\",\r\n splitTextTitle:\"Partir texto\",\r\n splitConfirmToExe:\"Ya hay datos aqu\u00ED, \u00BFquieres reemplazarlos?\",\r\n\r\n tipNoMulti: \"No se puede realizar esta operaci\u00F3n en varias \u00E1reas de selecci\u00F3n, selecciona una \u00FAnica \u00E1rea y vuelve a intentarlo\",\r\n tipNoMultiColumn: \"Solo se puede convertir una columna de datos a la vez. El \u00E1rea seleccionado puede tener varias filas, pero no varias columnas. Vuelve a intentarlo despu\u00E9s de seleccionar un solo rango de columnas\",\r\n },\r\n imageText:{\r\n imageSetting: 'Configuraci\u00F3n de imagen',\r\n close: 'Cerrar',\r\n conventional: 'Convencional',\r\n moveCell1: 'Mover y cambiar el tama\u00F1o de las celdas',\r\n moveCell2: 'Mover y no cambiar el tama\u00F1o de la celda',\r\n moveCell3: 'No mover ni cambiar el tama\u00F1o de la celda',\r\n fixedPos: 'Posici\u00F3n fija',\r\n border: 'Borde',\r\n width: 'Ancho',\r\n radius: 'Radio',\r\n style: 'Estilo',\r\n solid: 'S\u00F3lido',\r\n dashed: 'Discontinua',\r\n dotted: 'Punteado',\r\n double: 'Doble',\r\n color: 'Color',\r\n },\r\n punctuation:{\r\n \"tab\":\"Tabulaci\u00F3n\",\r\n \"semicolon\":\"punto y coma\",\r\n \"comma\":\"coma\",\r\n \"space\":\"espacio\",\r\n\r\n },\r\n findAndReplace:{\r\n find:\"Encontrar\",\r\n replace:\"Reemplazar\",\r\n goto:\"Ir a\",\r\n location:\"Ubicaci\u00F3n\",\r\n formula:\"F\u00F3rmula\",\r\n date:\"Fecha\",\r\n number:\"N\u00FAmero\",\r\n string:\"Texto\",\r\n error:\"Error\",\r\n condition:\"Condici\u00F3n\",\r\n rowSpan:\"Intervalo de filas\",\r\n columnSpan:\"Intervalo de columnas\",\r\n locationExample:\"Ubicaci\u00F3n\",\r\n lessTwoRowTip:\"Selecciona al menos dos filas\",\r\n lessTwoColumnTip:\"Selecciona al menos dos columnas\",\r\n\r\n findTextbox:\"Encontrar Contenido\",\r\n replaceTextbox:\"Reemplazar Contenido\",\r\n\r\n regexTextbox:\"Expresi\u00F3n Regular\",\r\n wholeTextbox:\"Palabra entera\",\r\n distinguishTextbox:\"Distingue may\u00FAsculas y min\u00FAsculas\",\r\n\r\n allReplaceBtn:\"Reemplazar Todo\",\r\n replaceBtn:\"Reemplazar\",\r\n allFindBtn:\"Encontrar Todo\",\r\n findBtn:\"Encontrar siguiente\",\r\n\r\n noFindTip:\"No se encontr\u00F3 el contenido\",\r\n modeTip:\"Esta operaci\u00F3n no est\u00E1 disponible en este modo\",\r\n\r\n searchTargetSheet:\"Hoja\",\r\n searchTargetCell:\"Celda\",\r\n searchTargetValue:\"Valor\",\r\n\r\n searchInputTip:\"Introduce el contenido de la b\u00FAsqueda\",\r\n\r\n noReplceTip:\"No hay nada que reemplazar\",\r\n noMatchTip:\"No se encontraron coincidencias\",\r\n\r\n successTip:\"${xlength} elementos encontrados\",\r\n\r\n locationConstant:\"Constante\",\r\n locationFormula:\"F\u00F3rmula\",\r\n locationDate:\"Fecha\",\r\n locationDigital:\"N\u00FAmero\",\r\n locationString:\"Texto\",\r\n locationBool:\"L\u00F3gicos\",\r\n locationError:\"Error\",\r\n locationNull:\"Nulo\",\r\n locationCondition:\"Formato condicional\",\r\n locationRowSpan:\"Intervalo fila\",\r\n locationColumnSpan:\"Intervalo columna\",\r\n\r\n locationTiplessTwoRow:\"Selecciona al menos dos filas\",\r\n locationTiplessTwoColumn:\"Selecciona al menos dos columnas\",\r\n locationTipNotFindCell:\"Celda no encontrada\"\r\n },\r\n sheetconfig: {\r\n delete: 'Eliminar',\r\n copy: 'Copiar',\r\n rename: 'Renombrar',\r\n changeColor: 'Cambiar color',\r\n hide: 'Ocultar',\r\n unhide: 'Mostrar',\r\n moveLeft: 'Mover izquierda',\r\n moveRight: 'Mover derecja',\r\n resetColor: 'Reiniciar color',\r\n cancelText: 'Cancelar',\r\n chooseText: 'Confirmar color',\r\n\r\n tipNameRepeat:\"\u00A1El nombre de la p\u00E1gina de la pesta\u00F1a no se puede repetir! Rev\u00EDsalo\",\r\n noMoreSheet:\"El libro de trabajo contiene al menos una hoja de trabajo visual. Para eliminar la hoja de trabajo seleccionada, inserta una nueva hoja de trabajo o muestra una hoja de trabajo oculta\",\r\n confirmDelete:\"\u00BFEst\u00E1s seguro de eliminar\",\r\n redoDelete:\"Se puede deshacer con Ctrl+Z\",\r\n noHide:\"No se puede ocultar, al menos conserva una etiqueta de hoja\",\r\n chartEditNoOpt:\"\u00A1Esta operaci\u00F3n no est\u00E1 permitida en el modo de edici\u00F3n de gr\u00E1ficos!\",\r\n sheetNameSpecCharError:\"El nombre no puede contener:[ ] : \\ ? * / ' \\\"\",\r\n sheetNamecannotIsEmptyError:\"El nombre de la hoja no puede estar vac\u00EDo\"\r\n },\r\n conditionformat: {\r\n conditionformat_greaterThan: 'Conditionformat-GreaterThan',\r\n conditionformat_greaterThan_title: 'Dar formato a celdas mayores que',\r\n conditionformat_lessThan: 'Conditionformat-LessThan',\r\n conditionformat_lessThan_title: 'Dar formato a celdas m\u00E1s peque\u00F1as que',\r\n conditionformat_betweenness: 'Conditionformat-Betweenness',\r\n conditionformat_betweenness_title: 'Dar formato a celdas con valores entre',\r\n conditionformat_equal: 'Conditionformat-Equal',\r\n conditionformat_equal_title: 'Dar formato a celdas iguales a',\r\n conditionformat_textContains: 'Conditionformat-TextContains',\r\n conditionformat_textContains_title: 'Dar formato a las celdas que contienen el siguiente texto',\r\n conditionformat_occurrenceDate: 'Conditionformat-OccurrenceDate',\r\n conditionformat_occurrenceDate_title: 'Dar formato a celdas que contienen las siguientes fechas',\r\n conditionformat_duplicateValue: 'Conditionformat-DuplicateValue',\r\n conditionformat_duplicateValue_title: 'Dar formato a celdas que contienen los siguientes tipos de valores',\r\n conditionformat_top10: 'Conditionformat-Top10',\r\n conditionformat_top10_percent: 'Conditionformat-Top10%',\r\n conditionformat_top10_title: 'Formatea las celdas con el valor m\u00E1s alto',\r\n conditionformat_last10: 'Conditionformat-Last10',\r\n conditionformat_last10_percent: 'Conditionformat-Last10%',\r\n conditionformat_last10_title: 'Formatea las celdas con el valor m\u00E1s peque\u00F1o',\r\n conditionformat_AboveAverage: 'Conditionformat-AboveAverage',\r\n conditionformat_AboveAverage_title: 'Dar formato a celdas por encima del promedio',\r\n conditionformat_SubAverage: 'Conditionformat-SubAverage',\r\n conditionformat_SubAverage_title: 'Dar formato a celdas por debajo del promedio',\r\n rule: 'Regla',\r\n newRule: 'Nueva regla',\r\n editRule: 'Editar regla',\r\n deleteRule: 'Eliminar regla',\r\n deleteCellRule: 'Eliminar regla de celda',\r\n deleteSheetRule: 'Eliminar regla de hoja',\r\n manageRules: 'Reglas administraci\u00F3n',\r\n showRules: 'Muestra sus reglas de formato',\r\n highlightCellRules: 'Resaltar reglas de celda',\r\n itemSelectionRules: 'Reglas de selecci\u00F3n de elementos',\r\n conditionformatManageRules: 'Administrador de reglas de formato condicional',\r\n format: 'Formatear',\r\n setFormat: 'Establecer formato',\r\n setAs: 'Establecer como',\r\n setAsByArea: 'Para el \u00E1rea seleccionada, establecer',\r\n applyRange: 'Aplicar rango',\r\n selectRange: 'Seleccionar rango de aplicaci\u00F3n',\r\n selectRange_percent: 'Porcentaje del rango seleccionado',\r\n selectRange_average: 'Valor promedio del rango seleccionado',\r\n selectRange_value: 'Valor en el rango seleccionado',\r\n pleaseSelectRange: 'Selecciona el rango de aplicaci\u00F3n',\r\n selectDataRange: 'Seleccionar rango de datos',\r\n selectCell: 'seleccionar celda',\r\n pleaseSelectCell: 'Selecciona una celda',\r\n pleaseSelectADate: 'Selecciona una fecha',\r\n pleaseEnterInteger: 'Introduzca un n\u00FAmero entero entre 1 y 1000',\r\n onlySingleCell: 'Solo se puede hacer referencia a una sola celda',\r\n conditionValueCanOnly: 'El valor de la condici\u00F3n solo puede ser un n\u00FAmero o una sola celda',\r\n ruleTypeItem1: 'Aplicar formato a todas las celdas seg\u00FAn sus valores respectivos',\r\n ruleTypeItem2: 'Solo formatear celdas que contengan',\r\n ruleTypeItem2_title: 'Solo para celdas que cumplan las siguientes condiciones',\r\n ruleTypeItem3: 'Aplicar formato solo a los n\u00FAmeros superiores o inferiores',\r\n ruleTypeItem3_title: 'Es el valor en la siguiente clasificaci\u00F3n',\r\n ruleTypeItem4: 'Aplicar formato solo a los valores superiores o inferiores al promedio',\r\n ruleTypeItem4_title: 'Es un valor que cumple las siguientes condiciones',\r\n ruleTypeItem5: 'Aplicar formato solo a valores \u00FAnicos o repetidos',\r\n ruleTypeItem6: 'Use f\u00F3rmulas para determinar qu\u00E9 celdas formatear',\r\n formula: 'f\u00F3rmula',\r\n textColor: 'Color Texto',\r\n cellColor: 'Color Celda',\r\n confirm: 'Confirma',\r\n confirmColor: 'Confirma color',\r\n cancel: 'Cancela',\r\n close: 'Cierra',\r\n clearColorSelect: 'Limpiar selecci\u00F3n de color',\r\n sheet: 'Hoja',\r\n currentSheet: 'Hoja actual',\r\n dataBar: 'Barra de datos',\r\n dataBarColor: 'Color barra de datos',\r\n gradientDataBar_1: 'Barra de datos de degradado azul-blanco',\r\n gradientDataBar_2: 'Barra de datos de degradado verde-blanco',\r\n gradientDataBar_3: 'Barra de datos de degradado rojo-blanco',\r\n gradientDataBar_4: 'Rayas de degradado de color naranja-blanco',\r\n gradientDataBar_5: 'Rayas de degradado azul claro-blancas',\r\n gradientDataBar_6: 'Barra de datos de degradado p\u00FArpura-blanco',\r\n solidColorDataBar_1: 'Barra de datos azul',\r\n solidColorDataBar_2: 'Barra de datos verde',\r\n solidColorDataBar_3: 'Barra de datos roja',\r\n solidColorDataBar_4: 'Barra de datos naranja',\r\n solidColorDataBar_5: 'Barra de datos azul claro',\r\n solidColorDataBar_6: 'Barra de datos p\u00FArpura',\r\n colorGradation: 'Degradado de color',\r\n colorGradation_1: 'Gradaci\u00F3n de color verde-amarillo-rojo',\r\n colorGradation_2: 'Gradaci\u00F3n de color rojo-amarillo-verde',\r\n colorGradation_3: 'Gradaci\u00F3n de color verde-blanco-rojo',\r\n colorGradation_4: 'Gradaci\u00F3n de color rojo-blanco-verde',\r\n colorGradation_5: 'Gradaci\u00F3n de color azul-blanco-rojo',\r\n colorGradation_6: 'Gradaci\u00F3n de color rojo-blanco-azul',\r\n colorGradation_7: 'Gradaci\u00F3n de color blanco-rojo',\r\n colorGradation_8: 'Gradaci\u00F3n de color rojo-blanco',\r\n colorGradation_9: 'Gradaci\u00F3n de color verde-blanco',\r\n colorGradation_10: 'Gradaci\u00F3n de color blanco-verde',\r\n colorGradation_11: 'Gradaci\u00F3n de color verde-amarillo',\r\n colorGradation_12: 'Gradaci\u00F3n de color amarillo-verde',\r\n icons: 'iconos',\r\n pleaseSelectIcon: 'Haz clic para seleccionar un grupo de iconos:',\r\n cellValue: 'Valor de celda',\r\n specificText: 'Texto espec\u00EDfico',\r\n occurrence: 'Fecha',\r\n greaterThan: 'Mayor que',\r\n lessThan: 'Menor que',\r\n between: 'Entre',\r\n equal: 'Igual',\r\n in: 'En',\r\n between2: '',\r\n contain: 'Contiene',\r\n textContains: 'Texto contiene',\r\n duplicateValue: 'Valor duplicado',\r\n uniqueValue: 'Valor Unico',\r\n top: 'Mejor',\r\n top10: '10 mejores',\r\n top10_percent: '10% mejores',\r\n last: 'Ultimo',\r\n last10: 'Ultimos 10',\r\n last10_percent: 'Ultimos 10%',\r\n oneself: '',\r\n above: 'Encima',\r\n aboveAverage: 'Encima media',\r\n below: 'Debajo',\r\n belowAverage: 'Debajo media',\r\n all: 'Todos',\r\n yesterday: 'A\u00F1o a fecha',\r\n today: 'Hoy',\r\n tomorrow: 'Ma\u00F1ana',\r\n lastWeek: 'Ultima semana',\r\n thisWeek: 'Esta semana',\r\n lastMonth: 'Ultimo mes',\r\n thisMonth: 'Este mes',\r\n lastYear: 'Ultimo a\u00F1o',\r\n thisYear: 'Este a\u00F1o',\r\n last7days: 'Ultimos 7 d\u00EDas',\r\n last30days: 'Ultimos 30 d\u00EDas',\r\n next7days: 'Siguientes 7 d\u00EDas',\r\n next30days: 'Siguientes 30 d\u00EDas',\r\n next60days: 'Siguientes 60 d\u00EDas',\r\n chooseRuleType: 'Elige el tipo de regla',\r\n editRuleDescription: 'Editar descripci\u00F3n de regla',\r\n newFormatRule: 'Nueva regla de formato',\r\n editFormatRule: 'Editar regla de formato',\r\n formatStyle: 'Estilo',\r\n fillType: 'Rellenar',\r\n color: 'Color',\r\n twocolor: 'Dos colores',\r\n tricolor: 'Tricolor',\r\n multicolor: 'Multi color',\r\n grayColor: 'Color gris',\r\n gradient: 'Gradiente',\r\n solid: 'S\u00F3lido',\r\n maxValue: 'Valor m\u00E1ximo',\r\n medianValue: 'Valor mediano',\r\n minValue: 'Valor m\u00EDnimo',\r\n direction: 'Direcci\u00F3n',\r\n threeWayArrow: 'Flecha de tres direcciones',\r\n fourWayArrow: 'Flecha de cuatro direcciones',\r\n fiveWayArrow: 'Flecha de cinco direcciones',\r\n threeTriangles: 'Tres tri\u00E1ngulos',\r\n shape: 'Forma',\r\n threeColorTrafficLight: 'Sem\u00E1foro de tres colores',\r\n fourColorTrafficLight: 'Sem\u00E1foro de cuatro colores',\r\n threeSigns: 'Tres signos',\r\n greenRedBlackGradient: 'Gradiente verde-rojo-negro',\r\n rimless: 'Sin aros',\r\n bordered: 'Bordeado',\r\n mark: 'Marcar',\r\n threeSymbols: 'Tres s\u00EDmbolos',\r\n tricolorFlag: 'Bandera tricolor',\r\n circled: 'Rodeado',\r\n noCircle: 'Sin c\u00EDrculo',\r\n grade: 'Grado',\r\n grade4: '4 Grado',\r\n grade5: '5 Grado',\r\n threeStars: '3 Estrellas',\r\n fiveQuadrantDiagram: 'Diagrama de cinco cuadrantes',\r\n fiveBoxes: '5 Cajas',\r\n },\r\n dataVerification: {\r\n cellRange: 'Rango celdas',\r\n selectCellRange: 'Haz clic para seleccionar un rango de celdas',\r\n selectCellRange2: 'Selecciona un rango de celdas',\r\n verificationCondition: 'Condici\u00F3n de verificaci\u00F3n',\r\n allowMultiSelect: \"Permitir selecci\u00F3n m\u00FAltiple\",\r\n dropdown: 'lista desplegable',\r\n checkbox: 'Casilla de verificaci\u00F3n',\r\n number: 'N\u00FAmero',\r\n number_integer: 'N\u00FAmero entero',\r\n number_decimal: 'N\u00FAmero decimal',\r\n text_content: 'Contenido texto',\r\n text_length: 'Longitud texto',\r\n date: 'Fecha',\r\n validity: 'Eficacia',\r\n placeholder1: 'Introduce las opciones, separadas por comas, como 1,2,3,4,5',\r\n placeholder2: 'Introduce contenido',\r\n placeholder3: 'Valor num\u00E9rico, como 10',\r\n placeholder4: 'Introduce el texto especificado',\r\n placeholder5: 'Introduce el mensaje que se muestra cuando se selecciona la celda',\r\n selected: 'Seleccionado',\r\n notSelected: 'No seleccionado',\r\n between: 'Entre',\r\n notBetween: 'No entre',\r\n equal: 'Iqual',\r\n notEqualTo: 'No iqual a',\r\n moreThanThe: 'M\u00E1s que el',\r\n lessThan: 'Menos que',\r\n greaterOrEqualTo: 'Mayor o igual a',\r\n lessThanOrEqualTo: 'Menor o igual a',\r\n include: 'Incluir',\r\n exclude: 'Excluir',\r\n earlierThan: 'Antes de',\r\n noEarlierThan: 'No antes de',\r\n laterThan: 'Despu\u00E9s de',\r\n noLaterThan: 'No despu\u00E9s de',\r\n identificationNumber: 'N\u00FAmero de identificaci\u00F3n',\r\n phoneNumber: 'N\u00FAmero de tel\u00E9fono',\r\n remote: 'Opci\u00F3n de adquisici\u00F3n remota autom\u00E1tica',\r\n prohibitInput: 'Prohibir la entrada cuando los datos de entrada no son v\u00E1lidos',\r\n hintShow: 'Mostrar mensaje cuando se selecciona la celda',\r\n deleteVerification: 'Eliminar verificaci\u00F3n',\r\n tooltipInfo1: 'La opci\u00F3n de la lista desplegable no puede estar vac\u00EDa',\r\n tooltipInfo2: 'El contenido de la casilla de verificaci\u00F3n no puede estar vac\u00EDo',\r\n tooltipInfo3: 'El valor ingresado no es un tipo num\u00E9rico',\r\n tooltipInfo4: 'El segundo valor no puede ser menor que el primero',\r\n tooltipInfo5: 'El contenido del texto no puede estar vac\u00EDo',\r\n tooltipInfo6: 'El valor ingresado no es una fecha',\r\n tooltipInfo7: 'La segunda fecha no puede ser menor que la primera',\r\n textlengthInteger: 'La longitud del texto debe ser un entero mayor o igual a 0',\r\n },\r\n formula:{\r\n sum:\"Suma\",\r\n average:\"Media\",\r\n count:\"Contar\",\r\n max:\"M\u00E1x\",\r\n min:\"M\u00EDn\",\r\n ifGenerate:\"Generador de f\u00F3rmula SI\",\r\n find:\"Aprender m\u00E1s\",\r\n\r\n tipNotBelongToIf: \"\u00A1Esta funci\u00F3n de celda no pertenece a la f\u00F3rmula SI!\",\r\n tipSelectCell: \"Selecciona la celda para insertar la funci\u00F3n\",\r\n\r\n ifGenCompareValueTitle:\"Valor de comparaci\u00F3n\",\r\n ifGenSelectCellTitle:\"Haz click para seleccionar una celda\",\r\n ifGenRangeTitle:\"Rango\",\r\n ifGenRangeTo:\"a\",\r\n ifGenRangeEvaluate:\"Evaluar rango\",\r\n ifGenSelectRangeTitle:\"Haz click para seleccionar rango\",\r\n ifGenCutWay:\"Forma particionado\",\r\n ifGenCutSame:\"Mismo valor de particionado\",\r\n ifGenCutNpiece:\"Particionar por N\",\r\n ifGenCutCustom:\"Personalizado\",\r\n ifGenCutConfirm:\"Confirma\",\r\n\r\n ifGenTipSelectCell:\"Selecciona celdas\",\r\n ifGenTipSelectCellPlace:\"Por favor selecciona celdas\",\r\n\r\n ifGenTipSelectRange:\"Selecciona rango\",\r\n ifGenTipSelectRangePlace:\"Por favor selecciona rango\",\r\n\r\n ifGenTipNotNullValue:\"El valor de comparaci\u00F3n no puede ser vac\u00EDo!\",\r\n ifGenTipLableTitile:\"Etiqueta\",\r\n ifGenTipRangeNotforNull:\"El rango no puede quedar vac\u00EDo!\",\r\n ifGenTipCutValueNotforNull:\"El valor de partici\u00F3n no puede ser vac\u00EDo!\",\r\n ifGenTipNotGenCondition:\"No hay condiciones disponibles para la generaci\u00F3n!\",\r\n },\r\n formulaMore:{\r\n valueTitle:\"Valor\",\r\n tipSelectDataRange:\"Selecciona rango de datos\",\r\n tipDataRangeTile:\"Rango de datos\",\r\n findFunctionTitle:\"Funci\u00F3n de b\u00FAsqueda\",\r\n tipInputFunctionName:\"Nombre o breve descripci\u00F3n de la funci\u00F3n\",\r\n\r\n \"Array\":\"Vector\",\r\n \"Database\":\"Base de datos\",\r\n \"Date\":\"Fecha\",\r\n \"Engineering\":\"Ingenier\u00EDa\",\r\n \"Filter\":\"Filtro\",\r\n \"Financial\":\"Financiero\",\r\n \"luckysheet\":\"Luckysheet\",\r\n \"other\":\"Otro\",\r\n \"Logical\":\"L\u00F3gica\",\r\n \"Lookup\":\"B\u00FAsqueda\",\r\n \"Math\":\"Matem\u00E1tico\",\r\n \"Operator\":\"Operadores\",\r\n \"Parser\":\"Compilador\",\r\n \"Statistical\":\"Estad\u00EDstico\",\r\n \"Text\":\"Texto\",\r\n \"dataMining\":\"Miner\u00EDa de datos\",\r\n\r\n \"selectFunctionTitle\":\"Selecciona una funci\u00F3n\",\r\n \"calculationResult\":\"Resultado\",\r\n\r\n tipSuccessText:\"Exito\",\r\n tipParamErrorText:\"Par\u00E1metro err\u00F3neo\",\r\n\r\n \"helpClose\":\"Cerrar\",\r\n \"helpCollapse\":\"Recoger\",\r\n \"helpExample\":\"Ejemplo\",\r\n \"helpAbstract\":\"Resumen\",\r\n\r\n \"execfunctionError\":'Error en la f\u00F3rmula',\r\n \"execfunctionSelfError\":'La f\u00F3rmula no puede hacer referencia a su propia celda',\r\n \"execfunctionSelfErrorResult\":'La f\u00F3rmula no puede hacer referencia a su propia celda, lo que dar\u00E1 lugar a resultados de c\u00E1lculo inexactos',\r\n\r\n \"allowRepeatText\":\"Repetir\",\r\n \"allowOptionText\":\"Opci\u00F3n\",\r\n\r\n \"selectCategory\":\"O selecciona una categor\u00EDa\",\r\n },\r\n drag:{\r\n noMerge: \"No se puede realizar esta operaci\u00F3n en celdas combinadas\",\r\n afectarPivot: \"\u00A1Este cambio no se puede realizar en la celda seleccionada porque afectar\u00E1 a la tabla din\u00E1mica!\",\r\n noMulti: \"No se puede realizar esta operaci\u00F3n en varias \u00E1reas de selecci\u00F3n, selecciona una sola \u00E1rea\",\r\n noPaste: \"No se puede pegar este contenido aqu\u00ED, selecciona una celda en el \u00E1rea de pegado e intenta pegar nuevamente\",\r\n noPartMerge: \"No se puede realizar esta operaci\u00F3n en celdas parcialmente fusionadas\",\r\n\r\n inputCorrect:\"Introduce el valor correcto\",\r\n notLessOne:\"El n\u00FAmero de filas y columnas no puede ser inferior a 1\",\r\n offsetColumnLessZero:\"\u00A1La columna de desplazamiento no puede ser negativa!\",\r\n\r\n pasteMustKeybordAlert:\"\u5728\u8868\u683C\u4E2D\u8FDB\u884C\u590D\u5236\u7C98\u8D34: Ctrl + C \u8FDB\u884C\u590D\u5236, Ctrl + V \u8FDB\u884C\u7C98\u8D34, Ctrl + X \u8FDB\u884C\u526A\u5207\",\r\n pasteMustKeybordAlertHTMLTitle:\"\u5728\u8868\u683C\u4E2D\u8FDB\u884C\u590D\u5236\u7C98\u8D34\",\r\n pasteMustKeybordAlertHTML:\"Ctrl + C  \u8FDB\u884C\u590D\u5236
Ctrl + V  \u8FDB\u884C\u7C98\u8D34
Ctrl + X  \u8FDB\u884C\u526A\u5207\",\r\n },\r\n paste: {\r\n warning:\"Advertencia\",\r\n errorNotAllowMulti:\"No se puede realizar esta operaci\u00F3n en varias \u00E1reas de selecci\u00F3n, selecciona un solo rango y vuelve a intentarlo\",\r\n errorNotAllowMerged: \"No se pueden realizar cambios parciales en las celdas fusionadas\",\r\n },\r\n pivotTable:{\r\n title:\"Tabla Din\u00E1mica\",\r\n closePannel:\"Cerrar\",\r\n editRange:\"Rango\",\r\n tipPivotFieldSelected:\"Selecciona los campos\",\r\n tipClearSelectedField:\"Limpiar todos los campos\",\r\n btnClearSelectedField:\"Limpiar\",\r\n btnFilter:\"Filtrar\",\r\n titleRow:\"Fila\",\r\n titleColumn:\"Columna\",\r\n titleValue:\"Valor\",\r\n tipShowColumn: \"Los campos de estad\u00EDsticas se muestran como columnas\",\r\n tipShowRow: \"Los campos de estad\u00EDsticas se muestran como filas\",\r\n\r\n titleSelectionDataRange:\"Selecciona rango\",\r\n titleDataRange:\"Rango de datos\",\r\n\r\n valueSum:\"SUMA\",\r\n\r\n valueStatisticsSUM:\"Suma\",\r\n valueStatisticsCOUNT:\"Contar\",\r\n valueStatisticsCOUNTA:\"Contar A\",\r\n valueStatisticsCOUNTUNIQUE:\"Contar Distintos\",\r\n valueStatisticsAVERAGE:\"Media\",\r\n valueStatisticsMAX:\"M\u00E1x\",\r\n valueStatisticsMIN:\"M\u00EDn\",\r\n valueStatisticsMEDIAN:\"Mediana\",\r\n valueStatisticsPRODUCT:\"Producto\",\r\n valueStatisticsSTDEV:\"Desviaci\u00F3n Est\u00E1ndar\",\r\n\r\n valueStatisticsSTDEVP:\"Stdevp\",\r\n valueStatisticslet:\"Varianza\",\r\n valueStatisticsVARP:\"VarP\",\r\n\r\n errorNotAllowEdit: \"\u00A1Esta operaci\u00F3n est\u00E1 prohibida en el modo sin edici\u00F3n!\",\r\n errorNotAllowMulti: \"No se puede realizar esta operaci\u00F3n en varias \u00E1reas de selecci\u00F3n, selecciona un solo rango y vuelve a intentarlo\",\r\n errorSelectRange: \"Seleccione el rango de la nueva tabla din\u00E1mica\",\r\n errorIsDamage: \"\u00A1Los datos de origen de esta tabla din\u00E1mica est\u00E1n da\u00F1ados!\",\r\n errorNotAllowPivotData: \"\u00A1No se puede seleccionar la tabla din\u00E1mica como datos de origen!\",\r\n errorSelectionRange: \"\u00A1La selecci\u00F3n fall\u00F3, rango de entrada incorrecto!\",\r\n errorIncreaseRange: \"\u00A1Por favor, expande el rango seleccionado!\",\r\n\r\n titleAddColumn:\"A\u00F1adir columna a la tabla din\u00E1mica\",\r\n titleMoveColumn:\"Muever la columna a la celda en blanco de abajo\",\r\n titleClearColumnFilter:\"Quitar el filtro de esta columna\",\r\n titleFilterColumn:\"Filtro\",\r\n\r\n titleSort:\"Ordenar\",\r\n titleNoSort:\"No Ordenar\",\r\n titleSortAsc:\"ASC\",\r\n titleSortDesc:\"DESC\",\r\n titleSortBy:\"Ordenar por\",\r\n titleShowSum:\"Mostrar total\",\r\n titleStasticTrue:\"S\u00ED\",\r\n titleStasticFalse:\"No\",\r\n },\r\n dropCell:{\r\n copyCell:\"Copiar\",\r\n sequence:\"Secuencia\",\r\n onlyFormat:\"Solo formato\",\r\n noFormat:\"Sin formato\",\r\n day:\"D\u00EDa\",\r\n workDay:\"D\u00EDa Laborable\",\r\n month:\"Mes\",\r\n year:\"A\u00F1o\",\r\n chineseNumber:\"N\u00FAmeros Chinos\",\r\n },\r\n imageCtrl:{\r\n borderTile:\"Color de borde de imagen\",\r\n borderCur:\"Color\",\r\n },\r\n protection:{\r\n protectiontTitle:\"Protecci\u00F3n\",\r\n enterPassword:\"Introduce una contrase\u00F1a (opcional)\",\r\n enterHintTitle:\"Preguntar cuando la edici\u00F3n est\u00E1 prohibida (opcional)\",\r\n enterHint:\"La celda o el gr\u00E1fico que est\u00E1s intentando cambiar se encuentra en una hoja de trabajo protegida. Si quieres cambiarlo, desprotege la hoja de trabajo. Es posible que tengas que ingresar una contrase\u00F1a\",\r\n swichProtectionTip:\"Protege la hoja y el contenido de las celdas bloqueadas\",\r\n authorityTitle:\"Permitir a los usuarios de esta hoja:\",\r\n selectLockedCells:\"Selecciona celdas bloqueadas\",\r\n selectunLockedCells:\"Selecciona celdas desbloqueadas\",\r\n formatCells:\"Formatear celdas\",\r\n formatColumns:\"Formatear columnas\",\r\n formatRows:\"Formatear filas\",\r\n insertColumns:\"Insertar columnas\",\r\n insertRows:\"Insertar filas\",\r\n insertHyperlinks:\"Insertar enlaces\",\r\n deleteColumns:\"Eliminar columnas\",\r\n deleteRows:\"Eliminar filas\",\r\n sort:\"Ordenar\",\r\n filter:\"Filtrar\",\r\n usePivotTablereports:\"Usar informes de tabla din\u00E1mica\",\r\n editObjects:\"Editar objetos\",\r\n editScenarios:\"Editar escenarios\",\r\n\r\n allowRangeTitle:\"Permitir a los usuarios del rango:\",\r\n allowRangeAdd:\"Nuevo...\",\r\n\r\n allowRangeAddTitle:\"T\u00EDtulo\",\r\n allowRangeAddSqrf:\"Referencia\",\r\n selectCellRange: 'Haz clic para seleccionar un rango de celdas',\r\n selectCellRangeHolder:\"Rango de celdas\",\r\n allowRangeAddTitlePassword:\"Contrase\u00F1a\",\r\n allowRangeAddTitleHint:\"Pregunta\",\r\n allowRangeAddTitleHintTitle:\"Preguntar cuando hay una contrase\u00F1a (opcional)\",\r\n allowRangeAddtitleDefault:\"Nombre del rango de entrada\",\r\n\r\n rangeItemDblclick:\"Haz doble clic para editar\",\r\n rangeItemHasPassword:\"Tiene contrase\u00F1a\",\r\n\r\n rangeItemErrorTitleNull:\"El t\u00EDtulo es nulo\",\r\n rangeItemErrorRangeNull:\"La referencia es nula\",\r\n rangeItemErrorRange:\"La reference tiene un error\",\r\n\r\n validationTitle:\"Validaci\u00F3n de contrase\u00F1a\",\r\n validationTips:\"Hay que ingresar una contrase\u00F1a para desbloquear la protecci\u00F3n de la hoja de trabajo\",\r\n validationInputHint:\"Introduce una contrase\u00F1a\",\r\n\r\n checkPasswordNullalert:\"Contrase\u00F1a requerida!\",\r\n checkPasswordWrongalert:\"\u00A1Contrase\u00F1a incorrecta. Por favor, prueba de nuevo!\",\r\n\r\n checkPasswordSucceedalert:\"Desbloqueo conseguido!\",\r\n defaultRangeHintText:\"La celda est\u00E1 protegida con contrase\u00F1a.\",\r\n defaultSheetHintText:\"La celda o el gr\u00E1fico est\u00E1n en una hoja de trabajo protegida. Para realizar cambios, desprotege la hoja de trabajo. Es posible que tengas que ingresar una contrase\u00F1a\",\r\n },\r\n cellFormat:{\r\n cellFormatTitle:\"Formatear celdas\",\r\n protection:\"Protecci\u00F3n\",\r\n locked:\"Bloqueado\",\r\n hidden:\"Escondido\",\r\n protectionTips:\"Para bloquear celdas u ocultar f\u00F3rmulas, protege la hoja de trabajo. En la barra de herramientas, haz clic en el bot\u00F3n Proteger hoja\",\r\n tipsPart:\"Comprobado parcial\",\r\n tipsAll:\"Todo seleccionado\",\r\n\r\n selectionIsNullAlert:\"Se requiere una selecci\u00F3n!\",\r\n sheetDataIsNullAlert:\"error, no hay datos!\",\r\n\r\n },\r\n print:{\r\n normalBtn:\"Normal\",\r\n layoutBtn:\"Disposici\u00F3n de p\u00E1gina\",\r\n pageBtn:\"Previsualizaci\u00F3n de saltos de p\u00E1gina\",\r\n\r\n menuItemPrint:\"Imprimir (Ctrl+P)\",\r\n menuItemAreas:\"Imprimir \u00E1reas\",\r\n menuItemRows:\"Imprimir t\u00EDtulos de filas\",\r\n menuItemColumns:\"Imprimir t\u00EDtulos de columnas\",\r\n },\r\n edit:{\r\n typing:\"mecanograf\u00EDa\",\r\n },\r\n websocket:{\r\n success: '\u00C9xito de la conexi\u00F3n de WebSocket',\r\n refresh: 'Se produjo un error en la conexi\u00F3n de WebSocket, \u00A1actualice la p\u00E1gina!',\r\n wait: 'Se produjo un error en la conexi\u00F3n de WebSocket, \u00A1tenga paciencia!',\r\n close: 'Conexi\u00F3n WebSocket cerrada',\r\n contact: 'Ocurri\u00F3 un error de comunicaci\u00F3n con el servidor, actualice la p\u00E1gina y vuelva a intentarlo; de lo contrario, comun\u00EDquese con el administrador.',\r\n support: 'El navegador actual no es compatible con WebSocket',\r\n },\r\n exportXlsx:{\r\n notice:'Configure el complemento de exportaci\u00F3n',\r\n serverError:'El servidor est\u00E1 en mantenimiento',\r\n title: \"Exportar XLSX\",\r\n range: \"alcance\",\r\n currentSheet: \"Hoja de trabajo actual\",\r\n allSheets: \"Todas las hojas\",\r\n }\r\n };\r\n", "export default {\r\n functionlist: {\r\n \"SUMIF\": {\r\n \"d\": \"\u5C0D\u7BC4\u570D\u4E2D\u7B26\u5408\u6307\u5B9A\u689D\u4EF6\u7684\u503C\u6C42\u548C\u3002\",\r\n \"a\": \"\u5C0D\u7BC4\u570D\u4E2D\u7B26\u5408\u6307\u5B9A\u689D\u4EF6\u7684\u503C\u6C42\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u6839\u64DA\u689D\u4EF6\u9032\u884C\u6AA2\u6E2C\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF6\",\r\n \"detail\": \"\u8981\u61C9\u7528\u65BC\u7BC4\u570D\u7684\u6A21\u5F0F\u6216\u6E2C\u8A66\u689D\u4EF6\u3002\\n\\n\u5982\u679C\u7BC4\u570D\u5305\u542B\u7684\u662F\u8981\u6AA2\u6E2C\u7684\u6587\u5B57,\u5247\u689D\u4EF6\u5FC5\u9808\u70BA\u5B57\u4E32\u3002\u689D\u4EF6\u53EF\u4EE5\u5305\u542B\u842C\u7528\u5B57\u5143,\u5305\u62EC\u7528\u65BC\u5339\u914D\u55AE\u500B\u5B57\u5143\u7684\uFF1F\u6216\u7528\u65BC\u5339\u914D\u96F6\u500B\u6216\u9023\u7E8C\u591A\u500B\u5B57\u5143\u7684*\u3002\u8981\u5339\u914D\u554F\u865F\u661F\u865F\u672C\u8EAB,\u8ACB\u5728\u8A72\u5B57\u5143\u524D\u9762\u52A0\u4E0A\u6CE2\u6D6A\u865F\uFF08~\uFF09\u9996\u78BC\uFF08\u5373~\uFF1F\u548C~*\uFF09\u3002\u5B57\u4E32\u689D\u4EF6\u5FC5\u9808\u7528\u5F15\u865F\u62EC\u8D77\u4F86\u3002\u51FD\u6578\u6703\u6AA2\u67E5\u7BC4\u570D\u4E2D\u7684\u6BCF\u500B\u5132\u5B58\u683C\u8207\u689D\u4EF6\u662F\u5426\u76F8\u7B49\u6216\u5339\u914D\uFF08\u5982\u679C\u4F7F\u7528\u4E86\u842C\u7528\u5B57\u5143\uFF09\u3002\\n\\n\u5982\u679C\u7BC4\u570D\u5305\u542B\u7684\u662F\u8981\u6AA2\u6E2C\u7684\u6578\u4F4D,\u5247\u689D\u4EF6\u53EF\u4EE5\u662F\u5B57\u4E32\u4E5F\u53EF\u4EE5\u662F\u6578\u4F4D\u3002\u5982\u679C\u7D66\u5B9A\u7684\u689D\u4EF6\u662F\u4E00\u500B\u6578\u4F4D,\u5247\u6AA2\u67E5\u7BC4\u570D\u4E2D\u7684\u6BCF\u500B\u5132\u5B58\u683C\u662F\u5426\u7B49\u65BC\u689D\u4EF6\u3002\u53E6\u5916,\u689D\u4EF6\u4E5F\u53EF\u80FD\u662F\u5305\u542B\u6578\u4F4D\u7684\u5B57\u4E32\uFF08\u4E5F\u5C07\u5C0D\u5176\u9032\u884C\u76F8\u7B49\u6AA2\u6E2C\uFF09,\u6216\u8005\u5E36\u6709\u4EE5\u4E0B\u9996\u78BC\u7684\u6578\u4F4D:=\uFF08\u6AA2\u67E5\u662F\u5426\u76F8\u7B49\uFF09\u3001>\uFF08\u6AA2\u67E5\u7BC4\u570D\u5132\u5B58\u683C\u7684\u503C\u662F\u5426\u5927\u65BC\u689D\u4EF6\u503C\uFF09\u6216<\uFF08\u6AA2\u67E5\u7BC4\u570D\u5132\u5B58\u683C\u7684\u503C\u662F\u5426\u5C0F\u65BC\u689D\u4EF6\u503C\uFF09\"\r\n },\r\n {\r\n \"name\": \"\u6C42\u548C\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u6C42\u548C\u7684\u7BC4\u570D\uFF08\u5982\u679C\u8207\u7BC4\u570D\u4E0D\u540C\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"TAN\": {\r\n \"d\": \"\u8FD4\u56DE\u5DF2\u77E5\u89D2\u5EA6\u7684\u6B63\u5207\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5DF2\u77E5\u89D2\u5EA6\u7684\u6B63\u5207\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u89D2\u5EA6\",\r\n \"detail\": \"\u8981\u6C42\u5176\u6B63\u5207\u503C\u7684\u89D2\u5EA6,\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\"\r\n }\r\n ]\r\n },\r\n \"TANH\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u5BE6\u6578\u7684\u96D9\u66F2\u6B63\u5207\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u5BE6\u6578\u7684\u96D9\u66F2\u6B63\u5207\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u96D9\u66F2\u6B63\u5207\u503C\u7684\u5BE6\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"CEILING\": {\r\n \"d\": \"\u5C07\u6578\u503C\u5411\u4E0A\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u6307\u5B9A\u56E0\u6578\u7684\u500D\u6578\u3002\",\r\n \"a\": \"\u5C07\u6578\u503C\u5411\u4E0A\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u6307\u5B9A\u56E0\u6578\u7684\u500D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5411\u4E0A\u820D\u5165\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u56E0\u6578\",\r\n \"detail\": \"\u8981\u5C07\u503C\u820D\u5165\u5230\u6B64\u6578\u7684\u6574\u6578\u500D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ATAN\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u6B63\u5207\u503C,\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u6B63\u5207\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u53CD\u6B63\u5207\u503C\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ASINH\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u96D9\u66F2\u6B63\u5F26\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u96D9\u66F2\u6B63\u5F26\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u53CD\u96D9\u66F2\u6B63\u5F26\u503C\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ABS\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u7D55\u5C0D\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u7D55\u5C0D\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u7D55\u5C0D\u503C\u7684\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"ACOS\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u4F59\u5F26\u503C,\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u4F59\u5F26\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u53CD\u4F59\u5F26\u503C\u7684\u6578\u503C\u3002\u5FC5\u9808\u4ECB\u65BC-1\u548C1\u4E4B\u9593,\u5305\u62EC\u5169\u7AEF\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ACOSH\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u96D9\u66F2\u4F59\u5F26\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u96D9\u66F2\u4F59\u5F26\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u53CD\u96D9\u66F2\u4F59\u5F26\u503C\u7684\u6578\u503C\u3002\u5FC5\u9808\u5927\u65BC\u7B49\u65BC1\u3002\"\r\n }\r\n ]\r\n },\r\n \"MULTINOMIAL\": {\r\n \"d\": \"\u8FD4\u56DE\u53C3\u6578\u548C\u7684\u968E\u4E58\u9664\u4EE5\u5404\u53C3\u6578\u968E\u4E58\u7684\u4E58\u7A4D\u5F8C\u5F97\u5230\u7684\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u53C3\u6578\u548C\u7684\u968E\u4E58\u9664\u4EE5\u5404\u53C3\u6578\u968E\u4E58\u7684\u4E58\u7A4D\u5F8C\u5F97\u5230\u7684\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u7684\u7B2C\u4E00\u9805\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ATANH\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u96D9\u66F2\u6B63\u5207\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u96D9\u66F2\u6B63\u5207\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u53CD\u96D9\u66F2\u6B63\u5207\u503C\u7684\u6578\u503C\u3002\u5FC5\u9808\u4ECB\u65BC-1\u548C1\u4E4B\u9593\uFF08\u4E0D\u5305\u62EC-1\u548C1\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"ATAN2\": {\r\n \"d\": \"\u4EE5\u5F27\u5EA6\u70BA\u7D44\u7E54\u8FD4\u56DEx\u8EF8\u8207\u5F9E\u539F\u9EDE\uFF080,0\uFF09\u5230\u6307\u5B9A\u5EA7\u6A19\u9EDE\uFF08`x`,`y`\uFF09\u4E4B\u9593\u9023\u7DDA\u7684\u593E\u89D2\u3002\",\r\n \"a\": \"\u4EE5\u5F27\u5EA6\u70BA\u7D44\u7E54\u8FD4\u56DEx\u8EF8\u8207\u5F9E\u539F\u9EDE\uFF080,0\uFF09\u5230\u6307\u5B9A\u5EA7\u6A19\u9EDE\uFF08`x`,`y`\uFF09\u4E4B\u9593\u9023\u7DDA\u7684\u593E\u89D2\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u8207x\u8EF8\u593E\u89D2\u5927\u5C0F\u7684\u7DDA\u6BB5\u7684\u7D42\u9EDEx\u5EA7\u6A19\u3002\"\r\n },\r\n {\r\n \"name\": \"y\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u8207x\u8EF8\u593E\u89D2\u5927\u5C0F\u7684\u7DDA\u6BB5\u7684\u7D42\u9EDEy\u5EA7\u6A19\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUNTBLANK\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u7BC4\u570D\u5167\u7684\u7A7A\u5132\u5B58\u683C\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u7BC4\u570D\u5167\u7684\u7A7A\u5132\u5B58\u683C\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u7D71\u8A08\u7A7A\u767D\u5132\u5B58\u683C\u6578\u91CF\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COSH\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u5BE6\u6578\u7684\u96D9\u66F2\u4F59\u5F26\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u5BE6\u6578\u7684\u96D9\u66F2\u4F59\u5F26\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u96D9\u66F2\u4F59\u5F26\u503C\u7684\u5BE6\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"INT\": {\r\n \"d\": \"\u6578\u503C\u5411\u4E0B\u53D6\u6574\u70BA\u5C0F\u65BC\u6216\u7B49\u65BC\u8A72\u6578\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6578\u3002\",\r\n \"a\": \"\u6578\u503C\u5411\u4E0B\u53D6\u6574\u70BA\u5C0F\u65BC\u6216\u7B49\u65BC\u8A72\u6578\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5411\u4E0B\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u6574\u6578\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISEVEN\": {\r\n \"d\": \"\u6AA2\u67E5\u6240\u63D0\u4F9B\u7684\u6578\u503C\u662F\u5426\u70BA\u5076\u6578\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u6240\u63D0\u4F9B\u7684\u6578\u503C\u662F\u5426\u70BA\u5076\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA\u5076\u6578\u7684\u6578\u503C\u3002\\n\\n\u5982\u679C\u503C\u70BA\u5076\u6578\u6216\u6307\u5411\u5305\u542B\u5076\u6578\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,ISEVEN\u5C07\u8FD4\u56DETRUE,\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISODD\": {\r\n \"d\": \"\u6AA2\u67E5\u6240\u63D0\u4F9B\u7684\u6578\u503C\u662F\u5426\u70BA\u5947\u6578\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u6240\u63D0\u4F9B\u7684\u6578\u503C\u662F\u5426\u70BA\u5947\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA\u5947\u6578\u7684\u6578\u503C\u3002\\n\\n\u5982\u679C\u503C\u70BA\u5947\u6578\u6216\u6307\u5411\u5305\u542B\u5947\u6578\u7684\u5132\u5B58\u683C,ISODD\u5C07\u8FD4\u56DETRUE,\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"LCM\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u6216\u591A\u500B\u6574\u6578\u7684\u6700\u5C0F\u516C\u500D\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u6216\u591A\u500B\u6574\u6578\u7684\u6700\u5C0F\u516C\u500D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8981\u5728\u6C42\u6700\u5C0F\u516C\u500D\u6578\u6578\u7684\u8A08\u7B97\u4E2D\u6AA2\u67E5\u5176\u56E0\u6578\u7684\u7B2C\u4E00\u9805\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u6C42\u6700\u5C0F\u516C\u500D\u6578\u6642\u8981\u8003\u616E\u5176\u56E0\u6578\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"LN\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u4EE5e\uFF08\u6B50\u62C9\u6578\uFF09\u70BA\u5E95\u7684\u5C0D\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u4EE5e\uFF08\u6B50\u62C9\u6578\uFF09\u70BA\u5E95\u7684\u5C0D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u4EE5e\u70BA\u5E95\u6578\u8A08\u7B97\u5176\u5C0D\u6578\u7684\u503C\u3002\\n\\n\u503C\u5FC5\u9808\u70BA\u6B63\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"LOG\": {\r\n \"d\": \"\u6839\u64DA\u6307\u5B9A\u5E95\u6578\u8FD4\u56DE\u6578\u4F4D\u7684\u5C0D\u6578\u3002\",\r\n \"a\": \"\u6839\u64DA\u6307\u5B9A\u5E95\u6578\u8FD4\u56DE\u6578\u4F4D\u7684\u5C0D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u60F3\u8981\u8A08\u7B97\u5176\u5C0D\u6578\u7684\u6B63\u5BE6\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5E95\u6578\",\r\n \"detail\": \"[\u53EF\u9078] - \u5C0D\u6578\u7684\u5E95\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"LOG10\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u4EE510\u70BA\u5E95\u7684\u5C0D\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u4EE510\u70BA\u5E95\u7684\u5C0D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u4EE510\u70BA\u5E95\u7684\u5C0D\u6578\u7684\u6578\u503C\u3002\\n\\n\u503C\u5FC5\u9808\u70BA\u6B63\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"MOD\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u6578\u76F8\u9664\u7684\u9918\u6578,\u7D50\u679C\u7684\u7B26\u865F\u8207\u9664\u6578\u76F8\u540C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u6578\u76F8\u9664\u7684\u9918\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u88AB\u9664\u6578\",\r\n \"detail\": \"\u8981\u5C07\u5176\u76F8\u9664\u4EE5\u5F97\u5230\u9918\u6578\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u9664\u6578\",\r\n \"detail\": \"\u7528\u65BC\u9664\u5176\u4ED6\u6578\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"MROUND\": {\r\n \"d\": \"\u5C07\u6578\u503C\u53D6\u6574\u70BA\u53E6\u4E00\u6574\u6578\u6700\u63A5\u8FD1\u7684\u6574\u6578\u500D\u3002\",\r\n \"a\": \"\u5C07\u6578\u503C\u53D6\u6574\u70BA\u53E6\u4E00\u6574\u6578\u6700\u63A5\u8FD1\u7684\u6574\u6578\u500D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u53D6\u6574\u70BA\u53E6\u4E00\u6574\u6578\u6700\u63A5\u8FD1\u7684\u6574\u6578\u500D\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u56E0\u6578\",\r\n \"detail\": \"\u503C\u5C07\u53D6\u6B64\u56E0\u6578\u7684\u6574\u6578\u500D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ODD\": {\r\n \"d\": \"\u5C07\u6578\u503C\u5411\u4E0A\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u5947\u6574\u6578\u3002\",\r\n \"a\": \"\u5C07\u6578\u503C\u5411\u4E0A\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u5947\u6574\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5411\u4E0A\u53D6\u6574\u7684\u6578\u503C,\u53D6\u6574\u503C\u70BA\u5927\u65BC\u6B64\u503C\u7684\u6700\u63A5\u8FD1\u7684\u5947\u6578\u3002\\n\\n\u5982\u679C\u503C\u70BA\u8CA0\u6578,\u5247\u5C07\u5176\u53D6\u6574\u70BA\u7D55\u5C0D\u503C\u5927\u65BC\u8A72\u503C\u7684\u76F8\u9130\u8CA0\u5947\u6578\"\r\n }\r\n ]\r\n },\r\n \"SUMSQ\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u7D44\u6578\u503C\u548C/\u6216\u5132\u5B58\u683C\u7684\u5E73\u65B9\u7E3D\u548C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u7D44\u6578\u503C\u548C/\u6216\u5132\u5B58\u683C\u7684\u5E73\u65B9\u7E3D\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8981\u5C07\u5176\u5E73\u65B9\u76F8\u52A0\u7684\u7B2C\u4E00\u500B\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u5C07\u5176\u5E73\u65B9\u8207\u503C1\u7684\u5E73\u65B9\u76F8\u52A0\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COMBIN\": {\r\n \"d\": \"\u7D66\u5B9A\u96C6\u5408\u4E2D\u7684\u5C0D\u8C61\u7E3D\u6578\u548C\u8981\u9078\u64C7\u7684\u5C0D\u8C61\u6578\u91CF,\u8FD4\u56DE\u5171\u6709\u591A\u5C11\u7A2E\u4E0D\u540C\u9078\u64C7\u7BA1\u9053\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u96C6\u5408\u4E2D\u7684\u5C0D\u8C61\u7E3D\u6578\u548C\u8981\u9078\u64C7\u7684\u5C0D\u8C61\u6578\u91CF\",\r\n \"p\": [\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"\u8981\u5F9E\u4E2D\u9032\u884C\u9078\u64C7\u7684\u5C0D\u8C61\u96C6\u5408\u7684\u5927\u5C0F\u3002\"\r\n },\r\n {\r\n \"name\": \"k\",\r\n \"detail\": \"\u8981\u9078\u64C7\u7684\u5C0D\u8C61\u6578\u91CF\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUM\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u7D44\u6578\u503C\u548C/\u6216\u5132\u5B58\u683C\u7684\u7E3D\u548C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u7D44\u6578\u503C\u548C/\u6216\u5132\u5B58\u683C\u7684\u7E3D\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8981\u76F8\u52A0\u7684\u7B2C\u4E00\u500B\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u76F8\u52A0\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUBTOTAL\": {\r\n \"d\": \"\u4F7F\u7528\u6307\u5B9A\u7684\u532F\u7E3D\u51FD\u6578,\u8FD4\u56DE\u4E00\u7CFB\u5217\u7E31\u5411\u5132\u5B58\u683C\u7684\u5206\u985E\u532F\u7E3D\u3002\",\r\n \"a\": \"\u4F7F\u7528\u6307\u5B9A\u7684\u532F\u7E3D\u51FD\u6578\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u51FD\u6578\u7A0B\u5F0F\u78BC\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u5206\u985E\u532F\u7E3D\u7684\u51FD\u6578\u3002\\n\\n1\u4EE3\u8868AVERAGE\\n\\n2\u4EE3\u8868COUNT\\n\\n3\u4EE3\u8868COUNTA\\n\\n4\u4EE3\u8868MAX\\n\\n5\u4EE3\u8868MIN\\n\\n6\u4EE3\u8868PRODUCT\\n\\n7\u4EE3\u8868STDEV\\n\\n8\u4EE3\u8868STDEVP\\n\\n9\u4EE3\u8868SUM\\n\\n10\u4EE3\u8868VAR\\n\\n11\u4EE3\u8868VARP\\n\\n\u901A\u904E\u5728\u9019\u4E9B2\u4F4D\u7A0B\u5F0F\u78BC\u524D\u9644\u52A010\uFF08\u5C0D\u65BC1\u4F4D\u7A0B\u5F0F\u78BC\uFF09\u62161\uFF08\u5C0D\u65BC2\u4F4D\u7A0B\u5F0F\u78BC\uFF09,\u53EF\u4EE5\u5C07\u96B1\u85CF\u503C\u5FFD\u7565\u3002\u4F8B\u5982,102\u4EE3\u8868\u5FFD\u7565\u96B1\u85CF\u5132\u5B58\u683C\u7684COUNT,\u800C110\u5247\u4EE3\u8868\u5FFD\u7565\u96B1\u85CF\u503C\u7684VAR\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7BC4\u570D1\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5206\u985E\u532F\u7E3D\u7684\u7B2C\u4E00\u500B\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7BC4\u570D2\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u8A08\u7B97\u5206\u985E\u532F\u7E3D\u7684\u5176\u4ED6\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ASIN\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u6B63\u5F26\u503C,\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u53CD\u6B63\u5F26\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u53CD\u6B63\u5F26\u503C\u7684\u6578\u503C\u3002\u5FC5\u9808\u4ECB\u65BC-1\u548C1\u4E4B\u9593,\u5305\u62EC\u5169\u7AEF\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUNTIF\": {\r\n \"d\": \"\u8FD4\u56DE\u7BC4\u570D\u5167\u6EFF\u8DB3\u67D0\u500B\u689D\u4EF6\u7684\u5132\u5B58\u683C\u7684\u6578\u91CF\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7BC4\u570D\u5167\u6EFF\u8DB3\u67D0\u500B\u689D\u4EF6\u7684\u5132\u5B58\u683C\u7684\u6578\u91CF\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u6839\u64DA\u689D\u4EF6\u9032\u884C\u6AA2\u6E2C\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF6\",\r\n \"detail\": \"\u8981\u61C9\u7528\u65BC\u7BC4\u570D\u7684\u6A21\u5F0F\u6216\u6E2C\u8A66\u689D\u4EF6\u3002\\n\\n\u5982\u679C\u7BC4\u570D\u5305\u542B\u7684\u662F\u8981\u6AA2\u6E2C\u7684\u6587\u5B57,\u5247\u689D\u4EF6\u5FC5\u9808\u70BA\u5B57\u4E32\u3002\u689D\u4EF6\u53EF\u4EE5\u5305\u542B\u842C\u7528\u5B57\u5143,\u5305\u62EC\u7528\u65BC\u5339\u914D\u55AE\u500B\u5B57\u5143\u7684\uFF1F\u6216\u7528\u65BC\u5339\u914D\u96F6\u500B\u6216\u9023\u7E8C\u591A\u500B\u5B57\u5143\u7684*\u3002\u8981\u5339\u914D\u554F\u865F\u661F\u865F\u672C\u8EAB,\u8ACB\u5728\u8A72\u5B57\u5143\u524D\u9762\u52A0\u4E0A\u6CE2\u6D6A\u865F\uFF08~\uFF09\u9996\u78BC\uFF08\u5373~\uFF1F\u548C~*\uFF09\u3002\u5B57\u4E32\u689D\u4EF6\u5FC5\u9808\u7528\u5F15\u865F\u62EC\u8D77\u4F86\u3002\u51FD\u6578\u6703\u6AA2\u67E5\u7BC4\u570D\u4E2D\u7684\u6BCF\u500B\u5132\u5B58\u683C\u8207\u689D\u4EF6\u662F\u5426\u76F8\u7B49\u6216\u5339\u914D\uFF08\u5982\u679C\u4F7F\u7528\u4E86\u842C\u7528\u5B57\u5143\uFF09\u3002\\n\\n\u5982\u679C\u7BC4\u570D\u5305\u542B\u7684\u662F\u8981\u6AA2\u6E2C\u7684\u6578\u4F4D,\u5247\u689D\u4EF6\u53EF\u4EE5\u662F\u5B57\u4E32\u4E5F\u53EF\u4EE5\u662F\u6578\u4F4D\u3002\u5982\u679C\u7D66\u5B9A\u7684\u689D\u4EF6\u662F\u4E00\u500B\u6578\u4F4D,\u5247\u6AA2\u67E5\u7BC4\u570D\u4E2D\u7684\u6BCF\u500B\u5132\u5B58\u683C\u662F\u5426\u7B49\u65BC\u689D\u4EF6\u3002\u53E6\u5916,\u689D\u4EF6\u4E5F\u53EF\u80FD\u662F\u5305\u542B\u6578\u4F4D\u7684\u5B57\u4E32\uFF08\u4E5F\u5C07\u5C0D\u5176\u9032\u884C\u76F8\u7B49\u6AA2\u6E2C\uFF09,\u6216\u8005\u5E36\u6709\u4EE5\u4E0B\u9996\u78BC\u7684\u6578\u4F4D:=\u3001>\u3001>=\u3001<\u6216<=,\u9019\u4E9B\u689D\u4EF6\u5C07\u5206\u5225\u7528\u65BC\u6AA2\u67E5\u7BC4\u570D\u4E2D\u7684\u5132\u5B58\u683C\u662F\u5426\u7B49\u65BC\u3001\u5927\u65BC\u3001\u5927\u65BC\u7B49\u65BC\u3001\u5C0F\u65BC\u3001\u5C0F\u65BC\u7B49\u65BC\u689D\u4EF6\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"RADIANS\": {\r\n \"d\": \"\u5C07\u4EE5\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F49\u63DB\u70BA\u5F27\u5EA6\u3002\",\r\n \"a\": \"\u5C07\u4EE5\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F49\u63DB\u70BA\u5F27\u5EA6\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u89D2\u5EA6\",\r\n \"detail\": \"\u8981\u5F9E\u5EA6\u8F49\u63DB\u70BA\u5F27\u5EA6\u7684\u89D2\u5EA6\u3002\"\r\n }\r\n ]\r\n },\r\n \"RAND\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u4ECB\u65BC0\u548C1\u4E4B\u9593\uFF08\u5305\u62EC0\u4F46\u4E0D\u5305\u62EC1\uFF09\u7684\u4E82\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u4ECB\u65BC0\u548C1\u4E4B\u9593\uFF08\u5305\u62EC0\u4F46\u4E0D\u5305\u62EC1\uFF09\u7684\u4E82\u6578\u3002\",\r\n \"p\": []\r\n },\r\n \"COUNTUNIQUE\": {\r\n \"d\": \"\u8A08\u7B97\u4E00\u5217\u6307\u5B9A\u503C\u548C\u7BC4\u570D\u4E2D\u4E0D\u91CD\u8907\u6578\u503C\u7684\u500B\u6578\u3002\",\r\n \"a\": \"\u8A08\u7B97\u4E00\u5217\u6307\u5B9A\u503C\u548C\u7BC4\u570D\u4E2D\u4E0D\u91CD\u8907\u6578\u503C\u7684\u500B\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8981\u6AA2\u67E5\u5176\u662F\u5426\u552F\u4E00\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u6AA2\u67E5\u662F\u5426\u552F\u4E00\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"DEGREES\": {\r\n \"d\": \"\u5C07\u4EE5\u5F27\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F49\u63DB\u70BA\u5EA6\u3002\",\r\n \"a\": \"\u5C07\u4EE5\u5F27\u5EA6\u8868\u793A\u7684\u89D2\u5EA6\u503C\u8F49\u63DB\u70BA\u5EA6\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u89D2\u5EA6\",\r\n \"detail\": \"\u8981\u5F9E\u5F27\u5EA6\u8F49\u63DB\u70BA\u5EA6\u7684\u89D2\u5EA6\u3002\"\r\n }\r\n ]\r\n },\r\n \"ERFC\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u4E92\u88DC\u9AD8\u65AF\u8AA4\u5DEE\u51FD\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u4E92\u88DC\u9AD8\u65AF\u8AA4\u5DEE\u51FD\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"z\",\r\n \"detail\": \"\u8981\u70BA\u5176\u8A08\u7B97\u4E92\u88DC\u9AD8\u65AF\u8AA4\u5DEE\u51FD\u6578\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"EVEN\": {\r\n \"d\": \"\u5C07\u6578\u503C\u5411\u4E0A\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u5076\u6574\u6578\u3002\",\r\n \"a\": \"\u5C07\u6578\u503C\u5411\u4E0A\u53D6\u6574\u70BA\u6700\u63A5\u8FD1\u7684\u5076\u6574\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5411\u4E0A\u53D6\u6574\u7684\u6578\u503C,\u53D6\u6574\u503C\u70BA\u5927\u65BC\u6B64\u503C\u7684\u6700\u63A5\u8FD1\u7684\u5076\u6578\u3002\\n\\n\u5982\u679C\u503C\u70BA\u8CA0\u6578,\u5247\u5C07\u5176\u53D6\u6574\u70BA\u7D55\u5C0D\u503C\u5927\u65BC\u8A72\u503C\u7684\u76F8\u9130\u8CA0\u5076\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"EXP\": {\r\n \"d\": \"\u8FD4\u56DE\u6B50\u62C9\u6578e\uFF08~2.718\uFF09\u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6B50\u62C9\u6578e\uFF08~2.718\uFF09\u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6307\u6578\",\r\n \"detail\": \"\u6307\u5B9Ae\u7684\u81EA\u4E58\u5E42\u6B21\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"FACT\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u968E\u4E58\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u968E\u4E58\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u4E26\u8FD4\u56DE\u5176\u968E\u4E58\u7684\u6578\u4F4D\u6216\u5C0D\u6578\u4F4D\uFF08\u6240\u5728\u5132\u5B58\u683C\uFF09\u7684\u5F15\u7528\u3002\"\r\n }\r\n ]\r\n },\r\n \"FACTDOUBLE\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\\\"\u96D9\u968E\u4E58\\\"\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\\\"\u96D9\u968E\u4E58\\\"\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u4E26\u8FD4\u56DE\u5176\u96D9\u968E\u4E58\u7684\u6578\u4F4D\u6216\u5C0D\u6578\u4F4D\uFF08\u6240\u5728\u5132\u5B58\u683C\uFF09\u7684\u5F15\u7528\u3002\"\r\n }\r\n ]\r\n },\r\n \"PI\": {\r\n \"d\": \"\u8FD4\u56DE\u5E36\u670914\u4F4D\u5C0F\u6578\u7684PI\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5E36\u670914\u4F4D\u5C0F\u6578\u7684PI\u503C\u3002\",\r\n \"p\": []\r\n },\r\n \"FLOOR\": {\r\n \"d\": \"\u5C07\u6578\u503C\u5411\u4E0B\u53D6\u6574\u70BA\u6307\u5B9A\u56E0\u6578\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6578\u500D\u3002\",\r\n \"a\": \"\u5C07\u6578\u503C\u5411\u4E0B\u53D6\u6574\u70BA\u6307\u5B9A\u56E0\u6578\u7684\u6700\u63A5\u8FD1\u7684\u6574\u6578\u500D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5411\u4E0B\u820D\u5165\u70BA\u56E0\u6578\u7684\u6700\u63A5\u8FD1\u6574\u6578\u500D\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u56E0\u6578\",\r\n \"detail\": \"\u8981\u5C07\u503C\u820D\u5165\u5230\u6B64\u6578\u7684\u6574\u6578\u500D\u3002\\n\\n\u56E0\u6578\u4E0D\u5F97\u70BA0\u3002\"\r\n }\r\n ]\r\n },\r\n \"GCD\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u6216\u591A\u500B\u6574\u6578\u7684\u6700\u5927\u516C\u7D04\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u6216\u591A\u500B\u6574\u6578\u7684\u6700\u5927\u516C\u7D04\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8981\u5728\u67E5\u627E\u6700\u5927\u516C\u7D04\u6578\u7684\u8A08\u7B97\u4E2D\u6AA2\u67E5\u5176\u56E0\u6578\u7684\u7B2C\u4E00\u9805\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u6C42\u6700\u5927\u516C\u7D04\u6578\u6642\u8981\u8003\u616E\u5176\u56E0\u6578\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"RANDBETWEEN\": {\r\n \"d\": \"\u8FD4\u56DE\u4ECB\u65BC\u5169\u500B\u6574\u6578\u4E4B\u9593\uFF08\u5305\u62EC\u9019\u5169\u500B\u6574\u6578\uFF09\u7684\u4E82\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4ECB\u65BC\u5169\u500B\u6574\u6578\u4E4B\u9593\uFF08\u5305\u62EC\u9019\u5169\u500B\u6574\u6578\uFF09\u7684\u4E82\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u4E0B\u754C\",\r\n \"detail\": \"\u96A8\u6A5F\u503C\u7BC4\u570D\u7684\u4E0B\u754C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u4E0A\u754C\",\r\n \"detail\": \"\u96A8\u6A5F\u503C\u7BC4\u570D\u7684\u4E0A\u754C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ROUND\": {\r\n \"d\": \"\u5C07\u6578\u4F4D\u56DB\u6368\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u6578\u4F4D\u56DB\u6368\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u56DB\u6368\u4E94\u5165\u7684\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u4F4D\u6578\",\r\n \"detail\": \"\u8981\u9032\u884C\u56DB\u6368\u4E94\u5165\u904B\u7B97\u7684\u4F4D\u6578\u3002\\n\\n\u4F4D\u6578\u53EF\u4EE5\u53D6\u8CA0\u503C,\u5728\u9019\u7A2E\u60C5\u6CC1\u4E0B\u6703\u5C07\u503C\u7684\u5C0F\u6578\u9EDE\u5DE6\u5074\u90E8\u5206\u820D\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"ROUNDDOWN\": {\r\n \"d\": \"\u671D\u8457\u96F6\u7684\u65B9\u5411\u5C07\u6578\u4F4D\u9032\u884C\u5411\u4E0B\u820D\u5165\u3002\",\r\n \"a\": \"\u671D\u8457\u96F6\u7684\u65B9\u5411\u5C07\u6578\u4F4D\u9032\u884C\u5411\u4E0B\u820D\u5165\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u9700\u8981\u5411\u4E0B\u820D\u5165\u7684\u4EFB\u610F\u5BE6\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"\u4F4D\u6578\",\r\n \"detail\": \"\u8981\u901A\u904E\u820D\u5165\u9054\u5230\u7684\u5C0F\u6578\u4F4D\u6578\u3002\\n\\n\u4F4D\u6578\u53EF\u4EE5\u53D6\u8CA0\u503C,\u5728\u9019\u7A2E\u60C5\u6CC1\u4E0B\u6703\u5C07\u503C\u7684\u5C0F\u6578\u9EDE\u5DE6\u5074\u90E8\u5206\u820D\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"ROUNDUP\": {\r\n \"d\": \"\u671D\u8457\u9060\u96E20\uFF08\u96F6\uFF09\u7684\u65B9\u5411\u5C07\u6578\u4F4D\u9032\u884C\u5411\u4E0A\u820D\u5165\u3002\",\r\n \"a\": \"\u671D\u8457\u9060\u96E20\uFF08\u96F6\uFF09\u7684\u65B9\u5411\u5C07\u6578\u4F4D\u9032\u884C\u5411\u4E0A\u820D\u5165\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5C07\u5176\u820D\u5165\u70BA\u4F4D\u6578\u4F4D\u6578\u4F4D\u7684\u503C,\u59CB\u7D42\u5411\u4E0A\u820D\u5165\u3002\"\r\n },\r\n {\r\n \"name\": \"\u4F4D\u6578\",\r\n \"detail\": \"\u8981\u901A\u904E\u820D\u5165\u9054\u5230\u7684\u5C0F\u6578\u4F4D\u6578\u3002\\n\\n\u4F4D\u6578\u53EF\u4EE5\u53D6\u8CA0\u503C,\u5728\u9019\u7A2E\u60C5\u6CC1\u4E0B\u6703\u5C07\u503C\u7684\u5C0F\u6578\u9EDE\u5DE6\u5074\u90E8\u5206\u820D\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"SERIESSUM\": {\r\n \"d\": \"\u7D66\u5B9A\u53C3\u6578x\u3001n\u3001m\u548Ca,\u8FD4\u56DE\u5E42\u7D1A\u6578\u7684\u548Ca1xn + a2x\uFF08n+m\uFF09+\u2026+ aix\uFF08n+\uFF08i-1\uFF09m\uFF09,\u5176\u4E2Di\u70BA\u7BC4\u570Da\u4E2D\u7684\u9805\u6578\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u53C3\u6578x\u3001n\u3001m\u548Ca\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u5E42\u7D1A\u6578\u7684\u8F38\u5165\u503C\u3002\u96A8\u76F8\u61C9\u7684\u8FD1\u4F3C\u985E\u578B\u800C\u8B8A,\u6709\u53EF\u80FD\u70BA\u89D2\u5EA6\u3001\u6307\u6578\u6216\u5176\u4ED6\u4E00\u4E9B\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"\u5728\u5E42\u7D1A\u6578\u4E2Dx\u7684\u521D\u59CB\u81EA\u4E58\u5E42\u6B21\u3002\"\r\n },\r\n {\r\n \"name\": \"m\",\r\n \"detail\": \"x\u7684\u5E42\u6B21\u4E2D\u7684\u9644\u52A0\u589E\u91CF\u3002\"\r\n },\r\n {\r\n \"name\": \"a\",\r\n \"detail\": \"\u5305\u542B\u5E42\u7D1A\u6578\u4FC2\u6578\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"SIGN\": {\r\n \"d\": \"\u7D66\u5B9A\u8F38\u5165\u6578\u503C,\u5982\u679C\u70BA\u8CA0\u8FD4\u56DE-1\uFF1B\u5982\u679C\u70BA\u6B63\u8FD4\u56DE1\uFF1B\u5982\u679C\u70BA\u96F6\u5247\u8FD4\u56DE0\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u8F38\u5165\u6578\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u7B26\u865F\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"SIN\": {\r\n \"d\": \"\u7D66\u5B9A\u89D2\u5EA6\uFF08\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09,\u8FD4\u56DE\u5176\u6B63\u5F26\u503C\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u89D2\u5EA6\uFF08\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u89D2\u5EA6\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u6B63\u5F26\u503C\u7684\u89D2\u5EA6,\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\"\r\n }\r\n ]\r\n },\r\n \"SINH\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u5BE6\u6578\u7684\u96D9\u66F2\u6B63\u5F26\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u5BE6\u6578\u7684\u96D9\u66F2\u6B63\u5F26\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u96D9\u66F2\u6B63\u5F26\u503C\u7684\u5BE6\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"SQRT\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u6B63\u6578\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u6B63\u6578\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u6B63\u5E73\u65B9\u6839\u7684\u6578\u503C\u3002\\n\\n\u503C\u5FC5\u9808\u70BA\u6B63\u6578\uFF1B\u5982\u679C\u70BA\u8CA0,SQRT\u5C07\u8FD4\u56DE#NUM\uFF01\u932F\u8AA4\u3002\"\r\n }\r\n ]\r\n },\r\n \"SQRTPI\": {\r\n \"d\": \"\u8FD4\u56DEPI\u8207\u7D66\u5B9A\u6B63\u6578\u4E58\u7A4D\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n \"a\": \"\u8FD4\u56DEPI\u8207\u7D66\u5B9A\u6B63\u6578\u4E58\u7A4D\u7684\u6B63\u5E73\u65B9\u6839\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u5C07\u5176\u8207PI\u76F8\u4E58\u4E26\u8FD4\u56DE\u8A72\u4E58\u7A4D\u7684\u5E73\u65B9\u6839\u7684\u6578\u503C\\n\\n\u503C\u5FC5\u9808\u70BA\u6B63\u6578\uFF1B\u5982\u679C\u70BA\u8CA0\u6578,SQRTPI\u5C07\u8FD4\u56DE#NUM\uFF01\u932F\u8AA4\u3002\"\r\n }\r\n ]\r\n },\r\n \"GAMMALN\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u4F3D\u746A\u51FD\u6578\u7684\u4EE5e\uFF08\u6B50\u62C9\u6578\uFF09\u70BA\u5E95\u7684\u5C0D\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u4F3D\u746A\u51FD\u6578\u7684\u4EE5e\uFF08\u6B50\u62C9\u6578\uFF09\u70BA\u5E95\u7684\u5C0D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u4F3D\u746A\u51FD\u6578\u7684\u8F38\u5165\u503C\u3002\u8FD4\u56DE\u7684\u5C07\u662F\u4F3D\u746A\uFF08\u503C\uFF09\u7684\u81EA\u7136\u5C0D\u6578\u3002\\n\\n\u503C\u5FC5\u9808\u70BA\u6B63\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"COS\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u89D2\u5EA6\u7684\u4F59\u5F26\u503C\uFF08\u89D2\u5EA6\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u89D2\u5EA6\u7684\u4F59\u5F26\u503C\uFF08\u89D2\u5EA6\u4EE5\u5F27\u5EA6\u8868\u793A\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u89D2\u5EA6\",\r\n \"detail\": \"\u8981\u53D6\u5176\u4F59\u5F26\u503C\u7684\u89D2\u5EA6,\u4EE5\u5F27\u5EA6\u8868\u793A\u3002\"\r\n }\r\n ]\r\n },\r\n \"TRUNC\": {\r\n \"d\": \"\u9664\u6307\u5B9A\u6709\u6548\u4F4D\u4E4B\u5916\u7684\u90E8\u5206,\u53D6\u6578\u64DA\u7684\u6307\u5B9A\u6709\u6548\u4F4D\u3002\",\r\n \"a\": \"\u9664\u6307\u5B9A\u6709\u6548\u4F4D\u4E4B\u5916\u7684\u90E8\u5206\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C\",\r\n \"detail\": \"\u8981\u622A\u53D6\u7684\u6578\u64DA\u3002\"\r\n },\r\n {\r\n \"name\": \"\u4F4D\u6578\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u5C0F\u6578\u9EDE\u53F3\u5074\u8981\u4FDD\u7559\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u4F4D\u6578\u5927\u65BC\u503C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5C07\\\"\u503C\\\"\u539F\u6A23\u8FD4\u56DE\u3002\\n\\n\u4F4D\u6578\u53EF\u4EE5\u53D6\u8CA0\u503C,\u5728\u9019\u7A2E\u60C5\u6CC1\u4E0B\u6703\u5C07\u5C0F\u6578\u9EDE\u5DE6\u5074\u6307\u5B9A\u4F4D\u6578\u7684\u503C\u66F4\u6539\u70BA\u96F6\u3002\u5C0F\u6578\u9EDE\u53F3\u5074\u7684\u6240\u6709\u4F4D\u6578\u90FD\u6703\u88AB\u6368\u68C4\u3002\u5982\u679C\u503C\u7684\u6240\u6709\u4F4D\u90FD\u88AB\u66F4\u6539\u70BA\u96F6,\u5247TRUNC\u6703\u8FD4\u56DE0\u3002\"\r\n }\r\n ]\r\n },\r\n \"QUOTIENT\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5\u4E00\u500B\u6578\u9664\u4EE5\u53E6\u4E00\u500B\u6578\u6240\u5F97\u7684\u7D50\u679C,\u4E0D\u5305\u542B\u9918\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5\u4E00\u500B\u6578\u9664\u4EE5\u53E6\u4E00\u500B\u6578\u6240\u5F97\u7684\u7D50\u679C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u88AB\u9664\u6578\",\r\n \"detail\": \"\u8981\u88AB\u9664\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u9664\u6578\",\r\n \"detail\": \"\u7528\u65BC\u9664\u5176\u4ED6\u6578\u7684\u6578\u503C\u3002\\n\\n\u9664\u6578\u4E0D\u5F97\u70BA0\"\r\n }\r\n ]\r\n },\r\n \"POWER\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u6307\u5B9A\u6B21\u5E42\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u5E95\u6578\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u6307\u6578\u6B21\u5E42\u7684\u6578\u503C\u3002\\n\\n\u5982\u679C\u5E95\u6578\u70BA\u8CA0,\u5247\u6307\u6578\u5FC5\u9808\u70BA\u6574\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6307\u6578\",\r\n \"detail\": \"\u6307\u5B9A\u5E95\u6578\u7684\u81EA\u4E58\u5E42\u6B21\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUMIFS\": {\r\n \"d\": \"\u6839\u64DA\u591A\u9805\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u4E4B\u548C\u3002\",\r\n \"a\": \"\u6839\u64DA\u591A\u9805\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u4E4B\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6C42\u548C\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u5C0D\u5176\u6C42\u548C\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF6\u7BC4\u570D1\",\r\n \"detail\": \"\u8981\u5728\u54EA\u500B\u7BC4\u570D\u5167\u6AA2\u67E5\u689D\u4EF61\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF61\",\r\n \"detail\": \"\u8981\u61C9\u7528\u65BC\u689D\u4EF6\u7BC4\u570D1\u7684\u6A21\u5F0F\u6216\u6E2C\u8A66\u689D\u4EF6\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF6\u7BC4\u570D2,\u689D\u4EF62\u2026\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u8981\u6AA2\u67E5\u7684\u5176\u4ED6\u7BC4\u570D\u548C\u689D\u4EF6\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUNTIFS\": {\r\n \"d\": \"\u6839\u64DA\u591A\u9805\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u4E2D\u7684\u5132\u5B58\u683C\u6578\u91CF\u3002\",\r\n \"a\": \"\u6839\u64DA\u591A\u9805\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u4E2D\u7684\u5132\u5B58\u683C\u6578\u91CF\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u689D\u4EF6\u7BC4\u570D1\",\r\n \"detail\": \"\u8981\u5728\u54EA\u500B\u7BC4\u570D\u5167\u6AA2\u67E5\u689D\u4EF61\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF61\",\r\n \"detail\": \"\u8981\u61C9\u7528\u65BC\u689D\u4EF6\u7BC4\u570D1\u7684\u6A21\u5F0F\u6216\u6E2C\u8A66\u689D\u4EF6\u3002\"\r\n },\r\n {\r\n \"name\": \"\u689D\u4EF6\u7BC4\u570D2,\u689D\u4EF62\u2026\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u8981\u6AA2\u67E5\u7684\u5176\u4ED6\u7BC4\u570D\u548C\u689D\u4EF6,\u53EF\u91CD\u8907\u3002\"\r\n }\r\n ]\r\n },\r\n \"PRODUCT\": {\r\n \"d\": \"\u8FD4\u56DE\u5C07\u4E00\u7D44\u6578\u76F8\u4E58\u6240\u5F97\u7684\u7D50\u679C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5C07\u4E00\u7D44\u6578\u76F8\u4E58\u6240\u5F97\u7684\u7D50\u679C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u4E58\u65781\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u4E58\u7A4D\u7684\u7B2C\u4E00\u500B\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u4E58\u65782 ... \u4E58\u657830\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u76F8\u4E58\u7684\u5176\u4ED6\u6578\u503C\"\r\n }\r\n ]\r\n },\r\n \"HARMEAN\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u8ABF\u548C\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u8ABF\u548C\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"HYPGEOMDIST\": {\r\n \"d\": \"\u8FD4\u56DE\u8D85\u5E7E\u4F55\u5206\u4F48\u3002\u5982\u679C\u5DF2\u77E5\u6A23\u672C\u91CF\u3001\u7E3D\u9AD4\u6210\u529F\u6B21\u6578\u548C\u7E3D\u9AD4\u5927\u5C0F,\u5247 HYPGEOM.DIST \u8FD4\u56DE\u6A23\u672C\u53D6\u5F97\u5DF2\u77E5\u6210\u529F\u6B21\u6578\u7684\u6982\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8D85\u5E7E\u4F55\u5206\u4F48\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"Sample_s\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u6210\u529F\u7684\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"Number_sample\",\r\n \"detail\": \"\u6A23\u672C\u91CF\u3002\"\r\n },\r\n {\r\n \"name\": \"Population_s\",\r\n \"detail\": \"\u7E3D\u9AD4\u4E2D\u6210\u529F\u7684\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"Number_pop\",\r\n \"detail\": \"\u7E3D\u9AD4\u5927\u5C0F\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u51B3\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\\n\\n\u5982\u679Ccumulative\u70BATRUE\uFF08\uFF09,\u5247HYPGEOM.DIST\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"INTERCEPT\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u7DDA\u6027\u56DE\u6B78\u65B9\u7A0B\u76F4\u7DDA\u8207 Y \u8EF8\u7684\u76F8\u4EA4\u9EDE\uFF08x=0\uFF09\u7684y\u503C\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u7DDA\u6027\u56DE\u6B78\u65B9\u7A0B\u76F4\u7DDA\u8207 Y \u8EF8\u7684\u76F8\u4EA4\u9EDE\uFF08x=0\uFF09\u7684y\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"KURT\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u5CED\u5EA6,\u8A72\u540D\u984D\u8A13\u793A\u6578\u64DA\u96C6\uFF08\u5206\u4F48\uFF09\u7684\u5F62\u614B,\u5C24\u5176\u662F\u8A72\u5F62\u614B\u7684\u9661\u5CED\u7A0B\u5EA6\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u5CED\u5EA6\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6578\u64DA\u96C6\u4E2D\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"LARGE\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7B2C n \u500B\u6700\u5927\u5143\u7D20,n \u7531\u7528\u6236\u6307\u5B9A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7B2C n \u500B\u6700\u5927\u5143\u7D20\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\",\r\n \"detail\": \"\u5305\u542B\u76F8\u95DC\u6578\u64DA\u96C6\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"n\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7684\u5143\u7D20\u7684\u6392\u884C\u4F4D\u7F6E\uFF08\u5F9E\u5927\u5230\u5C0F\u9806\u5E8F\uFF09\u3002\\n\\n\u4F8B\u5982,\u5C07n\u8A2D\u70BA4\u5C07\u4F7FLARGE\u8FD4\u56DE\u6578\u64DA\u4E2D\u6392\u540D\u7B2C4\u7684\u6700\u5927\u5143\u7D20\u3002\"\r\n }\r\n ]\r\n },\r\n \"STDEVA\": {\r\n \"d\": \"\u57FA\u65BC\u6A23\u672C\u8A08\u7B97\u6A19\u6E96\u5DEE,\u5C07\u6587\u5B57\u53D6\u503C\u70BA0\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6A23\u672C\u8A08\u7B97\u6A19\u6E96\u5DEE\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2,\u2026\",\r\n \"detail\": \"[\u53EF\u9078] - \u6A23\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"STDEVP\": {\r\n \"d\": \"\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u6A19\u6E96\u5DEE\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u6A19\u6E96\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6578\u64DA\u96C6\u4E2D\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"GEOMEAN\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u5E7E\u4F55\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u5E7E\u4F55\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"RANK_EQ\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u5B58\u5728\u591A\u9805,\u5247\u8FD4\u56DE\u5176\u4E2D\u7684\u6700\u9AD8\u6392\u540D\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u5B58\u5728\u591A\u9805,\u5247\u8FD4\u56DE\u5176\u4E2D\u7684\u6700\u9AD8\u6392\u540D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u78BA\u5B9A\u5176\u6392\u540D\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"ref\",\r\n \"detail\": \"\u5305\u542B\u76F8\u95DC\u6578\u64DA\u96C6\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"order\",\r\n \"detail\": \"[\u53EF\u9078-\u9ED8\u8A8D\u70BA\u6309\u964D\u5E8F\uFF08FALSE\uFF08\uFF09\uFF09] - \u8981\u6309\u6607\u51AA\u9084\u662F\u6309\u964D\u5E8F\u8003\u616E\\\"data\\\"\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"RANK_AVG\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u5B58\u5728\u591A\u9805,\u5247\u8FD4\u56DE\u9019\u4E9B\u9805\u6392\u540D\u7684\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u7684\u6392\u540D\u3002\u5982\u679C\u76F8\u540C\u7684\u503C\u5728\u6578\u64DA\u96C6\u4E2D\u5B58\u5728\u591A\u9805,\u5247\u8FD4\u56DE\u9019\u4E9B\u9805\u6392\u540D\u7684\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u78BA\u5B9A\u5176\u6392\u540D\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"ref\",\r\n \"detail\": \"\u5305\u542B\u76F8\u95DC\u6578\u64DA\u96C6\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"order\",\r\n \"detail\": \"[\u53EF\u9078-\u9ED8\u8A8D\u70BA\u6309\u964D\u5E8F\uFF08FALSE\uFF08\uFF09\uFF09] - \u8981\u6309\u6607\u51AA\u9084\u662F\u6309\u964D\u5E8F\u8003\u616E\\\"data\\\"\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"PERCENTRANK_EXC\": {\r\n \"d\": \"\u4EE5\u767E\u5206\u6578\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7D66\u5B9A\u6578\u64DA\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u65BC0\u548C1\u4E4B\u9593,\u4E0D\u5305\u62EC\u5169\u7AEF\u503C\uFF09\u3002\",\r\n \"a\": \"\u4EE5\u767E\u5206\u6578\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7D66\u5B9A\u6578\u64DA\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u65BC0\u548C1\u4E4B\u9593,\u4E0D\u5305\u62EC\u5169\u7AEF\u503C\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"\u5305\u542B\u76F8\u95DC\u6578\u64DA\u96C6\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u8981\u78BA\u5B9A\u5176\u767E\u5206\u6BD4\u6392\u4F4D\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"significance\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA3] - \u8981\u5728\u8A08\u7B97\u4E2D\u4F7F\u7528\u7684\u6709\u6548\u4F4D\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"PERCENTRANK_INC\": {\r\n \"d\": \"\u4EE5\u767E\u5206\u6BD4\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7D66\u5B9A\u6578\u64DA\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u65BC0\u548C1\u4E4B\u9593,\u5305\u62EC\u5169\u7AEF\u503C\uFF09\u3002\",\r\n \"a\": \"\u4EE5\u767E\u5206\u6BD4\u5F62\u5F0F\u8FD4\u56DE\u6307\u5B9A\u503C\u5728\u7D66\u5B9A\u6578\u64DA\u96C6\u4E2D\u7684\u767E\u5206\u6BD4\u6392\u540D\uFF08\u4ECB\u65BC0\u548C1\u4E4B\u9593,\u5305\u62EC\u5169\u7AEF\u503C\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"data\",\r\n \"detail\": \"\u5305\u542B\u76F8\u95DC\u6578\u64DA\u96C6\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u8981\u78BA\u5B9A\u5176\u767E\u5206\u6BD4\u6392\u4F4D\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"significance\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA3] - \u8981\u5728\u8A08\u7B97\u4E2D\u4F7F\u7528\u7684\u6709\u6548\u4F4D\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"FORECAST\": {\r\n \"d\": \"\u57FA\u65BC\u6578\u64DA\u96C6\u7684\u7DDA\u6027\u56DE\u6B78,\u8A08\u7B97\u6307\u5B9A x \u7684\u9810\u671F y \u503C\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6578\u64DA\u96C6\u7684\u7DDA\u6027\u56DE\u6B78\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"x\u8EF8\u4E0A\u7528\u65BC\u9810\u6E2C\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"FISHERINV\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u503C\u7684 Fisher \u9006\u8B8A\u63DB\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u503C\u7684 Fisher \u9006\u8B8A\u63DB\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"y\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176Fisher\u9006\u8B8A\u63DB\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"FISHER\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u503C\u7684 Fisher \u8B8A\u63DB\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u503C\u7684 Fisher \u8B8A\u63DB\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176Fisher\u8B8A\u63DB\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"MODE_SNGL\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u51FA\u73FE\u6B21\u6578\u6700\u591A\u7684\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u51FA\u73FE\u6B21\u6578\u6700\u591A\u7684\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u6A21\u5F0F\u6642\u8981\u6AA2\u67E5\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u6A21\u5F0F\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"WEIBULL_DIST\": {\r\n \"d\": \"\u7D66\u5B9A\u5F62\u72C0\u548C\u5C3A\u5EA6,\u8FD4\u56DE\u97CB\u4F2F\u5206\u4F48\u51FD\u6578\uFF08\u6216\u97CB\u4F2F\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF09\u7684\u503C\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u5F62\u72C0\u548C\u5C3A\u5EA6\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"WEIBULL \u5206\u4F48\u51FD\u6578\u7684\u8F38\u5165\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"alpha\",\r\n \"detail\": \"Weibull \u5206\u4F48\u51FD\u6578\u7684\u5F62\u72C0\u53C3\u6578\u3002\\n\\n alpha\u503C\u5FC5\u9808\u5927\u65BC0\u3002\"\r\n },\r\n {\r\n \"name\": \"beta\",\r\n \"detail\": \"Weibull \u5206\u4F48\u51FD\u6578\u7684\u5C3A\u5EA6\u53C3\u6578\u3002\\n\\n beta\u503C\u5FC5\u9808\u5927\u65BC0\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"TRUE\uFF08\uFF09\u8868\u793A\u4F7F\u7528\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578,FALSE\uFF08\uFF09\u5247\u8868\u793A\u4F7F\u7528\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUNT\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u6578\u503C\u7684\u500B\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u6578\u503C\u7684\u500B\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u6578\u6642\u8981\u6AA2\u67E5\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u6578\u6642\u8981\u6AA2\u67E5\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUNTA\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u503C\u7684\u6578\u91CF\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u503C\u7684\u6578\u91CF\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u6578\u6642\u8981\u6AA2\u67E5\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u6578\u6642\u8981\u6AA2\u67E5\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"AVEDEV\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u8207\u6578\u64DA\u96C6\u5E73\u5747\u503C\u4E4B\u9593\u7684\u504F\u5DEE\u5927\u5C0F\u7684\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u8207\u6578\u64DA\u96C6\u5E73\u5747\u503C\u4E4B\u9593\u7684\u504F\u5DEE\u5927\u5C0F\u7684\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6A23\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"AVERAGE\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u7B97\u8853\u5E73\u5747\u503C,\u5C0D\u6587\u5B57\u5FFD\u7565\u4E0D\u8A08\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u7B97\u8853\u5E73\u5747\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u5E73\u5747\u503C\u6642\u7528\u5230\u7684\u7B2C\u4E00\u500B\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u5E73\u5747\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"AVERAGEA\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u7B97\u8853\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u7B97\u8853\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u5E73\u5747\u503C\u6642\u7528\u5230\u7684\u7B2C\u4E00\u500B\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u5E73\u5747\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"BINOM_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u5143\u4E8C\u9805\u5F0F\u5206\u4F48\u7684\u6982\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u5143\u4E8C\u9805\u5F0F\u5206\u4F48\u7684\u6982\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number_s\",\r\n \"detail\": \"\u8A66\u9A57\u7684\u6210\u529F\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"trials\",\r\n \"detail\": \"\u7368\u7ACB\u6AA2\u9A57\u7684\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"probability_s\",\r\n \"detail\": \"\u4EFB\u4E00\u7D66\u5B9A\u6AA2\u9A57\u7684\u6210\u529F\u6982\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u662F\u5426\u4F7F\u7528\u4E8C\u9805\u5F0F\u7D2F\u7A4D\u5206\u4F48\u3002\"\r\n }\r\n ]\r\n },\r\n \"BINOM_INV\": {\r\n \"d\": \"\u8A08\u7B97\u7D2F\u7A4D\u4E8C\u9805\u5F0F\u5206\u4F48\u5927\u65BC\u6216\u7B49\u65BC\u6307\u5B9A\u689D\u4EF6\u7684\u6700\u5C0F\u503C\u3002\",\r\n \"a\": \"\u8A08\u7B97\u7D2F\u7A4D\u4E8C\u9805\u5F0F\u5206\u4F48\u5927\u65BC\u6216\u7B49\u65BC\u6307\u5B9A\u689D\u4EF6\u7684\u6700\u5C0F\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"trials\",\r\n \"detail\": \"\u8C9D\u52AA\u5229\u8A66\u9A57\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"probability_s\",\r\n \"detail\": \"\u4EFB\u4E00\u6B21\u7D66\u5B9A\u6AA2\u9A57\u7684\u6210\u529F\u6982\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"alpha\",\r\n \"detail\": \"\u671F\u671B\u7684\u81E8\u754C\u6982\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"CONFIDENCE_NORM\": {\r\n \"d\": \"\u8A08\u7B97\u5E38\u6001\u5206\u914D\u7684\u7F6E\u4FE1\u5340\u9593\u7684\u4E00\u534A\u5BEC\u5EA6\u3002\",\r\n \"a\": \"\u8A08\u7B97\u5E38\u6001\u5206\u914D\u7684\u7F6E\u4FE1\u5340\u9593\u7684\u4E00\u534A\u5BEC\u5EA6\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"alpha\",\r\n \"detail\": \"\u7528\u4F86\u8A08\u7B97\u7F6E\u4FE1\u6C34\u51C6\u7684\u986F\u8457\u6027\u6C34\u51C6\u3002\\n\\n\u7F6E\u4FE1\u6C34\u51C6\u7B49\u65BC100*\uFF081 - alpha\uFF09%,\u4EA6\u5373,\u5982\u679C alpha \u70BA0.05,\u5247\u7F6E\u4FE1\u6C34\u51C6\u70BA 95%\u3002\"\r\n },\r\n {\r\n \"name\": \"standard_dev\",\r\n \"detail\": \"\u6578\u64DA\u5340\u57DF\u7684\u7E3D\u9AD4\u6A19\u6E96\u5DEE\u3002\"\r\n },\r\n {\r\n \"name\": \"size\",\r\n \"detail\": \"\u6A23\u672C\u7E3D\u91CF\u7684\u5927\u5C0F\u3002\"\r\n }\r\n ]\r\n },\r\n \"CORREL\": {\r\n \"d\": \"\u8A08\u7B97\u7D66\u5B9A\u6578\u64DA\u96C6\u7684\u76AE\u723E\u905C\u7A4D\u77E9\u76F8\u95DC\u4FC2\u6578 r\u3002\",\r\n \"a\": \"\u8A08\u7B97\u7D66\u5B9A\u6578\u64DA\u96C6\u7684\u76AE\u723E\u905C\u7A4D\u77E9\u76F8\u95DC\u4FC2\u6578 r\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COVARIANCE_P\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u7E3D\u9AD4\u5354\u65B9\u5DEE\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u7E3D\u9AD4\u5354\u65B9\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COVARIANCE_S\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u6A23\u672C\u5354\u65B9\u5DEE\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u64DA\u96C6\u7684\u6A23\u672C\u5354\u65B9\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"DEVSQ\": {\r\n \"d\": \"\u57FA\u65BC\u6A23\u672C\u8A08\u7B97\u5176\u504F\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6A23\u672C\u8A08\u7B97\u5176\u504F\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6A23\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"EXPON_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u5E36\u6709\u6307\u5B9A Lambda \u548C\u6307\u5B9A\u503C\u7684\u6307\u6578\u5206\u4F48\u51FD\u6578\u7684\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5E36\u6709\u6307\u5B9A Lambda \u548C\u6307\u5B9A\u503C\u7684\u6307\u6578\u5206\u4F48\u51FD\u6578\u7684\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u6307\u6578\u5206\u4F48\u51FD\u6578\u7684\u8F38\u5165\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"lambda\",\r\n \"detail\": \"\u7528\u65BC\u6307\u5B9A\u6307\u6578\u5206\u4F48\u51FD\u6578\u7684 lambda \u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u662F\u5426\u4F7F\u7528\u6307\u6578\u7D2F\u7A4D\u5206\u4F48\u3002\"\r\n }\r\n ]\r\n },\r\n \"AVERAGEIF\": {\r\n \"d\": \"\u6839\u64DA\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u7684\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u6839\u64DA\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u7684\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"criteria_range\",\r\n \"detail\": \"\u8981\u5C0D\u5176\u6AA2\u67E5 criterion \u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"criterion\",\r\n \"detail\": \"\u8981\u61C9\u7528\u65BCcriteria_range\u7684\u6A21\u5F0F\u6216\u6E2C\u8A66\u689D\u4EF6\u3002\\n\\n\u7B49\u65BC:\\\"\u6587\u5B57\\\" \u6216 1 \u6216 \\\"=\u6587\u5B57\\\" \u6216 \\\"=1\\\"\\n\\n\u5927\u65BC:\\\">1\\\"\\n\\n\u5927\u65BC\u7B49\u65BC:\\\">=1\\\"\\n\\n\u5C0F\u65BC:\\\"<1\\\"\\n\\n\u5C0F\u65BC\u7B49\u65BC:\\\"<=1\\\"\\n\\n\u4E0D\u7B49\u65BC:\\\"<>1\\\"\u6216\\\"<>\u6587\u5B57\\\"\"\r\n },\r\n {\r\n \"name\": \"average_range\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u8A08\u7B97\u5E73\u5747\u503C\u7684\u7BC4\u570D\u3002\u5982\u679C\u672A\u63D0\u4F9B\u6B64\u53C3\u6578,\u5247\u6539\u7528criteria_range\u4F86\u8A08\u7B97\u5E73\u5747\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"AVERAGEIFS\": {\r\n \"d\": \"\u6839\u64DA\u591A\u9805\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u7684\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u6839\u64DA\u591A\u9805\u689D\u4EF6\u8FD4\u56DE\u7BC4\u570D\u7684\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"average_range\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5E73\u5747\u503C\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria_range1\",\r\n \"detail\": \"\u8981\u5C0D\u5176\u6AA2\u67E5 criterion1 \u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"criterion1\",\r\n \"detail\": \"\u8981\u61C9\u7528\u65BCcriteria_range1\u7684\u6A21\u5F0F\u6216\u6E2C\u8A66\u689D\u4EF6\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria_range2, criterion2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u6AA2\u67E5\u7684\u5176\u4ED6\u7BC4\u570D\u548C\u689D\u4EF6\u3002\"\r\n }\r\n ]\r\n },\r\n \"PERMUT\": {\r\n \"d\": \"\u8FD4\u56DE\u53EF\u5F9E\u6578\u4F4D\u5C0D\u8C61\u4E2D\u9078\u64C7\u7684\u7D66\u5B9A\u6578\u76EE\u5C0D\u8C61\u7684\u6392\u5217\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u53EF\u5F9E\u6578\u4F4D\u5C0D\u8C61\u4E2D\u9078\u64C7\u7684\u7D66\u5B9A\u6578\u76EE\u5C0D\u8C61\u7684\u6392\u5217\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8868\u793A\u5C0D\u8C61\u500B\u6578\u7684\u6574\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"number_chosen\",\r\n \"detail\": \"\u8868\u793A\u6BCF\u500B\u6392\u5217\u4E2D\u5C0D\u8C61\u500B\u6578\u7684\u6574\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"TRIMMEAN\": {\r\n \"d\": \"\u5728\u6392\u9664\u6578\u64DA\u96C6\u9AD8\u4F4E\u5169\u7AEF\u7684\u90E8\u5206\u6578\u64DA\u4E4B\u5F8C\u8A08\u7B97\u6240\u5F97\u7684\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u5728\u6392\u9664\u6578\u64DA\u96C6\u9AD8\u4F4E\u5169\u7AEF\u7684\u90E8\u5206\u6578\u64DA\u4E4B\u5F8C\u8A08\u7B97\u6240\u5F97\u7684\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\",\r\n \"detail\": \"\u5305\u542B\u76F8\u95DC\u6578\u64DA\u96C6\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6392\u9664\u6BD4\u4F8B\",\r\n \"detail\": \"\u8981\u5F9E\u6578\u64DA\u96C6\u7684\u6975\u503C\u90E8\u5206\u6392\u9664\u7684\u6578\u64DA\u5360\u6578\u64DA\u96C6\u7684\u6BD4\u4F8B\u3002\\n\\n\u6392\u9664\u6BD4\u4F8B\u5FC5\u9808\u5927\u65BC\u7B49\u65BC0\u4E14\u5C0F\u65BC1\u3002\"\r\n }\r\n ]\r\n },\r\n \"PERCENTILE_EXC\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u7D44\u7684 K \u767E\u5206\u9EDE\u503C,K \u4ECB\u65BC0\u52301\u4E4B\u9593,\u4E0D\u542B0\u82071\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u7D44\u7684 K \u767E\u5206\u9EDE\u503C,K \u4ECB\u65BC0\u52301\u4E4B\u9593,\u4E0D\u542B0\u82071\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u5B9A\u7FA9\u76F8\u5C0D\u4F4D\u7F6E\u7684\u6578\u7D44\u6216\u6578\u64DA\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"k\",\r\n \"detail\": \"0 \u5230 1 \u4E4B\u9593\u7684\u767E\u5206\u9EDE\u503C,\u4E0D\u5305\u542B 0 \u548C 1\u3002\"\r\n }\r\n ]\r\n },\r\n \"PERCENTILE_INC\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u7D44\u7684 K \u767E\u5206\u9EDE\u503C,K \u4ECB\u65BC 0 \u5230 1 \u4E4B\u9593,\u5305\u542B 0 \u8207 1\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u7D44\u7684 K \u767E\u5206\u9EDE\u503C,K \u4ECB\u65BC 0 \u5230 1 \u4E4B\u9593,\u5305\u542B 0 \u8207 1\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u5B9A\u7FA9\u76F8\u5C0D\u4F4D\u7F6E\u7684\u6578\u7D44\u6216\u6578\u64DA\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"k\",\r\n \"detail\": \"0 \u5230 1 \u4E4B\u9593\u7684\u767E\u5206\u9EDE\u503C,\u5305\u542B 0 \u548C 1\u3002\"\r\n }\r\n ]\r\n },\r\n \"PEARSON\": {\r\n \"d\": \"\u56DE\u76AE\u723E\u751F\uFF08Pearson\uFF09\u4E58\u7A4D\u77E9\u76F8\u95DC\u4FC2\u6578 r\u3002\",\r\n \"a\": \"\u56DE\u76AE\u723E\u751F\uFF08Pearson\uFF09\u4E58\u7A4D\u77E9\u76F8\u95DC\u4FC2\u6578 r\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"NORM_S_INV\": {\r\n \"d\": \"\u8FD4\u56DE\u6A19\u6E96\u6B63\u614B\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u7684\u53CD\u51FD\u6578\u503C\u3002\u8A72\u5206\u4F48\u7684\u5E73\u5747\u503C\u70BA0,\u6A19\u6E96\u5DEE\u70BA1\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6A19\u6E96\u6B63\u614B\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u7684\u53CD\u51FD\u6578\u503C\u3002\u8A72\u5206\u4F48\u7684\u5E73\u5747\u503C\u70BA0,\u6A19\u6E96\u5DEE\u70BA1\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"\u5C0D\u61C9\u65BC\u5E38\u6001\u5206\u914D\u7684\u6982\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"NORM_S_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u6A19\u6E96\u5E38\u6001\u5206\u914D\u51FD\u6578\uFF08\u8A72\u5206\u4F48\u7684\u5E73\u5747\u503C\u70BA0,\u6A19\u6E96\u5DEE\u70BA1\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6A19\u6E96\u5E38\u6001\u5206\u914D\u51FD\u6578\uFF08\u8A72\u5206\u4F48\u7684\u5E73\u5747\u503C\u70BA0,\u6A19\u6E96\u5DEE\u70BA1\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"z\",\r\n \"detail\": \"\u9700\u8981\u8A08\u7B97\u5176\u5206\u4F48\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u51B3\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\\n\\n\u5982\u679C\u70BATRUE\uFF08\uFF09,\u5247\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"NORM_INV\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6A19\u6E96\u5DEE\u7684\u6B63\u614B\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u7684\u53CD\u51FD\u6578\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6A19\u6E96\u5DEE\u7684\u6B63\u614B\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u7684\u53CD\u51FD\u6578\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"\u5C0D\u61C9\u65BC\u5E38\u6001\u5206\u914D\u7684\u6982\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"\u5206\u4F48\u7684\u7B97\u8853\u5E73\u5747\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"standard_dev\",\r\n \"detail\": \"\u5206\u4F48\u7684\u6A19\u6E96\u5DEE\u3002\"\r\n }\r\n ]\r\n },\r\n \"NORM_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6A19\u6E96\u5DEE\u7684\u5E38\u6001\u5206\u914D\u51FD\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u5E73\u5747\u503C\u548C\u6A19\u6E96\u5DEE\u7684\u5E38\u6001\u5206\u914D\u51FD\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u9700\u8981\u8A08\u7B97\u5176\u5206\u4F48\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"\u5206\u4F48\u7684\u7B97\u8853\u5E73\u5747\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"standard_dev\",\r\n \"detail\": \"\u5206\u4F48\u7684\u6A19\u6E96\u5DEE\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u51B3\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\\n\\n\u5982\u679C\u70BATRUE\uFF08\uFF09,\u5247\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"NEGBINOM_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u8CA0\u4E8C\u9805\u5F0F\u5206\u4F48\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8CA0\u4E8C\u9805\u5F0F\u5206\u4F48\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number_f\",\r\n \"detail\": \"\u8981\u985E\u6BD4\u7684\u5931\u6557\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"number_s\",\r\n \"detail\": \"\u8981\u985E\u6BD4\u7684\u6210\u529F\u6B21\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"probability_s\",\r\n \"detail\": \"\u4EFB\u4E00\u6B21\u7D66\u5B9A\u6AA2\u9A57\u7684\u6210\u529F\u6982\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u51B3\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\\n\\n\u5982\u679C\u70BATRUE\uFF08\uFF09,\u5247\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"MINA\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5C0F\u6578\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5C0F\u6578\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u6700\u5C0F\u503C\u6642\u6240\u7528\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u6700\u5C0F\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"MIN\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5C0F\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5C0F\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u6700\u5C0F\u503C\u6642\u6240\u7528\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u6700\u5C0F\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"MEDIAN\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u6578\u64DA\u96C6\u4E2D\u7684\u4E2D\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u6578\u64DA\u96C6\u4E2D\u7684\u4E2D\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u503C\u6642\u6240\u7528\u7684\u7B2C\u4E00\u500B\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u4E2D\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"MAXA\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5927\u6578\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5927\u6578\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u6700\u5927\u503C\u6642\u6240\u7528\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u6700\u5927\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"MAX\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5927\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u6578\u64DA\u96C6\u4E2D\u7684\u6700\u5927\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u8A08\u7B97\u6700\u5927\u503C\u6642\u6240\u7528\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5728\u8A08\u7B97\u6700\u5927\u503C\u6642\u8981\u8003\u616E\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"LOGNORM_INV\": {\r\n \"d\": \"\u8FD4\u56DE x \u7684\u5C0D\u6578\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u7684\u53CD\u51FD\u6578\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE x \u7684\u5C0D\u6578\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u7684\u53CD\u51FD\u6578\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"\u8207\u5C0D\u6578\u5206\u4F48\u76F8\u95DC\u7684\u6982\u7387,\u4ECB\u65BC0\u82071\u4E4B\u9593\uFF08\u4E0D\u542B0\u82071\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"ln(x) \u7684\u5E73\u5747\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"standard_dev\",\r\n \"detail\": \"ln(x) \u7684\u6A19\u6E96\u5DEE,\u6B63\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"LOGNORM_DIST\": {\r\n \"d\": \"\u8FD4\u56DE x \u7684\u5C0D\u6578\u5206\u4F48\u51FD\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE x \u7684\u5C0D\u6578\u5206\u4F48\u51FD\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u7528\u4F86\u8A08\u7B97\u51FD\u6578\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"ln(x) \u7684\u5E73\u5747\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"standard_dev\",\r\n \"detail\": \"ln(x) \u7684\u6A19\u6E96\u5DEE,\u6B63\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u51B3\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\\n\\n\u5982\u679C\u70BATRUE\uFF08\uFF09,\u5247\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"Z_TEST\": {\r\n \"d\": \"\u8FD4\u56DE z \u6AA2\u9A57\u7684\u55AE\u5C3E P \u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE z \u6AA2\u9A57\u7684\u55AE\u5C3E P \u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u7528\u4F86\u6AA2\u9A57 x \u7684\u6578\u7D44\u6216\u6578\u64DA\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u8981\u6E2C\u8A66\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"sigma\",\r\n \"detail\": \"[\u53EF\u9078] - \u7E3D\u9AD4\uFF08\u5DF2\u77E5\uFF09\u6A19\u6E96\u5DEE\u3002\u5982\u679C\u7701\u7565,\u5247\u4F7F\u7528\u6A23\u672C\u6A19\u6E96\u5DEE\u3002\"\r\n }\r\n ]\r\n },\r\n \"PROB\": {\r\n \"d\": \"\u8FD4\u56DE\u5340\u57DF\u4E2D\u7684\u6578\u503C\u843D\u5728\u6307\u5B9A\u5340\u9593\u5167\u7684\u6982\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5340\u57DF\u4E2D\u7684\u6578\u503C\u843D\u5728\u6307\u5B9A\u5340\u9593\u5167\u7684\u6982\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x_range\",\r\n \"detail\": \"\u5177\u6709\u5404\u81EA\u76F8\u61C9\u6982\u7387\u503C\u7684 x \u6578\u503C\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"prob_range\",\r\n \"detail\": \"\u8207 x_range \u4E2D\u7684\u503C\u76F8\u95DC\u806F\u7684\u4E00\u7D44\u6982\u7387\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"lower_limit\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u6982\u7387\u7684\u6578\u503C\u4E0B\u754C\u3002\"\r\n },\r\n {\r\n \"name\": \"upper_limit\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA\u4E0B\u754C] - \u8981\u8A08\u7B97\u5176\u6982\u7387\u7684\u53EF\u9078\u6578\u503C\u4E0A\u754C\u3002\\n\\n\u5982\u679C\u7701\u7565\u4E0A\u754C,PROB\u5247\u8A08\u7B97\u96A8\u6A5F\u9078\u53D6\u76F8\u61C9\u503C\u7684\u6B21\u6578\u6070\u597D\u7B49\u65BC\u4E0B\u754C\u7684\u6982\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"QUARTILE_EXC\": {\r\n \"d\": \"\u57FA\u65BC 0 \u5230 1 \u4E4B\u9593\uFF08\u4E0D\u5305\u62EC 0 \u548C 1\uFF09\u7684\u767E\u5206\u9EDE\u503C\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u56DB\u5206\u4F4D\u6578\u3002\",\r\n \"a\": \"\u57FA\u65BC 0 \u5230 1 \u4E4B\u9593\uFF08\u4E0D\u5305\u62EC 0 \u548C 1\uFF09\u7684\u767E\u5206\u9EDE\u503C\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u56DB\u5206\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u6C42\u5F97\u56DB\u5206\u4F4D\u6578\u503C\u7684\u6578\u7D44\u6216\u6578\u5B57\u578B\u5132\u5B58\u683C\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"quart\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7B2C\u5E7E\u500B\u56DB\u5206\u4F4D\u503C\u3002\\n\\n1\u8FD4\u56DE\u6578\u64DA\u4E2D\u6700\u9760\u8FD1\u7B2C\u4E00\u500B\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0825%\u6A19\u8A18\uFF09\u3002\\n\\n2\u8FD4\u56DE\u6578\u64DA\u4E2D\u6700\u63A5\u8FD1\u4E2D\u503C\u7684\u503C\uFF0850%\u6A19\u8A18\uFF09\u3002\\n\\n3\u8FD4\u56DE\u6578\u64DA\u4E2D\u6700\u63A5\u8FD1\u7B2C\u4E09\u500B\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0875%\u6A19\u8A18\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"QUARTILE_INC\": {\r\n \"d\": \"\u6839\u64DA 0 \u5230 1 \u4E4B\u9593\u7684\u767E\u5206\u9EDE\u503C\uFF08\u5305\u542B 0 \u548C 1\uFF09\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u56DB\u5206\u4F4D\u6578\u3002\",\r\n \"a\": \"\u6839\u64DA 0 \u5230 1 \u4E4B\u9593\u7684\u767E\u5206\u9EDE\u503C\uFF08\u5305\u542B 0 \u548C 1\uFF09\u8FD4\u56DE\u6578\u64DA\u96C6\u7684\u56DB\u5206\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u6C42\u5F97\u56DB\u5206\u4F4D\u6578\u503C\u7684\u6578\u7D44\u6216\u6578\u5B57\u578B\u5132\u5B58\u683C\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"quart\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7B2C\u5E7E\u500B\u56DB\u5206\u4F4D\u503C\u3002\\n\\n0\u8FD4\u56DE\u6578\u64DA\u4E2D\u7684\u6700\u5C0F\u503C\uFF080%\u6A19\u8A18\uFF09\u3002\\n\\n1\u8FD4\u56DE\u6578\u64DA\u4E2D\u6700\u9760\u8FD1\u7B2C\u4E00\u500B\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0825%\u6A19\u8A18\uFF09\u3002\\n\\n2\u8FD4\u56DE\u6578\u64DA\u4E2D\u6700\u63A5\u8FD1\u4E2D\u503C\u7684\u503C\uFF0850%\u6A19\u8A18\uFF09\u3002\\n\\n3\u8FD4\u56DE\u6578\u64DA\u4E2D\u6700\u63A5\u8FD1\u7B2C\u4E09\u500B\u56DB\u5206\u4F4D\u503C\u7684\u503C\uFF0875%\u6A19\u8A18\uFF09\u3002\\n\\n4\u8FD4\u56DE\u6578\u64DA\u4E2D\u7684\u6700\u5927\u503C\uFF08100%\u6A19\u8A18\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"POISSON_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u6CCA\u677E\u5206\u5E03\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6CCA\u677E\u5206\u5E03\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u4E8B\u4EF6\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"\u671F\u671B\u503C\u3002\u975E\u8CA0\u6578\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u4E00 \u908F\u8F2F\u503C,\u78BA\u5B9A\u6240\u8FD4\u56DE\u7684\u6982\u7387\u5206\u4F48\u7684\u5F62\u5F0F\u3002\\n\\n\u5982\u679C\u70BATRUE\uFF08\uFF09,\u5247\u8FD4\u56DE\u767C\u751F\u7684\u96A8\u6A5F\u4E8B\u4EF6\u6578\u5728\u96F6\uFF08\u542B\u96F6\uFF09\u548Cx\uFF08\u542Bx\uFF09\u4E4B\u9593\u7684\u7D2F\u7A4D\u6CCA\u677E\u6982\u7387\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u767C\u751F\u7684\u4E8B\u4EF6\u6578\u6B63\u597D\u662Fx\u7684\u6CCA\u677E\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"RSQ\": {\r\n \"d\": \"\u8FD4\u56DE\u76AE\u723E\u751F(Pearson)\u4E58\u7A4D\u77E9\u76F8\u95DC\u4FC2\u6578r\u7684\u5E73\u65B9\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u76AE\u723E\u751F(Pearson)\u4E58\u7A4D\u77E9\u76F8\u95DC\u4FC2\u6578r\u7684\u5E73\u65B9\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"T_DIST\": {\r\n \"d\": \"\u8FD4\u56DE\u5B78\u751F\u7684\u5DE6\u5C3E t \u5206\u4F48\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B78\u751F\u7684\u5DE6\u5C3E t \u5206\u4F48\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"T-\u5206\u4F48\u51FD\u6578\u7684\u8F38\u5165\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"\u81EA\u7531\u5EA6\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"tails\",\r\n \"detail\": \"\u51B3\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\\n\\n\u5982\u679Ccumulative\u70BATRUE\uFF08\uFF09,\u5247HYPGEOM.DIST\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\uFF1B\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09,\u5247\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"T_DIST_2T\": {\r\n \"d\": \"\u8FD4\u56DE\u5B78\u751F\u7684\u96D9\u5C3E t \u5206\u4F48\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B78\u751F\u7684\u96D9\u5C3E t \u5206\u4F48\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"T-\u5206\u4F48\u51FD\u6578\u7684\u8F38\u5165\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"\u81EA\u7531\u5EA6\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"T_DIST_RT\": {\r\n \"d\": \"\u8FD4\u56DE\u5B78\u751F\u7684\u53F3\u5C3E t \u5206\u4F48\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B78\u751F\u7684\u53F3\u5C3E t \u5206\u4F48\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"T-\u5206\u4F48\u51FD\u6578\u7684\u8F38\u5165\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom\",\r\n \"detail\": \"\u81EA\u7531\u5EA6\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"T_INV\": {\r\n \"d\": \"\u8FD4\u56DE\u5B78\u751F\u7684 t \u5206\u4F48\u7684\u5DE6\u5C3E\u53CD\u51FD\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B78\u751F\u7684 t \u5206\u4F48\u7684\u5DE6\u5C3E\u53CD\u51FD\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"\u8207\u5B78\u751F\u7684 t \u5206\u4F48\u76F8\u95DC\u7684\u6982\u7387\u3002\\n\\n\u5FC5\u9808\u5927\u65BC 0 \u4E14\u5C0F\u65BC 1\u3002\"\r\n },\r\n {\r\n \"name\": \"deg_freedom\",\r\n \"detail\": \"\u81EA\u7531\u5EA6\u6578\u503C\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u53C3\u6578\u4E0D\u662F\u6574\u6578,\u5C07\u622A\u53D6\u5176\u6574\u6578\u90E8\u5206\u3002\\n\\n\u5FC5\u9808\u5927\u65BC\u7B49\u65BC1\u3002\"\r\n }\r\n ]\r\n },\r\n \"T_INV_2T\": {\r\n \"d\": \"\u8FD4\u56DE\u5B78\u751F t \u5206\u4F48\u7684\u96D9\u5C3E\u53CD\u51FD\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B78\u751F t \u5206\u4F48\u7684\u96D9\u5C3E\u53CD\u51FD\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"probability\",\r\n \"detail\": \"\u8207\u5B78\u751F\u7684t\u5206\u4F48\u76F8\u95DC\u7684\u6982\u7387\u3002\\n\\n\u5FC5\u9808\u5927\u65BC 0 \u4E14\u5C0F\u65BC 1\u3002\"\r\n },\r\n {\r\n \"name\": \"deg_freedom\",\r\n \"detail\": \"\u81EA\u7531\u5EA6\u6578\u503C\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u53C3\u6578\u4E0D\u662F\u6574\u6578,\u5C07\u622A\u53D6\u5176\u6574\u6578\u90E8\u5206\u3002\\n\\n\u5FC5\u9808\u5927\u65BC\u7B49\u65BC1\u3002\"\r\n }\r\n ]\r\n },\r\n \"T_TEST\": {\r\n \"d\": \"\u8FD4\u56DE\u8207t-\u6AA2\u9A57\u76F8\u95DC\u7684\u6982\u7387\u3002\u7528\u65BC\u5224\u65B7\u5169\u500B\u6A23\u672C\u662F\u5426\u53EF\u80FD\u662F\u51FA\u81EA\u5E73\u5747\u503C\u76F8\u540C\u7684\u5169\u500B\u6A23\u672C\u7E3D\u9AD4\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8207t-\u6AA2\u9A57\u76F8\u95DC\u7684\u6982\u7387\u3002\u7528\u65BC\u5224\u65B7\u5169\u500B\u6A23\u672C\u662F\u5426\u53EF\u80FD\u662F\u51FA\u81EA\u5E73\u5747\u503C\u76F8\u540C\u7684\u5169\u500B\u6A23\u672C\u7E3D\u9AD4\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array1\",\r\n \"detail\": \"\u5C07\u7528\u65BCt\u6AA2\u9A57\u7684\u7B2C\u4E00\u500B\u6578\u64DA\u6A23\u672C\u6216\u7B2C\u4E00\u7D44\u5132\u5B58\u683C\u3002\"\r\n },\r\n {\r\n \"name\": \"array2\",\r\n \"detail\": \"\u5C07\u7528\u65BCt\u6AA2\u9A57\u7684\u7B2C\u4E8C\u500B\u6578\u64DA\u6A23\u672C\u6216\u7B2C\u4E8C\u7D44\u5132\u5B58\u683C\u3002\"\r\n },\r\n {\r\n \"name\": \"tails\",\r\n \"detail\": \"\u6307\u5B9A\u5206\u4F48\u7684\u5C3E\u6578\u3002\\n\\n\u5982\u679C\u70BA 1:\u4F7F\u7528\u55AE\u5C3E\u5206\u4F48\u3002\\n\\n\u5982\u679C\u70BA 2:\u4F7F\u7528\u96D9\u5C3E\u5206\u4F48\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"\u6307\u5B9At\u6AA2\u9A57\u7684\u985E\u578B\u3002\\n\\n\u5982\u679C\u70BA 1:\u57F7\u884C\u914D\u5C0D\u6AA2\u9A57\u3002\\n\\n\u5982\u679C\u70BA 2:\u57F7\u884C\u96D9\u6A23\u672C\u7B49\u65B9\u5DEE\uFF08\u540C\u65B9\u5DEE\uFF09\u6AA2\u9A57\u3002\\n\\n\u5982\u679C\u70BA 3:\u57F7\u884C\u96D9\u6A23\u672C\u4E0D\u7B49\u65B9\u5DEE\uFF08\u5F02\u65B9\u5DEE\uFF09\u6AA2\u9A57\u3002\"\r\n }\r\n ]\r\n },\r\n \"F_DIST\": {\r\n \"d\": \"\u7D66\u5B9A\u8F38\u5165\u503C x,\u8A08\u7B97\u5169\u500B\u6578\u64DA\u96C6\u7684\u5DE6\u5C3E F \u6982\u7387\u5206\u4F48\uFF08\u5DEE\u5F02\u7A0B\u5EA6\uFF09\u3002\u6B64\u5206\u4F48\u4E5F\u7A31\u70BA Fisher-Snedecor \u5206\u4F48\u6216Snedecor F \u5206\u4F48\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u8F38\u5165\u503C x\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u7528\u4F86\u8A08\u7B97\u51FD\u6578\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom1\",\r\n \"detail\": \"\u5206\u5B50\u81EA\u7531\u5EA6\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom2\",\r\n \"detail\": \"\u5206\u6BCD\u81EA\u7531\u5EA6\u3002\"\r\n },\r\n {\r\n \"name\": \"cumulative\",\r\n \"detail\": \"\u7528\u65BC\u78BA\u5B9A\u51FD\u6578\u5F62\u5F0F\u7684\u908F\u8F2F\u503C\u3002\u9810\u8A2D\u503C\u70BA FALSE\u3002\\n\\n\u5982\u679C\u70BA TRUE\uFF08\uFF09:F.DIST\u5C07\u8FD4\u56DE\u7D2F\u7A4D\u5206\u4F48\u51FD\u6578\u503C\u3002\\n\\n\u5982\u679C\u70BAFALSE\uFF08\uFF09:F.DIST\u5C07\u8FD4\u56DE\u6982\u7387\u5BC6\u5EA6\u51FD\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"F_DIST_RT\": {\r\n \"d\": \"\u7D66\u5B9A\u8F38\u5165x,\u8A08\u7B97\u5169\u500B\u6578\u64DA\u96C6\u7684\u53F3\u5C3EF\u6982\u7387\u5206\u4F48\uFF08\u5DEE\u5F02\u7A0B\u5EA6\uFF09\u3002\u6B64\u5206\u4F48\u4E5F\u7A31\u70BAFisher-Snedecor\u5206\u4F48\u6216Snedecor F\u5206\u4F48\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u8F38\u5165 x\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u7528\u4F86\u8A08\u7B97\u51FD\u6578\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom1\",\r\n \"detail\": \"\u5206\u5B50\u81EA\u7531\u5EA6\u3002\"\r\n },\r\n {\r\n \"name\": \"degrees_freedom2\",\r\n \"detail\": \"\u5206\u6BCD\u81EA\u7531\u5EA6\u3002\"\r\n }\r\n ]\r\n },\r\n \"VAR_P\": {\r\n \"d\": \"\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u65B9\u5DEE\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u65B9\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6578\u64DA\u96C6\u4E2D\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, \u2026\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"VAR_S\": {\r\n \"d\": \"\u57FA\u65BC\u6A23\u672C\u8A08\u7B97\u65B9\u5DEE\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6A23\u672C\u8A08\u7B97\u65B9\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, \u2026\",\r\n \"detail\": \"[\u53EF\u9078] - \u6A23\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"VARA\": {\r\n \"d\": \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u65B9\u5DEE,\u5C06\u6587\u672C\u53D6\u503C\u4E3A0\u3002\",\r\n \"a\": \"\u57FA\u4E8E\u6837\u672C\u8BA1\u7B97\u65B9\u5DEE\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"value2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6A23\u672C\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"VARPA\": {\r\n \"d\": \"\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u65B9\u5DEE,\u5C07\u6587\u5B57\u53D6\u503C\u70BA0\u3002\",\r\n \"a\": \"\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u65B9\u5DEE\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6A23\u672C\u4E2D\u7684\u7B2C\u4E00\u9805\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u6578\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"STEYX\": {\r\n \"d\": \"\u8FD4\u56DE\u901A\u904E\u7DDA\u6027\u56DE\u6B78\u6CD5\u9810\u6E2C\u6BCF\u500B x \u7684 y \u503C\u6642\u6240\u7522\u751F\u7684\u6A19\u6E96\u8AA4\u5DEE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u901A\u904E\u7DDA\u6027\u56DE\u6B78\u6CD5\u9810\u6E2C\u6BCF\u500B x \u7684 y \u503C\u6642\u6240\u7522\u751F\u7684\u6A19\u6E96\u8AA4\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"STANDARDIZE\": {\r\n \"d\": \"\u7D66\u5B9A\u5206\u4F48\u7684\u5E73\u5747\u503C\u548C\u6A19\u6E96\u5DEE,\u8A08\u7B97\u4E00\u500B\u96A8\u6A5F\u8B8A\u6578\u6B63\u614B\u5316\u7684\u76F8\u61C9\u503C\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u5206\u4F48\u7684\u5E73\u5747\u503C\u548C\u6A19\u6E96\u5DEE,\u8A08\u7B97\u4E00\u500B\u96A8\u6A5F\u8B8A\u6578\u6B63\u614B\u5316\u7684\u76F8\u61C9\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"x\",\r\n \"detail\": \"\u8981\u6B63\u614B\u5316\u7684\u96A8\u6A5F\u8B8A\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"mean\",\r\n \"detail\": \"\u5206\u4F48\u7684\u5E73\u5747\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"standard_dev\",\r\n \"detail\": \"\u5206\u4F48\u7684\u6A19\u6E96\u5DEE\u3002\"\r\n }\r\n ]\r\n },\r\n \"SMALL\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7684\u7B2Ck\u500B\u6700\u5C0F\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u64DA\u96C6\u4E2D\u7684\u7B2Ck\u500B\u6700\u5C0F\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u9700\u8981\u627E\u5230\u7B2Ck\u500B\u6700\u5C0F\u503C\u7684\u6578\u7D44\u6216\u6578\u503C\u6578\u64DA\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"k\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7684\u6578\u64DA\u5728\u6578\u7D44\u6216\u6578\u64DA\u5340\u57DF\u88CF\u7684\u4F4D\u7F6E\uFF08\u5F9E\u5C0F\u5230\u5927\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"SLOPE\": {\r\n \"d\": \"\u8A08\u7B97\u901A\u904E\u6578\u64DA\u96C6\u7684\u7DDA\u6027\u56DE\u6B78\u5F97\u5230\u7684\u76F4\u7DDA\u7684\u659C\u7387\u3002\",\r\n \"a\": \"\u8A08\u7B97\u901A\u904E\u6578\u64DA\u96C6\u7684\u7DDA\u6027\u56DE\u6B78\u5F97\u5230\u7684\u76F4\u7DDA\u7684\u659C\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA_y\",\r\n \"detail\": \"\u4EE3\u8868\u56E0\u8B8A\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA_x\",\r\n \"detail\": \"\u4EE3\u8868\u5F15\u6578\u6578\u64DA\u6578\u7D44\u6216\u77E9\u9663\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"SKEW\": {\r\n \"d\": \"\u8FD4\u56DE\u5206\u4F48\u7684\u504F\u659C\u5EA6\u3002\u504F\u659C\u5EA6\u8868\u660E\u5206\u4F48\u76F8\u5C0D\u65BC\u5E73\u5747\u503C\u7684\u4E0D\u5C0D\u7A31\u7A0B\u5EA6\u3002\u6B63\u504F\u659C\u5EA6\u8868\u660E\u5206\u4F48\u7684\u4E0D\u5C0D\u7A31\u5C3E\u90E8\u8DA8\u5411\u65BC\u66F4\u591A\u6B63\u503C\u3002\u8CA0\u504F\u659C\u5EA6\u8868\u660E\u5206\u4F48\u7684\u4E0D\u5C0D\u7A31\u5C3E\u90E8\u8DA8\u5411\u65BC\u66F4\u591A\u8CA0\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5206\u4F48\u7684\u504F\u659C\u5EA6\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6578\u64DA\u96C6\u4E2D\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"SKEW_P\": {\r\n \"d\": \"\u8FD4\u56DE\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u7684\u5206\u4F48\u4E0D\u5C0D\u7A31\u5EA6:\u8868\u660E\u5206\u4F48\u76F8\u5C0D\u65BC\u5E73\u5747\u503C\u7684\u4E0D\u5C0D\u7A31\u7A0B\u5EA6\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u57FA\u65BC\u6A23\u672C\u7E3D\u9AD4\u7684\u5206\u4F48\u4E0D\u5C0D\u7A31\u5EA6:\u8868\u660E\u5206\u4F48\u76F8\u5C0D\u65BC\u5E73\u5747\u503C\u7684\u4E0D\u5C0D\u7A31\u7A0B\u5EA6\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u503C1\",\r\n \"detail\": \"\u6578\u64DA\u96C6\u4E2D\u7684\u7B2C\u4E00\u500B\u503C\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u503C2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u96C6\u4E2D\u5305\u542B\u7684\u5176\u4ED6\u503C\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"VLOOKUP\": {\r\n \"d\": \"\u7E31\u5411\u67E5\u627E\u3002\u5728\u7BC4\u570D\u7684\u7B2C\u4E00\u5217\u4E2D\u81EA\u4E0A\u800C\u4E0B\u8490\u7D22\u67D0\u500B\u9375\u503C,\u4E26\u8FD4\u56DE\u6240\u627E\u5230\u7684\u884C\u4E2D\u6307\u5B9A\u5132\u5B58\u683C\u7684\u503C\u3002\",\r\n \"a\": \"\u7E31\u5411\u67E5\u627E\u3002\u5728\u7BC4\u570D\u7684\u7B2C\u4E00\u5217\u4E2D\u81EA\u4E0A\u800C\u4E0B\u8490\u7D22\u67D0\u500B\u9375\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8490\u7D22\u9375\u503C\",\r\n \"detail\": \"\u8981\u8490\u7D22\u7684\u503C,\u5982 42\u3001\\\"Cats\\\" \u6216 I24\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u9032\u884C\u8490\u7D22\u7684\u7BC4\u570D\u3002VLOOKUP \u5C07\u5728\u8A72\u7BC4\u570D\u7684\u7B2C\u4E00\u5217\u4E2D\u8490\u7D22\u8490\u7D22\u9375\u503C\u4E2D\u6307\u5B9A\u7684\u9375\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7D22\u5F15\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7684\u503C\u7684\u5217\u7D22\u5F15,\u7BC4\u570D\u4E2D\u7684\u7B2C\u4E00\u5217\u7DE8\u865F\u70BA1\u3002\\n\\n\u5982\u679C\u7D22\u5F15\u4E0D\u662F\u4ECB\u65BC1\u548C\u7BC4\u570D\u4E2D\u7684\u5217\u6578\u4E4B\u9593,\u5C07\u8FD4\u56DE#VALUE\uFF01\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5DF2\u6392\u5E8F\",\r\n \"detail\": \"[\u9810\u8A2D\u503C\u70BATRUE()] -\u8A13\u793A\u8981\u8490\u7D22\u7684\u5217\uFF08\u6307\u5B9A\u7BC4\u570D\u7684\u7B2C\u4E00\u5217\uFF09\u662F\u5426\u5DF2\u6392\u5E8F\u3002\u5927\u591A\u6578\u60C5\u51B5\u4E0B,\u5EFA\u8B70\u8A2D\u70BAFALSE\uFF08\uFF09\u3002\\n\\n\u5EFA\u8B70\u5C07\u5DF2\u6392\u5E8F\u8A2D\u70BAFALSE\u3002\u5982\u679C\u8A2D\u70BAFALSE,\u5C07\u8FD4\u56DE\u5B8C\u5168\u5339\u914D\u9805\u3002\u5982\u679C\u5B58\u5728\u591A\u500B\u5339\u914D\u503C,\u5C07\u8FD4\u56DE\u627E\u5230\u7684\u7B2C\u4E00\u500B\u503C\u5C0D\u61C9\u7684\u5132\u5B58\u683C\u7684\u5167\u5BB9,\u5982\u679C\u627E\u4E0D\u5230\u5339\u914D\u503C,\u5247\u8FD4\u56DE#N/A\u3002\\n\\n\u5982\u679C\u5C07\u5DF2\u6392\u5E8F\u8A2D\u70BATRUE\u6216\u7701\u7565,\u5C07\u8FD4\u56DE\uFF08\u5C0F\u65BC\u6216\u7B49\u65BC\u8490\u7D22\u9375\u503C\u7684\uFF09\u6700\u63A5\u8FD1\u7684\u5339\u914D\u9805\u3002\u5982\u679C\u8490\u7D22\u7684\u5217\u4E2D\u6240\u6709\u7684\u503C\u5747\u5927\u65BC\u8490\u7D22\u9375\u503C,\u5247\u8FD4\u56DE#N/A\u3002\"\r\n }\r\n ]\r\n },\r\n \"HLOOKUP\": {\r\n \"d\": \"\u6A6B\u5411\u67E5\u627E\u3002\u5728\u7BC4\u570D\u7684\u7B2C\u4E00\u884C\u4E2D\u8490\u7D22\u67D0\u500B\u9375\u503C,\u4E26\u8FD4\u56DE\u6240\u627E\u5230\u7684\u5217\u4E2D\u6307\u5B9A\u5132\u5B58\u683C\u7684\u503C\u3002\",\r\n \"a\": \"\u6A6B\u5411\u67E5\u627E\u3002\u5728\u7BC4\u570D\u7684\u7B2C\u4E00\u884C\u4E2D\u8490\u7D22\u67D0\u500B\u9375\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8490\u7D22\u9375\u503C\",\r\n \"detail\": \"\u8981\u8490\u7D22\u7684\u503C\u3002\u4F8B\u5982,42\u3001\\\"Cats\\\"\u6216I24\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7BC4\u570D\",\r\n \"detail\": \"\u8981\u9032\u884C\u8490\u7D22\u7684\u7BC4\u570D\u3002\u5C07\u5728\u8A72\u7BC4\u570D\u7684\u7B2C\u4E00\u884C\u4E2D\u8490\u7D22\u5728\u8490\u7D22\u9375\u503C\u4E2D\u6307\u5B9A\u7684\u9375\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7D22\u5F15\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7684\u503C\u7684\u884C\u7D22\u5F15,\u7BC4\u570D\u4E2D\u7684\u7B2C\u4E00\u884C\u7DE8\u865F\u70BA1\u3002\\n\\n\u5982\u679C\u7D22\u5F15\u4E0D\u662F\u4ECB\u65BC1\u548C\u7BC4\u570D\u4E2D\u7684\u884C\u6578\u4E4B\u9593,\u5C07\u8FD4\u56DE#VALUE\uFF01\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5DF2\u6392\u5E8F\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE()] - \u8A13\u793A\u8981\u8490\u7D22\u7684\u884C\uFF08\u6307\u5B9A\u7BC4\u570D\u7684\u7B2C\u4E00\u884C\uFF09\u662F\u5426\u5DF2\u6392\u5E8F\u3002\\n\\n\u5982\u679C\u5C07\u5DF2\u6392\u5E8F\u8A2D\u70BATRUE\u6216\u7701\u7565,\u5C07\u8FD4\u56DE\u6700\u63A5\u8FD1\u7684\u5339\u914D\u503C\uFF08\u5C0F\u65BC\u6216\u7B49\u65BC\u8490\u7D22\u9375\u503C\uFF09\u3002\u5982\u679C\u5728\u8490\u7D22\u7684\u884C\u4E2D\u6240\u6709\u7684\u503C\u5747\u5927\u65BC\u8490\u7D22\u9375\u503C,\u5247\u8FD4\u56DE#N/A\u3002\\n\\n\u5982\u679C\u5C07\u5DF2\u6392\u5E8F\u8A2D\u70BATRUE\u6216\u5C07\u5176\u7701\u7565,\u800C\u7BC4\u570D\u7684\u9996\u884C\u4E26\u975E\u8655\u65BC\u5DF2\u6392\u5E8F\u72C0\u614B,\u5247\u8FD4\u56DE\u503C\u53EF\u80FD\u6703\u662F\u932F\u8AA4\u7684\u3002\\n\\n\u5982\u679C\u5C07\u5DF2\u6392\u5E8F\u8A2D\u70BAFALSE,\u5247\u50C5\u8FD4\u56DE\u5B8C\u5168\u5339\u914D\u3002\u5982\u679C\u5B58\u5728\u591A\u500B\u5339\u914D\u503C,\u5C07\u8FD4\u56DE\u8207\u627E\u5230\u7684\u7B2C\u4E00\u500B\u503C\u5C0D\u61C9\u7684\u5132\u5B58\u683C\u7684\u5167\u5BB9,\u5982\u679C\u627E\u4E0D\u5230\u5339\u914D\u503C\u5247\u8FD4\u56DE#N/A\u3002\"\r\n }\r\n ]\r\n },\r\n \"LOOKUP\": {\r\n \"d\": \"\u5728\u884C\u6216\u5217\u4E2D\u67E5\u627E\u76F8\u61C9\u9375,\u4E26\u5C07\u76F8\u61C9\u5132\u5B58\u683C\u7684\u503C\u8FD4\u56DE\u5230\u8207\u8490\u7D22\u884C\u6216\u5217\u6240\u5728\u4F4D\u7F6E\u76F8\u540C\u7684\u7D50\u679C\u7BC4\u570D\u4E2D\u3002\",\r\n \"a\": \"\u5728\u884C\u6216\u5217\u4E2D\u67E5\u627E\u76F8\u61C9\u9375\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8490\u7D22\u9375\u503C\",\r\n \"detail\": \"\u8981\u5728\u884C\u6216\u5217\u4E2D\u8490\u7D22\u7684\u503C\u3002\u4F8B\u5982,42\u3001\\\"Cats\\\" \u6216 I24\u3002\"\r\n },\r\n {\r\n \"name\": \"\u641C\u7D22\u7BC4\u570D | \u641C\u7D22\u7D50\u679C\u6578\u7D44\",\r\n \"detail\": \"\u4F7F\u7528LOOKUP\u7684\u4E00\u7A2E\u65B9\u6CD5\u662F\u7D66\u5B9A\u55AE\u884C\u6216\u55AE\u5217\u5F62\u5F0F\u7684\u641C\u7D22\u7BC4\u570D\u9032\u884C\u8490\u7D22\u67E5\u627E,\u9019\u7A2E\u7BA1\u9053\u8981\u7528\u5230\u53E6\u4E00\u500B\u53C3\u6578\u7D50\u679C\u7BC4\u570D\u3002\u53E6\u4E00\u7A2E\u7BA1\u9053\u662F\u5C07\u9019\u5169\u500B\u53C3\u6578\u5408\u4F75\u70BA\u4E00\u500B\u641C\u7D22\u7D50\u679C\u6578\u7D44,\u5176\u4E2D\u7B2C\u4E00\u884C\u6216\u7B2C\u4E00\u5217\u7528\u65BC\u8490\u7D22,\u4E26\u5C07\u8FD4\u56DE\u503C\u653E\u5728\u8A72\u6578\u7D44\u7684\u6700\u5F8C\u4E00\u884C\u6216\u6700\u5F8C\u4E00\u5217\u4E2D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7D50\u679C\u7BC4\u570D\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7528\u65BC\u5B58\u653E\u8FD4\u56DE\u7D50\u679C\u7684\u7BC4\u570D\u3002\u8FD4\u56DE\u503C\u5C0D\u61C9\u65BC\u5728\u641C\u7D22\u7BC4\u570D\u4E2D\u627E\u5230\u8490\u7D22\u9375\u503C\u7684\u4F4D\u7F6E\u3002\u6B64\u7BC4\u570D\u5FC5\u9808\u50C5\u70BA\u55AE\u884C\u6216\u55AE\u5217,\u800C\u5982\u679C\u60A8\u4F7F\u7528\u7684\u662F\u641C\u7D22\u7D50\u679C\u6578\u7D44\u7BA1\u9053,\u5247\u4E0D\u61C9\u63D0\u4F9B\u6B64\u53C3\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"ADDRESS\": {\r\n \"d\": \"\u8FD4\u56DE\u5B57\u4E32\u5F62\u5F0F\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B57\u4E32\u5F62\u5F0F\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"row_num\",\r\n \"detail\": \"\u4E00\u500B\u6578\u503C,\u6307\u5B9A\u8981\u5728\u5132\u5B58\u683C\u5F15\u7528\u4E2D\u4F7F\u7528\u7684\u884C\u865F\u3002\"\r\n },\r\n {\r\n \"name\": \"column_num\",\r\n \"detail\": \"\u4E00\u500B\u6578\u503C,\u6307\u5B9A\u8981\u5728\u5132\u5B58\u683C\u5F15\u7528\u4E2D\u4F7F\u7528\u7684\u5217\u865F\uFF08\u800C\u975E\u540D\u7A31\uFF09\u3002A\u5217\u7684\u7DE8\u865F\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"abs_num\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA1] - \u4E00\u500B\u6578\u503C,\u6307\u5B9A\u8981\u8FD4\u56DE\u7684\u53C3\u8003\u985E\u578B\u3002\\n\\n1\u8868\u793A\u884C\u5217\u5747\u63A1\u7528\u7D55\u5C0D\u503C\uFF08\u4F8B\u5982$A$1\uFF09\uFF1B\\n\\n2\u8868\u793A\u63A1\u7528\u7D55\u5C0D\u884C\u865F,\u76F8\u5C0D\u5217\u6A19\uFF08\u4F8B\u5982A$1\uFF09\uFF1B\\n\\n3\u8868\u793A\u63A1\u7528\u76F8\u5C0D\u884C\u865F,\u7D55\u5C0D\u5217\u6A19\uFF08\u4F8B\u5982$A1\uFF09\uFF1B\\n\\n4\u8868\u793A\u884C\u5217\u5747\u63A1\u7528\u76F8\u5C0D\u503C\uFF08\u4F8B\u5982A1\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"A1\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u5E03\u6797\u503C,\u8A13\u793A\u63A1\u7528A1\u6A19\u8A18\u5F62\u5F0F\uFF08TRUE\uFF09\u9084\u662FR1C1\u6A19\u8A18\u5F62\u5F0F\uFF08FALSE\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"sheet_text\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u9810\u8A2D] - \u7528\u65BC\u6307\u5B9A\u5730\u5740\u6240\u6307\u5411\u7684\u5DE5\u4F5C\u8868\u540D\u7A31\u3002\"\r\n }\r\n ]\r\n },\r\n \"INDIRECT\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5\u5B57\u4E32\u6307\u5B9A\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5\u5B57\u4E32\u6307\u5B9A\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"ref_text\",\r\n \"detail\": \"\u4EE5\u5E36\u5F15\u865F\u7684\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\"\r\n },\r\n {\r\n \"name\": \"A1\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u5E03\u6797\u503C,\u8A13\u793A\u63A1\u7528A1\u6A19\u8A18\u5F62\u5F0F\uFF08TRUE\uFF09\u9084\u662FR1C1\u6A19\u8A18\u5F62\u5F0F\uFF08FALSE\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"ROW\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u5132\u5B58\u683C\u7684\u884C\u865F\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u5132\u5B58\u683C\u7684\u884C\u865F\",\r\n \"p\": [\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA\u6B64\u516C\u5F0F\u6240\u5728\u7684\u5132\u5B58\u683C] - \u8981\u8FD4\u56DE\u5176\u884C\u865F\u7684\u5132\u5B58\u683C\u3002\\n\\n\u5982\u679C\u5132\u5B58\u683C\u5F15\u7528\u6307\u5411\u7684\u7BC4\u570D\u5176\u5BEC\u5EA6\u5927\u65BC\u4E00\u500B\u5132\u5B58\u683C,\u800C\u6B64\u516C\u5F0F\u4E0D\u662F\u7528\u4F5C\u6578\u7D44\u516C\u5F0F\u7684,\u9019\u6642\u6703\u50C5\u8FD4\u56DE\u5132\u5B58\u683C\u5F15\u7528\u4E2D\u9996\u884C\u7684\u7DE8\u865F\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ROWS\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u7D44\u6216\u7BC4\u570D\u4E2D\u7684\u884C\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u7D44\u6216\u7BC4\u570D\u4E2D\u7684\u884C\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u884C\u6578\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COLUMN\": {\r\n \"d\": \"\u6309\u7167 `A=1` \u7684\u898F\u5247\u8FD4\u56DE\u6307\u5B9A\u5132\u5B58\u683C\u7684\u5217\u865F\u3002\",\r\n \"a\": \"\u6309\u7167 `A=1` \u7684\u898F\u5247\u8FD4\u56DE\u6307\u5B9A\u5132\u5B58\u683C\u7684\u5217\u865F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA\u5305\u542B\u6B64\u516C\u5F0F\u7684\u5132\u5B58\u683C] - \u8981\u8FD4\u56DE\u5176\u5217\u865F\u7684\u5132\u5B58\u683C\u3002A\u5217\u5C0D\u61C9\u7684\u7DE8\u865F\u70BA1\u3002\\n\\n\u5982\u679C\u5132\u5B58\u683C\u5F15\u7528\u662F\u5BEC\u5EA6\u8D85\u904E\u4E00\u500B\u5132\u5B58\u683C\u7684\u7BC4\u570D,\u800C\u6B64\u516C\u5F0F\u4E0D\u662F\u4F5C\u70BA\u6578\u7D44\u516C\u5F0F\u4F86\u4F7F\u7528\u7684,\u56D9\u6B64\u5C07\u8FD4\u56DE\u5132\u5B58\u683C\u5F15\u7528\u4E2D\u7684\u7B2C\u4E00\u5217\u7684\u4F4D\u7F6E\u3002\"\r\n }\r\n ]\r\n },\r\n \"COLUMNS\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u7D44\u6216\u7BC4\u570D\u4E2D\u7684\u5217\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u6578\u7D44\u6216\u7BC4\u570D\u4E2D\u7684\u5217\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u5217\u6578\u7684\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"OFFSET\": {\r\n \"d\": \"\u7D66\u5B9A\u67D0\u7BC4\u570D\u7684\u8D77\u59CB\u5132\u5B58\u683C\u5F15\u7528\u4EE5\u53CA\u8A72\u7BC4\u570D\u6DB5\u84CB\u7684\u884C\u5217\u6578\u91CF,\u8FD4\u56DE\u8A72\u7BC4\u570D\u7684\u5F15\u7528\u3002\",\r\n \"a\": \"\u7D66\u5B9A\u67D0\u7BC4\u570D\u7684\u8D77\u59CB\u5132\u5B58\u683C\u5F15\u7528\u4EE5\u53CA\u8A72\u7BC4\u570D\u6DB5\u84CB\u7684\u884C\u5217\u6578\u91CF,\u8FD4\u56DE\u8A72\u7BC4\u570D\u7684\u5F15\u7528\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u884C\u5217\u504F\u79FB\u91CF\u7684\u8D77\u9EDE\u3002\"\r\n },\r\n {\r\n \"name\": \"rows\",\r\n \"detail\": \"\u8981\u504F\u79FB\u7684\u884C\u6578\u3002\\n\\n\u884C\u504F\u79FB\u91CF\u5FC5\u9808\u662F\u6574\u6578,\u4F46\u4E5F\u53EF\u4EE5\u662F\u8CA0\u6578\u3002\u5982\u679C\u63D0\u4F9B\u7684\u53C3\u6578\u5E36\u6709\u5C0F\u6578,\u5C0F\u6578\u90E8\u5206\u5C07\u88AB\u622A\u53BB\u3002\"\r\n },\r\n {\r\n \"name\": \"cols\",\r\n \"detail\": \"\u8981\u504F\u79FB\u7684\u5217\u6578\u3002\\n\\n\u5217\u504F\u79FB\u91CF\u5FC5\u9808\u662F\u6574\u6578,\u4F46\u4E5F\u53EF\u4EE5\u662F\u8CA0\u6578\u3002\u5982\u679C\u63D0\u4F9B\u7684\u53C3\u6578\u5E36\u6709\u5C0F\u6578,\u5C0F\u6578\u90E8\u5206\u5C07\u88AB\u622A\u53BB\u3002\"\r\n },\r\n {\r\n \"name\": \"height\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u5F9E\u504F\u79FB\u76EE\u6A19\u958B\u59CB\u8FD4\u56DE\u7684\u7BC4\u570D\u7684\u9AD8\u5EA6\u3002\"\r\n },\r\n {\r\n \"name\": \"width\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u5F9E\u504F\u79FB\u76EE\u6A19\u958B\u59CB\u8FD4\u56DE\u7684\u7BC4\u570D\u7684\u5BEC\u5EA6\u3002\"\r\n }\r\n ]\r\n },\r\n \"MATCH\": {\r\n \"d\": \"\u5728\u5132\u5B58\u683C\u4E2D\u8490\u7D22\u6307\u5B9A\u9805,\u7136\u5F8C\u8FD4\u56DE\u8A72\u9805\u5728\u5132\u5B58\u683C\u5340\u57DF\u4E2D\u7684\u76F8\u5C0D\u4F4D\u7F6E\u3002\",\r\n \"a\": \"\u5728\u5132\u5B58\u683C\u4E2D\u8490\u7D22\u6307\u5B9A\u9805,\u7136\u5F8C\u8FD4\u56DE\u8A72\u9805\u5728\u5132\u5B58\u683C\u5340\u57DF\u4E2D\u7684\u76F8\u5C0D\u4F4D\u7F6E\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"lookup_value\",\r\n \"detail\": \"\u8981\u5728 lookup_array \u4E2D\u5339\u914D\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"lookup_array\",\r\n \"detail\": \"\u8981\u8490\u7D22\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\\n\\n\u5982\u679C\u6240\u7528\u7684\u7BC4\u570D\u7684\u9AD8\u5EA6\u548C\u5BEC\u5EA6\u5747\u5927\u65BC1,MATCH\u5C07\u8FD4\u56DE#N/A\uFF01\u3002\"\r\n },\r\n {\r\n \"name\": \"match_type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA1] - \u8981\u63A1\u7528\u7684\u8490\u7D22\u7BA1\u9053\u3002\\n\\n1\u70BA\u9ED8\u8A8D\u985E\u578B,\u6B64\u6642MATCH\u6703\u5047\u8A2D\u7BC4\u570D\u5DF2\u6309\u6607\u51AA\u6392\u5E8F,\u4E26\u8FD4\u56DE\u5C0F\u65BC\u7B49\u65BC\u8490\u7D22\u9375\u503C\u7684\u6700\u5927\u503C\u3002\\n\\n0\u8868\u793A\u5B8C\u5168\u5339\u914D,\u5728\u7BC4\u570D\u672A\u6392\u5E8F\u7684\u60C5\u51B5\u4E0B\u9700\u8981\u4F7F\u7528\u6B64\u7BA1\u9053\u3002\\n\\n-1\u8B93MATCH\u5047\u8A2D\u7BC4\u570D\u662F\u6309\u964D\u5E8F\u6392\u5E8F\u7684,\u4E26\u8FD4\u56DE\u5927\u65BC\u7B49\u65BC\u8490\u7D22\u9375\u503C\u7684\u6700\u5C0F\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"INDEX\": {\r\n \"d\": \"\u8FD4\u56DE\u8868\u683C\u6216\u4E2D\u7684\u5143\u7D20\u503C,\u6B64\u5143\u7D20\u7531\u884C\u865F\u548C\u5217\u865F\u7684\u7D22\u5F15\u503C\u7D66\u5B9A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8868\u683C\u6216\u4E2D\u7684\u5143\u7D20\u503C,\u6B64\u5143\u7D20\u7531\u884C\u865F\u548C\u5217\u865F\u7684\u7D22\u5F15\u503C\u7D66\u5B9A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u5132\u5B58\u683C\u5340\u57DF\u6216\u6578\u7D44\u5E38\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"row_num\",\r\n \"detail\": \"\u9078\u64C7\u6578\u7D44\u4E2D\u7684\u67D0\u884C,\u51FD\u6578\u5F9E\u8A72\u884C\u8FD4\u56DE\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"column_num\",\r\n \"detail\": \"\u9078\u64C7\u6578\u7D44\u4E2D\u7684\u67D0\u5217,\u51FD\u6578\u5F9E\u8A72\u5217\u8FD4\u56DE\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"GETPIVOTDATA\": {\r\n \"d\": \"\u5F9E\u8207\u6307\u5B9A\u884C\u548C\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6578\u64DA\u900F\u8996\u9336\u4E2D\u9078\u53D6\u532F\u7E3D\u503C\u3002\",\r\n \"a\": \"\u5F9E\u8207\u6307\u5B9A\u884C\u548C\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6578\u64DA\u900F\u8996\u9336\u4E2D\u9078\u53D6\u532F\u7E3D\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_field\",\r\n \"detail\": \"\u60A8\u60F3\u5F9E\u6578\u64DA\u900F\u8996\u9336\u4E2D\u7372\u53D6\u5176\u6578\u64DA\u7684\u503C\u540D\u7A31\u3002\\n\u503C\u540D\u7A31\u5FC5\u9808\u62EC\u5728\u5F15\u865F\u4E2D\u6216\u662F\u6307\u5411\u5305\u542B\u76F8\u95DC\u6587\u5B57\u7684\u4EFB\u4F55\u5132\u5B58\u683C\u7684\u5F15\u7528\u3002\\n\u5982\u679C\u6709\u591A\u500B\u503C\u6B04\u4F4D,\u5247\u5FC5\u9808\u4F7F\u7528\u6578\u64DA\u900F\u8996\u9336\u4E2D\u986F\u793A\u7684\u78BA\u5207\u540D\u7A31\uFF08\u5982\\\"\u92B7\u552E\u7E3D\u984D\\\"\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"pivot_table\",\r\n \"detail\": \"\u76EE\u6A19\u6578\u64DA\u900F\u8996\u9336\u4E2D\u7684\u4EFB\u4F55\u5132\u5B58\u683C\u7684\u5F15\u7528\uFF08\u63A8\u85A6\u4F4D\u65BC\u9802\u89D2\u7684\u5132\u5B58\u683C\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"field1\",\r\n \"detail\": \"[\u53EF\u9078] - \u6E90\u6578\u64DA\u96C6\uFF08\u4E0D\u662F\u6578\u64DA\u900F\u8996\u9336\uFF09\u4E2D\u5217\u7684\u540D\u7A31\u3002\"\r\n },\r\n {\r\n \"name\": \"item1\",\r\n \"detail\": \"[\u53EF\u9078] - \u6578\u64DA\u900F\u8996\u9336\u4E2D\u986F\u793A\u7684\u8207\u60A8\u8981\u6AA2\u7D22\u7684\u6B04\u4F4D\u540D\u7A311\u76F8\u5C0D\u61C9\u7684\u884C\u6216\u5217\u7684\u540D\u7A31\u3002\"\r\n }\r\n ]\r\n },\r\n \"CHOOSE\": {\r\n \"d\": \"\u57FA\u65BC\u7D22\u5F15\u8FD4\u56DE\u9078\u9805\u6E05\u55AE\u4E2D\u7684\u5143\u7D20\u3002\",\r\n \"a\": \"\u57FA\u65BC\u7D22\u5F15\u8FD4\u56DE\u9078\u9805\u6E05\u55AE\u4E2D\u7684\u5143\u7D20\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"index_num\",\r\n \"detail\": \"\u6307\u5B9A\u8981\u8FD4\u56DE\u54EA\u4E00\u9805\u3002\\n\\n\u5982\u679C\u7D22\u5F15\u70BA\u96F6\u3001\u8CA0\u503C\u6216\u5927\u65BC\u63D0\u4F9B\u7684\u9078\u64C7\u6578\u91CF,\u5C07\u8FD4\u56DE#VALUE\uFF01\u932F\u8AA4\u3002\"\r\n },\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u4E00\u9805\u53EF\u80FD\u7684\u8FD4\u56DE\u503C\u3002\u5FC5\u9808\u63D0\u4F9B\u3002\u53EF\u4EE5\u662F\u5132\u5B58\u683C\u5F15\u7528\u6216\u55AE\u7368\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5176\u4ED6\u53EF\u4EE5\u9078\u64C7\u7684\u503C\u3002\u9078\u64C7\"\r\n }\r\n ]\r\n },\r\n \"HYPERLINK\": {\r\n \"d\": \"\u5728\u5132\u5B58\u683C\u5167\u5275\u5EFA\u4E00\u500B\u8D85\u9023\u7D50\u3002\",\r\n \"a\": \"\u5728\u5132\u5B58\u683C\u5167\u5275\u5EFA\u4E00\u500B\u8D85\u9023\u7D50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u7DB2\u5740\",\r\n \"detail\": \"\u4EE5\u5F15\u865F\u62EC\u4F4F\u7684\u9023\u7D50\u4F4D\u7F6E\u7684\u5B8C\u6574\u7DB2\u5740,\u6216\u5C0D\u5305\u542B\u9019\u7A2E\u7DB2\u5740\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3002\\n\\n\u50C5\u5141\u8A31\u67D0\u4E9B\u9023\u7D50\u985E\u578B\u3002\u5176\u4E2D\u5305\u62EC:http://\u3001https://\u3001mailto:\u3001aim:\u3001ftp://\u3001gopher://\u3001telnet://\u548Cnews://,\u660E\u78BA\u7981\u7528\u4F7F\u7528\u5176\u4ED6\u5354\u5B9A\u3002\u5982\u679C\u6307\u5B9A\u7684\u662F\u5176\u4ED6\u5354\u5B9A,\u5C07\u6703\u5728\u5132\u5B58\u683C\u4E2D\u986F\u793A\u9023\u7D50\u6A19\u7C64,\u4F46\u8A72\u6A19\u7C64\u4E0D\u6703\u4EE5\u9023\u7D50\u5F62\u5F0F\u5448\u73FE\u3002\\n\\n\u5982\u679C\u672A\u6307\u5B9A\u5354\u5B9A,\u5247\u5047\u8A2D\u4F7F\u7528http://,\u4E26\u5C07\u5176\u4F5C\u70BA\u7DB2\u5740\u7684\u9996\u78BC\u3002\"\r\n },\r\n {\r\n \"name\": \"\u9023\u7D50\u6A19\u7C64\",\r\n \"detail\": \"[\u53EF\u9078-\u9ED8\u8A8D\u70BA\u7DB2\u5740] - \u8981\u5728\u5132\u5B58\u683C\u4E2D\u4F5C\u70BA\u9023\u7D50\u986F\u793A\u7684\u6587\u5B57\uFF08\u7528\u5F15\u865F\u62EC\u8D77\u4F86\u7684\uFF09,\u6216\u8005\u6307\u5411\u5305\u542B\u9019\u7A2E\u6A19\u7C64\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3002\\n\\n\u5982\u679C\u9023\u7D50\u6A19\u7C64\u662F\u6307\u5411\u67D0\u500B\u7A7A\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5982\u679C\u7DB2\u5740\u6709\u6548,\u5C31\u5C07\u5176\u4F5C\u70BA\u9023\u7D50\u986F\u793A,\u5426\u5247\u4F5C\u70BA\u7D14\u6587\u5B57\u986F\u793A\u3002\\n\\n\u5982\u679C\u9023\u7D50\u6A19\u7C64\u70BA\u7A7A\u5B57\u4E32\u5E38\u6578\uFF08\\\"\\\"\uFF09,\u6240\u5728\u5132\u5B58\u683C\u986F\u793A\u7684\u5167\u5BB9\u5C07\u70BA\u7A7A\u767D,\u4F46\u901A\u904E\u9EDE\u64CA\u8A72\u5132\u5B58\u683C\u6216\u8F49\u5165\u8A72\u5132\u5B58\u683C\u4ECD\u7136\u53EF\u4EE5\u8A2A\u554F\u9023\u7D50\u3002\"\r\n }\r\n ]\r\n },\r\n \"TIME\": {\r\n \"d\": \"\u5C07\u7D66\u5B9A\u7684\u5C0F\u6642\u3001\u5206\u9418\u548C\u79D2\u8F49\u63DB\u70BA\u6642\u9593\u3002\",\r\n \"a\": \"\u5C07\u7D66\u5B9A\u7684\u5C0F\u6642\u3001\u5206\u9418\u548C\u79D2\u8F49\u63DB\u70BA\u6642\u9593\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u5C0F\u6642\",\r\n \"detail\": \"0\uFF08\u96F6\uFF09\u5230 32767 \u4E4B\u9593\u7684\u6578\u4F4D,\u4EE3\u8868\u5C0F\u6642\u3002\\n\\n\u4EFB\u4F55\u5927\u65BC 23 \u7684\u503C\u90FD\u6703\u9664\u4EE524,\u9918\u6578\u5C07\u4F5C\u70BA\u5C0F\u6642\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5206\u9418\",\r\n \"detail\": \"0\uFF08\u96F6\uFF09\u5230 32767 \u4E4B\u9593\u7684\u6578\u4F4D,\u4EE3\u8868\u5206\u9418\u3002\\n\\n\u4EFB\u4F55\u5927\u65BC 59 \u7684\u503C\u5C07\u8F49\u63DB\u70BA\u5C0F\u6642\u548C\u5206\u9418\u3002\"\r\n },\r\n {\r\n \"name\": \"\u79D2\",\r\n \"detail\": \"0\uFF08\u96F6\uFF09\u5230 32767 \u4E4B\u9593\u7684\u6578\u4F4D,\u4EE3\u8868\u79D2\u3002\\n\\n\u4EFB\u4F55\u5927\u65BC 59 \u7684\u503C\u5C07\u8F49\u63DB\u70BA\u5C0F\u6642\u3001\u5206\u9418\u548C\u79D2\u3002\"\r\n }\r\n ]\r\n },\r\n \"TIMEVALUE\": {\r\n \"d\": \"\u6309\u4E00\u592924\u5C0F\u6642\u8FD4\u56DE\u8A72\u6642\u9593\u7684\u5206\u6578\u8868\u793A\u3002\",\r\n \"a\": \"\u6309\u4E00\u592924\u5C0F\u6642\u8FD4\u56DE\u8A72\u6642\u9593\u7684\u5206\u6578\u8868\u793A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"time_text\",\r\n \"detail\": \"\u7528\u65BC\u8868\u793A\u6642\u9593\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"EOMONTH\": {\r\n \"d\": \"\u8FD4\u56DE\u67D0\u500B\u6708\u4EFD\u6700\u5F8C\u4E00\u5929\u7684\u5E8F\u865F,\u8A72\u6708\u4EFD\u5728\u53E6\u4E00\u500B\u65E5\u671F\u4E4B\u524D\u6216\u4E4B\u5F8C\u7684\u6578\u500B\u6708\uFF08\u6708\u6578\u7531\u53C3\u6578\u6307\u5B9A\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u67D0\u500B\u6708\u4EFD\u6700\u5F8C\u4E00\u5929\u7684\u5E8F\u865F\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u7D50\u679C\u7684\u53C3\u7167\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"months\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u7684\u8D77\u59CB\u65E5\u671F\u4E4B\u524D\uFF08\u8CA0\uFF09\u6216\u4E4B\u5F8C\uFF08\u6B63\uFF09\u7684\u6708\u6578\u3002\u8FD4\u56DE\u7684\u662F\u8A08\u7B97\u6240\u5F97\u6708\u4EFD\u7684\u6700\u5F8C\u90A3\u5929\u3002\"\r\n }\r\n ]\r\n },\r\n \"EDATE\": {\r\n \"d\": \"\u8FD4\u56DE\u8868\u793A\u67D0\u500B\u65E5\u671F\u7684\u5E8F\u865F,\u8A72\u65E5\u671F\u5728\u53E6\u4E00\u500B\u65E5\u671F\u7684\u6578\u6708\u4E4B\u524D/\u4E4B\u5F8C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8868\u793A\u67D0\u500B\u65E5\u671F\u7684\u5E8F\u865F\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u7D50\u679C\u7684\u53C3\u7167\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"months\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u7684\u8D77\u59CB\u65E5\u671F\u4E4B\u524D\uFF08\u8CA0\uFF09\u6216\u4E4B\u5F8C\uFF08\u6B63\uFF09\u7684\u6708\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"SECOND\": {\r\n \"d\": \"\u8FD4\u56DE\u6642\u9593\u503C\u7684\u79D2\u6578\u3002\u79D2\u6578\u662F0\uFF08\u96F6\uFF09\u523059\u7BC4\u570D\u5167\u7684\u6574\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6642\u9593\u503C\u7684\u79D2\u6578\u3002\u79D2\u6578\u662F0\uFF08\u96F6\uFF09\u523059\u7BC4\u570D\u5167\u7684\u6574\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6642\u9593\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u79D2\u9418\u90E8\u5206\u7684\u6642\u9593\u3002\u5FC5\u9808\u70BA\u4EE5\u4E0B\u503C\u4E4B\u4E00:\u6307\u5411\u5305\u542B\u65E5\u671F/\u6642\u9593\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F/\u6642\u9593\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"MINUTE\": {\r\n \"d\": \"\u4EE5\u6578\u4F4D\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u6642\u9593\u7684\u5206\u9418\u90E8\u5206\u3002\",\r\n \"a\": \"\u4EE5\u6578\u4F4D\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u6642\u9593\u7684\u5206\u9418\u90E8\u5206\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6642\u9593\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u5206\u9418\u90E8\u5206\u7684\u6642\u9593\u3002\u5FC5\u9808\u70BA\u4EE5\u4E0B\u503C\u4E4B\u4E00:\u6307\u5411\u5305\u542B\u65E5\u671F/\u6642\u9593\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F/\u6642\u9593\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"HOUR\": {\r\n \"d\": \"\u4EE5\u6578\u4F4D\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u6642\u9593\u7684\u5C0F\u6642\u90E8\u5206\u3002\",\r\n \"a\": \"\u4EE5\u6578\u4F4D\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u6642\u9593\u7684\u5C0F\u6642\u90E8\u5206\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6642\u9593\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u5C0F\u6642\u90E8\u5206\u7684\u6642\u9593\u3002\u5FC5\u9808\u70BA\u4EE5\u4E0B\u503C\u4E4B\u4E00:\u6307\u5411\u5305\u542B\u65E5\u671F/\u6642\u9593\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F/\u6642\u9593\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"NOW\": {\r\n \"d\": \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u7576\u524D\u65E5\u671F\u548C\u6642\u9593\u3002\",\r\n \"a\": \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u7576\u524D\u65E5\u671F\u548C\u6642\u9593\u3002\",\r\n \"p\": []\r\n },\r\n \"NETWORKDAYS\": {\r\n \"d\": \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\u7684\u6642\u9593\u6BB5\u958B\u59CB\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\u7684\u6642\u9593\u6BB5\u7D50\u675F\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"[\u53EF\u9078] - \u4E00\u500B\u7BC4\u570D\u6216\u6578\u7D44\u5E38\u6578,\u5176\u4E2D\u5305\u542B\u4F5C\u70BA\u7BC0\u5047\u65E5\u7684\u65E5\u671F\u5E8F\u865F\u3002\\n\\n\u5728\u7BC0\u5047\u65E5\u6578\u7D44\u4E2D\u63D0\u4F9B\u7684\u503C\u5FC5\u9808\u662F\u65E5\u671F\u5E8F\u865F\u503C\uFF08\u4F8B\u5982\u7531N\u6240\u8FD4\u56DE\u7684\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982\u7531DATE\u3001DATEVALUE\u6216TO_DATE\u8FD4\u56DE\u7684\u503C\uFF09\u3002\u7531\u7BC4\u570D\u6307\u5B9A\u7684\u503C\u61C9\u8A72\u662F\u6A19\u6E96\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"NETWORKDAYS_INTL\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u7684\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\uFF08\u6392\u9664\u6307\u5B9A\u7684\u9031\u672B\u548C\u7BC0\u5047\u65E5\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u7684\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\uFF08\u6392\u9664\u6307\u5B9A\u7684\u9031\u672B\u548C\u7BC0\u5047\u65E5\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\u7684\u6642\u9593\u6BB5\u958B\u59CB\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u6DE8\u5DE5\u4F5C\u65E5\u5929\u6578\u7684\u6642\u9593\u6BB5\u7D50\u675F\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"weekend\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1] - \u7528\u65BC\u8868\u793A\u54EA\u4E9B\u5929\u70BA\u9031\u672B\u7684\u6578\u4F4D\u6216\u5B57\u4E32\u3002\\n\u5B57\u4E32\u7BA1\u9053:\u53EF\u4EE5\u4F7F\u7528\u75310\u548C1\u7D44\u6210\u7684\u5B57\u4E32\u4F86\u6307\u5B9A\u9031\u672B,\u4E32\u4E2D\u7684\u7B2C\u4E00\u500B\u6578\u4F4D\u5B57\u5143\u4EE3\u8868\u9031\u4E00,\u6700\u5F8C\u4E00\u500B\u5247\u4EE3\u8868\u5468\u65E5\u3002\u96F6\u8868\u793A\u9019\u4E00\u5929\u662F\u5DE5\u4F5C\u65E5,1 \u8868\u793A\u9019\u4E00\u5929\u70BA\u9031\u672B\u3002\u4F8B\u5982,\\\"0000011\\\"\u8868\u793A\u5C07\u9031\u516D\u548C\u5468\u65E5\u4F5C\u70BA\u9031\u672B\u3002\\n\u6578\u4F4D\u7BA1\u9053:\u9019\u7A2E\u7BA1\u9053\u4E0D\u4F7F\u7528\u4E0A\u8FF0\u5B57\u4E32\u5F62\u5F0F,\u800C\u662F\u4F7F\u7528\u4E00\u500B\u6578\u4F4D\u30021 =\u9031\u516D/\u5468\u65E5\u70BA\u9031\u672B,2 =\u5468\u65E5/\u9031\u4E00\u70BA\u9031\u672B,\u4F9D\u6B64\u985E\u63A8\u52477 =\u9031\u4E94/\u9031\u516D\u300211 =\u5468\u65E5\u70BA\u552F\u4E00\u9031\u672B,12 =\u9031\u4E00\u70BA\u552F\u4E00\u9031\u672B,\u4F9D\u6B64\u985E\u63A8\u524717 =\u9031\u516D\u70BA\u552F\u4E00\u9031\u672B\u3002\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"[\u53EF\u9078] - \u9019\u662F\u4E00\u500B\u7BC4\u570D\u6216\u6578\u7D44\u5E38\u6578,\u5176\u4E2D\u5305\u542B\u4F5C\u70BA\u7BC0\u5047\u65E5\u7684\u65E5\u671F\u3002\\n\u5728\u7BC0\u5047\u65E5\u6578\u7D44\u5167\u63D0\u4F9B\u7684\u503C\u5FC5\u9808\u70BA\u65E5\u671F\u5E8F\u6578\u503C\uFF08\u4F8B\u5982N\u7684\u8FD4\u56DE\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982DATE\u3001DATEVALUE\u6216TO_DATE\u7684\u8FD4\u56DE\u503C\uFF09\u3002\u7531\u7BC4\u570D\u6307\u5B9A\u7684\u503C\u61C9\u8A72\u662F\u6A19\u6E96\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISOWEEKNUM\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u65E5\u671F\u5728\u5168\u5E74\u4E2D\u7684 ISO \u5468\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u65E5\u671F\u5728\u5168\u5E74\u4E2D\u7684 ISO \u5468\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"date\",\r\n \"detail\": \"\u7528\u65BC\u65E5\u671F\u548C\u6642\u9593\u8A08\u7B97\u7684\u65E5\u671F-\u6642\u9593\u7A0B\u5F0F\u78BC\u3002\"\r\n }\r\n ]\r\n },\r\n \"WEEKNUM\": {\r\n \"d\": \"\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u7684\u5468\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u7684\u5468\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"serial_number\",\r\n \"detail\": \"\u8981\u78BA\u5B9A\u5176\u4F4D\u65BC\u7B2C\u5E7E\u5468\u7684\u65E5\u671F,\u5FC5\u9808\u662F\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"return_type\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1 ] - \u4EE3\u8868\u4E00\u5468\u8D77\u59CB\u65E5\u7684\u6578\u4F4D,\u7CFB\u7D71\u4E5F\u4F7F\u7528\u8A72\u6578\u4F4D\u4F86\u78BA\u5B9A\u4E00\u5E74\u7684\u7B2C\u4E00\u5468\uFF081=\u5468\u65E5,2=\u9031\u4E00\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"WEEKDAY\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u6578\u4F4D,\u5C0D\u61C9\u65BC\u7D66\u5B9A\u65E5\u671F\u6240\u5728\u7684\u661F\u671F\u5E7E\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u6578\u4F4D,\u5C0D\u61C9\u65BC\u7D66\u5B9A\u65E5\u671F\u6240\u5728\u7684\u661F\u671F\u5E7E\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"serial_number\",\r\n \"detail\": \"\u8981\u70BA\u5176\u78BA\u5B9A\u661F\u671F\u5E7E\u7684\u65E5\u671F\u3002\u5FC5\u9808\u662F\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"return_type\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1] -\u4EE5\u6578\u4F4D\u8A13\u793A\u4F7F\u7528\u54EA\u7A2E\u7DE8\u865F\u9806\u5E8F\u4F86\u8868\u793A\u661F\u671F\u5E7E\u3002\u9ED8\u8A8D\u60C5\u51B5\u4E0B,\u6309\u661F\u671F\u65E5\uFF08= 1\uFF09\u958B\u59CB\u8A08\u7B97\u3002\\n\\n\u5982\u679C\u985E\u578B\u70BA1,\u5247\u661F\u671F\u503C\u5C07\u5F9E\u661F\u671F\u65E5\u958B\u59CB\u7B97\u8D77,\u4E26\u4E14\u661F\u671F\u65E5\u7684\u503C\u70BA1,\u56D9\u6B64\u661F\u671F\u516D\u7684\u503C\u5C31\u662F7\u3002\\n\\n\u5982\u679C\u985E\u578B\u70BA2,\u5247\u661F\u671F\u503C\u5C07\u5F9E\u661F\u671F\u4E00\u958B\u59CB\u7B97\u8D77,\u4E26\u4E14\u661F\u671F\u4E00\u7684\u503C\u70BA1,\u56D9\u6B64\u661F\u671F\u65E5\u7684\u503C\u5C31\u662F7\u3002\\n\\n\u5982\u679C\u985E\u578B\u70BA3,\u5247\u661F\u671F\u503C\u5C07\u5F9E\u661F\u671F\u4E00\u7B97\u8D77,\u4E26\u4E14\u661F\u671F\u4E00\u7684\u503C\u70BA0,\u56D9\u6B64\u661F\u671F\u65E5\u7684\u503C\u5C31\u662F6\u3002\"\r\n }\r\n ]\r\n },\r\n \"DAY\": {\r\n \"d\": \"\u4EE5\u6578\u4F4D\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u6240\u5728\u7684\u7576\u6708\u5E7E\u865F\u3002\",\r\n \"a\": \"\u4EE5\u6578\u4F4D\u683C\u5F0F\u8FD4\u56DE\u7279\u5B9A\u65E5\u671F\u6240\u5728\u7684\u7576\u6708\u5E7E\u865F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"serial_number\",\r\n \"detail\": \"\u8981\u5F9E\u4E2D\u9078\u53D6\u5177\u9AD4\u5E7E\u865F\u7684\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"DAYS\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7D50\u675F\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u958B\u59CB\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"DAYS360\": {\r\n \"d\": \"\u6309\u7167\u6BCF\u5E74360\u5929,\u8FD4\u56DE\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u5DEE\uFF08\u7528\u65BC\u8A08\u7B97\u5229\u606F\uFF09\u3002\",\r\n \"a\": \"\u6309\u7167\u6BCF\u5E74360\u5929,\u8FD4\u56DE\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u5DEE\uFF08\u7528\u65BC\u8A08\u7B97\u5229\u606F\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u958B\u59CB\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7D50\u675F\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"method\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BAFALSE\uFF08\uFF09] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\nFALSE -\u63A1\u7528\u7F8E\u570B\uFF08NASD\uFF09\u65B9\u6CD5\u6642,\u5982\u679C\u8D77\u59CB\u65E5\u671F\u70BA\u67D0\u6708\u7684\u6700\u5F8C\u4E00\u5929,\u70BA\u4FBF\u65BC\u8A08\u7B97,\u6703\u5C07\u8D77\u59CB\u65E5\u671F\u7684\u7576\u6708\u5E7E\u865F\u66F4\u6539\u70BA30\u3002\u6B64\u5916,\u5982\u679C\u7D50\u675F\u65E5\u671F\u662F\u6240\u5728\u6708\u4EFD\u7684\u6700\u5F8C\u4E00\u5929,\u800C\u4E14\u8D77\u59CB\u65E5\u671F\u5728\u5176\u6240\u5728\u6708\u768430\u865F\u4E4B\u524D,\u5247\u5C07\u7D50\u675F\u65E5\u671F\u66F4\u6539\u70BA\u7D50\u675F\u65E5\u671F\u4E4B\u5F8C\u90A3\u500B\u6708\u7684\u7B2C\u4E00\u5929,\u5426\u5247\u5C07\u7D50\u675F\u65E5\u671F\u66F4\u6539\u70BA\u8A72\u6708\u768430\u865F\u3002\\n\\nTRUE -\u63A1\u7528\u6B50\u6D32\u65B9\u6CD5\u6642,\u6703\u5C07\u6240\u6709\u65E5\u671F\u572831\u865F\u7684\u8D77\u59CB\u65E5\u671F\u6216\u7D50\u675F\u65E5\u671F\u66F4\u6539\u70BA\u7576\u6708\u768430\u865F\u3002\"\r\n }\r\n ]\r\n },\r\n \"DATE\": {\r\n \"d\": \"\u5C07\u63D0\u4F9B\u7684\u5E74\u3001\u6708\u3001\u65E5\u8F49\u63DB\u70BA\u65E5\u671F\u3002\",\r\n \"a\": \"\u5C07\u63D0\u4F9B\u7684\u5E74\u3001\u6708\u3001\u65E5\u8F49\u63DB\u70BA\u65E5\u671F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"year\",\r\n \"detail\": \"\u65E5\u671F\u7684\u5E74\u4EFD\u90E8\u5206,\u5305\u542B\u4E00\u5230\u56DB\u4F4D\u6578\u4F4D\u3002\\n\\n\u4ECB\u65BC0\uFF08\u96F6\uFF09\u5230 1899 \u4E4B\u9593,\u6703\u5C07\u8A72\u503C\u8207 1900 \u76F8\u52A0\u4F86\u8A08\u7B97\u5E74\u4EFD\uFF1B\\n\\n\u4ECB\u65BC 1900 \u5230 9999 \u4E4B\u9593,\u5C07\u4F7F\u7528\u8A72\u6578\u503C\u4F5C\u70BA\u5E74\u4EFD\uFF1B\\n\\n\u5C0F\u65BC0\u6216\u5927\u65BC\u7B49\u65BC 10000,\u8FD4\u56DE\u932F\u8AA4\u503C#NUM\uFF01\u3002\"\r\n },\r\n {\r\n \"name\": \"month\",\r\n \"detail\": \"\u65E5\u671F\u7684\u6708\u4EFD\u90E8\u5206,\u4E00\u500B\u6B63\u6574\u6578\u6216\u8CA0\u6574\u6578\u3002\\n\\n\u5982\u679C month \u5927\u65BC 12,\u5247 month \u6703\u5C07\u8A72\u6708\u4EFD\u6578\u8207\u6307\u5B9A\u5E74\u4E2D\u7684\u7B2C\u4E00\u500B\u6708\u76F8\u52A0\u3002\\n\\n\u5982\u679C month \u5C0F\u65BC 1,month \u5247\u5F9E\u6307\u5B9A\u5E74\u4EFD\u7684\u4E00\u6708\u4EFD\u958B\u59CB\u905E\u6E1B\u8A72\u6708\u4EFD\u6578,\u7136\u5F8C\u518D\u52A0\u4E0A 1 \u500B\u6708\u3002\"\r\n },\r\n {\r\n \"name\": \"day\",\r\n \"detail\": \"\u65E5\u671F\u7684\u65E5\u90E8\u5206,\u4E00\u500B\u6B63\u6574\u6578\u6216\u8CA0\u6574\u6578\u3002\\n\\n\u5982\u679C day \u5927\u65BC\u6708\u4E2D\u6307\u5B9A\u7684\u5929\u6578,\u5247 day \u6703\u5C07\u5929\u6578\u8207\u8A72\u6708\u4E2D\u7684\u7B2C\u4E00\u5929\u76F8\u52A0\u3002\\n\\n\u5982\u679C day \u5C0F\u65BC1,\u5247 day \u5F9E\u6307\u5B9A\u6708\u4EFD\u7684\u7B2C\u4E00\u5929\u958B\u59CB\u905E\u6E1B\u8A72\u5929\u6578,\u7136\u5F8C\u518D\u52A0\u4E0A 1 \u5929\u3002\"\r\n }\r\n ]\r\n },\r\n \"DATEVALUE\": {\r\n \"d\": \"\u5C07\u63D0\u4F9B\u7684\u65E5\u671F\u5B57\u4E32\u8F49\u63DB\u70BA\u65E5\u671F\u7684\u5E8F\u865F\u3002\",\r\n \"a\": \"\u5C07\u63D0\u4F9B\u7684\u65E5\u671F\u5B57\u4E32\u8F49\u63DB\u70BA\u65E5\u671F\u7684\u5E8F\u865F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"date_text\",\r\n \"detail\": \"\u8868\u793A\u65E5\u671F\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"DATEDIF\": {\r\n \"d\": \"\u8A08\u7B97\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\u3001\u6708\u6578\u6216\u5E74\u6578\u3002\",\r\n \"a\": \"\u8A08\u7B97\u5169\u500B\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\u3001\u6708\u6578\u6216\u5E74\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8D77\u59CB\u65E5\u671F\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u958B\u59CB\u65E5\u671F\u3002\u5FC5\u9808\u662F\u5C0D\u5305\u542BDATE\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DEDATE\u985E\u578B\u7684\u51FD\u6578\u6216\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7D50\u675F\u65E5\u671F\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7D50\u675F\u65E5\u671F\u3002\u5FC5\u9808\u662F\u5C0D\u5305\u542BDATE\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DEDATE\u985E\u578B\u7684\u51FD\u6578\u6216\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7D44\u7E54\",\r\n \"detail\": \"\u6642\u9593\u7D44\u7E54\u7684\u7E2E\u5BEB\u6587\u5B57\u3002\u4F8B\u5982\\\"M\\\"\u4EE3\u8868\u6708\u3002\u6709\u6548\u503C\u5305\u62EC:\\\"Y\\\"\u3001\\\"M\\\"\u3001\\\"D\\\"\u3001\\\"MD\\\"\u3001\\\"YM\\\"\u548C\\\"YD\\\"\u3002\\n\\n\\\"Y\\\":\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u4E4B\u9593\u7684\u6574\u5E74\u6578\u3002\\n\\n\\\"M\\\":\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u4E4B\u9593\u7684\u6574\u6708\u6578\u3002\\n\\n\\\"D\\\":\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\u3002\\n\\n\\\"MD\\\":\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\uFF08\u4E0D\u8A08\u6574\u6708\u6578\uFF09\u3002\\n\\n\\\"YM\\\":\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u4E4B\u9593\u7684\u6574\u6708\u6578\uFF08\u4E0D\u8A08\u6574\u5E74\u6578\uFF09\u3002\\n\\n\\\"YD\\\":\u8FD4\u56DE\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578\uFF08\u5047\u8A2D\u8D77\u59CB\u65E5\u671F\u548C\u7D50\u675F\u65E5\u671F\u7684\u9593\u9694\u4E0D\u8D85\u904E\u4E00\u5E74\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"WORKDAY\": {\r\n \"d\": \"\u6307\u5B9A\u5DE5\u4F5C\u65E5\u5929\u6578,\u8A08\u7B97\u7D50\u675F\u65E5\u671F\u3002\",\r\n \"a\": \"\u6307\u5B9A\u5DE5\u4F5C\u65E5\u5929\u6578,\u8A08\u7B97\u7D50\u675F\u65E5\u671F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u8A08\u7B97\u7684\u958B\u59CB\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"days\",\r\n \"detail\": \"start_date\u4E4B\u524D\u6216\u4E4B\u5F8C\u4E0D\u542B\u9031\u672B\u53CA\u7BC0\u5047\u65E5\u7684\u5929\u6578\u3002\\n\\n\u70BA\u6B63\u503C\u5C07\u751F\u6210\u672A\u4F86\u65E5\u671F\uFF1B\\n\\n\u70BA\u8CA0\u503C\u751F\u6210\u904E\u53BB\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"[\u53EF\u9078] - \u4E00\u500B\u7BC4\u570D\u6216\u6578\u7D44\u5E38\u6578,\u5176\u4E2D\u5305\u542B\u4F5C\u70BA\u7BC0\u5047\u65E5\u7684\u65E5\u671F\u5E8F\u865F\u3002\\n\\n\u5728\u7BC0\u5047\u65E5\u6578\u7D44\u4E2D\u63D0\u4F9B\u7684\u503C\u5FC5\u9808\u662F\u65E5\u671F\u5E8F\u865F\u503C\uFF08\u4F8B\u5982\u7531N\u6240\u8FD4\u56DE\u7684\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982\u7531DATE\u3001DATEVALUE\u6216TO_DATE\u8FD4\u56DE\u7684\u503C\uFF09\u3002\u7531\u7BC4\u570D\u6307\u5B9A\u7684\u503C\u61C9\u8A72\u662F\u6A19\u6E96\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"WORKDAY_INTL\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u7684\u82E5\u5E72\u500B\u5DE5\u4F5C\u65E5\u4E4B\u524D\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u7684\u5E8F\u865F\uFF08\u4F7F\u7528\u81EA\u5B9A\u7FA9\u9031\u672B\u53C3\u6578\uFF09\u3002 \",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u7684\u82E5\u5E72\u500B\u5DE5\u4F5C\u65E5\u4E4B\u524D\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u7684\u5E8F\u865F\uFF08\u4F7F\u7528\u81EA\u5B9A\u7FA9\u9031\u672B\u53C3\u6578\uFF09\u3002 \",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u958B\u59CB\u65E5\u671F\uFF08\u5C07\u88AB\u622A\u5C3E\u53D6\u6574\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"days\",\r\n \"detail\": \"start_date\u4E4B\u524D\u6216\u4E4B\u5F8C\u7684\u5DE5\u4F5C\u65E5\u7684\u5929\u6578\u3002\\n\\n\u6B63\u503C\u8868\u793A\u672A\u4F86\u65E5\u671F\uFF1B\\n\\n\u8CA0\u503C\u8868\u793A\u904E\u53BB\u65E5\u671F\uFF1B\\n\\n\u96F6\u503C\u8868\u793A\u958B\u59CB\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"weekend\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA1] - \u7528\u65BC\u8868\u793A\u54EA\u4E9B\u5929\u70BA\u9031\u672B\u7684\u6578\u4F4D\u6216\u5B57\u4E32\u3002\\n\u5B57\u4E32\u7BA1\u9053:\u53EF\u4EE5\u4F7F\u7528\u75310\u548C1\u7D44\u6210\u7684\u5B57\u4E32\u4F86\u6307\u5B9A\u9031\u672B,\u4E32\u4E2D\u7684\u7B2C\u4E00\u500B\u6578\u4F4D\u5B57\u5143\u4EE3\u8868\u9031\u4E00,\u6700\u5F8C\u4E00\u500B\u5247\u4EE3\u8868\u5468\u65E5\u3002\u96F6\u8868\u793A\u9019\u4E00\u5929\u662F\u5DE5\u4F5C\u65E5,1\u8868\u793A\u9019\u4E00\u5929\u70BA\u9031\u672B\u3002\u4F8B\u5982,\\\"0000011\\\"\u8868\u793A\u5C07\u9031\u516D\u548C\u5468\u65E5\u4F5C\u70BA\u9031\u672B\u3002\\n\u6578\u4F4D\u7BA1\u9053:\u9019\u7A2E\u7BA1\u9053\u4E0D\u4F7F\u7528\u4E0A\u8FF0\u5B57\u4E32\u5F62\u5F0F,\u800C\u662F\u4F7F\u7528\u4E00\u500B\u6578\u4F4D\u30021 =\u9031\u516D/\u5468\u65E5\u70BA\u9031\u672B,2 =\u5468\u65E5/\u9031\u4E00\u70BA\u9031\u672B,\u4F9D\u6B64\u985E\u63A8\u52477 =\u9031\u4E94/\u9031\u516D\u300211 =\u5468\u65E5\u70BA\u552F\u4E00\u9031\u672B,12 =\u9031\u4E00\u70BA\u552F\u4E00\u9031\u672B,\u4F9D\u6B64\u985E\u63A8\u524717 =\u9031\u516D\u70BA\u552F\u4E00\u9031\u672B\u3002\"\r\n },\r\n {\r\n \"name\": \"holidays\",\r\n \"detail\": \"[\u53EF\u9078] - \u9019\u662F\u4E00\u500B\u7BC4\u570D\u6216\u6578\u7D44\u5E38\u6578,\u5176\u4E2D\u5305\u542B\u4F5C\u70BA\u7BC0\u5047\u65E5\u7684\u65E5\u671F\u3002\\n\u5728\u7BC0\u5047\u65E5\u6578\u7D44\u5167\u63D0\u4F9B\u7684\u503C\u5FC5\u9808\u70BA\u65E5\u671F\u5E8F\u6578\u503C\uFF08\u4F8B\u5982N\u7684\u8FD4\u56DE\u503C\uFF09\u6216\u65E5\u671F\u503C\uFF08\u4F8B\u5982DATE\u3001DATEVALUE\u6216TO_DATE\u7684\u8FD4\u56DE\u503C\uFF09\u3002\u7531\u7BC4\u570D\u6307\u5B9A\u7684\u503C\u61C9\u8A72\u662F\u6A19\u6E96\u7684\u65E5\u671F\u503C\u6216\u65E5\u671F\u5E8F\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"YEAR\": {\r\n \"d\": \"\u8FD4\u56DE\u5C0D\u61C9\u65BC\u67D0\u500B\u65E5\u671F\u7684\u5E74\u4EFD\u3002Year\u4F5C\u70BA 1900 - 9999 \u4E4B\u9593\u7684\u6574\u6578\u8FD4\u56DE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5C0D\u61C9\u65BC\u67D0\u500B\u65E5\u671F\u7684\u5E74\u4EFD\u3002Year\u4F5C\u70BA 1900 - 9999 \u4E4B\u9593\u7684\u6574\u6578\u8FD4\u56DE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"serial_number\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u5E74\u4EFD\u7684\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"YEARFRAC\": {\r\n \"d\": \"\u8FD4\u56DE start_date \u548C end_date \u4E4B\u9593\u7684\u5929\u6578\u5360\u5168\u5E74\u5929\u6578\u7684\u767E\u5206\u6BD4\u3002\",\r\n \"a\": \"\u8FD4\u56DE start_date \u548C end_date \u4E4B\u9593\u7684\u5929\u6578\u5360\u5168\u5E74\u5929\u6578\u7684\u767E\u5206\u6BD4\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"start_date\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u958B\u59CB\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"end_date\",\r\n \"detail\": \"\u8A08\u7B97\u4E2D\u8981\u4F7F\u7528\u7684\u7D50\u675F\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8981\u4F7F\u7528\u7684\u65E5\u8A08\u6578\u57FA\u6E96\u985E\u578B\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"TODAY\": {\r\n \"d\": \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u7576\u524D\u65E5\u671F\u3002\",\r\n \"a\": \"\u4EE5\u65E5\u671F\u503C\u683C\u5F0F\u8FD4\u56DE\u7576\u524D\u65E5\u671F\u3002\",\r\n \"p\": []\r\n },\r\n \"MONTH\": {\r\n \"d\": \"\u8FD4\u56DE\u65E5\u671F\uFF08\u4EE5\u5E8F\u5217\u6578\u8868\u793A\uFF09\u4E2D\u7684\u6708\u4EFD\u3002\u6708\u4EFD\u662F\u4ECB\u65BC1\uFF08\u4E00\u6708\uFF09\u523012\uFF08\u5341\u4E8C\u6708\uFF09\u4E4B\u9593\u7684\u6574\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u65E5\u671F\uFF08\u4EE5\u5E8F\u5217\u6578\u8868\u793A\uFF09\u4E2D\u7684\u6708\u4EFD\u3002\u6708\u4EFD\u662F\u4ECB\u65BC1\uFF08\u4E00\u6708\uFF09\u523012\uFF08\u5341\u4E8C\u6708\uFF09\u4E4B\u9593\u7684\u6574\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"serial_number\",\r\n \"detail\": \"\u8981\u5F9E\u4E2D\u9078\u53D6\u6708\u4EFD\u7684\u65E5\u671F\u3002\u5FC5\u9808\u662F\u4EE5\u4E0B\u4E00\u7A2E:\u5C0D\u5305\u542B\u65E5\u671F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3001\u8FD4\u56DE\u65E5\u671F\u985E\u578B\u7684\u51FD\u6578\u6216\u8005\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"EFFECT\": {\r\n \"d\": \"\u6839\u64DA\u540D\u7FA9\u5229\u7387\u53CA\u6BCF\u5E74\u7684\u8907\u5229\u8A08\u606F\u671F\u6578\u4F86\u8A08\u7B97\u5BE6\u969B\u5E74\u5229\u7387\u3002\",\r\n \"a\": \"\u6839\u64DA\u540D\u7FA9\u5229\u7387\u53CA\u6BCF\u5E74\u7684\u8907\u5229\u8A08\u606F\u671F\u6578\u4F86\u8A08\u7B97\u5BE6\u969B\u5E74\u5229\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"nominal_rate\",\r\n \"detail\": \"\u6BCF\u5E74\u7684\u540D\u7FA9\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"npery\",\r\n \"detail\": \"\u6BCF\u5E74\u7684\u8907\u5229\u8A08\u7B97\u671F\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"DOLLAR\": {\r\n \"d\": \"\u5C07\u6578\u4F4D\u683C\u5F0F\u8A2D\u5B9A\u70BA\u8207\u8A9E\u8A00\u5340\u57DF\u76F8\u5C0D\u61C9\u7684\u8CA8\u5E63\u683C\u5F0F\u3002\",\r\n \"a\": \"\u5C07\u6578\u4F4D\u683C\u5F0F\u8A2D\u5B9A\u70BA\u8207\u8A9E\u8A00\u5340\u57DF\u76F8\u5C0D\u61C9\u7684\u8CA8\u5E63\u683C\u5F0F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8A2D\u5B9A\u683C\u5F0F\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"decimals\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA2] - \u8981\u986F\u793A\u7684\u5C0F\u6578\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u9019\u662F\u8CA0\u6578,\u5247\u5C07\u6578\u4F4D\u56DB\u6368\u4E94\u5165\u5230\u5C0F\u6578\u9EDE\u5DE6\u5074\u3002\"\r\n }\r\n ]\r\n },\r\n \"DOLLARDE\": {\r\n \"d\": \"\u5C07\u4EE5\u6574\u6578\u90E8\u5206\u548C\u5206\u6578\u90E8\u5206\u8F49\u63DB\u70BA\u4EE5\u5C0F\u6578\u90E8\u5206\u8868\u793A\u7684\u91D1\u984D\u6578\u4F4D\",\r\n \"a\": \"\u5C07\u4EE5\u6574\u6578\u90E8\u5206\u548C\u5206\u6578\u90E8\u5206\u8F49\u63DB\u70BA\u4EE5\u5C0F\u6578\u90E8\u5206\u8868\u793A\u7684\u91D1\u984D\u6578\u4F4D\",\r\n \"p\": [\r\n {\r\n \"name\": \"fractional_dollar\",\r\n \"detail\": \"\u4EE5\u6574\u6578\u90E8\u4EFD\u548C\u5206\u6578\u90E8\u5206\u8868\u793A\u7684\u6578\u4F4D,\u7528\u5C0F\u6578\u9EDE\u9694\u958B\u3002\"\r\n },\r\n {\r\n \"name\": \"fraction\",\r\n \"detail\": \"\u7528\u4F5C\u5206\u6578\u4E2D\u7684\u5206\u6BCD\u7684\u6574\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"DOLLARFR\": {\r\n \"d\": \"\u5C07\u5C0F\u6578\u8F49\u63DB\u70BA\u5206\u6578\u8868\u793A\u7684\u91D1\u984D\u6578\u4F4D\u3002\",\r\n \"a\": \"\u5C07\u5C0F\u6578\u8F49\u63DB\u70BA\u5206\u6578\u8868\u793A\u7684\u91D1\u984D\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"decimal_dollar\",\r\n \"detail\": \"\u5C0F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"fraction\",\r\n \"detail\": \"\u7528\u4F5C\u5206\u6578\u4E2D\u7684\u5206\u6BCD\u7684\u6574\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"DB\": {\r\n \"d\": \"\u4F7F\u7528\u56FA\u5B9A\u9918\u984D\u905E\u6E1B\u6CD5,\u8FD4\u56DE\u6307\u5B9A\u671F\u9593\u5167\u67D0\u9805\u56FA\u5B9A\u8CC7\u7522\u7684\u6298\u820A\u503C\u3002\",\r\n \"a\": \"\u4F7F\u7528\u56FA\u5B9A\u9918\u984D\u905E\u6E1B\u6CD5,\u8FD4\u56DE\u6307\u5B9A\u671F\u9593\u5167\u67D0\u9805\u56FA\u5B9A\u8CC7\u7522\u7684\u6298\u820A\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"\u8CC7\u7522\u539F\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"\u6298\u820A\u672B\u5C3E\u6642\u7684\u503C\uFF08\u6709\u6642\u4E5F\u7A31\u70BA\u8CC7\u7522\u6B98\u503C\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"\u8CC7\u7522\u7684\u6298\u820A\u671F\u6578\uFF08\u6709\u6642\u4E5F\u7A31\u4F5C\u8CC7\u7522\u7684\u4F7F\u7528\u58FD\u547D\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"\u5728\u4F7F\u7528\u671F\u9650\u5167\u8981\u8A08\u7B97\u6298\u820A\u7684\u6298\u820A\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"month\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA12] - \u6298\u820A\u7B2C\u4E00\u5E74\u4E2D\u7684\u6708\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"DDB\": {\r\n \"d\": \"\u7528\u96D9\u500D\u9918\u984D\u905E\u6E1B\u6CD5,\u8FD4\u56DE\u6307\u5B9A\u671F\u9593\u5167\u67D0\u9805\u56FA\u5B9A\u8CC7\u7522\u7684\u6298\u820A\u503C\u3002\",\r\n \"a\": \"\u7528\u96D9\u500D\u9918\u984D\u905E\u6E1B\u6CD5,\u8FD4\u56DE\u6307\u5B9A\u671F\u9593\u5167\u67D0\u9805\u56FA\u5B9A\u8CC7\u7522\u7684\u6298\u820A\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"\u8D44\u4EA7\u539F\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"\u6298\u820A\u672B\u5C3E\u6642\u7684\u503C\uFF08\u6709\u6642\u4E5F\u7A31\u70BA\u8CC7\u7522\u6B98\u503C\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"\u8CC7\u7522\u7684\u6298\u820A\u671F\u6578\uFF08\u6709\u6642\u4E5F\u7A31\u4F5C\u8CC7\u7522\u7684\u4F7F\u7528\u58FD\u547D\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"\u5728\u4F7F\u7528\u671F\u9650\u5167\u8981\u8A08\u7B97\u6298\u820A\u7684\u6298\u820A\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"factor\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA2] - \u6298\u820A\u7684\u905E\u6E1B\u4FC2\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"RATE\": {\r\n \"d\": \"\u8FD4\u56DE\u5E74\u91D1\u6BCF\u671F\u7684\u5229\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5E74\u91D1\u6BCF\u671F\u7684\u5229\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u7E3D\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pmt\",\r\n \"detail\": \"\u6BCF\u671F\u7684\u4ED8\u6B3E\u91D1\u984D,\u5728\u5E74\u91D1\u9031\u671F\u5167\u4E0D\u80FD\u66F4\u6539\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u73FE\u503C\u5373\u4E00\u7CFB\u5217\u672A\u4F86\u4ED8\u6B3E\u7576\u524D\u503C\u7684\u7E3D\u548C\u3002\"\r\n },\r\n {\r\n \"name\": \"fv\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u672A\u4F86\u503C,\u6216\u5728\u6700\u5F8C\u4E00\u6B21\u4ED8\u6B3E\u5F8C\u5E0C\u671B\u5F97\u5230\u7684\u73FE\u91D1\u9918\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n },\r\n {\r\n \"name\": \"guess\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0.1] - \u9810\u671F\u5229\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"CUMPRINC\": {\r\n \"d\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u6295\u8CC7\u5728\u591A\u500B\u4ED8\u6B3E\u671F\u5167\u7684\u7D2F\u8A08\u672C\u91D1\u511F\u9084\u984D\u3002\",\r\n \"a\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u6295\u8CC7\u5728\u591A\u500B\u4ED8\u6B3E\u671F\u5167\u7684\u7D2F\u8A08\u672C\u91D1\u511F\u9084\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u7E3D\u4ED8\u6B3E\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u5E74\u91D1\u7684\u73FE\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"start_period\",\r\n \"detail\": \"\u958B\u59CB\u7D2F\u8A08\u8A08\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u865F\u3002\\n\\n\u9996\u671F\u5FC5\u9808\u5927\u65BC\u7B49\u65BC1\u3002\"\r\n },\r\n {\r\n \"name\": \"end_period\",\r\n \"detail\": \"\u7D50\u675F\u7D2F\u8A08\u8A08\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u865F\u3002\\n\\n\u672B\u671F\u5FC5\u9808\u5927\u65BC\u9996\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"\u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUPNUM\": {\r\n \"d\": \"\u8FD4\u56DE\u5728\u7D50\u7B97\u65E5\u548C\u5230\u671F\u65E5\u4E4B\u9593\u7684\u4ED8\u606F\u6B21\u6578\uFF0C\u5411\u4E0A\u820D\u5165\u5230\u6700\u8FD1\u7684\u6574\u6578\",\r\n \"a\": \"\u8FD4\u56DE\u5728\u7D50\u7B97\u65E5\u548C\u5230\u671F\u65E5\u4E4B\u9593\u7684\u4ED8\u606F\u6B21\u6578\uFF0C\u5411\u4E0A\u820D\u5165\u5230\u6700\u8FD1\u7684\u6574\u6578\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"SYD\": {\r\n \"d\": \"\u8FD4\u56DE\u5728\u6307\u5B9A\u671F\u9593\u5167\u8CC7\u7522\u6309\u5E74\u9650\u7E3D\u548C\u6298\u820A\u6CD5\u8A08\u7B97\u7684\u6298\u820A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5728\u6307\u5B9A\u671F\u9593\u5167\u8CC7\u7522\u6309\u5E74\u9650\u7E3D\u548C\u6298\u820A\u6CD5\u8A08\u7B97\u7684\u6298\u820A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"\u8CC7\u7522\u539F\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"\u6298\u820A\u672B\u5C3E\u6642\u7684\u503C\uFF08\u6709\u6642\u4E5F\u7A31\u70BA\u8CC7\u7522\u6B98\u503C\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"\u8CC7\u7522\u7684\u6298\u820A\u671F\u6578\uFF08\u6709\u6642\u4E5F\u7A31\u4F5C\u8CC7\u7522\u7684\u4F7F\u7528\u58FD\u547D\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"period\",\r\n \"detail\": \"\u5728\u4F7F\u7528\u671F\u9650\u5167\u8981\u8A08\u7B97\u6298\u820A\u7684\u6298\u820A\u671F\u3002\"\r\n }\r\n ]\r\n },\r\n \"TBILLEQ\": {\r\n \"d\": \"\u57FA\u65BC\u8CBC\u73FE\u7387\u8A08\u7B97\u7F8E\u570B\u653F\u5E9C\u77ED\u671F\u50B5\u5238\u7684\u7B49\u6548\u5E74\u5316\u6536\u76CA\u7387\u3002\",\r\n \"a\": \"\u57FA\u65BC\u8CBC\u73FE\u7387\u8A08\u7B97\u7F8E\u570B\u653F\u5E9C\u77ED\u671F\u50B5\u5238\u7684\u7B49\u6548\u5E74\u5316\u6536\u76CA\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u50B5\u5238\u7684\u7D50\u7B97\u65E5\u671F,\u6B64\u65E5\u671F\u70BA\u50B5\u5238\u767C\u884C\u5F8C\u4EA4\u4ED8\u7D66\u8CB7\u5BB6\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u50B5\u5238\u7684\u5230\u671F\u6216\u7D50\u675F\u65E5\u671F,\u5C4A\u6642\u53EF\u5C07\u5176\u4EE5\u9762\u503C\u6216\u7968\u9762\u50F9\u503C\u8D16\u56DE\u3002\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"\u50B5\u5238\u8CFC\u8CB7\u6642\u7684\u8CBC\u73FE\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"TBILLYIELD\": {\r\n \"d\": \"\u57FA\u65BC\u50F9\u683C\u8A08\u7B97\u7F8E\u570B\u653F\u5E9C\u77ED\u671F\u50B5\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n \"a\": \"\u57FA\u65BC\u50F9\u683C\u8A08\u7B97\u7F8E\u570B\u653F\u5E9C\u77ED\u671F\u50B5\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u50B5\u5238\u7684\u7D50\u7B97\u65E5\u671F,\u6B64\u65E5\u671F\u70BA\u50B5\u5238\u767C\u884C\u5F8C\u4EA4\u4ED8\u7D66\u8CB7\u5BB6\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u50B5\u5238\u7684\u5230\u671F\u6216\u7D50\u675F\u65E5\u671F,\u5C4A\u6642\u53EF\u5C07\u5176\u4EE5\u9762\u503C\u6216\u7968\u9762\u50F9\u503C\u8D16\u56DE\u3002\"\r\n },\r\n {\r\n \"name\": \"pr\",\r\n \"detail\": \"\u50B5\u5238\u7684\u8CFC\u8CB7\u50F9\u683C\u3002\"\r\n }\r\n ]\r\n },\r\n \"TBILLPRICE\": {\r\n \"d\": \"\u57FA\u65BC\u8CBC\u73FE\u7387\u8A08\u7B97\u7F8E\u570B\u653F\u5E9C\u77ED\u671F\u50B5\u5238\u7684\u50F9\u683C\u3002\",\r\n \"a\": \"\u57FA\u65BC\u8CBC\u73FE\u7387\u8A08\u7B97\u7F8E\u570B\u653F\u5E9C\u77ED\u671F\u50B5\u5238\u7684\u50F9\u683C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u50B5\u5238\u7684\u7D50\u7B97\u65E5\u671F,\u6B64\u65E5\u671F\u70BA\u50B5\u5238\u767C\u884C\u5F8C\u4EA4\u4ED8\u7D66\u8CB7\u5BB6\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u50B5\u5238\u7684\u5230\u671F\u6216\u7D50\u675F\u65E5\u671F,\u5C4A\u6642\u53EF\u5C07\u5176\u4EE5\u9762\u503C\u6216\u7968\u9762\u50F9\u503C\u8D16\u56DE\u3002\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"\u50B5\u5238\u8CFC\u8CB7\u6642\u7684\u8CBC\u73FE\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"PV\": {\r\n \"d\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u5E74\u91D1\u6295\u8CC7\u7684\u73FE\u503C\u3002\",\r\n \"a\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u5E74\u91D1\u6295\u8CC7\u7684\u73FE\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5404\u671F\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u7E3D\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pmt\",\r\n \"detail\": \"\u6BCF\u671F\u7684\u4ED8\u6B3E\u91D1\u984D,\u5728\u5E74\u91D1\u9031\u671F\u5167\u4E0D\u80FD\u66F4\u6539\u3002\"\r\n },\r\n {\r\n \"name\": \"fv\",\r\n \"detail\": \"[\u53EF\u9078] - \u672A\u4F86\u503C,\u6216\u5728\u6700\u5F8C\u4E00\u6B21\u4ED8\u6B3E\u5F8C\u5E0C\u671B\u5F97\u5230\u7684\u73FE\u91D1\u9918\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ACCRINT\": {\r\n \"d\": \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u8B49\u5238\u7684\u61C9\u8A08\u5229\u606F\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u8B49\u5238\u7684\u61C9\u8A08\u5229\u606F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"issue\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u767C\u884C\u65E5\u3002\"\r\n },\r\n {\r\n \"name\": \"first_interest\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u9996\u6B21\u8A08\u606F\u65E5\u3002\"\r\n },\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"par\",\r\n \"detail\": \"\u8B49\u5238\u7684\u7968\u9762\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\\\"\u6B50\u6D3230/360\\\"\u65B9\u6CD5\\\"-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n },\r\n {\r\n \"name\": \"calc_method\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u6307\u5B9A\u7576\u7D50\u7B97\u65E5\u671F\u665A\u65BC\u9996\u6B21\u8A08\u606F\u65E5\u671F\u6642\u7528\u65BC\u8A08\u7B97\u7E3D\u61C9\u8A08\u5229\u606F\u7684\u65B9\u6CD5\u3002\\n\\n\u5982\u679C\u503C\u70BATRUE,\u5247\u8FD4\u56DE\u5F9E\u767C\u884C\u65E5\u5230\u7D50\u7B97\u65E5\u7684\u7E3D\u61C9\u8A08\u5229\u606F\u3002\\n\\n\u5982\u679C\u503C\u70BAFALSE,\u5247\u8FD4\u56DE\u5F9E\u9996\u6B21\u8A08\u606F\u65E5\u5230\u7D50\u7B97\u65E5\u7684\u61C9\u8A08\u5229\u606F\u3002\"\r\n }\r\n ]\r\n },\r\n \"ACCRINTM\": {\r\n \"d\": \"\u8FD4\u56DE\u5728\u5230\u671F\u65E5\u652F\u4ED8\u5229\u606F\u7684\u6709\u50F9\u8B49\u5238\u7684\u61C9\u8A08\u5229\u606F\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5728\u5230\u671F\u65E5\u652F\u4ED8\u5229\u606F\u7684\u6709\u50F9\u8B49\u5238\u7684\u61C9\u8A08\u5229\u606F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"issue\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u767C\u884C\u65E5\u3002\"\r\n },\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"par\",\r\n \"detail\": \"\u8B49\u5238\u7684\u7968\u9762\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUPDAYBS\": {\r\n \"d\": \"\u8FD4\u56DE\u5F9E\u4ED8\u606F\u671F\u958B\u59CB\u5230\u7D50\u7B97\u65E5\u7684\u5929\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5F9E\u4ED8\u606F\u671F\u958B\u59CB\u5230\u7D50\u7B97\u65E5\u7684\u5929\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUPDAYS\": {\r\n \"d\": \"\u8FD4\u56DE\u7D50\u7B97\u65E5\u6240\u5728\u7684\u4ED8\u606F\u671F\u7684\u5929\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D50\u7B97\u65E5\u6240\u5728\u7684\u4ED8\u606F\u671F\u7684\u5929\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] -\u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUPDAYSNC\": {\r\n \"d\": \"\u8FD4\u56DE\u5F9E\u7D50\u7B97\u65E5\u5230\u4E0B\u4E00\u7968\u606F\u652F\u4ED8\u65E5\u4E4B\u9593\u7684\u5929\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5F9E\u7D50\u7B97\u65E5\u5230\u4E0B\u4E00\u7968\u606F\u652F\u4ED8\u65E5\u4E4B\u9593\u7684\u5929\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUPNCD\": {\r\n \"d\": \"\u8A08\u7B97\u7D50\u7B97\u65E5\u4E4B\u5F8C\u7684\u4E0B\u4E00\u7968\u606F\u6216\u5229\u606F\u6D3E\u767C\u65E5\u671F\u3002\",\r\n \"a\": \"\u8A08\u7B97\u7D50\u7B97\u65E5\u4E4B\u5F8C\u7684\u4E0B\u4E00\u7968\u606F\u6216\u5229\u606F\u6D3E\u767C\u65E5\u671F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"COUPPCD\": {\r\n \"d\": \"\u8A08\u7B97\u7D50\u7B97\u65E5\u4E4B\u524D\u7684\u6700\u5F8C\u4E00\u500B\u7968\u606F\u6216\u5229\u606F\u652F\u4ED8\u65E5\u3002\",\r\n \"a\": \"\u8A08\u7B97\u7D50\u7B97\u65E5\u4E4B\u524D\u7684\u6700\u5F8C\u4E00\u500B\u7968\u606F\u6216\u5229\u606F\u652F\u4ED8\u65E5\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4 \u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"FV\": {\r\n \"d\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u5E74\u91D1\u6295\u8CC7\u7684\u672A\u4F86\u50F9\u503C\u3002\",\r\n \"a\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u5E74\u91D1\u6295\u8CC7\u7684\u672A\u4F86\u50F9\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5404\u671F\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u7E3D\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pmt\",\r\n \"detail\": \"\u5404\u671F\u6240\u61C9\u652F\u4ED8\u7684\u91D1\u984D,\u5728\u6574\u500B\u5E74\u91D1\u671F\u9593\u4FDD\u6301\u4E0D\u8B8A\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0 ] - \u73FE\u503C,\u6216\u4E00\u7CFB\u5217\u672A\u4F86\u4ED8\u6B3E\u7684\u7576\u524D\u503C\u7684\u7D2F\u7A4D\u548C\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0 ] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"FVSCHEDULE\": {\r\n \"d\": \"\u8FD4\u56DE\u61C9\u7528\u4E00\u7CFB\u5217\u8907\u5229\u7387\u8A08\u7B97\u7684\u521D\u59CB\u672C\u91D1\u7684\u672A\u4F86\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u61C9\u7528\u4E00\u7CFB\u5217\u8907\u5229\u7387\u8A08\u7B97\u7684\u521D\u59CB\u672C\u91D1\u7684\u672A\u4F86\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"principal\",\r\n \"detail\": \"\u73FE\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"schedule\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u672C\u91D1\u8907\u5229\u7684\u4E00\u7D44\u5229\u7387\u3002\\n\\n\u5229\u7387\u9336\u5FC5\u9808\u662F\u7BC4\u570D\u6216\u6578\u7D44,\u5176\u4E2D\u5305\u542B\u8981\u7528\u65BC\u8A08\u7B97\u8907\u5229\u7684\u4E00\u7D44\u5229\u7387\u3002\u9019\u4E9B\u5229\u7387\u503C\u61C9\u8A72\u4EE5\u5341\u9032\u4F4D\u5C0F\u6578\u5F62\u5F0F\u8868\u793A,\u6216\u8005\u4F7F\u7528UNARY_PERCENT\u4EE5\u767E\u5206\u6BD4\u5F62\u5F0F\u8868\u793A,\u5373\u8868\u793A\u70BA0.09\u6216UNARY_PERCENT\uFF089\uFF09,\u800C\u4E0D\u8981\u8868\u793A\u70BA9\u3002\"\r\n }\r\n ]\r\n },\r\n \"YIELD\": {\r\n \"d\": \"\u8FD4\u56DE\u5B9A\u671F\u652F\u4ED8\u5229\u606F\u7684\u50B5\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B9A\u671F\u652F\u4ED8\u5229\u606F\u7684\u50B5\u5238\u7684\u6536\u76CA\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"pr\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u6E05\u511F\u50F9\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"YIELDDISC\": {\r\n \"d\": \"\u57FA\u65BC\u50F9\u683C\u8A08\u7B97\u6298\u50F9\u767C\u884C\u7684\uFF08\u4E0D\u5E36\u606F\uFF09\u50B5\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n \"a\": \"\u57FA\u65BC\u50F9\u683C\u8A08\u7B97\u6298\u50F9\u767C\u884C\u7684\uFF08\u4E0D\u5E36\u606F\uFF09\u50B5\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"pr\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u6E05\u511F\u50F9\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"NOMINAL\": {\r\n \"d\": \"\u57FA\u65BC\u7D66\u5B9A\u7684\u5BE6\u969B\u5229\u7387\u548C\u5E74\u8907\u5229\u671F\u6578,\u8FD4\u56DE\u540D\u7FA9\u5E74\u5229\u7387\u3002\",\r\n \"a\": \"\u57FA\u65BC\u7D66\u5B9A\u7684\u5BE6\u969B\u5229\u7387\u548C\u5E74\u8907\u5229\u671F\u6578,\u8FD4\u56DE\u540D\u7FA9\u5E74\u5229\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"effect_rate\",\r\n \"detail\": \"\u6BCF\u5E74\u7684\u5BE6\u969B\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"npery\",\r\n \"detail\": \"\u6BCF\u5E74\u7684\u8907\u5229\u671F\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"XIRR\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u7D44\u4E0D\u4E00\u5B9A\u5B9A\u671F\u767C\u751F\u7684\u73FE\u91D1\u6D41\u7684\u5167\u90E8\u6536\u76CA\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u7D44\u4E0D\u4E00\u5B9A\u5B9A\u671F\u767C\u751F\u7684\u73FE\u91D1\u6D41\u7684\u5167\u90E8\u6536\u76CA\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"values\",\r\n \"detail\": \"\u5176\u4E2D\u542B\u6709\u6295\u8CC7\u76F8\u95DC\u6536\u76CA\u6216\u652F\u51FA\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\\n\\n\u73FE\u91D1\u6D41\u6578\u984D\u4E2D\u5FC5\u9808\u81F3\u5C11\u5305\u542B\u4E00\u9805\u8CA0\u7684\u548C\u4E00\u9805\u6B63\u7684\u73FE\u91D1\u6D41\u91D1\u984D\u624D\u80FD\u8A08\u7B97\u56DE\u5831\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"dates\",\r\n \"detail\": \"\u8207\u73FE\u91D1\u6D41\u6578\u984D\u53C3\u6578\u4E2D\u7684\u73FE\u91D1\u6D41\u5C0D\u61C9\u7684\u65E5\u671F\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"guess\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0.1] - \u5C0D\u5167\u90E8\u56DE\u5831\u7387\u7684\u4F30\u7B97\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"MIRR\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u7CFB\u5217\u5B9A\u671F\u73FE\u91D1\u6D41\u7684\u4FEE\u6539\u5F8C\u5167\u90E8\u6536\u76CA\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u7CFB\u5217\u5B9A\u671F\u73FE\u91D1\u6D41\u7684\u4FEE\u6539\u5F8C\u5167\u90E8\u6536\u76CA\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"values\",\r\n \"detail\": \"\u5176\u4E2D\u542B\u6709\u6295\u8CC7\u76F8\u95DC\u6536\u76CA\u6216\u652F\u51FA\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\\n\\n\u73FE\u91D1\u6D41\u6578\u984D\u4E2D\u5FC5\u9808\u81F3\u5C11\u5305\u542B\u4E00\u9805\u8CA0\u7684\u548C\u4E00\u9805\u6B63\u7684\u73FE\u91D1\u6D41\u91D1\u984D\u624D\u80FD\u8A08\u7B97\u56DE\u5831\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"finance_rate\",\r\n \"detail\": \"\u73FE\u91D1\u6D41\u4E2D\u4F7F\u7528\u7684\u8CC7\u91D1\u652F\u4ED8\u7684\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"reinvest_rate\",\r\n \"detail\": \"\u5C07\u73FE\u91D1\u6D41\u518D\u6295\u8CC7\u7684\u6536\u76CA\u7387\u3002\"\r\n }\r\n ]\r\n },\r\n \"IRR\": {\r\n \"d\": \"\u8FD4\u56DE\u7531\u503C\u4E2D\u7684\u6578\u4F4D\u8868\u793A\u7684\u4E00\u7CFB\u5217\u73FE\u91D1\u6D41\u7684\u5167\u90E8\u6536\u76CA\u7387\u3002 \",\r\n \"a\": \"\u8FD4\u56DE\u7531\u503C\u4E2D\u7684\u6578\u4F4D\u8868\u793A\u7684\u4E00\u7CFB\u5217\u73FE\u91D1\u6D41\u7684\u5167\u90E8\u6536\u76CA\u7387\u3002 \",\r\n \"p\": [\r\n {\r\n \"name\": \"values\",\r\n \"detail\": \"\u5176\u4E2D\u542B\u6709\u6295\u8CC7\u76F8\u95DC\u6536\u76CA\u6216\u652F\u51FA\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\\n\\n\u73FE\u91D1\u6D41\u6578\u984D\u4E2D\u5FC5\u9808\u81F3\u5C11\u5305\u542B\u4E00\u9805\u8CA0\u7684\u548C\u4E00\u9805\u6B63\u7684\u73FE\u91D1\u6D41\u91D1\u984D\u624D\u80FD\u8A08\u7B97\u56DE\u5831\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"guess\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0.1] - \u5167\u90E8\u6536\u76CA\u7387\u7684\u4F30\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"NPV\": {\r\n \"d\": \"\u4F7F\u7528\u8CBC\u73FE\u7387\u548C\u4E00\u7CFB\u5217\u672A\u4F86\u652F\u51FA\uFF08\u8CA0\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u4F86\u8A08\u7B97\u4E00\u9805\u6295\u8CC7\u7684\u6DE8\u73FE\u503C\u3002\",\r\n \"a\": \"\u4F7F\u7528\u8CBC\u73FE\u7387\u548C\u4E00\u7CFB\u5217\u672A\u4F86\u652F\u51FA\uFF08\u8CA0\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u4F86\u8A08\u7B97\u4E00\u9805\u6295\u8CC7\u7684\u6DE8\u73FE\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u67D0\u4E00\u671F\u9593\u7684\u8CBC\u73FE\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u7B2C\u4E00\u7B46\u652F\u51FA\uFF08\u8CA0\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"value2, ...\",\r\n \"detail\": \"[\u53EF\u9078] - \u5176\u4ED6\u652F\u51FA\uFF08\u8CA0\u503C\uFF09\u548C\u6536\u76CA\uFF08\u6B63\u503C\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"XNPV\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u7D44\u73FE\u91D1\u6D41\u7684\u6DE8\u73FE\u503C,\u9019\u4E9B\u73FE\u91D1\u6D41\u4E0D\u4E00\u5B9A\u5B9A\u671F\u767C\u751F\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u7D44\u73FE\u91D1\u6D41\u7684\u6DE8\u73FE\u503C,\u9019\u4E9B\u73FE\u91D1\u6D41\u4E0D\u4E00\u5B9A\u5B9A\u671F\u767C\u751F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u61C9\u7528\u65BC\u73FE\u91D1\u6D41\u7684\u8CBC\u73FE\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"values\",\r\n \"detail\": \"\u8207dates\u4E2D\u7684\u652F\u4ED8\u6642\u9593\u76F8\u5C0D\u61C9\u7684\u4E00\u7CFB\u5217\u73FE\u91D1\u6D41\u3002\"\r\n },\r\n {\r\n \"name\": \"dates\",\r\n \"detail\": \"\u8207\u73FE\u91D1\u6D41\u652F\u4ED8\u76F8\u5C0D\u61C9\u7684\u652F\u4ED8\u65E5\u671F\u9336\u3002\"\r\n }\r\n ]\r\n },\r\n \"CUMIPMT\": {\r\n \"d\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u6295\u8CC7\u5728\u4E00\u7CFB\u5217\u4ED8\u6B3E\u671F\u5167\u7684\u7D2F\u8A08\u5229\u606F\u3002\",\r\n \"a\": \"\u57FA\u65BC\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387,\u8A08\u7B97\u6295\u8CC7\u5728\u4E00\u7CFB\u5217\u4ED8\u6B3E\u671F\u5167\u7684\u7D2F\u8A08\u5229\u606F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5229\u606F\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u7E3D\u4ED8\u6B3E\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u73FE\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"start_period\",\r\n \"detail\": \"\u958B\u59CB\u7D2F\u8A08\u8A08\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u865F\u3002\\n\\n\u9996\u671F\u5FC5\u9808\u5927\u65BC\u7B49\u65BC1\u3002\"\r\n },\r\n {\r\n \"name\": \"end_period\",\r\n \"detail\": \"\u7D50\u675F\u7D2F\u8A08\u8A08\u7B97\u7684\u4ED8\u6B3E\u671F\u5E8F\u865F\u3002\\n\\n\u672B\u671F\u5FC5\u9808\u5927\u65BC\u9996\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"\u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"PMT\": {\r\n \"d\": \"\u7528\u65BC\u6839\u64DA\u56FA\u5B9A\u4ED8\u6B3E\u984D\u548C\u56FA\u5B9A\u5229\u7387\u8A08\u7B97\u8CB8\u6B3E\u7684\u4ED8\u6B3E\u984D\u3002\",\r\n \"a\": \"\u7528\u65BC\u6839\u64DA\u56FA\u5B9A\u4ED8\u6B3E\u984D\u548C\u56FA\u5B9A\u5229\u7387\u8A08\u7B97\u8CB8\u6B3E\u7684\u4ED8\u6B3E\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u8CB8\u6B3E\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u8A72\u9805\u8CB8\u6B3E\u7684\u4ED8\u6B3E\u7E3D\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u73FE\u503C,\u6216\u4E00\u7CFB\u5217\u672A\u4F86\u4ED8\u6B3E\u984D\u73FE\u5728\u6240\u503C\u7684\u7E3D\u984D,\u4E5F\u53EB\u672C\u91D1\u3002\"\r\n },\r\n {\r\n \"name\": \"fv\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u672A\u4F86\u503C,\u6216\u5728\u6700\u5F8C\u4E00\u6B21\u4ED8\u6B3E\u5F8C\u5E0C\u671B\u5F97\u5230\u7684\u73FE\u91D1\u9918\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"IPMT\": {\r\n \"d\": \"\u57FA\u65BC\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u7BA1\u9053,\u8FD4\u56DE\u7D66\u5B9A\u671F\u6578\u5167\u5C0D\u6295\u8CC7\u7684\u5229\u606F\u511F\u9084\u984D\u3002\",\r\n \"a\": \"\u57FA\u65BC\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u7BA1\u9053,\u8FD4\u56DE\u7D66\u5B9A\u671F\u6578\u5167\u5C0D\u6295\u8CC7\u7684\u5229\u606F\u511F\u9084\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5404\u671F\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"per\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u5176\u5229\u606F\u6578\u984D\u7684\u671F\u6578,\u5FC5\u9808\u57281\u5230nper\u4E4B\u9593\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u7E3D\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u73FE\u503C,\u6216\u4E00\u7CFB\u5217\u672A\u4F86\u4ED8\u6B3E\u7684\u7576\u524D\u503C\u7684\u7D2F\u7A4D\u548C\u3002\"\r\n },\r\n {\r\n \"name\": \"fv\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u672A\u4F86\u503C,\u6216\u5728\u6700\u5F8C\u4E00\u6B21\u4ED8\u6B3E\u5F8C\u5E0C\u671B\u5F97\u5230\u7684\u73FE\u91D1\u9918\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"PPMT\": {\r\n \"d\": \"\u8FD4\u56DE\u6839\u64DA\u5B9A\u671F\u56FA\u5B9A\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\u800C\u5B9A\u7684\u6295\u8CC7\u5728\u5DF2\u77E5\u671F\u9593\u5167\u7684\u672C\u91D1\u511F\u4ED8\u984D\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6839\u64DA\u5B9A\u671F\u56FA\u5B9A\u4ED8\u6B3E\u548C\u56FA\u5B9A\u5229\u7387\u800C\u5B9A\u7684\u6295\u8CC7\u5728\u5DF2\u77E5\u671F\u9593\u5167\u7684\u672C\u91D1\u511F\u4ED8\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5404\u671F\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"per\",\r\n \"detail\": \"\u6307\u5B9A\u671F\u6578,\u8A72\u503C\u5FC5\u9808\u5728 1 \u5230 nper \u7BC4\u570D\u5167\u3002\"\r\n },\r\n {\r\n \"name\": \"nper\",\r\n \"detail\": \"\u5E74\u91D1\u7684\u4ED8\u6B3E\u7E3D\u671F\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u73FE\u503C\u5373\u4E00\u7CFB\u5217\u672A\u4F86\u4ED8\u6B3E\u7576\u524D\u503C\u7684\u7E3D\u548C\u3002\"\r\n },\r\n {\r\n \"name\": \"fv\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u672A\u4F86\u503C,\u6216\u5728\u6700\u5F8C\u4E00\u6B21\u4ED8\u6B3E\u5F8C\u5E0C\u671B\u5F97\u5230\u7684\u73FE\u91D1\u9918\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"INTRATE\": {\r\n \"d\": \"\u8FD4\u56DE\u5B8C\u5168\u6295\u8CC7\u578B\u8B49\u5238\u7684\u5229\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B8C\u5168\u6295\u8CC7\u578B\u8B49\u5238\u7684\u5229\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"investment\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u6295\u8CC7\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u5230\u671F\u6642\u7684\u514C\u63DB\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"PRICE\": {\r\n \"d\": \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u7684\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B9A\u671F\u4ED8\u606F\u7684\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"yld\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u6E05\u511F\u50F9\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"PRICEDISC\": {\r\n \"d\": \"\u8FD4\u56DE\u6298\u50F9\u767C\u884C\u7684\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6298\u50F9\u767C\u884C\u7684\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"\u6709\u4EF7\u8BC1\u5238\u7684\u8D34\u73B0\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u6E05\u511F\u50F9\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"PRICEMAT\": {\r\n \"d\": \"\u8FD4\u56DE\u5230\u671F\u4ED8\u606F\u7684\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5230\u671F\u4ED8\u606F\u7684\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"issue\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u767C\u884C\u65E5\u3002\"\r\n },\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u5728\u767C\u884C\u65E5\u7684\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"yld\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"RECEIVED\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u6B21\u6027\u4ED8\u606F\u7684\u6709\u50F9\u8B49\u5238\u5230\u671F\u6536\u56DE\u7684\u91D1\u984D\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u6B21\u6027\u4ED8\u606F\u7684\u6709\u50F9\u8B49\u5238\u5230\u671F\u6536\u56DE\u7684\u91D1\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"investment\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u6295\u8CC7\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"discount\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u8CBC\u73FE\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"DISC\": {\r\n \"d\": \"\u8FD4\u56DE\u6709\u50F9\u8B49\u5238\u7684\u8CBC\u73FE\u7387\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6709\u50F9\u8B49\u5238\u7684\u8CBC\u73FE\u7387\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"pr\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u50F9\u683C\uFF08\u6309\u9762\u503C\u70BA\uFFE5100\u8A08\u7B97\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"redemption\",\r\n \"detail\": \"\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684\u6E05\u511F\u50F9\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"NPER\": {\r\n \"d\": \"\u57FA\u65BC\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u7BA1\u9053,\u8FD4\u56DE\u67D0\u9805\u6295\u8CC7\u7684\u7E3D\u671F\u6578\u3002\",\r\n \"a\": \"\u57FA\u65BC\u56FA\u5B9A\u5229\u7387\u53CA\u7B49\u984D\u5206\u671F\u4ED8\u6B3E\u7BA1\u9053,\u8FD4\u56DE\u67D0\u9805\u6295\u8CC7\u7684\u7E3D\u671F\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rate\",\r\n \"detail\": \"\u5404\u671F\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"pmt\",\r\n \"detail\": \"\u5404\u671F\u6240\u61C9\u652F\u4ED8\u7684\u91D1\u984D,\u5728\u6574\u500B\u5E74\u91D1\u671F\u9593\u4FDD\u6301\u4E0D\u8B8A\u3002\"\r\n },\r\n {\r\n \"name\": \"pv\",\r\n \"detail\": \"\u73FE\u503C,\u6216\u4E00\u7CFB\u5217\u672A\u4F86\u4ED8\u6B3E\u7684\u7576\u524D\u503C\u7684\u7D2F\u7A4D\u548C\u3002\"\r\n },\r\n {\r\n \"name\": \"fv\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u672A\u4F86\u503C,\u6216\u5728\u6700\u5F8C\u4E00\u6B21\u4ED8\u6B3E\u5F8C\u5E0C\u671B\u5F97\u5230\u7684\u73FE\u91D1\u9918\u984D\u3002\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BA0] - \u6307\u5B9A\u5404\u671F\u7684\u4ED8\u6B3E\u6642\u9593\u662F\u5728\u671F\u521D\u9084\u662F\u671F\u672B\u3002\\n\\n0\u8868\u793A\u671F\u672B\uFF1B\\n\\n1\u8868\u793A\u671F\u521D\u3002\"\r\n }\r\n ]\r\n },\r\n \"SLN\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u671F\u9593\u5167\u7684\u8CC7\u7522\u7684\u76F4\u7DDA\u6298\u820A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u671F\u9593\u5167\u7684\u8CC7\u7522\u7684\u76F4\u7DDA\u6298\u820A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"cost\",\r\n \"detail\": \"\u8CC7\u7522\u539F\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"salvage\",\r\n \"detail\": \"\u6298\u820A\u672B\u5C3E\u6642\u7684\u503C\uFF08\u6709\u6642\u4E5F\u7A31\u70BA\u8CC7\u7522\u6B98\u503C\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"life\",\r\n \"detail\": \"\u8CC7\u7522\u7684\u6298\u820A\u671F\u6578\uFF08\u6709\u6642\u4E5F\u7A31\u4F5C\u8CC7\u7522\u7684\u4F7F\u7528\u58FD\u547D\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"DURATION\": {\r\n \"d\": \"\u8FD4\u56DE\u5047\u8A2D\u9762\u503C\uFFE5100\u7684\u5B9A\u671F\u4ED8\u606F\u6709\u50F9\u8B49\u5238\u7684\u4FEE\u6B63\u671F\u9650\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5047\u8A2D\u9762\u503C\uFFE5100\u7684\u5B9A\u671F\u4ED8\u606F\u6709\u50F9\u8B49\u5238\u7684\u4FEE\u6B63\u671F\u9650\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"coupon\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"yld\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"MDURATION\": {\r\n \"d\": \"\u8FD4\u56DE\u5047\u8A2D\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684Macauley\u4FEE\u6B63\u671F\u9650\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5047\u8A2D\u9762\u503C\uFFE5100\u7684\u6709\u50F9\u8B49\u5238\u7684Macauley\u4FEE\u6B63\u671F\u9650\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"settlement\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u7D50\u7B97\u65E5\u3002\u6709\u50F9\u8B49\u5238\u7D50\u7B97\u65E5\u662F\u5728\u767C\u884C\u65E5\u4E4B\u5F8C,\u6709\u50F9\u8B49\u5238\u8CE3\u7D66\u8CFC\u8CB7\u8005\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"maturity\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5230\u671F\u65E5\u3002\u5230\u671F\u65E5\u662F\u6709\u50F9\u8B49\u5238\u6709\u6548\u671F\u622A\u6B62\u6642\u7684\u65E5\u671F\u3002\"\r\n },\r\n {\r\n \"name\": \"coupon\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u606F\u7968\u5229\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"yld\",\r\n \"detail\": \"\u6709\u50F9\u8B49\u5238\u7684\u5E74\u6536\u76CA\u7387\u3002\"\r\n },\r\n {\r\n \"name\": \"frequency\",\r\n \"detail\": \"\u5E74\u4ED8\u606F\u6B21\u6578\u3002\\n\\n\u5982\u679C\u6309\u5E74\u652F\u4ED8,frequency = 1\uFF1B\\n\\n\u6309\u534A\u5E74\u671F\u652F\u4ED8,frequency = 2\uFF1B\\n\\n\u6309\u5B63\u652F\u4ED8,frequency = 4\u3002\"\r\n },\r\n {\r\n \"name\": \"basis\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u8A13\u793A\u8981\u4F7F\u7528\u54EA\u7A2E\u5929\u6578\u8A08\u7B97\u65B9\u6CD5\u3002\\n\\n0\u8868\u793A\\\"\u7F8E\u570B\uFF08NASD\uFF0930/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u6309\u7167\u7F8E\u570B\u5168\u570B\u8B49\u5238\u4EA4\u6613\u5546\u5354\u6703\u6A19\u6E96,\u5047\u8A2D\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929,\u4E26\u5C0D\u6240\u8F38\u5165\u7684\u6708\u672B\u65E5\u671F\u9032\u884C\u5177\u9AD4\u8ABF\u6574\u3002\\n\\n1\u8868\u793A\\\"\u5BE6\u969B/\u5BE6\u969B\\\"\u65B9\u6CD5-\u6B64\u65B9\u6CD5\u8A08\u7B97\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u548C\u6240\u6D89\u53CA\u7684\u5E74\u4EFD\u4E2D\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97\u3002\u6B64\u65B9\u6CD5\u7528\u65BC\u7F8E\u570B\u9577\u671F\u50B5\u5238,\u4E5F\u662F\u5728\u975E\u8CA1\u7D93\u7528\u9014\u65B9\u9762\u4F7F\u7528\u6700\u591A\u7684\u65B9\u6CD5\u3002\\n\\n2\u8868\u793A\\\"\u5BE6\u969B/360\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97, \u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA360\u5929\u3002\\n\\n3\u8868\u793A\\\"\u5BE6\u969B/365\\\"\u65B9\u6CD5 - \u6B64\u65B9\u6CD5\u57FA\u65BC\u6307\u5B9A\u65E5\u671F\u4E4B\u9593\u7684\u5BE6\u969B\u5929\u6578\u9032\u884C\u8A08\u7B97,\u4F46\u5047\u5B9A\u6BCF\u5E74\u70BA365\u5929\u3002\\n\\n4\u8868\u793A\\\"\u6B50\u6D3230 / 360\\\"\u65B9\u6CD5-\u985E\u4F3C\u65BC0,\u6B64\u65B9\u6CD5\u57FA\u65BC\u6BCF\u670830\u5929\u3001\u6BCF\u5E74360\u5929\u9032\u884C\u8A08\u7B97,\u4F46\u6309\u7167\u6B50\u6D32\u91D1\u878D\u6163\u4F8B\u5C0D\u6708\u672B\u65E5\u671F\u9032\u884C\u8ABF\u6574\u3002\"\r\n }\r\n ]\r\n },\r\n \"BIN2DEC\": {\r\n \"d\": \"\u5C07\u4E8C\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u4E8C\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768410\u4F4D\u4E8C\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u5C0D\u65BC\u6B64\u51FD\u6578,\u6700\u5927\u7684\u6B63\u6578\u8F38\u5165\u503C\u70BA0111111111,\u6700\u5C0F\u7684\u8CA0\u6578\u8F38\u5165\u503C\u70BA1000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u4E8C\u9032\u4F4D\u6578,\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,BIN2DEC\uFF08100\uFF09\u548CBIN2DEC\uFF08\\\"100\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA4\u3002\"\r\n }\r\n ]\r\n },\r\n \"BIN2HEX\": {\r\n \"d\": \"\u5C07\u4E8C\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u516D\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u4E8C\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u516D\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768410\u4F4D\u4E8C\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u5C0D\u65BC\u6B64\u51FD\u6578,\u6700\u5927\u7684\u6B63\u6578\u8F38\u5165\u503C\u70BA0111111111,\u6700\u5C0F\u7684\u8CA0\u6578\u8F38\u5165\u503C\u70BA1000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u4E8C\u9032\u4F4D\u6578,\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,BIN2HEX\uFF0811111\uFF09\u548CBIN2HEX\uFF08\\\"11111\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA1F\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] -\u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\u4F8B\u5982,BIN2HEX\uFF08\\\"11111\\\",8\uFF09\u6240\u5F97\u7684\u7D50\u679C\u503C\u70BA0000001F\u3002\\n\\n\u5982\u679C\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u70BA1,\u5247\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u7576\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u5927\u65BC\u7B49\u65BC1000000000\u6642\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"BIN2OCT\": {\r\n \"d\": \"\u4E8C\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u516B\u9032\u5236\u6578\u3002\",\r\n \"a\": \"\u4E8C\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u516B\u9032\u5236\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u7684\u5E36\u7B26\u865F\u768410\u4F4D\u4E8C\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u5C0D\u65BC\u6B64\u51FD\u6578,\u6700\u5927\u7684\u6B63\u6578\u8F38\u5165\u503C\u70BA0111111111,\u6700\u5C0F\u7684\u8CA0\u6578\u8F38\u5165\u503C\u70BA1000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u4E8C\u9032\u4F4D\u6578,\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,BIN2OCT\uFF0811111\uFF09\u548CBIN2OCT\uFF08\\\"11111\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA37\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\u4F8B\u5982,BIN2OCT\uFF08\\\"11111\\\"\uFF09\u5F97\u5230\u7684\u7D50\u679C\u503C\u70BA00000037\u3002\\n\\n\u5982\u679C\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u70BA1,\u5247\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u7576\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u5927\u65BC\u7B49\u65BC1000000000\u6642\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DEC2BIN\": {\r\n \"d\": \"\u5C07\u5341\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u4E8C\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u5341\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u4E8C\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u5341\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5C0D\u65BC\u6B64\u51FD\u6578,\u6700\u5927\u7684\u6B63\u6578\u8F38\u5165\u503C\u70BA511,\u6700\u5C0F\u7684\u8CA0\u6578\u8F38\u5165\u503C\u70BA-512\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5341\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u5341\u9032\u4F4D\u6578,\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,DEC2BIN\uFF08199\uFF09\u548CDEC2BIN\uFF08\\\"199\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA11000111\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5341\u9032\u4F4D\u6578\u70BA\u8CA0\u6578,\u5247\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DEC2HEX\": {\r\n \"d\": \"\u5C07\u5341\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u516D\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u5341\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u516D\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u5341\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA549755813887,\u6700\u5C0F\u8CA0\u6578\u503C\u70BA-549755814888\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5341\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u5341\u9032\u4F4D\u6578,\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,DEC2HEX\uFF08100\uFF09\u548CDEC2HEX\uFF08\\\"100\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA64\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5341\u9032\u4F4D\u6578\u70BA\u8CA0\u6578,\u5247\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DEC2OCT\": {\r\n \"d\": \"\u5C07\u5341\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u516B\u9032\u5236\u6578\u3002\",\r\n \"a\": \"\u5C07\u5341\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u516B\u9032\u5236\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u7684\u5341\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA536870911,\u6700\u5C0F\u8CA0\u6578\u503C\u70BA-53687092\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5341\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u5341\u9032\u4F4D\u6578,\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,DEC2OCT\uFF08199\uFF09\u548CDEC2OCT\uFF08\\\"199\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA307\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] -\u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5341\u9032\u4F4D\u6578\u70BA\u8CA0\u6578,\u5247\u5FFD\u7565\u6B64\u503C \u3002\"\r\n }\r\n ]\r\n },\r\n \"HEX2BIN\": {\r\n \"d\": \"\u5C07\u5341\u516D\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u4E8C\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u5341\u516D\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u4E8C\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768440\u4F4D\u5341\u516D\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA1FF,\u6700\u5C0F\u8CA0\u6578\u503C\u70BAFFFFFFFE00\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u5341\u516D\u9032\u4F4D\u6578,\u51FD\u6578\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,HEX2BIN\uFF08199\uFF09\u548CHEX2BIN\uFF08\\\"199\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA110011001\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u70BA1,\u5247\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u7576\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u5927\u65BC\u7B49\u65BC8000000000\u6642\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"HEX2DEC\": {\r\n \"d\": \"\u5C07\u5341\u516D\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u5341\u516D\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768440\u4F4D\u5341\u516D\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA7fffffffff,\u6700\u5C0F\u8CA0\u6578\u503C\u70BA8000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u5341\u516D\u9032\u4F4D\u6578,\u51FD\u6578\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,HEX2DEC\uFF08199\uFF09\u548CHEX2DEC\uFF08\\\"199\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA409 \u3002\"\r\n }\r\n ]\r\n },\r\n \"HEX2OCT\": {\r\n \"d\": \"\u5C07\u5341\u516D\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u516B\u9032\u5236\u6578\u3002\",\r\n \"a\": \"\u5C07\u5341\u516D\u9032\u4F4D\u6578\u8F49\u63DB\u70BA\u516B\u9032\u5236\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u7684\u5E36\u7B26\u865F\u768440\u4F4D\u5341\u516D\u9032\u4F4D\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA1FFFFFFF,\u6700\u5C0F\u8CA0\u6578\u503C\u70BAFFE0000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u662F\u6709\u6548\u7684\u5341\u516D\u9032\u4F4D\u6578,\u51FD\u6578\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,HEX2OCT\uFF08199\uFF09\u548CHEX2OCT\uFF08\\\"199\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA631\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u6700\u9AD8\u4F4D\u70BA1,\u5247\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u7576\u7D66\u5B9A\u7684\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u5927\u65BC\u7B49\u65BC8000000000\u6642\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"OCT2BIN\": {\r\n \"d\": \"\u5C07\u516B\u9032\u5236\u6578\u8F49\u63DB\u70BA\u4E8C\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u516B\u9032\u5236\u6578\u8F49\u63DB\u70BA\u4E8C\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u4E8C\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768430\u4F4D\u516B\u9032\u5236\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA777,\u6700\u5C0F\u8CA0\u6578\u503C\u70BA7777777000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u662F\u6709\u6548\u7684\u516B\u9032\u5236\u6578,\u51FD\u6578\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,OCT2BIN\uFF08177\uFF09\u548COCT2BIN\uFF08\\\"177\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA1111111\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u7684\u6700\u9AD8\u4F4D\u70BA1,\u5247\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u7576\u7D66\u5B9A\u7684\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u5927\u65BC\u7B49\u65BC4000000000\u6642\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"OCT2DEC\": {\r\n \"d\": \"\u5C07\u516B\u9032\u5236\u6578\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u516B\u9032\u5236\u6578\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5341\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768430\u4F4D\u516B\u9032\u5236\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684ba\u9032\u5236\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA3777777777,\u6700\u5C0F\u8CA0\u6578\u503C\u70BA4000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u662F\u6709\u6548\u7684\u516B\u9032\u5236\u6578,\u51FD\u6578\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,OCT2DEC\uFF08177\uFF09\u548COCT2DEC\uFF08\\\"177\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA127\u3002\"\r\n }\r\n ]\r\n },\r\n \"OCT2HEX\": {\r\n \"d\": \"\u5C07\u516B\u9032\u5236\u6578\u8F49\u63DB\u70BA\u5341\u516D\u9032\u4F4D\u6578\u3002\",\r\n \"a\": \"\u5C07\u516B\u9032\u5236\u6578\u8F49\u63DB\u70BA\u5341\u516D\u9032\u4F4D\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5E36\u7B26\u865F\u7684\u5341\u516D\u9032\u4F4D\u6578\u7684\u5E36\u7B26\u865F\u768430\u4F4D\u516B\u9032\u5236\u6578\u503C\uFF08\u4EE5\u5B57\u4E32\u5F62\u5F0F\u63D0\u4F9B\uFF09\u3002\\n\\n\u5E36\u7B26\u865F\u7684ba\u9032\u5236\u6578\u7684\u6700\u9AD8\u4F4D\u662F\u7B26\u865F\u4F4D\uFF1B\u4E5F\u5C31\u662F\u8AAA,\u8CA0\u6578\u662F\u4EE5\u4E8C\u7684\u88DC\u6578\u5F62\u5F0F\u8868\u793A\u7684\u3002\\n\\n\u6B64\u51FD\u6578\u53EF\u63A5\u53D7\u7684\u6700\u5927\u6B63\u6578\u503C\u70BA3777777777,\u6700\u5C0F\u8CA0\u6578\u503C\u70BA4000000000\u3002\\n\\n\u5982\u679C\u6240\u63D0\u4F9B\u7684\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u662F\u6709\u6548\u7684\u516B\u9032\u5236\u6578,\u51FD\u6578\u6703\u81EA\u52D5\u5C07\u5176\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u5B57\u4E32\u8F38\u5165\u3002\u4F8B\u5982,OCT2HEX\uFF08177\uFF09\u548COCT2HEX\uFF08\\\"177\\\"\uFF09\u5F97\u51FA\u7684\u7D50\u679C\u76F8\u540C,\u5747\u70BA7F\u3002\"\r\n },\r\n {\r\n \"name\": \"places\",\r\n \"detail\": \"[ \u53EF\u9078 ] - \u7D50\u679C\u4E2D\u8981\u78BA\u4FDD\u7684\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u8A2D\u5B9A\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u7D50\u679C\u4E2D\u7684\u6709\u6548\u4F4D\u6578,\u5247\u5728\u7D50\u679C\u7684\u5DE6\u5074\u586B\u51450,\u4F7F\u7E3D\u6709\u6548\u4F4D\u6578\u9054\u5230\u6709\u6548\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u7684\u6700\u9AD8\u4F4D\u70BA1,\u5247\u5FFD\u7565\u6B64\u503C\uFF1B\u5373\u7576\u7D66\u5B9A\u7684\u5E36\u7B26\u865F\u7684\u516B\u9032\u5236\u6578\u5927\u65BC\u7B49\u65BC4000000000\u6642\u5FFD\u7565\u6B64\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"COMPLEX\": {\r\n \"d\": \"\u5C07\u5BE6\u4FC2\u6578\u53CA\u865B\u4FC2\u6578\u8F49\u63DB\u70BA x+yi \u6216 x+yj \u5F62\u5F0F\u7684\u8907\u6578\u3002\",\r\n \"a\": \"\u5C07\u5BE6\u4FC2\u6578\u53CA\u865B\u4FC2\u6578\u8F49\u63DB\u70BA x+yi \u6216 x+yj \u5F62\u5F0F\u7684\u8907\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"real_num\",\r\n \"detail\": \"\u8907\u6578\u7684\u5BE6\u4FC2\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"i_num\",\r\n \"detail\": \"\u8907\u6578\u7684\u865B\u4FC2\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"suffix\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA\\\"i\\\"] - \u8907\u6578\u4E2D\u865B\u4FC2\u6578\u7684\u5C3E\u78BC\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMREAL\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u5BE6\u4FC2\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u5BE6\u4FC2\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber\",\r\n \"detail\": \"\u9700\u8981\u8A08\u7B97\u5176\u5BE6\u4FC2\u6578\u7684\u8907\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMAGINARY\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u865B\u4FC2\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u865B\u4FC2\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber\",\r\n \"detail\": \"\u9700\u8981\u8A08\u7B97\u5176\u865B\u4FC2\u6578\u7684\u8907\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMCONJUGATE\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u5171\u8EDB\u8907\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u5171\u8EDB\u8907\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber\",\r\n \"detail\": \"\u9700\u8981\u8A08\u7B97\u5176\u5171\u8EDB\u6578\u7684\u8907\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMABS\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u7D55\u5C0D\u503C\uFF08\u6A21\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u8907\u6578\u7684\u7D55\u5C0D\u503C\uFF08\u6A21\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber\",\r\n \"detail\": \"\u8981\u8A08\u7B97\u5176\u7D55\u5C0D\u503C\u7684\u8907\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"DELTA\": {\r\n \"d\": \"\u6AA2\u9A57\u5169\u500B\u503C\u662F\u5426\u76F8\u7B49\u3002\u5982\u679C number1=number2,\u5247\u8FD4\u56DE1\uFF1B\u5426\u5247\u8FD4\u56DE0\u3002\",\r\n \"a\": \"\u6AA2\u9A57\u5169\u500B\u503C\u662F\u5426\u76F8\u7B49\u3002\u5982\u679C number1=number2,\u5247\u8FD4\u56DE1\uFF1B\u5426\u5247\u8FD4\u56DE0\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number1\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"number2\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA0] - \u7B2C\u4E8C\u500B\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMSUM\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u500B\u8907\u6578\u7684\u548C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u500B\u8907\u6578\u7684\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber1\",\r\n \"detail\": \"\u8981\u76F8\u52A0\u7684\u7B2C\u4E00\u500B\u8907\u6578\"\r\n },\r\n {\r\n \"name\": \"inumber2, \u2026\",\r\n \"detail\": \"[\u53EF\u9078] -\u8981\u8207\u503C1\u76F8\u52A0\u7684\u5176\u4ED6\u8907\u6578\"\r\n }\r\n ]\r\n },\r\n \"IMSUB\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u5169\u500B\u8907\u6578\u7684\u5DEE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u5169\u500B\u8907\u6578\u7684\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber1\",\r\n \"detail\": \"\u5F9E\uFF08\u8907\uFF09\u6578\u4E2D\u51CF\u53BB inumber2\u3002\"\r\n },\r\n {\r\n \"name\": \"inumber2\",\r\n \"detail\": \"\u5F9E inumber1 \u4E2D\u51CF\uFF08\u8907\uFF09\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMPRODUCT\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u500B\u8907\u6578\u7684\u4E58\u7A4D\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684 1 \u81F3 255 \u500B\u8907\u6578\u7684\u4E58\u7A4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber1\",\r\n \"detail\": \"\u7528\u65BC\u8A08\u7B97\u4E58\u7A4D\u7684\u7B2C\u4E00\u500B\u8907\u6578\"\r\n },\r\n {\r\n \"name\": \"inumber2, \u2026\",\r\n \"detail\": \"[\u53EF\u9078] -\u8981\u76F8\u4E58\u7684\u5176\u4ED6\u8907\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"IMDIV\": {\r\n \"d\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u5169\u500B\u8907\u6578\u7684\u5546\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4EE5 x+yi \u6216 x+yj \u6587\u672C\u683C\u5F0F\u8868\u793A\u7684\u5169\u500B\u8907\u6578\u7684\u5546\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"inumber1\",\r\n \"detail\": \"\u8907\u6578\u5206\u5B50\u6216\u88AB\u9664\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"inumber2\",\r\n \"detail\": \"\u8907\u6578\u5206\u6BCD\u6216\u9664\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"NOT\": {\r\n \"d\": \"\u8FD4\u56DE\u67D0\u500B\u908F\u8F2F\u503C\u7684\u76F8\u53CD\u503C-\\\"NOT\uFF08TRUE\uFF08\uFF09\uFF09\\\"\u5C07\u8FD4\u56DEFALSE\uFF1B\\\"NOT\uFF08FALSE\uFF08\uFF09\uFF09\\\"\u5C07\u8FD4\u56DETRUE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u67D0\u500B\u908F\u8F2F\u503C\u7684\u76F8\u53CD\u503C-\\\"NOT\uFF08TRUE\uFF08\uFF09\uFF09\\\"\u5C07\u8FD4\u56DEFALSE\uFF1B\\\"NOT\uFF08FALSE\uFF08\uFF09\uFF09\\\"\u5C07\u8FD4\u56DETRUE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical\",\r\n \"detail\": \"\u8A08\u7B97\u7D50\u679C\u70BATRUE\u6216FALSE\u7684\u4EFB\u4F55\u503C\u6216\u904B\u7B97\u5F0F\u3002\"\r\n }\r\n ]\r\n },\r\n \"TRUE\": {\r\n \"d\": \"\u8FD4\u56DE\u908F\u8F2F\u503C TRUE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u908F\u8F2F\u503C TRUE\u3002\",\r\n \"p\": []\r\n },\r\n \"FALSE\": {\r\n \"d\": \"\u8FD4\u56DE\u908F\u8F2F\u503C FALSE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u908F\u8F2F\u503C FALSE\u3002\",\r\n \"p\": []\r\n },\r\n \"AND\": {\r\n \"d\": \"\u6240\u6709\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BATRUE\u6642,\u8FD4\u56DETRUE\uFF1B\u53EA\u8981\u6709\u4E00\u500B\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BAFALSE,\u5373\u8FD4\u56DEFALSE\u3002\",\r\n \"a\": \"\u6240\u6709\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BATRUE\u6642,\u8FD4\u56DETRUE\uFF1B\u53EA\u8981\u6709\u4E00\u500B\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BAFALSE,\u5373\u8FD4\u56DEFALSE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical1\",\r\n \"detail\": \"\u8981\u6E2C\u8A66\u7684\u7B2C\u4E00\u500B\u689D\u4EF6,\u5176\u8A08\u7B97\u7D50\u679C\u53EF\u4EE5\u70BATRUE\u6216FALSE\u3002\"\r\n },\r\n {\r\n \"name\": \"logical2,...\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u6E2C\u8A66\u7684\u5176\u4ED6\u689D\u4EF6,\u5176\u8A08\u7B97\u7D50\u679C\u53EF\u4EE5\u70BATRUE\u6216FALSE,\u6700\u591A\u53EF\u5305\u542B255\u500B\u689D\u4EF6\u3002\"\r\n }\r\n ]\r\n },\r\n \"IFERROR\": {\r\n \"d\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u4E0D\u662F\u932F\u8AA4\u503C,\u5C31\u8FD4\u56DE\u7B2C\u4E00\u500B\u53C3\u6578\uFF1B\u5426\u5247,\u8FD4\u56DE\u7B2C\u4E8C\u500B\u53C3\u6578\u3002\",\r\n \"a\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u4E0D\u662F\u932F\u8AA4\u503C\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u6AA2\u67E5\u662F\u5426\u5B58\u5728\u932F\u8AA4\u7684\u53C3\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"value_if_error\",\r\n \"detail\": \"\u516C\u5F0F\u7684\u8A08\u7B97\u7D50\u679C\u932F\u8AA4\u6642\u8FD4\u56DE\u7684\u503C\u3002\u8A08\u7B97\u4EE5\u4E0B\u932F\u8AA4\u985E\u578B:#N/A\u3001#VALUE\uFF01\u3001#REF\uFF01\u3001#DIV/0\uFF01\u3001#NUM\uFF01\u3001#NAME\uFF1F\u6216#NULL\uFF01\u3002\"\r\n }\r\n ]\r\n },\r\n \"IF\": {\r\n \"d\": \"\u7576\u908F\u8F2F\u904B\u7B97\u5F0F\u7684\u503C\u70BATRUE\u6642\u8FD4\u56DE\u4E00\u500B\u503C,\u800C\u7576\u5176\u70BAFALSE\u6642\u8FD4\u56DE\u53E6\u4E00\u500B\u503C\u3002\",\r\n \"a\": \"\u7576\u908F\u8F2F\u904B\u7B97\u5F0F\u7684\u503C\u70BATRUE\u6642\u8FD4\u56DE\u4E00\u500B\u503C,\u800C\u7576\u5176\u70BAFALSE\u6642\u8FD4\u56DE\u53E6\u4E00\u500B\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical_test\",\r\n \"detail\": \"\u4E00\u500B\u904B\u7B97\u5F0F\u6216\u5C0D\u5305\u542B\u904B\u7B97\u5F0F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u8A72\u904B\u7B97\u5F0F\u4EE3\u8868\u67D0\u7A2E\u908F\u8F2F\u503C\uFF08\u5373TRUE\u6216FALSE\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"value_if_true\",\r\n \"detail\": \"\u7576\u908F\u8F2F\u904B\u7B97\u5F0F\u70BATRUE\u6642\u7684\u8FD4\u56DE\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value_if_false\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u70BA\u7A7A\u767D] - \u7576\u908F\u8F2F\u904B\u7B97\u5F0F\u7B49\u65BCFALSE\u6642\u7684\u51FD\u6578\u8FD4\u56DE\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"OR\": {\r\n \"d\": \"\u53EA\u8981\u6709\u4E00\u500B\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BATRUE\u6642,\u8FD4\u56DETRUE\uFF1B\u6240\u6709\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BAFALSE,\u5373\u8FD4\u56DEFALSE\u3002\",\r\n \"a\": \"\u53EA\u8981\u6709\u4E00\u500B\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BATRUE\u6642,\u8FD4\u56DETRUE\uFF1B\u6240\u6709\u53C3\u6578\u7684\u8A08\u7B97\u7D50\u679C\u70BAFALSE,\u5373\u8FD4\u56DEFALSE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"logical1\",\r\n \"detail\": \"\u8981\u6E2C\u8A66\u7684\u7B2C\u4E00\u500B\u689D\u4EF6,\u5176\u8A08\u7B97\u7D50\u679C\u53EF\u4EE5\u70BATRUE\u6216FALSE\u3002\"\r\n },\r\n {\r\n \"name\": \"\u908F\u8F2F\u904B\u7B97\u5F0F2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5176\u4ED6\u904B\u7B97\u5F0F\u6216\u5C0D\u5305\u542B\u904B\u7B97\u5F0F\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u9019\u4E9B\u904B\u7B97\u5F0F\u4EE3\u8868\u67D0\u7A2E\u908F\u8F2F\u503C\uFF08\u5373TRUE\u6216FALSE\uFF09\u6216\u8005\u53EF\u4EE5\u5F37\u5236\u8F49\u63DB\u70BA\u908F\u8F2F\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"NE\": {\r\n \"d\": \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u4E0D\u76F8\u7B49,\u5247\u8FD4\u56DE\\\"TRUE\\\"\uFF1B\u5426\u5247\u8FD4\u56DE\\\"FALSE\\\"\u3002\u76F8\u7576\u65BC\\\"<>\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u4E0D\u76F8\u7B49,\u5247\u8FD4\u56DE\\\"TRUE\\\"\uFF1B\u5426\u5247\u8FD4\u56DE\\\"FALSE\\\"\u3002\u76F8\u7576\u65BC\\\"<>\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u8981\u6AA2\u67E5\u662F\u5426\u8207 value1 \u4E0D\u76F8\u7B49\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"EQ\": {\r\n \"d\": \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u76F8\u7B49,\u5247\u8FD4\u56DE\\\"TRUE\\\"\uFF1B\u5426\u5247\u8FD4\u56DE\\\"FALSE\\\"\u3002\u76F8\u7576\u65BC\\\"=\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u5982\u679C\u6307\u5B9A\u7684\u503C\u76F8\u7B49,\u5247\u8FD4\u56DE\\\"TRUE\\\"\uFF1B\u5426\u5247\u8FD4\u56DE\\\"FALSE\\\"\u3002\u76F8\u7576\u65BC\\\"=\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u8981\u6AA2\u67E5\u662F\u5426\u8207value1\u76F8\u7B49\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"GT\": {\r\n \"d\": false,\r\n \"a\": false,\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u8981\u6E2C\u8A66\u5176\u662F\u5426\u5927\u65BC value2 \u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"GTE\": {\r\n \"d\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u5927\u65BC\u6216\u7B49\u65BC\u7B2C\u4E8C\u500B\uFF0C\u5247\u8FD4\u56DETRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\u76F8\u7576\u65BC\\\">=\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u5927\u65BC\u6216\u7B49\u65BC\u7B2C\u4E8C\u500B\uFF0C\u5247\u8FD4\u56DETRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\u76F8\u7576\u65BC\\\">=\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5927\u4E8E\u7B49\u4E8E value2 \u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"LT\": {\r\n \"d\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u56B4\u683C\u5C0F\u65BC\u7B2C\u4E8C\u500B\uFF0C\u5247\u8FD4\u56DETRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\u76F8\u7576\u65BC\\\"<\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u56B4\u683C\u5C0F\u65BC\u7B2C\u4E8C\u500B\uFF0C\u5247\u8FD4\u56DETRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\u76F8\u7576\u65BC\\\"<\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5C0F\u4E8E value2 \u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"LTE\": {\r\n \"d\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u5C0F\u65BC\u6216\u7B49\u65BC\u7B2C\u4E8C\u500B\uFF0C\u5247\u8FD4\u56DETRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\u76F8\u7576\u65BC\\\"<=\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u5982\u679C\u7B2C\u4E00\u500B\u53C3\u6578\u5C0F\u65BC\u6216\u7B49\u65BC\u7B2C\u4E8C\u500B\uFF0C\u5247\u8FD4\u56DETRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\u76F8\u7576\u65BC\\\"<=\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u8981\u6D4B\u8BD5\u5176\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E value2 \u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ADD\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u6578\u503C\u4E4B\u548C\u3002\u76F8\u7576\u65BC\\\"+\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u6578\u503C\u4E4B\u548C\u3002\u76F8\u7576\u65BC\\\"+\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u52A0\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u52A0\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"MINUS\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u6578\u503C\u4E4B\u5DEE\u3002\u76F8\u7576\u65BC\\\"-\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u6578\u503C\u4E4B\u5DEE\u3002\u76F8\u7576\u65BC\\\"-\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u88AB\u6E1B\u6578,\u5373\u8981\u5C0D\u5176\u8A08\u51CF\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u6E1B\u6578,\u5373\u8981\u5F9Evalue1\u4E2D\u51CF\u9664\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"MULTIPLY\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u6578\u7684\u4E58\u7A4D\u3002\u76F8\u7576\u65BC\\\"*\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u6578\u7684\u4E58\u7A4D\u3002\u76F8\u7576\u65BC\\\"*\\\"\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u4E58\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u4E58\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"DIVIDE\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u53C3\u6578\u76F8\u9664\u6240\u5F97\u7684\u7D50\u679C\u3002\u76F8\u7576\u65BC`/`\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u53C3\u6578\u76F8\u9664\u6240\u5F97\u7684\u7D50\u679C\u3002\u76F8\u7576\u65BC`/`\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"\u8981\u88AB\u9664\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u7528\u65BC\u9664\u5176\u4ED6\u6578\u7684\u6578\u503C\u3002\\n\\n\u9664\u6578\u4E0D\u5F97\u70BA0\u3002\"\r\n }\r\n ]\r\n },\r\n \"CONCAT\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u503C\u7684\u4E32\u806F\u3002\u76F8\u7576\u65BC`&`\u904B\u7B97\u5B50\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u503C\u7684\u4E32\u806F\u3002\u76F8\u7576\u65BC`&`\u904B\u7B97\u5B50\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value1\",\r\n \"detail\": \"value2 \u5C07\u9644\u65BC\u5176\u5F8C\u7684\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"value2\",\r\n \"detail\": \"\u8981\u9644\u65BC value1 \u4E4B\u5F8C\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"UNARY_PERCENT\": {\r\n \"d\": \"\u8FD4\u56DE\u6309\u767E\u5206\u6BD4\u89E3\u91CB\u7684\u6578\u503C\u3002\u4F8B\u5982,\\\"UNARY_PERCENT\uFF08100\uFF09\\\"\u7B49\u65BC1\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6309\u767E\u5206\u6BD4\u89E3\u91CB\u7684\u6578\u503C\u3002\u4F8B\u5982,\\\"UNARY_PERCENT\uFF08100\uFF09\\\"\u7B49\u65BC1\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u4F5C\u70BA\u767E\u5206\u6BD4\u89E3\u91CB\u7684\u6578\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"CONCATENATE\": {\r\n \"d\": \"\u5C07\u5169\u500B\u6216\u591A\u500B\u6587\u5B57\u5B57\u4E32\u806F\u63A5\u70BA\u4E00\u500B\u5B57\u4E32\u3002\",\r\n \"a\": \"\u5C07\u5169\u500B\u6216\u591A\u500B\u6587\u5B57\u5B57\u4E32\u806F\u63A5\u70BA\u4E00\u500B\u5B57\u4E32\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text1\",\r\n \"detail\": \"\u521D\u59CB\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"text2\u2026\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u6309\u9806\u5E8F\u9023\u63A5\u5728\u4E00\u8D77\u7684\u5176\u4ED6\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"CODE\": {\r\n \"d\": \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u5B57\u4E32\u4E2D\u9996\u5B57\u5143\u7684Unicode\u6620\u5C04\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6240\u63D0\u4F9B\u7684\u5B57\u4E32\u4E2D\u9996\u5B57\u5143\u7684Unicode\u6620\u5C04\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u9996\u5B57\u5143\u7684Unicode\u6620\u5C04\u503C\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"CHAR\": {\r\n \"d\": \"\u6309\u7167\u7576\u524DUnicode\u7DE8\u78BC\u8868,\u5C07\u6578\u4F4D\u8F49\u63DB\u70BA\u5C0D\u61C9\u7684\u5B57\u5143\u3002\",\r\n \"a\": \"\u6309\u7167\u7576\u524DUnicode\u7DE8\u78BC\u8868,\u5C07\u6578\u4F4D\u8F49\u63DB\u70BA\u5C0D\u61C9\u7684\u5B57\u5143\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u4ECB\u65BC1\u5230255\u4E4B\u9593\u7684\u6578\u4F4D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ARABIC\": {\r\n \"d\": \"\u5C07\u7F85\u99AC\u6578\u5B57\u8F49\u63DB\u70BA\u963F\u62C9\u4F2F\u6578\u5B57\u3002\",\r\n \"a\": \"\u5C07\u7F85\u99AC\u6578\u5B57\u8F49\u63DB\u70BA\u963F\u62C9\u4F2F\u6578\u5B57\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u683C\u5F0F\u7684\u7F85\u99AC\u6578\u5B57\"\r\n }\r\n ]\r\n },\r\n \"ROMAN\": {\r\n \"d\": \"\u5C07\u6578\u4F4D\u683C\u5F0F\u8A2D\u5B9A\u70BA\u7F85\u99AC\u6578\u5B57\u5F62\u5F0F\u3002\",\r\n \"a\": \"\u5C07\u6578\u4F4D\u683C\u5F0F\u8A2D\u5B9A\u70BA\u7F85\u99AC\u6578\u5B57\u5F62\u5F0F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u8A2D\u5B9A\u683C\u5F0F\u7684\u6578\u4F4D,\u4ECB\u65BC1\u52303999\u4E4B\u9593\uFF08\u5305\u62EC\u9019\u5169\u500B\u6578\u4F4D\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"REGEXEXTRACT\": {\r\n \"d\": \"\u6309\u7167\u898F\u5247\u904B\u7B97\u5F0F\u9078\u53D6\u5339\u914D\u7684\u5B50\u4E32\u3002\",\r\n \"a\": \"\u6309\u7167\u898F\u5247\u904B\u7B97\u5F0F\u9078\u53D6\u5339\u914D\u7684\u5B50\u4E32\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8F38\u5165\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"regular_expression\",\r\n \"detail\": \"\u6B64\u51FD\u6578\u5C07\u8FD4\u56DE\u6587\u5B57\u4E2D\u7B26\u5408\u6B64\u904B\u7B97\u5F0F\u7684\u7B2C\u4E00\u500B\u5B50\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"REGEXMATCH\": {\r\n \"d\": \"\u5224\u65B7\u4E00\u6BB5\u6587\u5B57\u662F\u5426\u8207\u898F\u5247\u904B\u7B97\u5F0F\u76F8\u5339\u914D\u3002\",\r\n \"a\": \"\u5224\u65B7\u4E00\u6BB5\u6587\u5B57\u662F\u5426\u8207\u898F\u5247\u904B\u7B97\u5F0F\u76F8\u5339\u914D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u7528\u898F\u5247\u904B\u7B97\u5F0F\u6E2C\u8A66\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"regular_expression\",\r\n \"detail\": \"\u7528\u4F86\u6E2C\u8A66\u6587\u5B57\u7684\u898F\u5247\u904B\u7B97\u5F0F\u3002\"\r\n }\r\n ]\r\n },\r\n \"REGEXREPLACE\": {\r\n \"d\": \"\u4F7F\u7528\u898F\u5247\u904B\u7B97\u5F0F\u5C07\u6587\u5B57\u5B57\u4E32\u4E2D\u7684\u4E00\u90E8\u5206\u66FF\u63DB\u70BA\u5176\u4ED6\u6587\u5B57\u5B57\u4E32\u3002\",\r\n \"a\": \"\u4F7F\u7528\u898F\u5247\u904B\u7B97\u5F0F\u5C07\u6587\u5B57\u5B57\u4E32\u4E2D\u7684\u4E00\u90E8\u5206\u66FF\u63DB\u70BA\u5176\u4ED6\u6587\u5B57\u5B57\u4E32\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u5C0D\u5176\u5C40\u90E8\u9032\u884C\u66FF\u63DB\u64CD\u4F5C\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"regular_expression\",\r\n \"detail\": \"\u898F\u5247\u904B\u7B97\u5F0F\u3002text\u4E2D\u6240\u6709\u5339\u914D\u7684\u5BE6\u4F8B\u90FD\u5C07\u88AB\u66FF\u63DB\u3002\"\r\n },\r\n {\r\n \"name\": \"replacement\",\r\n \"detail\": \"\u8981\u63D2\u5165\u5230\u539F\u6709\u6587\u5B57\u4E2D\u7684\u6587\u5B57\u3002\"\r\n }\r\n ]\r\n },\r\n \"T\": {\r\n \"d\": \"\u8FD4\u56DE\u6587\u672C\u683C\u5F0F\u7684\u5B57\u4E32\u53C3\u6578\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6587\u672C\u683C\u5F0F\u7684\u5B57\u4E32\u53C3\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u6587\u5B57\u7684\u53C3\u6578\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6587\u5B57,T\u5C07\u8FD4\u56DE\u503C\u672C\u8EAB\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6307\u5411\u5305\u542B\u6587\u5B57\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,T\u5C07\u8FD4\u56DE\u503C\u4E2D\u7684\u5167\u5BB9\u3002\\n\\n\u5982\u679C\u503C\u70BA\u932F\u8AA4\u503C\u6216\u5305\u542B\u932F\u8AA4\u503C\u7684\u5132\u5B58\u683C,T\u5C07\u8FD4\u56DE\u8A72\u932F\u8AA4\u503C\u3002\\n\\n\u5C0D\u65BC\u6240\u6709\u5176\u4ED6\u60C5\u51B5,T\u5C07\u8FD4\u56DE\u7A7A\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"FIXED\": {\r\n \"d\": \"\u4EE5\u56FA\u5B9A\u7684\u5C0F\u6578\u4F4D\u6578\u8A2D\u5B9A\u6578\u4F4D\u7684\u683C\u5F0F\u3002\",\r\n \"a\": \"\u4EE5\u56FA\u5B9A\u7684\u5C0F\u6578\u4F4D\u6578\u8A2D\u5B9A\u6578\u4F4D\u7684\u683C\u5F0F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u8981\u9032\u884C\u820D\u5165\u4E26\u8F49\u63DB\u70BA\u6587\u5B57\u7684\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"decimals\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA2] - \u7D50\u679C\u4E2D\u8981\u986F\u793A\u7684\u5C0F\u6578\u4F4D\u6578\u3002\\n\\n\u5982\u679C\u6578\u503C\u7684\u6709\u6548\u4F4D\u6578\u5C0F\u65BC\u5C0F\u6578\u4F4D\u6578,\u5C07\u4EE5\u96F6\u586B\u5145\u3002\u5982\u679C\u6578\u503C\u7684\u6709\u6548\u4F4D\u6578\u5927\u65BC\u5C0F\u6578\u4F4D\u6578,\u5247\u5C07\u5176\u820D\u5165\u5230\u6240\u9700\u7684\u5C0F\u6578\u4F4D\u6578\u800C\u4E0D\u662F\u5C07\u5176\u622A\u65B7\u3002\"\r\n },\r\n {\r\n \"name\": \"no_commas\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BAFALSE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u5982\u679C\u70BATRUE\uFF08\uFF09,\u5247\u6703\u7981\u6B62FIXED\u5728\u8FD4\u56DE\u7684\u6587\u5B57\u4E2D\u5305\u542B\u9017\u865F\u3002\"\r\n }\r\n ]\r\n },\r\n \"FIND\": {\r\n \"d\": \"\u8FD4\u56DE\u5B57\u4E32\u5728\u6587\u5B57\u4E2D\u9996\u6B21\u51FA\u73FE\u7684\u4F4D\u7F6E\uFF08\u5340\u5206\u5927\u5C0F\u5BEB\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B57\u4E32\u5728\u6587\u5B57\u4E2D\u9996\u6B21\u51FA\u73FE\u7684\u4F4D\u7F6E\uFF08\u5340\u5206\u5927\u5C0F\u5BEB\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"find_text\",\r\n \"detail\": \"\u8981\u5728\u8981\u8490\u7D22\u7684\u6587\u5B57\u4E2D\u67E5\u627E\u7684\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"within_text\",\r\n \"detail\": \"\u8981\u5728\u5176\u4E2D\u8490\u7D22\u8490\u7D22\u5B57\u4E32\u7684\u9996\u6B21\u51FA\u73FE\u4F4D\u7F6E\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"start_num\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1] - \u8981\u5728\u8981\u8490\u7D22\u7684\u6587\u5B57\u4E2D\u958B\u59CB\u8490\u7D22\u7684\u5B57\u5143\u4F4D\u7F6E\u3002\"\r\n }\r\n ]\r\n },\r\n \"FINDB\": {\r\n \"d\": \"\u8FD4\u56DE\u67D0\u500B\u5B57\u4E32\u5728\u6587\u5B57\u4E2D\u9996\u6B21\u51FA\u73FE\u7684\u4F4D\u7F6E\uFF08\u6BCF\u500B\u96D9\u4F4D\u5143\u7D44\u5B57\u5143\u5360\u5169\u500B\u4F4D\u7F6E\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u67D0\u500B\u5B57\u4E32\u5728\u6587\u5B57\u4E2D\u9996\u6B21\u51FA\u73FE\u7684\u4F4D\u7F6E\uFF08\u6BCF\u500B\u96D9\u4F4D\u5143\u7D44\u5B57\u5143\u5360\u5169\u500B\u4F4D\u7F6E\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"find_text\",\r\n \"detail\": \"\u8981\u5728\u8981\u8490\u7D22\u7684\u6587\u5B57\u4E2D\u67E5\u627E\u7684\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"within_text\",\r\n \"detail\": \"\u8981\u5728\u5176\u4E2D\u8490\u7D22\u8490\u7D22\u5B57\u4E32\u7684\u9996\u6B21\u51FA\u73FE\u4F4D\u7F6E\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"start_num\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1] - \u8981\u5728\u8981\u8490\u7D22\u7684\u6587\u5B57\u4E2D\u958B\u59CB\u8490\u7D22\u7684\u5B57\u5143\u4F4D\u7F6E\u3002\"\r\n }\r\n ]\r\n },\r\n \"JOIN\": {\r\n \"d\": \"\u5C07\u4E00\u500B\u6216\u591A\u500B\u4F7F\u7528\u6307\u5B9A\u5B9A\u754C\u7B26\u7684\u4E00\u7DAD\u6578\u7D44\u7684\u5143\u7D20\u9023\u63A5\u5230\u4E00\u8D77\u3002\",\r\n \"a\": \"\u5C07\u4E00\u500B\u6216\u591A\u500B\u4F7F\u7528\u6307\u5B9A\u5B9A\u754C\u7B26\u7684\u4E00\u7DAD\u6578\u7D44\u7684\u5143\u7D20\u9023\u63A5\u5230\u4E00\u8D77\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"separator\",\r\n \"detail\": \"\u7F6E\u65BC\u76F8\u4E92\u9023\u63A5\u7684\u503C\u4E4B\u9593\u7684\u5B57\u5143\u6216\u5B57\u4E32\u3002\\n\\n\u5B9A\u754C\u7B26\u53EF\u4EE5\u70BA\u7A7A,\u4F8B\u5982JOIN\uFF08,{1,2,3}\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"array1\",\r\n \"detail\": \"\u8981\u4F7F\u7528\u5B9A\u754C\u7B26\u9023\u63A5\u7684\u4E00\u500B\u6216\u591A\u500B\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"array2,\u2026\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u4F7F\u7528\u5B9A\u754C\u7B26\u9023\u63A5\u7684\u5176\u4ED6\u503C\u6216\u6578\u7D44\u3002\"\r\n }\r\n ]\r\n },\r\n \"LEFT\": {\r\n \"d\": \"\u5F9E\u6587\u5B57\u5B57\u4E32\u7684\u7B2C\u4E00\u500B\u5B57\u5143\u958B\u59CB\u8FD4\u56DE\u6307\u5B9A\u500B\u6578\u7684\u5B57\u5143\u3002\",\r\n \"a\": \"\u5F9E\u6587\u5B57\u5B57\u4E32\u7684\u7B2C\u4E00\u500B\u5B57\u5143\u958B\u59CB\u8FD4\u56DE\u6307\u5B9A\u500B\u6578\u7684\u5B57\u5143\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u5305\u542B\u8981\u9078\u53D6\u7684\u5B57\u5143\u7684\u6587\u5B57\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"num_chars\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1] - \u6307\u5B9A\u8981\u7531LEFT\u9078\u53D6\u7684\u5B57\u5143\u7684\u6578\u91CF\u3002\"\r\n }\r\n ]\r\n },\r\n \"RIGHT\": {\r\n \"d\": \"\u6839\u64DA\u6240\u6307\u5B9A\u7684\u5B57\u5143\u6578\u8FD4\u56DE\u6587\u5B57\u5B57\u4E32\u4E2D\u6700\u5F8C\u4E00\u500B\u6216\u591A\u500B\u5B57\u5143\u3002\",\r\n \"a\": \"\u6839\u64DA\u6240\u6307\u5B9A\u7684\u5B57\u5143\u6578\u8FD4\u56DE\u6587\u5B57\u5B57\u4E32\u4E2D\u6700\u5F8C\u4E00\u500B\u6216\u591A\u500B\u5B57\u5143\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u5305\u542B\u8981\u9078\u53D6\u7684\u5B57\u5143\u7684\u6587\u5B57\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"num_chars\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1] - \u6307\u5B9A\u8981\u7531RIGHT\u9078\u53D6\u7684\u5B57\u5143\u7684\u6578\u91CF\u3002\"\r\n }\r\n ]\r\n },\r\n \"MID\": {\r\n \"d\": \"\u8FD4\u56DE\u6587\u5B57\u5B57\u4E32\u4E2D\u5F9E\u6307\u5B9A\u4F4D\u7F6E\u958B\u59CB\u7684\u7279\u5B9A\u6578\u76EE\u7684\u5B57\u5143\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6587\u5B57\u5B57\u4E32\u4E2D\u5F9E\u6307\u5B9A\u4F4D\u7F6E\u958B\u59CB\u7684\u7279\u5B9A\u6578\u76EE\u7684\u5B57\u5143\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u5305\u542B\u8981\u9078\u53D6\u7684\u5B57\u5143\u7684\u6587\u5B57\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"start_num\",\r\n \"detail\": \"\u8981\u5F9E\u5B57\u4E32\u4E2D\u958B\u59CB\u9078\u53D6\u7684\u4F4D\u7F6E\u3002\u5B57\u4E32\u4E2D\u7B2C\u4E00\u500B\u5B57\u5143\u7684\u7D22\u5F15\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"num_chars\",\r\n \"detail\": \"\u6307\u5B9A\u8981\u7531MID\u9078\u53D6\u7684\u5B57\u5143\u7684\u6578\u91CF\u3002\\n\\n\u5982\u679C\u9078\u53D6\u7684\u5B57\u5143\u6578\u5C1A\u4E0D\u8DB3\u9078\u53D6\u9577\u5EA6\u500B\u5B57\u5143\u6642\u5C31\u5230\u9054\u4E86\u5B57\u4E32\u5C3E\u90E8,\u5247MID\u8FD4\u56DE\u5F9E\u958B\u59CB\u4F4D\u7F6E\u5230\u5B57\u4E32\u5C3E\u90E8\u7684\u5B57\u5143\u3002\"\r\n }\r\n ]\r\n },\r\n \"LEN\": {\r\n \"d\": \"\u8FD4\u56DE\u7D66\u5B9A\u5B57\u4E32\u7684\u9577\u5EA6\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7D66\u5B9A\u5B57\u4E32\u7684\u9577\u5EA6\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u9577\u5EA6\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"LENB\": {\r\n \"d\": \"\u8FD4\u56DE\u6587\u5B57\u4E2D\u6240\u5305\u542B\u7684\u5B57\u5143\u6578\u3002\u8207\u96D9\u4F4D\u5143\u7D44\u5B57\u5143\u96C6\uFF08DBCS\uFF09\u4E00\u8D77\u4F7F\u7528\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6587\u5B57\u4E2D\u6240\u5305\u542B\u7684\u5B57\u5143\u6578\u3002\u8207\u96D9\u4F4D\u5143\u7D44\u5B57\u5143\u96C6\uFF08DBCS\uFF09\u4E00\u8D77\u4F7F\u7528\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u5176\u4F4D\u5143\u7D44\u6578\u7684\u5B57\u4E32\u3002\uFF08\u4E00\u500B\u6F22\u5B57\u70BA\u5169\u500B\u4F4D\u5143\u7D44\u6578\uFF09\"\r\n }\r\n ]\r\n },\r\n \"LOWER\": {\r\n \"d\": \"\u5C07\u6307\u5B9A\u5B57\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F49\u63DB\u70BA\u5C0F\u5BEB\u3002\",\r\n \"a\": \"\u5C07\u6307\u5B9A\u5B57\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F49\u63DB\u70BA\u5C0F\u5BEB\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5C0F\u5BEB\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"UPPER\": {\r\n \"d\": \"\u5C07\u6307\u5B9A\u5B57\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F49\u63DB\u70BA\u5927\u5BEB\u3002\",\r\n \"a\": \"\u5C07\u6307\u5B9A\u5B57\u4E32\u4E2D\u7684\u5B57\u6BCD\u8F49\u63DB\u70BA\u5927\u5BEB\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u5927\u5BEB\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"EXACT\": {\r\n \"d\": \"\u6BD4\u8F03\u5169\u500B\u5B57\u4E32\u662F\u5426\u76F8\u540C\u3002\",\r\n \"a\": \"\u6BD4\u8F03\u5169\u500B\u5B57\u4E32\u662F\u5426\u76F8\u540C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text1\",\r\n \"detail\": \"\u8981\u6BD4\u8F03\u7684\u7B2C\u4E00\u500B\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"text2\",\r\n \"detail\": \"\u8981\u6BD4\u8F03\u7684\u7B2C\u4E8C\u500B\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"REPLACE\": {\r\n \"d\": \"\u5C07\u6587\u5B57\u5B57\u4E32\u7684\u4E00\u90E8\u5206\u66FF\u63DB\u70BA\u5176\u4ED6\u6587\u5B57\u5B57\u4E32\u3002\",\r\n \"a\": \"\u5C07\u6587\u5B57\u5B57\u4E32\u7684\u4E00\u90E8\u5206\u66FF\u63DB\u70BA\u5176\u4ED6\u6587\u5B57\u5B57\u4E32\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"old_text\",\r\n \"detail\": \"\u8981\u5C0D\u5176\u5C40\u90E8\u9032\u884C\u66FF\u63DB\u64CD\u4F5C\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"start_num\",\r\n \"detail\": \"\u958B\u59CB\u9032\u884C\u66FF\u63DB\u64CD\u4F5C\u7684\u4F4D\u7F6E\uFF08\u6587\u5B57\u958B\u982D\u4F4D\u7F6E\u70BA1\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"num_chars\",\r\n \"detail\": \"\u8981\u5728\u6587\u5B57\u4E2D\u66FF\u63DB\u7684\u5B57\u5143\u500B\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"new_text\",\r\n \"detail\": \"\u8981\u63D2\u5165\u5230\u539F\u6709\u6587\u5B57\u4E2D\u7684\u6587\u5B57\u3002\"\r\n }\r\n ]\r\n },\r\n \"REPT\": {\r\n \"d\": \"\u8FD4\u56DE\u6307\u5B9A\u6587\u5B57\u7684\u591A\u6B21\u91CD\u8907\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6307\u5B9A\u6587\u5B57\u7684\u591A\u6B21\u91CD\u8907\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u91CD\u8907\u7684\u5B57\u5143\u6216\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"number_times\",\r\n \"detail\": \"\u8981\u91CD\u8907\u7684\u6587\u5B57\u8981\u5728\u8FD4\u56DE\u503C\u4E2D\u51FA\u73FE\u7684\u6B21\u6578\u3002\\n\\n\u6700\u5927\u91CD\u8907\u6B21\u6578\u70BA100\u3002\u5373\u4F7F\u91CD\u8907\u6B21\u6578\u5927\u65BC100,REPT\u4E5F\u50C5\u5C07\u76F8\u61C9\u6587\u5B57\u91CD\u8907100\u6B21\u3002\"\r\n }\r\n ]\r\n },\r\n \"SEARCH\": {\r\n \"d\": \"\u8FD4\u56DE\u5B57\u4E32\u5728\u6587\u5B57\u4E2D\u9996\u6B21\u51FA\u73FE\u7684\u4F4D\u7F6E\uFF08\u4E0D\u5340\u5206\u5927\u5C0F\u5BEB\uFF09\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5B57\u4E32\u5728\u6587\u5B57\u4E2D\u9996\u6B21\u51FA\u73FE\u7684\u4F4D\u7F6E\uFF08\u4E0D\u5340\u5206\u5927\u5C0F\u5BEB\uFF09\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"find_text\",\r\n \"detail\": \"\u8981\u5728\u8981\u8490\u7D22\u7684\u6587\u5B57\u4E2D\u67E5\u627E\u7684\u5B57\u4E32\u3002\"\r\n },\r\n {\r\n \"name\": \"within_text\",\r\n \"detail\": \"\u8981\u5728\u5176\u4E2D\u8490\u7D22\u8490\u7D22\u5B57\u4E32\u7684\u9996\u6B21\u51FA\u73FE\u4F4D\u7F6E\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"start_num\",\r\n \"detail\": \"[\u53EF\u9078-\u9810\u8A2D\u503C\u70BA1 ] - \u8981\u5728\u8981\u8490\u7D22\u7684\u6587\u5B57\u4E2D\u958B\u59CB\u8490\u7D22\u7684\u5B57\u5143\u4F4D\u7F6E\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUBSTITUTE\": {\r\n \"d\": \"\u5728\u6587\u5B57\u5B57\u4E32\u4E2D\u7528new_text\u66FF\u63DBold_text\u3002\",\r\n \"a\": \"\u5728\u6587\u5B57\u5B57\u4E32\u4E2D\u7528new_text\u66FF\u63DBold_text\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u9700\u8981\u66FF\u63DB\u5176\u4E2D\u5B57\u5143\u7684\u6587\u5B57,\u6216\u5C0D\u542B\u6709\u6587\u5B57\uFF08\u9700\u8981\u66FF\u63DB\u5176\u4E2D\u5B57\u5143\uFF09\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3002\"\r\n },\r\n {\r\n \"name\": \"old_text\",\r\n \"detail\": \"\u9700\u8981\u66FF\u63DB\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"new_text\",\r\n \"detail\": \"\u7528\u65BC\u66FF\u63DBold_text\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"instance_num\",\r\n \"detail\": \"[\u53EF\u9078] - \u6307\u5B9A\u8981\u7528new_text\u66FF\u63DBold_text\u7684\u4E8B\u4EF6\u3002\u5982\u679C\u6307\u5B9A\u4E86instance_num,\u5247\u53EA\u6709\u6EFF\u8DB3\u8981\u6C42\u7684old_text\u88AB\u66FF\u63DB\u3002\u5426\u5247,\u6587\u5B57\u4E2D\u51FA\u73FE\u7684\u6240\u6709old_text\u90FD\u6703\u66F4\u6539\u70BAnew_text\u3002\"\r\n }\r\n ]\r\n },\r\n \"CLEAN\": {\r\n \"d\": \"\u79FB\u9664\u6587\u5B57\u4E2D\u7684\u4E0D\u53EF\u5217\u5370ASCII\u5B57\u5143\u5F8C\u5C07\u5176\u8FD4\u56DE\u3002\",\r\n \"a\": \"\u79FB\u9664\u6587\u5B57\u4E2D\u7684\u4E0D\u53EF\u5217\u5370ASCII\u5B57\u5143\u5F8C\u5C07\u5176\u8FD4\u56DE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u79FB\u9664\u5176\u4E2D\u4E0D\u53EF\u5217\u5370\u5B57\u5143\u7684\u6587\u5B57\u3002\"\r\n }\r\n ]\r\n },\r\n \"TEXT\": {\r\n \"d\": \"\u6309\u7167\u6307\u5B9A\u683C\u5F0F\u5C07\u6578\u4F4D\u8F49\u63DB\u70BA\u6587\u5B57\u3002\",\r\n \"a\": \"\u6309\u7167\u6307\u5B9A\u683C\u5F0F\u5C07\u6578\u4F4D\u8F49\u63DB\u70BA\u6587\u5B57\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8A2D\u5B9A\u683C\u5F0F\u7684\u6578\u4F4D\u3001\u65E5\u671F\u6216\u6642\u9593\u3002\"\r\n },\r\n {\r\n \"name\": \"format_text\",\r\n \"detail\": \"\u4EE5\u62EC\u5F27\u62EC\u8D77\u4F86\u7684\u6A21\u5F0F\u4E32,\u5C07\u6309\u8A72\u6A21\u5F0F\u8A2D\u5B9A\u6578\u4F4D\u7684\u683C\u5F0F\u3002\\n\\n0\u8868\u793A\u5728\u6578\u503C\u4F4D\u6578\u5C11\u65BC\u683C\u5F0F\u6307\u5B9A\u7684\u4F4D\u6578\u6642\u5FC5\u5B9A\u4EE5\u96F6\u586B\u5145\u3002\u4F8B\u5982,TEXT\uFF0812.3,\u201C000.00\\\"\uFF09\u5C07\u8FD4\u56DE012.30\u3002\u7576\u6578\u503C\u7684\u5C0F\u6578\u4F4D\u6578\u8D85\u904E\u6A21\u5F0F\u6307\u5B9A\u7684\u5C0F\u6578\u4F4D\u6578\u6642,\u56DB\u6368\u4E94\u5165\u70BA\u6307\u5B9A\u7684\u5C0F\u6578\u4F4D\u6578\u3002\u4F8B\u5982,TEXT\uFF0812.305,\u201C00.00\\\"\uFF09\u5C07\u8FD4\u56DE12.31\u3002\\n\\n#\u985E\u4F3C\u65BC0,\u4F46\u4E26\u4E0D\u662F\u5728\u5C0F\u6578\u9EDE\u7684\u5169\u5074\u90FD\u4EE5\u96F6\u586B\u5145\u3002\u4F8B\u5982,TEXT\uFF0812.3,\u201C###.##\\\"\uFF09\u5C07\u8FD4\u56DE12.3\u3002\"\r\n }\r\n ]\r\n },\r\n \"TRIM\": {\r\n \"d\": \"\u5220\u9664\u6307\u5B9A\u5B57\u4E32\u524D\u5F8C\u7684\u7A7A\u683C\u3002\",\r\n \"a\": \"\u5220\u9664\u6307\u5B9A\u5B57\u4E32\u524D\u5F8C\u7684\u7A7A\u683C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u4FEE\u526A\u7684\u5B57\u4E32\u6216\u6307\u5411\u5305\u542B\u8A72\u5B57\u4E32\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3002\"\r\n }\r\n ]\r\n },\r\n \"VALUE\": {\r\n \"d\": \"\u5C07\u53EF\u8B58\u5225\u7684\u4EFB\u4F55\u65E5\u671F\u3001\u6642\u9593\u6216\u6578\u4F4D\u683C\u5F0F\u7684\u5B57\u4E32\u8F49\u63DB\u70BA\u6578\u4F4D\u3002\",\r\n \"a\": \"\u5C07\u53EF\u8B58\u5225\u7684\u4EFB\u4F55\u65E5\u671F\u3001\u6642\u9593\u6216\u6578\u4F4D\u683C\u5F0F\u7684\u5B57\u4E32\u8F49\u63DB\u70BA\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u5305\u542B\u8981\u8F49\u63DB\u7684\u503C\u7684\u5B57\u4E32\u3002\"\r\n }\r\n ]\r\n },\r\n \"PROPER\": {\r\n \"d\": \"\u5C07\u6307\u5B9A\u5B57\u4E32\u4E2D\u6BCF\u500B\u55AE\u8A5E\u7684\u9996\u5B57\u6BCD\u8F49\u70BA\u5927\u5BEB\u3002\",\r\n \"a\": \"\u5C07\u6307\u5B9A\u5B57\u4E32\u4E2D\u6BCF\u500B\u55AE\u8A5E\u7684\u9996\u5B57\u6BCD\u8F49\u70BA\u5927\u5BEB\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"text\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u7684\u6587\u5B57,\u5176\u4E2D\u6BCF\u500B\u55AE\u8A5E\u7684\u9996\u5B57\u6BCD\u90FD\u5C07\u8F49\u70BA\u5927\u5BEB,\u6240\u6709\u5176\u4ED6\u5B57\u6BCD\u5247\u8F49\u70BA\u5C0F\u5BEB\u3002\"\r\n }\r\n ]\r\n },\r\n \"CONVERT\": {\r\n \"d\": \"\u5C07\u6578\u4F4D\u5F9E\u4E00\u7A2E\u5EA6\u91CF\u7CFB\u7D71\u8F49\u63DB\u70BA\u53E6\u4E00\u7A2E\u5EA6\u91CF\u7CFB\u7D71\u3002\",\r\n \"a\": \"\u5C07\u6578\u4F4D\u5F9E\u4E00\u7A2E\u5EA6\u91CF\u7CFB\u7D71\u8F49\u63DB\u70BA\u53E6\u4E00\u7A2E\u5EA6\u91CF\u7CFB\u7D71\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"number\",\r\n \"detail\": \"\u662F\u4EE5from_unit\u70BA\u7D44\u7E54\u7684\u9700\u8981\u9032\u884C\u8F49\u63DB\u7684\u6578\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"from_unit\",\r\n \"detail\": \"\u662F\u6578\u503C\u7684\u7D44\u7E54\u3002\"\r\n },\r\n {\r\n \"name\": \"to_unit\",\r\n \"detail\": \"\u662F\u7D50\u679C\u7684\u7D44\u7E54\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUMX2MY2\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u6578\u7D44\u4E2D\u5C0D\u61C9\u6578\u503C\u7684\u5E73\u65B9\u5DEE\u4E4B\u548C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u6578\u7D44\u4E2D\u5C0D\u61C9\u6578\u503C\u7684\u5E73\u65B9\u5DEE\u4E4B\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_x\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u6578\u7D44\u6216\u6578\u503C\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"array_y\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u6578\u7D44\u6216\u6578\u503C\u5340\u57DF\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUMX2PY2\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u6578\u7D44\u4E2D\u5C0D\u61C9\u6578\u503C\u7684\u5E73\u65B9\u548C\u4E4B\u548C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u6578\u7D44\u4E2D\u5C0D\u61C9\u6578\u503C\u7684\u5E73\u65B9\u548C\u4E4B\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_x\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u6578\u7D44\u6216\u6578\u503C\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"array_y\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u6578\u7D44\u6216\u6578\u503C\u5340\u57DF\u3002\"\r\n }\r\n ]\r\n },\r\n \"SUMXMY2\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u6578\u7D44\u4E2D\u5C0D\u61C9\u6578\u503C\u4E4B\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u6578\u7D44\u4E2D\u5C0D\u61C9\u6578\u503C\u4E4B\u5DEE\u7684\u5E73\u65B9\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array_x\",\r\n \"detail\": \"\u7B2C\u4E00\u500B\u6578\u7D44\u6216\u6578\u503C\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"array_y\",\r\n \"detail\": \"\u7B2C\u4E8C\u500B\u6578\u7D44\u6216\u6578\u503C\u5340\u57DF\u3002\"\r\n }\r\n ]\r\n },\r\n \"TRANSPOSE\": {\r\n \"d\": \"\u5C07\u6578\u7D44\u6216\u5132\u5B58\u683C\u7BC4\u570D\u7684\u884C\u5217\u8F49\u7F6E\u3002\",\r\n \"a\": \"\u5C07\u6578\u7D44\u6216\u5132\u5B58\u683C\u7BC4\u570D\u7684\u884C\u5217\u8F49\u7F6E\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u5C07\u5176\u884C\u5217\u4E92\u63DB\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"TREND\": {\r\n \"d\": \"\u8FD4\u56DE\u7DDA\u6027\u8DA8\u52E2\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u7DDA\u6027\u8DA8\u52E2\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_y\",\r\n \"detail\": \"\u95DC\u4FC2\u904B\u7B97\u5F0Fy = mx + b \u4E2D\u5DF2\u77E5\u7684y\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D,\u5247known_x\u7684\u7DAD\u6578\u5FC5\u9808\u8207\u4E4B\u76F8\u540C,\u6216\u8005\u7701\u7565\u6B64\u53C3\u6578\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,known_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679Cknown_y\u70BA\u55AE\u884C,\u5247\u5C07known_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BCknown_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"known_x\",\r\n \"detail\": \"[\u53EF\u9078-\u9ED8\u8A8D\u8A72\u6578\u7D44\u70BA{1,2,3,\u2026},\u5176\u5927\u5C0F\u8207known_y\u76F8\u540C] -\u95DC\u4FC2\u904B\u7B97\u5F0Fy = mx + b \u4E2D\u5DF2\u77E5\u7684\u53EF\u9078x\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,known_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679Cknown_y\u70BA\u55AE\u884C,\u5247\u5C07known_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BCknown_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"new_x\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u8207known_x\u76F8\u540C] - \u9700\u8981\u51FD\u6578TREND\u8FD4\u56DE\u5C0D\u61C9y\u503C\u7684\u65B0x\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"const\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u7528\u65BC\u6307\u5B9A\u662F\u5426\u5C07\u5E38\u6578b\u5F37\u5236\u8A2D\u70BA0\u3002\\n\\nTRUE\uFF08\uFF09\u8868\u793Ab\u5C07\u6309\u6B63\u5E38\u8A08\u7B97\uFF1B\\n\\nFALSE\uFF08\uFF09\u8868\u793Ab\u5C07\u88AB\u8A2D\u70BA0\uFF08\u96F6\uFF09,m \u5C07\u88AB\u8ABF\u6574\u4EE5\u4F7Fy = mx\u3002\"\r\n }\r\n ]\r\n },\r\n \"FREQUENCY\": {\r\n \"d\": \"\u8A08\u7B97\u6578\u503C\u5728\u67D0\u500B\u5340\u57DF\u5167\u7684\u51FA\u73FE\u983B\u7387,\u7136\u5F8C\u8FD4\u56DE\u4E00\u500B\u5782\u76F4\u6578\u7D44\u3002\",\r\n \"a\": \"\u8A08\u7B97\u6578\u503C\u5728\u67D0\u500B\u5340\u57DF\u5167\u7684\u51FA\u73FE\u983B\u7387,\u7136\u5F8C\u8FD4\u56DE\u4E00\u500B\u5782\u76F4\u6578\u7D44\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"data_array\",\r\n \"detail\": \"\u8981\u5C0D\u5176\u983B\u7387\u9032\u884C\u8A08\u6578\u7684\u4E00\u7D44\u6578\u503C\u6216\u5C0D\u9019\u7D44\u6578\u503C\u7684\u5F15\u7528\u3002\"\r\n },\r\n {\r\n \"name\": \"bins_array\",\r\n \"detail\": \"\u8981\u5C07data_array\u4E2D\u7684\u503C\u63D2\u5165\u5230\u7684\u9593\u9694\u6578\u7D44\u6216\u5C0D\u9593\u9694\u7684\u5F15\u7528\u3002\\n\\n\u70BA\u6E05\u6670\u8D77\u898B,\u61C9\u5C07\u985E\u5225\u6392\u5E8F,\u4F46\u5982\u679C\u672A\u6392\u5E8F,FREQUENCY\u6703\u5728\u5167\u90E8\u5C0D\u9019\u4E9B\u6307\u5B9A\u7684\u503C\u9032\u884C\u6392\u5E8F\u4E26\u8FD4\u56DE\u6B63\u78BA\u7D50\u679C\u3002\"\r\n }\r\n ]\r\n },\r\n \"GROWTH\": {\r\n \"d\": \"\u4F7F\u7528\u73FE\u6709\u6578\u64DA\u8A08\u7B97\u9810\u6E2C\u7684\u6307\u6578\u7B49\u6BD4\u3002\",\r\n \"a\": \"\u4F7F\u7528\u73FE\u6709\u6578\u64DA\u8A08\u7B97\u9810\u6E2C\u7684\u6307\u6578\u7B49\u6BD4\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_y\",\r\n \"detail\": \"\u95DC\u4FC2\u904B\u7B97\u5F0Fy = b*m^x \u4E2D\u5DF2\u77E5\u7684y\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C\u5DF2\u77E5\u6578\u64DA_y\u70BA\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D,\u5247\u5DF2\u77E5\u6578\u64DA_x\u7684\u7DAD\u6578\u5FC5\u9808\u8207\u4E4B\u76F8\u540C,\u6216\u8005\u7701\u7565\u6B64\u53C3\u6578\u3002\\n\\n\u5982\u679C\u5DF2\u77E5\u6578\u64DA_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,\u5DF2\u77E5\u6578\u64DA_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679C\u5DF2\u77E5\u6578\u64DA_y\u70BA\u55AE\u884C,\u5247\u5C07\u5DF2\u77E5\u6578\u64DA_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BC\u5DF2\u77E5\u6578\u64DA_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"known_x\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u8A72\u6578\u7D44\u70BA{1,2,3,\u2026},\u5176\u5927\u5C0F\u8207known_y\u76F8\u540C] - \u95DC\u4FC2\u904B\u7B97\u5F0Fy = b*m^x \u4E2D\u5DF2\u77E5\u7684\u53EF\u9078x\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679C\u5DF2\u77E5\u6578\u64DA_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,\u5DF2\u77E5\u6578\u64DA_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679C\u5DF2\u77E5\u6578\u64DA_y\u70BA\u55AE\u884C,\u5247\u5C07\u5DF2\u77E5\u6578\u64DA_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BC\u5DF2\u77E5\u6578\u64DA_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"new_x\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u8207known_x\u76F8\u540C] - \u9700\u8981\u51FD\u6578GROWTH\u8FD4\u56DE\u5C0D\u61C9y\u503C\u7684\u65B0x\u503C\u3002\"\r\n },\r\n {\r\n \"name\": \"const\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u7528\u65BC\u6307\u5B9A\u662F\u5426\u5C07\u5E38\u6578b\u5F37\u5236\u8A2D\u70BA1\u3002\\n\\nTRUE\uFF08\uFF09\u8868\u793Ab\u5C07\u6309\u6B63\u5E38\u8A08\u7B97\uFF1B\\n\\nFALSE\uFF08\uFF09\u8868\u793Ab\u5C07\u88AB\u8A2D\u70BA1,m\u5C07\u88AB\u8ABF\u6574\u4EE5\u4F7Fy = m^x\u3002\"\r\n }\r\n ]\r\n },\r\n \"LINEST\": {\r\n \"d\": \"\u53EF\u901A\u904E\u4F7F\u7528\u6700\u5C0F\u4E8C\u4E58\u6CD5\u8A08\u7B97\u8207\u73FE\u6709\u6578\u64DA\u6700\u4F73\u64EC\u5408\u7684\u76F4\u7DDA,\u4F86\u8A08\u7B97\u67D0\u76F4\u7DDA\u7684\u7D71\u8A08\u503C,\u7136\u5F8C\u8FD4\u56DE\u63CF\u8FF0\u6B64\u76F4\u7DDA\u7684\u6578\u7D44\u3002\",\r\n \"a\": \"\u53EF\u901A\u904E\u4F7F\u7528\u6700\u5C0F\u4E8C\u4E58\u6CD5\u8A08\u7B97\u8207\u73FE\u6709\u6578\u64DA\u6700\u4F73\u64EC\u5408\u7684\u76F4\u7DDA,\u4F86\u8A08\u7B97\u67D0\u76F4\u7DDA\u7684\u7D71\u8A08\u503C,\u7136\u5F8C\u8FD4\u56DE\u63CF\u8FF0\u6B64\u76F4\u7DDA\u7684\u6578\u7D44\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_y\",\r\n \"detail\": \"\u95DC\u4FC2\u904B\u7B97\u5F0Fy = mx + b \u4E2D\u5DF2\u77E5\u7684y\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D,\u5247known_x\u7684\u7DAD\u6578\u5FC5\u9808\u8207\u4E4B\u76F8\u540C,\u6216\u8005\u7701\u7565\u6B64\u53C3\u6578\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,known_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679Cknown_y\u70BA\u55AE\u884C,\u5247\u5C07known_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BCknown_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"known_x\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u8A72\u6578\u7D44\u70BA{1,2,3,\u2026},\u5176\u5927\u5C0F\u8207known_y\u76F8\u540C] - \u95DC\u4FC2\u904B\u7B97\u5F0Fy = mx + b\u4E2D\u5DF2\u77E5\u7684\u53EF\u9078x\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,known_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679Cknown_y\u70BA\u55AE\u884C,\u5247\u5C07known_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BCknown_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"const\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u7528\u65BC\u6307\u5B9A\u662F\u5426\u5C07\u5E38\u6578b\u5F37\u5236\u8A2D\u70BA0\u3002\\n\\nTRUE\uFF08\uFF09\u8868\u793Ab\u5C07\u6309\u6B63\u5E38\u8A08\u7B97\uFF1B\\n\\nFALSE\uFF08\uFF09\u8868\u793Ab\u5C07\u88AB\u8A2D\u70BA0\uFF08\u96F6\uFF09,m\u5C07\u88AB\u8ABF\u6574\u4EE5\u4F7Fy = mx\u3002\"\r\n },\r\n {\r\n \"name\": \"stats\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BAFALSE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u7528\u65BC\u6307\u5B9A\u662F\u5426\u8FD4\u56DE\u9644\u52A0\u56DE\u6B78\u7D71\u8A08\u503C\u3002\\n\\n\u5982\u679C\u8A73\u7D30\u70BATRUE,\u9664\u4E86\u5C0D\u61C9\u65BC\u6BCF\u500B\u5F15\u6578\u7684\u4E00\u7D44\u7DDA\u6027\u4FC2\u6578\u548Cy\u622A\u8DDD\u4E4B\u5916,LINEST\u9084\u8FD4\u56DE\u4EE5\u4E0B\u8CC7\u8A0A:\\n\\n\u6BCF\u9805\u4FC2\u6578\u548C\u622A\u8DDD\u7684\u6A19\u6E96\u8AA4\u5DEE\u3001\\n\\n\u9650\u5B9A\u4FC2\u6578\uFF08\u4ECB\u65BC0\u548C1\u4E4B\u9593,1\u8868\u793A\u5B8C\u5168\u76F8\u95DC\uFF09\u3001\\n\\n\u56E0\u8B8A\u6578\u503C\u7684\u6A19\u51C6\u8AA4\u5DEE\u3001\\n\\nF\u7D71\u8A08\u6216F\u89C0\u6E2C\u503C,\u8A13\u793A\u6240\u89C0\u6E2C\u5230\u7684\u56E0\u8B8A\u6578\u548C\u5F15\u6578\u8B8A\u6578\u4E4B\u9593\u7684\u95DC\u4FC2\u662F\u96A8\u6A5F\u7684\u9084\u662F\u7DDA\u6027\u7684\u3001\\n\\n\u81EA\u7531\u5EA6,\u7528\u65BC\u5728\u53C3\u7167\u9336\u4E2D\u67E5\u627EF\u7D71\u8A08\u503C\u4EE5\u4F30\u7B97\u53EF\u4FE1\u5EA6\u3001\\n\\n\u56DE\u6B78\u5E73\u65B9\u548C,\u4EE5\u53CA\\n\\n\u6B98\u5DEE\u5E73\u65B9\u548C\u3002\"\r\n }\r\n ]\r\n },\r\n \"LOGEST\": {\r\n \"d\": \"\u5728\u56DE\u6B78\u5206\u6790\u4E2D,\u8A08\u7B97\u6700\u7B26\u5408\u6578\u64DA\u7684\u6307\u6578\u56DE\u6B78\u64EC\u5408\u66F2\u7DDA,\u4E26\u8FD4\u56DE\u63CF\u8FF0\u8A72\u66F2\u7DDA\u7684\u6578\u503C\u6578\u7D44\u3002\",\r\n \"a\": \"\u5728\u56DE\u6B78\u5206\u6790\u4E2D,\u8A08\u7B97\u6700\u7B26\u5408\u6578\u64DA\u7684\u6307\u6578\u56DE\u6B78\u64EC\u5408\u66F2\u7DDA,\u4E26\u8FD4\u56DE\u63CF\u8FF0\u8A72\u66F2\u7DDA\u7684\u6578\u503C\u6578\u7D44\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"known_y\",\r\n \"detail\": \"\u95DC\u4FC2\u904B\u7B97\u5F0Fy = mx + b \u4E2D\u5DF2\u77E5\u7684y\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D,\u5247known_x\u7684\u7DAD\u6578\u5FC5\u9808\u8207\u4E4B\u76F8\u540C,\u6216\u8005\u7701\u7565\u6B64\u53C3\u6578\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,known_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679Cknown_y\u70BA\u55AE\u884C,\u5247\u5C07known_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BCknown_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"known_x\",\r\n \"detail\": \"[\u53EF\u9078 - \u9ED8\u8A8D\u8A72\u6578\u7D44\u70BA{1,2,3,\u2026},\u5176\u5927\u5C0F\u8207known_y\u76F8\u540C] - \u95DC\u4FC2\u904B\u7B97\u5F0Fy = mx + b\u4E2D\u5DF2\u77E5\u7684\u53EF\u9078x\u503C\u96C6\u5408\u3002\\n\\n\u5982\u679Cknown_y\u70BA\u4E00\u7DAD\u6578\u7D44\u6216\u7BC4\u570D,known_x\u5247\u53EF\u4EE3\u8868\u4E8C\u7DAD\u9663\u5217\u6216\u7BC4\u570D\u4E2D\u7684\u591A\u500B\u5F15\u6578\u3002\u4E5F\u5C31\u662F\u8AAA,\u5982\u679Cknown_y\u70BA\u55AE\u884C,\u5247\u5C07known_x\u4E2D\u7684\u6BCF\u884C\u89E3\u91CB\u70BA\u5404\u81EA\u7368\u7ACB\u7684\u503C,\u985E\u4F3C\u60C5\u51B5\u4E5F\u9069\u7528\u65BCknown_y\u70BA\u55AE\u5217\u7684\u60C5\u51B5\u3002\"\r\n },\r\n {\r\n \"name\": \"const\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BATRUE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u7528\u65BC\u6307\u5B9A\u662F\u5426\u5C07\u5E38\u6578b\u5F37\u5236\u8A2D\u70BA0\u3002\\n\\nTRUE\uFF08\uFF09\u8868\u793Ab\u5C07\u6309\u6B63\u5E38\u8A08\u7B97\uFF1B\\n\\nFALSE\uFF08\uFF09\u8868\u793Ab\u5C07\u88AB\u8A2D\u70BA0\uFF08\u96F6\uFF09,m\u5C07\u88AB\u8ABF\u6574\u4EE5\u4F7Fy = mx\u3002\"\r\n },\r\n {\r\n \"name\": \"stats\",\r\n \"detail\": \"[\u53EF\u9078 - \u9810\u8A2D\u503C\u70BAFALSE\uFF08\uFF09] - \u4E00\u500B\u908F\u8F2F\u503C,\u7528\u65BC\u6307\u5B9A\u662F\u5426\u8FD4\u56DE\u9644\u52A0\u56DE\u6B78\u7D71\u8A08\u503C\u3002\\n\\n\u5982\u679C\u8A73\u7D30\u70BATRUE,\u5247\u9664\u4E86\u70BA\u6BCF\u500B\u5F15\u6578\u548C\u4FC2\u6578b\u8FD4\u56DE\u4E00\u7D44\u6307\u6578\u503C\u4E4B\u5916,LOGEST\u9084\u5C07\u8FD4\u56DE\u4EE5\u4E0B\u6578\u64DA:\\n\\n\u6BCF\u9805\u6307\u6578\u548C\u4FC2\u6578\u7684\u6A19\u6E96\u8AA4\u5DEE\u3001\\n\\n\u9650\u5B9A\u4FC2\u6578\uFF08\u4ECB\u65BC0\u548C1\u4E4B\u9593,1\u8868\u793A\u5B8C\u5168\u76F8\u95DC\uFF09\u3001\\n\\n\u56E0\u8B8A\u6578\u503C\u7684\u6A19\u51C6\u8AA4\u5DEE\u3001\\n\\nF\u7D71\u8A08\u6216F\u89C0\u6E2C\u503C,\u8A13\u793A\u6240\u89C0\u6E2C\u5230\u7684\u56E0\u8B8A\u6578\u548C\u5F15\u6578\u4E4B\u9593\u7684\u95DC\u4FC2\u662F\u96A8\u6A5F\u7684\u9084\u662F\u6307\u6578\u7684\u3001\\n\\n\u81EA\u7531\u5EA6-\u7528\u65BC\u5728\u53C3\u7167\u9336\u4E2D\u67E5\u627EF\u7D71\u8A08\u503C\u4EE5\u4F30\u7B97\u53EF\u4FE1\u5EA6\u3001\\n\\n\u56DE\u6B78\u5E73\u65B9\u548C,\u4EE5\u53CA\\n\\n\u6B98\u5DEE\u5E73\u65B9\u548C\u3002\"\r\n }\r\n ]\r\n },\r\n \"MDETERM\": {\r\n \"d\": \"\u8FD4\u56DE\u4E00\u500B\u6578\u7D44\u7684\u77E9\u9663\u884C\u5217\u5F0F\u7684\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u4E00\u500B\u6578\u7D44\u7684\u77E9\u9663\u884C\u5217\u5F0F\u7684\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u884C\u6578\u548C\u5217\u6578\u76F8\u7B49\u7684\u6578\u503C\u6578\u7D44\u3002\"\r\n }\r\n ]\r\n },\r\n \"MINVERSE\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u7D44\u4E2D\u5B58\u5132\u7684\u77E9\u9663\u7684\u9006\u77E9\u9663\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u7D44\u4E2D\u5B58\u5132\u7684\u77E9\u9663\u7684\u9006\u77E9\u9663\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u884C\u6578\u548C\u5217\u6578\u76F8\u7B49\u7684\u6578\u503C\u6578\u7D44\u3002\"\r\n }\r\n ]\r\n },\r\n \"MMULT\": {\r\n \"d\": \"\u8FD4\u56DE\u5169\u500B\u6578\u7D44\u7684\u77E9\u9663\u4E58\u7A4D\u3002\u7D50\u679C\u77E9\u9663\u7684\u884C\u6578\u8207array1\u7684\u884C\u6578\u76F8\u540C,\u77E9\u9663\u7684\u5217\u6578\u8207array2\u7684\u5217\u6578\u76F8\u540C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5169\u500B\u6578\u7D44\u7684\u77E9\u9663\u4E58\u7A4D\u3002\u7D50\u679C\u77E9\u9663\u7684\u884C\u6578\u8207array1\u7684\u884C\u6578\u76F8\u540C,\u77E9\u9663\u7684\u5217\u6578\u8207array2\u7684\u5217\u6578\u76F8\u540C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array1\",\r\n \"detail\": \"\u8981\u9032\u884C\u77E9\u9663\u4E58\u6CD5\u904B\u7B97\u7684\u7B2C\u4E00\u500B\u77E9\u9663\u6578\u7D44\u3002\\n\\narray1\u5217\u6578\u5FC5\u9808\u8207array2\u7684\u884C\u6578\u76F8\u540C\"\r\n },\r\n {\r\n \"name\": \"array2\",\r\n \"detail\": \"\u8981\u9032\u884C\u77E9\u9663\u4E58\u6CD5\u904B\u7B97\u7684\u7B2C\u4E8C\u500B\u77E9\u9663\u6578\u7D44\u3002\\n\\narray2\u7684\u884C\u6578\u5FC5\u9808\u8207array1\u5217\u6578\u76F8\u540C\"\r\n }\r\n ]\r\n },\r\n \"SUMPRODUCT\": {\r\n \"d\": \"\u5728\u7D66\u5B9A\u7684\u5E7E\u7D44\u6578\u7D44\u4E2D,\u5C07\u6578\u7D44\u9593\u5C0D\u61C9\u7684\u5143\u7D20\u76F8\u4E58,\u4E26\u8FD4\u56DE\u4E58\u7A4D\u4E4B\u548C\u3002\",\r\n \"a\": \"\u5728\u7D66\u5B9A\u7684\u5E7E\u7D44\u6578\u7D44\u4E2D,\u5C07\u6578\u7D44\u9593\u5C0D\u61C9\u7684\u5143\u7D20\u76F8\u4E58,\u4E26\u8FD4\u56DE\u4E58\u7A4D\u4E4B\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array1\",\r\n \"detail\": \"\u5176\u76F8\u61C9\u5143\u7D20\u9700\u8981\u9032\u884C\u76F8\u4E58\u4E26\u6C42\u548C\u7684\u7B2C\u4E00\u500B\u6578\u7D44\u53C3\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"array2\",\r\n \"detail\": \"[\u53EF\u9078] - \u5176\u76F8\u61C9\u5143\u7D20\u9700\u8981\u9032\u884C\u76F8\u4E58\u4E26\u6C42\u548C\u7684\u5176\u5B83\u6578\u7D44\u53C3\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISFORMULA\": {\r\n \"d\": \"\u6AA2\u67E5\u516C\u5F0F\u662F\u5426\u4F4D\u65BC\u5F15\u7528\u7684\u5132\u5B58\u683C\u4E2D\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u516C\u5F0F\u662F\u5426\u4F4D\u65BC\u5F15\u7528\u7684\u5132\u5B58\u683C\u4E2D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"cell\",\r\n \"detail\": \"\u8981\u6AA2\u67E5\u662F\u5426\u5B58\u5728\u516C\u5F0F\u7684\u5132\u5B58\u683C\u3002\\n\\n\u5982\u679C cell \u70BA\u5305\u542B\u516C\u5F0F\u7684\u5132\u5B58\u683C,\u5247 ISFORMULA \u5C07\u8FD4\u56DETRUE\u3002\u5982\u679C cell \u70BA\u76F8\u61C9\u5132\u5B58\u683C\u7BC4\u570D,\u5247\u7576\u8A72\u7BC4\u570D\u5167\u7684\u9996\u500B\u5132\u5B58\u683C\u5305\u542B\u516C\u5F0F\u6642,\u7CFB\u7D71\u6703\u8FD4\u56DETRUE\u3002\u5982\u679C\u662F\u4EFB\u4F55\u5176\u4ED6\u503C,\u7CFB\u7D71\u90FD\u5C07\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"CELL\": {\r\n \"d\": \"\u8FD4\u56DE\u6709\u95DC\u5132\u5B58\u683C\u7684\u683C\u5F0F\u3001\u4F4D\u7F6E\u6216\u5167\u5BB9\u7684\u8CC7\u8A0A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6709\u95DC\u5132\u5B58\u683C\u7684\u683C\u5F0F\u3001\u4F4D\u7F6E\u6216\u5167\u5BB9\u7684\u8CC7\u8A0A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"info_type\",\r\n \"detail\": \"\u4E00\u500B\u6587\u5B57\u503C,\u6307\u5B9A\u8981\u8FD4\u56DE\u7684\u5132\u5B58\u683C\u8CC7\u8A0A\u7684\u985E\u578B\u3002\"\r\n },\r\n {\r\n \"name\": \"reference\",\r\n \"detail\": \"\u9700\u8981\u5176\u76F8\u95DC\u8CC7\u8A0A\u7684\u5132\u5B58\u683C\u3002\"\r\n }\r\n ]\r\n },\r\n \"NA\": {\r\n \"d\": \"\u8FD4\u56DE\u932F\u8AA4\u503C#N/A\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u932F\u8AA4\u503C#N/A\u3002\",\r\n \"p\": []\r\n },\r\n \"ERROR_TYPE\": {\r\n \"d\": \"\u8FD4\u56DE\u8207\u5176\u4ED6\u5132\u5B58\u683C\u4E2D\u7684\u932F\u8AA4\u503C\u76F8\u5C0D\u61C9\u7684\u6578\u4F4D\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8207\u5176\u4ED6\u5132\u5B58\u683C\u4E2D\u7684\u932F\u8AA4\u503C\u76F8\u5C0D\u61C9\u7684\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"error_val\",\r\n \"detail\": \"\u7528\u65BC\u67E5\u627E\u932F\u8AA4\u865F\u7684\u5132\u5B58\u683C,\u96D6\u7136\u60A8\u4E5F\u53EF\u4EE5\u76F4\u63A5\u63D0\u4F9B\u932F\u8AA4\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISBLANK\": {\r\n \"d\": \"\u6AA2\u67E5\u6240\u5F15\u7528\u7684\u5132\u5B58\u683C\u662F\u5426\u70BA\u7A7A\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u6240\u5F15\u7528\u7684\u5132\u5B58\u683C\u662F\u5426\u70BA\u7A7A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u5C0D\u8981\u6AA2\u67E5\u5176\u662F\u5426\u70BA\u7A7A\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528\u3002\\n\\n\u5982\u679C\u662F\u7A7A\u5132\u5B58\u683C,\u5247TRUE\uFF1B\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISERR\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA#N/A\u4EE5\u5916\u7684\u932F\u8AA4\u503C\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA#N/A\u4EE5\u5916\u7684\u932F\u8AA4\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA#N/A\u4EE5\u5916\u7684\u932F\u8AA4\u985E\u578B\u7684\u503C\u3002\\n\\n\u5982\u679C\u503C\u662F\u9664#N/A\u4E4B\u5916\u7684\u4EFB\u4F55\u932F\u8AA4\uFF08\u5305\u62EC#DIV/0\uFF01\u3001#NAME\uFF1F\u3001#NULL\uFF01\u3001#NUM\uFF01\u3001#VALUE\uFF01\u548C#REF\uFF01\uFF09,ISERR\u5C07\u8FD4\u56DETRUE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISERROR\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u932F\u8AA4\u503C\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u932F\u8AA4\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA\u932F\u8AA4\u985E\u578B\u7684\u503C\u3002\\n\\n\u53EA\u8981\u503C\u662F\u67D0\u7A2E\u932F\u8AA4\u503C\uFF08\u5305\u62EC#DIV/0\uFF01\u3001#N/A\u3001#NAME\uFF1F\u3001#NULL\uFF01\u3001#NUM\uFF01\u3001#VALUE\uFF01\u548C#REF\uFF01\uFF09,ISERROR\u5C31\u6703\u8FD4\u56DETRUE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISLOGICAL\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662FTRUE\u9084\u662FFALSE\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662FTRUE\u9084\u662FFALSE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u70BA\u908F\u8F2F TRUE \u9084\u662F\u908F\u8F2F FALSE \u7684\u503C\u3002\\n\\n*\u5982\u679C\u503C\u70BATRUE\u6216FALSE,\u6216\u70BA\u6307\u5411\u503C\u70BATRUE\u6216FALSE\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,ISLOGICAL\u5C07\u8FD4\u56DETRUE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISNA\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u932F\u8AA4\u503C#N/A\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u932F\u8AA4\u503C#N/A\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8207\u932F\u8AA4\u503C#N/A\u9032\u884C\u6BD4\u8F03\u7684\u503C\u3002\\n\\n*\u5982\u679C\u503C\u70BA#N/A\u6216\u6307\u5411\u5305\u542B#N/A\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5247ISNA\u5C07\u8FD4\u56DETRUE,\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISNONTEXT\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u975E\u6587\u5B57\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u975E\u6587\u5B57\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u6AA2\u67E5\u7684\u6587\u5B57\u3002\\n\\n*\u5982\u679C\u53C3\u6578\u70BA\u6587\u5B57\u503C\u6216\u6307\u5411\u5305\u542B\u6587\u5B57\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,ISNONTEXT\u5C07\u8FD4\u56DEFALSE,\u5426\u5247\u8FD4\u56DETRUE\u3002\\n\\n\u7576\u503C\u70BA\u6307\u5411\u7A7A\u5132\u5B58\u683C\u7684\u5F15\u7528\u6642,ISNONTEXT\u6703\u8FD4\u56DETRUE\u3002\\n\\n\u7576\u503C\u70BA\u7A7A\u5B57\u4E32\u6642,ISNONTEXT\u5C07\u8FD4\u56DEFALSE,\u56E0\u70BA\u7A7A\u4E32\u88AB\u8996\u4F5C\u6587\u5B57\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISNUMBER\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u6578\u4F4D\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA\u6578\u4F4D\u7684\u503C\u3002\\n\\n*\u5982\u679C\u53C3\u6578\u70BA\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u4F4D\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,ISNUMBER\u5C07\u8FD4\u56DETRUE,\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISREF\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u6709\u6548\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u6709\u6548\u7684\u5132\u5B58\u683C\u5F15\u7528\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA\u5132\u5B58\u683C\u5F15\u7528\u7684\u503C\u3002\\n\\n*\u5982\u679C\u53C3\u6578\u662F\u6709\u6548\u7684\u5132\u5B58\u683C\u5F15\u7528,ISREF\u5C07\u8FD4\u56DETRUE,\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISTEXT\": {\r\n \"d\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u6587\u5B57\u3002\",\r\n \"a\": \"\u6AA2\u67E5\u67D0\u500B\u503C\u662F\u5426\u70BA\u6587\u5B57\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u9A57\u8B49\u5176\u662F\u5426\u70BA\u6587\u5B57\u7684\u503C\u3002\\n\\n\u5982\u679C\u53C3\u6578\u70BA\u6587\u5B57\u503C\u6216\u6307\u5411\u5305\u542B\u6587\u5B57\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,ISTEXT\u5C07\u8FD4\u56DETRUE,\u5426\u5247\u8FD4\u56DEFALSE\u3002\"\r\n }\r\n ]\r\n },\r\n \"TYPE\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u503C\u7684\u985E\u578B\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u503C\u7684\u985E\u578B\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u78BA\u5B9A\u5176\u985E\u578B\u7684\u6578\u64DA\u3002\\n\\n\u6578\u4F4D\u8FD4\u56DE1\uFF1B\\n\\n\u6587\u5B57\u8FD4\u56DE2\uFF1B\\n\\n\u908F\u8F2F\u503C\u8FD4\u56DE4\uFF1B\\n\\n\u932F\u8AA4\u503C\u8FD4\u56DE16\uFF1B\\n\\n\u6578\u7D44\u8FD4\u56DE64\uFF1B\"\r\n }\r\n ]\r\n },\r\n \"N\": {\r\n \"d\": \"\u8FD4\u56DE\u8F49\u5316\u70BA\u6578\u503C\u5F8C\u7684\u503C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u8F49\u5316\u70BA\u6578\u503C\u5F8C\u7684\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u6578\u4F4D\u7684\u53C3\u6578\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6578\u4F4D,\u5247\u8FD4\u56DE\u8A72\u6578\u4F4D\u3002\\n\\n\u5982\u679C\u503C\u70BA\u65E5\u671F,\u5247\u8FD4\u56DE\u8A72\u65E5\u671F\u7684\u5E8F\u865F\u3002\\n\\n\u5982\u679C\u503C\u70BATRUE,\u5247\u8FD4\u56DE1\u3002\\n\\n\u5982\u679C\u503C\u70BAFALSE,\u5247\u8FD4\u56DE0\u3002\\n\\n\u5982\u679C\u503C\u70BA\u932F\u8AA4\u503C,\u5247\u8FD4\u56DE\u932F\u8AA4\u503C\u3002\\n\\n\u5982\u679C\u503C\u70BA\u5176\u4ED6\u503C,\u5247\u8FD4\u56DE0\u3002\"\r\n }\r\n ]\r\n },\r\n \"TO_DATE\": {\r\n \"d\": \"\u5C07\u6307\u5B9A\u7684\u6578\u4F4D\u8F49\u63DB\u70BA\u65E5\u671F\u3002\",\r\n \"a\": \"\u5C07\u6307\u5B9A\u7684\u6578\u4F4D\u8F49\u63DB\u70BA\u65E5\u671F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u65E5\u671F\u7684\u53C3\u6578\u6216\u5176\u5132\u5B58\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,TO_DATE\u6703\u5C07\u503C\u8F49\u63DB\u70BA\u76F8\u61C9\u7684\u65E5\u671F\u4E26\u8FD4\u56DE,\u503C\u4EE3\u8868\u5F9E\u5341\u4E8C\u670830\u65E5\u5230\u5C0D\u61C9\u7684\u65E5\u671F\u4E4B\u9593\u7684\u5929\u6578,\\n\\n\u8CA0\u503C\u8868\u793A\u5C0D\u61C9\u7684\u65E5\u671F\u5728\u5341\u4E8C\u670830\u65E5\u4E4B\u524D,\u800C\u5C0F\u6578\u503C\u5247\u4EE3\u8868\u4E00\u5929\u4E2D\u5F9E\u5348\u591C\u7B97\u8D77\u7684\u6642\u9593\u3002\\n\u5982\u679C\u503C\u4E0D\u662F\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5247TO_DATE\u5C07\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"TO_PURE_NUMBER\": {\r\n \"d\": \"\u5C07\u7D66\u5B9A\u7684\u65E5\u671F/\u6642\u9593\u3001\u767E\u5206\u6BD4\u3001\u8CA8\u5E63\u91D1\u984D\u6216\u5176\u4ED6\u683C\u5F0F\u7684\u6578\u503C\u8F49\u63DB\u70BA\u4E0D\u5E36\u683C\u5F0F\u7684\u7D14\u6578\u4F4D\u3002\",\r\n \"a\": \"\u5C07\u7D66\u5B9A\u7684\u65E5\u671F/\u6642\u9593\u3001\u767E\u5206\u6BD4\u3001\u8CA8\u5E63\u91D1\u984D\u6216\u5176\u4ED6\u683C\u5F0F\u7684\u6578\u503C\u8F49\u63DB\u70BA\u4E0D\u5E36\u683C\u5F0F\u7684\u7D14\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u7D14\u6578\u4F4D\u7684\u53C3\u6578\u6216\u5176\u5132\u5B58\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6578\u4F4D\u6216\u6307\u5411\u5305\u542B\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,TO_PURE_NUMBER\u5C07\u4EE5\u4E0D\u5E36\u4EFB\u4F55\u683C\u5F0F\u8207\u89E3\u91CB\u7684\u5F62\u5F0F\u8FD4\u56DE\u503C\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5247TO_PERCENT\u5C07\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"TO_TEXT\": {\r\n \"d\": \"\u5C07\u7D66\u5B9A\u7684\u6578\u4F4D\u503C\u8F49\u63DB\u70BA\u6587\u672C\u683C\u5F0F\u3002\",\r\n \"a\": \"\u5C07\u7D66\u5B9A\u7684\u6578\u4F4D\u503C\u8F49\u63DB\u70BA\u6587\u672C\u683C\u5F0F\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u6587\u5B57\u7684\u53C3\u6578\u6216\u5176\u5132\u5B58\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6578\u4F4D\u6216\u6307\u5411\u5305\u542B\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,TO_TEXT\u5C07\u8FD4\u56DE\u5B57\u4E32\u5F62\u5F0F\u7684\u503C,\u4E26\u4FDD\u6301\u73FE\u6709\u683C\u5F0F\u3002\u5373\u539F\u70BA\u8CA8\u5E63\u7684\u4ECD\u70BA\u8CA8\u5E63,\u539F\u70BA\u5341\u9032\u4F4D\u6578\u7684\u4ECD\u70BA\u5341\u9032\u4F4D\u6578,\u539F\u70BA\u767E\u5206\u6BD4\u7684\u4ECD\u70BA\u767E\u5206\u6BD4,\u539F\u70BA\u65E5\u671F\u7684\u4ECD\u70BA\u65E5\u671F\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5247TO_TEXT\u5C07\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"TO_DOLLARS\": {\r\n \"d\": \"\u5C07\u6307\u5B9A\u7684\u6578\u4F4D\u8F49\u63DB\u70BA\u7F8E\u5143\u91D1\u984D\u3002\",\r\n \"a\": \"\u5C07\u6307\u5B9A\u7684\u6578\u4F4D\u8F49\u63DB\u70BA\u7F8E\u5143\u91D1\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u7F8E\u5143\u91D1\u984D\u7684\u53C3\u6578\u6216\u5176\u5132\u5B58\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5247TO_DOLLARS\u5C07\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"TO_PERCENT\": {\r\n \"d\": \"\u5C07\u6307\u5B9A\u7684\u6578\u4F4D\u8F49\u63DB\u70BA\u767E\u5206\u6BD4\u3002\",\r\n \"a\": \"\u5C07\u6307\u5B9A\u7684\u6578\u4F4D\u8F49\u63DB\u70BA\u767E\u5206\u6BD4\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"value\",\r\n \"detail\": \"\u8981\u8F49\u63DB\u70BA\u767E\u5206\u6BD4\u7684\u53C3\u6578\u6216\u5176\u5132\u5B58\u683C\u5F15\u7528\u3002\\n\\n\u5982\u679C\u503C\u70BA\u6578\u4F4D\u6216\u6307\u5411\u5305\u542B\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,TO_PERCENT\u6703\u4EE51 = 100%\u70BA\u6A19\u6E96,\u5C07\u503C\u8F49\u63DB\u70BA\u767E\u5206\u6BD4\u3002\\n\\n\u5982\u679C\u503C\u4E0D\u662F\u6578\u4F4D\u6216\u6307\u5411\u5167\u5BB9\u70BA\u6578\u503C\u7684\u5132\u5B58\u683C\u7684\u5F15\u7528,\u5247TO_PERCENT\u5C07\u5728\u4E0D\u505A\u4EFB\u4F55\u4FEE\u6539\u7684\u60C5\u51B5\u4E0B\u8FD4\u56DE\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DGET\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u5F9E\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5217\u4E2D\u9078\u53D6\u7B26\u5408\u6307\u5B9A\u689D\u4EF6\u7684\u55AE\u500B\u503C\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u5F9E\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5217\u4E2D\u9078\u53D6\u7B26\u5408\u6307\u5B9A\u689D\u4EF6\u7684\u55AE\u500B\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DMAX\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5927\u6578\u4F4D\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5927\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DMIN\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5C0F\u6578\u4F4D\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6700\u5C0F\u6578\u4F4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DAVERAGE\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u5C0D\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u503C\u6C42\u5E73\u5747\u503C\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u5C0D\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u503C\u6C42\u5E73\u5747\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DCOUNT\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u5305\u542B\u6578\u4F4D\u7684\u5132\u5B58\u683C\u7684\u500B\u6578\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u5305\u542B\u6578\u4F4D\u7684\u5132\u5B58\u683C\u7684\u500B\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DCOUNTA\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u975E\u7A7A\u5132\u5B58\u683C\u7684\u500B\u6578\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u975E\u7A7A\u5132\u5B58\u683C\u7684\u500B\u6578\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DPRODUCT\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u503C\u7684\u4E58\u7A4D\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u503C\u7684\u4E58\u7A4D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DSTDEV\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5229\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4F5C\u70BA\u4E00\u500B\u6A23\u672C\u4F30\u7B97\u51FA\u7684\u7E3D\u9AD4\u6A19\u6E96\u5DEE\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5229\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4F5C\u70BA\u4E00\u500B\u6A23\u672C\u4F30\u7B97\u51FA\u7684\u7E3D\u9AD4\u6A19\u6E96\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DSTDEVP\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5229\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4F5C\u70BA\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u51FA\u7684\u7E3D\u9AD4\u6A19\u6E96\u5DEE\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5229\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4F5C\u70BA\u6A23\u672C\u7E3D\u9AD4\u8A08\u7B97\u51FA\u7684\u7E3D\u9AD4\u6A19\u6E96\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DSUM\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4E4B\u548C\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5217\u8868\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4E4B\u548C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DVAR\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5229\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4F5C\u70BA\u4E00\u500B\u6A23\u672C\u4F30\u7B97\u51FA\u7684\u7E3D\u9AD4\u65B9\u5DEE\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u8FD4\u56DE\u5229\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u4F5C\u70BA\u4E00\u500B\u6A23\u672C\u4F30\u7B97\u51FA\u7684\u7E3D\u9AD4\u65B9\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"DVARP\": {\r\n \"d\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u901A\u904E\u4F7F\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u8A08\u7B97\u6A23\u672C\u7E3D\u9AD4\u7684\u6A23\u672C\u7E3D\u9AD4\u65B9\u5DEE\u3002\",\r\n \"a\": \"\u4F7F\u7528SQL\u5F0F\u67FB\u8A62,\u901A\u904E\u4F7F\u7528\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u4E2D\u6EFF\u8DB3\u6307\u5B9A\u689D\u4EF6\u7684\u8A18\u9304\u6B04\u4F4D\uFF08\u5217\uFF09\u4E2D\u7684\u6578\u4F4D\u8A08\u7B97\u6A23\u672C\u7E3D\u9AD4\u7684\u6A23\u672C\u7E3D\u9AD4\u65B9\u5DEE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"database\",\r\n \"detail\": \"\u69CB\u6210\u6E05\u55AE\u6216\u8CC7\u6599\u5EAB\u7684\u5132\u5B58\u683C\u5340\u57DF,\u6E05\u55AE\u7684\u7B2C\u4E00\u884C\u5305\u542B\u6BCF\u4E00\u5217\u7684\u6A19\u7C64\u3002\"\r\n },\r\n {\r\n \"name\": \"field\",\r\n \"detail\": \"\u6307\u5B9Adatabase\u4E2D\u7684\u54EA\u4E00\u5217\u5305\u542B\u8981\u9078\u53D6\u548C\u7528\u65BC\u8A08\u7B97\u7684\u503C\u3002\\n\\nfield\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\u6A19\u984C\u5C0D\u61C9\u7684\u6587\u5B57\u6A19\u7C64,\u4E5F\u53EF\u4EE5\u662F\u6307\u5B9A\u76F8\u95DC\u5217\u7684\u6578\u4F4D\u7D22\u5F15,\u7B2C\u4E00\u5217\u7684\u7D22\u5F15\u503C\u70BA1\u3002\"\r\n },\r\n {\r\n \"name\": \"criteria\",\r\n \"detail\": \"\u5305\u542B\u6240\u6307\u5B9A\u689D\u4EF6\u7684\u5132\u5B58\u683C\u5340\u57DF\u3002\u8A08\u7B97\u4E4B\u524D\u5C07\u4F7F\u7528\u9019\u4E9B\u689D\u4EF6\u4F86\u904E\u6FFEdatabase\u4E2D\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"AGE_BY_IDCARD\": {\r\n \"d\": \"\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u5E74\u9F61\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u5E74\u9F61\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u622A\u6B62\u65E5\u671F\",\r\n \"detail\": \"\u5E74\u9F61\u8A08\u7B97\u7684\u622A\u6B62\u65E5\u671F\u6216\u7BC4\u570D,\u9ED8\u8A8D\u70BA\u7576\u65E5\u3002\"\r\n }\r\n ]\r\n },\r\n \"SEX_BY_IDCARD\": {\r\n \"d\": \"\u6839\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u6027\u5225\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u6839\u64DA\u8EAB\u4EFD\u8B49\u865F\u5F97\u5230\u6027\u5225\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"BIRTHDAY_BY_IDCARD\": {\r\n \"d\": \"\u6839\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u751F\u65E5\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u6839\u64DA\u8EAB\u4EFD\u8B49\u865F\u5F97\u5230\u751F\u65E5\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"\u751F\u65E5\u683C\u5F0F\",\r\n \"detail\": \"\u65E5\u671F\u985E\u578B,\u9ED8\u8A8D0:[1900/01/01],1:[1900-01-01],2:[1900\u5E741\u67081\u65E5]\"\r\n }\r\n ]\r\n },\r\n \"PROVINCE_BY_IDCARD\": {\r\n \"d\": \"\u6839\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u7C4D\u8CAB\u7684\u7701\u4EFD\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u6839\u64DA\u8EAB\u4EFD\u8B49\u865F\u5F97\u5230\u7C4D\u8CAB\u7684\u7701\u4EFD\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"CITY_BY_IDCARD\": {\r\n \"d\": \"\u6839\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u7C4D\u8CAB\u7684\u90FD\u5E02\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u6839\u64DA\u8EAB\u4EFD\u8B49\u865F\u5F97\u5230\u7C4D\u8CAB\u7684\u90FD\u5E02\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"STAR_BY_IDCARD\": {\r\n \"d\": \"\u6839\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u661F\u5EA7\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u6839\u64DA\u8EAB\u4EFD\u8B49\u865F\u5F97\u5230\u661F\u5EA7\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ANIMAL_BY_IDCARD\": {\r\n \"d\": \"\u6839\u64DA\u4E2D\u570B\u8EAB\u4EFD\u8B49\u865F\u8A08\u7B97\u51FA\u751F\u8096\uFF08\u9F20\u3001\u725B\u3001\u864E\u3001\u5154\u2026\uFF09\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u6839\u64DA\u8EAB\u4EFD\u8B49\u865F\u5F97\u5230\u751F\u8096\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"ISIDCARD\": {\r\n \"d\": \"\u9A57\u8B49\u8EAB\u4EFD\u8B49\u7684\u683C\u5F0F\u662F\u5426\u6B63\u78BA\u3002\u652F\u630115\u4F4D\u621618\u4F4D\u8EAB\u4EFD\u8B49\",\r\n \"a\": \"\u9A57\u8B49\u8EAB\u4EFD\u8B49\u683C\u5F0F\u6B63\u78BA\u6027\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u8EAB\u4EFD\u8B49\u865F\",\r\n \"detail\": \"15\u4F4D\u6216\u800518\u4F4D\u7684\u8EAB\u4EFD\u8B49\u865F\u6216\u7BC4\u570D\u3002\"\r\n }\r\n ]\r\n },\r\n \"DM_TEXT_CUTWORD\": {\r\n \"d\": \"\u6587\u5B57\u5206\u8A5E\u3002\u628A\u4E00\u9023\u4E32\u6587\u5B57\u6298\u958B\u70BA\u4E00\u7CFB\u5217\u55AE\u7368\u8A5E\u8A9E\",\r\n \"a\": \"\u4E2D\u6587\u6587\u5B57\u5206\u8A5E\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6587\u5B57\",\r\n \"detail\": \"\u4EFB\u610F\u9700\u8981\u5206\u8A5E\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5206\u8A5E\u6A21\u5F0F\",\r\n \"detail\": \"\u9ED8\u8A8D\u70BA0[\u7CBE\u78BA\u6A21\u5F0F]\uFF0C1[\u5168\u6A21\u5F0F]\uFF0C2[\u641C\u5C0B\u5F15\u64CE\u6A21\u5F0F]\u3002\"\r\n }\r\n ]\r\n },\r\n \"DM_TEXT_TFIDF\": {\r\n \"d\": \"\u63A1\u7528tf-idf\u7B97\u704B\u9032\u884C\u95DC\u9375\u5B57\u9078\u53D6\u3002\u5F9E\u4E00\u9023\u4E32\u6587\u5B57\u4E2D\u8B58\u5225\u95DC\u9375\u5B57\",\r\n \"a\": \"tf-idf\u95DC\u9375\u5B57\u8B58\u5225\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6587\u5B57\",\r\n \"detail\": \"\u4EFB\u610F\u9700\u8981\u5206\u8A5E\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"\u95DC\u9375\u5B57\u500B\u6578\",\r\n \"detail\": \"\u7B97\u704B\u8FD4\u56DE\u7684\u95DC\u9375\u5B57\u500B\u6578\uFF0C\u9ED8\u8A8D20\"\r\n },\r\n {\r\n \"name\": \"\u8A9E\u6599\u5EAB\",\r\n \"detail\": \"\u9078\u64C7\u7279\u5B9A\u9818\u57DF\u7684\u8A9E\u6599\u5EAB\uFF0C\u9ED8\u8A8D0[\u901A\u7528]\uFF0C1[\u91D1\u878D]\uFF0C2[\u91AB\u7642]\"\r\n }\r\n ]\r\n },\r\n \"DM_TEXT_TEXTRANK\": {\r\n \"d\": \"\u63A1\u7528TextRank\u7B97\u704B\u9032\u884C\u95DC\u9375\u5B57\u9078\u53D6\u3002\u5F9E\u4E00\u9023\u4E32\u6587\u5B57\u4E2D\u8B58\u5225\u95DC\u9375\u5B57\",\r\n \"a\": \"TextRank\u95DC\u9375\u5B57\u8B58\u5225\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6587\u5B57\",\r\n \"detail\": \"\u4EFB\u610F\u9700\u8981\u5206\u8A5E\u7684\u6587\u5B57\u3002\"\r\n },\r\n {\r\n \"name\": \"\u95DC\u9375\u5B57\u500B\u6578\",\r\n \"detail\": \"\u7B97\u704B\u8FD4\u56DE\u7684\u95DC\u9375\u5B57\u500B\u6578\uFF0C\u9ED8\u8A8D20\"\r\n },\r\n {\r\n \"name\": \"\u8A9E\u6599\u5EAB\",\r\n \"detail\": \"\u9078\u64C7\u7279\u5B9A\u9818\u57DF\u7684\u8A9E\u6599\u5EAB\uFF0C\u9ED8\u8A8D0[\u901A\u7528]\uFF0C1[\u91D1\u878D]\uFF0C2[\u91AB\u7642]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_CLOSE\": {\r\n \"d\": \"\u6839\u64DA\u80A1\u7968\u4EE3\u78BC\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6536\u76E4\u50F9\u3002\",\r\n \"a\": \"\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6536\u76E4\u50F9\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u80A1\u7968\u4EE3\u78BC\",\r\n \"detail\": \"6\u4F4D\u80A1\u7968\u4EE3\u78BC\uFF0C\u5FC5\u586B\u9805\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8A8D\u70BA\u6700\u65B0\u4EA4\u6613\u65E5\"\r\n },\r\n {\r\n \"name\": \"\u8907\u6B0A\u9664\u6B0A\",\r\n \"detail\": \"\u9078\u64C7\u80A1\u7968\u7684\u9664\u6B0A\u8907\u6B0A\u985E\u578B\uFF0C\u9ED8\u8A8D0[\u524D\u8907\u6B0A]\uFF0C1[\u539F\u59CB\u50F9\u683C]\uFF0C2[\u5F8C\u8907\u6B0A]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_OPEN\": {\r\n \"d\": \"\u6839\u64DA\u80A1\u7968\u4EE3\u78BC\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u958B\u76E4\u50F9\u3002\",\r\n \"a\": \"\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u958B\u76E4\u50F9\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u80A1\u7968\u4EE3\u78BC\",\r\n \"detail\": \"6\u4F4D\u80A1\u7968\u4EE3\u78BC\uFF0C\u5FC5\u586B\u9805\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8A8D\u70BA\u6700\u65B0\u4EA4\u6613\u65E5\"\r\n },\r\n {\r\n \"name\": \"\u8907\u6B0A\u9664\u6B0A\",\r\n \"detail\": \"\u9078\u64C7\u80A1\u7968\u7684\u9664\u6B0A\u8907\u6B0A\u985E\u578B\uFF0C\u9ED8\u8A8D0[\u524D\u8907\u6B0A]\uFF0C1[\u539F\u59CB\u50F9\u683C]\uFF0C2[\u5F8C\u8907\u6B0A]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_MAX\": {\r\n \"d\": \"\u6839\u64DA\u80A1\u7968\u4EE3\u78BC\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6700\u9AD8\u50F9\u3002\",\r\n \"a\": \"\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6700\u9AD8\u50F9\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u80A1\u7968\u4EE3\u78BC\",\r\n \"detail\": \"6\u4F4D\u80A1\u7968\u4EE3\u78BC\uFF0C\u5FC5\u586B\u9805\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8A8D\u70BA\u6700\u65B0\u4EA4\u6613\u65E5\"\r\n },\r\n {\r\n \"name\": \"\u8907\u6B0A\u9664\u6B0A\",\r\n \"detail\": \"\u9078\u64C7\u80A1\u7968\u7684\u9664\u6B0A\u8907\u6B0A\u985E\u578B\uFF0C\u9ED8\u8A8D0[\u524D\u8907\u6B0A]\uFF0C1[\u539F\u59CB\u50F9\u683C]\uFF0C2[\u5F8C\u8907\u6B0A]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_MIN\": {\r\n \"d\": \"\u6839\u64DA\u80A1\u7968\u4EE3\u78BC\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6700\u4F4E\u50F9\u3002\",\r\n \"a\": \"\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6700\u4F4E\u50F9\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u80A1\u7968\u4EE3\u78BC\",\r\n \"detail\": \"6\u4F4D\u80A1\u7968\u4EE3\u78BC\uFF0C\u5FC5\u586B\u9805\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5,\u9ED8\u8BA4\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\"\r\n },\r\n {\r\n \"name\": \"\u8907\u6B0A\u9664\u6B0A\",\r\n \"detail\": \"\u9078\u64C7\u80A1\u7968\u7684\u9664\u6B0A\u8907\u6B0A\u985E\u578B\uFF0C\u9ED8\u8A8D0[\u524D\u8907\u6B0A]\uFF0C1[\u539F\u59CB\u50F9\u683C]\uFF0C2[\u5F8C\u8907\u6B0A]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_VOLUMN\": {\r\n \"d\": \"\u6839\u64DA\u80A1\u7968\u4EE3\u78BC\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6210\u4EA4\u91CF\u3002\",\r\n \"a\": \"\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6210\u4EA4\u91CF\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u80A1\u7968\u4EE3\u78BC\",\r\n \"detail\": \"6\u4F4D\u80A1\u7968\u4EE3\u78BC\uFF0C\u5FC5\u586B\u9805\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8A8D\u70BA\u6700\u65B0\u4EA4\u6613\u65E5\"\r\n },\r\n {\r\n \"name\": \"\u8907\u6B0A\u9664\u6B0A\",\r\n \"detail\": \"\u9078\u64C7\u80A1\u7968\u7684\u9664\u6B0A\u8907\u6B0A\u985E\u578B\uFF0C\u9ED8\u8A8D0[\u524D\u8907\u6B0A]\uFF0C1[\u539F\u59CB\u50F9\u683C]\uFF0C2[\u5F8C\u8907\u6B0A]\"\r\n }\r\n ]\r\n },\r\n \"DATA_CN_STOCK_AMOUNT\": {\r\n \"d\": \"\u6839\u64DA\u80A1\u7968\u4EE3\u78BC\u548C\u65E5\u671F\uFF0C\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6210\u4EA4\u984D\u3002\",\r\n \"a\": \"\u8FD4\u56DEA\u80A1\u5C0D\u61C9\u80A1\u7968\u6210\u4EA4\u984D\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u80A1\u7968\u4EE3\u78BC\",\r\n \"detail\": \"6\u4F4D\u80A1\u7968\u4EE3\u78BC\uFF0C\u5FC5\u586B\u9805\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u80A1\u7968\u7684\u4EA4\u6613\u65E5\uFF0C\u9ED8\u8A8D\u70BA\u6700\u65B0\u4EA4\u6613\u65E5\"\r\n },\r\n {\r\n \"name\": \"\u8907\u6B0A\u9664\u6B0A\",\r\n \"detail\": \"\u9078\u64C7\u80A1\u7968\u7684\u9664\u6B0A\u8907\u6B0A\u985E\u578B\uFF0C\u9ED8\u8A8D0[\u524D\u8907\u6B0A]\uFF0C1[\u539F\u59CB\u50F9\u683C]\uFF0C2[\u5F8C\u8907\u6B0A]\"\r\n }\r\n ]\r\n },\r\n \"ISDATE\": {\r\n \"d\": \"\u9A57\u8B49\u65E5\u671F\u7684\u683C\u5F0F\u662F\u5426\u6B63\u78BA\u3002\u652F\u6301\u591A\u7A2E\u65E5\u671F\u683C\u5F0F\",\r\n \"a\": \"\u9A57\u8B49\u65E5\u671F\u683C\u5F0F\u6B63\u78BA\u6027\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u65E5\u671F\",\r\n \"detail\": \"\u65E5\u671F\u503C,\u4F8B\u59821990/01/01, 1990\u5E741\u67081\u65E5\u7B49\u3002\"\r\n }\r\n ]\r\n },\r\n \"LINESPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u6298\u7DDA\u5716sparklines\uFF0C\u7528\u65BC\u63CF\u8FF0\u6578\u64DA\u7684\u9023\u7E8C\u8D70\u52E2\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u6298\u7DDA\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C{1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7DDA\u689D\u984F\u8272\",\r\n \"detail\": \"\u7DDA\u5716\u7684\u7DDA\u689D\u984F\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u500B\u7BC4\u570DA1\u3001\u8272\u9336\u7D22\u5F15\u6578\u503C\u6216\u8005\u5177\u9AD4\u984F\u8272\u503C\uFF0C\u8A2D\u5B9A\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8A8D#2ec7c9\"\r\n },\r\n {\r\n \"name\": \"\u7DDA\u689D\u7C97\u7D30\",\r\n \"detail\": \"\u6298\u7DDA\u5716\u7DDA\u6BB5\u7C97\u7D30\uFF0C\u9ED8\u8A8D\u70BA1px\"\r\n },\r\n {\r\n \"name\": \"\u8F14\u52A9\u7DDA\",\r\n \"detail\": \"\u4E00\u689D\u6A6B\u7DDA\uFF0C\u53EF\u4EE5\u662Fmin\u3001max\u3001avg\u3001median\u3001\u7BC4\u570D\u6216\u81EA\u5B9A\u7FA9\u6578\u503C\uFF0C\u9ED8\u8A8D0\u7121\"\r\n },\r\n {\r\n \"name\": \"\u8F14\u52A9\u7DDA\u984F\u8272\",\r\n \"detail\": \"\u8F14\u52A9\u7DDA\u7684\u984F\u8272\u8A2D\u5B9A\uFF0C\u540C\u7DDA\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D#000\"\r\n },\r\n {\r\n \"name\": \"\u6700\u5927\u503C\u6A19\u8B58\",\r\n \"detail\": \"\u6A19\u8B58\u7DDA\u5716\u6700\u5927\u503C\uFF0C\u540C\u7DDA\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D0\u4E0D\u986F\u793A\"\r\n },\r\n {\r\n \"name\": \"\u6700\u5C0F\u503C\u6A19\u8B58\",\r\n \"detail\": \"\u6A19\u8B58\u7DDA\u5716\u6700\u5C0F\u503C\uFF0C\u540C\u7DDA\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D0\u4E0D\u986F\u793A\"\r\n },\r\n {\r\n \"name\": \"\u6A19\u8B58\u5927\u5C0F\",\r\n \"detail\": \"\u6700\u5927\u503C\u548C\u6700\u5C0F\u503C\u7684\u6A19\u8B58\u5927\u5C0F\u8A2D\u5B9A\uFF0C\u9ED8\u8A8D\u70BA1.5\"\r\n }\r\n ]\r\n },\r\n \"AREASPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u9762\u7A4D\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u6578\u64DA\u7684\u9023\u7E8C\u7D2F\u7A4D\u503C\u8D70\u52E2\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u9762\u7A4D\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C{1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u7DDA\u689D\u984F\u8272\",\r\n \"detail\": \"\u7DDA\u5716\u7684\u7DDA\u689D\u984F\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u500B\u7BC4\u570DA1\u3001\u8272\u9336\u7D22\u5F15\u6578\u503C\u6216\u8005\u5177\u9AD4\u984F\u8272\u503C\uFF0C\u8A2D\u5B9A\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8A8D#2ec7c9\"\r\n },\r\n {\r\n \"name\": \"\u586B\u5145\u984F\u8272\",\r\n \"detail\": \"\u5F62\u6210\u9762\u7A4D\u5716\uFF0C\u540C\u7DDA\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D0\u4E0D\u986F\u793A\"\r\n },\r\n {\r\n \"name\": \"\u7DDA\u689D\u7C97\u7D30\",\r\n \"detail\": \"\u6298\u7DDA\u5716\u7DDA\u6BB5\u7C97\u7D30\uFF0C\u9ED8\u8A8D\u70BA1px\"\r\n },\r\n {\r\n \"name\": \"\u8F14\u52A9\u7DDA\",\r\n \"detail\": \"\u4E00\u689D\u6A6B\u7DDA\uFF0C\u53EF\u4EE5\u662Fmin\u3001max\u3001avg\u3001median\u3001\u7BC4\u570D\u6216\u81EA\u5B9A\u7FA9\u6578\u503C\uFF0C\u9ED8\u8A8D0\u7121\"\r\n },\r\n {\r\n \"name\": \"\u8F14\u52A9\u7DDA\u984F\u8272\",\r\n \"detail\": \"\u8F14\u52A9\u7DDA\u7684\u984F\u8272\u8A2D\u5B9A\uFF0C\u540C\u7DDA\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D#000\"\r\n }\r\n ]\r\n },\r\n \"COLUMNSPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u5782\u76F4\u67F1\u72C0\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u96E2\u6563\u6578\u64DA\u4E4B\u9593\u7684\u5927\u5C0F\u60C5\u51B5\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u5782\u76F4\u67F1\u72C0\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C{1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u9593\u9694\",\r\n \"detail\": \"\u67F1\u689D\u4E4B\u9593\u7684\u9593\u9694\u8DDD\u96E2\uFF0C\u9ED8\u8A8D\u70BA1\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u7DDA\u5716\u7684\u7DDA\u689D\u984F\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u500B\u7BC4\u570DA1\u3001\u8272\u9336\u7D22\u5F15\u6578\u503C\u6216\u8005\u5177\u9AD4\u984F\u8272\u503C\uFF0C\u8A2D\u5B9A\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8A8D#fc5c5c\"\r\n },\r\n {\r\n \"name\": \"\u8CA0\u5411\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u8CA0\u5411\u67F1\u689D\u984F\u8272\u8A2D\u5B9A\uFF0C\u4EE3\u8868\u8CA0\u503C\u7684\u984F\u8272\uFF0C\u540C\u67F1\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D#97b552\"\r\n },\r\n {\r\n \"name\": \"\u6700\u5927\u503C\",\r\n \"detail\": \"\u67F1\u5716\u6700\u5927\u503C\uFF0C\u7528\u65BC\u898F\u7BC4\u67F1\u5716\u9577\u5EA6\uFF0C\u9ED8\u8A8D\u70BA\u81EA\u52D5\u8A08\u7B97false\u3001auto\u3001null\"\r\n },\r\n {\r\n \"name\": \"\u8272\u677F\",\r\n \"detail\": \"\u8ABF\u8272\u677F\u53EF\u4EE5\u55AE\u7368\u8A2D\u5B9A\u6BCF\u500B\u67F1\u689D\u7684\u984F\u8272\uFF0C\u53EF\u8A2D\u5B9A\u591A\u500B\uFF0C\u652F\u6301\u5169\u7A2E\u683C\u5F0F:1\u984F\u8272\u4F8B\u5982#000\uFF0C\u4EE3\u8868\u7B2C\u4E00\u500B\u67F1\u7684\u984F\u8272\u662F\u9ED1\u8272\uFF1B2\u6578\u503C\u7BC4\u570D:\u984F\u8272\uFF0C\u4F8B\u5982-2:#000\u8868\u793A\u6578\u503C\u70BA-2\u7684\u67F1\u70BA\u9ED1\u8272\uFF0C0:5:#000\u8868\u793A\u6578\u503C0-5\u7684\u67F1\u70BA\u9ED1\u8272\uFF0C\u9ED8\u8A8D\u70BA\u7A7A\"\r\n }\r\n ]\r\n },\r\n \"STACKCOLUMNSPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u7D2F\u7A4D\u5782\u76F4\u67F1\u72C0\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u96E2\u6563\u6578\u64DA\u591A\u500B\u7DAD\u5EA6\u7684\u6578\u503C\u5927\u5C0F\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u7D2F\u7A4D\u5782\u76F4\u67F1\u72C0\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20\uFF0C{1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6309\u5217\u5806\u7A4D\",\r\n \"detail\": \"\u5982\u679C\u9700\u8981\u6309\u884C\u5806\u7A4D\u5247\u672C\u9805\u8A2D\u70BAfalse\u62160\uFF0C\u9ED8\u8A8D\u70BA\u662F1\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u9593\u9694\",\r\n \"detail\": \"\u67F1\u689D\u4E4B\u9593\u7684\u9593\u9694\u8DDD\u96E2\uFF0C\u9ED8\u8A8D\u70BA1\"\r\n },\r\n {\r\n \"name\": \"\u6700\u5927\u503C\",\r\n \"detail\": \"\u7D2F\u7A4D\u67F1\u5716\u6700\u5927\u503C\uFF0C\u7528\u65BC\u898F\u7BC4\u67F1\u5716\u9577\u5EA6\uFF0C\u9ED8\u8A8D\u70BA\u81EA\u52D5\u8A08\u7B97false\u3001auto\u3001null\"\r\n },\r\n {\r\n \"name\": \"\u7D2F\u7A4D\u8272\u677F\",\r\n \"detail\": \"\u8ABF\u8272\u677F\u53EF\u4EE5\u55AE\u7368\u8A2D\u5B9A\u6BCF\u500B\u7DAD\u5EA6\u7684\u67F1\u689D\u984F\u8272\uFF0C\u53EF\u8A2D\u5B9A\u70BAA1:A10\u7B49\u7BC4\u570D\uFF0C\u9ED8\u8A8D\u70BA#2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\"\r\n }\r\n ]\r\n },\r\n \"BARSPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u6A6B\u5411\u689D\u5F62\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u96E2\u6563\u6578\u64DA\u4E4B\u9593\u7684\u5927\u5C0F\u60C5\u51B5\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u6A6B\u5411\u689D\u5F62\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D,\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20, {1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u9593\u9694\",\r\n \"detail\": \"\u67F1\u689D\u4E4B\u9593\u7684\u9593\u9694\u8DDD\u96E2\uFF0C\u9ED8\u8A8D\u70BA1\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u7DDA\u5716\u7684\u7DDA\u689D\u984F\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u500B\u7BC4\u570DA1\u3001\u8272\u9336\u7D22\u5F15\u6578\u503C\u6216\u8005\u5177\u9AD4\u984F\u8272\u503C\uFF0C\u8A2D\u5B9A\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8A8D#fc5c5c\"\r\n },\r\n {\r\n \"name\": \"\u8CA0\u5411\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u8CA0\u5411\u67F1\u689D\u984F\u8272\u8A2D\u5B9A\uFF0C\u4EE3\u8868\u8CA0\u503C\u7684\u984F\u8272\uFF0C\u540C\u67F1\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D#97b552\"\r\n },\r\n {\r\n \"name\": \"\u6700\u5927\u503C\",\r\n \"detail\": \"\u67F1\u5716\u6700\u5927\u503C\uFF0C\u7528\u65BC\u898F\u7BC4\u67F1\u5716\u9577\u5EA6\uFF0C\u9ED8\u8A8D\u70BA\u81EA\u52D5\u8A08\u7B97false\u3001auto\u3001null\"\r\n },\r\n {\r\n \"name\": \"\u8272\u677F\",\r\n \"detail\": \"\u8ABF\u8272\u677F\u53EF\u4EE5\u55AE\u7368\u8A2D\u5B9A\u6BCF\u500B\u67F1\u689D\u7684\u984F\u8272\uFF0C\u53EF\u8A2D\u5B9A\u591A\u500B\uFF0C\u652F\u6301\u5169\u7A2E\u683C\u5F0F:1\u984F\u8272\u4F8B\u5982#000\uFF0C\u4EE3\u8868\u7B2C\u4E00\u500B\u67F1\u7684\u984F\u8272\u662F\u9ED1\u8272\uFF1B2\u6578\u503C\u7BC4\u570D:\u984F\u8272\uFF0C\u4F8B\u5982-2:#000\u8868\u793A\u6578\u503C\u70BA-2\u7684\u67F1\u70BA\u9ED1\u8272\uFF0C0:5:#000\u8868\u793A\u6578\u503C0-5\u7684\u67F1\u70BA\u9ED1\u8272\uFF0C\u9ED8\u8A8D\u70BA\u7A7A\"\r\n }\r\n ]\r\n },\r\n \"STACKBARSPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u7D2F\u7A4D\u6A6B\u5411\u689D\u5F62\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u96E2\u6563\u6578\u64DA\u591A\u500B\u7DAD\u5EA6\u7684\u6578\u503C\u5927\u5C0F\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u7D2F\u7A4D\u6A6B\u5411\u689D\u5F62\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D,\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20, {1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u6309\u5217\u5806\u7A4D\",\r\n \"detail\": \"\u5982\u679C\u9700\u8981\u6309\u884C\u5806\u7A4D\u5247\u672C\u9805\u8A2D\u70BAfalse\u62160\uFF0C\u9ED8\u8A8D\u70BA\u662F1\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u9593\u9694\",\r\n \"detail\": \"\u67F1\u689D\u4E4B\u9593\u7684\u9593\u9694\u8DDD\u96E2\uFF0C\u9ED8\u8A8D\u70BA1\"\r\n },\r\n {\r\n \"name\": \"\u6700\u5927\u503C\",\r\n \"detail\": \"\u7D2F\u7A4D\u67F1\u5716\u6700\u5927\u503C\uFF0C\u7528\u65BC\u898F\u7BC4\u67F1\u5716\u9577\u5EA6\uFF0C\u9ED8\u8A8D\u70BA\u81EA\u52D5\u8A08\u7B97false\u3001auto\u3001null\"\r\n },\r\n {\r\n \"name\": \"\u7D2F\u7A4D\u8272\u677F\",\r\n \"detail\": \"\u8ABF\u8272\u677F\u53EF\u4EE5\u55AE\u7368\u8A2D\u5B9A\u6BCF\u500B\u7DAD\u5EA6\u7684\u67F1\u689D\u984F\u8272\uFF0C\u53EF\u8A2D\u5B9A\u70BAA1:A10\u7B49\u7BC4\u570D\uFF0C\u9ED8\u8A8D\u70BA#2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\"\r\n }\r\n ]\r\n },\r\n \"DISCRETESPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u96E2\u6563\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u96E2\u6563\u6578\u64DA\u8D70\u52E2\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u96E2\u6563\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D,\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20, {1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5206\u5272\u95BE\u503C\",\r\n \"detail\": \"\u96E2\u6563\u5716\u67F1\u5F62\u984F\u8272\u7684\u5340\u5206\uFF0C\u4F8B\u5982:\u8A72\u503C\u70BA0\uFF0C\u5247\u5927\u65BC0\u70BA\u85CD\u8272\uFF0C\u5C0F\u65BC0\u70BA\u7D05\u8272\uFF0C\u9ED8\u8A8D\u70BA0\"\r\n },\r\n {\r\n \"name\": \"\u95BE\u503C\u4EE5\u4E0A\u984F\u8272\",\r\n \"detail\": \"\u7DDA\u5716\u7684\u7DDA\u689D\u984F\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u500B\u7BC4\u570DA1\u3001\u8272\u9336\u7D22\u5F15\u6578\u503C\u6216\u8005\u5177\u9AD4\u984F\u8272\u503C\uFF0C\u8A2D\u5B9A\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8A8D#2ec7c9\"\r\n },\r\n {\r\n \"name\": \"\u95BE\u503C\u4EE5\u4E0B\u984F\u8272\",\r\n \"detail\": \"\u95BE\u503C\u4EE5\u4E0B\u67F1\u689D\u984F\u8272\u8A2D\u5B9A\uFF0C\u540C\u95BE\u503C\u4EE5\u4E0A\u984F\u8272\uFF0C\u9ED8\u8A8D#fc5c5c\"\r\n }\r\n ]\r\n },\r\n \"TRISTATESPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u4E09\u614B\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u4E09\u7A2E\u614B\u52E2\u7684\u8D70\u52E2\u4F8B\u5982\u52DD\u8CA0\u5E73\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u4E09\u614B\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D,\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20, {1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u9593\u9694\",\r\n \"detail\": \"\u67F1\u689D\u4E4B\u9593\u7684\u9593\u9694\u8DDD\u96E2\uFF0C\u9ED8\u8A8D\u70BA1\"\r\n },\r\n {\r\n \"name\": \"\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u7DDA\u5716\u7684\u7DDA\u689D\u984F\u8272\uFF0C\u53EF\u4EE5\u662F\u5426\u500B\u7BC4\u570DA1\u3001\u8272\u9336\u7D22\u5F15\u6578\u503C\u6216\u8005\u5177\u9AD4\u984F\u8272\u503C\uFF0C\u8A2D\u5B9A\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u652F\u6301regx\u3001rgb\u3001rgba\u7B49\u3002\u9ED8\u8A8D#fc5c5c\"\r\n },\r\n {\r\n \"name\": \"\u8D1F\u5411\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u8CA0\u5411\u67F1\u689D\u984F\u8272\u8A2D\u5B9A\uFF0C\u4EE3\u8868\u8CA0\u503C\u7684\u984F\u8272\uFF0C\u540C\u67F1\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D#97b552\"\r\n },\r\n {\r\n \"name\": \"\u96F6\u503C\u67F1\u689D\u984F\u8272\",\r\n \"detail\": \"\u96F6\u503C\u67F1\u689D\u984F\u8272\u8A2D\u5B9A\uFF0C\u4EE3\u88680\u503C\u984F\u8272\uFF0C\u540C\u67F1\u689D\u984F\u8272\u914D\u5BD8\uFF0C\u9ED8\u8A8D#999\"\r\n },\r\n {\r\n \"name\": \"\u8272\u677F\",\r\n \"detail\": \"\u8ABF\u8272\u677F\u53EF\u4EE5\u55AE\u7368\u8A2D\u5B9A\u6BCF\u500B\u67F1\u689D\u7684\u984F\u8272\uFF0C\u53EF\u8A2D\u5B9A\u591A\u500B\uFF0C\u652F\u6301\u5169\u7A2E\u683C\u5F0F:1\u984F\u8272\u4F8B\u5982#000\uFF0C\u4EE3\u8868\u7B2C\u4E00\u500B\u67F1\u7684\u984F\u8272\u662F\u9ED1\u8272\uFF1B2\u6578\u503C\u7BC4\u570D:\u984F\u8272\uFF0C\u4F8B\u5982-2:#000\u8868\u793A\u6578\u503C\u70BA-2\u7684\u67F1\u70BA\u9ED1\u8272\uFF0C0-5:#000\u8868\u793A\u6578\u503C0-5\u7684\u67F1\u70BA\u9ED1\u8272\uFF0C\u9ED8\u8A8D\u70BA\u7A7A\"\r\n }\r\n ]\r\n },\r\n \"PIESPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u9905\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u6578\u64DA\u5360\u6BD4\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u9905\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D,\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20, {1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u65CB\u8F49\u89D2\u5EA6\",\r\n \"detail\": \"\u9905\u5716\u7684\u65CB\u8F49\u89D2\u5EA6\uFF0C\u9ED8\u8A8D\u70BA0\"\r\n },\r\n {\r\n \"name\": \"\u9905\u5716\u908A\u6846\",\r\n \"detail\": \"\u9905\u5716\u908A\u6846\u5927\u5C0F\uFF0C\u9ED8\u8A8D\u70BA\u71210\"\r\n },\r\n {\r\n \"name\": \"\u908A\u6846\u984F\u8272\",\r\n \"detail\": \"\u9905\u5716\u908A\u6846\u984F\u8272\uFF0C\u9ED8\u8A8D\u70BA#000\"\r\n },\r\n {\r\n \"name\": \"\u9905\u5716\u8272\u677F\",\r\n \"detail\": \"\u8ABF\u8272\u677F\u53EF\u4EE5\u8A2D\u5B9A\u5207\u7247\u7684\u984F\u8272\uFF0C\u53EF\u8A2D\u5B9A\u70BAA1:A10\u7B49\u7BC4\u570D\uFF0C\u9ED8\u8A8D\u70BA#2ec7c9, #fc5c5c, #5ab1ef, #ffb980...\"\r\n }\r\n ]\r\n },\r\n \"BOXSPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u7BB1\u7DDA\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u6578\u64DA\u96C6\u7684\u7D71\u8A08\u5206\u4F48\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u7BB1\u7DDA\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u6578\u64DA\u7BC4\u570D\",\r\n \"detail\": \"\u6578\u64DA\u7BC4\u570D,\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1:A20, {1,2,3,4,5}\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u96E2\u7FA4\u9EDE\u6BD4\u4F8B\",\r\n \"detail\": \"\u96E2\u7FA4\u9EDE\u7684\u95BE\u503C\u7BC4\u570D\uFF0C\u5982\u679C\u70BA0\u6216false\u5247\u4E0D\u986F\u793A\uFF0C\u9ED8\u8A8D\u70BA1.5\u500D\"\r\n },\r\n {\r\n \"name\": \"\u76EE\u6A19\u9EDE\u503C\",\r\n \"detail\": \"\u7BB1\u7DDA\u5716\u4E0A\u7684\u76EE\u6A19\u503C\u8A2D\u5B9A\uFF0C\u9ED8\u8A8D\u70BAfalse\u4E0D\u986F\u793A\"\r\n },\r\n {\r\n \"name\": \"\u6578\u64DA\u9EDE\u5927\u5C0F\",\r\n \"detail\": \"\u76EE\u6A19\u9EDE\u548C\u96E2\u7FA4\u9EDE\u7684\u534A\u5F91\u5927\u5C0F\u8A2D\u5B9A\uFF0C\u9ED8\u8A8D\u70BA1.5\"\r\n }\r\n ]\r\n },\r\n \"BULLETSPLINES\": {\r\n \"d\": \"\u751F\u6210\u5D4C\u5165\u5728\u5132\u5B58\u683C\u5167\u7684\u5B50\u5F48\u5716sparklines\uFF0C\u4E00\u822C\u7528\u65BC\u63CF\u8FF0\u4EFB\u52D9\u9054\u6210\u7387\",\r\n \"a\": \"\u751F\u6210\u5132\u5B58\u683C\u5B50\u5F48\u5716\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u76EE\u6A19\",\r\n \"detail\": \"\u9054\u6210\u7684\u76EE\u6A19\u503C\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1\uFF0C100\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5BE6\u969B\u5B8C\u6210\",\r\n \"detail\": \"\u73FE\u6642\u5B8C\u6210\u503C\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1\uFF0C100\u7B49\u3002\"\r\n },\r\n {\r\n \"name\": \"\u5C0D\u6BD4\u503C\",\r\n \"detail\": \"\u5C0D\u6BD4\u503C\uFF0C\u4F8B\u5982\u8D85\u984D\u3001\u6700\u4F4E\u3001\u7372\u734E\u5E95\u7DDA\u7B49\uFF0C\u6578\u503C\u624D\u80FD\u88AB\u6709\u6548\u8A08\u7B97\uFF0C\u4F8B\u5982A1\uFF0C100\u7B49\u3002\u53EF\u4EE5\u8A2D\u5B9A\u6700\u591A9\u500B\u5C0D\u6BD4\u503C\"\r\n }\r\n ]\r\n },\r\n \"COMPOSESPLINES\": {\r\n \"d\": \"\u652F\u6301\u591A\u500B\u985E\u578B\u7684\u5716\u756B\u5728\u540C\u4E00\u500B\u5132\u5B58\u683C\uFF0C\u6BCF\u500B\u53C3\u6578\u4EE3\u8868\u4E00\u500Bsparklines\u5716\",\r\n \"a\": \"\u7D44\u5408sparklines\u5716\u5230\u4E00\u500B\u5132\u5B58\u683C\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u5716\u8A2D\u5B9A\",\r\n \"detail\": \"sparklines\u5716\u8A2D\u5B9A\uFF0C\u4F8B\u5982A1:A20\uFF0C\u4E00\u500B\u5B8C\u6210\u7684\u9905\u5716\u3001\u7DDA\u5716\u8A2D\u5B9A\u7B49\u3002\"\r\n }\r\n ]\r\n },\r\n \"SORT\": {\r\n \"d\": \"\u8FD4\u56DE\u6578\u7D44\u4E2D\u5143\u7D20\u7684\u6392\u5E8F\u6578\u7D44\u3002\u8FD4\u56DE\u7684\u6578\u7D44\u8207\u63D0\u4F9B\u7684\u6578\u7D44\u53C3\u6578\u5F62\u72C0\u76F8\u540C\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u6578\u7D44\u4E2D\u5143\u7D20\u7684\u6392\u5E8F\u6578\u7D44\u3002\u8FD4\u56DE\u7684\u6578\u7D44\u8207\u63D0\u4F9B\u7684\u6578\u7D44\u53C3\u6578\u5F62\u72C0\u76F8\u540C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u6392\u5E8F\u7684\u7BC4\u570D\u6216\u6578\u7D44\u3002\"\r\n },\r\n {\r\n \"name\": \"sort_index\",\r\n \"detail\": \"[\u53EF\u9078] - \u8868\u793A\u8981\u6392\u5E8F\u7684\u884C\u6216\u5217\u7684\u6578\u4F4D\u3002\uFF08\u9ED8\u8A8Drow1/col1\uFF09\"\r\n },\r\n {\r\n \"name\": \"sort_order\",\r\n \"detail\": \"[\u53EF\u9078] - \u8868\u793A\u6240\u9700\u6392\u5E8F\u9806\u5E8F\u7684\u6578\u4F4D\uFF1B1\u8868\u793A\u6607\u51AA\uFF08\u9ED8\u8A8D\uFF09\uFF0C-1\u8868\u793A\u964D\u5E8F\u3002\"\r\n },\r\n {\r\n \"name\": \"by_col\",\r\n \"detail\": \"[\u53EF\u9078] - \u8868\u793A\u6240\u9700\u6392\u5E8F\u65B9\u5411\u7684\u908F\u8F2F\u503C\uFF1B\u6309\u884C\u6392\u5E8F\u70BAFALSE\uFF08\uFF09\uFF08\u9ED8\u8A8D\uFF09\uFF0C\u6309\u5217\u6392\u5E8F\u70BATRUE\uFF08\uFF09\u3002\"\r\n }\r\n ]\r\n },\r\n \"FILTER\": {\r\n \"d\": \"\u57FA\u65BC\u4E00\u500B\u5E03\u6797\uFF08\u771F/\u5047\uFF09\u6578\u7D44\u904E\u6FFE\u4E00\u500B\u6578\u7D44\u3002\",\r\n \"a\": \"\u57FA\u65BC\u4E00\u500B\u5E03\u6797\uFF08\u771F/\u5047\uFF09\u6578\u7D44\u904E\u6FFE\u4E00\u500B\u6578\u7D44\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u8981\u7BE9\u9078\u7684\u6578\u7D44\u6216\u7BC4\u570D\u3002\"\r\n },\r\n {\r\n \"name\": \"include\",\r\n \"detail\": \"\u5E03\u6797\u6578\u7D44\uFF0C\u5176\u9AD8\u5EA6\u6216\u5BEC\u5EA6\u8207\u6578\u7D44\u76F8\u540C\"\r\n },\r\n {\r\n \"name\": \"if_empty\",\r\n \"detail\": \"[\u53EF\u9078] - \u5982\u679C\u5305\u542B\u6578\u7D44\u4E2D\u7684\u6240\u6709\u503C\u90FD\u70BA\u7A7A\uFF08filter\u4E0D\u8FD4\u56DE\u4EFB\u4F55\u503C\uFF09\uFF0C\u5247\u8FD4\u56DE\u7684\u503C\u3002\"\r\n }\r\n ]\r\n },\r\n \"UNIQUE\": {\r\n \"d\": \"\u8FD4\u56DE\u5217\u8868\u6216\u5340\u57DF\u4E2D\u7684\u552F\u4E00\u503C\u7684\u6E05\u55AE\u3002\",\r\n \"a\": \"\u8FD4\u56DE\u5217\u8868\u6216\u5340\u57DF\u4E2D\u7684\u552F\u4E00\u503C\u7684\u6E05\u55AE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"array\",\r\n \"detail\": \"\u5F9E\u5176\u8FD4\u56DE\u552F\u4E00\u503C\u7684\u6578\u7D44\u6216\u5340\u57DF\u3002\"\r\n },\r\n {\r\n \"name\": \"by_col\",\r\n \"detail\": \"[\u53EF\u9078] - \u908F\u8F2F\u503C\uFF0C\u8A13\u793A\u5982\u4F55\u6BD4\u8F03\uFF1B\u6309\u884C= FALSE\uFF08\uFF09\u6216\u7701\u7565\uFF1B\u6309\u5217= TRUE\uFF08\uFF09\u3002\"\r\n },\r\n {\r\n \"name\": \"occurs_once\",\r\n \"detail\": \"[\u53EF\u9078] - \u908F\u8F2F\u503C\uFF0C\u50C5\u8FD4\u56DE\u552F\u4E00\u503C\u4E2D\u51FA\u73FE\u4E00\u6B21= TRUE\uFF08\uFF09\uFF1B\u5305\u62EC\u6240\u6709\u552F\u4E00\u503C= FALSE\uFF08\uFF09\u6216\u7701\u7565\u3002\"\r\n }\r\n ]\r\n },\r\n \"RANDARRAY\": {\r\n \"d\": \"\u8FD4\u56DE0\u52301\u4E4B\u9593\u7684\u96A8\u6A5F\u6578\u4F4D\u6578\u7D44\u3002\",\r\n \"a\": \"\u8FD4\u56DE0\u52301\u4E4B\u9593\u7684\u96A8\u6A5F\u6578\u4F4D\u6578\u7D44\",\r\n \"p\": [\r\n {\r\n \"name\": \"rows\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u8FD4\u56DE\u7684\u884C\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"cols\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u8FD4\u56DE\u7684\u5217\u6578\u3002\"\r\n }\r\n ]\r\n },\r\n \"SEQUENCE\": {\r\n \"d\": \"\u751F\u6210\u6578\u4F4D\u5E8F\u5217\u7684\u6E05\u55AE\u3002\",\r\n \"a\": \"\u751F\u6210\u6578\u4F4D\u5E8F\u5217\u7684\u6E05\u55AE\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"rows\",\r\n \"detail\": \"\u8981\u8FD4\u56DE\u7684\u884C\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"cols\",\r\n \"detail\": \"[\u53EF\u9078] - \u8981\u8FD4\u56DE\u7684\u5217\u6578\u3002\"\r\n },\r\n {\r\n \"name\": \"start\",\r\n \"detail\": \"[\u53EF\u9078] - \u5E8F\u5217\u4E2D\u7684\u7B2C\u4E00\u500B\u6578\u4F4D\u3002\"\r\n },\r\n {\r\n \"name\": \"step\",\r\n \"detail\": \"[\u53EF\u9078] -\u5E8F\u5217\u4E2D\u6BCF\u500B\u5E8F\u5217\u503C\u7684\u589E\u91CF\u3002\"\r\n }\r\n ]\r\n },\r\n \"EVALUATE\": {\r\n \"d\": \"\u5C0D\u4EE5\u6587\u5B57\u8868\u793A\u7684\u516C\u5F0F\u6216\u8005\u8868\u9054\u5F0F\u6C42\u503C\uFF0C\u4E26\u8FD4\u56DE\u7D50\u679C\u3002\",\r\n \"a\": \"\u6839\u64DA\u6587\u5B57\u516C\u5F0F\u6216\u8005\u8868\u9054\u5F0F\u6C42\u503C\u3002\",\r\n \"p\": [\r\n {\r\n \"name\": \"\u516C\u5F0F\",\r\n \"detail\": \"\u516C\u5F0F\u6216\u8868\u9054\u5F0F\"\r\n }\r\n ]\r\n },\r\n \"REMOTE\": {\r\n \"d\": \"Calls a function on a remote server\",\r\n \"a\": \"Calls a function on a remote back end server/API.\",\r\n \"p\": [\r\n {\r\n \"name\": \"remote_expression\",\r\n \"detail\": \"Formula\"\r\n }\r\n ]\r\n }\r\n },\r\n toolbar: {\r\n undo : '\u64A4\u92B7',\r\n redo : '\u91CD\u505A',\r\n paintFormat : '\u683C\u5F0F\u5237',\r\n currencyFormat : '\u8CA8\u5E63\u683C\u5F0F',\r\n percentageFormat : '\u767E\u5206\u6BD4\u683C\u5F0F',\r\n numberDecrease : '\u51CF\u5C11\u5C0F\u6578\u4F4D\u6578',\r\n numberIncrease : '\u65B0\u589E\u5C0F\u6578\u4F4D\u6578',\r\n moreFormats : '\u66F4\u591A\u683C\u5F0F',\r\n font : '\u5B57\u9AD4',\r\n fontSize : '\u5B57\u578B\u5927\u5C0F',\r\n bold : '\u7C97\u9AD4\uFF08Ctrl+B\uFF09',\r\n italic : '\u659C\u9AD4\uFF08Ctrl+I\uFF09',\r\n strikethrough : '\u5220\u9664\u7DDA\uFF08Alt+Shift+5\uFF09',\r\n underline : '\u5E95\u7DDA',\r\n textColor : '\u6587\u5B57\u984F\u8272',\r\n chooseColor : '\u984F\u8272\u9078\u64C7',\r\n resetColor : '\u91CD\u7F6E\u984F\u8272',\r\n customColor : '\u81EA\u5B9A\u7FA9',\r\n alternatingColors : '\u4EA4\u66FF\u984F\u8272',\r\n confirmColor : '\u78BA\u5B9A\u984F\u8272',\r\n cancelColor : '\u53D6\u6D88',\r\n collapse : '\u6536\u8D77',\r\n fillColor : '\u5132\u5B58\u683C\u984F\u8272',\r\n border : '\u908A\u6846',\r\n borderStyle : '\u908A\u6846\u985E\u578B',\r\n mergeCell : '\u5408\u4F75\u5132\u5B58\u683C',\r\n chooseMergeType : '\u9078\u64C7\u5408\u4F75\u985E\u578B',\r\n horizontalAlign : '\u6C34\u51C6\u5C0D\u9F4A',\r\n verticalAlign : '\u5782\u76F4\u5C0D\u9F4A',\r\n alignment : '\u5C0D\u9F4A\u7BA1\u9053',\r\n textWrap : '\u6587\u5B57\u63DB\u884C',\r\n textWrapMode : '\u63DB\u884C\u7BA1\u9053',\r\n textRotate : '\u6587\u5B57\u65CB\u8F49',\r\n textRotateMode : '\u65CB\u8F49\u7BA1\u9053',\r\n freezeTopRow : '\u51CD\u7D50\u7B2C\u4E00\u884C',\r\n sortAndFilter : '\u6392\u5E8F\u548C\u7BE9\u9078',\r\n findAndReplace : '\u67E5\u627E\u66FF\u63DB',\r\n sum : '\u6C42\u548C',\r\n autoSum : '\u81EA\u52D5\u6C42\u548C',\r\n moreFunction : '\u66F4\u591A\u51FD\u6578',\r\n conditionalFormat : '\u689D\u4EF6\u683C\u5F0F',\r\n postil : '\u6279\u8A3B',\r\n pivotTable : '\u6578\u64DA\u900F\u8996\u9336',\r\n chart : '\u5716\u8868',\r\n screenshot : '\u622A\u5716',\r\n splitColumn : '\u5206\u5217',\r\n insertImage : '\u63D2\u5165\u5716\u7247',\r\n exportXlsx : \"\u5C0E\u51FAXlsx\",\r\n insertLink : '\u63D2\u5165\u9023\u7D50',\r\n dataVerification : '\u6578\u64DA\u9A57\u8B49',\r\n protection : '\u4FDD\u8B77\u5DE5\u4F5C\u8868\u5167\u5BB9',\r\n clearText : '\u6E05\u9664\u984F\u8272\u9078\u64C7',\r\n noColorSelectedText: '\u6C92\u6709\u984F\u8272\u88AB\u9078\u64C7',\r\n toolMore : '\u66F4\u591A',\r\n toolLess : '\u5C11\u65BC',\r\n toolClose : '\u6536\u8D77',\r\n toolMoreTip : '\u66F4\u591A\u529F\u80FD',\r\n moreOptions : '\u66F4\u591A\u9078\u9805',\r\n cellFormat : '\u8A2D\u5B9A\u5132\u5B58\u683C\u683C\u5F0F',\r\n print : '\u5217\u5370'\r\n },\r\n alternatingColors: {\r\n applyRange : '\u61C9\u7528\u7BC4\u570D',\r\n selectRange : '\u9078\u64C7\u61C9\u7528\u7BC4\u570D',\r\n header : '\u9801\u7709',\r\n footer : '\u9801\u8173',\r\n errorInfo : '\u4E0D\u80FD\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C,\u8ACB\u9078\u64C7\u55AE\u500B\u5340\u57DF,\u7136\u5F8C\u518D\u8A66',\r\n textTitle : '\u683C\u5F0F\u6A23\u5F0F',\r\n custom : '\u81EA\u5B9A\u7FA9',\r\n close : '\u95DC\u9589',\r\n selectionTextColor: '\u9078\u64C7\u6587\u5B57\u984F\u8272',\r\n selectionCellColor: '\u9078\u64C7\u5132\u5B58\u683C\u984F\u8272',\r\n removeColor : '\u79FB\u9664\u4EA4\u66FF\u984F\u8272',\r\n colorShow : '\u984F\u8272',\r\n currentColor : '\u7576\u524D\u984F\u8272',\r\n tipSelectRange : '\u8ACB\u9078\u64C7\u4EA4\u66FF\u984F\u8272\u61C9\u7528\u7BC4\u570D',\r\n errorNoRange : '\u60A8\u9078\u64C7\u7684\u61C9\u7528\u7BC4\u570D\u4E0D\u662F\u9078\u5340\uFF01',\r\n errorExistColors : '\u60A8\u9078\u64C7\u7684\u61C9\u7528\u7BC4\u570D\u5DF2\u5B58\u5728\u4EA4\u66FF\u984F\u8272\u4E14\u4E0D\u5C6C\u65BC\u4F60\u8981\u7DE8\u8F2F\u7684\u61C9\u7528\u7BC4\u570D\uFF01',\r\n },\r\n button: {\r\n confirm: '\u78BA\u5B9A',\r\n cancel : '\u53D6\u6D88',\r\n close : \"\u95DC\u9589\",\r\n update : \"Update\",\r\n delete : \"Delete\",\r\n insert : \"\u65B0\u5EFA\",\r\n prevPage: \"\u4E0A\u4E00\u9801\",\r\n nextPage: \"\u4E0B\u4E00\u9801\",\r\n total: \"\u7E3D\u5171\uFF1A\"\r\n },\r\n paint: {\r\n start : '\u683C\u5F0F\u5237\u958B\u555F',\r\n end : 'ESC\u9375\u9000\u51FA',\r\n tipSelectRange: '\u8ACB\u9078\u64C7\u9700\u8981\u8907\u88FD\u683C\u5F0F\u7684\u5340\u57DF',\r\n tipNotMulti : '\u7121\u6CD5\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C',\r\n },\r\n format: {\r\n moreCurrency : '\u66F4\u591A\u8CA8\u5E63\u683C\u5F0F',\r\n moreDateTime : '\u66F4\u591A\u65E5\u671F\u8207\u6642\u9593\u683C\u5F0F',\r\n moreNumber : '\u66F4\u591A\u6578\u4F4D\u683C\u5F0F',\r\n titleCurrency: '\u8CA8\u5E63\u683C\u5F0F',\r\n decimalPlaces: '\u5C0F\u6578\u4F4D\u6578',\r\n titleDateTime: '\u65E5\u671F\u8207\u6642\u9593\u683C\u5F0F',\r\n titleNumber : '\u6578\u4F4D\u683C\u5F0F'\r\n },\r\n info: {\r\n detailUpdate: '\u65B0\u6253\u958B',\r\n detailSave : '\u5DF2\u6062\u5FA9\u672C\u5730\u7DE9\u5B58',\r\n row : '\u884C',\r\n column : '\u5217',\r\n loading : '\u6E32\u67D3\u4E2D\u00B7\u00B7\u00B7',\r\n\r\n copy : '\u526F\u672C',\r\n return: '\u8FD4\u56DE',\r\n rename: '\u91CD\u547D\u540D',\r\n tips : '\u8868\u683C\u91CD\u547D\u540D',\r\n noName: '\u7121\u6A19\u984C\u7684\u8A66\u7B97\u8868',\r\n wait : '\u5F85\u66F4\u65B0',\r\n\r\n add : '\u6DFB\u52A0',\r\n addLast : '\u5728\u5E95\u90E8\u6DFB\u52A0',\r\n backTop : '\u56DE\u5230\u9802\u90E8',\r\n pageInfo: '\u5171${total}\u689D,${totalPage}\u9801,\u7576\u524D\u5DF2\u986F\u793A${currentPage}\u9801',\r\n nextPage: '\u4E0B\u4E00\u9801',\r\n\r\n tipInputNumber : '\u8ACB\u8F38\u5165\u6578\u4F4D',\r\n tipInputNumberLimit: '\u65B0\u589E\u7BC4\u570D\u9650\u5236\u57281-100',\r\n\r\n tipRowHeightLimit : '\u884C\u9AD8\u5FC5\u9808\u57280 ~ 545\u4E4B\u9593',\r\n tipColumnWidthLimit: '\u5217\u5BEC\u5FC5\u9808\u57280 ~ 2038\u4E4B\u9593',\r\n pageInfoFull : '\u5171${total}\u689D,${totalPage}\u9801,\u5DF2\u986F\u793A\u5168\u90E8\u6578\u64DA',\r\n },\r\n currencyDetail: {\r\n RMB : '\u4EBA\u6C11\u5E63',\r\n USdollar : '\u7F8E\u5143',\r\n EUR : '\u6B50\u5143',\r\n GBP : '\u82F1\u938A',\r\n HK : '\u6E2F\u5143',\r\n JPY : '\u65E5\u5143',\r\n AlbanianLek : '\u963F\u723E\u5DF4\u5C3C\u4E9E\u5217\u514B',\r\n AlgerianDinar : '\u963F\u723E\u53CA\u5229\u4E9E\u7B2C\u7D0D\u723E',\r\n Afghani : '\u963F\u5BCC\u6C57\u5C3C',\r\n ArgentinePeso : '\u963F\u6839\u5EF7\u6BD4\u7D22',\r\n UnitedArabEmiratesDirham : '\u963F\u62C9\u4F2F\u806F\u5408\u5927\u516C\u570B\u8FEA\u62C9\u59C6',\r\n ArubanFlorin : '\u963F\u9B6F\u5DF4\u5F17\u7F85\u6797',\r\n OmaniRial : '\u963F\u66FC\u88E1\u4E9E\u723E',\r\n Azerbaijanimanat : '\u963F\u585E\u62DC\u7586\u99AC\u7D0D\u7279',\r\n EgyptianPound : '\u57C3\u53CA\u938A',\r\n EthiopianBirr : '\u8863\u7D22\u6BD4\u4E9E\u6BD4\u723E',\r\n AngolaKwanza : '\u5B89\u54E5\u62C9\u5BEC\u7D2E',\r\n AustralianDollar : '\u6FB3\u5927\u5229\u4E9E\u5143',\r\n Patacas : '\u6FB3\u9580\u5143',\r\n BarbadosDollar : '\u5DF4\u5DF4\u591A\u65AF\u5143',\r\n PapuaNewGuineaKina : '\u5DF4\u5E03\u4E9E\u65B0\u5E7E\u5167\u4E9E\u57FA\u90A3',\r\n BahamianDollar : '\u5DF4\u54C8\u99AC\u5143',\r\n PakistanRupee : '\u5DF4\u57FA\u65AF\u5766\u76E7\u6BD4',\r\n ParaguayanGuarani : '\u5DF4\u62C9\u572D\u74DC\u62C9\u5C3C',\r\n BahrainiDinar : '\u5DF4\u6797\u7B2C\u7D0D\u723E',\r\n PanamanianBalboa : '\u5DF4\u62FF\u99AC\u5DF4\u6CE2\u4E9E',\r\n Brazilianreal : '\u5DF4\u897F\u88CF\u4E9E\u4F0A',\r\n Belarusianruble : '\u767D\u4FC4\u7F85\u65AF\u76E7\u5E03',\r\n BermudianDollar : '\u767E\u6155\u5927\u5143',\r\n BulgarianLev : '\u4FDD\u52A0\u5229\u4E9E\u5217\u5F17',\r\n IcelandKrona : '\u51B0\u5CF6\u514B\u6717',\r\n BosniaHerzegovinaConvertibleMark: '\u6CE2\u9ED1\u53EF\u514C\u63DB\u99AC\u514B',\r\n PolishZloty : '\u6CE2\u862D\u8332\u7F85\u63D0',\r\n Boliviano : '\u73BB\u5229\u7DAD\u4E9E\u8AFE',\r\n BelizeDollar : '\u8C9D\u88E1\u65AF\u5143',\r\n BotswanaPula : '\u6CE2\u5284\u90A3\u666E\u62C9',\r\n NotDannuzhamu : '\u4E0D\u4E39\u52AA\u7D2E\u59C6',\r\n BurundiFranc : '\u5E03\u9686\u8FEA\u6CD5\u90CE',\r\n NorthKoreanWon : '\u671D\u9BAE\u5713',\r\n DanishKrone : '\u4E39\u9EA5\u514B\u6717',\r\n EastCaribbeanDollar : '\u6771\u52A0\u52D2\u6BD4\u5143',\r\n DominicaPeso : '\u591A\u660E\u5C3C\u52A0\u6BD4\u7D22',\r\n RussianRuble : '\u4FC4\u570B\u76E7\u5E03',\r\n EritreanNakfa : '\u5384\u5229\u5782\u4E9E\u7D0D\u514B\u6CD5',\r\n CFAfranc : '\u975E\u6D32\u91D1\u878D\u5171\u540C\u9AD4\u6CD5\u90CE',\r\n PhilippinePeso : '\u83F2\u5F8B\u8CD3\u6BD4\u7D22',\r\n FijiDollar : '\u6590\u6FDF\u5143',\r\n CapeVerdeEscudo : '\u4F5B\u5F97\u89D2\u57C3\u65AF\u5EAB\u591A',\r\n FalklandIslandsPound : '\u798F\u514B\u862D\u7FA4\u5CF6\u938A',\r\n GambianDalasi : '\u5CA1\u6BD4\u4E9E\u9054\u62C9\u897F',\r\n Congolesefranc : '\u525B\u679C\u6CD5\u90CE',\r\n ColombianPeso : '\u54E5\u502B\u6BD4\u4E9E\u6BD4\u7D22',\r\n CostaRicanColon : '\u54E5\u65AF\u5927\u9ECE\u52A0\u79D1\u6717',\r\n CubanPeso : '\u53E4\u5DF4\u6BD4\u7D22',\r\n Cubanconvertiblepeso : '\u53E4\u5DF4\u53EF\u514C\u63DB\u6BD4\u7D22',\r\n GuyanaDollar : '\u84CB\u4E9E\u90A3\u5143',\r\n KazakhstanTenge : '\u54C8\u85A9\u514B\u5171\u548C\u570B\u5805\u6208',\r\n Haitiangourde : '\u6D77\u5730\u53E4\u5FB7',\r\n won : '\u97D3\u5143',\r\n NetherlandsAntillesGuilder : '\u8377\u5C6C\u5B89\u7684\u5217\u65AF\u76FE',\r\n Honduraslempiras : '\u6D2A\u90FD\u62C9\u65AF\u62C9\u502B\u76AE\u62C9',\r\n DjiboutiFranc : '\u5409\u5E03\u63D0\u6CD5\u90CE',\r\n KyrgyzstanSom : '\u5409\u723E\u5409\u65AF\u65AF\u5766\u7D22\u59C6',\r\n GuineaFranc : '\u5E7E\u5167\u4E9E\u6CD5\u90CE',\r\n CanadianDollar : '\u52A0\u62FF\u5927\u5143',\r\n GhanaianCedi : '\u52A0\u7D0D\u585E\u5730',\r\n Cambodianriel : '\u9AD8\u68C9\u745E\u723E',\r\n CzechKoruna : '\u6377\u514B\u514B\u6717',\r\n ZimbabweDollar : '\u8F9B\u5DF4\u5A01\u5143',\r\n QatariRiyal : '\u5361\u5854\u723E\u88E1\u4E9E\u723E',\r\n CaymanIslandsDollar : '\u958B\u66FC\u7FA4\u5CF6\u5143',\r\n Comorianfranc : '\u79D1\u6469\u7F85\u6CD5\u90CE',\r\n KuwaitiDinar : '\u79D1\u5A01\u7279\u7B2C\u7D0D\u723E',\r\n CroatianKuna : '\u514B\u7F85\u5730\u4E9E\u5EAB\u7D0D',\r\n KenyanShilling : '\u80AF\u96C5\u5148\u4EE4',\r\n LesothoLoti : '\u840A\u7D22\u6258\u6D1B\u8482',\r\n LaoKip : '\u8001\u64BE\u57FA\u666E',\r\n LebanesePound : '\u9ECE\u5DF4\u5AE9\u938A',\r\n Lithuanianlitas : '\u7ACB\u9676\u5B9B\u7ACB\u7279',\r\n LibyanDinar : '\u5229\u6BD4\u4E9E\u7B2C\u7D0D\u723E',\r\n LiberianDollar : '\u5229\u6BD4\u4E9E\u5143',\r\n RwandaFranc : '\u76E7\u5B89\u9054\u6CD5\u90CE',\r\n RomanianLeu : '\u7F85\u99AC\u5C3C\u4E9E\u5217\u4F0A',\r\n MalagasyAriary : '\u99AC\u62C9\u52A0\u897F\u963F\u88CF\u4E9E\u88CF',\r\n MaldivianRufiyaa : '\u746A\u5F8B\u5730\u592B\u62C9\u83F2\u4E9E',\r\n MalawiKwacha : '\u99AC\u62C9\u5A01\u514B\u74E6\u67E5',\r\n MalaysianRinggit : '\u99AC\u4F86\u897F\u4E9E\u6797\u5409\u7279',\r\n MacedoniawearingDinar : '\u99AC\u5176\u9813\u6234\u7B2C\u7D0D\u723E',\r\n MauritiusRupee : '\u6A21\u88E1\u897F\u65AF\u76E7\u6BD4',\r\n MauritanianOuguiya : '\u8305\u5229\u5854\u5C3C\u4E9E\u70CF\u5409\u4E9E',\r\n MongolianTugrik : '\u8499\u53E4\u5716\u683C\u88E1\u514B',\r\n BangladeshiTaka : '\u5B5F\u52A0\u62C9\u5854\u5361',\r\n PeruvianNuevoSol : '\u79D8\u9B6F\u65B0\u7D22\u723E',\r\n MyanmarKyat : '\u7DEC\u7538\u958B\u4E9E\u7279',\r\n MoldovanLeu : '\u83AB\u723E\u9054\u74E6\u5217\u4F0A',\r\n MoroccanDirham : '\u6469\u6D1B\u54E5\u8FEA\u62C9\u59C6',\r\n MozambiqueMetical : '\u83AB\u4E09\u6BD4\u514B\u6885\u8482\u5361\u723E',\r\n MexicanPeso : '\u58A8\u897F\u54E5\u6BD4\u7D22',\r\n NamibianDollar : '\u7D0D\u7C73\u6BD4\u4E9E\u5143',\r\n SouthAfricanRand : '\u5357\u975E\u862D\u7279',\r\n SouthSudanesePound : '\u5357\u8607\u4E39\u938A',\r\n NicaraguaCordoba : '\u5C3C\u52A0\u62C9\u74DC\u79D1\u591A\u5DF4',\r\n NepaleseRupee : '\u5C3C\u6CCA\u723E\u76E7\u6BD4',\r\n NigerianNaira : '\u5948\u53CA\u5229\u4E9E\u5948\u62C9',\r\n NorwegianKrone : '\u632A\u5A01\u514B\u6717',\r\n GeorgianLari : '\u55AC\u6CBB\u4E9E\u62C9\u745E',\r\n RMBOffshore : '\u4EBA\u6C11\u5E63\uFF08\u96E2\u5CB8\uFF09',\r\n SwedishKrona : '\u745E\u5178\u514B\u6717',\r\n SwissFranc : '\u745E\u58EB\u6CD5\u90CE',\r\n SerbianDinar : '\u585E\u723E\u7DAD\u4E9E\u7B2C\u7D0D\u723E',\r\n SierraLeone : '\u585E\u62C9\u91CC\u6602\u5229\u6602',\r\n SeychellesRupee : '\u585E\u820C\u8033\u76E7\u6BD4',\r\n SaudiRiyal : '\u6C99\u7279\u88E1\u4E9E\u723E',\r\n SaoTomeDobra : '\u8056\u591A\u7F8E\u591A\u5E03\u62C9',\r\n SaintHelenapound : '\u8056\u8D6B\u502B\u90A3\u7FA4\u5CF6\u78C5',\r\n SriLankaRupee : '\u65AF\u91CC\u862D\u5361\u76E7\u6BD4',\r\n SwazilandLilangeni : '\u53F2\u74E6\u6FDF\u862D\u88CF\u862D\u5409\u5C3C',\r\n SudanesePound : '\u8607\u4E39\u938A',\r\n Surinamesedollar : '\u8607\u5229\u5357\u5143',\r\n SolomonIslandsDollar : '\u6240\u7F85\u9580\u7FA4\u5CF6\u5143',\r\n SomaliShilling : '\u7D22\u99AC\u5229\u4E9E\u5148\u4EE4',\r\n TajikistanSomoni : '\u5854\u5409\u514B\u5171\u548C\u570B\u7D22\u83AB\u5C3C',\r\n PacificFranc : '\u592A\u5E73\u6D0B\u6CD5\u90CE',\r\n ThaiBaht : '\u6CF0\u570B\u9296',\r\n TanzanianShilling : '\u5766\u5C1A\u5C3C\u4E9E\u5148\u4EE4',\r\n TonganPaanga : '\u6771\u52A0\u6F58\u52A0',\r\n TrinidadandTobagoDollar : '\u5343\u88E1\u9054\u6258\u8C9D\u54E5\u5143',\r\n TunisianDinar : '\u7A81\u5C3C\u65AF\u7B2C\u7D0D\u723E',\r\n TurkishLira : '\u571F\u8033\u5176\u91CC\u62C9',\r\n VanuatuVatu : '\u74E6\u52AA\u963F\u5716\u74E6\u5716',\r\n GuatemalanQuetzal : '\u74DC\u5730\u99AC\u62C9\u683C\u67E5\u723E',\r\n CommissionBolivar : '\u59D4\u5167\u745E\u62C9\u535A\u5229\u74E6',\r\n BruneiDollar : '\u6C76\u840A\u5143',\r\n UgandanShilling : '\u70CF\u5E72\u9054\u5148\u4EE4',\r\n UkrainianHryvnia : '\u70CF\u514B\u862D\u683C\u88E1\u592B\u5C3C\u4E9E',\r\n UruguayanPeso : '\u70CF\u62C9\u572D\u6BD4\u7D22',\r\n Uzbekistansom : '\u70CF\u8332\u5225\u514B\u8607\u59C6',\r\n WesternSamoaTala : '\u85A9\u6469\u4E9E\u5854\u62C9',\r\n SingaporeDollar : '\u65B0\u52A0\u5761\u5143',\r\n NT : '\u65B0\u81FA\u5E63',\r\n NewZealandDollar : '\u65B0\u897F\u862D\u5143',\r\n HungarianForint : '\u5308\u7259\u5229\u798F\u6797',\r\n SyrianPound : '\u6558\u5229\u4E9E\u938A',\r\n JamaicanDollar : '\u7259\u8CB7\u52A0\u5143',\r\n ArmenianDram : '\u4E9E\u7F8E\u5C3C\u4E9E\u5FB7\u62C9\u59C6',\r\n YemeniRial : '\u8449\u9580\u88E1\u4E9E\u723E',\r\n IraqiDinar : '\u4F0A\u62C9\u514B\u7B2C\u7D0D\u723E',\r\n IranianRial : '\u4F0A\u6717\u88E1\u4E9E\u723E',\r\n NewIsraeliShekel : '\u4EE5\u8272\u5217\u65B0\u8B1D\u514B\u723E',\r\n IndianRupee : '\u5370\u5EA6\u76E7\u6BD4',\r\n IndonesianRupiah : '\u5370\u5C3C\u76E7\u6BD4',\r\n JordanianDinar : '\u7D04\u65E6\u7B2C\u7D0D\u723E',\r\n VND : '\u8D8A\u5357\u76FE',\r\n ZambianKwacha : '\u5C1A\u6BD4\u4E9E\u514B\u74E6\u67E5',\r\n GibraltarPound : '\u76F4\u5E03\u7F85\u9640\u938A',\r\n ChileanPeso : '\u667A\u5229\u6BD4\u7D22',\r\n CFAFrancBEAC : '\u4E2D\u975E\u91D1\u878D\u5408\u4F5C\u6CD5\u90CE',\r\n },\r\n defaultFmt: [\r\n { \"text\": '\u81EA\u52D5', \"value\": \"General\", \"example\": \"\" },\r\n { \"text\": '\u7D14\u6587\u5B57', \"value\": \"@\", \"example\": \"\" },\r\n { \"text\": \"\", \"value\": \"split\", \"example\": \"\" },\r\n { \"text\": '\u6578\u4F4D', \"value\": \"##0.00\", \"example\": \"1000.12\" },\r\n { \"text\": '\u767E\u5206\u6BD4', \"value\": \"#0.00%\", \"example\": \"12.21%\" },\r\n { \"text\": '\u79D1\u5B78\u8A08\u6578', \"value\": \"0.00E+00\", \"example\": \"1.01E+5\" },\r\n { \"text\": \"\", \"value\": \"split\", \"example\": \"\" },\r\n { \"text\": '\u6703\u8A08', \"value\": \"\u00A5(0.00)\", \"example\": \"\u00A5(1200.09)\" },\r\n //{ \"text\": \"\u8CA1\u52D9\", \"value\": \"(#.####)\", \"example\": \"(1200.09)\" },\r\n { \"text\": '\u842C\u5143', \"value\": \"w\", \"example\": \"1\u4EBF2000\u4E072500\" },\r\n { \"text\": '\u8CA8\u5E63', \"value\": \"\u00A50.00\", \"example\": \"\u00A51200.09\" },\r\n //{ \"text\": \"\u8CA8\u5E63\u6574\u6578\", \"value\": \"\u00A5####\", \"example\": \"\u00A51200\" },\r\n { \"text\": '\u842C\u51432\u4F4D\u5C0F\u6578', \"value\": \"w0.00\", \"example\": \"2\u4E072500.55\" },\r\n { \"text\": \"\", \"value\": \"split\", \"example\": \"\" },\r\n { \"text\": '\u65E5\u671F', \"value\": \"yyyy-MM-dd\", \"example\": \"2017-11-29\" },\r\n { \"text\": '\u6642\u9593', \"value\": \"hh:mm AM/PM\", \"example\": \"3:00 PM\" },\r\n { \"text\": '\u6642\u959324H', \"value\": \"hh:mm\", \"example\": \"15:00\" },\r\n { \"text\": '\u65E5\u671F\u6642\u9593', \"value\": \"yyyy-MM-dd hh:mm AM/PM\", \"example\": \"2017-11-29 3:00 PM\" },\r\n { \"text\": '\u65E5\u671F\u6642\u959324H', \"value\": \"yyyy-MM-dd hh:mm\", \"example\": \"2017-11-29 15:00\" },\r\n { \"text\": \"\", \"value\": \"split\", \"example\": \"\" },\r\n { \"text\": '\u81EA\u5B9A\u7FA9\u683C\u5F0F', \"value\": \"fmtOtherSelf\", \"example\": \"more\" }\r\n ],\r\n dateFmtList: [\r\n {\r\n \"name\" : \"1930-08-05\",\r\n \"value\": \"yyyy-MM-dd\"\r\n },\r\n {\r\n \"name\" : \"1930/8/5\",\r\n \"value\": \"yyyy/MM/dd\"\r\n },\r\n {\r\n \"name\" : \"1930\u5E748\u67085\u65E5\",\r\n \"value\": 'yyyy\"\u5E74\"M\"\u6708\"d\"\u65E5\"'\r\n },\r\n {\r\n \"name\" : \"08-05\",\r\n \"value\": \"MM-dd\"\r\n },\r\n {\r\n \"name\" : \"8-5\",\r\n \"value\": \"M-d\"\r\n },\r\n {\r\n \"name\" : \"8\u67085\u65E5\",\r\n \"value\": 'M\"\u6708\"d\"\u65E5\"'\r\n },\r\n {\r\n \"name\" : \"13:30:30\",\r\n \"value\": \"h:mm:ss\"\r\n },\r\n {\r\n \"name\" : \"13:30\",\r\n \"value\": \"h:mm\"\r\n },\r\n {\r\n \"name\" : \"\u4E0B\u534801:30\",\r\n \"value\": '\u4E0A\u5348/\u4E0B\u5348 hh:mm'\r\n },\r\n {\r\n \"name\" : \"\u4E0B\u53481:30\",\r\n \"value\": '\u4E0A\u5348/\u4E0B\u5348 h:mm'\r\n },\r\n {\r\n \"name\" : \"\u4E0B\u53481:30:30\",\r\n \"value\": '\u4E0A\u5348/\u4E0B\u5348 h:mm:ss'\r\n },\r\n {\r\n \"name\" : \"08-05 \u4E0B\u534801:30\",\r\n \"value\": \"MM-dd \u4E0A\u5348/\u4E0B\u5348 hh:mm\"\r\n },\r\n // {\r\n // \"name\": \"1930\u5E748\u67085\u65E5\u661F\u671F\u4E8C\",\r\n // \"value\": ''\r\n // },\r\n // {\r\n // \"name\": \"1930\u5E748\u67085\u65E5\u661F\u671F\u4E8C \u4E0B\u53481:30:30\",\r\n // \"value\": ''\r\n // },\r\n ],\r\n fontFamily: {\r\n MicrosoftYaHei: \"Microsoft YaHei\",\r\n },\r\n fontarray: [\"Times New Roman\", \"Arial\", \"Tahoma\", \"Verdana\", \"\u5FAE\u8EDF\u96C5\u9ED1\", \"\u5B8B\u9AD4\", \"\u9ED1\u9AD4\", \"\u6977\u9AD4\", \"\u4EFF\u5B8B\", \"\u65B0\u5B8B\u9AD4\", \"\u83EF\u6587\u65B0\u9B4F\", \"\u83EF\u6587\u884C\u6977\", \"\u83EF\u6587\u96B8\u66F8\"],\r\n fontjson : { \"times new roman\": 0, \"arial\": 1, \"tahoma\": 2, \"verdana\": 3, \"\u5FAE\u8EDF\u96C5\u9ED1\": 4, \"microsoft yahei\": 4, \"\u5B8B\u9AD4\": 5, \"simsun\": 5, \"\u9ED1\u9AD4\": 6, \"simhei\": 6, \"\u6977\u9AD4\": 7, \"kaiti\": 7, \"\u4EFF\u5B8B\": 8, \"fangsong\": 8, \"\u65B0\u5B8B\u9AD4\": 9, \"nsimsun\": 9, \"\u83EF\u6587\u65B0\u9B4F\": 10, \"stxinwei\": 10, \"\u83EF\u6587\u884C\u6977\": 11, \"stxingkai\": 11, \"\u83EF\u6587\u96B8\u66F8\": 12, \"stliti\": 12, },\r\n border : {\r\n borderTop : '\u4E0A\u6846\u7DDA',\r\n borderBottom : '\u4E0B\u6846\u7DDA',\r\n borderLeft : '\u5DE6\u6846\u7DDA',\r\n borderRight : '\u53F3\u6846\u7DDA',\r\n borderNone : '\u7121',\r\n borderAll : '\u6240\u6709',\r\n borderOutside : '\u5916\u5074',\r\n borderInside : '\u5167\u5074',\r\n borderHorizontal: '\u5167\u5074\u6A6B\u7DDA',\r\n borderVertical : '\u5167\u5074\u5206\u9694\u865F',\r\n borderColor : '\u908A\u6846\u984F\u8272',\r\n borderSize : '\u908A\u6846\u7C97\u7D30'\r\n },\r\n merge: {\r\n mergeAll : \"\u5168\u90E8\u5408\u4F75\",\r\n mergeV : \"\u5782\u76F4\u5408\u4F75\",\r\n mergeH : \"\u6C34\u5E73\u5408\u4F75\",\r\n mergeCancel : \"\u53D6\u6D88\u5408\u4F75\",\r\n overlappingError: \"\u4E0D\u80FD\u5408\u4F75\u91CD\u758A\u5340\u57DF\",\r\n partiallyError : \"\u7121\u6CD5\u5C0D\u90E8\u5206\u5408\u4F75\u5132\u5B58\u683C\u57F7\u884C\u6B64\u64CD\u4F5C\",\r\n },\r\n align: {\r\n left : \"\u5DE6\u5C0D\u9F4A\",\r\n center: \"\u4E2D\u9593\u5C0D\u9F4A\",\r\n right : \"\u53F3\u5C0D\u9F4A\",\r\n\r\n top : \"\u9802\u90E8\u5C0D\u9F4A\",\r\n middle: \"\u5C45\u4E2D\u5C0D\u9F4A\",\r\n bottom: \"\u5E95\u90E8\u5C0D\u9F4A\",\r\n },\r\n textWrap: {\r\n \"overflow\": \"\u6EA2\u51FA\",\r\n \"wrap\" : \"\u81EA\u52D5\u63DB\u884C\",\r\n \"clip\" : \"\u622A\u65B7\",\r\n },\r\n rotation: {\r\n \"none\" : \"\u7121\u65CB\u8F49\",\r\n \"angleup\" : \"\u5411\u4E0A\u50BE\u659C\",\r\n \"angledown\" : \"\u5411\u4E0B\u50BE\u659C\",\r\n \"vertical\" : \"\u8C4E\u6392\u6587\u5B57\",\r\n \"rotationUp\" : \"\u5411\u4E0A90\u00B0\",\r\n \"rotationDown\": \"\u5411\u4E0B90\u00B0\"\r\n },\r\n freezen: {\r\n default : \"\u51CD\u7D50\u7B2C\u4E00\u884C\",\r\n freezenRow : \"\u51CD\u7D50\u7B2C\u4E00\u884C\",\r\n freezenColumn : \"\u51CD\u7D50\u7B2CA\u5217\",\r\n freezenRC : \"\u51CD\u7D50\u884C\u5217\",\r\n freezenRowRange : \"\u51CD\u7D50\u884C\u5230\u9078\u5340\",\r\n freezenColumnRange: \"\u51CD\u7D50\u5217\u5230\u9078\u5340\",\r\n freezenRCRange : \"\u51CD\u7D50\u884C\u5217\u5230\u9078\u5340\",\r\n freezenCancel : \"\u53D6\u6D88\u51CD\u7D50\",\r\n\r\n noSeletionError: \"\u6CA1\u6709\u9078\u5340\",\r\n rangeRCOverErrorTitle: \"\u51CD\u7D50\u63D0\u9192\",\r\n rangeRCOverError: \"\u51CD\u7D50\u7A97\u683C\u8D85\u904E\u53EF\u898B\u7BC4\u570D\uFF0C\u6703\u5C0E\u81F4\u7121\u6CD5\u6B63\u5E38\u64CD\u4F5C\uFF0C\u8ACB\u91CD\u65B0\u8A2D\u5B9A\u51CD\u7D50\u5340\u57DF\u3002\"\r\n },\r\n sort: {\r\n \"asc\" : \"\u6607\u51AA\",\r\n \"desc\" : \"\u964D\u5E8F\",\r\n \"custom\": \"\u81EA\u5B9A\u7FA9\u6392\u5E8F\",\r\n\r\n \"hasTitle\" : \"\u6578\u64DA\u5177\u6709\u6A19\u984C\u884C\",\r\n \"sortBy\" : \"\u6392\u5E8F\u4F9D\u64DA\",\r\n \"addOthers\": \"\u6DFB\u52A0\u5176\u4ED6\u6392\u5E8F\u5217\",\r\n \"close\" : \"\u95DC\u9589\",\r\n \"confirm\" : \"\u6392\u5E8F\",\r\n\r\n \"columnOperation\": \"\u5217\",\r\n \"secondaryTitle\" : \"\u6B21\u8981\u6392\u5E8F\",\r\n\r\n \"sortTitle\": \"\u6392\u5E8F\u7BC4\u570D\",\r\n\r\n \"sortRangeTitle\" : \"\u6392\u5E8F\u7BC4\u570D\u5F9E\",\r\n \"sortRangeTitleTo\": \"\u5230\",\r\n\r\n\r\n \"noRangeError\": \"\u4E0D\u80FD\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C,\u8ACB\u9078\u64C7\u55AE\u500B\u5340\u57DF,\u7136\u5F8C\u518D\u8A66\",\r\n \"mergeError\" : \"\u9078\u5340\u6709\u5408\u4F75\u5132\u5B58\u683C,\u7121\u6CD5\u57F7\u884C\u6B64\u64CD\u4F5C\uFF01\",\r\n \"columnSortMergeError\": \"\u5217\u6392\u5E8F\u6703\u64F4\u5C55\u81F3\u6574\u500B\u8868\u683C\u9078\u5340\uFF0C\u9078\u5340\u6709\u5408\u4E26\u55AE\u5143\u683C\uFF0C\u7121\u6CD5\u57F7\u884C\u6B64\u64CD\u4F5C\uFF0C\u8ACB\u9078\u64C7\u529F\u80FD\u6B04\u6392\u5E8F\u529F\u80FD\uFF01\",\r\n },\r\n filter: {\r\n \"filter\" : \"\u7BE9\u9078\",\r\n \"clearFilter\": \"\u6E05\u9664\u7BE9\u9078\",\r\n\r\n sortByAsc : \"\u4EE5A-Z\u6607\u51AA\u6392\u5217\",\r\n sortByDesc : \"\u4EE5Z-A\u964D\u5E8F\u6392\u5217\",\r\n filterByColor : \"\u6309\u984F\u8272\u7BE9\u9078\",\r\n filterByCondition: \"\u6309\u689D\u4EF6\u904E\u6FFE\",\r\n filterByValues : \"\u6309\u503C\u904E\u6FFE\",\r\n\r\n filiterInputNone: \"\u7121\",\r\n\r\n filiterInputTip : \"\u8F38\u5165\u7BE9\u9078\u503C\",\r\n filiterRangeStart : \"\u5F9E\",\r\n filiterRangeStartTip: \"\u7BC4\u570D\u958B\u59CB\",\r\n filiterRangeEnd : \"\u5230\",\r\n filiterRangeEndTip : \"\u7BC4\u570D\u7ED3\u675F\",\r\n\r\n filterValueByAllBtn : \"\u5168\u9078\",\r\n filterValueByClearBtn : \"\u6E05\u9664\",\r\n filterValueByInverseBtn: \"\u53CD\u9078\",\r\n filterValueByTip : \"\u6309\u7167\u503C\u9032\u884C\u7BE9\u9078\",\r\n filterConform : \"\u78BA \u8A8D\",\r\n filterCancel : \"\u53D6 \u6D88\",\r\n\r\n conditionNone : \"\u7121\",\r\n conditionCellIsNull : \"\u5132\u5B58\u683C\u70BA\u7A7A\",\r\n conditionCellNotNull : \"\u5132\u5B58\u683C\u6709\u6578\u64DA\",\r\n conditionCellTextContain : \"\u6587\u5B57\u5305\u542B\",\r\n conditionCellTextNotContain: \"\u6587\u5B57\u4E0D\u5305\u542B\",\r\n conditionCellTextStart : \"\u6587\u5B57\u958B\u982D\u70BA\",\r\n conditionCellTextEnd : \"\u6587\u5B57\u7D50\u5C3E\u70BA\",\r\n conditionCellTextEqual : \"\u6587\u5B57\u7B49\u65BC\",\r\n conditionCellDateEqual : \"\u65E5\u671F\u7B49\u65BC\",\r\n conditionCellDateBefore : \"\u65E5\u671F\u65E9\u65BC\",\r\n conditionCellDateAfter : \"\u65E5\u671F\u665A\u65BC\",\r\n conditionCellGreater : \"\u5927\u65BC\",\r\n conditionCellGreaterEqual : \"\u5927\u65BC\u7B49\u65BC\",\r\n conditionCellLess : \"\u5C0F\u65BC\",\r\n conditionCellLessEqual : \"\u5C0F\u4E8E\u7B49\u65BC\",\r\n conditionCellEqual : \"\u7B49\u65BC\",\r\n conditionCellNotEqual : \"\u4E0D\u7B49\u65BC\",\r\n conditionCellBetween : \"\u4ECB\u65BC\",\r\n conditionCellNotBetween : \"\u4E0D\u5728\u5176\u4E2D\",\r\n\r\n filiterMoreDataTip : \"\u6578\u64DA\u91CF\u5927\uFF01\u8ACB\u7A0D\u5F8C\",\r\n filiterMonthText : \"\u6708\",\r\n filiterYearText : \"\u5E74\",\r\n filiterByColorTip : \"\u6309\u5132\u5B58\u683C\u984F\u8272\u7BE9\u9078\",\r\n filiterByTextColorTip : \"\u6309\u5132\u5B58\u683C\u5B57\u9AD4\u984F\u8272\u7BE9\u9078\",\r\n filterContainerOneColorTip: \"\u672C\u5217\u50C5\u5305\u542B\u4E00\u7A2E\u984F\u8272\",\r\n filterDateFormatTip : \"\u65E5\u671F\u683C\u5F0F\",\r\n\r\n valueBlank: \"(\u7A7A\u767D)\",\r\n mergeError: \"\u7BE9\u9078\u9078\u5340\u6709\u5408\u4F75\u5132\u5B58\u683C,\u7121\u6CD5\u57F7\u884C\u6B64\u64CD\u4F5C\uFF01\",\r\n },\r\n rightclick: {\r\n copy : '\u8907\u88FD',\r\n copyAs : '\u8907\u88FD\u70BA',\r\n paste : '\u7C98\u8CBC',\r\n insert : '\u63D2\u5165',\r\n delete : '\u5220\u9664',\r\n deleteCell : '\u5220\u9664\u5132\u5B58\u683C',\r\n deleteSelected : '\u5220\u9664\u9078\u4E2D',\r\n hide : '\u96B1\u85CF',\r\n hideSelected : '\u96B1\u85CF\u9078\u4E2D',\r\n showHide : '\u986F\u793A\u96B1\u85CF',\r\n to : '\u5411',\r\n left : '\u5DE6',\r\n right : '\u53F3',\r\n top : '\u4E0A',\r\n bottom : '\u4E0B',\r\n moveLeft : '\u5DE6\u79FB',\r\n moveUp : '\u4E0A\u79FB',\r\n add : '\u65B0\u589E',\r\n row : '\u884C',\r\n column : '\u5217',\r\n width : '\u5BEC',\r\n height : '\u9AD8',\r\n number : '\u6578\u4F4D',\r\n confirm : '\u78BA\u8A8D',\r\n orderAZ : 'A-Z\u9806\u5E8F\u6392\u5217',\r\n orderZA : 'Z-A\u964D\u5E8F\u6392\u5217',\r\n clearContent : '\u6E05\u9664\u5167\u5BB9',\r\n matrix : '\u77E9\u9663\u64CD\u4F5C\u9078\u5340',\r\n sortSelection : '\u6392\u5E8F\u9078\u5340',\r\n filterSelection : '\u7BE9\u9078\u9078\u5340',\r\n chartGeneration : '\u5716\u8868\u751F\u6210',\r\n firstLineTitle : '\u9996\u884C\u70BA\u6A19\u984C',\r\n untitled : '\u7121\u6A19\u984C',\r\n array1 : '\u4E00\u7DAD\u6578\u7D44',\r\n array2 : '\u4E8C\u7DAD\u9663\u5217',\r\n array3 : '\u591A\u5143\u6578\u7D44',\r\n diagonal : '\u5C0D\u89D2\u7DDA',\r\n antiDiagonal : '\u53CD\u5C0D\u89D2\u7DDA',\r\n diagonalOffset : '\u5C0D\u89D2\u504F\u79FB',\r\n offset : '\u504F\u79FB\u91CF',\r\n boolean : '\u5E03\u6797\u503C',\r\n flip : '\u7FFB\u8F49',\r\n upAndDown : '\u4E0A\u4E0B',\r\n leftAndRight : '\u5DE6\u53F3',\r\n clockwise : '\u9806\u6642\u91DD',\r\n counterclockwise : '\u9006\u6642\u91DD',\r\n transpose : '\u8F49\u7F6E',\r\n matrixCalculation: '\u77E9\u9663\u8A08\u7B97',\r\n plus : '\u52A0',\r\n minus : '\u51CF',\r\n multiply : '\u4E58',\r\n divided : '\u9664',\r\n power : '\u6B21\u65B9',\r\n root : '\u6B21\u65B9\u6839',\r\n log : 'log',\r\n delete0 : '\u5220\u9664\u5169\u7AEF0\u503C',\r\n removeDuplicate : '\u5220\u9664\u91CD\u8907\u503C',\r\n byRow : '\u6309\u884C',\r\n byCol : '\u6309\u5217',\r\n generateNewMatrix: '\u751F\u6210\u65B0\u77E9\u9663',\r\n },\r\n comment: {\r\n \"insert\" : \"\u65B0\u5EFA\u6279\u8A3B\",\r\n \"edit\" : \"\u7DE8\u8F2F\u6279\u8A3B\",\r\n \"delete\" : \"\u5220\u9664\",\r\n \"showOne\": \"\u986F\u793A/\u96B1\u85CF\u6279\u8A3B\",\r\n \"showAll\": \"\u986F\u793A/\u96B1\u85CF\u6240\u6709\u6279\u8A3B\"\r\n },\r\n screenshot: {\r\n screenshotTipNoSelection: \"\u8ACB\u6846\u9078\u9700\u8981\u622A\u5716\u7684\u7BC4\u570D\",\r\n screenshotTipTitle : \"\u63D0\u793A\uFF01\",\r\n screenshotTipHasMerge : \"\u7121\u6CD5\u5C0D\u5408\u4F75\u5132\u5B58\u683C\u57F7\u884C\u6B64\u64CD\u4F5C\",\r\n screenshotTipHasMulti : \"\u7121\u6CD5\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C\",\r\n screenshotTipSuccess : \"\u622A\u53D6\u6210\u529F\",\r\n screenshotImageName : \"\u622A\u5716\",\r\n\r\n downLoadClose: \"\u95DC\u9589\",\r\n downLoadCopy : \"\u8907\u88FD\u5230\u526A\u5207\u677F\",\r\n downLoadBtn : \"\u4E0B\u8F09\",\r\n browserNotTip: \"\u4E0B\u8F09\u529F\u80FDIE\u700F\u89BD\u5668\u4E0D\u652F\u6301\uFF01\",\r\n rightclickTip: \"\u8ACB\u5728\u5716\u7247\u4E0A\u53F3\u9375\u9EDE\u64CA'\u8907\u88FD'\",\r\n successTip : \"\u5DF2\u6210\u529F\u8907\u88FD\uFF08\u5982\u679C\u7C98\u8CBC\u5931\u6557,\u8ACB\u5728\u5716\u7247\u4E0A\u53F3\u9375\u9EDE\u64CA'\u8907\u88FD\u5716\u7247'\uFF09\",\r\n },\r\n splitText: {\r\n splitDelimiters : \"\u5206\u5272\u7B26\u865F\",\r\n splitOther : \"\u5176\u5B83\",\r\n splitContinueSymbol: \"\u9023\u7E8C\u5206\u9694\u7B26\u865F\u8996\u70BA\u55AE\u500B\u8655\u7406\",\r\n splitDataPreview : \"\u6578\u64DA\u9810\u89BD\",\r\n splitTextTitle : \"\u6587\u5B57\u5206\u5217\",\r\n splitConfirmToExe : \"\u6B64\u8655\u5DF2\u6709\u6578\u64DA,\u662F\u5426\u66FF\u63DB\u5B83\uFF1F\",\r\n\r\n tipNoMulti : \"\u80FD\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C,\u8ACB\u9078\u64C7\u55AE\u500B\u5340\u57DF,\u7136\u5F8C\u518D\u8A66\",\r\n tipNoMultiColumn: \"\u4E00\u6B21\u53EA\u80FD\u8F49\u63DB\u4E00\u5217\u6578\u64DA,\u9078\u5B9A\u5340\u57DF\u53EF\u4EE5\u6709\u591A\u884C,\u4F46\u4E0D\u80FD\u6709\u591A\u5217,\u8ACB\u5728\u9078\u5B9A\u55AE\u5217\u5340\u57DF\u4EE5\u5F8C\u518D\u8A66\",\r\n },\r\n imageText: {\r\n imageSetting: '\u5716\u7247\u8A2D\u5B9A',\r\n close : '\u95DC\u9589',\r\n conventional: '\u5E38\u898F',\r\n moveCell1 : '\u79FB\u52D5\u4E26\u8ABF\u6574\u5132\u5B58\u683C\u5927\u5C0F',\r\n moveCell2 : '\u79FB\u52D5\u4E26\u4E14\u4E0D\u8ABF\u6574\u5132\u5B58\u683C\u7684\u5927\u5C0F',\r\n moveCell3 : '\u4E0D\u8981\u79FB\u52D5\u5132\u5B58\u683C\u4E26\u8ABF\u6574\u5176\u5927\u5C0F',\r\n fixedPos : '\u56FA\u5B9A\u4F4D\u7F6E',\r\n border : '\u908A\u6846',\r\n width : '\u5BEC\u5EA6',\r\n radius : '\u534A\u5F91',\r\n style : '\u6A23\u5F0F',\r\n solid : '\u5BE6\u7DDA',\r\n dashed : '\u865B\u7DDA',\r\n dotted : '\u9EDE\u72C0',\r\n double : '\u96D9\u7DDA',\r\n color : '\u984F\u8272',\r\n },\r\n punctuation: {\r\n \"tab\" : \"Tab \u9375\",\r\n \"semicolon\": \"\u5206\u865F\",\r\n \"comma\" : \"\u9017\u865F\",\r\n \"space\" : \"\u7A7A\u683C\",\r\n\r\n },\r\n findAndReplace: {\r\n find : \"\u67E5\u627E\",\r\n replace : \"\u66FF\u63DB\",\r\n goto : \"\u8F49\u5230\",\r\n location : \"\u5B9A\u4F4D\u689D\u4EF6\",\r\n formula : \"\u516C\u5F0F\",\r\n date : \"\u65E5\u671F\",\r\n number : \"\u6578\u4F4D\",\r\n string : \"\u5B57\u5143\",\r\n error : \"\u932F\u8AA4\",\r\n condition : \"\u689D\u4EF6\u683C\u5F0F\",\r\n rowSpan : \"\u9593\u9694\u884C\",\r\n columnSpan : \"\u9593\u9694\u5217\",\r\n locationExample : \"\u5B9A\u4F4D\",\r\n lessTwoRowTip : \"\u8ACB\u9078\u64C7\u6700\u5C11\u5169\u884C\",\r\n lessTwoColumnTip: \"\u8ACB\u9078\u64C7\u6700\u5C11\u5169\u884C\",\r\n\r\n findTextbox : \"\u67E5\u627E\u5185\u5BB9\",\r\n replaceTextbox: \"\u66FF\u63DB\u5167\u5BB9\",\r\n\r\n regexTextbox : \"\u898F\u5247\u904B\u7B97\u5F0F\u5339\u914D\",\r\n wholeTextbox : \"\u6574\u8A5E\u5339\u914D\",\r\n distinguishTextbox: \"\u5340\u5206\u5927\u5C0F\u5BEB\u5339\u914D\",\r\n\r\n allReplaceBtn: \"\u5168\u90E8\u66FF\u63DB\",\r\n replaceBtn : \"\u66FF\u63DB\",\r\n allFindBtn : \"\u67E5\u627E\u5168\u90E8\",\r\n findBtn : \"\u67E5\u627E\u4E0B\u4E00\u500B\",\r\n\r\n noFindTip: \"\u6C92\u6709\u67E5\u627E\u5230\u8A72\u5167\u5BB9\",\r\n modeTip : \"\u8A72\u6A21\u5F0F\u4E0B\u4E0D\u53EF\u9032\u884C\u6B64\u64CD\u4F5C\",\r\n\r\n searchTargetSheet: \"\u5DE5\u4F5C\u8868\",\r\n searchTargetCell : \"\u5132\u5B58\u683C\",\r\n searchTargetValue: \"\u503C\",\r\n\r\n searchInputTip: \"\u8ACB\u8F38\u5165\u67E5\u627E\u5167\u5BB9\",\r\n\r\n noReplceTip: \"\u6C92\u6709\u53EF\u66FF\u63DB\u7684\u5167\u5BB9\",\r\n noMatchTip : \"\u627E\u4E0D\u5230\u5339\u914D\u9805\",\r\n\r\n successTip: \"\u5DF2\u7D93\u5E6B\u60A8\u8490\u7D22\u4E26\u9032\u884C\u4E86${xlength}\u8655\u66FF\u63DB\",\r\n\r\n locationConstant : \"\u5E38\u6578\",\r\n locationFormula : \"\u516C\u5F0F\",\r\n locationDate : \"\u65E5\u671F\",\r\n locationDigital : \"\u6578\u4F4D\",\r\n locationString : \"\u5B57\u5143\",\r\n locationBool : \"\u908F\u8F2F\u503C\",\r\n locationError : \"\u932F\u8AA4\",\r\n locationNull : \"\u7A7A\u503C\",\r\n locationCondition : \"\u689D\u4EF6\u683C\u5F0F\",\r\n locationRowSpan : \"\u9593\u9694\u884C\",\r\n locationColumnSpan: \"\u9593\u9694\u5217\",\r\n\r\n locationTiplessTwoRow : \"\u8ACB\u9078\u64C7\u6700\u5C11\u5169\u884C\",\r\n locationTiplessTwoColumn: \"\u8ACB\u9078\u64C7\u6700\u5C11\u5169\u5217\",\r\n locationTipNotFindCell : \"\u672A\u627E\u5230\u5132\u5B58\u683C\"\r\n\r\n },\r\n sheetconfig: {\r\n delete : '\u5220\u9664',\r\n copy : '\u8907\u88FD',\r\n rename : '\u91CD\u547D\u540D',\r\n changeColor: '\u66F4\u6539\u984F\u8272',\r\n hide : '\u96B1\u85CF',\r\n unhide : '\u53D6\u6D88\u96B1\u85CF',\r\n moveLeft : '\u5411\u5DE6\u79FB',\r\n moveRight : '\u5411\u53F3\u79FB',\r\n resetColor : '\u91CD\u7F6E\u984F\u8272',\r\n cancelText : '\u53D6\u6D88',\r\n chooseText : '\u78BA\u5B9A\u984F\u8272',\r\n\r\n tipNameRepeat : \"\u7C64\u9801\u7684\u540D\u7A31\u4E0D\u80FD\u91CD\u8907\uFF01\u8ACB\u91CD\u65B0\u4FEE\u6539\",\r\n noMoreSheet : \"\u5DE5\u4F5C\u8584\u5167\u81F3\u5C11\u542B\u6709\u4E00\u5F35\u53EF\u8996\u5DE5\u4F5C\u8868\u3002\u82E5\u9700\u5220\u9664\u9078\u5B9A\u7684\u5DE5\u4F5C\u8868,\u8ACB\u5148\u63D2\u5165\u4E00\u5F35\u65B0\u5DE5\u4F5C\u8868\u6216\u986F\u793A\u4E00\u5F35\u96B1\u85CF\u7684\u5DE5\u4F5C\u8868\u3002\u3002\",\r\n confirmDelete : \"\u662F\u5426\u5220\u9664\",\r\n redoDelete : \"\u53EF\u4EE5\u901A\u904ECtrl+Z\u64A4\u92B7\u5220\u9664\",\r\n noHide : \"\u4E0D\u80FD\u96B1\u85CF,\u81F3\u5C11\u4FDD\u7559\u4E00\u500Bsheet\u6A19\u7C64\",\r\n chartEditNoOpt : \"\u5716\u8868\u7DE8\u8F2F\u6A21\u5F0F\u4E0B\u4E0D\u5141\u8A31\u8A72\u64CD\u4F5C\uFF01\",\r\n sheetNameSpecCharError : \"\u540D\u7A31\u4E0D\u80FD\u5305\u542B:[ ] : \\ ? * / ' \\\"\",\r\n sheetNamecannotIsEmptyError: \"\u540D\u7A31\u4E0D\u80FD\u70BA\u7A7A\"\r\n },\r\n conditionformat: {\r\n conditionformat_greaterThan : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u5927\u65BC',\r\n conditionformat_greaterThan_title : '\u70BA\u5927\u65BC\u4EE5\u4E0B\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_lessThan : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u5C0F\u65BC',\r\n conditionformat_lessThan_title : '\u70BA\u5C0F\u65BC\u4EE5\u4E0B\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_betweenness : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u4ECB\u65BC',\r\n conditionformat_betweenness_title : '\u70BA\u4ECB\u65BC\u4EE5\u4E0B\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_equal : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u7B49\u65BC',\r\n conditionformat_equal_title : '\u70BA\u7B49\u65BC\u4EE5\u4E0B\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_textContains : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u6587\u5B57\u5305\u542B',\r\n conditionformat_textContains_title : '\u70BA\u5305\u542B\u4EE5\u4E0B\u6587\u5B57\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_occurrenceDate : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u767C\u751F\u65E5\u671F',\r\n conditionformat_occurrenceDate_title: '\u70BA\u5305\u542B\u4EE5\u4E0B\u65E5\u671F\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_duplicateValue : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u91CD\u8907\u503C',\r\n conditionformat_duplicateValue_title: '\u70BA\u5305\u542B\u4EE5\u4E0B\u985E\u578B\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_top10 : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u524D10\u9805',\r\n conditionformat_top10_percent : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u524D10%',\r\n conditionformat_top10_title : '\u70BA\u503C\u6700\u5927\u7684\u90A3\u4E9B\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_last10 : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u6700\u5F8C10\u9805',\r\n conditionformat_last10_percent : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u6700\u5F8C10%',\r\n conditionformat_last10_title : '\u70BA\u503C\u6700\u5C0F\u7684\u90A3\u4E9B\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_AboveAverage : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u9AD8\u65BC\u5E73\u5747\u503C',\r\n conditionformat_AboveAverage_title : '\u70BA\u9AD8\u65BC\u5E73\u5747\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n conditionformat_SubAverage : '\u689D\u4EF6\u683C\u5F0F\u2014\u2014\u4F4E\u65BC\u5E73\u5747\u503C',\r\n conditionformat_SubAverage_title : '\u70BA\u4F4E\u65BC\u5E73\u5747\u503C\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n rule : '\u898F\u5247',\r\n newRule : '\u65B0\u5EFA\u898F\u5247',\r\n editRule : '\u7DE8\u8F2F\u898F\u5247',\r\n deleteRule : '\u5220\u9664\u898F\u5247',\r\n deleteCellRule : '\u6E05\u9664\u6240\u9078\u5132\u5B58\u683C\u7684\u898F\u5247',\r\n deleteSheetRule : '\u6E05\u9664\u6574\u500B\u5DE5\u4F5C\u8868\u7684\u898F\u5247',\r\n manageRules : '\u7BA1\u7406\u898F\u5247',\r\n showRules : '\u986F\u793A\u5176\u683C\u5F0F\u898F\u5247',\r\n highlightCellRules : '\u7A81\u51FA\u986F\u793A\u5132\u5B58\u683C\u898F\u5247',\r\n itemSelectionRules : '\u9805\u76EE\u9078\u53D6\u898F\u5247',\r\n conditionformatManageRules : '\u689D\u4EF6\u683C\u5F0F\u898F\u5247\u7BA1\u7406\u5668',\r\n format : '\u683C\u5F0F',\r\n setFormat : '\u8A2D\u5B9A\u683C\u5F0F',\r\n setAs : '\u8A2D\u5B9A\u70BA',\r\n setAsByArea : '\u91DD\u5C0D\u9078\u5B9A\u5340\u57DF,\u8A2D\u5B9A\u70BA',\r\n applyRange : '\u61C9\u7528\u7BC4\u570D',\r\n selectRange : '\u9EDE\u64CA\u9078\u64C7\u61C9\u7528\u7BC4\u570D',\r\n selectRange_percent : '\u6240\u9078\u7BC4\u570D\u7684\u767E\u5206\u6BD4',\r\n selectRange_average : '\u9078\u5B9A\u7BC4\u570D\u7684\u5E73\u5747\u503C',\r\n selectRange_value : '\u9078\u5B9A\u7BC4\u570D\u4E2D\u7684\u6578\u503C',\r\n pleaseSelectRange : '\u8ACB\u9078\u64C7\u61C9\u7528\u7BC4\u570D',\r\n selectDataRange : '\u9EDE\u64CA\u9078\u64C7\u6578\u64DA\u7BC4\u570D',\r\n selectCell : '\u9078\u64C7\u5132\u5B58\u683C',\r\n pleaseSelectCell : '\u8ACB\u9078\u64C7\u5132\u5B58\u683C',\r\n pleaseSelectADate : '\u8ACB\u9078\u64C7\u65E5\u671F',\r\n pleaseEnterInteger : '\u8ACB\u8F38\u5165\u4E00\u500B\u4ECB\u65BC1\u548C1000\u4E4B\u9593\u7684\u6574\u6578',\r\n onlySingleCell : '\u53EA\u80FD\u5C0D\u55AE\u500B\u5132\u5B58\u683C\u9032\u884C\u5F15\u7528',\r\n conditionValueCanOnly : '\u689D\u4EF6\u503C\u53EA\u80FD\u662F\u6578\u4F4D\u6216\u8005\u55AE\u500B\u5132\u5B58\u683C',\r\n ruleTypeItem1 : '\u57FA\u65BC\u5404\u81EA\u503C\u8A2D\u5B9A\u6240\u6709\u5132\u5B58\u683C\u7684\u683C\u5F0F',\r\n ruleTypeItem2 : '\u53EA\u70BA\u5305\u542B\u4EE5\u4E0B\u5167\u5BB9\u7684\u5132\u5B58\u683C\u8A2D\u5B9A\u683C\u5F0F',\r\n ruleTypeItem2_title : '\u53EA\u70BA\u6EFF\u8DB3\u4EE5\u4E0B\u689D\u4EF6\u7684\u5132\u5B58\u683C',\r\n ruleTypeItem3 : '\u50C5\u5C0D\u6392\u540D\u9760\u524D\u6216\u9760\u5F8C\u7684\u6578\u503C\u8A2D\u5B9A\u683C\u5F0F',\r\n ruleTypeItem3_title : '\u70BA\u4EE5\u4E0B\u6392\u540D\u5167\u7684\u503C',\r\n ruleTypeItem4 : '\u50C5\u5C0D\u9AD8\u65BC\u6216\u4F4E\u65BC\u5E73\u5747\u503C\u7684\u6578\u503C\u8A2D\u5B9A\u683C\u5F0F',\r\n ruleTypeItem4_title : '\u70BA\u6EFF\u8DB3\u4EE5\u4E0B\u689D\u4EF6\u7684\u503C',\r\n ruleTypeItem5 : '\u50C5\u5C0D\u552F\u4E00\u503C\u6216\u91CD\u8907\u503C\u8A2D\u5B9A\u683C\u5F0F',\r\n ruleTypeItem6 : '\u4F7F\u7528\u516C\u5F0F\u78BA\u5B9A\u8981\u8A2D\u7F6E\u683C\u5F0F\u7684\u55AE\u5143\u683C',\r\n formula : '\u516C\u5F0F',\r\n textColor : '\u6587\u5B57\u984F\u8272',\r\n cellColor : '\u5132\u5B58\u683C\u984F\u8272',\r\n confirm : '\u78BA\u5B9A',\r\n confirmColor : '\u78BA\u5B9A\u984F\u8272',\r\n cancel : '\u53D6\u6D88',\r\n close : '\u95DC\u9589',\r\n clearColorSelect : '\u6E05\u9664\u984F\u8272\u9078\u64C7',\r\n sheet : '\u9336',\r\n currentSheet : '\u7576\u524D\u5DE5\u4F5C\u8868',\r\n dataBar : '\u6578\u64DA\u689D',\r\n dataBarColor : '\u6578\u64DA\u689D\u984F\u8272',\r\n gradientDataBar_1 : '\u85CD-\u767D\u6F38\u8B8A\u6578\u64DA\u689D',\r\n gradientDataBar_2 : '\u7DA0-\u767D\u6F38\u8B8A\u6578\u64DA\u689D',\r\n gradientDataBar_3 : '\u7D05-\u767D\u6F38\u8B8A\u6578\u64DA\u689D',\r\n gradientDataBar_4 : '\u67F3\u4E01-\u767D\u6F38\u8B8A\u6578\u64DA\u689D',\r\n gradientDataBar_5 : '\u6DFA\u85CD-\u767D\u6F38\u8B8A\u6578\u64DA\u689D',\r\n gradientDataBar_6 : '\u7D2B-\u767D\u6F38\u8B8A\u6578\u64DA\u689D',\r\n solidColorDataBar_1 : '\u85CD\u8272\u6578\u64DA\u689D',\r\n solidColorDataBar_2 : '\u7DA0\u8272\u6578\u64DA\u689D',\r\n solidColorDataBar_3 : '\u7D05\u8272\u6578\u64DA\u689D',\r\n solidColorDataBar_4 : '\u6A59\u8272\u6578\u64DA\u689D',\r\n solidColorDataBar_5 : '\u6DFA\u85CD\u8272\u6578\u64DA\u689D',\r\n solidColorDataBar_6 : '\u7D2B\u8272\u6578\u64DA\u689D',\r\n colorGradation : '\u8272\u968E',\r\n colorGradation_1 : '\u7DA0-\u9EC3-\u7D05\u8272\u968E',\r\n colorGradation_2 : '\u7D05-\u9EC3-\u7DA0\u8272\u968E',\r\n colorGradation_3 : '\u7DA0-\u767D-\u7D05\u8272\u968E',\r\n colorGradation_4 : '\u7D05-\u767D-\u7DA0\u8272\u968E',\r\n colorGradation_5 : '\u85CD-\u767D-\u7D05\u8272\u968E',\r\n colorGradation_6 : '\u7D05-\u767D-\u85CD\u8272\u968E',\r\n colorGradation_7 : '\u767D-\u7D05\u8272\u968E',\r\n colorGradation_8 : '\u7D05-\u767D\u8272\u968E',\r\n colorGradation_9 : '\u7DA0-\u767D\u8272\u968E',\r\n colorGradation_10 : '\u767D-\u7DA0\u8272\u968E',\r\n colorGradation_11 : '\u7DA0-\u9EC3\u8272\u968E',\r\n colorGradation_12 : '\u9EC3-\u7DA0\u8272\u968E',\r\n icons : '\u5716\u6A19\u96C6',\r\n pleaseSelectIcon : '\u8ACB\u9EDE\u64CA\u9078\u64C7\u4E00\u7D44\u5716\u6A19:',\r\n cellValue : '\u5132\u5B58\u683C\u503C',\r\n specificText : '\u7279\u5B9A\u6587\u5B57',\r\n occurrence : '\u767C\u751F\u65E5\u671F',\r\n greaterThan : '\u5927\u65BC',\r\n lessThan : '\u5C0F\u65BC',\r\n between : '\u4ECB\u65BC',\r\n equal : '\u7B49\u65BC',\r\n in : '\u548C',\r\n to : '\u5230',\r\n between2 : '\u4E4B\u9593',\r\n contain : '\u5305\u542B',\r\n textContains : '\u6587\u5B57\u5305\u542B',\r\n duplicateValue : '\u91CD\u8907\u503C',\r\n uniqueValue : '\u552F\u4E00\u503C',\r\n top : '\u524D',\r\n top10 : '\u524D10\u9805',\r\n top10_percent : '\u524D10%',\r\n last : '\u5F8C',\r\n last10 : '\u5F8C10\u9805',\r\n last10_percent : '\u5F8C10%',\r\n oneself : '\u500B',\r\n above : '\u9AD8\u65BC',\r\n aboveAverage : '\u9AD8\u65BC\u5E73\u5747\u503C',\r\n below : '\u4F4E\u65BC',\r\n belowAverage : '\u4F4E\u65BC\u5E73\u5747\u503C',\r\n all : '\u5168\u90E8',\r\n yesterday : '\u6628\u5929',\r\n today : '\u4ECA\u5929',\r\n tomorrow : '\u660E\u5929',\r\n lastWeek : '\u4E0A\u5468',\r\n thisWeek : '\u672C\u5468',\r\n lastMonth : '\u4E0A\u6708',\r\n thisMonth : '\u672C\u6708',\r\n lastYear : '\u53BB\u5E74',\r\n thisYear : '\u672C\u5E74',\r\n last7days : '\u6700\u8FD17\u5929',\r\n last30days : '\u6700\u8FD130\u5929',\r\n next7days : '\u672A\u4F867\u5929',\r\n next30days : '\u672A\u4F8630\u5929',\r\n next60days : '\u672A\u4F8660\u5929',\r\n chooseRuleType : '\u9078\u64C7\u898F\u5247\u985E\u578B',\r\n editRuleDescription : '\u7DE8\u8F2F\u898F\u5247\u8AAA\u660E',\r\n newFormatRule : '\u65B0\u5EFA\u683C\u5F0F\u898F\u5247',\r\n editFormatRule : '\u7DE8\u8F2F\u683C\u5F0F\u898F\u5247',\r\n formatStyle : '\u683C\u5F0F\u6A23\u5F0F',\r\n fillType : '\u586B\u5145\u985E\u578B',\r\n color : '\u984F\u8272',\r\n twocolor : '\u96D9\u8272',\r\n tricolor : '\u4E09\u8272',\r\n multicolor : '\u5F69\u8272',\r\n grayColor : '\u7070\u8272',\r\n gradient : '\u6F38\u8B8A',\r\n solid : '\u5BE6\u5FC3',\r\n maxValue : '\u6700\u5927\u503C',\r\n medianValue : '\u4E2D\u9593\u503C',\r\n minValue : '\u6700\u5C0F\u503C',\r\n direction : '\u65B9\u5411',\r\n threeWayArrow : '\u4E09\u5411\u7BAD\u982D',\r\n fourWayArrow : '\u56DB\u5411\u7BAD\u982D',\r\n fiveWayArrow : '\u4E94\u5411\u7BAD\u982D',\r\n threeTriangles : '3\u500B\u4E09\u89D2\u5F62',\r\n shape : '\u5F62\u72C0',\r\n threeColorTrafficLight : '\u4E09\u8272\u4EA4\u901A\u71C8',\r\n fourColorTrafficLight : '\u56DB\u8272\u4EA4\u901A\u71C8',\r\n threeSigns : '\u4E09\u6A19\u8A8C',\r\n greenRedBlackGradient : '\u7DA0-\u7D05-\u9ED1\u6F38\u8B8A',\r\n rimless : '\u7121\u908A\u6846',\r\n bordered : '\u6709\u908A\u6846',\r\n mark : '\u6A19\u8A18',\r\n threeSymbols : '\u4E09\u500B\u7B26\u865F',\r\n tricolorFlag : '\u4E09\u8272\u65D7',\r\n circled : '\u6709\u5713\u5708',\r\n noCircle : '\u7121\u5713\u5708',\r\n grade : '\u7B49\u7D1A',\r\n grade4 : '\u56DB\u7B49\u7D1A',\r\n grade5 : '\u4E94\u7B49\u7D1A',\r\n threeStars : '3\u500B\u661F\u5F62',\r\n fiveQuadrantDiagram : '\u4E94\u8C61\u9650\u5716',\r\n fiveBoxes : '5\u500B\u6846',\r\n },\r\n insertLink: {\r\n linkText : \"\u6587\u5B57\",\r\n linkType : \"\u9023\u7D50\u985E\u578B\",\r\n external : \"\u5916\u90E8\u9023\u7D50\",\r\n internal : \"\u5185\u90E8\u9023\u7D50\",\r\n linkAddress : \"\u9023\u7D50\u5730\u5740\",\r\n linkSheet : \"\u5DE5\u4F5C\u8868\",\r\n linkCell : \"\u5132\u5B58\u683C\u5F15\u7528\",\r\n linkTooltip : \"\u63D0\u793A\",\r\n placeholder1: \"\u8ACB\u8F38\u5165\u7DB2\u9801\u9023\u7D50\u4F4D\u5740\",\r\n placeholder2: \"\u8ACB\u8F38\u5165\u8981\u5F15\u7528\u7684\u5132\u5B58\u683C,\u4F8BA1\",\r\n placeholder3: \"\u8ACB\u8F38\u5165\u63D0\u793A\u5167\u5BB9\",\r\n tooltipInfo1: \"\u8ACB\u8F38\u5165\u6709\u6548\u7684\u9023\u7D50\",\r\n tooltipInfo2: \"\u8ACB\u8F38\u5165\u6B63\u78BA\u7684\u5132\u5B58\u683C\u5F15\u7528\",\r\n },\r\n dataVerification: {\r\n cellRange : '\u5132\u5B58\u683C\u7BC4\u570D',\r\n selectCellRange : '\u9EDE\u64CA\u9078\u64C7\u5132\u5B58\u683C\u7BC4\u570D',\r\n selectCellRange2 : '\u8ACB\u9078\u64C7\u5132\u5B58\u683C\u7BC4\u570D',\r\n verificationCondition: '\u9A57\u8B49\u689D\u4EF6',\r\n allowMultiSelect : \"\u662F\u5426\u5141\u8A31\u591A\u9078\",\r\n dropdown : '\u4E0B\u62C9\u6E05\u55AE',\r\n checkbox : '\u6838\u53D6\u65B9\u584A',\r\n number : '\u6578\u4F4D',\r\n number_integer : '\u6578\u4F4D-\u6574\u6578',\r\n number_decimal : '\u6578\u4F4D-\u5C0F\u6578',\r\n text_content : '\u6587\u5B57-\u5167\u5BB9',\r\n text_length : '\u6587\u5B57-\u9577\u5EA6',\r\n date : '\u65E5\u671F',\r\n validity : '\u6709\u6548\u6027',\r\n placeholder1 : '\u8ACB\u8F38\u5165\u9078\u9805,\u4EE5\u82F1\u6587\u9017\u865F\u5206\u9694,\u59821,2,3,4,5',\r\n placeholder2 : '\u8ACB\u8F38\u5165\u5167\u5BB9',\r\n placeholder3 : '\u6578\u503C,\u598210',\r\n placeholder4 : '\u8ACB\u8F38\u5165\u6307\u5B9A\u7684\u6587\u5B57',\r\n placeholder5 : '\u8ACB\u8F38\u5165\u9078\u4E2D\u5132\u5B58\u683C\u6642\u986F\u793A\u7684\u63D0\u793A\u8A9E',\r\n selected : '\u9078\u64C7\u6642',\r\n notSelected : '\u672A\u9078\u64C7',\r\n between : '\u4ECB\u65BC',\r\n notBetween : '\u4E0D\u4ECB\u65BC',\r\n equal : '\u7B49\u65BC',\r\n notEqualTo : '\u4E0D\u7B49\u65BC',\r\n moreThanThe : '\u5927\u65BC',\r\n lessThan : '\u5C0F\u65BC',\r\n greaterOrEqualTo : '\u5927\u65BC\u7B49\u65BC',\r\n lessThanOrEqualTo : '\u5C0F\u65BC\u7B49\u65BC',\r\n include : '\u5305\u62EC',\r\n exclude : '\u4E0D\u5305\u62EC',\r\n earlierThan : '\u65E9\u65BC',\r\n noEarlierThan : '\u4E0D\u65E9\u65BC',\r\n laterThan : '\u665A\u65BC',\r\n noLaterThan : '\u4E0D\u665A\u65BC',\r\n identificationNumber : '\u8EAB\u4EFD\u8B49\u865F\u78BC',\r\n phoneNumber : '\u624B\u6A5F\u865F',\r\n remote : '\u81EA\u52D5\u9060\u7A0B\u7372\u53D6\u9078\u9805',\r\n prohibitInput : '\u8F38\u5165\u6578\u64DA\u7121\u6548\u6642\u7981\u6B62\u8F38\u5165',\r\n hintShow : '\u9078\u4E2D\u5132\u5B58\u683C\u6642\u986F\u793A\u63D0\u793A\u8A9E',\r\n deleteVerification : '\u5220\u9664\u9A57\u8B49',\r\n tooltipInfo1 : '\u4E0B\u62C9\u6E05\u55AE\u9078\u9805\u4E0D\u53EF\u70BA\u7A7A',\r\n tooltipInfo2 : '\u6838\u53D6\u65B9\u584A\u5167\u5BB9\u4E0D\u53EF\u70BA\u7A7A',\r\n tooltipInfo3 : '\u8F38\u5165\u7684\u503C\u4E0D\u662F\u6578\u503C\u985E\u578B',\r\n tooltipInfo4 : '\u6578\u503C2\u4E0D\u80FD\u5C0F\u65BC\u6578\u503C1',\r\n tooltipInfo5 : '\u6587\u5B57\u5167\u5BB9\u4E0D\u80FD\u70BA\u7A7A',\r\n tooltipInfo6 : '\u8F38\u5165\u7684\u503C\u4E0D\u662F\u65E5\u671F\u985E\u578B',\r\n tooltipInfo7 : '\u65E5\u671F2\u4E0D\u80FD\u5C0F\u65BC\u65E5\u671F1',\r\n textlengthInteger : '\u6587\u5B57\u9577\u5EA6\u5FC5\u9808\u662F\u5927\u65BC\u7B49\u65BC0\u7684\u6574\u6578',\r\n },\r\n formula: {\r\n sum : \"\u6C42\u548C\",\r\n average : \"\u5E73\u5747\u503C\",\r\n count : \"\u8A08\u6578\",\r\n max : \"\u6700\u5927\u503C\",\r\n min : \"\u6700\u5C0F\u503C\",\r\n ifGenerate: \"if\u516C\u5F0F\u751F\u6210\u5668\",\r\n find : \"\u66F4\u591A\u51FD\u6578\",\r\n\r\n tipNotBelongToIf: \"\u8A72\u5132\u5B58\u683C\u51FD\u6578\u4E0D\u5C6C\u65BCif\u516C\u5F0F!\",\r\n tipSelectCell : \"\u8ACB\u9078\u64C7\u5132\u5B58\u683C\u63D2\u5165\u51FD\u6578\",\r\n\r\n ifGenCompareValueTitle: \"\u6BD4\u8F83\u503C\",\r\n ifGenSelectCellTitle : \"\u9EDE\u64CA\u9078\u64C7\u5132\u5B58\u683C\",\r\n ifGenRangeTitle : \"\u7BC4\u570D\",\r\n ifGenRangeTo : \"\u81F3\",\r\n ifGenRangeEvaluate : \"\u7BC4\u570D\u8A55\u4F30\",\r\n ifGenSelectRangeTitle : \"\u9EDE\u64CA\u9078\u64C7\u7BC4\u570D\",\r\n ifGenCutWay : \"\u5283\u5206\u7BA1\u9053\",\r\n ifGenCutSame : \"\u5283\u5206\u503C\u76F8\u540C\",\r\n ifGenCutNpiece : \"\u5283\u5206\u4E3AN\u4EFD\",\r\n ifGenCutCustom : \"\u81EA\u5B9A\u7FA9\u8F38\u5165\",\r\n ifGenCutConfirm : \"\u751F\u6210\",\r\n\r\n ifGenTipSelectCell : \"\u9078\u64C7\u5132\u5B58\u683C\",\r\n ifGenTipSelectCellPlace: \"\u8ACB\u9078\u64C7\u5132\u5B58\u683C\",\r\n\r\n ifGenTipSelectRange : \"\u9078\u64C7\u55AE\u7BC4\u570D\",\r\n ifGenTipSelectRangePlace: \"\u8ACB\u9078\u64C7\u7BC4\u570D\",\r\n\r\n ifGenTipNotNullValue : \"\u6BD4\u8F03\u503C\u4E0D\u80FD\u70BA\u7A7A!\",\r\n ifGenTipLableTitile : \"\u6A19\u7C64\",\r\n ifGenTipRangeNotforNull : \"\u7BC4\u570D\u4E0D\u80FD\u70BA\u7A7A!\",\r\n ifGenTipCutValueNotforNull: \"\u5283\u5206\u503C\u4E0D\u80FD\u70BA\u7A7A\uFF01\",\r\n ifGenTipNotGenCondition : \"\u6C92\u6709\u751F\u6210\u53EF\u7528\u7684\u689D\u4EF6\uFF01\",\r\n },\r\n formulaMore: {\r\n valueTitle : \"\u503C\",\r\n tipSelectDataRange : \"\u9078\u53D6\u6578\u64DA\u7BC4\u570D\",\r\n tipDataRangeTile : \"\u6578\u64DA\u7BC4\u570D\",\r\n findFunctionTitle : \"\u67E5\u627E\u51FD\u6578\",\r\n tipInputFunctionName: \"\u8ACB\u8F38\u5165\u60A8\u8981\u67E5\u627E\u7684\u51FD\u6578\u540D\u7A31\u6216\u51FD\u6578\u529F\u80FD\u7684\u7C21\u8981\u63CF\u8FF0\",\r\n\r\n Array : \"\u6578\u7D44\",\r\n Database : \"\u8CC7\u6599\u4F86\u6E90\",\r\n Date : \"\u65E5\u671F\",\r\n Engineering: \"\u5DE5\u7A0B\u8A08\u7B97\",\r\n Filter : \"\u7BE9\u6AA2\u7A0B\u5F0F\",\r\n Financial : \"\u8CA1\u52D9\",\r\n luckysheet : \"Luckysheet\u5167\u5BD8\",\r\n other : \"\u5176\u5B83\",\r\n Logical : \"\u908F\u8F2F\",\r\n Lookup : \"\u67E5\u627E\",\r\n Math : \"\u6578\u5B78\",\r\n Operator : \"\u904B\u7B97\u5B50\",\r\n Parser : \"\u8F49\u63DB\u5DE5\u5177\",\r\n Statistical: \"\u7D71\u8A08\",\r\n Text : \"\u6587\u5B57\",\r\n dataMining : \"\u8CC7\u6599\u6316\u6398\",\r\n\r\n selectFunctionTitle: \"\u9078\u64C7\u51FD\u6578\",\r\n calculationResult : \"\u8A08\u7B97\u7D50\u679C\",\r\n\r\n tipSuccessText : \"\u6210\u529F\",\r\n tipParamErrorText: \"\u53C3\u6578\u985E\u578B\u932F\u8AA4\",\r\n\r\n helpClose : \"\u95DC\u9589\",\r\n helpCollapse: \"\u6536\u8D77\",\r\n helpExample : \"\u793A\u4F8B\",\r\n helpAbstract: \"\u6458\u8981\",\r\n\r\n execfunctionError : '\u63D0\u793A\", \"\u516C\u5F0F\u5B58\u5728\u932F\u8AA4',\r\n execfunctionSelfError : '\u516C\u5F0F\u4E0D\u53EF\u5F15\u7528\u5176\u672C\u8EAB\u7684\u5132\u5B58\u683C',\r\n execfunctionSelfErrorResult: '\u516C\u5F0F\u4E0D\u53EF\u5F15\u7528\u5176\u672C\u8EAB\u7684\u5132\u5B58\u683C,\u6703\u5C0E\u81F4\u8A08\u7B97\u7D50\u679C\u4E0D\u6E96\u78BA',\r\n\r\n allowRepeatText: \"\u53EF\u91CD\u8907\",\r\n allowOptionText: \"\u53EF\u9078\",\r\n\r\n selectCategory: \"\u6216\u9078\u64C7\u985E\u5225\",\r\n },\r\n drag: {\r\n noMerge : \"\u7121\u6CD5\u5C0D\u5408\u4F75\u5132\u5B58\u683C\u57F7\u884C\u6B64\u64CD\u4F5C\",\r\n affectPivot: \"\u7121\u6CD5\u5C0D\u6240\u9078\u5132\u5B58\u683C\u9032\u884C\u6B64\u66F4\u6539,\u56E0\u70BA\u5B83\u6703\u5F71\u97FF\u6578\u64DA\u900F\u8996\u9336\uFF01\",\r\n noMulti : \"\u7121\u6CD5\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C,\u8ACB\u9078\u64C7\u55AE\u500B\u5340\u57DF\",\r\n noPaste : \"\u7121\u6CD5\u5728\u6B64\u8655\u7C98\u8CBC\u6B64\u5167\u5BB9,\u8ACB\u9078\u64C7\u7C98\u8CBC\u5340\u57DF\u7684\u4E00\u500B\u5132\u5B58\u683C,\u7136\u5F8C\u518D\u6B21\u5617\u8A66\u7C98\u8CBC\",\r\n noPartMerge: \"\u7121\u6CD5\u5C0D\u90E8\u5206\u5408\u4F75\u5132\u5B58\u683C\u57F7\u884C\u6B64\u64CD\u4F5C\",\r\n\r\n inputCorrect : \"\u8ACB\u8F38\u5165\u6B63\u78BA\u7684\u6578\u503C\",\r\n notLessOne : \"\u884C\u5217\u6578\u4E0D\u80FD\u5C0F\u65BC1\",\r\n offsetColumnLessZero: \"\u504F\u79FB\u5217\u4E0D\u80FD\u70BA\u8CA0\u6578\uFF01\",\r\n\r\n pasteMustKeybordAlert : \"Copy and paste in the Sheet: Ctrl + C to copy, Ctrl + V to paste, Ctrl + X to cut\",\r\n pasteMustKeybordAlertHTMLTitle: \"Copy and paste in the Sheet\",\r\n pasteMustKeybordAlertHTML : \"Ctrl + C  to copy
Ctrl + V  to paste
Ctrl + X  to cut\",\r\n },\r\n paste: {\r\n warning : \"\u63D0\u793A\",\r\n errorNotAllowMulti : \"\u4E0D\u80FD\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C,\u8ACB\u9078\u64C7\u55AE\u500B\u5340\u57DF,\u7136\u5F8C\u518D\u8A66\",\r\n errorNotAllowMerged: \"\u4E0D\u80FD\u5BF9\u5408\u5E76\u5355\u5143\u683C\u505A\u90E8\u5206\u66F4\u6539\",\r\n },\r\n pivotTable: {\r\n title : \"\u6578\u64DA\u900F\u8996\u9336\",\r\n closePannel : \"\u95DC\u9589\",\r\n editRange : \"\u7DE8\u8F2F\u7BC4\u570D\",\r\n tipPivotFieldSelected: \"\u9078\u64C7\u9700\u8981\u6DFB\u52A0\u5230\u6578\u64DA\u900F\u8996\u9336\u7684\u6B04\u4F4D\",\r\n tipClearSelectedField: \"\u6E05\u9664\u6240\u6709\u5DF2\u9078\u6B04\u4F4D\",\r\n btnClearSelectedField: \"\u6E05\u9664\",\r\n btnFilter : \"\u7BE9\u9078\",\r\n titleRow : \"\u884C\",\r\n titleColumn : \"\u5217\",\r\n titleValue : \"\u6578\u503C\",\r\n tipShowColumn : \"\u7D71\u8A08\u6B04\u4F4D\u986F\u793A\u70BA\u5217\",\r\n tipShowRow : \"\u7D71\u8A08\u6B04\u4F4D\u986F\u793A\u70BA\u884C\",\r\n\r\n titleSelectionDataRange: \"\u9078\u53D6\u6578\u64DA\u7BC4\u570D\",\r\n titleDataRange : \"\u6578\u64DA\u7BC4\u570D\",\r\n\r\n valueSum: \"\u7E3D\u8A08\",\r\n\r\n valueStatisticsSUM : \"\u6C42\u548C\",\r\n valueStatisticsCOUNT : \"\u6578\u503C\u8A08\u6578\",\r\n valueStatisticsCOUNTA : \"\u8A08\u6578\",\r\n valueStatisticsCOUNTUNIQUE: \"\u53BB\u91CD\u8A08\u6578\",\r\n valueStatisticsAVERAGE : \"\u5E73\u5747\u503C\",\r\n valueStatisticsMAX : \"\u6700\u5927\u503C\",\r\n valueStatisticsMIN : \"\u6700\u5C0F\u503C\",\r\n valueStatisticsMEDIAN : \"\u4E2D\u4F4D\u6578\",\r\n valueStatisticsPRODUCT : \"\u4E58\u7A4D\",\r\n valueStatisticsSTDEV : \"\u6A19\u6E96\u5DEE\",\r\n\r\n valueStatisticsSTDEVP: \"\u6574\u9AD4\u6A19\u6E96\u5DEE\",\r\n valueStatisticslet : \"\u65B9\u5DEE\",\r\n valueStatisticsVARP : \"\u6574\u9AD4\u65B9\u5DEE\",\r\n\r\n errorNotAllowEdit : \"\u975E\u7DE8\u8F2F\u6A21\u5F0F\u4E0B\u7981\u6B62\u8A72\u64CD\u4F5C!\",\r\n errorNotAllowMulti : \"\u4E0D\u80FD\u5C0D\u591A\u91CD\u9078\u64C7\u5340\u57DF\u57F7\u884C\u6B64\u64CD\u4F5C,\u8ACB\u9078\u64C7\u55AE\u500B\u5340\u57DF,\u7136\u5F8C\u518D\u8A66\",\r\n errorSelectRange : \"\u8ACB\u9078\u64C7\u65B0\u5EFA\u900F\u8996\u9336\u7684\u5340\u57DF\",\r\n errorIsDamage : \"\u6B64\u6578\u64DA\u900F\u8996\u9336\u7684\u6E90\u6578\u64DA\u5DF2\u640D\u58DE\uFF01\",\r\n errorNotAllowPivotData: \"\u4E0D\u53EF\u9078\u64C7\u6578\u64DA\u900F\u8996\u9336\u70BA\u6E90\u6578\u64DA!\",\r\n errorSelectionRange : \"\u9078\u64C7\u5931\u6557,\u8F38\u5165\u7BC4\u570D\u932F\u8AA4\uFF01\",\r\n errorIncreaseRange : \"\u8ACB\u64F4\u5927\u9078\u64C7\u7684\u6578\u64DA\u7BC4\u570D!\",\r\n\r\n titleAddColumn : \"\u6DFB\u52A0\u5217\u5230\u6578\u64DA\u900F\u8996\u9336\",\r\n titleMoveColumn : \"\u79FB\u52D5\u8A72\u5217\u5230\u4E0B\u65B9\u767D\u6846\",\r\n titleClearColumnFilter: \"\u6E05\u9664\u8A72\u5217\u7684\u7BE9\u9078\u689D\u4EF6\",\r\n titleFilterColumn : \"\u7BE9\u9078\u8A72\u5217\",\r\n\r\n titleSort : \"\u6392\u5E8F\",\r\n titleNoSort : \"\u7121\u6392\u5E8F\",\r\n titleSortAsc : \"\u6607\u51AA\",\r\n titleSortDesc : \"\u964D\u5E8F\",\r\n titleSortBy : \"\u6392\u5E8F\u4F9D\u64DA\",\r\n titleShowSum : \"\u986F\u793A\u7E3D\u8A08\",\r\n titleStasticTrue : \"\u662F\",\r\n titleStasticFalse: \"\u5426\",\r\n },\r\n dropCell: {\r\n copyCell : \"\u8907\u88FD\u5132\u5B58\u683C\",\r\n sequence : \"\u586B\u5145\u5E8F\u5217\",\r\n onlyFormat : \"\u50C5\u586B\u5145\u683C\u5F0F\",\r\n noFormat : \"\u4E0D\u5E36\u683C\u5F0F\u586B\u5145\",\r\n day : \"\u4EE5\u5929\u6578\u586B\u5145\",\r\n workDay : \"\u4EE5\u5DE5\u4F5C\u65E5\u586B\u5145\",\r\n month : \"\u4EE5\u6708\u586B\u5145\",\r\n year : \"\u4EE5\u5E74\u586B\u5145\",\r\n chineseNumber: \"\u4EE5\u4E2D\u6587\u5C0F\u5BEB\u6578\u4F4D\u586B\u5145\"\r\n },\r\n imageCtrl: {\r\n borderTile: \"\u5716\u7247\u908A\u6846\u984F\u8272\u9078\u64C7\",\r\n borderCur : \"\u7576\u524D\u984F\u8272\",\r\n },\r\n protection: {\r\n protectiontTitle : \"\u4FDD\u8B77\u5DE5\u4F5C\u8868\",\r\n enterPassword : \"\u8ACB\u8F38\u5165\u5BC6\u78BC\uFF08\u53EF\u7559\u7A7A\uFF09\",\r\n enterHint : \"\u60A8\u8A66\u5716\u66F4\u6539\u7684\u5132\u5B58\u683C\u6216\u5716\u8868\u4F4D\u65BC\u53D7\u4FDD\u8B77\u7684\u5DE5\u4F5C\u8868\u4E2D\u3002\u82E5\u8981\u66F4\u6539,\u8ACB\u53D6\u6D88\u5DE5\u4F5C\u8868\u4FDD\u8B77\u3002\u60A8\u53EF\u80FD\u9700\u8981\u8F38\u5165\u5BC6\u78BC\",\r\n swichProtectionTip : \"\u4FDD\u8B77\u5DE5\u4F5C\u8868\u53CA\u9396\u5B9A\u7684\u5132\u5B58\u683C\u5167\u5BB9\",\r\n authorityTitle : \"\u5141\u8A31\u6B64\u5DE5\u4F5C\u8868\u7684\u7528\u6236\u9032\u884C:\",\r\n selectLockedCells : \"\u5B9A\u9396\u5B9A\u5132\u5B58\u683C\",\r\n selectunLockedCells : \"\u9078\u5B9A\u89E3\u9664\u9396\u5B9A\u7684\u5132\u5B58\u683C\",\r\n formatCells : \"\u8A2D\u5B9A\u5132\u5B58\u683C\u683C\u5F0F\",\r\n formatColumns : \"\u8A2D\u5B9A\u5217\u683C\u5F0F\",\r\n formatRows : \"\u8A2D\u5B9A\u884C\u683C\u5F0F\",\r\n insertColumns : \"\u63D2\u5165\u5217\",\r\n insertRows : \"\u63D2\u5165\u884C\",\r\n insertHyperlinks : \"\u63D2\u5165\u8D85\u9023\u7D50\",\r\n deleteColumns : \"\u5220\u9664\u5217\",\r\n deleteRows : \"\u5220\u9664\u884C\",\r\n sort : \"\u6392\u5E8F\",\r\n filter : \"\u4F7F\u7528\u81EA\u52D5\u7BE9\u9078\",\r\n usePivotTablereports: \"\u4F7F\u7528\u6578\u64DA\u900F\u8996\u9336\u548C\u5831\u8868\",\r\n editObjects : \"\u7DE8\u8F2F\u5C0D\u8C61\",\r\n editScenarios : \"\u7DE8\u8F2F\u65B9\u6848\",\r\n\r\n allowRangeTitle: \"\u5141\u8A31\u7528\u6236\u7DE8\u8F2F\u5340\u57DF\",\r\n allowRangeAdd : \"\u65B0\u5EFA...\",\r\n\r\n allowRangeAddTitle : \"\u6A19\u984C\",\r\n allowRangeAddSqrf : \"\u5F15\u7528\u5132\u5B58\u683C\",\r\n selectCellRange : '\u9EDE\u64CA\u9078\u64C7\u5132\u5B58\u683C\u7BC4\u570D',\r\n selectCellRangeHolder : \"\u8ACB\u8F38\u5165\u5132\u5B58\u683C\u7BC4\u570D\",\r\n allowRangeAddTitlePassword : \"\u5BC6\u78BC\",\r\n allowRangeAddTitleHint : \"\u63D0\u793A\",\r\n allowRangeAddTitleHintTitle: \"\u8A2D\u7F6E\u5BC6\u78BC\u5F8C,\u63D0\u793A\u7528\u6236\u8F38\u5165\u5BC6\u78BC\uFF08\u53EF\u7559\u7A7A\uFF09\",\r\n allowRangeAddtitleDefault : \"\u8ACB\u8F38\u5165\u5340\u57DF\u540D\u7A31\",\r\n\r\n rangeItemDblclick : \"\u6309\u5169\u4E0B\u9032\u884C\u7DE8\u8F2F\",\r\n rangeItemHasPassword: \"\u5DF2\u8A2D\u7F6E\u5BC6\u78BC\",\r\n\r\n rangeItemErrorTitleNull: \"\u6A19\u984C\u4E0D\u80FD\u70BA\u7A7A\",\r\n rangeItemErrorRangeNull: \"\u5132\u5B58\u683C\u7BC4\u570D\u4E0D\u80FD\u70BA\u7A7A\",\r\n rangeItemErrorRange : \"\u5132\u5B58\u683C\u7BC4\u570D\u683C\u5F0F\u932F\u8AA4\",\r\n\r\n validationTitle : \"\u9A57\u8B49\u63D0\u793A\",\r\n validationTips : \"\u9700\u8981\u8F38\u5165\u5BC6\u78BC\u4F86\u64A4\u92B7\u5DE5\u4F5C\u8868\u7684\u4FDD\u8B77\",\r\n validationInputHint: \"\u8ACB\u8F38\u5165\u5BC6\u78BC\",\r\n\r\n checkPasswordNullalert : \"\u5BC6\u78BC\u4E0D\u80FD\u70BA\u7A7A!\",\r\n checkPasswordWrongalert: \"\u5BC6\u78BC\u932F\u8AA4,\u8ACB\u91CD\u8A66\uFF01\",\r\n\r\n checkPasswordSucceedalert: \"\u89E3\u9396\u6210\u529F,\u53EF\u4EE5\u7DE8\u8F2F\u8A72\u5340\u57DF!\",\r\n defaultRangeHintText : \"\u8A72\u5132\u5B58\u683C\u6B63\u5728\u53D7\u5BC6\u78BC\u4FDD\u8B77\",\r\n defaultSheetHintText : \"\u8A72\u5132\u5B58\u683C\u6216\u5716\u8868\u4F4D\u65BC\u53D7\u4FDD\u8B77\u7684\u5DE5\u4F5C\u8868\u4E2D,\u82E5\u8981\u9032\u884C\u66F4\u6539,\u8ACB\u53D6\u6D88\u5DE5\u4F5C\u8868\u4FDD\u8B77,\u60A8\u53EF\u80FD\u9700\u8981\u8F38\u5165\u5BC6\u78BC\u3002\",\r\n },\r\n cellFormat: {\r\n cellFormatTitle : \"\u8A2D\u5B9A\u5132\u5B58\u683C\u683C\u5F0F\",\r\n protection : \"\u4FDD\u8B77\",\r\n locked : \"\u9396\u5B9A\u5132\u5B58\u683C\",\r\n hidden : \"\u96B1\u85CF\u516C\u5F0F\",\r\n protectionTips : \"\u53EA\u6709\u4FDD\u8B77\u5DE5\u4F5C\u8868\u529F\u80FD\uFF08\u5728\u529F\u80FD\u8868\u5217\u9EDE\u64CA\u4FDD\u8B77\u5DE5\u4F5C\u8868\u6309\u9215\u9032\u884C\u8A2D\u5B9A\uFF09\u958B\u555F\u5F8C,\u9396\u5B9A\u5132\u5B58\u683C\u6216\u96B1\u85CF\u516C\u5F0F\u624D\u80FD\u751F\u6548\",\r\n tipsPart : \"\u90E8\u5206\u9078\u4E2D\",\r\n tipsAll : \"\u5168\u90E8\u9078\u4E2D\",\r\n selectionIsNullAlert: \"\u8ACB\u9078\u64C7\u4E00\u500B\u7BC4\u570D\uFF01\",\r\n sheetDataIsNullAlert: \"\u6578\u64DA\u70BA\u7A7A\u7121\u6CD5\u8A2D\u5B9A\uFF01\",\r\n },\r\n print: {\r\n normalBtn: \"\u5E38\u898F\u8996\u5716\",\r\n layoutBtn: \"\u9801\u9762\u4F48\u5C40\",\r\n pageBtn : \"\u5206\u9801\u9810\u89BD\",\r\n\r\n menuItemPrint : \"\u5217\u5370(Ctrl+P)\",\r\n menuItemAreas : \"\u5217\u5370\u5340\u57DF\",\r\n menuItemRows : \"\u5217\u5370\u6A19\u984C\u884C\",\r\n menuItemColumns: \"\u5217\u5370\u6A19\u984C\u5217\",\r\n },\r\n edit: {\r\n typing: \"\u6B63\u5728\u8F38\u5165\",\r\n },\r\n websocket: {\r\n success: 'WebSocket\u9023\u63A5\u6210\u529F',\r\n refresh: 'WebSocket\u9023\u63A5\u767C\u751F\u932F\u8AA4,\u8ACB\u5237\u65B0\u9801\u9762\uFF01',\r\n wait : 'WebSocket\u9023\u63A5\u767C\u751F\u932F\u8AA4,\u8ACB\u8010\u5FC3\u7B49\u5F85\uFF01',\r\n close : 'WebSocket\u9023\u63A5\u95DC\u9589',\r\n contact: '\u670D\u52D9\u5668\u901A\u4FE1\u767C\u751F\u932F\u8AA4,\u8ACB\u5237\u65B0\u9801\u9762\u5F8C\u518D\u8A66,\u5982\u82E5\u4E0D\u884C\u8ACB\u806F\u7CFB\u7BA1\u7406\u54E1\uFF01',\r\n support: '\u7576\u524D\u700F\u89BD\u5668\u4E0D\u652F\u6301WebSocket',\r\n },\r\n exportXlsx:{\r\n notice:'\u8ACB\u914D\u7F6E\u5C0E\u51FA\u63D2\u4EF6',\r\n serverError:'\u670D\u52D9\u5668\u6B63\u5728\u7DAD\u8B77',\r\n title:'\u5C0E\u51FAXLSX',\r\n range: \"\u7BC4\u570D\",\r\n currentSheet: \"\u7576\u524D\u5DE5\u4F5C\u8868\",\r\n allSheets: \"\u6240\u6709\u5DE5\u4F5C\u8868\",\r\n }\r\n\r\n};\r\n", "import en from './en'\r\nimport zh from './zh'\r\nimport es from './es'\r\nimport zh_tw from './zh_tw'\r\nimport Store from '../store';\r\n\r\nexport const locales = {en,zh,es,zh_tw}\r\n\r\nfunction locale(){\r\n return locales[Store.lang];\r\n}\r\n\r\nexport default locale;", "import locale from '../locale/locale';\r\nimport luckysheetConfigsetting from './luckysheetConfigsetting';\r\n\r\nimport { getObjType, camel2split } from '../utils/util';\r\n\r\n// \u9ED8\u8BA4\u7684\u5DE5\u5177\u680F\u6309\u94AE\r\nexport const defaultToolbar = [\r\n 'undo',\r\n 'redo',\r\n 'paintFormat',\r\n '|',\r\n\r\n 'currencyFormat',\r\n 'percentageFormat',\r\n 'numberIncrease',\r\n 'numberDecrease',\r\n 'moreFormats',\r\n '|',\r\n\r\n 'font',\r\n '|',\r\n 'fontSize',\r\n '|',\r\n\r\n 'bold',\r\n 'italic',\r\n 'strikethrough',\r\n 'underline',\r\n 'textColor',\r\n '|',\r\n\r\n 'fillColor',\r\n 'border',\r\n 'mergeCell',\r\n '|',\r\n\r\n 'horizontalAlignMode',\r\n 'verticalAlignMode',\r\n 'textWrapMode',\r\n 'textRotateMode',\r\n '|',\r\n\r\n 'image',\r\n 'link',\r\n 'chart',\r\n 'postil',\r\n 'pivotTable',\r\n '|',\r\n\r\n 'function',\r\n 'frozenMode',\r\n 'sortAndFilter',\r\n 'conditionalFormat',\r\n 'dataVerification',\r\n 'splitColumn',\r\n 'screenshot',\r\n 'findAndReplace',\r\n 'protection',\r\n 'print',\r\n 'exportXlsx',\r\n];\r\n\r\n// \u5DE5\u5177\u680F\u6309\u94AE id \u5173\u7CFB\r\nexport const toolbarIdMap = {\r\n undo: '#luckysheet-icon-undo', //Undo redo\r\n redo: '#luckysheet-icon-redo',\r\n paintFormat: ['#luckysheet-icon-paintformat'], //Format brush\r\n currencyFormat: '#luckysheet-icon-currency', //currency format\r\n percentageFormat: '#luckysheet-icon-percent', //Percentage format\r\n numberDecrease: '#luckysheet-icon-fmt-decimal-decrease', //'Decrease the number of decimal places'\r\n numberIncrease: '#luckysheet-icon-fmt-decimal-increase', //'Increase the number of decimal places\r\n moreFormats: '#luckysheet-icon-fmt-other', //'More Formats'\r\n font: '#luckysheet-icon-font-family', //'font'\r\n fontSize: '#luckysheet-icon-font-size', //'Font size'\r\n bold: '#luckysheet-icon-bold', //'Bold (Ctrl+B)'\r\n italic: '#luckysheet-icon-italic', //'Italic (Ctrl+I)'\r\n strikethrough: '#luckysheet-icon-strikethrough', //'Strikethrough (Alt+Shift+5)'\r\n underline: '#luckysheet-icon-underline', //'Underline (Alt+Shift+6)'\r\n textColor: ['#luckysheet-icon-text-color', '#luckysheet-icon-text-color-menu'], //'Text color'\r\n fillColor: ['#luckysheet-icon-cell-color', '#luckysheet-icon-cell-color-menu'], //'Cell color'\r\n border: ['#luckysheet-icon-border-all', '#luckysheet-icon-border-menu'], //'border'\r\n mergeCell: ['#luckysheet-icon-merge-button', '#luckysheet-icon-merge-menu'], //'Merge cells'\r\n horizontalAlignMode: ['#luckysheet-icon-align', '#luckysheet-icon-align-menu'], //'Horizontal alignment'\r\n verticalAlignMode: ['#luckysheet-icon-valign', '#luckysheet-icon-valign-menu'], //'Vertical alignment'\r\n textWrapMode: ['#luckysheet-icon-textwrap', '#luckysheet-icon-textwrap-menu'], //'Wrap mode'\r\n textRotateMode: ['#luckysheet-icon-rotation', '#luckysheet-icon-rotation-menu'], //'Text Rotation Mode'\r\n image: '#luckysheet-insertImg-btn-title', //'Insert link'\r\n link: '#luckysheet-insertLink-btn-title', //'Insert picture'\r\n chart: '#luckysheet-chart-btn-title', //'chart' (the icon is hidden, but if the chart plugin is configured, you can still create a new chart by right click)\r\n postil: '#luckysheet-icon-postil', //'comment'\r\n pivotTable: ['#luckysheet-pivot-btn-title'], //'PivotTable'\r\n function: ['#luckysheet-icon-function', '#luckysheet-icon-function-menu'], //'formula'\r\n frozenMode: ['#luckysheet-freezen-btn-horizontal', '#luckysheet-icon-freezen-menu'], //'freeze mode'\r\n sortAndFilter: '#luckysheet-icon-autofilter', //'sort and filter'\r\n conditionalFormat: '#luckysheet-icon-conditionformat', //'Conditional Format'\r\n dataVerification: '#luckysheet-dataVerification-btn-title', // 'Data Verification'\r\n splitColumn: '#luckysheet-splitColumn-btn-title', //'Split column'\r\n screenshot: '#luckysheet-chart-btn-screenshot', //'screenshot'\r\n findAndReplace: '#luckysheet-icon-seachmore', //'Find and Replace'\r\n protection: '#luckysheet-icon-protection', // 'Worksheet protection'\r\n print: '#luckysheet-icon-print', // 'print'\r\n exportXlsx: '#luckysheet-exportXlsx-btn-title' // 'export xlsx'\r\n};\r\n\r\n// \u521B\u5EFA\u5DE5\u5177\u680F\u6309\u94AE\u7684html\r\nexport function createToolbarHtml() {\r\n const toolbar = locale().toolbar;\r\n const fontarray = locale().fontarray;\r\n const defaultFmtArray = locale().defaultFmt;\r\n const htmlMap = {\r\n undo: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`,\r\n redo: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`,\r\n paintFormat: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`,\r\n currencyFormat: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`,\r\n percentageFormat: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //Percentage format\r\n numberDecrease: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Decrease the number of decimal places'\r\n numberIncrease: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Increase the number of decimal places\r\n moreFormats: `
\r\n
\r\n
\r\n
\r\n ${defaultFmtArray[0].text}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'More Formats'\r\n font: `
\r\n
\r\n
\r\n
\r\n ${fontarray[0]}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'font'\r\n fontSize: `
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Font size'\r\n bold: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Bold (Ctrl+B)'\r\n italic: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Italic (Ctrl+I)'\r\n strikethrough: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Strikethrough (Alt+Shift+5)'\r\n underline: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Underline (Alt+Shift+6)'\r\n textColor: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Text color'\r\n fillColor: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Cell color'\r\n border: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'border'\r\n mergeCell: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Merge cells'\r\n horizontalAlignMode: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Horizontal alignment'\r\n verticalAlignMode: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Vertical alignment'\r\n textWrapMode: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Wrap mode'\r\n textRotateMode: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Text Rotation Mode'\r\n image: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, // 'Insert picture'\r\n link: ``, // 'Insert link'(TODO)\r\n chart: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'chart' (the icon is hidden, but if the chart plugin is configured, you can still create a new chart by right click)\r\n postil: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'comment'\r\n pivotTable: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'PivotTable'\r\n function: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${toolbar.sum}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'formula'\r\n frozenMode: `
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'freeze mode'\r\n sortAndFilter: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Sort and filter'\r\n conditionalFormat: `
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Conditional Format'\r\n dataVerification: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, // 'Data Verification'\r\n splitColumn: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Split column'\r\n screenshot: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'screenshot'\r\n findAndReplace: `
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, //'Find and Replace'\r\n protection: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, // 'Worksheet protection'\r\n print: `
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, // 'print'\r\n exportXlsx: `
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`, // 'Insert picture'\r\n };\r\n\r\n const showtoolbar = luckysheetConfigsetting.showtoolbar;\r\n const showtoolbarConfig = luckysheetConfigsetting.showtoolbarConfig;\r\n\r\n const buttonHTML = ['
'];\r\n\r\n // \u6570\u7EC4\u5F62\u5F0F\u76F4\u63A5\u751F\u6210\r\n if (getObjType(showtoolbarConfig) === 'array') {\r\n // \u6B64\u65F6\u4E0D\u6839\u636E showtoolbar=false\uFF0CshowtoolbarConfig\u4E3A\u67D0\u51E0\u4E2A\u8FDB\u884C\u9002\u914D\uFF0C\u6B64\u65F6showtoolbarConfig\u672C\u8EAB\u5C31\u662F\u5168\u90E8\u8981\u663E\u793A\u7684\u6309\u94AE\r\n if (!showtoolbar) {\r\n return '';\r\n }\r\n let i = 0;\r\n showtoolbarConfig.forEach(function(key, i) {\r\n if (key === '|') {\r\n const nameKeys = showtoolbarConfig[i - 1]\r\n if(nameKeys !== '|') {\r\n buttonHTML.push(\r\n `
`\r\n );\r\n }\r\n } else {\r\n buttonHTML.push(htmlMap[key]);\r\n }\r\n });\r\n return buttonHTML.join('');\r\n }\r\n\r\n const config = defaultToolbar.reduce(function(total, curr) {\r\n if (curr !== '|') {\r\n total[curr] = true;\r\n }\r\n return total;\r\n }, {});\r\n\r\n if (!showtoolbar) {\r\n for (let s in config) {\r\n config[s] = false;\r\n }\r\n }\r\n\r\n // \u5BF9\u8C61\u6A21\u5F0F \u5219\u4ECE\u91CC\u9762\u6311\u9009 true \u4FDD\u7559 false \u5220\u6389\r\n if (JSON.stringify(showtoolbarConfig) !== '{}') {\r\n if(showtoolbarConfig.hasOwnProperty('undoRedo')){\r\n config.undo = config.redo = showtoolbarConfig.undoRedo;\r\n }\r\n Object.assign(config, showtoolbarConfig);\r\n }\r\n for (let i = 0; i < defaultToolbar.length; i++) {\r\n let key = defaultToolbar[i];\r\n if (!config[key] && key !== '|') {\r\n // \u5982\u679C\u5F53\u524D\u5143\u7D20\u9690\u85CF \u6309\u7167\u4E4B\u524D\u7684\u89C4\u5219 \u540E\u9762\u7D27\u8DDF\u7684 | \u5206\u5272\u4E5F\u4E0D\u9700\u8981\u663E\u793A\u4E86\r\n if (defaultToolbar[i + 1] === '|') {\r\n i++;\r\n }\r\n continue;\r\n }\r\n if (key === '|') {\r\n const nameKeys = defaultToolbar[i - 1]\r\n if(nameKeys !== '|') {\r\n buttonHTML.push(\r\n `
`\r\n );\r\n }\r\n } else {\r\n buttonHTML.push(htmlMap[key]);\r\n }\r\n }\r\n return buttonHTML.join('');\r\n}\r\n", "import locale from \"../locale/locale\";\r\nimport Store from \"../store\";\r\nimport luckysheetConfigsetting from \"./luckysheetConfigsetting\";\r\nimport { getObjType } from \"../utils/util\";\r\nimport { createToolbarHtml } from \"./toolbar\";\r\n//dom variable\r\nconst gridHTML = function() {\r\n const _locale = locale();\r\n const locale_info = _locale.info;\r\n const locale_print = _locale.print;\r\n const userInfo =\r\n luckysheetConfigsetting.userInfo === true\r\n ? ' Lucky'\r\n : luckysheetConfigsetting.userInfo; // When true, use the default HTML string. The rendering of userInfo below uses nested template strings. Otherwise, when display is used and the image path is not passed in, there will be an undefined request\r\n\r\n return `
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
${\r\n locale_info.detailUpdate\r\n }
\r\n
${\r\n locale_info.wait\r\n }
\r\n \r\n \\${functionButton}\r\n \r\n ${\r\n getObjType(userInfo) === \"string\"\r\n ? `
\r\n ${userInfo}
`\r\n : \"\"\r\n }\r\n\r\n ${\r\n getObjType(userInfo) === \"object\"\r\n ? `
\r\n \r\n ${userInfo.userName}\r\n
`\r\n : \"\"\r\n }\r\n \r\n
\r\n
\\${menu}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\\${columnHeader}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\\${rowHeader}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\\${flow} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
100%
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
`;\r\n};\r\n\r\nconst columeHeader_word = [\r\n \"A\",\r\n \"B\",\r\n \"C\",\r\n \"D\",\r\n \"E\",\r\n \"F\",\r\n \"G\",\r\n \"H\",\r\n \"I\",\r\n \"J\",\r\n \"K\",\r\n \"L\",\r\n \"M\",\r\n \"N\",\r\n \"O\",\r\n \"P\",\r\n \"Q\",\r\n \"R\",\r\n \"S\",\r\n \"T\",\r\n \"U\",\r\n \"V\",\r\n \"W\",\r\n \"X\",\r\n \"Y\",\r\n \"Z\",\r\n ],\r\n columeHeader_word_index = {\r\n A: 0,\r\n B: 1,\r\n C: 2,\r\n D: 3,\r\n E: 4,\r\n F: 5,\r\n G: 6,\r\n H: 7,\r\n I: 8,\r\n J: 9,\r\n K: 10,\r\n L: 11,\r\n M: 12,\r\n N: 13,\r\n O: 14,\r\n P: 15,\r\n Q: 16,\r\n R: 17,\r\n S: 18,\r\n T: 19,\r\n U: 20,\r\n V: 21,\r\n W: 22,\r\n X: 23,\r\n Y: 24,\r\n Z: 25,\r\n },\r\n flow =\r\n '
${flow}
',\r\n colsmenuHTML = \"\";\r\n\r\n//\u53F3\u952E\u83DC\u5355dom\r\nfunction rightclickHTML() {\r\n const _locale = locale();\r\n const rightclick = _locale.rightclick;\r\n const toolbar = _locale.toolbar;\r\n\r\n const config = customCellRightClickConfig();\r\n\r\n // \u5F53\u4E00\u4E2A\u529F\u80FD\u83DC\u5355\u5757\u5185\u6240\u6709\u7684\u6309\u94AE\u90FD\u9690\u85CF\u7684\u65F6\u5019\uFF0C\u5B83\u9876\u90E8\u7684\u5206\u5272\u7EBF\u4E5F\u9700\u8981\u9690\u85CF\u6389\r\n let handleincellMenuseparator = true;\r\n\r\n if (!config.insertRow && !config.insertColumn && !config.deleteRow && !config.deleteColumn && !config.deleteCell) {\r\n handleincellMenuseparator = false;\r\n }\r\n\r\n let dataMenuseparator = true;\r\n\r\n if (\r\n !config.clear &&\r\n !config.matrix &&\r\n !config.sort &&\r\n !config.filter &&\r\n !config.chart &&\r\n !config.image &&\r\n !config.link &&\r\n !config.data &&\r\n !config.cellFormat\r\n ) {\r\n dataMenuseparator = false;\r\n }\r\n\r\n const customsButtons = (config.customs || [])\r\n .map(\r\n (item, index) => `\r\n
\r\n
\r\n ${item.title}\r\n
\r\n
`,\r\n )\r\n .join(\"\");\r\n\r\n const rightclickContainer = `
\r\n
\r\n
${rightclick.copy}
\r\n
\r\n
\r\n
\r\n ${\r\n rightclick.copyAs\r\n }\r\n
\r\n
\r\n
\r\n
${rightclick.paste}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.insert}${\r\n rightclick.row\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.insert}${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.deleteSelected}${\r\n rightclick.row\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.deleteSelected}${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n \r\n
\r\n
\r\n ${\r\n rightclick.deleteCell\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.to}\r\n ${rightclick.left}\r\n ${rightclick.add}\r\n \r\n ${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.to}\r\n ${rightclick.right}\r\n ${rightclick.add}\r\n \r\n ${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.deleteSelected}\r\n ${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.hideSelected}\r\n ${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.showHide}\r\n ${\r\n rightclick.column\r\n }\r\n
\r\n
\r\n
\r\n
\r\n ${\r\n rightclick.column\r\n }\r\n ${\r\n rightclick.width\r\n }\r\n \r\n px\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
${\r\n rightclick.orderAZ\r\n }
\r\n
\r\n
\r\n
${\r\n rightclick.orderZA\r\n }
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
${\r\n rightclick.clearContent\r\n }
\r\n
\r\n
\r\n
\r\n ${\r\n rightclick.matrix\r\n }\r\n
\r\n
\r\n
\r\n
${\r\n rightclick.sortSelection\r\n }
\r\n
\r\n
\r\n
${\r\n rightclick.filterSelection\r\n }
\r\n
\r\n
\r\n
${\r\n rightclick.chartGeneration\r\n }
\r\n
\r\n
\r\n
${\r\n toolbar.insertImage\r\n }
\r\n
\r\n
\r\n
${\r\n toolbar.insertLink\r\n }
\r\n
\r\n
\r\n
${\r\n toolbar.dataVerification\r\n }
\r\n
\r\n
\r\n
${\r\n toolbar.cellFormat\r\n }
\r\n
\r\n ${customsButtons}\r\n
\r\n
\r\n
\r\n
\r\n
Json ${\r\n rightclick.firstLineTitle\r\n }
\r\n
\r\n
\r\n
Json ${\r\n rightclick.untitled\r\n }
\r\n
\r\n
\r\n
${rightclick.array1}
\r\n
\r\n
\r\n
${rightclick.array2}
\r\n
\r\n
\r\n
\r\n ${rightclick.array3}\r\n \r\n \u00D7\r\n \r\n
\r\n
\r\n
\r\n
\r\n
${\r\n rightclick.diagonal\r\n }
\r\n
\r\n
\r\n
${\r\n rightclick.antiDiagonal\r\n }
\r\n
\r\n
\r\n
\r\n ${rightclick.diagonalOffset}\r\n \r\n ${rightclick.column}\r\n
\r\n
\r\n
\r\n
${\r\n rightclick.boolean\r\n }
\r\n
\r\n
\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n ${rightclick.moveLeft}\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.moveUp}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.flip}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.flip}\r\n \r\n \r\n
\r\n
\r\n
\r\n
${\r\n rightclick.transpose\r\n }
\r\n
\r\n
\r\n
\r\n
\r\n
${rightclick.matrixCalculation}
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.delete0}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n ${rightclick.removeDuplicate}\r\n \r\n \r\n
\r\n
\r\n
`;\r\n\r\n return rightclickContainer;\r\n}\r\n\r\nconst pivottableconfigHTML = function() {\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n return (\r\n '
' +\r\n locale_pivotTable.titleSort +\r\n '
' +\r\n locale_pivotTable.titleSortBy +\r\n '
' +\r\n locale_pivotTable.titleShowSum +\r\n '
\"\r\n );\r\n};\r\n\r\nconst pivottablesumHTML = function() {\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n return (\r\n '
' +\r\n locale_pivotTable.valueStatisticsSUM +\r\n '
' +\r\n locale_pivotTable.valueStatisticsCOUNT +\r\n '
' +\r\n locale_pivotTable.valueStatisticsCOUNTA +\r\n '
' +\r\n locale_pivotTable.valueStatisticsCOUNTUNIQUE +\r\n '
' +\r\n locale_pivotTable.valueStatisticsAVERAGE +\r\n '
' +\r\n locale_pivotTable.valueStatisticsMAX +\r\n '
' +\r\n locale_pivotTable.valueStatisticsMIN +\r\n '
' +\r\n locale_pivotTable.valueStatisticsMEDIAN +\r\n '
' +\r\n locale_pivotTable.valueStatisticsPRODUCT +\r\n '
' +\r\n locale_pivotTable.valueStatisticsSTDEV +\r\n '
' +\r\n locale_pivotTable.valueStatisticsSTDEVP +\r\n '
' +\r\n locale_pivotTable.valueStatisticslet +\r\n '
' +\r\n locale_pivotTable.valueStatisticsVARP +\r\n '
'\r\n );\r\n};\r\n\r\nconst sheetHTML =\r\n '
${name} ${colorset}
',\r\n columnHeaderHTML =\r\n '
${column}
',\r\n sheetselectlistHTML =\r\n '
${item}
',\r\n sheetselectlistitemHTML =\r\n '
${icon}${name}
',\r\n inputHTML =\r\n '
',\r\n modelHTML =\r\n '
${title}\t
${content}
\t ${botton}
',\r\n maskHTML = '
';\r\n\r\n//\u5E95\u90E8 \u8868\u683C\u6807\u7B7E\u64CD\u4F5Cdom\r\nfunction sheetconfigHTML() {\r\n const sheetconfig = locale().sheetconfig;\r\n\r\n const config = customSheetRightClickConfig();\r\n\r\n /* \u5982\u679C\u914D\u7F6E\u9879\u5168\u90E8\u4E3Aflase\uFF0C\u5219\u9690\u85CF\u5165\u53E3\u4E14\u4E0D\u518D\u83DC\u5355\u9879 */\r\n if (Object.values(config).every((ele) => !ele)) {\r\n $(\"#luckysheet-sheet-container-c\").addClass(\"luckysheet-sheet-container-menu-hide\");\r\n return \"\";\r\n }\r\n\r\n let hideTopMenuseparator = true;\r\n let moveTopMenuseparator = true;\r\n\r\n // 1. \u5F53\u4E00\u4E2A\u529F\u80FD\u83DC\u5355\u5757\u4E0A\u65B9\u7684\u529F\u80FD\u5757\u6309\u94AE\u90FD\u9690\u85CF\u7684\u65F6\u5019\uFF0C\u4E0B\u65B9\u7684\u529F\u80FD\u5757\u7684\u9876\u90E8\u5206\u5272\u7EBF\u4E5F\u9700\u8981\u9690\u85CF\r\n if (!config.delete && !config.copy && !config.rename && !config.color) {\r\n hideTopMenuseparator = false;\r\n if (!config.hide) {\r\n moveTopMenuseparator = false;\r\n }\r\n }\r\n\r\n // 2. \u5F53\u4E00\u4E2A\u529F\u80FD\u83DC\u5355\u5757\u5185\u6240\u6709\u7684\u6309\u94AE\u90FD\u9690\u85CF\u7684\u65F6\u5019\uFF0C\u5B83\u9876\u90E8\u7684\u5206\u5272\u7EBF\u4E5F\u9700\u8981\u9690\u85CF\u6389\r\n if (!config.hide) {\r\n hideTopMenuseparator = false;\r\n }\r\n if (!config.move) {\r\n moveTopMenuseparator = false;\r\n }\r\n\r\n const sheetconfigModel = `
\r\n
\r\n
${\r\n sheetconfig.delete\r\n }
\r\n
\r\n
\r\n
${sheetconfig.copy}
\r\n
\r\n
\r\n
${\r\n sheetconfig.rename\r\n }
\r\n
\r\n
\r\n
\r\n ${\r\n sheetconfig.changeColor\r\n } \r\n
\r\n
\r\n
\r\n
\r\n
${sheetconfig.hide}
\r\n
\r\n
\r\n
${\r\n sheetconfig.unhide\r\n }
\r\n
\r\n
\r\n
\r\n
${\r\n sheetconfig.moveLeft\r\n }
\r\n
\r\n
\r\n
${\r\n sheetconfig.moveRight\r\n }
\r\n
\r\n
\r\n
\r\n
\r\n
${\r\n sheetconfig.resetColor\r\n }
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
`;\r\n\r\n return sheetconfigModel;\r\n}\r\n\r\nconst luckysheetPivotTableHTML = function() {\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n // return '
'+locale_pivotTable.title+'
'+locale_pivotTable.editRange+'
'+locale_pivotTable.tipPivotFieldSelected+' '+locale_pivotTable.btnClearSelectedField+'
'+locale_pivotTable.btnFilter+'
'+locale_pivotTable.titleRow+'
'+locale_pivotTable.titleColumn+'
'+locale_pivotTable.titleValue+'
';\r\n return `\r\n
\r\n
${locale_pivotTable.title}
\r\n
\r\n
\r\n
\r\n
${locale_pivotTable.editRange}
\r\n
\r\n
${locale_pivotTable.tipPivotFieldSelected} ${locale_pivotTable.btnClearSelectedField}
\r\n
\r\n
\r\n
\r\n
${locale_pivotTable.btnFilter}
\r\n
\r\n
\r\n
\r\n
${locale_pivotTable.titleRow}
\r\n
\r\n
\r\n
\r\n
${locale_pivotTable.titleColumn}
\r\n
\r\n
\r\n
\r\n
${locale_pivotTable.titleValue}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n `;\r\n};\r\n\r\nfunction filtermenuHTML() {\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n\r\n return `
${locale_filter.sortByAsc}
${locale_filter.sortByDesc}
${locale_filter.filterByColor}
${locale_filter.filterByCondition}
${locale_filter.filiterInputNone}
${locale_filter.filiterRangeStart}${locale_filter.filiterRangeEnd}
${locale_filter.filterByValues}
${locale_filter.filterValueByAllBtn} - ${locale_filter.filterValueByClearBtn} - ${locale_filter.filterValueByInverseBtn}
${locale_filter.filterConform}
${locale_filter.filterCancel}
${locale_filter.clearFilter}
`;\r\n}\r\n\r\nfunction filtersubmenuHTML() {\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n\r\n return `
${locale_filter.conditionNone}
${locale_filter.conditionCellIsNull}
${locale_filter.conditionCellNotNull}
${locale_filter.conditionCellTextContain}
${locale_filter.conditionCellTextNotContain}
${locale_filter.conditionCellTextStart}
${locale_filter.conditionCellTextEnd}
${locale_filter.conditionCellTextEqual}
${locale_filter.conditionCellDateEqual}
${locale_filter.conditionCellDateBefore}
${locale_filter.conditionCellDateAfter}
${locale_filter.conditionCellGreater}
${locale_filter.conditionCellGreaterEqual}
${locale_filter.conditionCellLess}
${locale_filter.conditionCellLessEqual}
${locale_filter.conditionCellEqual}
${locale_filter.conditionCellNotEqual}
${locale_filter.conditionCellBetween}
${locale_filter.conditionCellNotBetween}
`;\r\n}\r\n\r\nfunction luckysheetAlternateformatHtml() {\r\n const _locale = locale();\r\n const alternatingColors = _locale.alternatingColors;\r\n const toolbar = _locale.toolbar;\r\n\r\n return (\r\n '
' +\r\n '
' +\r\n \"\" +\r\n toolbar.alternatingColors +\r\n \"\" +\r\n '' +\r\n '' +\r\n \"\" +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n alternatingColors.applyRange +\r\n \"
\" +\r\n '
' +\r\n '' +\r\n '' +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n '' +\r\n '\" +\r\n \"
\" +\r\n '
' +\r\n '' +\r\n '\" +\r\n \"
\" +\r\n \"
\" +\r\n '
' +\r\n alternatingColors.textTitle +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n alternatingColors.custom +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n alternatingColors.header +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n alternatingColors.colorShow +\r\n \"1
\" +\r\n '
' +\r\n '
' +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n alternatingColors.colorShow +\r\n \"2
\" +\r\n '
' +\r\n '
' +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n alternatingColors.footer +\r\n \"
\" +\r\n '
' +\r\n '
' +\r\n \"
\" +\r\n \"
\" +\r\n '\" +\r\n \"
\" +\r\n \"
\"\r\n );\r\n}\r\n\r\nconst luckysheetchartpointconfigHTML =\r\n '
\u9009\u62E9\u7EF4\u5EA6
\u6392\u5E8F
\u5168\u9009 - \u6E05\u9664 - \u53CD\u9009\u53EF\u4EE5\u76F4\u63A5\u6846\u9009\u6570\u636E\u70B9
\u6570\u636E\u70B9\u8BBE\u7F6E
\u56FE\u5F62\u989C\u8272
\u56FE\u5F62\u5927\u5C0F
\u56FE\u5F62\u5F62\u72B6
\u8FB9\u6846\u7C97\u7EC6
\u8FB9\u6846\u6837\u5F0F
\u8FB9\u6846\u989C\u8272
\u6587\u5B57\u6807\u7B7E
\u6570\u503C\u6BD4\u4F8B
\u5C0F\u6570\u4F4D\u6570
\u6807\u7B7E\u683C\u5F0F
\u6570\u636E\u540D\u79F0
\u6807\u7B7E\u4F4D\u7F6E

';\r\nconst luckysheetToolHTML =\r\n '
\u7EC4\u5408\u56FE\u8868
';\r\n\r\n// toolbar\r\nfunction menuToolBar() {\r\n return createToolbarHtml();\r\n}\r\n\r\nfunction customLoadingConfig() {\r\n const _locale = locale();\r\n const info = _locale.info;\r\n const config = {\r\n enable: true,\r\n image: () => {\r\n return `\r\n \r\n `;\r\n },\r\n text: info.loading,\r\n viewBox: \"32 32 64 64\", // \u53EA\u6709\u4E3Apath\u65F6\uFF0C\u624D\u4F1A\u4F7F\u7528\r\n imageClass: \"\",\r\n textClass: \"\",\r\n customClass: \"\",\r\n };\r\n if (JSON.stringify(luckysheetConfigsetting.loading) !== \"{}\") {\r\n Object.assign(config, luckysheetConfigsetting.loading);\r\n }\r\n return config;\r\n}\r\n\r\nconst luckysheetloadingImage = function(config) {\r\n if (typeof config.image === \"function\") {\r\n return config.image();\r\n }\r\n const regE = new RegExp(\"^(image|path)://\");\r\n const regResult = regE.exec(config.image);\r\n let imageHtml = \"\";\r\n if (regResult !== null) {\r\n const prefix = regResult[0];\r\n const type = regResult[1];\r\n const imageStr = regResult.input.substring(prefix.length);\r\n switch (type) {\r\n case \"image\":\r\n imageHtml = `
`;\r\n break;\r\n case \"path\":\r\n const svg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\r\n svg.setAttribute(\"class\", \"path-type\");\r\n svg.setAttribute(\"viewBox\", config.viewBox);\r\n const path = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\");\r\n path.setAttribute(\"d\", imageStr);\r\n path.setAttribute(\"fill\", \"currentColor\");\r\n svg.appendChild(path);\r\n imageHtml = svg.outerHTML;\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n return imageHtml;\r\n};\r\n\r\nconst luckysheetlodingHTML = function(target, coverConfig) {\r\n if (!target) {\r\n return;\r\n }\r\n const config = customLoadingConfig();\r\n if (coverConfig && JSON.stringify(coverConfig) !== \"{}\") {\r\n Object.assign(config, coverConfig);\r\n }\r\n if (typeof config.enable === \"boolean\" && config.enable === false) {\r\n return {\r\n el: \"\",\r\n show: show,\r\n close: close,\r\n };\r\n }\r\n const imageHtml = luckysheetloadingImage(config);\r\n const id = \"luckysheet-loading-\" + uuid.v4();\r\n const loadingHtml = `\r\n
\r\n
\r\n ${imageHtml}\r\n
\r\n
\r\n ${config.text}\r\n
\r\n
`;\r\n const loading = document.createElement(\"div\");\r\n loading.id = id;\r\n loading.className = \"luckysheet-loading-mask \" + config.customClass;\r\n $(loading).html(loadingHtml);\r\n $(target).append(loading);\r\n\r\n function show() {\r\n if (id) {\r\n $(\"#\" + id).show();\r\n }\r\n }\r\n\r\n function close() {\r\n if (id) {\r\n $(\"#\" + id).hide();\r\n }\r\n }\r\n return {\r\n el: loading,\r\n show: show,\r\n close: close,\r\n };\r\n};\r\n\r\n// var menusetting = {\r\n// menu_selectall: '
\u5168\u9009
',\r\n// menu_copy: '
\u590D\u5236
',\r\n// menu_undo: '
\u64A4\u9500
',\r\n// menu_redo: '
\u6062\u590D
',\r\n// menu_paste: '
\u7C98\u8D34
',\r\n// menu_download: '
\u4E0B\u8F7D
',\r\n// menu_share: '
\u5206\u4EAB
',\r\n// menu_chart: '
\u56FE\u8868\u751F\u6210
',\r\n// menu_pivot: '
\u6570\u636E\u900F\u89C6\u8868
',\r\n// menu_freezenrow: '
\u51BB\u7ED3\u9996\u884C
',\r\n// menu_freezencolumn: '
\u51BB\u7ED3\u9996\u5217
',\r\n// };\r\n\r\nconst luckyColor = [\r\n \"#c1232b\",\r\n \"#27727b\",\r\n \"#fcce10\",\r\n \"#e87c25\",\r\n \"#b5c334\",\r\n \"#fe8463\",\r\n \"#9bca63\",\r\n \"#fad860\",\r\n \"#f3a43b\",\r\n \"#60c0dd\",\r\n \"#d7504b\",\r\n \"#c6e579\",\r\n \"#f4e001\",\r\n \"#f0805a\",\r\n \"#26c0c0\",\r\n \"#c12e34\",\r\n \"#e6b600\",\r\n \"#0098d9\",\r\n \"#2b821d\",\r\n \"#005eaa\",\r\n \"#339ca8\",\r\n \"#cda819\",\r\n \"#32a487\",\r\n \"#3fb1e3\",\r\n \"#6be6c1\",\r\n \"#626c91\",\r\n \"#a0a7e6\",\r\n \"#c4ebad\",\r\n \"#96dee8\",\r\n];\r\n\r\nconst keycode = {\r\n BACKSPACE: 8,\r\n TAB: 9,\r\n ENTER: 13,\r\n SHIFT: 16,\r\n CTRL: 17,\r\n PAUSE: 19,\r\n CAPSLOCK: 20,\r\n ESC: 27,\r\n\r\n SPACE: 33,\r\n PAGEUP: 33,\r\n PAGEDOWN: 34,\r\n END: 35,\r\n HOME: 36,\r\n LEFT: 37,\r\n UP: 38,\r\n RIGHT: 39,\r\n DOWN: 40,\r\n INSERT: 45,\r\n DELETE: 46,\r\n\r\n WIN: 91,\r\n WIN_R: 92,\r\n MENU: 93,\r\n\r\n F1: 112,\r\n F2: 113,\r\n F3: 114,\r\n F4: 115,\r\n F5: 116,\r\n F6: 117,\r\n F7: 118,\r\n F8: 119,\r\n F9: 120,\r\n F10: 121,\r\n F11: 122,\r\n F12: 123,\r\n NUMLOCK: 144,\r\n SCROLLLOCK: 145,\r\n};\r\n\r\nconst luckysheetdefaultstyle = {\r\n fillStyle: \"#000000\",\r\n textBaseline: \"middle\",\r\n strokeStyle: \"#dfdfdf\",\r\n rowFillStyle: \"#5e5e5e\",\r\n textAlign: \"center\",\r\n};\r\n\r\nconst luckysheetdefaultFont = function() {\r\n return (\r\n \"normal normal normal \" +\r\n Store.defaultFontSize +\r\n \"pt \" +\r\n locale().fontarray[0] +\r\n ', \"Helvetica Neue\", Helvetica, Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Heiti SC\", \"WenQuanYi Micro Hei\", sans-serif'\r\n );\r\n};\r\n\r\nconst luckysheet_CFiconsImg = new Image();\r\nluckysheet_CFiconsImg.src =\r\n \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZoAAAGACAYAAACUS6SeAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAHBbSURBVHja7J13mFxV+cc/M7OzLbvpjZBKQhISUgAhgAlVkADSRcDyky4iYAAhAmpQQtMIiqigYkV6FRHphgBBKSGBkB5IIb1sdrO72dmZ+f3xniGTzZR755a5s/t+nmefTGbuPec7Z8497ynveU9on5m3YJMuwNnAt4B9gA3A48CPgY0UyPxJUzN/MLMShxwDXAMcAmwGbgD+UlBKhzVn/+yqqwrVFwIuBL7tZnkyYwaK98yaNb/QW6uBk4DLgfHAduDfwI+ApYUmOnHiKC+0AowAfgh8EYgAvwF+AMTd1OlQ40nAtcB+QIMpzx8Cy70oT8U6YZvXn2x+tN8A44ByYE/gMmA18B9g7wB9v58AzwNfADoBA4A/m4c5KPwWuCdDef4X6KVVtF1yGPAx8IDpAFUBPYGvAguBucCRAdJ7CvAecA7QA+gKfB94DKgMiMargaeAQ0159gK+BrwNqLUoIUNzFPAw0C3L5+XmAXoZ6B+A7/ZNM3rJxDTgl2Y0UUwmAxdl+WwI8HOtou2OzwFP5+hERIAxwDPAhADoHQvcbxrvTB3PZ4HaImscDmSbmukO/F6rXWkYmgnAP4wxyUd/U/m6FPF7lQO35bnmMuCvQLSIOs/J8/npQIVW03bDPjaejWrgn8boFJPpRks2jgReKfLo+yygLMfnhwCDtPoF29CMMUam2ka6Y8wDVV2k73Uw0NvCdV9F1kOqiqQzX+WvQqfP2gsDkWlcO79nD/McFWuGoAJZk8nHAcBM8x2LwRAL1+ytVTC4hmawqeiFNHaHInPQkSJ8rxob156ILBp2LYLOkAu/kRJ8egEvFWgw+iPT0cXocJTnGSmkMxJ4zfxbDJ1WjKYSQEPTC3jBYW/qJODX+L8WMhuos3H9JDP876NVQnGZLsbIDHOQxt5mVqGTz9rrgTdtjtpmmhGOouQ1NF2MkRnmQh4XATf7/L02GyO3zcY944FZZhSnKG5QDfwLd9ZZJiBOBOU+f4evAAtsjt5eIVhec0oADU21qdDjXMxnKnCJz99tJuIpt97GPcOA14HRWjUUh5QDTyAL0W5xFPAn/J2OXoV4k75j455aZMr9ZK0GSiZDE0XWVQ7zIK+7kI2efvKO+S6f2LinnzFSB2v1UAokAvwNONaDtM82z5KfbDBG7lUb91Qi+2z+T6uDkm5oQsAfkSknrx6+P5kK6ycLkTWYj2zc0x14EYkqoCh2CCGbcL/sYR6XIDve/WQbsu/rKZvP/B+BKVotOjbpHiW/RNx9vZ5OeByZv32vwDQmG51DsOdJYne/TCdk09xXgUcdfN9DkE2urwGbXCjDLsDvEG+5rcCTSASENVqdA8HtwAU+5HOjGWn8psD7RxmDNRZ7TgZ2p+1CyMbjzkZzoR3izyGOSf8DVrrUFv0S2cvWgqyl3Qgs0SrsnaH5IfAdn/LsgrgTH2rzR031FC/ysXzKzSjsBex5sQGci2wa7ZXWIzzZ5vRDW6oR76NJ5v9VprE4wxie/2qVLirXIaFQ/OIu03l52OZ93wTuxd/NytOQdZv/2bzvGMRzNeWY1Aqch2y2djLqvK9Nx/prSKidc8wzprhI2PxoN/qcby/Tg7CzN+BbPhuZ9JHNWTbvmW4qcvr362xGH/sXqCOCrJ9NylKezwB9tUoXjfPM7+4nEdPg2pmOHoXE1itGRIyLbV7/VdNODGvTOXY6xf8rMs/e1AAPoc5Anhia64uU9zDsxSD6VhHL6ds2e2DX5RjNPYd9t/GQeThOymO8r9cqXTSKVfblyNRuZ4vXX4D/LtLpowarcdGGmPYhksXAPkhh671T8zzPVfi/HaNDGJo9LF77EWAlhvetNvK342s/oojlZGe387UWRnN2A4/ebNHQnqpVumhYfY5WIfu18vFzZO3ACt2QfWBW2KeIZVSB9ZhjV5A7MnQVst5rZ3PoNy0akckUL3xWuzU0b1h8OI5FNkLm4zc2jI2dDZUbi1hOG2xce6iFawYg61TdLVx7iemFWaGzVumi8YbFenQcsMLCtS8jrsxWz3tpKIHnCGCLxeusRK7ugkytWYl1dpIZIVmJUhLFXhgrxYKhud3Cw3GUMTZWuQ5ZuM/HEzbSfLqI5fSkjWuten+Nwto5GVNt5P2KVumike8EwTrEYeNDG2k+jkQZz8cyrHtxPlHEMnoLObfKTYPUC2ubYi/Cusfc+9jb6K1YMDTP5xhO1plh5GKb6SYRL7an8/Ss7Cye/gg5LMpvmhCPGatML9JvuQR/3GqVzLyU47dvBE6jMK/A35B9zS/1rH3X/GvV0DxVpDK6zsa1P8H61KHbsxdnaHV239CALGSex65TRNsQd793Ckw7bob+r2X5MU8E1tqsABOQHdfNPpbRbJvTDffZNExuPRyTsTfFp7jPDchO+LVtjMyZyFSYk9HS3VmesSuw546bRDaT3oi/02hbsrQF2XgT2SIQ91FjI/AldC+N66Rv2PwjcpLeoUjI/FkuVMTUD/d7Y1i24GyD4Xrg66bn3gfrIcwxUxDftZnfJxTmUn2jGdJf6sNvmBp16sMRDP6CuKEfjBzP/KbNDlWu+rsNcQqJIGGSbkKmo+wSM52hn5jnyM5xzIcj0+J2PNe2m05nzKbOvyPrML/24XdrQQKIvqVV2FtDkyrsVz1oCN0Ox7EDawuqIIt/PynAyHyALNyudtAwdMXbaAstZkrmHa3KgSJms/dudSRyHfamn6zMOnxq4/pTTaNvx8hsAk5w0ID/BnGaucnD3yuJzOg8o1XXG9r7oVoRJFyL3T0Os5BgnKtdqLxeOTHETfovazVWfOAi4BGbo5+V5jlyOkqYDvzCw+92HTKbo6ihsU3Kz/58m/c9jbhyb3FBQwvZ16mccpk+HIpP/BCJJmAnztl84PNY23tnhSke1fefYW/vn6KG5jO6IN50dsNU/AGZimpyUUtqnWqei2neSuHBFBXFKiHECcFuiKo3kVBJK13UkkQ2XLo5Q3A/cI3+zGpoCuVeYGIBw/ML8cbLpQ44GncW7H+Hu/P0ipKNb2Mv/BLIOscXsLa52y6tZobgPy6k9SIy9ZzUn1kNTaF80ca1CeByxDXVy0q3AZmSW+UgjaeRSAH6cCh+MNnm9X9CHAYaPdTUiERBn+sgjbdMGi36EwfT0Fhp4BIB+F5Wp75akLDgfp1YuBw4nsLOpXkDeyFJFMUp221ce5sZIbT6oKvOjJoKmSFYgkxlN+rPG1xDk8+luIlgbBq0Emaj3jT6D/msbR7i7tlo857j9eFoN6x04VnzAysRBJLIQv1Un0fahcwQrEK2LOjG5oAbmnxeH48he1yKzfQ8lWkdEjn6pSLpewtxVGix+HAcj/2D15Tg8mCekf/7uOs84kTnm3lmBL4G3FkkfXZmCOrMtUu1+vlPmc3r/4UsRl+Y5Ue/MiDfa7UZNfyT3Q9XW4as4RR7J/1LyE7k+5Aw722JmYf8Apyt6yjBYw4Su+8nGT7bioSxCQIJJAzVv9j9wL4G4HTEu7OYzEPWkv6BRDloS9xcc4mbxnvWrPmB+IEmThxVEhW+EGeAi82PNtf0aFYju4UPCtiQ9H/AOGT9ZRUyrfcY4tsflHAtTyIhzi/NUJ79kHAfi1HaIzchMdBmI7H7NpsRxEFmRBMU1iMenFORM6l2GM2HB8DIpD/rQ0x5vmnKcxMyA7M3sJ/RrJTIiAZkHva3WDsGoNisQTzKLg+wxjpjWH6t1bFDUY1sgEyav4TpfScCqLUJWey/LcDl2YRELnikBH77k5EDEsebkeG/KF50en8MzfxJU/WRd4MZM7QMFKschhy/nD6tW4XExTsL2U1/BR3wfKHUVFCxp6Y8nJK6po3BrgK+gawfTQIW6IimKI9kM4rSjvgcsh+qS5bPI8AYZOPjUbgYTXjixFFWGvAIsmbY3fzb9nWuz3Yga7h3k8VrzmEDPhwYbUYBb2L9VNFUg/4dY8hHmbZvCTKd/jNkbcxrRpL97K+eSJifw9XQKIrihH2AZ3MYmXSqEWeWI/HOA60PEl7mc0APYzScHAdebXrs1yBrjlchO/Cd0h/4K3BE2nv1yHTTneR3q+6OBJ8dl6Hhv96MJCfhvdPN2eSOF3cYMJBguLa7a2hGvVb8eHLtYvruqquCo0Wn8YLIQGTxvJeNe3oYw3SIB41gZyRK+TCPvu9Y4DkkUsA/HKTTAwlKO7jN+7XAz5HF/kvzGJvpGYxMOoMR54xvelwHBlu4ZkB7NDRhff4VxXN6Ie7s/Qvszb9s00BZ4bseGpkUEeTQw04O0rg+TwN9CRIMN9dIYYKFfD7nR8fewjWh9vgAhB1WgM3m73qUFF8CPkRCcSR9+ms1eZ6kxR84uhgj46RR39uMCjq5qOsMn75/byQieqGcbuGac5GTTbMZGysLvT20qgbP0HzJDDVTi4A3aSP3GX9GFhsjPuYZMXn+RYs/UFQjrqtjXEhrAuJEUO6StmE+lsP3HdxrdRR4DvBwlvKxEkm6m1bXYBma/mTe8zHDg+F9KfJQB81b2ZVyJObeIS6meRQSIdmNToyf+3VGOrjXztrUaYgXWUUBhqYC8UxTAmBouiCLk/2z9JAecrHHVapcgr1z2N3ieiRqg1J8IsDfkKCPbnM27kQb93OjipN1h6dsXn8iMs1Ynfae1dNydVTjEWU2H57780wDHImc7X2JawpnVgantKzv6TkTWcD1y+g+CNyi1TkQhJCoGV/2uDOzFvixgzQeBg70qUycbIb7MbKTfqCNe44xHeITkb02dgzNp1qFizuiuQsJVJmPb2H/VL72xuv4d3rf28D56GFoQeF2JBCq19zosEP3K5wdHmYHJxHdNxrDYfdY6FQsti42DI1Th4Awspb2JSRWoRuUIxs5601Z/AUY2l4NzVSblfpOZD7ZbWqR8A2fIHPMXnlxJUwet5k8C+F+vD9y+VO8P9FQsc51wNU+5neXGT0XOso4GtnJPx8JTPk8Mv39G2QH+/eQTZfFrl+LjOH42OZ9hyAef1an7pxMnU0GFiLBO59Gotmf5fB7p6ZgLwJqjCH8OhL9e3IpPRhWps5OQjY82SFqKuwhuBcpuRqYiQSi82P6YyCyw/lYJOJzIQ/brchu8G94NB1xGnqEQFA4r4DnxCkRZMf8RmSqtpDRwkU5Pu9sjE91AMp3ObJz/kUkFI1VDjDPoJeG5qtmpBFuMxL5i2k3nnbQkcg0BVuDxMo7gBKJjZZvRDMBeIDCvNN6Il43XVzSer1PRqYt43G2T+jCAhsBK+m+hRIUirWXrNw0Op1dTrcaibc2IUBlvBIJQ/NRAd/FK0OzN7JhNJylw/2AMZB2yTeLVF2Ejo0nhmYvdvfesMu+Zujnhjvm2UUsJyd5t5iRh5vxqm435aoEhz0sXrcKCf2Sj59j7QTWVAPpZiesCvH2mhTAcl6DTKPN8SDtQgzNVezuTt3WIDyNhOSxyiVkD76ZzomzZs0vD8ohbIUYmi7IoVxu7Is50WKh5WPPIpaT07zrkLUUNw6Gewbv134U+7xh4ZoNyJn1VmJZvWw6OHGL+Te49D1SI6QvBLisNyDrS28HwNAcYOGaLsiU3xAL156ETJmFLP5WnUrh4QhnEf847uxmTnENcra4E1YXsZzcyHsp4o3iZGH1Q1OOcZSgkc+9vM50uj60kebjwGUWrlsGvOfCdyhDXOWPd7ls6jwo783GGL7uYprdC7hnq8XremFt8+73sD4D9DbWPeoCZ2juxRuPsd/hbL73gSKWk1t5v2V6qYW4Im9Czm+vQwkiL5F9zrwRmT79bwHp/ibPCDaJBMh06t6e8nA6tYTKvM6MEP9TREPzQ6xPcbo9qju7VH6otoZmKvB/HuVVaXpo/Qu8fzrezMvmYw7uLro9jf2pr1bEjXUJSpC5wTw/a9sYmdQGXiejpbszvB9HTuL8h0PdISTK8lds3vc84tJbTBrMCOzfLqRVyNTZm/i3Zy69Tn2plNqDdEPzVdxZS8lFP2Nsqgss3MOQmGp+nNewAlmQPQz39xHcanqqVvku3niuKe7zF8Q1/jAzihmKHGDmlMuMwdkCbEPW6j6P83A0IVMXv2nzvv+Y0Y9fvfnO5rvOR6ahlwLvINNHM3FnDbdQ9+b7kdM7/aDFzGyUlMdpah/NocB9+HMWwoGIO+A5BfQC6pENcVdT+lyGnLORb+PVPVl6s0pwiSGHdblJ0oyE3XYE+Tn2Y+S9ifP1Rrsd4ieREFde4mTD5q+RdZhpHupLmtHTC6X2QKQMzSP4GwzzLMTdN/8I6rBm2ilxZI71NbI7XrwCXK7ttuIRl5vRsh3eMZ2jeh91nuaDkXFqaEDCAvVCTvz0gmvN6KnkCJthc78i5D0dCT7YkalD5pcz7e5fisyZt6Ao7lNlGkY7zAO+yK4OKVY2czvtLZ7uU5m40au9zCNjcCvw01KtbGG8jTJrZWTT0VlF5iCkV+LOvhtFycQEoKuN6z9C9q5savO+lViAOxxqHe5TmfzZhTRS01vPuKjLj7iJnhua85EFNj/3ZsRNnv+nzzsgXkM3ID75683rp7VYFA+xEyx2CRJBeUOBowCnbUvYpzL5lUvptJjZCDf2+PwT/73aXKcMCTXxlD53RWc6JRS7SCl5rG4c/QTZV5dt0/LLFkYcTj2kluB9nMMluOuq3Ygcq5JrDRYL5XYm7WD6vEyfN5eYMUPLQCklliFhUXKFmlllPs91FsxU05B+PsvnryOL2E54AjjDw7JIIjvy3R411CHR319DTiC2a/j89Ozz1tDMnzRVHzlF8Rcrh3j5sVfsXNMIDs6i8RjybwqsQ/YMnYl4h40w7y9FTvF8GDnfyQkPIftUDvGgDLYi3ndPelTGaxEvvVexvtdnFeJl127WaHVEoyj+86DpQWdbe3gfd6N952rQPocccfBlJGrHKmRT9XRkvdAKCfOdHvRIZxyZhrrNGLVo2mchcjs1VJM5uvJyxJPrYazHKyuUJcbYvEb+Y1NyeaKWrqEZ9dqtgRCiIyufuOqqYOnpmFOOc4AfAT/J0sP200lmE+LheGVQCidL2Pst5D6kzRMNEyeOcivJecg02jNkjorfYurFFW52MoJyhEDpjGhmVhY3//a7cVQpDjchi89XIgvdjUjssB8Ci7V42iX/RaYpT0M2dY4HtgP/An6A/aOqS2dEU8A9XZAd7d9CjkjdYIbaP0aOhu3YtF+DGEJO9fy2/u6uUI1ETE6avwQyRZTQonHEPsZYH2PK91dIWJigHK3RiETJLoWDC7+JbEAdbUa+T5myXG83IbuG5mTgj+waqmFPI+ZiYDZwgY89sj2Rk0ArkXnaKvOXel1ptKa/rmxzTRVyBvd7wJ3I/pXt+rzuxm/bTF2kfvcTkc1/urnUOocjYZ/Sp1CqkMC2ZyF7zK5AQhAp1jkN2dyY3tu7ARiFxFbc4VZGqSm1Yk9NuTi115Y7TR1M0Q85+fN4YCI215DsGJqjkIWzbDHRypGFupcR7xAvF7MipuE7H/cCgR4E/N00mBfizt6iEOLZc4Xpae1AFgSnYf9skqh5YHoCnwKLfOylTSb7/PgQJDDj17Wds8SBpm51yVG3xyBz+UfhfZTersjR4HYX2TtlaQuWIlGmH0GiTPvFOPP8VmQxQM8iUY/9iNE2wjyrDUgAUjunn1aZ9uJMk0YYcSZ4xDxnfpxHdVgbI5POIKPjTDsJWt1xOwHZvW4l8GZ/86N28bAgrjYjJy+iTfcCHjOF7dTI3IdEqh5rHuIa02i/bvRboQb4mTGAc5C9D/ONsbkO66fxOeGcPJ+fTu5z05Wd0zr/tPhsVJtrx3ioJ2Ke1QtN47hX2t8QMwOQ7S9bWzAUOdtmKd7ufWnLLXnq4FHI4XQ9PNTQ34xCFyDTys+b5/S7Fu/vaTqgtwD7me8TZed04DvAHj6UZb4D1U7B5hHSVgzNGGNk7JwhM8ZU4GqPHg6vPWQipnF32jh/M8dI8l5knSsX5UhI8KsyNE69ERfUe32oeIMs9MJ6qR3JW4bP2yynHuY56u+Rpq/gzd6UVKP5EOJp5TVVFvM50MwoeFGePUzaR7R5vxa4A1krytcxvhnYN8fnQ43B8ZoBFmZXbJVhPkMz2FT0QhqRQ5EjkN3uce9jGlk/pjic9B7yGZEQcoZFrgOTTgUOzpPOuRYqhlNCLtSljkxvMxItpIHrj0xHe2HIvT62OYwcVOg1lTbamX2AWbgfqPN6Mm98TXEpcrZUrufkIAv5HBSQOl1utyJko5fpTTux/ieZxtTNKa4ePhbmjx0aRCsN+C/JfubMEItpDEIJKl2MkRnmII29zaxCJ5e1DfXh++9rsR47YQty0qad0eVMZHrKLawcZXAhEiE6m1GMWUijWyk+BOEcD8cLDh+OFBfh7hHRW30sHyfHGFhdAAwBvyDzdGCTxTRqUYJINbJHwo11lgmIR6SbBxT6FRH4Uh/yOANxkLFKHyQszOEu5W+1Q/41xGkhmsVg5qN7ezE01aZCj3Mxn6mIa5wbzMe/0/2cjMRetHn9DHY/otpqQL1qlKBRjgSDdHMN5CjgT7g3Hb3Ip7I414c8PkEceN61cU9n0xH4kgv52/GyPZPMpxpbMTRd8McByFNDE0XWVQ7zIK+7yO/NYIUY8DufysdJ5NRbsO+K+FNjlFNY3c+jhiZYRJD9HF4shJ9tniU3eMyn8vBrF/M6JBjlf2zcU4V4iH3NYd52t0OcbO6psmlooASnz8Jteu9/RNZVvHr4/mR6ZU6ZhvinB9nQLEWm3pps3ncLO0/Ts7oPoUbb9sAQQhZ9vXTtvQR3vI8eR6aPvGaLj+W/DdlC8A8b95QBfyH7WqkVfoz9vYPHsatH76b2amjSN2z+EtmZ7PV0wuOm1/Geg3TqETfCVMTZHcYo1JmGvRHx5jrZhUrrhOcQn/MnbI46ppvfZpbF62td+F0OMRX4NRsVPt8Q/3dI5ICtSBj2nwBr2rmhuR3ZSOw1NyJ7q37jII2EeUamI8c0p/ah1LEzFE4lEoLECZsd3LsvEnVkLPacIexGPUmtldZQ2JryRuTsHrvehUcD/0aiU/s1ooki3qw9gTfMSNApnZGtFieZ+vOPdOOb+jF+SG43WzfpYgr2UPKfdZGLFjM9kYkfuWBkwJ1QNM+bwn/aprG5EXEtt4KTqbNzkfDrvdKM68kOe7rVpqJNSpueuMT08k/EflSEUuE6dl9n85K7TKfgYYedqcty/I5PFtHQnGdGh34G//0JslH2/QLuXcjO6CiDbdw30bQTj/hgaL6C7Ozvl9bGnWmjrcnWUX2CnbNVVYiH3anGgP43bH7MG31+IHshi3Be7A24HplacwO3Trd7yRS43fSO99jQTEeiF/Rq0zN5Eti/wDQjyDrfpCy/+zNA33ZoZM7D/6O4I8BfcWc6ui01pvE5xoW0Cpk6G10EIwOynODEcWk54slmtxM9AevbKQo1NNcgZwb1S3uvkzFwBzuog/dnqYM9U8972DTMxWAYEqrCTaYi4dfdws1jVF9F5o4bPGoU7HIMO9eCMo06n8O+e3sI2QF9Up5ORrHqnJcU6zuVA4+aDoKbsw7P457rbyGG5iKKd4zJN3G2Z2mFKbuPCpgJsEIhLs4HI+u/2fJ9jsLc8O8i93pkL+AHYazvfv8IcS3Oh52T1I50sXJcnaMgnUwruMlMY2zcds8uZI0m3znuvcwUgJ355pvJHxEBvN+RXgysPkersLb29nNkethqD3e8S9+juxmBu+mWXYih2aeIv2UFzjdBf4qsI8/1QF8hI5qryb1Bv5DOpdVtKyeHkcUgKw/HsViba/2NDWPjVkM+BXENdhsvjguYZYyNm1FYC5k6O9TCNQOQ9TQrPahL2NU1OxedaX9YeY42IJ5GKyxc+zLiymw1QrcbI+XeJt8DXC6bQgzNpiL/nm7kvx6ZUnrXZW3dPHre+yFLGr0tPu9WO/a9w4iXTL6H4yjsue5dh4Txz8cTLhT6Fab3ZwerD2+jR5X4ddPguGVsCjE0Vr2/Rpk/K70bq7THc1byPXR1iCPEhzbSfJzsC/XpLMOZF2dqRPYq7m7UdmJonijib/km7nhipQzWUbi7HaMQQ7PW4nXDkDiPVgyNVf4RRuZib87xcEzG/kFmScSL7ekc12zE+eLpZUhkVDvUYX0+vdHDyjzbjBK3upBWIWs004v0EC/B+hEJpcRLOcq0ETkTpRBvu9+QfS0t9ax9F2fhZAYaI2N3usrq81HI6OARZCG5GHzf5fTqgC8iWweKZWhuxr+QQ+ksBS5Pzdldj3jNpJ+SuA3ZA/JOgRnEzdD/tSyjpBNtWNlsFvUX2AsTU4csgltdpHM6tRdBDgSbgUwnXofENLsI2czZz7zvtAIUskZzH+5551llg+m4tNfTOG8A/q9NvW5E3EdfdjhaujvLM3YF9jYntmUIspPebjTj/2F902ghI5qkMc434e802mbTCXSbejOL8aILaRViaB5Fjhvx+3k/Dlid7tXxR8RN7VDkZL1ZOD8LvhGJI/R7Y1i24M7GvQvMg2fXyBxnHpBzLN7jZI0mjIT4ONmHH7RQ9+YbkUV/P4IepkbHS2jf/AVx705tiHvTYYcqffS+DXG2iCCOJTfh7ATO4abhs3vMxCzzPFsdmRY6ao8BPzAdoj7YC2VzpBkNRm3csx3nRz53ZvcNsFvTOpNuhOMp1L35DvO8f9+H5yDV9i+B3d0HW3A/JEUdsoPfLQ4yFciOkalH9qTMtjkCcDJ19nWfjIwTQ5NqwLribVSIFtM7fYeOQczFaZL0Hv515J5Gs0NPJEK7XSPzimlAttto8JyGoIkjXlxWOcN0RO0YmU3IXjcnhjuMxC87wuP65eSolOvM836Jx8/7yellWYqHVV2PPf/6BmNk3iigYXZiaM7zsUycxDpLGq1Pe6QtbtJ/GSVI/ABZm7HDv81IJjXSt7qfw89YZ99GNiXaOVr8E2R3/lsO8z7NByPjZEST3rl80CNtqfbkxbYWuNSws/em0fRSZhU4AnCyRrOfj2VS5UIP5GwPeuGpSn2/tuuB4xSb1z+NbMRN73wFzdDcaEYydsLofwB8HljgQv6n+/Q9dzi8P46sJb7ggbZrMz3vpWhorM5xNpqRzEwHIwAnazRVPpbJHBfSSM2pznNR1604C/qoeEc/G9c+ikx/txTQs64HWj3+LqmI2XYjWs9CYpOtdknHCJ9+u/tcSKPFdDbecvl5z7ifsRQNjZWGsNH0vv7j0Ag4MTQrfSwTt85lr0MWMd1YsP8d7q0nKO5jdc3jfsRDMlOUAiuGxg+PscsRT067I7RjXR5thXz67e52KZ1UZ9yNzuX9uZ73UjQ0v87zeZOx1C/luMbK5rbN2Ntc15YXfSqPjTiLvNqWDeYBXOUgjaeRxcYkSlCxcujZH5AplmwbnK0cK+3HtJndEzL/gKynNLmsww+Pyg+Aj11Mb7MxNssdpPFPZF0m6ZahsdJwJHwYNv4xxzD9FPLPPf6N3HsPms0D5sQZ4Kd4u+ET0wCcj/uBOpebyldIb/QN7IVOUYrD9DwN1m+QUO+5fkcr0y7/8+G71Nn83hd6VD+9jmaQwJu9MKkQY4Xsb3sL2SeWMy6fXUOTL0ZTE95vxkuaxvUbSCiXTUbXn5AF+OctNtCnGGPyH2Og4ubBuxeJYup0V/Ji0+Bu9qgc3jaVwytvsXnYP9pgnjFQjSi5WOnCs+aUTchRDq9m6KxdieytytexvN70sLOxDH+OILHSwCeQKbYbPBxpP4Q3mz1TMxdnWmzfCh2NfcGm0V5iRpN5n3e7YbjvJ/d+i8dw7hFh1dj81fw56R38xfx5xdPIPoXhyL6FSmR9qFva667m39TrSsQrLv11F/N5Ajnk6gfY21dQKG8ha13PWpgmWWWMTB1KPh4Evpejo/c+7jpl5PrNjjT1c7QZGb9pY4S8EdnXdoVpBEchHl9LTFvwM9wJsZSPBxC35mwRp1tMx/QhH2YYjkcOEjyMXffxhMwznY1OWZ6xpUhkiEdwP5p8W+aa5/1f5PfMTdUdSwMLu4bmX8gi74VZpluu7LBNx8ysznCNuOMVZl3HYc1upvgScirffWRe/I2ZxukCnK3r7MpVVwXr950xw83U5iCnwP4kw2dbzUjbTxaZv0JoQryNbi3irxNHNmlmOlOlHjmW4iWftGzBvmNCoFoyxMPw76aDm+l5fxuZVbL8vBdysNDFSNjrS4CRxqI9ZR6cjZ59fXcbT8UeTyI7wr9qfn//fvf2y03I0b9XImfJNJppkR9iP4itIiP8CWZ09Q1gr7R26n0tHls8i5xDdZYZKY5GplqfMbMptiNbF2JoUmeJJNv0KIo1YvAH7w3dMchRq4cg6zo34O20nl3qEI+/Xwf8IQmZEfe3kWjEG5Bw+z8OoEF8BOvnxLvCxImjaMf4Prpqx+XZgMSodOUUZLuG5mTE4yt9CmVPZPf3xchC2AXaI7PNT4xhSdEJ+DMSWdfdxdTUFFD7Ndy/bTN1kaqfJ5oer6vOKu284VZKnKDUTzuG5ihkITrbonA5sgD2sumVr/JB/56mMU5fVK80hjD9db5F+Bpkb82diNtzg4+/wTfbGJl0piEB9K7A2z0pIeBck88+iEPHayZ/u2eoRJFF4Z5mOmMR/rk6Tyb7/PgQ5IC8r2vzo42jEkxDM8E0wFY2aPVH5vgm4Z0HUgj4pZkecWvT6UHIAthGMyp7yofyL0c8VHJxGRJT6lxkIc6LsrzPGLx0YzEZmc67xOLwucYYpgvYdRFxPXJu0G0+GJx8xz+cbvTt0EdfUfzDSiM9xhgZO6HoxxhjU+2R7suREzy9iGzQE3HNPMyH8j8Ya+dzfxVZZ/Aifto5bYxM247IvcgZKPkM5gvIZrK2niq9kU1y9/pQnoPyfF6FnMehKEqADM1gYzAKeTgPRfzbIy5rDgFXe1wuEWQPgNfYCe9/IhKmvavLGr5lobx/bQx7Nk41RjMX52L/7JNC6oYbnStFUXwyNL1ML7W/g/RPMo2Um8HmhjrUZJUDgT08zmM29qYXJyFuxn1c1GDlnPjUVOXlWT4fYjGNQfrIKYoamhRdjJEZ5kIeFwE3u6i5t4/l82OP099sjLGdHb/jkfDmg13SYNXxIYSstWTalGs1OGGtPnKKooYGZF3laWCci/lMxb2jQ/3cC3GWD3nMRDz61tu4ZxgS5220C/nbjTI9g92nLq3GNqvWR05R1NBEkXUVLxbC70KCTDplCf6ccZHqxfvBO6bMP7FxTz9jpA52mPct2PcO/KnpPKSwem6PGhpF6eCGJoRsxjzJo7wiSITloxymk0A25fmBn1GIFyJrMB/ZuKe7GZEc4yDfpWbkZvdsjlvYedCR1am/Gn3kFKXjkb6P5pfkjszsBuWIm+6RWDt8LBs3mxHApAAbmsmmPIcAFTbui9rMpxMSg+iryJG7hfAccmzCEzZHHdNNHZpl8fpaF+rPIcjG29dcGtl2QQLFnogEtHwSidSwRpsHRXHX0PyQ3O6rbtIFcdM9lMJPpGtEjhz+MuIyu8O8V4ccWrYdWRM6zaHWQsJyh9g9DIrXlJvR4gsUvkn2eTOafdqmsbkR6yd8Opk6OxfZ9Nkr7bc5md3PU7FDNbJHLNVhqTL15gxjeP6rTYSiuGNozsOfw4nS6YUcOXAohceeiiE7+TPxfReMDFhfe0jnWxQnTHgnZArsHgdpvIQcdvZPm0bheI8NzXR2P4+8sxl9HIVE6bVLBFmPnJSlfj4DjAXWajOhKM4II6fkFYNhuBQZtA3fwz136kKmzr5VxN/z2y6k8Soy7edFvLdC1miOyWBk0kfHz2HfDT8E/Irc65G9ivhsKEq7MzRWNyV+BMy3cJ2dEN1Huvx9pgC3u5heIYZmRBF/z5EupTPTGJt6l/UVskYz1cLo+GXsbeK92WKH4FRtIhTFHUPzhoXrViHn02+2cO1vbBgbN48mvQKJzusmhegr5pknbobAn2WMjZuBUQuZOjvEwjUDkHW/7hauvcSC8UrRWZsIRXHH0OQbAWxA5sHthP2/DmsuyE+49D2+A9zhQfkUskbzdBF/zyddTu914DgXjU0hhsaq99co8+d0hJTOK9pEKIo7huZ5sq9p1Jlerd2DzJKm8X86T89/ugvf4RLENTtkU58VCpk6+xHwcRF+yyYkTL/bzDaj2a0upFXIGs30Ij0bS5AjBRRFcUjKvfl682C1dR89Bdm1XghxJBLAc+zu2bMB+BLOPXouBO62aWTqTONlZS2nEEOzATm/ZwbiJuvXUZazKXzaLoIcFzAe8ebbhriJN6S9vhXZpOkkWkIhazT3IVNj03x8LjaYDtYGbSIUxT1DAxIV4H7E5bgrMkfvdL2h0RiU3yP7Erbg3oa48xBXXrtGZjLW5vJTxrYQ1iMnOV6ARFq2c5LpZcB3beb3CYW7VIeR83dO9qG+FerefKPpAF3qg8ZUHVmizYOiuG9oAFpwtgEu24P7ZZfT/Bqym9uOkalH9nu8ifWYa9sd6twBrLB4bcgYYLtG5gNkHWV1gRq/7pORcWJoUga4K95Gr2hB9l+9o02DonhnaEqB/YE/YO8Aq+3GyLxhs8HzK9ZZxIzOzrd53yxkL8gWhyNDv3AS6yxptNbiTTy+uEn/ZW0WFMVdSvG0weuQkCtWaTRGZlYBPWs/DE0VEv/NrpF5Glmk3+Iw//18/O2cHkXdYkajr3mg7TJk6lhRFDU0tgJpNiJrQzPbvN/J4v3bPP4uXdgZY8wOf0CmeJpc0FDl4283x4U0Uut+81zUdSuy/0tRFDU0toxEI+I1l2kvhNWNeNs9/i73AhNt3jMd8baLu6RhpY+/3QyX0qlDgqq6sWD/O7KHuFEUpYMamrkWrmk2Pf4XsnxudW3Ka0PzRRvXJoDLgRuwvg/ICi/69LttxHqUZytsQKYOVzlI42lkH1ZSmwJFCY6hsfJAJjzWfFeez1uQGFX/znGNlbNwNgMfevxdrE59tSD7XO7yQMNP8X4tKo6sQbkdqHM5sv5WyLk0byDrPXFtBhQlWIYmn6tuE95vcnsAme7IRIMxMs/lSeNhcoe/aQb+z4cG2EoInpRb9kMeaVhsGtzNHqX/thl5eBWaZx5ytEGjzXuOx98TVBWlw2LXvfl+cu9jeAzZO+I1FyFuqJcAo02D8Qqyc32BxR72Gch+nHMRl+lOyHrF86aX78eGvelGR68sn68zjajX+zqeRnbfDwd6ItEMqpCTLFOvu5p/U68rEe+99NddzOcJY8x/AHzqQzm+hThUPEt+j8RVxsjU6eOvKME0NP8yo4kLs0xjXOm6wplZI7g8aP4KJQH8xfxZ03FYc/bPnypo0/pqTr47ddBYW2OzDPgiT11q3+AdVlB5NOKOV1ixeAn4ChKypluGz2PIZt0LcLauo3jMxRdfHBgt99xzj/4gRTA0ABcjJxpegpx/sgF4CgkmuVGL1CZPXfo/Tr57HHIq6KlAD9Mz/w5PXaqnO9rjSTOy/aqpp57Xz1JpFLXxVkrF0NQg0zhHIsEX+yLOAT2R6Z8DTI/4FdNDbyjSd2qrcwgypQMyXbI8cDqfurStzkmm0fROZ67RWWlTB/za/BWDPZCp3QPwbo9SEzKdei+FxwwsFZ19kaC/JyKH25UhzjG5PEIbzAg2E0l2j0QeQyKuP4Ksm6oXYhEMzTDgWmTBONselt7mb4LpSW5HFu1vw8Jax/xJU934Lp7rdIlS0VlcZswoRdWnIFOxtT7k9SXgKiRW3VPtVOcYxP2+d5v3y8m9FtetAJ0HA2eZTt2ZqKOIq+TyOqtEdkx/iMxrd7KRbidzz4emcfQyVL7qVILAvsiaYa2PedYi3oj7tkOd5WZ00dvn3/EE3NtYrOQxNEORhdNrsRdXLFNlucakNcwD/apTCQo/ACqKkG+Fybu96TzJPDfF4EJkmk7x0NDsjxzhO97FfMYjQS33dzFN1emuTsUZRxUx7yPboc4Di6gzQqG+m0pG2q7RDEM2O/byIK8+Ju1Dcb7OoDrd1ak4p6edi+NlYbb0q6KuTyVNtVGSYQgloKo+Rpd1zXT7tIlIq+UgG7280llR1srofqsZ0WctvWrqiYQTxBNhNjTUsnBdXz78dE92tJZ5odPW1F6nUIgxkQj7lpWxRzhMp1CIeDJJXTLJikSCD1pbmR+P2wlb0kWrtDeGpgp41KNGMb2iPYYsvBUaeVh1uqtT8ZGWqggrxnRl3dBaEpHdz+3bQhWfjuhMOJ6kz9J6Bs7bSnmT/1FyOlc1ccK+7/P5oUuIRjLnf8TwBcTiEV5fOox/fjCObU1VvuvsFApxXHk5R0ajRNt+GArRExgaiXBkNMrmZJJnW1qYFYupW5nPpE+dTQPG+ZDnWJyd/6463dWp+MSGwZ14++T+rBneOaORSScRCbFmeGfePrk/GwZ38lXngYOWc9NJj3PE8IVZjUyKaCTOEcMXctNJj3PgoOW+6hwdiXBjdTXHZjIyGegeCvG1igqmVFXRORTSClkEQzMUmOJjvlMobDFbdbqrU/GJT8Z1Y8HE3sTL7IUXjJeFWTCxN5+M6+aLzi+NncP5E2dSUdZq676KslbOnziTk8bO8ccYlpXxnaoqagswGCMiEa6tqqKbGhvfDc1UsNQpcIuoydMuqtNdnYoPrN6nCyvGdHWUxooxXVm9j7fLBl8YOZ8Tx7xPoc1vCDhhzPt8YeR8N+RkXfjZOxLhm5WVjs446RkOc1lVVS4XUJ1dc9nQ1CKbB/3mLOwt+KlOd3UqPrC9WznL93NnNLJ8v25s71buic7+3TZz6n7uxG49db93GNDNcTDwjPOFFaEQ51VWFhQ7qy17hsOcWpHV03ub1l53Dc3x2Ns86BadTN5WUZ3u6lR8YNkB3UmG3ZmiSYZDLDuguyc6v7z/25SF3TlKqiyc4Iz93/ZE59HRKN1dnPI6IhqldzisFdUHQ3N0EfM/2qNrVadSdBq6l7O1r7ueWFv7VtHQ3d1RzYBumxnZd42raY7su8aNUc1ujdWR0Wjg01Qyl/PYIuY/1qNrVadSdDYMqimJdA8c7I23mNvpDotEPPEW26+sTCurD4ZmaBHzH+rRtapTKTp1fSpLIt29e6/zRKfb6Q6NRDzR2S0Uood6oHluaDoXMf/OHl2rOpWi01xbVhLp9q71Zt3b7XR7e2gMdJ3Ge0OjKIoHxMq96YHHKtxNt1N5iyc6O1U4OtV9t8WtMg8NTYa0m7UGu2toiunGt82ja1WnUnQicW+2YkRa3U23Je6NQWxpdTTy2s3jwctAPK3J3cp0h9Zgdw3N0iLmv9Sja1WnUnQqtreWRLqbt3vjje92uhsTCc9+q01J3Z/ptaGZW8T853p0repUik7N5h0lke6KzT080el2usvj3oxp6pNJNnhoxBQxNC8VMf+XPLpWdSpFp8dKb04D7rHK3XTnrBroic73Vw1wNb2F8TjbPRh5zGlt1XgzPhiaZ5Ez6f2m0eRtFdXprk7Fa0OzqtH1EP/lTXHXDdjcVQPY2lTtappbm6p532UD1grMisVcTTMJvOpymkpmQ1OPnCHuNw+YvC2PcFWnqzoVjwklkgx6f4uraQ56fwuhhLv979ZEmGfmunuixTNzx9GacN+p9d+xGPUujmr+29rKKp0288XQANwK+GnWY8BtBdynOt3VqXhM3yX1dPvUnTPpun3aRN+l3vQlZi0Zzodr+rmS1odr+jFr6d5Ok8kYIHZ7Mslfd+xwZaprUzLJQzuyrnepB6cHhmYJcIeP+d4JLC7gPtXprk7FB0a+tp5OW5ztVem0pYWRr633LHh9Evjda4ezaquzSNOrtnbjd68dTjLpeM9L1uHQ+62tPObQ2NQnk/yqqSnXmo8u23hgaEBOafTDa2kuzk+uVJ3u6VQ8piyWYOwLa+i6rrA9gF3XNTP2hTWUxbyd4mmKlfPzF77IwnV9C7p/4bq+/PyFL9IUK/e8TF+IxfhTczOFmO9PEwlub2riU50yK4qhaQJOBzZ4mN8Gk4eT1UzV6a5OxQ9j05Jg3xfXsNc7mylrSVi+Z693NrPvi2ss3+OU7S0V3PnSsTzyzoE0tlgzGI0t5TzyzoHc+dKxbG+p8K1MZ7e2cmNjI/+z6DXWnEzyj5YWbm5sZL0aGX/rf5v/LwGOQ7yX+ric1zrkvJQlLqSlOt3VqTinGcgZ7TKUhD0/qqPvknrW7VXDpv7V1PesIB7d2d+LxBLUbtxBj1WN9FnWQMTaKKbZTZ2JZIgXF4xi1tK9OXjIUsYPWMGQHhupjO5cdmyORVm+qSdzVg5k9vKhNMeibuu0tEayMZHg983NPB0Os19ZGaMjEXqGQnQxscu2JhKsTCT4MB7n7dZWmqw7EmzXKu2doQF4F5gIPIZ7Yefnmp63m42i6lQjEyTmAAdbuTASS9Bv4Tb6LZS2NFYZIV4WItKaJNocLzRv13U2x6K8umgkry4aCUBtZTMVZTF2tEapb670Wucb2DjIb30iwb9bWvi3O79lE7BQq7R7hHP0xCcAt+PMeypm0pjgUaOoOpWgcG+hN0ab41Q2tBZqZOzmXbDO+uZKNjbUFmpk7OZ9D7C5SL/lfeh0tC+GJjXMvRYYDfzeZsE3AX8w916Lt5FQVWdbrrpKa7b//Am4vwj53m/ybm86NwKnAVt91vkOMFWrs7tYCa+6GLgQmAKcCBwJjAeGAF3NNVuB5WZo/ArwDNDghsBRoWlWL10MXDg/Oc2WzlGhaZZ1znenzItanopnJIFvAP8Fvmt+Ty9ZjrjQ3409V9xg69y1k/QfYIx5Vo5G9tZUA7k8DroChfhWrzYjmVutdAJnzZofmIo3ceKodmFo2lbS9L9ElveLhjEcD1Kc3fl2SNc5wlTwY035zQKuBpZp+11SJIBfmr8eQJe2F8Sj4fDy/bqNbexafmhrNDwyGQ7tmQzJdaEkdaFEcnVZLLGgemvszSHvbX4/EsvoHlUHbPJSZ2U0Fj51/Dtj9+y69dDKaGxkWTixZziU7AKQSIbqWhPh1c2x6II1dV3ffOy9A95vjkW90AmwCsg6RL+npiYMHGgM0ThgEJDaDLQF+AR4H3j5rqam9z6IxzPF2on50JGzrNN0AtqVW5wVQzPMTNecDWSL+93b/E0ALkY8Nh5AdqsXey3hOGTaqRm4FHguYL/B54Dn0yodwKnAJOAY7C2gKsFhU3oj+9rXhnQz9e9CIFcQsPHACXW9K1kzvHYF8Dvg7kl/W77FD533fPXPtnTu3Xsdh+298DOdF9//f1v8KNx7amqs6pwAnAlwWVXVTp0NDVt8qge2dQKf6TRGqOQJ7TPzlmyfVSIbAaeQ4RAii7Qgu9Z/RI51hfmTsk+JjnrtViffr4cZFaSOON5mpgoKWmTMpbPAdZHPAS+wc8qsLRsLNjYzZmhT78cIOn/9DAHfBm7K8TvnYyvwA+DXuXq6OevnzMrA6OSwZifPkX86czxDFqbOfNNZClNn2ZwBhgJvmpGMk22+5cA1Jq1hRfh+J6UZGczrEwM0knkhTyXsaa4Zr016SVIDPAH8ykFjg7n3LuBxk6bqVJ0lRSZDsz/wusuN23hk3WF/H79b1Bi5tlxOYYuFfhsZNTalzWDTwTrZxTRPNmkOVp2qs5QNzTBkDaOPB3n1MWn7NbK5FBiZ4f0DgHNKxMiosSlNepnfa18P0t7XpN1LdarOUjQ0VcCjHn+RXsgO+SqPv1dPZF0oG9PJ7SIZJCOjxqa0iJg67mWHahgynVKmOlVnqRmaaYjbndeMxftowz/O05gPAr5TQkZGjU3pcC3iMeg1E8k8Naw6VWdgDc1QxLvML6Z4aPn3RVwJ83E90L2EjIwam+DT39Qrv7je5Kk6VWdJGJqpyOK5X0TxLszDnRaHlt2AG0rMyKixCTZXIzvX/aLa5Kk6VWfgDU0tshnTb84iy3GtDjgF2XlrlW/jrSeHF0ZGjU0wqQTOLUK+52JvzVN1dkydRTc0x5N9x7+XdMJGGHALVCCRje3ec3MJGhk1NsFjMrvu2fKLziZv1ak6A21oji5i/m7mfRmwd4EjqwNL0MiosQkWXyiR50h1dkydRTc0Y4uYv1t590FCNRRCqICRUC729tHIpBub54G9tL0vGsU09ONUp+oMuqEZWsT83cr7JofD1yNwLzTNz3w2Mil6IRGgleKwdxHzHq46VWfQDU3nIubvRt7jgfNcSOc23NkIVcyh9LHa3pd0XfYjb9XZMXUW3dCUOne69D1GuWSwikkcpSM+S2HVqTqD/nBsK2L+TvP+MnC4i3puxLkH3vNFLM8Xtb0v2brsV96qs2PqLLqhWVrE/J3kXYlMd7lJX5xvhLoa2FCEstxACYamaEcsL2Ley1Sn6gy6oZlbxPyd5H0l3px3frUxOE6M57E4P8LWrpE5EjkOVim9uuxn3qqzY+osuqF5qYj5F5r3HsD3PdJUg0yhOWEO4hTgh7FJGZkPta0vKi8XMe9XVKfqDLqheRbYXoS8G03ehXAL3p44dx6wTwkYGzUyweEfQFMR8m0GnlGdqjPohqYeeLAIeT9g8rbL54BveKytDHf2pHhpbNTIBIttwMNFyPchoE51qs6gGxpMoxrzMd8YhS3kh4Bf4M9RzCfhjkebF8ZGjUwwuQVo9TG/1gI7RKqzY+osuqFZAtzhY753AosLuO8s4FAfdf7UJaPmprFRIxNcFgJ3+ZjfXcAC1ak6S8XQgJx66YcXw1wKP2Fzms/lcyBwpktpuWFs1MgEnxuA+T7kMx9n5ympzo6ps+iGpgk4HW/3gGwweTQWcO9eFCe2z624F6zSibFRI1MaNAIn+/AcnVzgc6Q6O7bOohsakCm044B1HuS1zqS9pMD77y1SGQ0G7nMxvUKMzXo1MiXFEuSsEC8anQ0m7SWqU3WWqqEBeBeYiLvTaHNNmu86SGNCEcvpEJfTs2Ns1gNHqZEpOd4BPg984GKaH5g031GdqrPUDU3KMk9Azmlx4o0WM2lMcMES/7eI5TTbgzStGBs1MqXNYlP3Z+DMK6kV+LlJa7HqVJ2lRq6w+M3AtcDvkRha5wDVFtNtAv6OuDC7VUAXAn82lj3kU/kkgdfx7kzwlLF5EejR5rN1yAl6rhqZiy++ODCV75577ukIxqYRCWt0DzAVOBvrZ703IfvNbvWhoVGdHVNn0Q1NunW+EJiCHA52JHIGzBB2HvC1FQkuNwcJi/AM0OCy1mXApHbYEM0BDjIjv6ONcXsOuA74WAcF7Wp0cz7wXeAEM1Idl+U5eh8JbfIs/kfoVZ0dU2fRDU3bHn76XyLL+0Vj/pMbaswPmm4Qu5iP69oYxH+OOqVXQzF0zjr1/Ew6Uz2eo5FoDZ/pnPjEHxqKVKS2ytODDkZ7IxWJ40HVqTo7CqF9Zt6S75phyBTa2Vg/q2W7GfrdhoW1mfmTpmb/8KqrrH4Xz3UyY4ZjnbNOPd+RzolP/MHaWlcWrTamzjwvzw4ydaYoHZ5cI5pKZIPkFKDcZrqdgAuQmGR3Aj9C1ny8IBA6Z516vi86Z516fl6dEyeOKvnyVBSl/ZDN62wo8Kbp0ZY7SL8ccSR40/SQ3UZ1dkydiqKUuKHZH/G0Gu9iPuOBWSZtt1CdHVOnoiglbmiGIR5PfTzIq49J240erursmDoVRSlxQ1MFPAr08jC/XsBjWPcnz4Tq7Jg6FUVpB4ZmGuLf7TVjcRaFWXV2TJ2KopS4oRmKeBn5xRQKm0pRnR1Tp6Io7cDQTAWiPuYbNXnaRXV2TJ2KopS4oalFNuX5zVkmb6uozo6pU1GUdmBojsf6zm836WTytorq7Jg6FUVpB4bm6CLmf7RH16rO9qNTUZR2YGjGFjH/sR5dqzrbj05FUdqBoRlaxPyHenSt6mw/OhVFaQeGpnMR8+/s0bWqs/3oVBSlHRgaRVEURfHU0BTzJLdtHl2rOtuPTkVR2oGhWVrE/Jd6dK3qbD86FUVpB4ZmbhHzn+vRtaqz/ehUFKUdGJqXipj/Sx5dqzrbj05FUdqBoXkWOevdbxpN3lZRnR1Tp6Io7cDQ1AMPFiHvB0zeVlGdHVOnoijtwNAA3ArEfMw3BtxWwH2qs2PqVBSlHRiaJcAdPuZ7J7C4gPtUZ8fUqShKOzA0IKcf+uENNBfnJ0Kqzo6nU1GUdmBomoDTgQ0e5rfB5NHoIA3V2TF1KorSDgwNyFTKccA6D/JaZ9Je4kJaqrNj6lQUpR0YGoB3gYm4O50y16T5rotpqs6OqVNRlHZgaFI93AnA7TjzSoqZNCZ41KNVnR1Tp6IoJURon5m35Ltmb+Aa4Byg2mK6TcDfEVdWS15G8ydNzfzBzEprOT51qTOdJ99tzRvqsObM7191laXbZ516viOdE5/4gzWdM2ZkfPviiy+2Wjc8/93vuecefQKVgp4j38jyHCn2KLNwzWLgQmAKcCJwJDAeGAJ0NddsBZYDc4BXgGeABl+/iRiKC3nqUns6T77bV53GUFw469Tzbemc+MQfGnyuG6XxuyveYLWDZ7UjpqihaVecfHdJyJz4xB9KpUQbkAgCD+rj0mEZCnwPmAz0BdYD/7YzY1EghwJTgdHARuBfyF6srS6lvwdwHXAS0AP4ELgBeEF/cv8NzTDgWnJPofQyfwcBFyFTKPcj8/R+bdBTnRbQ6SrFJieYTkZN2nv9gfNNHf4G8KgH+U5Cgq9Gzf/3Ms/DhcBpwFsO0z8GeDhtdI5J/1/A4cDr+tP7Y2gqgRuB7wLl5r1VSEDE2cBCYLN5vzswAjgYON5UxAtMJbwT+BHg1Zi6ves8AdjTR52KDUa9dmug9GRd6yyM4aYxztYhqjIdoI/MaMBNbkwzMun0A140z+9rBaZ9LPCk0d+WiOkInqS123tDMwx4DBhr/j8LuNkMlxNZ7nkD+CPiyfZFMySdiCwoH4ds2HPbAymfzu7AZaaHAvAf4K4A6gxKeSpKOt8nvyNIOXC9Gd24ybgcn9WYkcfxwEyb6X4BeCKLkUmxj/707pLJvXl/0xCOReZCv2aGsf/K0SimkzDXHmbu3WrSmmXSdot8Oochi9TTkIXsI83rOeazoOgMSnkqweeL5ndvMqPfv5hRuVcca6Pxdpu6PJ93Ms/FUTbSPBJ4yoLx3KRVzVtDMwx4DugDLAIOMEPjQkiaew8w00J9TNrDXBoh5NP5B2BAhnsHmM+CorOQ8lzksk4l+HwbmWb9PDIN2w34OvBfZGrVC/aweF0vD/J+0cI11cA/LBq6wxGvSCuu+s9rdfPO0FQhi3q9zJTMJGCZC3ksM73xJSbtx/IMW/NhRedgk2c2DkPcdIuhM4TsUdnHvM5HCBiFeN6ETRqTXNSpBJ9LgV9lmYHYA++OXggV8Tv/FGixaGyeMqO9XM/7sxaNzFZkel3xyNBMQ+ZF65A1gPUu5rPeVIStyLTPNAdpWdFppZc/tAg6RyELp4uA+UholiE50hgCvI0stH5g/kaZtCabtJ3qVILNd0zDl6vRP6Edfu/FwHlmJG/F2DxpnrO2TLJhZFqBr+JtgNkObWiGIhvzUhV7qYt5VCOLd8uQhXlMXoVM+VjVWWEhrYocIzAvdIaQRcgRadeNRxYzh2ZJYya7rsPsY0ZJITOi+Y5DnUqwuRz4pYWRRXU7/f73I1OGVoxNpTE2x6e9N9EYmU4W7o8jDg16zLiHhmYq4ko4i8LXENrSHXgE2Gb+/o3sHp9l8irED/P7HujMVsHd1jkMcRdtS39TLkPbGJlXybzQu0+aUXGqUwkuVyCu7Famr95qx+XwW+Bii8amwnTmvoSsZT3Lrvt/8hmZR7TaeWdoaoGzzf9vtviDWjEyLwBnIH7pIcSD5QkgFVztbJO3VbzQmY2kyQPgLJd0xnPcMyDN2Aw1r/vneTDa6rRbnkpw+S5y8qkVIxNH9py0Z36H7COz4qVZbkb9z1p8HuKIN+fDWu28NTTHm6HlajPqcMvIZHK9PRBYaf6qkRhaVjnB3OOWznz82+js1GY4XqjOZYhrdT5j8wqZveVSvMeuzg//LrA8Fe/oCQwke3T0XEyxYWSSprf/Ugco0/uQNZu4RWPT2aKR+QYaXskXQ3O0ef2MxR5DoUYmvRKk5kGPtJH2US7qtEIiTefRLuk8A4kGkMvY5DIyq4Azc+g8Uqt0UdkfeBNZTP4EWMPOdTQrXAn83Eb9vIBdXfXbO38GzrVobKwYmW8i0cYVHwxNarf6bB+MzErkMKw3zf/H2UjfLZ12eLNN3k51LgWOyGNschmZI8gcDaCQ8lTcZTQSEuXgtPd6Ix5j+bzGAK4GrMakTxmZ+zpgOf/VjEKcGJu4GR39Tautf4YmtQi9oM1nZWSONVSokakHvowcirXIvLeXDa3ZdBaKlTWeRW3ydkNnIcYmZWSW5tG5l1bponET2b2/voPsg8lmbL6H7Bux2khegIQn8ppkQMv674gbciHGJlV+f9Eq66+hSc1lpkI+9EHcBOuQEPF/IfeimhUjsw3Z95Hyjtli/u1sQ2tbnblYa+EaK/uEvNJpx9iszGNkCtWpuEu+UCjfBu7OYGyuQaJyW20kz/fJyIBM/VmhGPtOHkIcYOycBJtAoj//Saur/4amLY8CJ5veWTkS5uJ5oIsDI3M8/obdnpun8m8E3g9A+Sddvk4JNpcAv04zNlOxvqs/Nd3zZx/1Wg3F8mKRynMJsN3m85bQalgcQ7PNvO6C7DqfmOG6g5G4Wl1cMjLd0j63SrrOfMTIva/kWos9Ia90plyYB1hIbwCyp2Yvl3Uq7vKyxeu+hewNuY6drv5WjMy5+D/dcyv5j6NoYaeLvZ+MN+1PVxv3RBDniXO1uvpvaFJTMiPIvYM23dg4Hcnsbf61E0stXacV7jOjsfTpqVXmPauLqHu3ydsNnanNmANspJkyNkPz6FymVbpoXA80Wrz2ImC6DSPzf8giuN8sRDYyZhs1NCFrJR/4rGucaX96FHBvythcoFXWX0Mz17w+BJlOWm3B2DidLjvU/DvXhtZ0nVb5GzDINPojzGs7niZu6xxG9h3/VozNK1mMTSE6FXeZj+yhanQxzdQ+j/uL+L2eMKOHe5H1wphpI+4z7z/qs56xpv3p6SCNkPk+F2m19c/QpDZ7ncjOoHKNeYyNEyOT2iRqZ7oB08imdFrdCNcJ8fi5xfx9B2txj9rqfMklnY/kMTIryb/P5mGXylNxn1fNb+GGsYmb0XcQ9nksQTaGDkTWbVNHOS/yWce+yHqQG8cShJApzG9rtfXH0DxrhsZ7IpGL/2MayUIeFisL/8eaBrMR2dRolWfMPSmd+egPvAP8Ajlj/DTz+h2LI4p0nc+6oHMv0wPMZWRSB7TlMjb7s+t6TaHlqXjDfxAPy+0O0oibDt8DAflOIeTMl5+ZGYGfI5GS/TxGYLTpSFkxMklgh8Xv9SvsbapVCjQ09ewMwXBdWq/c7jSAVe+y682/D5i8rVKf9uBdZ+H635N5nWSE+QyfdUZy3LPKGJilpveYz9hEXNCpeMdMY2waCjQyZyPuu0FgD2M8XwCuMgZwCnK65evYW2sslFE2jcwUJLCmlfYrhETIvkKrrbeGBsS7JIZ4nH0tbRrAqrGxamS+avKIUdhhTZl0ZhvN5Br1fDHPA+KFziXI4momI3MEuzocLCH7PpuF7IwO4FSn4h2vmWfCjrFpNUYmKFGEOyGx9CZl+fwQYwC83L+1j8mjt8XrrzQzFy/YNDZ3mnsVDw3NEiSQH0i4jCE2jI1VIzPEDFMxP+riAvRm05kpr3wM8llnEpm++yjtuneR0/8yebUtRY6fndPGyJxm0trLBZ2K98ZmssWRZixgRgYkivSYPNcMQyIbeMEAY2T62DAyd6b9/2XTflmdxpyB7HVSPDI0IKc0zkX80p9P60HkMjapHf/5jExv0zPqavKY5kBzNp3prLSQzuoi6JyPzDUPN9MBnwOW50hjGbImsy8y5TfKpOGmTsVbZplnZJsFI/NowLSfbfG6r3iQdwiZ0u9r8fqr0zp36byKvWnMu9CYgZ4amibgdGRH/TAkKOS+aT/W8ey62z517PEbefLYFwn6uLe5/3SceeXk0pniY9ObzPXwLy+SzqQZfXyEtR3/SeQo50XIruYxJq1hLulUvOd18/xkCku0wzTojwVQt9VTW4d4kPcX2Om2n49ryB2Q1M7IMoIcXKh4ZGhSUz7HAetM5XkDWQcAWRAchoSnOdZ8ni+S8tdMGnuZNI8jc/Rhu+TSmeK8LCObley+M7iYOu3wNdNoDXFZp+KPsZmA7EupM9M5LyDrH48FVPMmi9dt8SDvYy1eNxVrAUlnmefFSqzEL2h19dbQgKwbTDRTMrWIO2O6F83T5gFpzJHmZHPPX00ac02a77qoPZfOsGmA90OmlV41f9PMe0sCpNPKb+SHTsV7UmtsXZEjho8F/hdgvcWMdWZlQ+Z12HOCecOisemiVdVdynL0xCcgR8ROMb2uScAKJDLAG2b6J9Xj6Y6sOxxiGsWB5v0YMm/6I/LHTCp0xJBP5wvsdN/ujuwRCqLOTOV5qNE5wCedipLOrchR5pU5rvEq1tlHeT6/Aeux4tKZDRxjjGjXLNdohA2XCe0zM+9vtTcyB3oO2c/baEsTsqP5Nix6Q82flCUG5sxKq9/FF50clqV9v+qqYOmcMUNrt1I4O5+7U81IulOWevkN0p0YDnPY/9n5HPVAYqi1dQZIkH9NxgrjgKfY3fs0DpxEapO2PkeejmjSWYyc4TDFjAaORHa4D0nrEWxFFtfnIJs9n6GwzWpOUJ2K4j6pWGffQ6ad+iKOQM+bjo9XYWg2Ia7/M8wz0oJMH9+GO6fsvo8451yBeNX2Mc/mT7EXckqxYWgms/Ps8fORXb9nmh+5GtkA9QQyBfVgEfWqTkXxn1SsM79ZbEYXXtGARNGerj+xt6Smzj5FQk2AnKrXD9jMznNOUryKrDO86rYQi1NnRddpceqs+Dp1yK+UItanoP1BnyNXDU3b/Rwhcu/xmGkaSMfRgrMamMzGpmg6Lc0973xIiqdTHwxFUQJGuMD7DkPmMV9DPDiCiupUFEUpUUOTYiKyKPg6slAYVFSnoihKiRqaFIciC96z2XkIVxBRnYqiKCVqaFJMAP4J/Bdx3Q0F9HurTkVRlBI1NCkOBP6BhNc4KcANpOpUFEUpUUOT4gBk9+07wCkBbiBVp6IoSokamhT7IRsU30PC2tcEtDxUp6IoSokamhTjkLhI64BLA1wuqlNRFMUHQxP3MN9qJAKxG6hOd3UqiqL4Zmi8DOIYY9ezvZ2gOt3VqSiK4iplPuc3F7gdOSNmfYDLRXUqiqKUmKF5Azmk6J/kjvlVbFSnoihKiRma55BT+v4T8HJQnYqiKCVkaBLA48jxru8F+LurTkVRlBIzNC3A3/D21D3VqSiK0gENzXbg98jpkSsD/F1Vp6IoSokZmi3A3cixxBsD/B1Vp6IoSokZmrXAz4HfAvUB/m6qU1EUJeCGZivQJe3/y4CfAn8CmgP0HVSnoihKgMkVGeAyZI2gHnGpHWF63UFrFFWnoihKiY5o/mH+go7qVBRFKdERjaIoiqKooVEURVHU0CiKoihqaBRFURRFDY2iKIqihkZRFEVRdiWU/E8Fo0LTPgX2MO+tnZ+ctofvSg7Lsp1kZmX6/3bRmfY6WDqfunRXnSffHRydiqIoRRrRXGAa7tXA+QHWqzoVRVFKcUTjwEg9D4SAY5BzU7we0ahOHdEEkilXrPUzu0OQI7yHAzOBKXf8ou+qYuls2B5mwIAYx03eSjwO8Xgo9VE34FFgLHLc+LkTJ47a4YXObdsijB7dxJFHb6OxMUzS3rmzruls2RGiulOCE760lepOCVp2hNws6oJ1Fhsn0ZvPAI42r78MPBTQ76g6lfZEGXAHMMH8/xRgA/DtYgmKhGFHc4jWVohEIB7/7KOngEnm9dmmE3V2AMtUdXqME2eAi7O8DhqqU2lP7JVmZFKGp6iNTUV5gk2byti4sYyqqs8G4kPTGsUUpwWwPFVngA1NH+DwtP8fZt4LGqpTaW/0zvBe16I2ImXQ3BxmyeJKQjtblJ4ZLo0HsDxVZ4ANzalABJgPLDCvTw3g91OdSqnRBTgPuBQYk+HzUIC0HgGcQhKqq+OsXFHBpo0RKisTIEeRt6XVSzGhUB6dmfFdZ97yDL5O3wzNmebfR4CHzesvB/D7qU6llKgBbgamAz8BbkMW/NNJBkTrr4FXgCeAuRUVyZ5btkRYtqySikr/JaYW/8Ph3DqzjAwCV54B1umboRmITO2AeEA8Yl4fDgwI0HdTnUqpMQlZ1O+LeBhNBs4NoM7jgEvS/j8GmBEOw7o1UVpjoVyjC08oiyTZVh8mFttlZJNRZ6mUZ0c3NNciUztzgA/N33vmvakB+m5tdX5QAjo/CLBOxXsOyfDeoQHUeUSG9yaEw5BIiNeZ34amsirBmk/LWbMmSk1NPDXCyaizVMqzIxuak4Bvmdc/Ar5o/m40733LXFNsMumkBHQSUJ2Ku0SyvF9u49piEsvw3g6QqatQEVaRysqguSnM4oVVhMPJlIasOkulPDuiobkQmdYJA38GnjY97qmIf/efzGePmGuLRTadlIBOAqhTcdfA7Ad8BTgggxHJtLhRrDWZPoj77OAMn8UtvuebzmSSwTU1cZYvq2Dt2ijV1Ymi6QyF5C9ZmuVZFENTARwPvAzca3pczyD7PA5B1hEON68vNp+Vm2tfNvdW+PA9rOhMEVSdbSmmTsUbJpvf9PfIsd4nBlTnocBi4DHz7wmloLO8InnCtvoIixdWEo0W32ciVHrl6d2I01T+84D+QNS838181jdtOB8DbjXTOnF2XT+4FnHLO8VMAU0FjjR/LUjcr1ZgS1paq4A/As/aeEid6sToCaJOfNapeDNiCZtRSCbX0+lAP/O6CvEqeyZgvdcw8CBQm9ZGPAp0B5qCrDOZ5NFoWbL7+g3RpuYdIVJrRr5WgDLYvj3M9u0hunZN0LIjUirl6bmheRhxq8zGZuBxxAtigXlvFPCltGtOMu/NB34I/B24ygwVuyOeVZk4Lu0HyEchOke30Zk+LA2Szmx4qVNxl1rgeuBgYDnwY/Nvih5IjKp0RiBurOt81noVEu5oBXA5u+7R6Mfu3o6VwEjESSXQOiPh5MhkkvcS8RChUBKfth19pjMSSV5eXx9p+eTjCgYMaAlaeRbV0PwWuNr8f7lp2NaZXtla4CPT4NUi88rDgYva/IIh4G4zxbPI/F2ILGbvY3ryIWSe8sfAEHPfvTa02tH5OaPzwjw1bUERddrBC52Ku0xBNlnWABOR3fqnszM4aqcs91X6rPNaM5JOsTc7Y+xBZoeE1Ggt8DqTEPHZIWE3nRXlyaM/Xl7JmLFNRKPJ8lgsFITyLLqhuQbxcLjONFiXmQdklRkRPG96XnvmSesIdnXTWw0sND2RF41Vv8nkkUQ2pv3AhlYrOkemTU3YIc5O12IvdTrFTZ2Ku1ycNpKNINOeg9JGNdmaPr8XE65r8/+jzEhrblody1b3VKcFndHy5NimpvDchoYwvXu3xrMYmnhHejhS88k3INGD64GDgHeRRfQPjZHYs4C09wReMmkcArxj0q43ed1g8yGzorOfw/LwWqdbuKFTcZd+ed4Lym9TleG9/gEsz5LVmUzSPxIRF+ukPpGfGZoUjyObhBYAvUzDvR9wCzCtgLSnmV7255CzE3qZEc4Ek1ehuK0zhV86neK2TsWf5ysoZNqf0aI63dcZCukDkO1B+Mj0lucA1ciZKFWIZ9R0G+nebO6pBh5A5qffRxZKP3JBdyad1QXoTO+V/N3onOODTie9Jy90Kt6QLBFNqrP96wxcj2srspN+PbIAd5l5/wbgLgtp/grxvsHcO8ykdaxJ2y3a6vyOTZ3pXG7SWG/S9ENnIXipU1EUxdeh/Xp2hkH5Ttp1cyyk+V5a2pea1zeaNN3GiU4CoJOA6VQURfHN0AD8BdlQNAA40Ly3j4U0U9ccaO5tMml5RaE6CYBOAqhTURTFN0PTAMw2rw8y/46ykOaoNvfMNml5RaE6CYBOAqhTURTFN0MD8LH5d2CGBnwJslP9NPO6raEZ2CYNL7GiMxupe5YXQacd/NSpKIrim6HZbv6NIJ5Og4CNyCL/aOQ0uCfM68vMZ4PMtZG0nrzXWNGZjUibNPzSaRc/dSqKovhmaIaaf9eYxvs2xOvpV+zq095i3tsbuN30vteYz/by4XtY1ZmJlM5hPuu0i586FUVRXKMsx2flyNGyAP9FAmZ+HwmzcQayZtDHfL7OXPMcO6Ml9zb/TkSiGMc8+g6F6mxIuweThp86U9QgwTCDolNRFMU3Q/N50wjWAW8gmwW/j+zl6JLlnjrgl8gu/TfM/7sYY/OKR99BdSqKopSooUkdzvM8srj+ADvdhj9FwqCkFqaHAMcgsZ1+YEYSZ5l7v2zS8qphVJ1KUAlleY2F93HpekUpCUPTF3GprUQW2K8G/sbu0UcjwNeAn5kG9C12TvecwM7Q+V414KpTCRrpoUiyRetNtPnN8z2jTsObRPO8V2bhvvJsn6fF94rabG981Zknn/aos6hkcwYYhITcB1kTqDQ96PHI+fbZzrj+s7nmFXPPYeazkSZNt1GdSlCoy/DehrTX29oYlZTRSPfKzHQA2uY2/88UEWKrDZ2ZjFlDG52ZSH8/li3dROKziMV1DhtGT3Xm+d3ao87ijmhmhd/d7c2Jif3T96G0IscJ3zor/K6Vg1FXT0zs/wVk/WFaWmGMmhV+95MMeTnRn1Fnhgc6o04go07gE5fLuVR0lhyzZs13dP/EiaPckvIAcEHa7/MWsLRNw/I0cDI7p7+eZedx3CDHaqxjp1PIduDJNvksM2lPSKtPD9jQ+ZAZKadYC/yvjXF8AZm6TfEBu54G+whyoF86fw2FksQTIRKJEKFQciGE5rLrqaIvBkFnm/8vRM64ae86AzmiWWJ6Uq8Ch84Kv3uzRSMjD3/43cSs8LvTgUNNGpvZdVOnW+yiE4kabeeU8AQS7Vl1Kk6ZbozCemAWcKUxAulch6yzrTdG5Zo2n8811yw0HYzfAfe3uaYVOc1zlknnSVOfrHIBsq9ss8nvKHYPdf8Vo3OzyWdym88/AM5BNiBvRE7XvSUUgkQilH4Gy5dMo7sZ+HebBrloOjPk1RF0FndEk8VQLEbOOP+MjRsX1SBrA0ea6Zwh7PSWqkMWsueYaZ5/9uw5vGFW+N3/mesd8+TmBzO9vYvOUChEMpm0pdMMc/PqPKX7Wa7pNNjSGQ6HGxKJhHs6n3wy62emHAmHwyQSiULKMy+nnHKKqxW5kPrp8rO0CnHUyMVHiCt7rg7FfebPK3aQO1IGZpT1RQsjuAcAGraHGTAgxtlf3UQ8DmknStabv4RpHLd7pXPbtgijRzdx5NHbaGwM09IS2k1nDlzT2bIjRHWnBCd8aSvVnRI0NYVtl6cXOp2O/G1yCLKfcjgwE5hSZuEBHgZcC6Gzy8urO0WjnYhGKwmHo4RCMiBKJhO9E4lY71iseUIstv3ilpbG7Rs3LnoAuK1nz+F+9byHAddWVFSe06NH7+q+ffegS5daKisriETCvPnmgow6IfkAssHTV53ZyvOQQ0YSjyd6Nzfv6F1XVz9h/fp1F69fv6axtTX2oOnl+Knz+2Vl0bN69uxd3bt3b7p160KnTtU0NcVYtmwd9fXbfSnPjz7aeeROeXk54XCY1tZWamtr2bhx0bBIJPL9aLT8rJ49U797Z6qrqygrk/rZ2pro3djY1LuubtuEtWvXXLxx4/rGLVuWPhiPx29Zu7b7kvr6esrKykgkErS07Nzfu88++xBAyoA70qbOTjHTM98ulqBIGHY0h2hthUgE4jtXHJ9i596xs82U4dkBLFPV6XH9LMthYCqBaaFQeEpVVbfyysquhMORLD3gCOFwhLKySqqqupJIxDs1N2+9oKlpyzc2blx0J/Cjnj2HN2e8+bDm3LJTn2fvgVcC02pqaq8cOHCv6MCB/ams3NVBI5lMEgqFcupMJhN3ImsnnurMV56RSJiysggVFVG6dKlh4MA9iMX2rV6x4tPzPv54ydfr67fd4UhnfiqBH1dVVX934MDB0UGD+lNdvetZbS0tccLhEOGwg/J0yIcfflgJTKuu7nTlgAGDo4MGDaCyspxQKLzbyYbl5WHKy2vp0qWWAQP2oLm5pfqTT1aet3Llx1+fPXv2HcCPxo0b10xpsFfaQ5x6sM8upqGpKE+waVMZGzeWMXhwC7FYBCQKxqQ2l54WwPJUnT7Uz7IsRmYo8GhFRe34Tp16EQ7bc24IhyNUV/egsrJL+fbtG67ZsaP+2I0bF33Zg9HN0HA4/NigQUPHDR8+jKqqCsc6zfTHEg8qScHlGY2WMXToQAYO7BddtGjpNR9/vGRyLBY7zQud4XD48X79BowdOXI4NTWdAlme77///tBQKPTYnnsOHDdy5AiqqysJh/Mf8RMKQSgUprq6khEjhjJgwJ7RBQsWXrN69Yovvv/++2eMGTOmFNa9emd4r2sxBYXLoHlbmCWLKxmy12cjwp4ZLo0HsDxVpw/1M5zByOwPvF5T03t8be0ethvFXRueMmpr96Cmpvd4YJZJ2y32j0ajb4wf/7lx48aNtm1kcukEXNXpVnlGo2WMHj2C/fc/aExlZeUbbuuMRqNvjho1Zuz48WNsGxm/ynPevHn7R6PRN0ePHjduzJjR1NRUWzIyu2sMU1NTzZgxoxk9ety4aDT6xrx58/YPwIPaBTgPOeRuTCZ7GaBG5QjgFJJQXR1n5YoKNm2MUFmZgMwxBlu9FBMK5dGZGd915i3PYOssqH6G2xiZYcBztbV79KmsdK+TVFnZldraPfoAz5k8nDIsGo3+e7/9Duo9cGA/T3TiTvBKT8pzjz16cdBBh/SqrKx83i2d0Wj0hX33HddryJBBlJWVBbI8Fy5cOCwajT6/777jew0e3J+KinLn0z4V5Qwe3J999x3fKxqNPr9w4cJiBi2tQTzIpgM/Qda6hre5Jijn0f8acax4AphbUZHsuWVLhGXLKqmo9F9iytMtQ59jF51ZRgaBK8+A6iy4fobTjEwV8GhNTe9eFRW1riusqKilpqZ3L+Axk1ehVIXD4cf23Xe/nv369fJUJxKPrGCdXpZn9+5dOOCAg3qUlZU94VRnOBx+bMSIUd3799+DSCQcyPJcuHBhFfDoyJH79thzzz6uGUOAsrIy9tyzLyNH7tsDeMzkVQwmIWstfYFuiBvsuQFscI4DLkn7/xhgRjgM69ZEaY2Fco0uPKEskmRbfZhYbJeRTUadpVKeAdRZcP1Mb1WmVVTUjnOz552ph1tRUTsW2XhYKNMGDRo6duDAPQKv0+vy7NWrO3vvPXLfcDj848KnG0I37rnnwLEDB/YnEokEsjzLy8sBpvXvP2jcgAH9XDUyO41NhAED+tG//6CxwDSTp98ckuG9QwPY4ByR4b0J4bBEBojH8d3QVFYlWPNpOWvWRKmpiadGOBl1lkp5BlBnwfUzbEYzQ0Oh8JROnXp5rrRTp96EQuEpBU6hDa2pqb1y+PBhhDyuySmdBU75+Faew4btRW1t5+8WqrOysmrKiBF7U14eDWx5zps3b2hVVdWVw4cP91RneXmU4cOHU1VVfeW8efO8nELLZtHLbVxbTDKFTNkBMnUVKsIqUlkZNDeFWbywinA4mdKQVWeplGeRcL1+pkY0U6uqukWdLFRbJRyOUFXVLcrOc2vs9L6nDhy4V5mThX8/dPpZnpFImOHD9ymLRCLX2f+O4esHDBhUVlVVGfTf/bqBA/cqq6mp9lxnTU01AwcOKQuFQtd59ADvh+wUPyDDQ5ppfrtYazJ9EPfZwRk+i1t8zzedySSDa2riLF9Wwdq1UaqrE0XTKd6Nu/1wpVCentXP8MaNi2ohdLaXUzyZplIgdJbkbZna8vKKcwYO3NN3nYAtnX6X5x579Ka8vOIrdnVGImVfGTx4oGdTZm6U55NPPlkbiZSdNXjwQMJh77vK4XAIKZOyrzz55JNuL65NBp4Bfg/8AziRYHIoEs3iMfPvCaWgs7wiecK2+giLF1YSjRbfZyJUeuXpWf0MA8eXl1d3yrYZ06vebXl5dSfgeBu3Hd+zZ+/qysrywOv0vzxD9OvXv9quzl69eldXVlYEvjx79epT7ccodqdBrKBXrz52yzPVI4ySParudOSMoSpgD8RrJ2hTY2HgwbTOQBnwKM4cTnzRmUzyaLQsWbV+Q5TmHSHCYf9FRcpg+/Yw27eHqChPBK08i1Y/w8DR0Wgn37+xyfNoG7cc3afPHiWhsxjl2atXb9s6e/fu7flalxvl2bdvX397oiEwedrRWWse1BeQYJhD2nzeg10j7wKMoDhurFchkaN/y+7z7v2AAW1tLzuPuQi0zkg4OTKZhEQ8RCiU9F1nJJIsb2wM88nHFYTDySCVZ1HrZxkwtqyswvcaZPIca+OWsZ0715aEzmKUZ21tp3Zbnl27dvFdp8nTjs4pyCa2GuSo7a7A6eyM0p2t91Hp81e7FjmiIsXebQxqeY7ecOB1JiHis0PCbjorypNHf7y8kjFjm4hGk+VpQUaLWZ5FrZ9hYGgk4r8rp8lzqI1bhlZXV5SEzmKUp9m8aLM8q30f0RRSnlVV/s8ymDzt6LzYPMSpRuQUdj2cLltB+72Y0NbJ4ag2BjXbInRcdVrTGS1Pjm1qCtPQECYaTQZFZ1HrZxjoHC7CZKbJs7ONWzqHw2GSyaTtv0Qi6bvOUijPaLRwr7iUgZJgpdb/jOOBLZ2pKMz+jrxsl2e/PO8FZUd/Jqvdn+BRsjqTSfpHIuJinUwGRmdR62fJHAUKMHv2AoIV6ik4JBIJ3/KqqalizJjCTpKOx+M888yijvKzhAOoaQe7nz/fojrd1xkKaf1Mz2ibn41Um4Zxm41bVGcOWlpitnXGYoXH5LM7kkn9tbbGbetsbfW/PE2e2xwmkwxg45JUnR1SZ1HrZxhYGo/731EweS61cYvqzEF9faNtnY2NjSR9HNsnk0kaG+3rbGpq8r08TZ5LURTFFUMzt7XV/2gH8fgOkCilVlGdOdi8eYttndu21fuu0+RpS+fWrXW+6zR5ztUmQlHcMTQvxWLbfc+4pWU7wEs2blGdWUgkkqxZ86ltnevXr/d9RLN+/XrbOteuXevromoyCWvXrrWrU1GUHIbm2ZaWxu2JhH/edolEnJaWxkZkk5NVVGcW1q/fSkPDVts6N2xY39jc7N/oq7l5Bxs2rG+yr3NdEXSus6tTUZRshqZnz+H1kHywuXmrjw/yViD5gORtmaLplLyDqTMeT7Bs2XISibhtnfF468OffLKSeDzug844klfrQ3Z0nnLKKfXxeOtDH3+8wpGbup3R4ccfryAeb33wlFNOqdcmQlHcGdEA3NrUtCXmRy88kYjT1LQlhsTRsYvqbMOKFevZuHF1QToTicT0FSs+bm1qavZcZ1NTMytXftyaSCRutntvMpm8ecWK5a0NDY2e69y+vZEVK5a3JpPJW7R5UBQXDU3PnsOXJJOJO7ZvX+/Dg7yeZDJxZ8+ewxcXcLvvOpFoq4HUuWlTPYsXLyCRiBess7m56Y6FCxen3KM9oaUlxsKFi2lsbLyjEJ1jxoxZ0tTU+PNFixb5orOpqfGOMWPGLNbmQVHcHdEATNuxo36ul1M+zc1b2bGjfi4OT65UnbB163bmz19IY+NWRzqTyeSPVq9eMW/FilWeTKHF43FWrFjF6tUr5hWqs6WlBWDaqlWfzF258tPUXhxXaW1tZeXKT1m9+pN5wDSTp6Iobhqanj2HNwGnNzSs37Bjh/tT0zt21NPQsH4DcHrPnsOdzIH4phMIpM716+v44IOFbNq0yhWdiUTitIUL529etWoN8bh7myPj8QSrVq1h4cL5mxOJxGlOdI4YMaIJOH3Bgg82rV691lVj09oaZ/XqdSxY8MGmZDJ52ogRIxq1aVAUb0Y09Ow5fAlwXH39mnVu9sSbm7dSX79mHXCcycMpnus0eQRKZyzWytKla5g/fwEbN65wVWcsFjvmgw/e37h8+Se0trY6TrC1tZXlyz/hgw/e3xiLxY5xQ+eIESOWxGKxYz/4YM6Gjz9eyY4dzkcdO3a08PHHK/nggzkbYrHYsSNGjFji4vMVyvIaC+/j0vWKUvT6uVusm549h78LTGxoWD+3vn4NiUThjU4iEae+fg0NDevnAhNN2m7hmU6TdmB0xmJxVqzYwJw5y1i0aD5bt67xRGcsFjtk/vx5H8yZM4+GhsL3AjU0bGfOnHnMnz/vg1gsdoibOseMGfNuLBY7dP78ufPmzfuQhobGguK8JRIJGhoamTfvQ+bPnzsvFosdOmbMmHddfpDT3eSyDcHSxWcKHV+WI81CiOZ5r8zCfeXZPk+L7xW18F2KpjNPPu1RZ1HrZ8agambUMWHHjvrbt2z5ONbYuAk7HlSJRJzGxk1s2bI8tmNH/e3ABJdGMplGDK7qdGmEULDOeDxJS0sr27Y18umnm5k/fyVvv72QhQsX8umnCzzXmUgkDly9esXPXn/99daPPlqUChljicbGRj76aBGvv/566+rVK36WSCQO9ELnuHHjliQSiYNWrfrk9jfeeL114cKlNDY2k0gkcm7sTCbFwDQ2NrNw4VLeeOP11lWrPrk9kUgcNG7cOKc6M4Uv2JD2elubhzb1UDak/X9dhjQ2t/l/Jg8TO8PlTI1FQxudmUh/P5Yt3UTis4jFdQ4bRk915vnd2qPOotbPrEJ79hzeDFy7ceOi3zc2brqmsXHzOeXl1dXRaCei0UrC4WgqND2JRIJEIkYs1kwstp2WlsYmSP4duK1A7zJbM17AtclkwpFOCvPacl3n7NkfBUHn95qaGu9dvHjB1KVLF5/ds2fvqt69e9OtWxeqq6soKyv7bHqssbGJLVvqWL9+PRs3rm9OJOIPJBKJW0KhkKc6R48e3VxbW3vt7Nmzf79kyYKpy5aJzr59+9K1axeqqqooK4sYnXGamprYurWOtWvXfqYzHo/fcvDBBy+ur3dlDe0B4IK0h/8tdo2Vtg14Gjg5bXrhWWBL2jUvmYe5j/n/duDJNvksM2lPSM1Smryt8hDwtbT/rwX+16bxeQE4Ju29D4AFaf9/BPhhm3T/GgoliSdCJBIhQqHkQgjNZdczZF4Mgs42/1+IhBpq7zqLWj9Dr732oSWVGzcuqgFOBI4ExiNHgXZN61EtB+YArwDP9Ow5vMFKuo890p07fpH9qN4pV6wF4PAjZ1stUFs621js7K1vUwVnnT056+cPPvAvACqrdpS8zlAoRDKZJBwOk0gkbOkMh8MNiUTiszSc6sxH/wGDHNXPVSs/yZtHLp1p9bQ/cAdwGLAIOXnxjTaX7WOu2Q+YB1wOzG8zw/BN4BpTPx4Brmd3J4pDgNuB4cBMYModv+i7ykp5TblibYVpdA4HVgFnAR+1uawbcs7954y+s8216ZwN3Gx0PgR8Z/v2MHv2j3Hc5K0kEhCPhwYCjyIHyP0POGfixFGbvdS5vSG8qv/AFo6bXEc8DvF4aDedGbJzVWcsFvooGk0y+YSt9OjRSlNTuKDydFPnrFnzi1o/Q9+9fE034H7gWKwdL9oCPAycf/qXN7cYY1GJnEP9lSxziW1pNVb+bKDOiqExlaognUDLhIPfAzmWtGCdFhtGRzrNe6rTBZ39BwxqMcbEM52KouQnDPwCmIz1M6zLzVDx+sce6c5jj3QH+IF5L2oxjTKT5502tBasM+091dmBdK5a+UlqxOKHTkVRchiaQrtr6fcd50Iabl6rOlWn3zoVRclhaHoWeG+ftNdupJEP1ak6g6xTUZQchkZRlCzo+oyiqKFRFEVR1NAoiqIoamgURVEURQ2NoiiKooZGURRFUdTQKIqiKGpoFEVRlHZlaOoKvDc9mJsbaeRDdarOIOtUFCWHoXm0wHsfS3vtRhr5UJ2qM8g6FUXJQhlwFVALfAFrx3a2mgfw9rT3bgX6IefXWwl+mEDOUvieDa2qU3UGWaeiKDkMTR0SPt0JLcC3zJ9XqE7VGWSdiqLkMDQdgrdm7+c4jbPO9jZ9t/BDpznfR1EUxZKh6QLci/WpiTgyNXE5Ow/AKgfuAk6zODWRRA6WuhjrC7WqU3UGWaeiKDkMzQzgTJv3XYwcRXqT+f9U4CKbaXwFOafa6n2qU3UGWaeiKFkIA2cUeO/paa/dSCMfqlN1Blmnoig5DE2XAu/t3mZ6w2ka+VCdqjPIOhVFyWFoFEVRFEUNjaIoiqKGRlEURVHU0CiKoihqaBRFURQ1NIqiKIqihkZRFEVRQ6MoiqJ0BEOzscB716W9diONfKhO1RlknYqi5DA0/yrw3mfTXj/nQhr5UJ2qM8g6FUXJYWguNw9zq8V7WoC/Ajenvfdj4G/sjJabj1bzEE+xoVV1qs4g61QUJQv/PwAlukJhy2ScjQAAAABJRU5ErkJggg==\";\r\n\r\nconst iconfontObjects = {\r\n border: {\r\n \"border-top\": \" iconfont-luckysheet luckysheet-iconfont-shangbiankuang\",\r\n \"border-bottom\": \" iconfont-luckysheet luckysheet-iconfont-xiabiankuang\",\r\n \"border-left\": \" iconfont-luckysheet luckysheet-iconfont-zuobiankuang\",\r\n \"border-right\": \" iconfont-luckysheet luckysheet-iconfont-youbiankuang\",\r\n \"border-none\": \" iconfont-luckysheet luckysheet-iconfont-wubiankuang\",\r\n \"border-all\": \" iconfont-luckysheet luckysheet-iconfont-quanjiabiankuang\",\r\n \"border-outside\": \" iconfont-luckysheet luckysheet-iconfont-sizhoujiabiankuang\",\r\n \"border-inside\": \" iconfont-luckysheet luckysheet-iconfont-neikuangxian\",\r\n \"border-horizontal\": \" iconfont-luckysheet luckysheet-iconfont-neikuanghengxian\",\r\n \"border-vertical\": \" iconfont-luckysheet luckysheet-iconfont-neikuangshuxian\",\r\n },\r\n align: {\r\n left: \" iconfont-luckysheet luckysheet-iconfont-wenbenzuoduiqi\",\r\n center: \" iconfont-luckysheet luckysheet-iconfont-wenbenjuzhongduiqi\",\r\n right: \" iconfont-luckysheet luckysheet-iconfont-wenbenyouduiqi\",\r\n top: \" iconfont-luckysheet luckysheet-iconfont-dingbuduiqi\",\r\n middle: \" iconfont-luckysheet luckysheet-iconfont-shuipingduiqi\",\r\n bottom: \" iconfont-luckysheet luckysheet-iconfont-dibuduiqi\",\r\n },\r\n textWrap: {\r\n overflow: \" iconfont-luckysheet luckysheet-iconfont-yichu1\",\r\n wrap: \" iconfont-luckysheet luckysheet-iconfont-zidonghuanhang\",\r\n clip: \" iconfont-luckysheet luckysheet-iconfont-jieduan\",\r\n },\r\n rotation: {\r\n none: \" iconfont-luckysheet luckysheet-iconfont-wuxuanzhuang\",\r\n angleup: \" iconfont-luckysheet luckysheet-iconfont-xiangshangqingxie\",\r\n angledown: \" iconfont-luckysheet luckysheet-iconfont-xiangxiaqingxie\",\r\n vertical: \" iconfont-luckysheet luckysheet-iconfont-shupaiwenzi\",\r\n \"rotation-up\": \" iconfont-luckysheet luckysheet-iconfont-wenbenxiangshang\",\r\n \"rotation-down\": \" iconfont-luckysheet luckysheet-iconfont-xiangxia90\",\r\n },\r\n};\r\n\r\n/**\r\n *\u5355\u5143\u683C\u53F3\u51FB\u83DC\u5355\u914D\u7F6E\r\n *\r\n */\r\nfunction customCellRightClickConfig() {\r\n const config = {\r\n copy: true, // copy\r\n copyAs: true, // copy as\r\n paste: true, // paste\r\n insertRow: true, // insert row\r\n insertColumn: true, // insert column\r\n deleteRow: true, // delete the selected row\r\n deleteColumn: true, // delete the selected column\r\n deleteCell: true, // delete cell\r\n hideRow: true, // hide the selected row and display the selected row\r\n hideColumn: true, // hide the selected column and display the selected column\r\n rowHeight: true, // row height\r\n columnWidth: true, // column width\r\n clear: true, // clear content\r\n matrix: true, // matrix operation selection\r\n sort: true, // sort selection\r\n filter: true, // filter selection\r\n chart: true, // chart generation\r\n image: true, // insert picture\r\n link: true, // insert link\r\n data: true, // data verification\r\n cellFormat: true, // Set cell format\r\n };\r\n\r\n // cellRightClickConfig determines the final result\r\n if (JSON.stringify(luckysheetConfigsetting.cellRightClickConfig) !== \"{}\") {\r\n Object.assign(config, luckysheetConfigsetting.cellRightClickConfig);\r\n }\r\n luckysheetConfigsetting.cellRightClickConfig = config;\r\n return config;\r\n}\r\n\r\n/**\r\n *sheet\u9875\u53F3\u51FB\u83DC\u5355\u914D\u7F6E\r\n *\r\n */\r\nfunction customSheetRightClickConfig() {\r\n const config = {\r\n delete: true, //Delete\r\n copy: true, //Copy\r\n rename: true, //Rename\r\n color: true, //Change color\r\n hide: true, //Hide, unhide\r\n move: true, //Move to the left, move to the right\r\n };\r\n\r\n // sheetRightClickConfig determines the final result\r\n if (JSON.stringify(luckysheetConfigsetting.sheetRightClickConfig) !== \"{}\") {\r\n Object.assign(config, luckysheetConfigsetting.sheetRightClickConfig);\r\n }\r\n luckysheetConfigsetting.sheetRightClickConfig = config;\r\n return config;\r\n}\r\n\r\nexport {\r\n gridHTML,\r\n columeHeader_word,\r\n columeHeader_word_index,\r\n flow,\r\n colsmenuHTML,\r\n rightclickHTML,\r\n pivottableconfigHTML,\r\n pivottablesumHTML,\r\n sheetHTML,\r\n columnHeaderHTML,\r\n sheetselectlistHTML,\r\n sheetselectlistitemHTML,\r\n inputHTML,\r\n modelHTML,\r\n maskHTML,\r\n filtermenuHTML,\r\n filtersubmenuHTML,\r\n sheetconfigHTML,\r\n luckysheetPivotTableHTML,\r\n luckysheetAlternateformatHtml,\r\n luckysheetchartpointconfigHTML,\r\n luckysheetToolHTML,\r\n menuToolBar,\r\n luckysheetlodingHTML,\r\n luckyColor,\r\n keycode,\r\n luckysheetdefaultstyle,\r\n luckysheet_CFiconsImg,\r\n luckysheetdefaultFont,\r\n iconfontObjects,\r\n};\r\n", "import { chatatABC } from '../utils/util';\r\nimport Store from '../store';\r\n\r\nfunction getSheetIndex(index) {\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i][\"index\"] == index) {\r\n return i;\r\n }\r\n }\r\n\r\n return null;\r\n}\r\n\r\nfunction getRangetxt(sheetIndex, range, currentIndex) {\r\n let sheettxt = \"\";\r\n\r\n if (currentIndex == null) {\r\n currentIndex = Store.currentSheetIndex;\r\n }\r\n\r\n if (sheetIndex != currentIndex) {\r\n //sheet\u540D\u5B57\u5305\u542B'\u7684\uFF0C\u5F15\u7528\u65F6\u5E94\u8BE5\u66FF\u6362\u4E3A''\r\n sheettxt = Store.luckysheetfile[getSheetIndex(sheetIndex)].name.replace(/'/g,\"''\");\r\n //\u5982\u679C\u5305\u542B\u9664a-z\u3001A-Z\u30010-9\u3001\u4E0B\u5212\u7EBF\u7B49\u4EE5\u5916\u7684\u5B57\u7B26\u90A3\u4E48\u5C31\u7528\u5355\u5F15\u53F7\u5305\u8D77\u6765\r\n if(/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/.test(sheettxt))\r\n {\r\n sheettxt = sheettxt+\"!\";\r\n }\r\n else\r\n {\r\n sheettxt=\"'\"+sheettxt+\"'!\";\r\n }\r\n }\r\n\r\n let row0 = range[\"row\"][0], row1 = range[\"row\"][1];\r\n let column0 = range[\"column\"][0], column1 = range[\"column\"][1];\r\n\r\n if (row0 == null && row1 == null) {\r\n return sheettxt + chatatABC(column0) + \":\" + chatatABC(column1);\r\n }\r\n else if (column0 == null && column1 == null) {\r\n return sheettxt + (row0 + 1) + \":\" + (row1 + 1);\r\n }\r\n else {\r\n if (column0 == column1 && row0 == row1) {\r\n return sheettxt + chatatABC(column0) + (row0 + 1);\r\n }\r\n else {\r\n return sheettxt + chatatABC(column0) + (row0 + 1) + \":\" + chatatABC(column1) + (row1 + 1);\r\n }\r\n }\r\n}\r\n\r\nfunction getluckysheet_select_save() {\r\n return Store.luckysheet_select_save;\r\n}\r\n\r\nfunction getluckysheet_scroll_status() {\r\n return Store.luckysheet_scroll_status;\r\n}\r\n\r\nfunction getluckysheetfile(plugin) {\r\n // \u83B7\u53D6\u56FE\u8868\u6570\u636E\r\n if(plugin){\r\n Store.luckysheetfile.forEach(file => {\r\n if(!!file.chart){\r\n file.chart.forEach((chartObj)=>{\r\n const chartJson = Store.getChartJson(chartObj.chart_id);\r\n chartObj.chartOptions = chartJson;\r\n })\r\n }\r\n });\r\n }\r\n \r\n return Store.luckysheetfile;\r\n}\r\n\r\nfunction getconfig() {\r\n return Store.config;\r\n}\r\n\r\nfunction getvisibledatarow() {\r\n return Store.visibledatarow;\r\n}\r\n\r\nfunction getvisibledatacolumn() {\r\n return Store.visibledatacolumn;\r\n}\r\n\r\nfunction getConditionFormatCells() {\r\n return Store.conditionFormatCells;\r\n}\r\n\r\nexport {\r\n getSheetIndex,\r\n getRangetxt,\r\n getluckysheet_select_save,\r\n getluckysheet_scroll_status,\r\n getluckysheetfile,\r\n getconfig,\r\n getvisibledatarow,\r\n getvisibledatacolumn,\r\n getConditionFormatCells,\r\n}\r\n", "import { getSheetIndex } from '../methods/get';\r\nimport Store from '../store';\r\n\r\nfunction setluckysheet_select_save(v) {\r\n Store.luckysheet_select_save = v;\r\n}\r\n\r\nfunction setluckysheet_scroll_status(v) {\r\n Store.luckysheet_scroll_status = v;\r\n}\r\n\r\nfunction setluckysheetfile(d) {\r\n Store.luckysheetfile = d;\r\n}\r\n\r\nfunction setconfig(v) {\r\n Store.config = v;\r\n\r\n if(Store.luckysheetfile != null){\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].config = v;\r\n }\r\n}\r\n\r\nfunction setvisibledatarow(v) {\r\n Store.visibledatarow = v;\r\n\r\n if(Store.luckysheetfile != null){\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].visibledatarow = v;\r\n }\r\n}\r\n\r\nfunction setvisibledatacolumn(v) {\r\n Store.visibledatacolumn = v;\r\n\r\n if(Store.luckysheetfile != null){\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].visibledatacolumn = v;\r\n }\r\n}\r\n\r\nexport {\r\n setluckysheet_select_save,\r\n setluckysheet_scroll_status,\r\n setluckysheetfile,\r\n setconfig,\r\n setvisibledatarow,\r\n setvisibledatacolumn,\r\n}", "const browser = {\r\n mobilecheck: function() {\r\n var a = !1;\r\n return function(b) {\r\n ('ongestureend' in window || /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(b) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(b.substr(0, 4))) && (a = !0);\r\n }(navigator.userAgent || navigator.vendor || window.opera), document.body && document.body.clientWidth && document.body.clientHeight && document.body.clientWidth < 350 && document.body.clientHeight < 500 && (a = !0), a;\r\n },\r\n iphoneCheck: function() {\r\n var a = !1;\r\n return /iPhone/i.test(navigator.userAgent) && (a = !0), !0;\r\n },\r\n isWeixin:function() {\r\n var a = navigator.userAgent.toLowerCase();\r\n return \"micromessenger\" == a.match(/MicroMessenger/i) ? !0 : !1;\r\n },\r\n isAndroid:function() {\r\n var a = navigator.userAgent,\r\n b = (navigator.appVersion, a.indexOf(\"Android\") > -1 || a.indexOf(\"Linux\") > -1);\r\n return b;\r\n },\r\n tabletCheck:function() {\r\n var a = /ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase());\r\n return a;\r\n },\r\n BrowserType: function() {\r\n var userAgent = navigator.userAgent; //\u53D6\u5F97\u6D4F\u89C8\u5668\u7684userAgent\u5B57\u7B26\u4E32\r\n var isOpera = userAgent.indexOf(\"Opera\") > -1; //\u5224\u65AD\u662F\u5426Opera\u6D4F\u89C8\u5668\r\n var isIE = userAgent.indexOf(\"compatible\") > -1 && userAgent.indexOf(\"MSIE\") > -1 && !isOpera; //\u5224\u65AD\u662F\u5426IE\u6D4F\u89C8\u5668\r\n var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf(\"rv:11.0\") > -1;\r\n var isEdge = userAgent.indexOf(\"Edge\") > -1; //\u5224\u65AD\u662F\u5426IE\u7684Edge\u6D4F\u89C8\u5668\r\n var isFF = userAgent.indexOf(\"Firefox\") > -1; //\u5224\u65AD\u662F\u5426Firefox\u6D4F\u89C8\u5668\r\n var isSafari = userAgent.indexOf(\"Safari\") > -1 && userAgent.indexOf(\"Chrome\") == -1; //\u5224\u65AD\u662F\u5426Safari\u6D4F\u89C8\u5668\r\n var isChrome = userAgent.indexOf(\"Chrome\") > -1 && userAgent.indexOf(\"Safari\") > -1; //\u5224\u65ADChrome\u6D4F\u89C8\u5668\r\n if (isIE) {\r\n var reIE = new RegExp(\"MSIE (\\\\d+\\\\.\\\\d+);\");\r\n reIE.test(userAgent);\r\n var fIEVersion = parseFloat(RegExp[\"$1\"]);\r\n if (fIEVersion == 7) {\r\n return \"IE7\";\r\n } else if (fIEVersion == 8) {\r\n return \"IE8\";\r\n } else if (fIEVersion == 9) {\r\n return \"IE9\";\r\n } else if (fIEVersion == 10) {\r\n return \"IE10\";\r\n // } else if (fIEVersion == 11) {\r\n // return \"IE11\";\r\n } else {\r\n return \"0\";\r\n } //IE\u7248\u672C\u8FC7\u4F4E\r\n } //isIE end\r\n if (isFF) {\r\n return \"FF\";\r\n }\r\n if (isOpera) {\r\n return \"Opera\";\r\n }\r\n if (isSafari) {\r\n return \"Safari\";\r\n }\r\n if (isChrome) {\r\n return \"Chrome\";\r\n }\r\n if (isEdge) {\r\n return \"Edge\";\r\n }\r\n if (isIE11) {\r\n return \"IE11\";\r\n }\r\n }, //myBrowser() end\r\n //\u5224\u65AD\u662F\u5426\u662FIE\u6D4F\u89C8\u5668\r\n isIE: function() {\r\n var userAgent = navigator.userAgent; //\u53D6\u5F97\u6D4F\u89C8\u5668\u7684userAgent\u5B57\u7B26\u4E32\r\n var isOpera = userAgent.indexOf(\"Opera\") > -1; //\u5224\u65AD\u662F\u5426Opera\u6D4F\u89C8\u5668\r\n var isIE = userAgent.indexOf(\"compatible\") > -1 && userAgent.indexOf(\"MSIE\") > -1 && !isOpera; //\u5224\u65AD\u662F\u5426IE\u6D4F\u89C8\u5668\r\n var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf(\"rv:11.0\") > -1;\r\n if (isIE || isIE11) {\r\n return \"1\";\r\n } else {\r\n return \"-1\";\r\n }\r\n },\r\n //\u5224\u65AD\u662F\u5426\u662FIE\u6D4F\u89C8\u5668\uFF0C\u5305\u62ECEdge\u6D4F\u89C8\u5668\r\n IEVersion: function() {\r\n var userAgent = navigator.userAgent; //\u53D6\u5F97\u6D4F\u89C8\u5668\u7684userAgent\u5B57\u7B26\u4E32\r\n var isOpera = userAgent.indexOf(\"Opera\") > -1; //\u5224\u65AD\u662F\u5426Opera\u6D4F\u89C8\u5668\r\n var isIE = userAgent.indexOf(\"compatible\") > -1 && userAgent.indexOf(\"MSIE\") > -1 && !isOpera; //\u5224\u65AD\u662F\u5426IE\u6D4F\u89C8\u5668\r\n var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf(\"rv:11.0\") > -1;\r\n var isEdge = userAgent.indexOf(\"Windows NT 6.1; Trident/7.0;\") > -1 && !isIE; //\u5224\u65AD\u662F\u5426IE\u7684Edge\u6D4F\u89C8\u5668\r\n if (isIE) {\r\n var reIE = new RegExp(\"MSIE (\\\\d+\\\\.\\\\d+);\");\r\n reIE.test(userAgent);\r\n var fIEVersion = parseFloat(RegExp[\"$1\"]);\r\n if (fIEVersion == 7) {\r\n return \"IE7\";\r\n } else if (fIEVersion == 8) {\r\n return \"IE8\";\r\n } else if (fIEVersion == 9) {\r\n return \"IE9\";\r\n } else if (fIEVersion == 10) {\r\n return \"IE10\";\r\n // } else if (fIEVersion == 11) {\r\n // return \"IE11\";\r\n } else {\r\n return \"0\";\r\n } //IE\u7248\u672C\u8FC7\u4F4E\r\n } else if (isEdge) {\r\n return \"Edge\";\r\n } else if (isIE11) {\r\n return \"IE11\";\r\n } else {\r\n return \"-1\"; //\u975EIE\r\n }\r\n },\r\n luckysheetrefreshfixednum:null,\r\n luckysheetrefreshfixed:function(){\r\n var _this = this;\r\n if(_this.luckysheetrefreshfixednum==null){\r\n if(_this.BrowserType()==\"FF\"){\r\n _this.luckysheetrefreshfixednum = 5;\r\n }\r\n else{\r\n _this.luckysheetrefreshfixednum = 0;\r\n }\r\n }\r\n\r\n return _this.luckysheetrefreshfixednum;\r\n },\r\n detectOS() {\r\n var userAgent = navigator.userAgent;\r\n var isWin = (navigator.platform == \"Win32\") || (navigator.platform == \"Windows\");\r\n var isMac = (navigator.platform == \"Mac68K\") || (navigator.platform == \"MacPPC\") || (navigator.platform == \"Macintosh\") || (navigator.platform == \"MacIntel\");\r\n if (isMac) return \"Mac\";\r\n var isUnix = (navigator.platform == \"X11\") && !isWin && !isMac;\r\n if (isUnix) return \"Unix\";\r\n var isLinux = (String(navigator.platform).indexOf(\"Linux\") > -1);\r\n if (isLinux) return \"Linux\";\r\n if (isWin) {\r\n var isWin2K = userAgent.indexOf(\"Windows NT 5.0\") > -1 || userAgent.indexOf(\"Windows 2000\") > -1;\r\n if (isWin2K) return \"Win2000\";\r\n var isWinXP = userAgent.indexOf(\"Windows NT 5.1\") > -1 || userAgent.indexOf(\"Windows XP\") > -1;\r\n if (isWinXP) return \"WinXP\";\r\n var isWin2003 = userAgent.indexOf(\"Windows NT 5.2\") > -1 || userAgent.indexOf(\"Windows 2003\") > -1;\r\n if (isWin2003) return \"Win2003\";\r\n var isWinVista= userAgent.indexOf(\"Windows NT 6.0\") > -1 || userAgent.indexOf(\"Windows Vista\") > -1;\r\n if (isWinVista) return \"WinVista\";\r\n var isWin7 = userAgent.indexOf(\"Windows NT 6.1\") > -1 || userAgent.indexOf(\"Windows 7\") > -1;\r\n if (isWin7) return \"Win7\";\r\n }\r\n return \"other\";\r\n }\r\n};\r\n\r\nexport default browser;", "'use strict';\n\n\nvar TYPED_OK = (typeof Uint8Array !== 'undefined') &&\n (typeof Uint16Array !== 'undefined') &&\n (typeof Int32Array !== 'undefined');\n\nfunction _has(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexports.assign = function (obj /*from1, from2, from3, ...*/) {\n var sources = Array.prototype.slice.call(arguments, 1);\n while (sources.length) {\n var source = sources.shift();\n if (!source) { continue; }\n\n if (typeof source !== 'object') {\n throw new TypeError(source + 'must be non-object');\n }\n\n for (var p in source) {\n if (_has(source, p)) {\n obj[p] = source[p];\n }\n }\n }\n\n return obj;\n};\n\n\n// reduce buffer size, avoiding mem copy\nexports.shrinkBuf = function (buf, size) {\n if (buf.length === size) { return buf; }\n if (buf.subarray) { return buf.subarray(0, size); }\n buf.length = size;\n return buf;\n};\n\n\nvar fnTyped = {\n arraySet: function (dest, src, src_offs, len, dest_offs) {\n if (src.subarray && dest.subarray) {\n dest.set(src.subarray(src_offs, src_offs + len), dest_offs);\n return;\n }\n // Fallback to ordinary array\n for (var i = 0; i < len; i++) {\n dest[dest_offs + i] = src[src_offs + i];\n }\n },\n // Join array of chunks to single array.\n flattenChunks: function (chunks) {\n var i, l, len, pos, chunk, result;\n\n // calculate data length\n len = 0;\n for (i = 0, l = chunks.length; i < l; i++) {\n len += chunks[i].length;\n }\n\n // join chunks\n result = new Uint8Array(len);\n pos = 0;\n for (i = 0, l = chunks.length; i < l; i++) {\n chunk = chunks[i];\n result.set(chunk, pos);\n pos += chunk.length;\n }\n\n return result;\n }\n};\n\nvar fnUntyped = {\n arraySet: function (dest, src, src_offs, len, dest_offs) {\n for (var i = 0; i < len; i++) {\n dest[dest_offs + i] = src[src_offs + i];\n }\n },\n // Join array of chunks to single array.\n flattenChunks: function (chunks) {\n return [].concat.apply([], chunks);\n }\n};\n\n\n// Enable/Disable typed arrays use, for testing\n//\nexports.setTyped = function (on) {\n if (on) {\n exports.Buf8 = Uint8Array;\n exports.Buf16 = Uint16Array;\n exports.Buf32 = Int32Array;\n exports.assign(exports, fnTyped);\n } else {\n exports.Buf8 = Array;\n exports.Buf16 = Array;\n exports.Buf32 = Array;\n exports.assign(exports, fnUntyped);\n }\n};\n\nexports.setTyped(TYPED_OK);\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n/* eslint-disable space-unary-ops */\n\nvar utils = require('../utils/common');\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n//var Z_FILTERED = 1;\n//var Z_HUFFMAN_ONLY = 2;\n//var Z_RLE = 3;\nvar Z_FIXED = 4;\n//var Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\nvar Z_BINARY = 0;\nvar Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n/*============================================================================*/\n\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n// From zutil.h\n\nvar STORED_BLOCK = 0;\nvar STATIC_TREES = 1;\nvar DYN_TREES = 2;\n/* The three kinds of block type */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\n/* The minimum and maximum match lengths */\n\n// From deflate.h\n/* ===========================================================================\n * Internal compression state.\n */\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\n\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\n\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\n\nvar D_CODES = 30;\n/* number of distance codes */\n\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\n\nvar HEAP_SIZE = 2 * L_CODES + 1;\n/* maximum heap size */\n\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar Buf_size = 16;\n/* size of bit buffer in bi_buf */\n\n\n/* ===========================================================================\n * Constants\n */\n\nvar MAX_BL_BITS = 7;\n/* Bit length codes must not exceed MAX_BL_BITS bits */\n\nvar END_BLOCK = 256;\n/* end of block literal code */\n\nvar REP_3_6 = 16;\n/* repeat previous bit length 3-6 times (2 bits of repeat count) */\n\nvar REPZ_3_10 = 17;\n/* repeat a zero length 3-10 times (3 bits of repeat count) */\n\nvar REPZ_11_138 = 18;\n/* repeat a zero length 11-138 times (7 bits of repeat count) */\n\n/* eslint-disable comma-spacing,array-bracket-spacing */\nvar extra_lbits = /* extra bits for each length code */\n [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];\n\nvar extra_dbits = /* extra bits for each distance code */\n [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];\n\nvar extra_blbits = /* extra bits for each bit length code */\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];\n\nvar bl_order =\n [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];\n/* eslint-enable comma-spacing,array-bracket-spacing */\n\n/* The lengths of the bit length codes are sent in order of decreasing\n * probability, to avoid transmitting the lengths for unused bit length codes.\n */\n\n/* ===========================================================================\n * Local data. These are initialized only once.\n */\n\n// We pre-fill arrays with 0 to avoid uninitialized gaps\n\nvar DIST_CODE_LEN = 512; /* see definition of array dist_code below */\n\n// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1\nvar static_ltree = new Array((L_CODES + 2) * 2);\nzero(static_ltree);\n/* The static literal tree. Since the bit lengths are imposed, there is no\n * need for the L_CODES extra codes used during heap construction. However\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\n * below).\n */\n\nvar static_dtree = new Array(D_CODES * 2);\nzero(static_dtree);\n/* The static distance tree. (Actually a trivial tree since all codes use\n * 5 bits.)\n */\n\nvar _dist_code = new Array(DIST_CODE_LEN);\nzero(_dist_code);\n/* Distance codes. The first 256 values correspond to the distances\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\n * the 15 bit distances.\n */\n\nvar _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);\nzero(_length_code);\n/* length code for each normalized match length (0 == MIN_MATCH) */\n\nvar base_length = new Array(LENGTH_CODES);\nzero(base_length);\n/* First normalized length for each code (0 = MIN_MATCH) */\n\nvar base_dist = new Array(D_CODES);\nzero(base_dist);\n/* First normalized distance for each code (0 = distance of 1) */\n\n\nfunction StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {\n\n this.static_tree = static_tree; /* static tree or NULL */\n this.extra_bits = extra_bits; /* extra bits for each code or NULL */\n this.extra_base = extra_base; /* base index for extra_bits */\n this.elems = elems; /* max number of elements in the tree */\n this.max_length = max_length; /* max bit length for the codes */\n\n // show if `static_tree` has data or dummy - needed for monomorphic objects\n this.has_stree = static_tree && static_tree.length;\n}\n\n\nvar static_l_desc;\nvar static_d_desc;\nvar static_bl_desc;\n\n\nfunction TreeDesc(dyn_tree, stat_desc) {\n this.dyn_tree = dyn_tree; /* the dynamic tree */\n this.max_code = 0; /* largest code with non zero frequency */\n this.stat_desc = stat_desc; /* the corresponding static tree */\n}\n\n\n\nfunction d_code(dist) {\n return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\n}\n\n\n/* ===========================================================================\n * Output a short LSB first on the stream.\n * IN assertion: there is enough room in pendingBuf.\n */\nfunction put_short(s, w) {\n// put_byte(s, (uch)((w) & 0xff));\n// put_byte(s, (uch)((ush)(w) >> 8));\n s.pending_buf[s.pending++] = (w) & 0xff;\n s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\n}\n\n\n/* ===========================================================================\n * Send a value on a given number of bits.\n * IN assertion: length <= 16 and value fits in length bits.\n */\nfunction send_bits(s, value, length) {\n if (s.bi_valid > (Buf_size - length)) {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n put_short(s, s.bi_buf);\n s.bi_buf = value >> (Buf_size - s.bi_valid);\n s.bi_valid += length - Buf_size;\n } else {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n s.bi_valid += length;\n }\n}\n\n\nfunction send_code(s, c, tree) {\n send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);\n}\n\n\n/* ===========================================================================\n * Reverse the first len bits of a code, using straightforward code (a faster\n * method would use a table)\n * IN assertion: 1 <= len <= 15\n */\nfunction bi_reverse(code, len) {\n var res = 0;\n do {\n res |= code & 1;\n code >>>= 1;\n res <<= 1;\n } while (--len > 0);\n return res >>> 1;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer, keeping at most 7 bits in it.\n */\nfunction bi_flush(s) {\n if (s.bi_valid === 16) {\n put_short(s, s.bi_buf);\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n } else if (s.bi_valid >= 8) {\n s.pending_buf[s.pending++] = s.bi_buf & 0xff;\n s.bi_buf >>= 8;\n s.bi_valid -= 8;\n }\n}\n\n\n/* ===========================================================================\n * Compute the optimal bit lengths for a tree and update the total bit length\n * for the current block.\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\n * above are the tree nodes sorted by increasing frequency.\n * OUT assertions: the field len is set to the optimal bit length, the\n * array bl_count contains the frequencies for each bit length.\n * The length opt_len is updated; static_len is also updated if stree is\n * not null.\n */\nfunction gen_bitlen(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var max_code = desc.max_code;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var extra = desc.stat_desc.extra_bits;\n var base = desc.stat_desc.extra_base;\n var max_length = desc.stat_desc.max_length;\n var h; /* heap index */\n var n, m; /* iterate over the tree elements */\n var bits; /* bit length */\n var xbits; /* extra bits */\n var f; /* frequency */\n var overflow = 0; /* number of elements with bit length too large */\n\n for (bits = 0; bits <= MAX_BITS; bits++) {\n s.bl_count[bits] = 0;\n }\n\n /* In a first pass, compute the optimal bit lengths (which may\n * overflow in the case of the bit length tree).\n */\n tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */\n\n for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {\n n = s.heap[h];\n bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;\n if (bits > max_length) {\n bits = max_length;\n overflow++;\n }\n tree[n * 2 + 1]/*.Len*/ = bits;\n /* We overwrite tree[n].Dad which is no longer needed */\n\n if (n > max_code) { continue; } /* not a leaf node */\n\n s.bl_count[bits]++;\n xbits = 0;\n if (n >= base) {\n xbits = extra[n - base];\n }\n f = tree[n * 2]/*.Freq*/;\n s.opt_len += f * (bits + xbits);\n if (has_stree) {\n s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);\n }\n }\n if (overflow === 0) { return; }\n\n // Trace((stderr,\"\\nbit length overflow\\n\"));\n /* This happens for example on obj2 and pic of the Calgary corpus */\n\n /* Find the first bit length which could increase: */\n do {\n bits = max_length - 1;\n while (s.bl_count[bits] === 0) { bits--; }\n s.bl_count[bits]--; /* move one leaf down the tree */\n s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */\n s.bl_count[max_length]--;\n /* The brother of the overflow item also moves one step up,\n * but this does not affect bl_count[max_length]\n */\n overflow -= 2;\n } while (overflow > 0);\n\n /* Now recompute all bit lengths, scanning in increasing frequency.\n * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\n * lengths instead of fixing only the wrong ones. This idea is taken\n * from 'ar' written by Haruhiko Okumura.)\n */\n for (bits = max_length; bits !== 0; bits--) {\n n = s.bl_count[bits];\n while (n !== 0) {\n m = s.heap[--h];\n if (m > max_code) { continue; }\n if (tree[m * 2 + 1]/*.Len*/ !== bits) {\n // Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\n s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;\n tree[m * 2 + 1]/*.Len*/ = bits;\n }\n n--;\n }\n }\n}\n\n\n/* ===========================================================================\n * Generate the codes for a given tree and bit counts (which need not be\n * optimal).\n * IN assertion: the array bl_count contains the bit length statistics for\n * the given tree and the field len is set for all tree elements.\n * OUT assertion: the field code is set for all tree elements of non\n * zero code length.\n */\nfunction gen_codes(tree, max_code, bl_count)\n// ct_data *tree; /* the tree to decorate */\n// int max_code; /* largest code with non zero frequency */\n// ushf *bl_count; /* number of codes at each bit length */\n{\n var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */\n var code = 0; /* running code value */\n var bits; /* bit index */\n var n; /* code index */\n\n /* The distribution counts are first used to generate the code values\n * without bit reversal.\n */\n for (bits = 1; bits <= MAX_BITS; bits++) {\n next_code[bits] = code = (code + bl_count[bits - 1]) << 1;\n }\n /* Check that the bit counts in bl_count are consistent. The last code\n * must be all ones.\n */\n //Assert (code + bl_count[MAX_BITS]-1 == (1< length code (0..28) */\n length = 0;\n for (code = 0; code < LENGTH_CODES - 1; code++) {\n base_length[code] = length;\n for (n = 0; n < (1 << extra_lbits[code]); n++) {\n _length_code[length++] = code;\n }\n }\n //Assert (length == 256, \"tr_static_init: length != 256\");\n /* Note that the length 255 (match length 258) can be represented\n * in two different ways: code 284 + 5 bits or code 285, so we\n * overwrite length_code[255] to use the best encoding:\n */\n _length_code[length - 1] = code;\n\n /* Initialize the mapping dist (0..32K) -> dist code (0..29) */\n dist = 0;\n for (code = 0; code < 16; code++) {\n base_dist[code] = dist;\n for (n = 0; n < (1 << extra_dbits[code]); n++) {\n _dist_code[dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: dist != 256\");\n dist >>= 7; /* from now on, all distances are divided by 128 */\n for (; code < D_CODES; code++) {\n base_dist[code] = dist << 7;\n for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {\n _dist_code[256 + dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n\n /* Construct the codes of the static literal tree */\n for (bits = 0; bits <= MAX_BITS; bits++) {\n bl_count[bits] = 0;\n }\n\n n = 0;\n while (n <= 143) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n while (n <= 255) {\n static_ltree[n * 2 + 1]/*.Len*/ = 9;\n n++;\n bl_count[9]++;\n }\n while (n <= 279) {\n static_ltree[n * 2 + 1]/*.Len*/ = 7;\n n++;\n bl_count[7]++;\n }\n while (n <= 287) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n /* Codes 286 and 287 do not exist, but we must include them in the\n * tree construction to get a canonical Huffman tree (longest code\n * all ones)\n */\n gen_codes(static_ltree, L_CODES + 1, bl_count);\n\n /* The static distance tree is trivial: */\n for (n = 0; n < D_CODES; n++) {\n static_dtree[n * 2 + 1]/*.Len*/ = 5;\n static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);\n }\n\n // Now data ready and we can init static trees\n static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);\n static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);\n static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);\n\n //static_init_done = true;\n}\n\n\n/* ===========================================================================\n * Initialize a new block.\n */\nfunction init_block(s) {\n var n; /* iterates over tree elements */\n\n /* Initialize the trees. */\n for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }\n\n s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;\n s.opt_len = s.static_len = 0;\n s.last_lit = s.matches = 0;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer and align the output on a byte boundary\n */\nfunction bi_windup(s)\n{\n if (s.bi_valid > 8) {\n put_short(s, s.bi_buf);\n } else if (s.bi_valid > 0) {\n //put_byte(s, (Byte)s->bi_buf);\n s.pending_buf[s.pending++] = s.bi_buf;\n }\n s.bi_buf = 0;\n s.bi_valid = 0;\n}\n\n/* ===========================================================================\n * Copy a stored block, storing first the length and its\n * one's complement if requested.\n */\nfunction copy_block(s, buf, len, header)\n//DeflateState *s;\n//charf *buf; /* the input data */\n//unsigned len; /* its length */\n//int header; /* true if block header must be written */\n{\n bi_windup(s); /* align on byte boundary */\n\n if (header) {\n put_short(s, len);\n put_short(s, ~len);\n }\n// while (len--) {\n// put_byte(s, *buf++);\n// }\n utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);\n s.pending += len;\n}\n\n/* ===========================================================================\n * Compares to subtrees, using the tree depth as tie breaker when\n * the subtrees have equal frequency. This minimizes the worst case length.\n */\nfunction smaller(tree, n, m, depth) {\n var _n2 = n * 2;\n var _m2 = m * 2;\n return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||\n (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));\n}\n\n/* ===========================================================================\n * Restore the heap property by moving down the tree starting at node k,\n * exchanging a node with the smallest of its two sons if necessary, stopping\n * when the heap property is re-established (each father smaller than its\n * two sons).\n */\nfunction pqdownheap(s, tree, k)\n// deflate_state *s;\n// ct_data *tree; /* the tree to restore */\n// int k; /* node to move down */\n{\n var v = s.heap[k];\n var j = k << 1; /* left son of k */\n while (j <= s.heap_len) {\n /* Set j to the smallest of the two sons: */\n if (j < s.heap_len &&\n smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {\n j++;\n }\n /* Exit if v is smaller than both sons */\n if (smaller(tree, v, s.heap[j], s.depth)) { break; }\n\n /* Exchange v with the smallest son */\n s.heap[k] = s.heap[j];\n k = j;\n\n /* And continue down the tree, setting j to the left son of k */\n j <<= 1;\n }\n s.heap[k] = v;\n}\n\n\n// inlined manually\n// var SMALLEST = 1;\n\n/* ===========================================================================\n * Send the block data compressed using the given Huffman trees\n */\nfunction compress_block(s, ltree, dtree)\n// deflate_state *s;\n// const ct_data *ltree; /* literal tree */\n// const ct_data *dtree; /* distance tree */\n{\n var dist; /* distance of matched string */\n var lc; /* match length or unmatched char (if dist == 0) */\n var lx = 0; /* running index in l_buf */\n var code; /* the code to send */\n var extra; /* number of extra bits to send */\n\n if (s.last_lit !== 0) {\n do {\n dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);\n lc = s.pending_buf[s.l_buf + lx];\n lx++;\n\n if (dist === 0) {\n send_code(s, lc, ltree); /* send a literal byte */\n //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n } else {\n /* Here, lc is the match length - MIN_MATCH */\n code = _length_code[lc];\n send_code(s, code + LITERALS + 1, ltree); /* send the length code */\n extra = extra_lbits[code];\n if (extra !== 0) {\n lc -= base_length[code];\n send_bits(s, lc, extra); /* send the extra length bits */\n }\n dist--; /* dist is now the match distance - 1 */\n code = d_code(dist);\n //Assert (code < D_CODES, \"bad d_code\");\n\n send_code(s, code, dtree); /* send the distance code */\n extra = extra_dbits[code];\n if (extra !== 0) {\n dist -= base_dist[code];\n send_bits(s, dist, extra); /* send the extra distance bits */\n }\n } /* literal or match pair ? */\n\n /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */\n //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n // \"pendingBuf overflow\");\n\n } while (lx < s.last_lit);\n }\n\n send_code(s, END_BLOCK, ltree);\n}\n\n\n/* ===========================================================================\n * Construct one Huffman tree and assigns the code bit strings and lengths.\n * Update the total bit length for the current block.\n * IN assertion: the field freq is set for all tree elements.\n * OUT assertions: the fields len and code are set to the optimal bit length\n * and corresponding code. The length opt_len is updated; static_len is\n * also updated if stree is not null. The field max_code is set.\n */\nfunction build_tree(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var elems = desc.stat_desc.elems;\n var n, m; /* iterate over heap elements */\n var max_code = -1; /* largest code with non zero frequency */\n var node; /* new node being created */\n\n /* Construct the initial heap, with least frequent element in\n * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\n * heap[0] is not used.\n */\n s.heap_len = 0;\n s.heap_max = HEAP_SIZE;\n\n for (n = 0; n < elems; n++) {\n if (tree[n * 2]/*.Freq*/ !== 0) {\n s.heap[++s.heap_len] = max_code = n;\n s.depth[n] = 0;\n\n } else {\n tree[n * 2 + 1]/*.Len*/ = 0;\n }\n }\n\n /* The pkzip format requires that at least one distance code exists,\n * and that at least one bit should be sent even if there is only one\n * possible code. So to avoid special checks later on we force at least\n * two codes of non zero frequency.\n */\n while (s.heap_len < 2) {\n node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\n tree[node * 2]/*.Freq*/ = 1;\n s.depth[node] = 0;\n s.opt_len--;\n\n if (has_stree) {\n s.static_len -= stree[node * 2 + 1]/*.Len*/;\n }\n /* node is 0 or 1 so it does not have extra bits */\n }\n desc.max_code = max_code;\n\n /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\n * establish sub-heaps of increasing lengths:\n */\n for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }\n\n /* Construct the Huffman tree by repeatedly combining the least two\n * frequent nodes.\n */\n node = elems; /* next internal node of the tree */\n do {\n //pqremove(s, tree, n); /* n = node of least frequency */\n /*** pqremove ***/\n n = s.heap[1/*SMALLEST*/];\n s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];\n pqdownheap(s, tree, 1/*SMALLEST*/);\n /***/\n\n m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */\n\n s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\n s.heap[--s.heap_max] = m;\n\n /* Create a new node father of n and m */\n tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;\n s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\n tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;\n\n /* and insert the new node in the heap */\n s.heap[1/*SMALLEST*/] = node++;\n pqdownheap(s, tree, 1/*SMALLEST*/);\n\n } while (s.heap_len >= 2);\n\n s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];\n\n /* At this point, the fields freq and dad are set. We can now\n * generate the bit lengths.\n */\n gen_bitlen(s, desc);\n\n /* The field len is now set, we can generate the bit codes */\n gen_codes(tree, max_code, s.bl_count);\n}\n\n\n/* ===========================================================================\n * Scan a literal or distance tree to determine the frequencies of the codes\n * in the bit length tree.\n */\nfunction scan_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n s.bl_tree[curlen * 2]/*.Freq*/ += count;\n\n } else if (curlen !== 0) {\n\n if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }\n s.bl_tree[REP_3_6 * 2]/*.Freq*/++;\n\n } else if (count <= 10) {\n s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;\n\n } else {\n s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;\n }\n\n count = 0;\n prevlen = curlen;\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Send a literal or distance tree in compressed form, using the codes in\n * bl_tree.\n */\nfunction send_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n /* tree[max_code+1].Len = -1; */ /* guard already set */\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);\n\n } else if (curlen !== 0) {\n if (curlen !== prevlen) {\n send_code(s, curlen, s.bl_tree);\n count--;\n }\n //Assert(count >= 3 && count <= 6, \" 3_6?\");\n send_code(s, REP_3_6, s.bl_tree);\n send_bits(s, count - 3, 2);\n\n } else if (count <= 10) {\n send_code(s, REPZ_3_10, s.bl_tree);\n send_bits(s, count - 3, 3);\n\n } else {\n send_code(s, REPZ_11_138, s.bl_tree);\n send_bits(s, count - 11, 7);\n }\n\n count = 0;\n prevlen = curlen;\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Construct the Huffman tree for the bit lengths and return the index in\n * bl_order of the last bit length code to send.\n */\nfunction build_bl_tree(s) {\n var max_blindex; /* index of last bit length code of non zero freq */\n\n /* Determine the bit length frequencies for literal and distance trees */\n scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\n scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\n\n /* Build the bit length tree: */\n build_tree(s, s.bl_desc);\n /* opt_len now includes the length of the tree representations, except\n * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\n */\n\n /* Determine the number of bit length codes to send. The pkzip format\n * requires that at least 4 bit length codes be sent. (appnote.txt says\n * 3 but the actual value used is 4.)\n */\n for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {\n if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {\n break;\n }\n }\n /* Update opt_len to include the bit length tree and counts */\n s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\n //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n // s->opt_len, s->static_len));\n\n return max_blindex;\n}\n\n\n/* ===========================================================================\n * Send the header for a block using dynamic Huffman trees: the counts, the\n * lengths of the bit length codes, the literal tree and the distance tree.\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n */\nfunction send_all_trees(s, lcodes, dcodes, blcodes)\n// deflate_state *s;\n// int lcodes, dcodes, blcodes; /* number of codes for each tree */\n{\n var rank; /* index in bl_order */\n\n //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n // \"too many codes\");\n //Tracev((stderr, \"\\nbl counts: \"));\n send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */\n send_bits(s, dcodes - 1, 5);\n send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */\n for (rank = 0; rank < blcodes; rank++) {\n //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\n send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);\n }\n //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */\n //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */\n //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n}\n\n\n/* ===========================================================================\n * Check if the data type is TEXT or BINARY, using the following algorithm:\n * - TEXT if the two conditions below are satisfied:\n * a) There are no non-portable control characters belonging to the\n * \"black list\" (0..6, 14..25, 28..31).\n * b) There is at least one printable character belonging to the\n * \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\n * - BINARY otherwise.\n * - The following partially-portable control characters form a\n * \"gray list\" that is ignored in this detection algorithm:\n * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\n * IN assertion: the fields Freq of dyn_ltree are set.\n */\nfunction detect_data_type(s) {\n /* black_mask is the bit mask of black-listed bytes\n * set bits 0..6, 14..25, and 28..31\n * 0xf3ffc07f = binary 11110011111111111100000001111111\n */\n var black_mask = 0xf3ffc07f;\n var n;\n\n /* Check for non-textual (\"black-listed\") bytes. */\n for (n = 0; n <= 31; n++, black_mask >>>= 1) {\n if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {\n return Z_BINARY;\n }\n }\n\n /* Check for textual (\"white-listed\") bytes. */\n if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||\n s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n for (n = 32; n < LITERALS; n++) {\n if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n }\n\n /* There are no \"black-listed\" or \"white-listed\" bytes:\n * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\n */\n return Z_BINARY;\n}\n\n\nvar static_init_done = false;\n\n/* ===========================================================================\n * Initialize the tree data structures for a new zlib stream.\n */\nfunction _tr_init(s)\n{\n\n if (!static_init_done) {\n tr_static_init();\n static_init_done = true;\n }\n\n s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);\n s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);\n s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\n\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n /* Initialize the first block of the first file: */\n init_block(s);\n}\n\n\n/* ===========================================================================\n * Send a stored block\n */\nfunction _tr_stored_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */\n copy_block(s, buf, stored_len, true); /* with header */\n}\n\n\n/* ===========================================================================\n * Send one empty static block to give enough lookahead for inflate.\n * This takes 10 bits, of which 7 may remain in the bit buffer.\n */\nfunction _tr_align(s) {\n send_bits(s, STATIC_TREES << 1, 3);\n send_code(s, END_BLOCK, static_ltree);\n bi_flush(s);\n}\n\n\n/* ===========================================================================\n * Determine the best encoding for the current block: dynamic trees, static\n * trees or store, and output the encoded block to the zip file.\n */\nfunction _tr_flush_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block, or NULL if too old */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n var opt_lenb, static_lenb; /* opt_len and static_len in bytes */\n var max_blindex = 0; /* index of last bit length code of non zero freq */\n\n /* Build the Huffman trees unless a stored block is forced */\n if (s.level > 0) {\n\n /* Check if the file is binary or text */\n if (s.strm.data_type === Z_UNKNOWN) {\n s.strm.data_type = detect_data_type(s);\n }\n\n /* Construct the literal and distance trees */\n build_tree(s, s.l_desc);\n // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n\n build_tree(s, s.d_desc);\n // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n /* At this point, opt_len and static_len are the total bit lengths of\n * the compressed block data, excluding the tree representations.\n */\n\n /* Build the bit length tree for the above two trees, and get the index\n * in bl_order of the last bit length code to send.\n */\n max_blindex = build_bl_tree(s);\n\n /* Determine the best encoding. Compute the block lengths in bytes. */\n opt_lenb = (s.opt_len + 3 + 7) >>> 3;\n static_lenb = (s.static_len + 3 + 7) >>> 3;\n\n // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n // s->last_lit));\n\n if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }\n\n } else {\n // Assert(buf != (char*)0, \"lost buf\");\n opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\n }\n\n if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {\n /* 4: two words for the lengths */\n\n /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n * Otherwise we can't have processed more than WSIZE input bytes since\n * the last block flush, because compression would have been\n * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n * transform a block into a stored block.\n */\n _tr_stored_block(s, buf, stored_len, last);\n\n } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {\n\n send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);\n compress_block(s, static_ltree, static_dtree);\n\n } else {\n send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);\n send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);\n compress_block(s, s.dyn_ltree, s.dyn_dtree);\n }\n // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n /* The above check is made mod 2^32, for files larger than 512 MB\n * and uLong implemented on 32 bits.\n */\n init_block(s);\n\n if (last) {\n bi_windup(s);\n }\n // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n // s->compressed_len-7*last));\n}\n\n/* ===========================================================================\n * Save the match info and tally the frequency counts. Return true if\n * the current block must be flushed.\n */\nfunction _tr_tally(s, dist, lc)\n// deflate_state *s;\n// unsigned dist; /* distance of matched string */\n// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{\n //var out_length, in_length, dcode;\n\n s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;\n s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;\n\n s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;\n s.last_lit++;\n\n if (dist === 0) {\n /* lc is the unmatched char */\n s.dyn_ltree[lc * 2]/*.Freq*/++;\n } else {\n s.matches++;\n /* Here, lc is the match length - MIN_MATCH */\n dist--; /* dist = match distance - 1 */\n //Assert((ush)dist < (ush)MAX_DIST(s) &&\n // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n // (ush)d_code(dist) < (ush)D_CODES, \"_tr_tally: bad match\");\n\n s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;\n s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n\n//#ifdef TRUNCATE_BLOCK\n// /* Try to guess if it is profitable to stop the current block here */\n// if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n// /* Compute an upper bound for the compressed length */\n// out_length = s.last_lit*8;\n// in_length = s.strstart - s.block_start;\n//\n// for (dcode = 0; dcode < D_CODES; dcode++) {\n// out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n// }\n// out_length >>>= 3;\n// //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n// // s->last_lit, in_length, out_length,\n// // 100L - out_length*100L/in_length));\n// if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n// return true;\n// }\n// }\n//#endif\n\n return (s.last_lit === s.lit_bufsize - 1);\n /* We avoid equality with lit_bufsize because of wraparound at 64K\n * on 16 bit machines and because stored blocks are restricted to\n * 64K-1 bytes.\n */\n}\n\nexports._tr_init = _tr_init;\nexports._tr_stored_block = _tr_stored_block;\nexports._tr_flush_block = _tr_flush_block;\nexports._tr_tally = _tr_tally;\nexports._tr_align = _tr_align;\n", "'use strict';\n\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It isn't worth it to make additional optimizations as in original.\n// Small size is preferable.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction adler32(adler, buf, len, pos) {\n var s1 = (adler & 0xffff) |0,\n s2 = ((adler >>> 16) & 0xffff) |0,\n n = 0;\n\n while (len !== 0) {\n // Set limit ~ twice less than 5552, to keep\n // s2 in 31-bits, because we force signed ints.\n // in other case %= will fail.\n n = len > 2000 ? 2000 : len;\n len -= n;\n\n do {\n s1 = (s1 + buf[pos++]) |0;\n s2 = (s2 + s1) |0;\n } while (--n);\n\n s1 %= 65521;\n s2 %= 65521;\n }\n\n return (s1 | (s2 << 16)) |0;\n}\n\n\nmodule.exports = adler32;\n", "'use strict';\n\n// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// Use ordinary array, since untyped makes no boost here\nfunction makeTable() {\n var c, table = [];\n\n for (var n = 0; n < 256; n++) {\n c = n;\n for (var k = 0; k < 8; k++) {\n c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\n }\n table[n] = c;\n }\n\n return table;\n}\n\n// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable = makeTable();\n\n\nfunction crc32(crc, buf, len, pos) {\n var t = crcTable,\n end = pos + len;\n\n crc ^= -1;\n\n for (var i = pos; i < end; i++) {\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\n }\n\n return (crc ^ (-1)); // >>> 0;\n}\n\n\nmodule.exports = crc32;\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nmodule.exports = {\n 2: 'need dictionary', /* Z_NEED_DICT 2 */\n 1: 'stream end', /* Z_STREAM_END 1 */\n 0: '', /* Z_OK 0 */\n '-1': 'file error', /* Z_ERRNO (-1) */\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\n};\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = require('../utils/common');\nvar trees = require('./trees');\nvar adler32 = require('./adler32');\nvar crc32 = require('./crc32');\nvar msg = require('./messages');\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\nvar Z_NO_FLUSH = 0;\nvar Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\nvar Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\n//var Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\n//var Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\n//var Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n\n/* compression levels */\n//var Z_NO_COMPRESSION = 0;\n//var Z_BEST_SPEED = 1;\n//var Z_BEST_COMPRESSION = 9;\nvar Z_DEFAULT_COMPRESSION = -1;\n\n\nvar Z_FILTERED = 1;\nvar Z_HUFFMAN_ONLY = 2;\nvar Z_RLE = 3;\nvar Z_FIXED = 4;\nvar Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\n//var Z_BINARY = 0;\n//var Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n/*============================================================================*/\n\n\nvar MAX_MEM_LEVEL = 9;\n/* Maximum value for memLevel in deflateInit2 */\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_MEM_LEVEL = 8;\n\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\nvar D_CODES = 30;\n/* number of distance codes */\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\nvar HEAP_SIZE = 2 * L_CODES + 1;\n/* maximum heap size */\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\nvar MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\n\nvar PRESET_DICT = 0x20;\n\nvar INIT_STATE = 42;\nvar EXTRA_STATE = 69;\nvar NAME_STATE = 73;\nvar COMMENT_STATE = 91;\nvar HCRC_STATE = 103;\nvar BUSY_STATE = 113;\nvar FINISH_STATE = 666;\n\nvar BS_NEED_MORE = 1; /* block not completed, need more input or more output */\nvar BS_BLOCK_DONE = 2; /* block flush performed */\nvar BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */\nvar BS_FINISH_DONE = 4; /* finish done, accept no more input or output */\n\nvar OS_CODE = 0x03; // Unix :) . Don't detect, use this default.\n\nfunction err(strm, errorCode) {\n strm.msg = msg[errorCode];\n return errorCode;\n}\n\nfunction rank(f) {\n return ((f) << 1) - ((f) > 4 ? 9 : 0);\n}\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n\n/* =========================================================================\n * Flush as much pending output as possible. All deflate() output goes\n * through this function so some applications may wish to modify it\n * to avoid allocating a large strm->output buffer and copying into it.\n * (See also read_buf()).\n */\nfunction flush_pending(strm) {\n var s = strm.state;\n\n //_tr_flush_bits(s);\n var len = s.pending;\n if (len > strm.avail_out) {\n len = strm.avail_out;\n }\n if (len === 0) { return; }\n\n utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);\n strm.next_out += len;\n s.pending_out += len;\n strm.total_out += len;\n strm.avail_out -= len;\n s.pending -= len;\n if (s.pending === 0) {\n s.pending_out = 0;\n }\n}\n\n\nfunction flush_block_only(s, last) {\n trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);\n s.block_start = s.strstart;\n flush_pending(s.strm);\n}\n\n\nfunction put_byte(s, b) {\n s.pending_buf[s.pending++] = b;\n}\n\n\n/* =========================================================================\n * Put a short in the pending buffer. The 16-bit value is put in MSB order.\n * IN assertion: the stream state is correct and there is enough room in\n * pending_buf.\n */\nfunction putShortMSB(s, b) {\n// put_byte(s, (Byte)(b >> 8));\n// put_byte(s, (Byte)(b & 0xff));\n s.pending_buf[s.pending++] = (b >>> 8) & 0xff;\n s.pending_buf[s.pending++] = b & 0xff;\n}\n\n\n/* ===========================================================================\n * Read a new buffer from the current input stream, update the adler32\n * and total number of bytes read. All deflate() input goes through\n * this function so some applications may wish to modify it to avoid\n * allocating a large strm->input buffer and copying from it.\n * (See also flush_pending()).\n */\nfunction read_buf(strm, buf, start, size) {\n var len = strm.avail_in;\n\n if (len > size) { len = size; }\n if (len === 0) { return 0; }\n\n strm.avail_in -= len;\n\n // zmemcpy(buf, strm->next_in, len);\n utils.arraySet(buf, strm.input, strm.next_in, len, start);\n if (strm.state.wrap === 1) {\n strm.adler = adler32(strm.adler, buf, len, start);\n }\n\n else if (strm.state.wrap === 2) {\n strm.adler = crc32(strm.adler, buf, len, start);\n }\n\n strm.next_in += len;\n strm.total_in += len;\n\n return len;\n}\n\n\n/* ===========================================================================\n * Set match_start to the longest match starting at the given string and\n * return its length. Matches shorter or equal to prev_length are discarded,\n * in which case the result is equal to prev_length and match_start is\n * garbage.\n * IN assertions: cur_match is the head of the hash chain for the current\n * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\n * OUT assertion: the match length is not greater than s->lookahead.\n */\nfunction longest_match(s, cur_match) {\n var chain_length = s.max_chain_length; /* max hash chain length */\n var scan = s.strstart; /* current string */\n var match; /* matched string */\n var len; /* length of current match */\n var best_len = s.prev_length; /* best match length so far */\n var nice_match = s.nice_match; /* stop if match long enough */\n var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?\n s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;\n\n var _win = s.window; // shortcut\n\n var wmask = s.w_mask;\n var prev = s.prev;\n\n /* Stop when cur_match becomes <= limit. To simplify the code,\n * we prevent matches with the string of window index 0.\n */\n\n var strend = s.strstart + MAX_MATCH;\n var scan_end1 = _win[scan + best_len - 1];\n var scan_end = _win[scan + best_len];\n\n /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\n * It is easy to get rid of this optimization if necessary.\n */\n // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n\n /* Do not waste too much time if we already have a good match: */\n if (s.prev_length >= s.good_match) {\n chain_length >>= 2;\n }\n /* Do not look for matches beyond the end of the input. This is necessary\n * to make deflate deterministic.\n */\n if (nice_match > s.lookahead) { nice_match = s.lookahead; }\n\n // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\n\n do {\n // Assert(cur_match < s->strstart, \"no future\");\n match = cur_match;\n\n /* Skip to next match if the match length cannot increase\n * or if the match length is less than 2. Note that the checks below\n * for insufficient lookahead only occur occasionally for performance\n * reasons. Therefore uninitialized memory will be accessed, and\n * conditional jumps will be made that depend on those values.\n * However the length of the match is limited to the lookahead, so\n * the output of deflate is not affected by the uninitialized values.\n */\n\n if (_win[match + best_len] !== scan_end ||\n _win[match + best_len - 1] !== scan_end1 ||\n _win[match] !== _win[scan] ||\n _win[++match] !== _win[scan + 1]) {\n continue;\n }\n\n /* The check at best_len-1 can be removed because it will be made\n * again later. (This heuristic is not always a win.)\n * It is not necessary to compare scan[2] and match[2] since they\n * are always equal when the other bytes match, given that\n * the hash keys are equal and that HASH_BITS >= 8.\n */\n scan += 2;\n match++;\n // Assert(*scan == *match, \"match[2]?\");\n\n /* We check for insufficient lookahead only every 8th comparison;\n * the 256th check will be made at strstart+258.\n */\n do {\n /*jshint noempty:false*/\n } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n scan < strend);\n\n // Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\n\n len = MAX_MATCH - (strend - scan);\n scan = strend - MAX_MATCH;\n\n if (len > best_len) {\n s.match_start = cur_match;\n best_len = len;\n if (len >= nice_match) {\n break;\n }\n scan_end1 = _win[scan + best_len - 1];\n scan_end = _win[scan + best_len];\n }\n } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);\n\n if (best_len <= s.lookahead) {\n return best_len;\n }\n return s.lookahead;\n}\n\n\n/* ===========================================================================\n * Fill the window when the lookahead becomes insufficient.\n * Updates strstart and lookahead.\n *\n * IN assertion: lookahead < MIN_LOOKAHEAD\n * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\n * At least one byte has been read, or avail_in == 0; reads are\n * performed for at least two bytes (required for the zip translate_eol\n * option -- not supported here).\n */\nfunction fill_window(s) {\n var _w_size = s.w_size;\n var p, n, m, more, str;\n\n //Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\n\n do {\n more = s.window_size - s.lookahead - s.strstart;\n\n // JS ints have 32 bit, block below not needed\n /* Deal with !@#$% 64K limit: */\n //if (sizeof(int) <= 2) {\n // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n // more = wsize;\n //\n // } else if (more == (unsigned)(-1)) {\n // /* Very unlikely, but possible on 16 bit machine if\n // * strstart == 0 && lookahead == 1 (input done a byte at time)\n // */\n // more--;\n // }\n //}\n\n\n /* If the window is almost full and there is insufficient lookahead,\n * move the upper half to the lower one to make room in the upper half.\n */\n if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {\n\n utils.arraySet(s.window, s.window, _w_size, _w_size, 0);\n s.match_start -= _w_size;\n s.strstart -= _w_size;\n /* we now have strstart >= MAX_DIST */\n s.block_start -= _w_size;\n\n /* Slide the hash table (could be avoided with 32 bit values\n at the expense of memory usage). We slide even when level == 0\n to keep the hash table consistent if we switch back to level > 0\n later. (Using level 0 permanently is not an optimal usage of\n zlib, so we don't care about this pathological case.)\n */\n\n n = s.hash_size;\n p = n;\n do {\n m = s.head[--p];\n s.head[p] = (m >= _w_size ? m - _w_size : 0);\n } while (--n);\n\n n = _w_size;\n p = n;\n do {\n m = s.prev[--p];\n s.prev[p] = (m >= _w_size ? m - _w_size : 0);\n /* If n is not on any hash chain, prev[n] is garbage but\n * its value will never be used.\n */\n } while (--n);\n\n more += _w_size;\n }\n if (s.strm.avail_in === 0) {\n break;\n }\n\n /* If there was no sliding:\n * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\n * more == window_size - lookahead - strstart\n * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\n * => more >= window_size - 2*WSIZE + 2\n * In the BIG_MEM or MMAP case (not yet supported),\n * window_size == input_size + MIN_LOOKAHEAD &&\n * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\n * Otherwise, window_size == 2*WSIZE so more >= 2.\n * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\n */\n //Assert(more >= 2, \"more < 2\");\n n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);\n s.lookahead += n;\n\n /* Initialize the hash value now that we have some input: */\n if (s.lookahead + s.insert >= MIN_MATCH) {\n str = s.strstart - s.insert;\n s.ins_h = s.window[str];\n\n /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;\n//#if MIN_MATCH != 3\n// Call update_hash() MIN_MATCH-3 more times\n//#endif\n while (s.insert) {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = str;\n str++;\n s.insert--;\n if (s.lookahead + s.insert < MIN_MATCH) {\n break;\n }\n }\n }\n /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\n * but this is not important since only literal bytes will be emitted.\n */\n\n } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);\n\n /* If the WIN_INIT bytes after the end of the current data have never been\n * written, then zero those bytes in order to avoid memory check reports of\n * the use of uninitialized (or uninitialised as Julian writes) bytes by\n * the longest match routines. Update the high water mark for the next\n * time through here. WIN_INIT is set to MAX_MATCH since the longest match\n * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\n */\n// if (s.high_water < s.window_size) {\n// var curr = s.strstart + s.lookahead;\n// var init = 0;\n//\n// if (s.high_water < curr) {\n// /* Previous high water mark below current data -- zero WIN_INIT\n// * bytes or up to end of window, whichever is less.\n// */\n// init = s.window_size - curr;\n// if (init > WIN_INIT)\n// init = WIN_INIT;\n// zmemzero(s->window + curr, (unsigned)init);\n// s->high_water = curr + init;\n// }\n// else if (s->high_water < (ulg)curr + WIN_INIT) {\n// /* High water mark at or above current data, but below current data\n// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n// * to end of window, whichever is less.\n// */\n// init = (ulg)curr + WIN_INIT - s->high_water;\n// if (init > s->window_size - s->high_water)\n// init = s->window_size - s->high_water;\n// zmemzero(s->window + s->high_water, (unsigned)init);\n// s->high_water += init;\n// }\n// }\n//\n// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n// \"not enough room for search\");\n}\n\n/* ===========================================================================\n * Copy without compression as much as possible from the input stream, return\n * the current block state.\n * This function does not insert new strings in the dictionary since\n * uncompressible data is probably not useful. This function is used\n * only for the level=0 compression option.\n * NOTE: this function should be optimized to avoid extra copying from\n * window to pending_buf.\n */\nfunction deflate_stored(s, flush) {\n /* Stored blocks are limited to 0xffff bytes, pending_buf is limited\n * to pending_buf_size, and each stored block has a 5 byte header:\n */\n var max_block_size = 0xffff;\n\n if (max_block_size > s.pending_buf_size - 5) {\n max_block_size = s.pending_buf_size - 5;\n }\n\n /* Copy as much as possible from input to output: */\n for (;;) {\n /* Fill the window as much as possible: */\n if (s.lookahead <= 1) {\n\n //Assert(s->strstart < s->w_size+MAX_DIST(s) ||\n // s->block_start >= (long)s->w_size, \"slide too late\");\n// if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\n// s.block_start >= s.w_size)) {\n// throw new Error(\"slide too late\");\n// }\n\n fill_window(s);\n if (s.lookahead === 0 && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n\n if (s.lookahead === 0) {\n break;\n }\n /* flush the current block */\n }\n //Assert(s->block_start >= 0L, \"block gone\");\n// if (s.block_start < 0) throw new Error(\"block gone\");\n\n s.strstart += s.lookahead;\n s.lookahead = 0;\n\n /* Emit a stored block if pending_buf will be full: */\n var max_start = s.block_start + max_block_size;\n\n if (s.strstart === 0 || s.strstart >= max_start) {\n /* strstart == 0 is possible when wraparound on 16-bit machine */\n s.lookahead = s.strstart - max_start;\n s.strstart = max_start;\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n\n\n }\n /* Flush if we may have to slide, otherwise block_start may become\n * negative and the data will be gone:\n */\n if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n\n s.insert = 0;\n\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n\n if (s.strstart > s.block_start) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_NEED_MORE;\n}\n\n/* ===========================================================================\n * Compress as much as possible from the input stream, return the current\n * block state.\n * This function does not perform lazy evaluation of matches and inserts\n * new strings in the dictionary only for unmatched strings or for short\n * matches. It is used only for the fast compression options.\n */\nfunction deflate_fast(s, flush) {\n var hash_head; /* head of the hash chain */\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break; /* flush the current block */\n }\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n * At this point we have always match_length < MIN_MATCH\n */\n if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n }\n if (s.match_length >= MIN_MATCH) {\n // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n\n /*** _tr_tally_dist(s, s.strstart - s.match_start,\n s.match_length - MIN_MATCH, bflush); ***/\n bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n\n /* Insert new strings in the hash table only if the match length\n * is not too large. This saves time but degrades compression.\n */\n if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {\n s.match_length--; /* string at strstart already in table */\n do {\n s.strstart++;\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n /* strstart never exceeds WSIZE-MAX_MATCH, so there are\n * always MIN_MATCH bytes ahead.\n */\n } while (--s.match_length !== 0);\n s.strstart++;\n } else\n {\n s.strstart += s.match_length;\n s.match_length = 0;\n s.ins_h = s.window[s.strstart];\n /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;\n\n//#if MIN_MATCH != 3\n// Call UPDATE_HASH() MIN_MATCH-3 more times\n//#endif\n /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\n * matter since it will be recomputed at next deflate call.\n */\n }\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* ===========================================================================\n * Same as above, but achieves better compression. We use a lazy\n * evaluation for matches: a match is finally adopted only if there is\n * no better match at the next window position.\n */\nfunction deflate_slow(s, flush) {\n var hash_head; /* head of hash chain */\n var bflush; /* set if current block must be flushed */\n\n var max_insert;\n\n /* Process the input block. */\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n */\n s.prev_length = s.match_length;\n s.prev_match = s.match_start;\n s.match_length = MIN_MATCH - 1;\n\n if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&\n s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n\n if (s.match_length <= 5 &&\n (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {\n\n /* If prev_match is also MIN_MATCH, match_start is garbage\n * but we will ignore the current match anyway.\n */\n s.match_length = MIN_MATCH - 1;\n }\n }\n /* If there was a match at the previous step and the current\n * match is not better, output the previous match:\n */\n if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {\n max_insert = s.strstart + s.lookahead - MIN_MATCH;\n /* Do not insert strings in hash table beyond this. */\n\n //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n\n /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\n s.prev_length - MIN_MATCH, bflush);***/\n bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);\n /* Insert in hash table all strings up to the end of the match.\n * strstart-1 and strstart are already inserted. If there is not\n * enough lookahead, the last two strings are not inserted in\n * the hash table.\n */\n s.lookahead -= s.prev_length - 1;\n s.prev_length -= 2;\n do {\n if (++s.strstart <= max_insert) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n } while (--s.prev_length !== 0);\n s.match_available = 0;\n s.match_length = MIN_MATCH - 1;\n s.strstart++;\n\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n } else if (s.match_available) {\n /* If there was no match at the previous position, output a\n * single literal. If there was a match but the current match\n * is longer, truncate the previous match to a single literal.\n */\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);\n\n if (bflush) {\n /*** FLUSH_BLOCK_ONLY(s, 0) ***/\n flush_block_only(s, false);\n /***/\n }\n s.strstart++;\n s.lookahead--;\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n } else {\n /* There is no previous match to compare with, wait for\n * the next step to decide.\n */\n s.match_available = 1;\n s.strstart++;\n s.lookahead--;\n }\n }\n //Assert (flush != Z_NO_FLUSH, \"no flush?\");\n if (s.match_available) {\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);\n\n s.match_available = 0;\n }\n s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_BLOCK_DONE;\n}\n\n\n/* ===========================================================================\n * For Z_RLE, simply look for runs of bytes, generate matches only of distance\n * one. Do not maintain a hash table. (It will be regenerated if this run of\n * deflate switches away from Z_RLE.)\n */\nfunction deflate_rle(s, flush) {\n var bflush; /* set if current block must be flushed */\n var prev; /* byte at distance one to match */\n var scan, strend; /* scan goes up to strend for length of run */\n\n var _win = s.window;\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the longest run, plus one for the unrolled loop.\n */\n if (s.lookahead <= MAX_MATCH) {\n fill_window(s);\n if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* See how many times the previous byte repeats */\n s.match_length = 0;\n if (s.lookahead >= MIN_MATCH && s.strstart > 0) {\n scan = s.strstart - 1;\n prev = _win[scan];\n if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {\n strend = s.strstart + MAX_MATCH;\n do {\n /*jshint noempty:false*/\n } while (prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n scan < strend);\n s.match_length = MAX_MATCH - (strend - scan);\n if (s.match_length > s.lookahead) {\n s.match_length = s.lookahead;\n }\n }\n //Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n }\n\n /* Emit match if have run of MIN_MATCH or longer, else emit literal */\n if (s.match_length >= MIN_MATCH) {\n //check_match(s, s.strstart, s.strstart - 1, s.match_length);\n\n /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/\n bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n s.strstart += s.match_length;\n s.match_length = 0;\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* ===========================================================================\n * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.\n * (It will be regenerated if this run of deflate switches away from Huffman.)\n */\nfunction deflate_huff(s, flush) {\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we have a literal to write. */\n if (s.lookahead === 0) {\n fill_window(s);\n if (s.lookahead === 0) {\n if (flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n break; /* flush the current block */\n }\n }\n\n /* Output a literal byte */\n s.match_length = 0;\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n s.lookahead--;\n s.strstart++;\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* Values for max_lazy_match, good_match and max_chain_length, depending on\n * the desired pack level (0..9). The values given below have been tuned to\n * exclude worst case performance for pathological files. Better values may be\n * found for specific files.\n */\nfunction Config(good_length, max_lazy, nice_length, max_chain, func) {\n this.good_length = good_length;\n this.max_lazy = max_lazy;\n this.nice_length = nice_length;\n this.max_chain = max_chain;\n this.func = func;\n}\n\nvar configuration_table;\n\nconfiguration_table = [\n /* good lazy nice chain */\n new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */\n new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */\n new Config(4, 5, 16, 8, deflate_fast), /* 2 */\n new Config(4, 6, 32, 32, deflate_fast), /* 3 */\n\n new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */\n new Config(8, 16, 32, 32, deflate_slow), /* 5 */\n new Config(8, 16, 128, 128, deflate_slow), /* 6 */\n new Config(8, 32, 128, 256, deflate_slow), /* 7 */\n new Config(32, 128, 258, 1024, deflate_slow), /* 8 */\n new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */\n];\n\n\n/* ===========================================================================\n * Initialize the \"longest match\" routines for a new zlib stream\n */\nfunction lm_init(s) {\n s.window_size = 2 * s.w_size;\n\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n\n /* Set the default configuration parameters:\n */\n s.max_lazy_match = configuration_table[s.level].max_lazy;\n s.good_match = configuration_table[s.level].good_length;\n s.nice_match = configuration_table[s.level].nice_length;\n s.max_chain_length = configuration_table[s.level].max_chain;\n\n s.strstart = 0;\n s.block_start = 0;\n s.lookahead = 0;\n s.insert = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n s.ins_h = 0;\n}\n\n\nfunction DeflateState() {\n this.strm = null; /* pointer back to this zlib stream */\n this.status = 0; /* as the name implies */\n this.pending_buf = null; /* output still pending */\n this.pending_buf_size = 0; /* size of pending_buf */\n this.pending_out = 0; /* next pending byte to output to the stream */\n this.pending = 0; /* nb of bytes in the pending buffer */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.gzhead = null; /* gzip header information to write */\n this.gzindex = 0; /* where in extra, name, or comment */\n this.method = Z_DEFLATED; /* can only be DEFLATED */\n this.last_flush = -1; /* value of flush param for previous deflate call */\n\n this.w_size = 0; /* LZ77 window size (32K by default) */\n this.w_bits = 0; /* log2(w_size) (8..16) */\n this.w_mask = 0; /* w_size - 1 */\n\n this.window = null;\n /* Sliding window. Input bytes are read into the second half of the window,\n * and move to the first half later to keep a dictionary of at least wSize\n * bytes. With this organization, matches are limited to a distance of\n * wSize-MAX_MATCH bytes, but this ensures that IO is always\n * performed with a length multiple of the block size.\n */\n\n this.window_size = 0;\n /* Actual size of window: 2*wSize, except when the user input buffer\n * is directly used as sliding window.\n */\n\n this.prev = null;\n /* Link to older string with same hash index. To limit the size of this\n * array to 64K, this link is maintained only for the last 32K strings.\n * An index in this array is thus a window index modulo 32K.\n */\n\n this.head = null; /* Heads of the hash chains or NIL. */\n\n this.ins_h = 0; /* hash index of string to be inserted */\n this.hash_size = 0; /* number of elements in hash table */\n this.hash_bits = 0; /* log2(hash_size) */\n this.hash_mask = 0; /* hash_size-1 */\n\n this.hash_shift = 0;\n /* Number of bits by which ins_h must be shifted at each input\n * step. It must be such that after MIN_MATCH steps, the oldest\n * byte no longer takes part in the hash key, that is:\n * hash_shift * MIN_MATCH >= hash_bits\n */\n\n this.block_start = 0;\n /* Window position at the beginning of the current output block. Gets\n * negative when the window is moved backwards.\n */\n\n this.match_length = 0; /* length of best match */\n this.prev_match = 0; /* previous match */\n this.match_available = 0; /* set if previous match exists */\n this.strstart = 0; /* start of string to insert */\n this.match_start = 0; /* start of matching string */\n this.lookahead = 0; /* number of valid bytes ahead in window */\n\n this.prev_length = 0;\n /* Length of the best match at previous step. Matches not greater than this\n * are discarded. This is used in the lazy match evaluation.\n */\n\n this.max_chain_length = 0;\n /* To speed up deflation, hash chains are never searched beyond this\n * length. A higher limit improves compression ratio but degrades the\n * speed.\n */\n\n this.max_lazy_match = 0;\n /* Attempt to find a better match only when the current match is strictly\n * smaller than this value. This mechanism is used only for compression\n * levels >= 4.\n */\n // That's alias to max_lazy_match, don't use directly\n //this.max_insert_length = 0;\n /* Insert new strings in the hash table only if the match length is not\n * greater than this length. This saves time but degrades compression.\n * max_insert_length is used only for compression levels <= 3.\n */\n\n this.level = 0; /* compression level (1..9) */\n this.strategy = 0; /* favor or force Huffman coding*/\n\n this.good_match = 0;\n /* Use a faster search when the previous match is longer than this */\n\n this.nice_match = 0; /* Stop searching when current match exceeds this */\n\n /* used by trees.c: */\n\n /* Didn't use ct_data typedef below to suppress compiler warning */\n\n // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */\n // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */\n\n // Use flat array of DOUBLE size, with interleaved fata,\n // because JS does not support effective\n this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2);\n this.dyn_dtree = new utils.Buf16((2 * D_CODES + 1) * 2);\n this.bl_tree = new utils.Buf16((2 * BL_CODES + 1) * 2);\n zero(this.dyn_ltree);\n zero(this.dyn_dtree);\n zero(this.bl_tree);\n\n this.l_desc = null; /* desc. for literal tree */\n this.d_desc = null; /* desc. for distance tree */\n this.bl_desc = null; /* desc. for bit length tree */\n\n //ush bl_count[MAX_BITS+1];\n this.bl_count = new utils.Buf16(MAX_BITS + 1);\n /* number of codes at each bit length for an optimal tree */\n\n //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */\n this.heap = new utils.Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */\n zero(this.heap);\n\n this.heap_len = 0; /* number of elements in the heap */\n this.heap_max = 0; /* element of largest frequency */\n /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\n * The same heap array is used to build all trees.\n */\n\n this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];\n zero(this.depth);\n /* Depth of each subtree used as tie breaker for trees of equal frequency\n */\n\n this.l_buf = 0; /* buffer index for literals or lengths */\n\n this.lit_bufsize = 0;\n /* Size of match buffer for literals/lengths. There are 4 reasons for\n * limiting lit_bufsize to 64K:\n * - frequencies can be kept in 16 bit counters\n * - if compression is not successful for the first block, all input\n * data is still in the window so we can still emit a stored block even\n * when input comes from standard input. (This can also be done for\n * all blocks if lit_bufsize is not greater than 32K.)\n * - if compression is not successful for a file smaller than 64K, we can\n * even emit a stored file instead of a stored block (saving 5 bytes).\n * This is applicable only for zip (not gzip or zlib).\n * - creating new Huffman trees less frequently may not provide fast\n * adaptation to changes in the input data statistics. (Take for\n * example a binary file with poorly compressible code followed by\n * a highly compressible string table.) Smaller buffer sizes give\n * fast adaptation but have of course the overhead of transmitting\n * trees more frequently.\n * - I can't count above 4\n */\n\n this.last_lit = 0; /* running index in l_buf */\n\n this.d_buf = 0;\n /* Buffer index for distances. To simplify the code, d_buf and l_buf have\n * the same number of elements. To use different lengths, an extra flag\n * array would be necessary.\n */\n\n this.opt_len = 0; /* bit length of current block with optimal trees */\n this.static_len = 0; /* bit length of current block with static trees */\n this.matches = 0; /* number of string matches in current block */\n this.insert = 0; /* bytes at end of window left to insert */\n\n\n this.bi_buf = 0;\n /* Output buffer. bits are inserted starting at the bottom (least\n * significant bits).\n */\n this.bi_valid = 0;\n /* Number of valid bits in bi_buf. All bits above the last valid bit\n * are always zero.\n */\n\n // Used for window memory init. We safely ignore it for JS. That makes\n // sense only for pointers and memory check tools.\n //this.high_water = 0;\n /* High water mark offset in window for initialized bytes -- bytes above\n * this are set to zero in order to avoid memory check warnings when\n * longest match routines access bytes past the input. This is then\n * updated to the new high water mark.\n */\n}\n\n\nfunction deflateResetKeep(strm) {\n var s;\n\n if (!strm || !strm.state) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n strm.total_in = strm.total_out = 0;\n strm.data_type = Z_UNKNOWN;\n\n s = strm.state;\n s.pending = 0;\n s.pending_out = 0;\n\n if (s.wrap < 0) {\n s.wrap = -s.wrap;\n /* was made negative by deflate(..., Z_FINISH); */\n }\n s.status = (s.wrap ? INIT_STATE : BUSY_STATE);\n strm.adler = (s.wrap === 2) ?\n 0 // crc32(0, Z_NULL, 0)\n :\n 1; // adler32(0, Z_NULL, 0)\n s.last_flush = Z_NO_FLUSH;\n trees._tr_init(s);\n return Z_OK;\n}\n\n\nfunction deflateReset(strm) {\n var ret = deflateResetKeep(strm);\n if (ret === Z_OK) {\n lm_init(strm.state);\n }\n return ret;\n}\n\n\nfunction deflateSetHeader(strm, head) {\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }\n strm.state.gzhead = head;\n return Z_OK;\n}\n\n\nfunction deflateInit2(strm, level, method, windowBits, memLevel, strategy) {\n if (!strm) { // === Z_NULL\n return Z_STREAM_ERROR;\n }\n var wrap = 1;\n\n if (level === Z_DEFAULT_COMPRESSION) {\n level = 6;\n }\n\n if (windowBits < 0) { /* suppress zlib wrapper */\n wrap = 0;\n windowBits = -windowBits;\n }\n\n else if (windowBits > 15) {\n wrap = 2; /* write gzip wrapper instead */\n windowBits -= 16;\n }\n\n\n if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||\n windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||\n strategy < 0 || strategy > Z_FIXED) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n\n if (windowBits === 8) {\n windowBits = 9;\n }\n /* until 256-byte window bug fixed */\n\n var s = new DeflateState();\n\n strm.state = s;\n s.strm = strm;\n\n s.wrap = wrap;\n s.gzhead = null;\n s.w_bits = windowBits;\n s.w_size = 1 << s.w_bits;\n s.w_mask = s.w_size - 1;\n\n s.hash_bits = memLevel + 7;\n s.hash_size = 1 << s.hash_bits;\n s.hash_mask = s.hash_size - 1;\n s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);\n\n s.window = new utils.Buf8(s.w_size * 2);\n s.head = new utils.Buf16(s.hash_size);\n s.prev = new utils.Buf16(s.w_size);\n\n // Don't need mem init magic for JS.\n //s.high_water = 0; /* nothing written to s->window yet */\n\n s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */\n\n s.pending_buf_size = s.lit_bufsize * 4;\n\n //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);\n //s->pending_buf = (uchf *) overlay;\n s.pending_buf = new utils.Buf8(s.pending_buf_size);\n\n // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\n //s->d_buf = overlay + s->lit_bufsize/sizeof(ush);\n s.d_buf = 1 * s.lit_bufsize;\n\n //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;\n s.l_buf = (1 + 2) * s.lit_bufsize;\n\n s.level = level;\n s.strategy = strategy;\n s.method = method;\n\n return deflateReset(strm);\n}\n\nfunction deflateInit(strm, level) {\n return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);\n}\n\n\nfunction deflate(strm, flush) {\n var old_flush, s;\n var beg, val; // for gzip header write only\n\n if (!strm || !strm.state ||\n flush > Z_BLOCK || flush < 0) {\n return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;\n }\n\n s = strm.state;\n\n if (!strm.output ||\n (!strm.input && strm.avail_in !== 0) ||\n (s.status === FINISH_STATE && flush !== Z_FINISH)) {\n return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);\n }\n\n s.strm = strm; /* just in case */\n old_flush = s.last_flush;\n s.last_flush = flush;\n\n /* Write the header */\n if (s.status === INIT_STATE) {\n\n if (s.wrap === 2) { // GZIP header\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n put_byte(s, 31);\n put_byte(s, 139);\n put_byte(s, 8);\n if (!s.gzhead) { // s->gzhead == Z_NULL\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, OS_CODE);\n s.status = BUSY_STATE;\n }\n else {\n put_byte(s, (s.gzhead.text ? 1 : 0) +\n (s.gzhead.hcrc ? 2 : 0) +\n (!s.gzhead.extra ? 0 : 4) +\n (!s.gzhead.name ? 0 : 8) +\n (!s.gzhead.comment ? 0 : 16)\n );\n put_byte(s, s.gzhead.time & 0xff);\n put_byte(s, (s.gzhead.time >> 8) & 0xff);\n put_byte(s, (s.gzhead.time >> 16) & 0xff);\n put_byte(s, (s.gzhead.time >> 24) & 0xff);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, s.gzhead.os & 0xff);\n if (s.gzhead.extra && s.gzhead.extra.length) {\n put_byte(s, s.gzhead.extra.length & 0xff);\n put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);\n }\n if (s.gzhead.hcrc) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);\n }\n s.gzindex = 0;\n s.status = EXTRA_STATE;\n }\n }\n else // DEFLATE header\n {\n var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;\n var level_flags = -1;\n\n if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {\n level_flags = 0;\n } else if (s.level < 6) {\n level_flags = 1;\n } else if (s.level === 6) {\n level_flags = 2;\n } else {\n level_flags = 3;\n }\n header |= (level_flags << 6);\n if (s.strstart !== 0) { header |= PRESET_DICT; }\n header += 31 - (header % 31);\n\n s.status = BUSY_STATE;\n putShortMSB(s, header);\n\n /* Save the adler32 of the preset dictionary: */\n if (s.strstart !== 0) {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n strm.adler = 1; // adler32(0L, Z_NULL, 0);\n }\n }\n\n//#ifdef GZIP\n if (s.status === EXTRA_STATE) {\n if (s.gzhead.extra/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n\n while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n break;\n }\n }\n put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);\n s.gzindex++;\n }\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (s.gzindex === s.gzhead.extra.length) {\n s.gzindex = 0;\n s.status = NAME_STATE;\n }\n }\n else {\n s.status = NAME_STATE;\n }\n }\n if (s.status === NAME_STATE) {\n if (s.gzhead.name/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.name.length) {\n val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.gzindex = 0;\n s.status = COMMENT_STATE;\n }\n }\n else {\n s.status = COMMENT_STATE;\n }\n }\n if (s.status === COMMENT_STATE) {\n if (s.gzhead.comment/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.comment.length) {\n val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.status = HCRC_STATE;\n }\n }\n else {\n s.status = HCRC_STATE;\n }\n }\n if (s.status === HCRC_STATE) {\n if (s.gzhead.hcrc) {\n if (s.pending + 2 > s.pending_buf_size) {\n flush_pending(strm);\n }\n if (s.pending + 2 <= s.pending_buf_size) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n s.status = BUSY_STATE;\n }\n }\n else {\n s.status = BUSY_STATE;\n }\n }\n//#endif\n\n /* Flush as much pending output as possible */\n if (s.pending !== 0) {\n flush_pending(strm);\n if (strm.avail_out === 0) {\n /* Since avail_out is 0, deflate will be called again with\n * more output space, but possibly with both pending and\n * avail_in equal to zero. There won't be anything to do,\n * but this is not an error situation so make sure we\n * return OK instead of BUF_ERROR at next call of deflate:\n */\n s.last_flush = -1;\n return Z_OK;\n }\n\n /* Make sure there is something to do and avoid duplicate consecutive\n * flushes. For repeated and useless calls with Z_FINISH, we keep\n * returning Z_STREAM_END instead of Z_BUF_ERROR.\n */\n } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&\n flush !== Z_FINISH) {\n return err(strm, Z_BUF_ERROR);\n }\n\n /* User must not provide more input after the first FINISH: */\n if (s.status === FINISH_STATE && strm.avail_in !== 0) {\n return err(strm, Z_BUF_ERROR);\n }\n\n /* Start a new block or continue the current one.\n */\n if (strm.avail_in !== 0 || s.lookahead !== 0 ||\n (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {\n var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :\n (s.strategy === Z_RLE ? deflate_rle(s, flush) :\n configuration_table[s.level].func(s, flush));\n\n if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {\n s.status = FINISH_STATE;\n }\n if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {\n if (strm.avail_out === 0) {\n s.last_flush = -1;\n /* avoid BUF_ERROR next call, see above */\n }\n return Z_OK;\n /* If flush != Z_NO_FLUSH && avail_out == 0, the next call\n * of deflate should use the same flush parameter to make sure\n * that the flush is complete. So we don't have to output an\n * empty block here, this will be done at next call. This also\n * ensures that for a very small output buffer, we emit at most\n * one empty block.\n */\n }\n if (bstate === BS_BLOCK_DONE) {\n if (flush === Z_PARTIAL_FLUSH) {\n trees._tr_align(s);\n }\n else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */\n\n trees._tr_stored_block(s, 0, 0, false);\n /* For a full flush, this empty block will be recognized\n * as a special marker by inflate_sync().\n */\n if (flush === Z_FULL_FLUSH) {\n /*** CLEAR_HASH(s); ***/ /* forget history */\n zero(s.head); // Fill with NIL (= 0);\n\n if (s.lookahead === 0) {\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n }\n }\n flush_pending(strm);\n if (strm.avail_out === 0) {\n s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */\n return Z_OK;\n }\n }\n }\n //Assert(strm->avail_out > 0, \"bug2\");\n //if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\n\n if (flush !== Z_FINISH) { return Z_OK; }\n if (s.wrap <= 0) { return Z_STREAM_END; }\n\n /* Write the trailer */\n if (s.wrap === 2) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n put_byte(s, (strm.adler >> 16) & 0xff);\n put_byte(s, (strm.adler >> 24) & 0xff);\n put_byte(s, strm.total_in & 0xff);\n put_byte(s, (strm.total_in >> 8) & 0xff);\n put_byte(s, (strm.total_in >> 16) & 0xff);\n put_byte(s, (strm.total_in >> 24) & 0xff);\n }\n else\n {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n\n flush_pending(strm);\n /* If avail_out is zero, the application will call deflate again\n * to flush the rest.\n */\n if (s.wrap > 0) { s.wrap = -s.wrap; }\n /* write the trailer only once! */\n return s.pending !== 0 ? Z_OK : Z_STREAM_END;\n}\n\nfunction deflateEnd(strm) {\n var status;\n\n if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\n return Z_STREAM_ERROR;\n }\n\n status = strm.state.status;\n if (status !== INIT_STATE &&\n status !== EXTRA_STATE &&\n status !== NAME_STATE &&\n status !== COMMENT_STATE &&\n status !== HCRC_STATE &&\n status !== BUSY_STATE &&\n status !== FINISH_STATE\n ) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n strm.state = null;\n\n return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;\n}\n\n\n/* =========================================================================\n * Initializes the compression dictionary from the given byte\n * sequence without producing any compressed output.\n */\nfunction deflateSetDictionary(strm, dictionary) {\n var dictLength = dictionary.length;\n\n var s;\n var str, n;\n var wrap;\n var avail;\n var next;\n var input;\n var tmpDict;\n\n if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\n return Z_STREAM_ERROR;\n }\n\n s = strm.state;\n wrap = s.wrap;\n\n if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {\n return Z_STREAM_ERROR;\n }\n\n /* when using zlib wrappers, compute Adler-32 for provided dictionary */\n if (wrap === 1) {\n /* adler32(strm->adler, dictionary, dictLength); */\n strm.adler = adler32(strm.adler, dictionary, dictLength, 0);\n }\n\n s.wrap = 0; /* avoid computing Adler-32 in read_buf */\n\n /* if dictionary would fill window, just replace the history */\n if (dictLength >= s.w_size) {\n if (wrap === 0) { /* already empty otherwise */\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n /* use the tail */\n // dictionary = dictionary.slice(dictLength - s.w_size);\n tmpDict = new utils.Buf8(s.w_size);\n utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0);\n dictionary = tmpDict;\n dictLength = s.w_size;\n }\n /* insert dictionary into window and hash */\n avail = strm.avail_in;\n next = strm.next_in;\n input = strm.input;\n strm.avail_in = dictLength;\n strm.next_in = 0;\n strm.input = dictionary;\n fill_window(s);\n while (s.lookahead >= MIN_MATCH) {\n str = s.strstart;\n n = s.lookahead - (MIN_MATCH - 1);\n do {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n\n s.head[s.ins_h] = str;\n str++;\n } while (--n);\n s.strstart = str;\n s.lookahead = MIN_MATCH - 1;\n fill_window(s);\n }\n s.strstart += s.lookahead;\n s.block_start = s.strstart;\n s.insert = s.lookahead;\n s.lookahead = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n strm.next_in = next;\n strm.input = input;\n strm.avail_in = avail;\n s.wrap = wrap;\n return Z_OK;\n}\n\n\nexports.deflateInit = deflateInit;\nexports.deflateInit2 = deflateInit2;\nexports.deflateReset = deflateReset;\nexports.deflateResetKeep = deflateResetKeep;\nexports.deflateSetHeader = deflateSetHeader;\nexports.deflate = deflate;\nexports.deflateEnd = deflateEnd;\nexports.deflateSetDictionary = deflateSetDictionary;\nexports.deflateInfo = 'pako deflate (from Nodeca project)';\n\n/* Not implemented\nexports.deflateBound = deflateBound;\nexports.deflateCopy = deflateCopy;\nexports.deflateParams = deflateParams;\nexports.deflatePending = deflatePending;\nexports.deflatePrime = deflatePrime;\nexports.deflateTune = deflateTune;\n*/\n", "// String encode/decode helpers\n'use strict';\n\n\nvar utils = require('./common');\n\n\n// Quick check if we can use fast array to bin string conversion\n//\n// - apply(Array) can fail on Android 2.2\n// - apply(Uint8Array) can fail on iOS 5.1 Safari\n//\nvar STR_APPLY_OK = true;\nvar STR_APPLY_UIA_OK = true;\n\ntry { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }\n\n\n// Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nvar _utf8len = new utils.Buf8(256);\nfor (var q = 0; q < 256; q++) {\n _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\n}\n_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start\n\n\n// convert string to array (typed, when possible)\nexports.string2buf = function (str) {\n var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\n\n // count binary size\n for (m_pos = 0; m_pos < str_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\n }\n\n // allocate buffer\n buf = new utils.Buf8(buf_len);\n\n // convert\n for (i = 0, m_pos = 0; i < buf_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n if (c < 0x80) {\n /* one byte */\n buf[i++] = c;\n } else if (c < 0x800) {\n /* two bytes */\n buf[i++] = 0xC0 | (c >>> 6);\n buf[i++] = 0x80 | (c & 0x3f);\n } else if (c < 0x10000) {\n /* three bytes */\n buf[i++] = 0xE0 | (c >>> 12);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n } else {\n /* four bytes */\n buf[i++] = 0xf0 | (c >>> 18);\n buf[i++] = 0x80 | (c >>> 12 & 0x3f);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n }\n }\n\n return buf;\n};\n\n// Helper (used in 2 places)\nfunction buf2binstring(buf, len) {\n // On Chrome, the arguments in a function call that are allowed is `65534`.\n // If the length of the buffer is smaller than that, we can use this optimization,\n // otherwise we will take a slower path.\n if (len < 65534) {\n if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {\n return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));\n }\n }\n\n var result = '';\n for (var i = 0; i < len; i++) {\n result += String.fromCharCode(buf[i]);\n }\n return result;\n}\n\n\n// Convert byte array to binary string\nexports.buf2binstring = function (buf) {\n return buf2binstring(buf, buf.length);\n};\n\n\n// Convert binary string (typed, when possible)\nexports.binstring2buf = function (str) {\n var buf = new utils.Buf8(str.length);\n for (var i = 0, len = buf.length; i < len; i++) {\n buf[i] = str.charCodeAt(i);\n }\n return buf;\n};\n\n\n// convert array to string\nexports.buf2string = function (buf, max) {\n var i, out, c, c_len;\n var len = max || buf.length;\n\n // Reserve max possible length (2 words per char)\n // NB: by unknown reasons, Array is significantly faster for\n // String.fromCharCode.apply than Uint16Array.\n var utf16buf = new Array(len * 2);\n\n for (out = 0, i = 0; i < len;) {\n c = buf[i++];\n // quick process ascii\n if (c < 0x80) { utf16buf[out++] = c; continue; }\n\n c_len = _utf8len[c];\n // skip 5 & 6 byte codes\n if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }\n\n // apply mask on first byte\n c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\n // join the rest\n while (c_len > 1 && i < len) {\n c = (c << 6) | (buf[i++] & 0x3f);\n c_len--;\n }\n\n // terminated by end of string?\n if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\n\n if (c < 0x10000) {\n utf16buf[out++] = c;\n } else {\n c -= 0x10000;\n utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\n utf16buf[out++] = 0xdc00 | (c & 0x3ff);\n }\n }\n\n return buf2binstring(utf16buf, out);\n};\n\n\n// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max - length limit (mandatory);\nexports.utf8border = function (buf, max) {\n var pos;\n\n max = max || buf.length;\n if (max > buf.length) { max = buf.length; }\n\n // go back from last position, until start of sequence found\n pos = max - 1;\n while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\n\n // Very small and broken sequence,\n // return max, because we should return something anyway.\n if (pos < 0) { return max; }\n\n // If we came to start of buffer - that means buffer is too small,\n // return max too.\n if (pos === 0) { return max; }\n\n return (pos + _utf8len[buf[pos]] > max) ? pos : max;\n};\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction ZStream() {\n /* next input byte */\n this.input = null; // JS specific, because we have no pointers\n this.next_in = 0;\n /* number of bytes available at input */\n this.avail_in = 0;\n /* total number of input bytes read so far */\n this.total_in = 0;\n /* next output byte should be put there */\n this.output = null; // JS specific, because we have no pointers\n this.next_out = 0;\n /* remaining free space at output */\n this.avail_out = 0;\n /* total number of bytes output so far */\n this.total_out = 0;\n /* last error message, NULL if no error */\n this.msg = ''/*Z_NULL*/;\n /* not visible by applications */\n this.state = null;\n /* best guess about the data type: binary or text */\n this.data_type = 2/*Z_UNKNOWN*/;\n /* adler32 value of the uncompressed data */\n this.adler = 0;\n}\n\nmodule.exports = ZStream;\n", "'use strict';\n\n\nvar zlib_deflate = require('./zlib/deflate');\nvar utils = require('./utils/common');\nvar strings = require('./utils/strings');\nvar msg = require('./zlib/messages');\nvar ZStream = require('./zlib/zstream');\n\nvar toString = Object.prototype.toString;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nvar Z_NO_FLUSH = 0;\nvar Z_FINISH = 4;\n\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_SYNC_FLUSH = 2;\n\nvar Z_DEFAULT_COMPRESSION = -1;\n\nvar Z_DEFAULT_STRATEGY = 0;\n\nvar Z_DEFLATED = 8;\n\n/* ===========================================================================*/\n\n\n/**\n * class Deflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[deflate]],\n * [[deflateRaw]] and [[gzip]].\n **/\n\n/* internal\n * Deflate.chunks -> Array\n *\n * Chunks of output data, if [[Deflate#onData]] not overridden.\n **/\n\n/**\n * Deflate.result -> Uint8Array|Array\n *\n * Compressed result, generated by default [[Deflate#onData]]\n * and [[Deflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Deflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Deflate.err -> Number\n *\n * Error code after deflate finished. 0 (Z_OK) on success.\n * You will not need it in real life, because deflate errors\n * are possible only on wrong options or bad `onData` / `onEnd`\n * custom handlers.\n **/\n\n/**\n * Deflate.msg -> String\n *\n * Error message, if [[Deflate.err]] != 0\n **/\n\n\n/**\n * new Deflate(options)\n * - options (Object): zlib deflate options.\n *\n * Creates new deflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `level`\n * - `windowBits`\n * - `memLevel`\n * - `strategy`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw deflate\n * - `gzip` (Boolean) - create gzip wrapper\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\n * (each char code [0..255])\n * - `header` (Object) - custom header for gzip\n * - `text` (Boolean) - true if compressed data believed to be text\n * - `time` (Number) - modification time, unix timestamp\n * - `os` (Number) - operation system code\n * - `extra` (Array) - array of bytes with extra data (max 65536)\n * - `name` (String) - file name (binary string)\n * - `comment` (String) - comment (binary string)\n * - `hcrc` (Boolean) - true if header crc should be added\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var deflate = new pako.Deflate({ level: 3});\n *\n * deflate.push(chunk1, false);\n * deflate.push(chunk2, true); // true -> last chunk\n *\n * if (deflate.err) { throw new Error(deflate.err); }\n *\n * console.log(deflate.result);\n * ```\n **/\nfunction Deflate(options) {\n if (!(this instanceof Deflate)) return new Deflate(options);\n\n this.options = utils.assign({\n level: Z_DEFAULT_COMPRESSION,\n method: Z_DEFLATED,\n chunkSize: 16384,\n windowBits: 15,\n memLevel: 8,\n strategy: Z_DEFAULT_STRATEGY,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n if (opt.raw && (opt.windowBits > 0)) {\n opt.windowBits = -opt.windowBits;\n }\n\n else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {\n opt.windowBits += 16;\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new ZStream();\n this.strm.avail_out = 0;\n\n var status = zlib_deflate.deflateInit2(\n this.strm,\n opt.level,\n opt.method,\n opt.windowBits,\n opt.memLevel,\n opt.strategy\n );\n\n if (status !== Z_OK) {\n throw new Error(msg[status]);\n }\n\n if (opt.header) {\n zlib_deflate.deflateSetHeader(this.strm, opt.header);\n }\n\n if (opt.dictionary) {\n var dict;\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n // If we need to compress text, change encoding to utf8.\n dict = strings.string2buf(opt.dictionary);\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\n dict = new Uint8Array(opt.dictionary);\n } else {\n dict = opt.dictionary;\n }\n\n status = zlib_deflate.deflateSetDictionary(this.strm, dict);\n\n if (status !== Z_OK) {\n throw new Error(msg[status]);\n }\n\n this._dict_set = true;\n }\n}\n\n/**\n * Deflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be\n * converted to utf8 byte sequence.\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\n *\n * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with\n * new compressed chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the compression context.\n *\n * On fail call [[Deflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * array format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nDeflate.prototype.push = function (data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var status, _mode;\n\n if (this.ended) { return false; }\n\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // If we need to compress text, change encoding to utf8.\n strm.input = strings.string2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n status = zlib_deflate.deflate(strm, _mode); /* no bad return value */\n\n if (status !== Z_STREAM_END && status !== Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {\n if (this.options.to === 'string') {\n this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);\n\n // Finalize on the last chunk.\n if (_mode === Z_FINISH) {\n status = zlib_deflate.deflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === Z_SYNC_FLUSH) {\n this.onEnd(Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Deflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): output data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nDeflate.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Deflate#onEnd(status) -> Void\n * - status (Number): deflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called once after you tell deflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nDeflate.prototype.onEnd = function (status) {\n // On success - join\n if (status === Z_OK) {\n if (this.options.to === 'string') {\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * deflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * Compress `data` with deflate algorithm and `options`.\n *\n * Supported options are:\n *\n * - level\n * - windowBits\n * - memLevel\n * - strategy\n * - dictionary\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\n * (each char code [0..255])\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , data = Uint8Array([1,2,3,4,5,6,7,8,9]);\n *\n * console.log(pako.deflate(data));\n * ```\n **/\nfunction deflate(input, options) {\n var deflator = new Deflate(options);\n\n deflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (deflator.err) { throw deflator.msg || msg[deflator.err]; }\n\n return deflator.result;\n}\n\n\n/**\n * deflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction deflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return deflate(input, options);\n}\n\n\n/**\n * gzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but create gzip wrapper instead of\n * deflate one.\n **/\nfunction gzip(input, options) {\n options = options || {};\n options.gzip = true;\n return deflate(input, options);\n}\n\n\nexports.Deflate = Deflate;\nexports.deflate = deflate;\nexports.deflateRaw = deflateRaw;\nexports.gzip = gzip;\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// See state defs from inflate.js\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\n\n/*\n Decode literal, length, and distance codes and write out the resulting\n literal and match bytes until either not enough input or output is\n available, an end-of-block is encountered, or a data error is encountered.\n When large enough input and output buffers are supplied to inflate(), for\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\n inflate execution time is spent in this routine.\n\n Entry assumptions:\n\n state.mode === LEN\n strm.avail_in >= 6\n strm.avail_out >= 258\n start >= strm.avail_out\n state.bits < 8\n\n On return, state.mode is one of:\n\n LEN -- ran out of enough output space or enough available input\n TYPE -- reached end of block code, inflate() to interpret next block\n BAD -- error in block data\n\n Notes:\n\n - The maximum input bits used by a length/distance pair is 15 bits for the\n length code, 5 bits for the length extra, 15 bits for the distance code,\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\n checking for available input while decoding.\n\n - The maximum bytes that a single length/distance pair can output is 258\n bytes, which is the maximum length that can be coded. inflate_fast()\n requires strm.avail_out >= 258 for each loop to avoid checking for\n output space.\n */\nmodule.exports = function inflate_fast(strm, start) {\n var state;\n var _in; /* local strm.input */\n var last; /* have enough input while in < last */\n var _out; /* local strm.output */\n var beg; /* inflate()'s initial strm.output */\n var end; /* while out < end, enough space available */\n//#ifdef INFLATE_STRICT\n var dmax; /* maximum distance from zlib header */\n//#endif\n var wsize; /* window size or zero if not using window */\n var whave; /* valid bytes in the window */\n var wnext; /* window write index */\n // Use `s_window` instead `window`, avoid conflict with instrumentation tools\n var s_window; /* allocated sliding window, if wsize != 0 */\n var hold; /* local strm.hold */\n var bits; /* local strm.bits */\n var lcode; /* local strm.lencode */\n var dcode; /* local strm.distcode */\n var lmask; /* mask for first level of length codes */\n var dmask; /* mask for first level of distance codes */\n var here; /* retrieved table entry */\n var op; /* code bits, operation, extra bits, or */\n /* window position, window bytes to copy */\n var len; /* match length, unused bytes */\n var dist; /* match distance */\n var from; /* where to copy match from */\n var from_source;\n\n\n var input, output; // JS specific, because we have no pointers\n\n /* copy state to local variables */\n state = strm.state;\n //here = state.here;\n _in = strm.next_in;\n input = strm.input;\n last = _in + (strm.avail_in - 5);\n _out = strm.next_out;\n output = strm.output;\n beg = _out - (start - strm.avail_out);\n end = _out + (strm.avail_out - 257);\n//#ifdef INFLATE_STRICT\n dmax = state.dmax;\n//#endif\n wsize = state.wsize;\n whave = state.whave;\n wnext = state.wnext;\n s_window = state.window;\n hold = state.hold;\n bits = state.bits;\n lcode = state.lencode;\n dcode = state.distcode;\n lmask = (1 << state.lenbits) - 1;\n dmask = (1 << state.distbits) - 1;\n\n\n /* decode literals and length/distances until end-of-block or not enough\n input data or output space */\n\n top:\n do {\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n\n here = lcode[hold & lmask];\n\n dolen:\n for (;;) { // Goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n if (op === 0) { /* literal */\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n output[_out++] = here & 0xffff/*here.val*/;\n }\n else if (op & 16) { /* length base */\n len = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (op) {\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n len += hold & ((1 << op) - 1);\n hold >>>= op;\n bits -= op;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", len));\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n here = dcode[hold & dmask];\n\n dodist:\n for (;;) { // goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n\n if (op & 16) { /* distance base */\n dist = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n }\n dist += hold & ((1 << op) - 1);\n//#ifdef INFLATE_STRICT\n if (dist > dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n//#endif\n hold >>>= op;\n bits -= op;\n //Tracevv((stderr, \"inflate: distance %u\\n\", dist));\n op = _out - beg; /* max distance in output */\n if (dist > op) { /* see if copy from window */\n op = dist - op; /* distance back in window */\n if (op > whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// if (len <= op - whave) {\n// do {\n// output[_out++] = 0;\n// } while (--len);\n// continue top;\n// }\n// len -= op - whave;\n// do {\n// output[_out++] = 0;\n// } while (--op > whave);\n// if (op === 0) {\n// from = _out - dist;\n// do {\n// output[_out++] = output[from++];\n// } while (--len);\n// continue top;\n// }\n//#endif\n }\n from = 0; // window index\n from_source = s_window;\n if (wnext === 0) { /* very common case */\n from += wsize - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n else if (wnext < op) { /* wrap around window */\n from += wsize + wnext - op;\n op -= wnext;\n if (op < len) { /* some from end of window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = 0;\n if (wnext < len) { /* some from start of window */\n op = wnext;\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n }\n else { /* contiguous in window */\n from += wnext - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n while (len > 2) {\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n len -= 3;\n }\n if (len) {\n output[_out++] = from_source[from++];\n if (len > 1) {\n output[_out++] = from_source[from++];\n }\n }\n }\n else {\n from = _out - dist; /* copy direct from output */\n do { /* minimum length is three */\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n len -= 3;\n } while (len > 2);\n if (len) {\n output[_out++] = output[from++];\n if (len > 1) {\n output[_out++] = output[from++];\n }\n }\n }\n }\n else if ((op & 64) === 0) { /* 2nd level distance code */\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dodist;\n }\n else {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n }\n else if ((op & 64) === 0) { /* 2nd level length code */\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dolen;\n }\n else if (op & 32) { /* end-of-block */\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.mode = TYPE;\n break top;\n }\n else {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n } while (_in < last && _out < end);\n\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\n len = bits >> 3;\n _in -= len;\n bits -= len << 3;\n hold &= (1 << bits) - 1;\n\n /* update state and return */\n strm.next_in = _in;\n strm.next_out = _out;\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\n state.hold = hold;\n state.bits = bits;\n return;\n};\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = require('../utils/common');\n\nvar MAXBITS = 15;\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\nvar lbase = [ /* Length codes 257..285 base */\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\n];\n\nvar lext = [ /* Length codes 257..285 extra */\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\n];\n\nvar dbase = [ /* Distance codes 0..29 base */\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\n 8193, 12289, 16385, 24577, 0, 0\n];\n\nvar dext = [ /* Distance codes 0..29 extra */\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\n 28, 28, 29, 29, 64, 64\n];\n\nmodule.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)\n{\n var bits = opts.bits;\n //here = opts.here; /* table entry for duplication */\n\n var len = 0; /* a code's length in bits */\n var sym = 0; /* index of code symbols */\n var min = 0, max = 0; /* minimum and maximum code lengths */\n var root = 0; /* number of index bits for root table */\n var curr = 0; /* number of index bits for current table */\n var drop = 0; /* code bits to drop for sub-table */\n var left = 0; /* number of prefix codes available */\n var used = 0; /* code entries in table used */\n var huff = 0; /* Huffman code */\n var incr; /* for incrementing code, index */\n var fill; /* index for replicating entries */\n var low; /* low bits for current root entry */\n var mask; /* mask for low root bits */\n var next; /* next available space in table */\n var base = null; /* base value table to use */\n var base_index = 0;\n// var shoextra; /* extra bits table to use */\n var end; /* use base and extra for symbol > end */\n var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */\n var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */\n var extra = null;\n var extra_index = 0;\n\n var here_bits, here_op, here_val;\n\n /*\n Process a set of code lengths to create a canonical Huffman code. The\n code lengths are lens[0..codes-1]. Each length corresponds to the\n symbols 0..codes-1. The Huffman code is generated by first sorting the\n symbols by length from short to long, and retaining the symbol order\n for codes with equal lengths. Then the code starts with all zero bits\n for the first code of the shortest length, and the codes are integer\n increments for the same length, and zeros are appended as the length\n increases. For the deflate format, these bits are stored backwards\n from their more natural integer increment ordering, and so when the\n decoding tables are built in the large loop below, the integer codes\n are incremented backwards.\n\n This routine assumes, but does not check, that all of the entries in\n lens[] are in the range 0..MAXBITS. The caller must assure this.\n 1..MAXBITS is interpreted as that code length. zero means that that\n symbol does not occur in this code.\n\n The codes are sorted by computing a count of codes for each length,\n creating from that a table of starting indices for each length in the\n sorted table, and then entering the symbols in order in the sorted\n table. The sorted table is work[], with that space being provided by\n the caller.\n\n The length counts are used for other purposes as well, i.e. finding\n the minimum and maximum length codes, determining if there are any\n codes at all, checking for a valid set of lengths, and looking ahead\n at length counts to determine sub-table sizes when building the\n decoding tables.\n */\n\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\n for (len = 0; len <= MAXBITS; len++) {\n count[len] = 0;\n }\n for (sym = 0; sym < codes; sym++) {\n count[lens[lens_index + sym]]++;\n }\n\n /* bound code lengths, force root to be within code lengths */\n root = bits;\n for (max = MAXBITS; max >= 1; max--) {\n if (count[max] !== 0) { break; }\n }\n if (root > max) {\n root = max;\n }\n if (max === 0) { /* no symbols to code at all */\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n\n //table.op[opts.table_index] = 64;\n //table.bits[opts.table_index] = 1;\n //table.val[opts.table_index++] = 0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n opts.bits = 1;\n return 0; /* no symbols, but wait for decoding to report error */\n }\n for (min = 1; min < max; min++) {\n if (count[min] !== 0) { break; }\n }\n if (root < min) {\n root = min;\n }\n\n /* check for an over-subscribed or incomplete set of lengths */\n left = 1;\n for (len = 1; len <= MAXBITS; len++) {\n left <<= 1;\n left -= count[len];\n if (left < 0) {\n return -1;\n } /* over-subscribed */\n }\n if (left > 0 && (type === CODES || max !== 1)) {\n return -1; /* incomplete set */\n }\n\n /* generate offsets into symbol table for each length for sorting */\n offs[1] = 0;\n for (len = 1; len < MAXBITS; len++) {\n offs[len + 1] = offs[len] + count[len];\n }\n\n /* sort symbols by length, by symbol order within each length */\n for (sym = 0; sym < codes; sym++) {\n if (lens[lens_index + sym] !== 0) {\n work[offs[lens[lens_index + sym]]++] = sym;\n }\n }\n\n /*\n Create and fill in decoding tables. In this loop, the table being\n filled is at next and has curr index bits. The code being used is huff\n with length len. That code is converted to an index by dropping drop\n bits off of the bottom. For codes where len is less than drop + curr,\n those top drop + curr - len bits are incremented through all values to\n fill the table with replicated entries.\n\n root is the number of index bits for the root table. When len exceeds\n root, sub-tables are created pointed to by the root entry with an index\n of the low root bits of huff. This is saved in low to check for when a\n new sub-table should be started. drop is zero when the root table is\n being filled, and drop is root when sub-tables are being filled.\n\n When a new sub-table is needed, it is necessary to look ahead in the\n code lengths to determine what size sub-table is needed. The length\n counts are used for this, and so count[] is decremented as codes are\n entered in the tables.\n\n used keeps track of how many table entries have been allocated from the\n provided *table space. It is checked for LENS and DIST tables against\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\n the initial root table size constants. See the comments in inftrees.h\n for more information.\n\n sym increments through all symbols, and the loop terminates when\n all codes of length max, i.e. all codes, have been processed. This\n routine permits incomplete codes, so another loop after this one fills\n in the rest of the decoding tables with invalid code markers.\n */\n\n /* set up for code type */\n // poor man optimization - use if-else instead of switch,\n // to avoid deopts in old v8\n if (type === CODES) {\n base = extra = work; /* dummy value--not used */\n end = 19;\n\n } else if (type === LENS) {\n base = lbase;\n base_index -= 257;\n extra = lext;\n extra_index -= 257;\n end = 256;\n\n } else { /* DISTS */\n base = dbase;\n extra = dext;\n end = -1;\n }\n\n /* initialize opts for loop */\n huff = 0; /* starting code */\n sym = 0; /* starting code symbol */\n len = min; /* starting code length */\n next = table_index; /* current table to fill in */\n curr = root; /* current table index bits */\n drop = 0; /* current bits to drop from code for index */\n low = -1; /* trigger new sub-table when len > root */\n used = 1 << root; /* use root table entries */\n mask = used - 1; /* mask for comparing low */\n\n /* check available table space */\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* process all codes and make table entries */\n for (;;) {\n /* create table entry */\n here_bits = len - drop;\n if (work[sym] < end) {\n here_op = 0;\n here_val = work[sym];\n }\n else if (work[sym] > end) {\n here_op = extra[extra_index + work[sym]];\n here_val = base[base_index + work[sym]];\n }\n else {\n here_op = 32 + 64; /* end of block */\n here_val = 0;\n }\n\n /* replicate for those indices with low len bits equal to huff */\n incr = 1 << (len - drop);\n fill = 1 << curr;\n min = fill; /* save offset to next table */\n do {\n fill -= incr;\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\n } while (fill !== 0);\n\n /* backwards increment the len-bit code huff */\n incr = 1 << (len - 1);\n while (huff & incr) {\n incr >>= 1;\n }\n if (incr !== 0) {\n huff &= incr - 1;\n huff += incr;\n } else {\n huff = 0;\n }\n\n /* go to next symbol, update count, len */\n sym++;\n if (--count[len] === 0) {\n if (len === max) { break; }\n len = lens[lens_index + work[sym]];\n }\n\n /* create new sub-table if needed */\n if (len > root && (huff & mask) !== low) {\n /* if first time, transition to sub-tables */\n if (drop === 0) {\n drop = root;\n }\n\n /* increment past last table */\n next += min; /* here min is 1 << curr */\n\n /* determine length of next table */\n curr = len - drop;\n left = 1 << curr;\n while (curr + drop < max) {\n left -= count[curr + drop];\n if (left <= 0) { break; }\n curr++;\n left <<= 1;\n }\n\n /* check for enough space */\n used += 1 << curr;\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* point entry in root table to sub-table */\n low = huff & mask;\n /*table.op[low] = curr;\n table.bits[low] = root;\n table.val[low] = next - opts.table_index;*/\n table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\n }\n }\n\n /* fill in remaining table entry if code is incomplete (guaranteed to have\n at most one remaining entry, since if the code is incomplete, the\n maximum code length that was allowed to get this far is one bit) */\n if (huff !== 0) {\n //table.op[next + huff] = 64; /* invalid code marker */\n //table.bits[next + huff] = len - drop;\n //table.val[next + huff] = 0;\n table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\n }\n\n /* set return parameters */\n //opts.table_index += used;\n opts.bits = root;\n return 0;\n};\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = require('../utils/common');\nvar adler32 = require('./adler32');\nvar crc32 = require('./crc32');\nvar inflate_fast = require('./inffast');\nvar inflate_table = require('./inftrees');\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\n//var Z_NO_FLUSH = 0;\n//var Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\n//var Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\nvar Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\nvar Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n\n/* STATES ====================================================================*/\n/* ===========================================================================*/\n\n\nvar HEAD = 1; /* i: waiting for magic header */\nvar FLAGS = 2; /* i: waiting for method and flags (gzip) */\nvar TIME = 3; /* i: waiting for modification time (gzip) */\nvar OS = 4; /* i: waiting for extra flags and operating system (gzip) */\nvar EXLEN = 5; /* i: waiting for extra length (gzip) */\nvar EXTRA = 6; /* i: waiting for extra bytes (gzip) */\nvar NAME = 7; /* i: waiting for end of file name (gzip) */\nvar COMMENT = 8; /* i: waiting for end of comment (gzip) */\nvar HCRC = 9; /* i: waiting for header crc (gzip) */\nvar DICTID = 10; /* i: waiting for dictionary check value */\nvar DICT = 11; /* waiting for inflateSetDictionary() call */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\nvar TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */\nvar STORED = 14; /* i: waiting for stored size (length and complement) */\nvar COPY_ = 15; /* i/o: same as COPY below, but only first time in */\nvar COPY = 16; /* i/o: waiting for input or output to copy stored block */\nvar TABLE = 17; /* i: waiting for dynamic block table lengths */\nvar LENLENS = 18; /* i: waiting for code length code lengths */\nvar CODELENS = 19; /* i: waiting for length/lit and distance code lengths */\nvar LEN_ = 20; /* i: same as LEN below, but only first time in */\nvar LEN = 21; /* i: waiting for length/lit/eob code */\nvar LENEXT = 22; /* i: waiting for length extra bits */\nvar DIST = 23; /* i: waiting for distance code */\nvar DISTEXT = 24; /* i: waiting for distance extra bits */\nvar MATCH = 25; /* o: waiting for output space to copy string */\nvar LIT = 26; /* o: waiting for output space to write literal */\nvar CHECK = 27; /* i: waiting for 32-bit check value */\nvar LENGTH = 28; /* i: waiting for 32-bit length (gzip) */\nvar DONE = 29; /* finished check, done -- remain here until reset */\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar MEM = 31; /* got an inflate() memory error -- remain here until reset */\nvar SYNC = 32; /* looking for synchronization bytes to restart inflate() */\n\n/* ===========================================================================*/\n\n\n\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_WBITS = MAX_WBITS;\n\n\nfunction zswap32(q) {\n return (((q >>> 24) & 0xff) +\n ((q >>> 8) & 0xff00) +\n ((q & 0xff00) << 8) +\n ((q & 0xff) << 24));\n}\n\n\nfunction InflateState() {\n this.mode = 0; /* current inflate mode */\n this.last = false; /* true if processing last block */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.havedict = false; /* true if dictionary provided */\n this.flags = 0; /* gzip header method and flags (0 if zlib) */\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\n this.check = 0; /* protected copy of check value */\n this.total = 0; /* protected copy of output count */\n // TODO: may be {}\n this.head = null; /* where to save gzip header information */\n\n /* sliding window */\n this.wbits = 0; /* log base 2 of requested window size */\n this.wsize = 0; /* window size or zero if not using window */\n this.whave = 0; /* valid bytes in the window */\n this.wnext = 0; /* window write index */\n this.window = null; /* allocated sliding window, if needed */\n\n /* bit accumulator */\n this.hold = 0; /* input bit accumulator */\n this.bits = 0; /* number of bits in \"in\" */\n\n /* for string and stored block copying */\n this.length = 0; /* literal or length of data to copy */\n this.offset = 0; /* distance back to copy string from */\n\n /* for table and code decoding */\n this.extra = 0; /* extra bits needed */\n\n /* fixed and dynamic code tables */\n this.lencode = null; /* starting table for length/literal codes */\n this.distcode = null; /* starting table for distance codes */\n this.lenbits = 0; /* index bits for lencode */\n this.distbits = 0; /* index bits for distcode */\n\n /* dynamic table building */\n this.ncode = 0; /* number of code length code lengths */\n this.nlen = 0; /* number of length code lengths */\n this.ndist = 0; /* number of distance code lengths */\n this.have = 0; /* number of code lengths in lens[] */\n this.next = null; /* next available space in codes[] */\n\n this.lens = new utils.Buf16(320); /* temporary storage for code lengths */\n this.work = new utils.Buf16(288); /* work area for code table building */\n\n /*\n because we don't have pointers in js, we use lencode and distcode directly\n as buffers so we don't need codes\n */\n //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\n this.sane = 0; /* if false, allow invalid distance too far */\n this.back = 0; /* bits back of last unprocessed length/lit */\n this.was = 0; /* initial length of match */\n}\n\nfunction inflateResetKeep(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n strm.total_in = strm.total_out = state.total = 0;\n strm.msg = ''; /*Z_NULL*/\n if (state.wrap) { /* to support ill-conceived Java test suite */\n strm.adler = state.wrap & 1;\n }\n state.mode = HEAD;\n state.last = 0;\n state.havedict = 0;\n state.dmax = 32768;\n state.head = null/*Z_NULL*/;\n state.hold = 0;\n state.bits = 0;\n //state.lencode = state.distcode = state.next = state.codes;\n state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);\n state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);\n\n state.sane = 1;\n state.back = -1;\n //Tracev((stderr, \"inflate: reset\\n\"));\n return Z_OK;\n}\n\nfunction inflateReset(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n state.wsize = 0;\n state.whave = 0;\n state.wnext = 0;\n return inflateResetKeep(strm);\n\n}\n\nfunction inflateReset2(strm, windowBits) {\n var wrap;\n var state;\n\n /* get the state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n /* extract wrap request from windowBits parameter */\n if (windowBits < 0) {\n wrap = 0;\n windowBits = -windowBits;\n }\n else {\n wrap = (windowBits >> 4) + 1;\n if (windowBits < 48) {\n windowBits &= 15;\n }\n }\n\n /* set number of window bits, free window if different */\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\n return Z_STREAM_ERROR;\n }\n if (state.window !== null && state.wbits !== windowBits) {\n state.window = null;\n }\n\n /* update state and reset the rest of it */\n state.wrap = wrap;\n state.wbits = windowBits;\n return inflateReset(strm);\n}\n\nfunction inflateInit2(strm, windowBits) {\n var ret;\n var state;\n\n if (!strm) { return Z_STREAM_ERROR; }\n //strm.msg = Z_NULL; /* in case we return an error */\n\n state = new InflateState();\n\n //if (state === Z_NULL) return Z_MEM_ERROR;\n //Tracev((stderr, \"inflate: allocated\\n\"));\n strm.state = state;\n state.window = null/*Z_NULL*/;\n ret = inflateReset2(strm, windowBits);\n if (ret !== Z_OK) {\n strm.state = null/*Z_NULL*/;\n }\n return ret;\n}\n\nfunction inflateInit(strm) {\n return inflateInit2(strm, DEF_WBITS);\n}\n\n\n/*\n Return state with length and distance decoding tables and index sizes set to\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\n If BUILDFIXED is defined, then instead this routine builds the tables the\n first time it's called, and returns those tables the first time and\n thereafter. This reduces the size of the code by about 2K bytes, in\n exchange for a little execution time. However, BUILDFIXED should not be\n used for threaded applications, since the rewriting of the tables and virgin\n may not be thread-safe.\n */\nvar virgin = true;\n\nvar lenfix, distfix; // We have no pointers in JS, so keep tables separate\n\nfunction fixedtables(state) {\n /* build fixed huffman tables if first call (may not be thread safe) */\n if (virgin) {\n var sym;\n\n lenfix = new utils.Buf32(512);\n distfix = new utils.Buf32(32);\n\n /* literal/length table */\n sym = 0;\n while (sym < 144) { state.lens[sym++] = 8; }\n while (sym < 256) { state.lens[sym++] = 9; }\n while (sym < 280) { state.lens[sym++] = 7; }\n while (sym < 288) { state.lens[sym++] = 8; }\n\n inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });\n\n /* distance table */\n sym = 0;\n while (sym < 32) { state.lens[sym++] = 5; }\n\n inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });\n\n /* do this just once */\n virgin = false;\n }\n\n state.lencode = lenfix;\n state.lenbits = 9;\n state.distcode = distfix;\n state.distbits = 5;\n}\n\n\n/*\n Update the window with the last wsize (normally 32K) bytes written before\n returning. If window does not exist yet, create it. This is only called\n when a window is already in use, or when output has been written during this\n inflate call, but the end of the deflate stream has not been reached yet.\n It is also called to create a window for dictionary data when a dictionary\n is loaded.\n\n Providing output buffers larger than 32K to inflate() should provide a speed\n advantage, since only the last 32K of output is copied to the sliding window\n upon return from inflate(), and since all distances after the first 32K of\n output will fall in the output data, making match copies simpler and faster.\n The advantage may be dependent on the size of the processor's data caches.\n */\nfunction updatewindow(strm, src, end, copy) {\n var dist;\n var state = strm.state;\n\n /* if it hasn't been done already, allocate space for the window */\n if (state.window === null) {\n state.wsize = 1 << state.wbits;\n state.wnext = 0;\n state.whave = 0;\n\n state.window = new utils.Buf8(state.wsize);\n }\n\n /* copy state->wsize or less output bytes into the circular window */\n if (copy >= state.wsize) {\n utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);\n state.wnext = 0;\n state.whave = state.wsize;\n }\n else {\n dist = state.wsize - state.wnext;\n if (dist > copy) {\n dist = copy;\n }\n //zmemcpy(state->window + state->wnext, end - copy, dist);\n utils.arraySet(state.window, src, end - copy, dist, state.wnext);\n copy -= dist;\n if (copy) {\n //zmemcpy(state->window, end - copy, copy);\n utils.arraySet(state.window, src, end - copy, copy, 0);\n state.wnext = copy;\n state.whave = state.wsize;\n }\n else {\n state.wnext += dist;\n if (state.wnext === state.wsize) { state.wnext = 0; }\n if (state.whave < state.wsize) { state.whave += dist; }\n }\n }\n return 0;\n}\n\nfunction inflate(strm, flush) {\n var state;\n var input, output; // input/output buffers\n var next; /* next input INDEX */\n var put; /* next output INDEX */\n var have, left; /* available input and output */\n var hold; /* bit buffer */\n var bits; /* bits in bit buffer */\n var _in, _out; /* save starting available input and output */\n var copy; /* number of stored or match bytes to copy */\n var from; /* where to copy match bytes from */\n var from_source;\n var here = 0; /* current decoding table entry */\n var here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\n //var last; /* parent table entry */\n var last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\n var len; /* length to copy for repeats, bits to drop */\n var ret; /* return code */\n var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */\n var opts;\n\n var n; // temporary var for NEED_BITS\n\n var order = /* permutation of code lengths */\n [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\n\n\n if (!strm || !strm.state || !strm.output ||\n (!strm.input && strm.avail_in !== 0)) {\n return Z_STREAM_ERROR;\n }\n\n state = strm.state;\n if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */\n\n\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n _in = have;\n _out = left;\n ret = Z_OK;\n\n inf_leave: // goto emulation\n for (;;) {\n switch (state.mode) {\n case HEAD:\n if (state.wrap === 0) {\n state.mode = TYPEDO;\n break;\n }\n //=== NEEDBITS(16);\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\n state.check = 0/*crc32(0L, Z_NULL, 0)*/;\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = FLAGS;\n break;\n }\n state.flags = 0; /* expect zlib header */\n if (state.head) {\n state.head.done = false;\n }\n if (!(state.wrap & 1) || /* check if zlib header allowed */\n (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\n strm.msg = 'incorrect header check';\n state.mode = BAD;\n break;\n }\n if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n len = (hold & 0x0f)/*BITS(4)*/ + 8;\n if (state.wbits === 0) {\n state.wbits = len;\n }\n else if (len > state.wbits) {\n strm.msg = 'invalid window size';\n state.mode = BAD;\n break;\n }\n state.dmax = 1 << len;\n //Tracev((stderr, \"inflate: zlib header ok\\n\"));\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = hold & 0x200 ? DICTID : TYPE;\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n break;\n case FLAGS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.flags = hold;\n if ((state.flags & 0xff) !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n if (state.flags & 0xe000) {\n strm.msg = 'unknown header flags set';\n state.mode = BAD;\n break;\n }\n if (state.head) {\n state.head.text = ((hold >> 8) & 1);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = TIME;\n /* falls through */\n case TIME:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.time = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC4(state.check, hold)\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n hbuf[2] = (hold >>> 16) & 0xff;\n hbuf[3] = (hold >>> 24) & 0xff;\n state.check = crc32(state.check, hbuf, 4, 0);\n //===\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = OS;\n /* falls through */\n case OS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.xflags = (hold & 0xff);\n state.head.os = (hold >> 8);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = EXLEN;\n /* falls through */\n case EXLEN:\n if (state.flags & 0x0400) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length = hold;\n if (state.head) {\n state.head.extra_len = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n else if (state.head) {\n state.head.extra = null/*Z_NULL*/;\n }\n state.mode = EXTRA;\n /* falls through */\n case EXTRA:\n if (state.flags & 0x0400) {\n copy = state.length;\n if (copy > have) { copy = have; }\n if (copy) {\n if (state.head) {\n len = state.head.extra_len - state.length;\n if (!state.head.extra) {\n // Use untyped array for more convenient processing later\n state.head.extra = new Array(state.head.extra_len);\n }\n utils.arraySet(\n state.head.extra,\n input,\n next,\n // extra field is limited to 65536 bytes\n // - no need for additional size check\n copy,\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\n len\n );\n //zmemcpy(state.head.extra + len, next,\n // len + copy > state.head.extra_max ?\n // state.head.extra_max - len : copy);\n }\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n state.length -= copy;\n }\n if (state.length) { break inf_leave; }\n }\n state.length = 0;\n state.mode = NAME;\n /* falls through */\n case NAME:\n if (state.flags & 0x0800) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n // TODO: 2 or 1 bytes?\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.name_max*/)) {\n state.head.name += String.fromCharCode(len);\n }\n } while (len && copy < have);\n\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.name = null;\n }\n state.length = 0;\n state.mode = COMMENT;\n /* falls through */\n case COMMENT:\n if (state.flags & 0x1000) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.comm_max*/)) {\n state.head.comment += String.fromCharCode(len);\n }\n } while (len && copy < have);\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.comment = null;\n }\n state.mode = HCRC;\n /* falls through */\n case HCRC:\n if (state.flags & 0x0200) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.check & 0xffff)) {\n strm.msg = 'header crc mismatch';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n if (state.head) {\n state.head.hcrc = ((state.flags >> 9) & 1);\n state.head.done = true;\n }\n strm.adler = state.check = 0;\n state.mode = TYPE;\n break;\n case DICTID:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n strm.adler = state.check = zswap32(hold);\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = DICT;\n /* falls through */\n case DICT:\n if (state.havedict === 0) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n return Z_NEED_DICT;\n }\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = TYPE;\n /* falls through */\n case TYPE:\n if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case TYPEDO:\n if (state.last) {\n //--- BYTEBITS() ---//\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n state.mode = CHECK;\n break;\n }\n //=== NEEDBITS(3); */\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.last = (hold & 0x01)/*BITS(1)*/;\n //--- DROPBITS(1) ---//\n hold >>>= 1;\n bits -= 1;\n //---//\n\n switch ((hold & 0x03)/*BITS(2)*/) {\n case 0: /* stored block */\n //Tracev((stderr, \"inflate: stored block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = STORED;\n break;\n case 1: /* fixed block */\n fixedtables(state);\n //Tracev((stderr, \"inflate: fixed codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = LEN_; /* decode codes */\n if (flush === Z_TREES) {\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break inf_leave;\n }\n break;\n case 2: /* dynamic block */\n //Tracev((stderr, \"inflate: dynamic codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = TABLE;\n break;\n case 3:\n strm.msg = 'invalid block type';\n state.mode = BAD;\n }\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break;\n case STORED:\n //--- BYTEBITS() ---// /* go to byte boundary */\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\n strm.msg = 'invalid stored block lengths';\n state.mode = BAD;\n break;\n }\n state.length = hold & 0xffff;\n //Tracev((stderr, \"inflate: stored length %u\\n\",\n // state.length));\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = COPY_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case COPY_:\n state.mode = COPY;\n /* falls through */\n case COPY:\n copy = state.length;\n if (copy) {\n if (copy > have) { copy = have; }\n if (copy > left) { copy = left; }\n if (copy === 0) { break inf_leave; }\n //--- zmemcpy(put, next, copy); ---\n utils.arraySet(output, input, next, copy, put);\n //---//\n have -= copy;\n next += copy;\n left -= copy;\n put += copy;\n state.length -= copy;\n break;\n }\n //Tracev((stderr, \"inflate: stored end\\n\"));\n state.mode = TYPE;\n break;\n case TABLE:\n //=== NEEDBITS(14); */\n while (bits < 14) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n//#ifndef PKZIP_BUG_WORKAROUND\n if (state.nlen > 286 || state.ndist > 30) {\n strm.msg = 'too many length or distance symbols';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracev((stderr, \"inflate: table sizes ok\\n\"));\n state.have = 0;\n state.mode = LENLENS;\n /* falls through */\n case LENLENS:\n while (state.have < state.ncode) {\n //=== NEEDBITS(3);\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n while (state.have < 19) {\n state.lens[order[state.have++]] = 0;\n }\n // We have separate tables & no pointers. 2 commented lines below not needed.\n //state.next = state.codes;\n //state.lencode = state.next;\n // Switch to use dynamic table\n state.lencode = state.lendyn;\n state.lenbits = 7;\n\n opts = { bits: state.lenbits };\n ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\n state.lenbits = opts.bits;\n\n if (ret) {\n strm.msg = 'invalid code lengths set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, \"inflate: code lengths ok\\n\"));\n state.have = 0;\n state.mode = CODELENS;\n /* falls through */\n case CODELENS:\n while (state.have < state.nlen + state.ndist) {\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_val < 16) {\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.lens[state.have++] = here_val;\n }\n else {\n if (here_val === 16) {\n //=== NEEDBITS(here.bits + 2);\n n = here_bits + 2;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n if (state.have === 0) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n len = state.lens[state.have - 1];\n copy = 3 + (hold & 0x03);//BITS(2);\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n }\n else if (here_val === 17) {\n //=== NEEDBITS(here.bits + 3);\n n = here_bits + 3;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 3 + (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n else {\n //=== NEEDBITS(here.bits + 7);\n n = here_bits + 7;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 11 + (hold & 0x7f);//BITS(7);\n //--- DROPBITS(7) ---//\n hold >>>= 7;\n bits -= 7;\n //---//\n }\n if (state.have + copy > state.nlen + state.ndist) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n while (copy--) {\n state.lens[state.have++] = len;\n }\n }\n }\n\n /* handle error breaks in while */\n if (state.mode === BAD) { break; }\n\n /* check for end-of-block code (better have one) */\n if (state.lens[256] === 0) {\n strm.msg = 'invalid code -- missing end-of-block';\n state.mode = BAD;\n break;\n }\n\n /* build code tables -- note: do not change the lenbits or distbits\n values here (9 and 6) without reading the comments in inftrees.h\n concerning the ENOUGH constants, which depend on those values */\n state.lenbits = 9;\n\n opts = { bits: state.lenbits };\n ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.lenbits = opts.bits;\n // state.lencode = state.next;\n\n if (ret) {\n strm.msg = 'invalid literal/lengths set';\n state.mode = BAD;\n break;\n }\n\n state.distbits = 6;\n //state.distcode.copy(state.codes);\n // Switch to use dynamic table\n state.distcode = state.distdyn;\n opts = { bits: state.distbits };\n ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.distbits = opts.bits;\n // state.distcode = state.next;\n\n if (ret) {\n strm.msg = 'invalid distances set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, 'inflate: codes ok\\n'));\n state.mode = LEN_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case LEN_:\n state.mode = LEN;\n /* falls through */\n case LEN:\n if (have >= 6 && left >= 258) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n inflate_fast(strm, _out);\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n if (state.mode === TYPE) {\n state.back = -1;\n }\n break;\n }\n state.back = 0;\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if (here_bits <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_op && (here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.lencode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n state.length = here_val;\n if (here_op === 0) {\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n state.mode = LIT;\n break;\n }\n if (here_op & 32) {\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.back = -1;\n state.mode = TYPE;\n break;\n }\n if (here_op & 64) {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break;\n }\n state.extra = here_op & 15;\n state.mode = LENEXT;\n /* falls through */\n case LENEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", state.length));\n state.was = state.length;\n state.mode = DIST;\n /* falls through */\n case DIST:\n for (;;) {\n here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if ((here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.distcode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n if (here_op & 64) {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break;\n }\n state.offset = here_val;\n state.extra = (here_op) & 15;\n state.mode = DISTEXT;\n /* falls through */\n case DISTEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n//#ifdef INFLATE_STRICT\n if (state.offset > state.dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracevv((stderr, \"inflate: distance %u\\n\", state.offset));\n state.mode = MATCH;\n /* falls through */\n case MATCH:\n if (left === 0) { break inf_leave; }\n copy = _out - left;\n if (state.offset > copy) { /* copy from window */\n copy = state.offset - copy;\n if (copy > state.whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// Trace((stderr, \"inflate.c too far\\n\"));\n// copy -= state.whave;\n// if (copy > state.length) { copy = state.length; }\n// if (copy > left) { copy = left; }\n// left -= copy;\n// state.length -= copy;\n// do {\n// output[put++] = 0;\n// } while (--copy);\n// if (state.length === 0) { state.mode = LEN; }\n// break;\n//#endif\n }\n if (copy > state.wnext) {\n copy -= state.wnext;\n from = state.wsize - copy;\n }\n else {\n from = state.wnext - copy;\n }\n if (copy > state.length) { copy = state.length; }\n from_source = state.window;\n }\n else { /* copy from output */\n from_source = output;\n from = put - state.offset;\n copy = state.length;\n }\n if (copy > left) { copy = left; }\n left -= copy;\n state.length -= copy;\n do {\n output[put++] = from_source[from++];\n } while (--copy);\n if (state.length === 0) { state.mode = LEN; }\n break;\n case LIT:\n if (left === 0) { break inf_leave; }\n output[put++] = state.length;\n left--;\n state.mode = LEN;\n break;\n case CHECK:\n if (state.wrap) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n // Use '|' instead of '+' to make sure that result is signed\n hold |= input[next++] << bits;\n bits += 8;\n }\n //===//\n _out -= left;\n strm.total_out += _out;\n state.total += _out;\n if (_out) {\n strm.adler = state.check =\n /*UPDATE(state.check, put - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\n\n }\n _out = left;\n // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\n if ((state.flags ? hold : zswap32(hold)) !== state.check) {\n strm.msg = 'incorrect data check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: check matches trailer\\n\"));\n }\n state.mode = LENGTH;\n /* falls through */\n case LENGTH:\n if (state.wrap && state.flags) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.total & 0xffffffff)) {\n strm.msg = 'incorrect length check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: length matches trailer\\n\"));\n }\n state.mode = DONE;\n /* falls through */\n case DONE:\n ret = Z_STREAM_END;\n break inf_leave;\n case BAD:\n ret = Z_DATA_ERROR;\n break inf_leave;\n case MEM:\n return Z_MEM_ERROR;\n case SYNC:\n /* falls through */\n default:\n return Z_STREAM_ERROR;\n }\n }\n\n // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n\n /*\n Return from inflate(), updating the total counts and the check value.\n If there was no progress during the inflate() call, return a buffer\n error. Call updatewindow() to create and/or update the window state.\n Note: a memory error from inflate() is non-recoverable.\n */\n\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\n (state.mode < CHECK || flush !== Z_FINISH))) {\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n }\n _in -= strm.avail_in;\n _out -= strm.avail_out;\n strm.total_in += _in;\n strm.total_out += _out;\n state.total += _out;\n if (state.wrap && _out) {\n strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\n }\n strm.data_type = state.bits + (state.last ? 64 : 0) +\n (state.mode === TYPE ? 128 : 0) +\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\n if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {\n ret = Z_BUF_ERROR;\n }\n return ret;\n}\n\nfunction inflateEnd(strm) {\n\n if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {\n return Z_STREAM_ERROR;\n }\n\n var state = strm.state;\n if (state.window) {\n state.window = null;\n }\n strm.state = null;\n return Z_OK;\n}\n\nfunction inflateGetHeader(strm, head) {\n var state;\n\n /* check state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }\n\n /* save header structure */\n state.head = head;\n head.done = false;\n return Z_OK;\n}\n\nfunction inflateSetDictionary(strm, dictionary) {\n var dictLength = dictionary.length;\n\n var state;\n var dictid;\n var ret;\n\n /* check state */\n if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n if (state.wrap !== 0 && state.mode !== DICT) {\n return Z_STREAM_ERROR;\n }\n\n /* check for correct dictionary identifier */\n if (state.mode === DICT) {\n dictid = 1; /* adler32(0, null, 0)*/\n /* dictid = adler32(dictid, dictionary, dictLength); */\n dictid = adler32(dictid, dictionary, dictLength, 0);\n if (dictid !== state.check) {\n return Z_DATA_ERROR;\n }\n }\n /* copy dictionary to window using updatewindow(), which will amend the\n existing dictionary if appropriate */\n ret = updatewindow(strm, dictionary, dictLength, dictLength);\n if (ret) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n state.havedict = 1;\n // Tracev((stderr, \"inflate: dictionary set\\n\"));\n return Z_OK;\n}\n\nexports.inflateReset = inflateReset;\nexports.inflateReset2 = inflateReset2;\nexports.inflateResetKeep = inflateResetKeep;\nexports.inflateInit = inflateInit;\nexports.inflateInit2 = inflateInit2;\nexports.inflate = inflate;\nexports.inflateEnd = inflateEnd;\nexports.inflateGetHeader = inflateGetHeader;\nexports.inflateSetDictionary = inflateSetDictionary;\nexports.inflateInfo = 'pako inflate (from Nodeca project)';\n\n/* Not implemented\nexports.inflateCopy = inflateCopy;\nexports.inflateGetDictionary = inflateGetDictionary;\nexports.inflateMark = inflateMark;\nexports.inflatePrime = inflatePrime;\nexports.inflateSync = inflateSync;\nexports.inflateSyncPoint = inflateSyncPoint;\nexports.inflateUndermine = inflateUndermine;\n*/\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nmodule.exports = {\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n Z_NO_FLUSH: 0,\n Z_PARTIAL_FLUSH: 1,\n Z_SYNC_FLUSH: 2,\n Z_FULL_FLUSH: 3,\n Z_FINISH: 4,\n Z_BLOCK: 5,\n Z_TREES: 6,\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n Z_OK: 0,\n Z_STREAM_END: 1,\n Z_NEED_DICT: 2,\n Z_ERRNO: -1,\n Z_STREAM_ERROR: -2,\n Z_DATA_ERROR: -3,\n //Z_MEM_ERROR: -4,\n Z_BUF_ERROR: -5,\n //Z_VERSION_ERROR: -6,\n\n /* compression levels */\n Z_NO_COMPRESSION: 0,\n Z_BEST_SPEED: 1,\n Z_BEST_COMPRESSION: 9,\n Z_DEFAULT_COMPRESSION: -1,\n\n\n Z_FILTERED: 1,\n Z_HUFFMAN_ONLY: 2,\n Z_RLE: 3,\n Z_FIXED: 4,\n Z_DEFAULT_STRATEGY: 0,\n\n /* Possible values of the data_type field (though see inflate()) */\n Z_BINARY: 0,\n Z_TEXT: 1,\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\n Z_UNKNOWN: 2,\n\n /* The deflate compression method */\n Z_DEFLATED: 8\n //Z_NULL: null // Use -1 or null inline, depending on var type\n};\n", "'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction GZheader() {\n /* true if compressed data believed to be text */\n this.text = 0;\n /* modification time */\n this.time = 0;\n /* extra flags (not used when writing a gzip file) */\n this.xflags = 0;\n /* operating system */\n this.os = 0;\n /* pointer to extra field or Z_NULL if none */\n this.extra = null;\n /* extra field length (valid if extra != Z_NULL) */\n this.extra_len = 0; // Actually, we don't need it in JS,\n // but leave for few code modifications\n\n //\n // Setup limits is not necessary because in js we should not preallocate memory\n // for inflate use constant limit in 65536 bytes\n //\n\n /* space at extra (only when reading header) */\n // this.extra_max = 0;\n /* pointer to zero-terminated file name or Z_NULL */\n this.name = '';\n /* space at name (only when reading header) */\n // this.name_max = 0;\n /* pointer to zero-terminated comment or Z_NULL */\n this.comment = '';\n /* space at comment (only when reading header) */\n // this.comm_max = 0;\n /* true if there was or will be a header crc */\n this.hcrc = 0;\n /* true when done reading gzip header (not used when writing a gzip file) */\n this.done = false;\n}\n\nmodule.exports = GZheader;\n", "'use strict';\n\n\nvar zlib_inflate = require('./zlib/inflate');\nvar utils = require('./utils/common');\nvar strings = require('./utils/strings');\nvar c = require('./zlib/constants');\nvar msg = require('./zlib/messages');\nvar ZStream = require('./zlib/zstream');\nvar GZheader = require('./zlib/gzheader');\n\nvar toString = Object.prototype.toString;\n\n/**\n * class Inflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[inflate]]\n * and [[inflateRaw]].\n **/\n\n/* internal\n * inflate.chunks -> Array\n *\n * Chunks of output data, if [[Inflate#onData]] not overridden.\n **/\n\n/**\n * Inflate.result -> Uint8Array|Array|String\n *\n * Uncompressed result, generated by default [[Inflate#onData]]\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Inflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Inflate.err -> Number\n *\n * Error code after inflate finished. 0 (Z_OK) on success.\n * Should be checked if broken data possible.\n **/\n\n/**\n * Inflate.msg -> String\n *\n * Error message, if [[Inflate.err]] != 0\n **/\n\n\n/**\n * new Inflate(options)\n * - options (Object): zlib inflate options.\n *\n * Creates new inflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `windowBits`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw inflate\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n * By default, when no options set, autodetect deflate/gzip data format via\n * wrapper header.\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var inflate = new pako.Inflate({ level: 3});\n *\n * inflate.push(chunk1, false);\n * inflate.push(chunk2, true); // true -> last chunk\n *\n * if (inflate.err) { throw new Error(inflate.err); }\n *\n * console.log(inflate.result);\n * ```\n **/\nfunction Inflate(options) {\n if (!(this instanceof Inflate)) return new Inflate(options);\n\n this.options = utils.assign({\n chunkSize: 16384,\n windowBits: 0,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n // Force window size for `raw` data, if not set directly,\n // because we have no header for autodetect.\n if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\n opt.windowBits = -opt.windowBits;\n if (opt.windowBits === 0) { opt.windowBits = -15; }\n }\n\n // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\n if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\n !(options && options.windowBits)) {\n opt.windowBits += 32;\n }\n\n // Gzip header has no info about windows size, we can do autodetect only\n // for deflate. So, if window size not set, force it to max when gzip possible\n if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\n // bit 3 (16) -> gzipped data\n // bit 4 (32) -> autodetect gzip/deflate\n if ((opt.windowBits & 15) === 0) {\n opt.windowBits |= 15;\n }\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new ZStream();\n this.strm.avail_out = 0;\n\n var status = zlib_inflate.inflateInit2(\n this.strm,\n opt.windowBits\n );\n\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n\n this.header = new GZheader();\n\n zlib_inflate.inflateGetHeader(this.strm, this.header);\n\n // Setup dictionary\n if (opt.dictionary) {\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n opt.dictionary = strings.string2buf(opt.dictionary);\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\n opt.dictionary = new Uint8Array(opt.dictionary);\n }\n if (opt.raw) { //In raw mode we need to set the dictionary early\n status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary);\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n }\n }\n}\n\n/**\n * Inflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\n *\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\n * new output chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the decompression context.\n *\n * On fail call [[Inflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nInflate.prototype.push = function (data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var dictionary = this.options.dictionary;\n var status, _mode;\n var next_out_utf8, tail, utf8str;\n\n // Flag to properly process Z_BUF_ERROR on testing inflate call\n // when we check that all output data was flushed.\n var allowBufError = false;\n\n if (this.ended) { return false; }\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // Only binary strings can be decompressed on practice\n strm.input = strings.binstring2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n\n status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */\n\n if (status === c.Z_NEED_DICT && dictionary) {\n status = zlib_inflate.inflateSetDictionary(this.strm, dictionary);\n }\n\n if (status === c.Z_BUF_ERROR && allowBufError === true) {\n status = c.Z_OK;\n allowBufError = false;\n }\n\n if (status !== c.Z_STREAM_END && status !== c.Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n\n if (strm.next_out) {\n if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {\n\n if (this.options.to === 'string') {\n\n next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\n\n tail = strm.next_out - next_out_utf8;\n utf8str = strings.buf2string(strm.output, next_out_utf8);\n\n // move tail\n strm.next_out = tail;\n strm.avail_out = chunkSize - tail;\n if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }\n\n this.onData(utf8str);\n\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n }\n\n // When no more input data, we should check that internal inflate buffers\n // are flushed. The only way to do it when avail_out = 0 - run one more\n // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.\n // Here we set flag to process this error properly.\n //\n // NOTE. Deflate does not return error in this case and does not needs such\n // logic.\n if (strm.avail_in === 0 && strm.avail_out === 0) {\n allowBufError = true;\n }\n\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);\n\n if (status === c.Z_STREAM_END) {\n _mode = c.Z_FINISH;\n }\n\n // Finalize on the last chunk.\n if (_mode === c.Z_FINISH) {\n status = zlib_inflate.inflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === c.Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === c.Z_SYNC_FLUSH) {\n this.onEnd(c.Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Inflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): output data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nInflate.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Inflate#onEnd(status) -> Void\n * - status (Number): inflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called either after you tell inflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nInflate.prototype.onEnd = function (status) {\n // On success - join\n if (status === c.Z_OK) {\n if (this.options.to === 'string') {\n // Glue & convert here, until we teach pako to send\n // utf8 aligned strings to onData\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * inflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\n * format via wrapper header by default. That's why we don't provide\n * separate `ungzip` method.\n *\n * Supported options are:\n *\n * - windowBits\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , input = pako.deflate([1,2,3,4,5,6,7,8,9])\n * , output;\n *\n * try {\n * output = pako.inflate(input);\n * } catch (err)\n * console.log(err);\n * }\n * ```\n **/\nfunction inflate(input, options) {\n var inflator = new Inflate(options);\n\n inflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (inflator.err) { throw inflator.msg || msg[inflator.err]; }\n\n return inflator.result;\n}\n\n\n/**\n * inflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * The same as [[inflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction inflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return inflate(input, options);\n}\n\n\n/**\n * ungzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Just shortcut to [[inflate]], because it autodetects format\n * by header.content. Done for convenience.\n **/\n\n\nexports.Inflate = Inflate;\nexports.inflate = inflate;\nexports.inflateRaw = inflateRaw;\nexports.ungzip = inflate;\n", "// Top level file is just a mixin of submodules & constants\n'use strict';\n\nvar assign = require('./lib/utils/common').assign;\n\nvar deflate = require('./lib/deflate');\nvar inflate = require('./lib/inflate');\nvar constants = require('./lib/zlib/constants');\n\nvar pako = {};\n\nassign(pako, deflate, inflate, constants);\n\nmodule.exports = pako;\n", "export function showloading(txt) {\r\n $(\"#luckysheet-cell-loading\").find(\"span\").text(txt).end().show();\r\n};\r\n\r\nexport function hideloading() {\r\n $(\"#luckysheet-cell-loading\").hide();\r\n};", "import browser from './browser';\r\nimport formula from './formula';\r\nimport { datagridgrowth } from './getdata';\r\nimport { jfrefreshgrid, jfrefreshgridall, jfrefreshrange } from './refresh';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport Store from '../store';\r\n\r\nconst editor = {\r\n //worker+blob\u5B9E\u73B0\u6DF1\u62F7\u8D1D\u66FF\u6362extend\r\n deepCopyFlowDataState:false,\r\n deepCopyFlowDataCache:\"\",\r\n deepCopyFlowDataWorker:null,\r\n deepCopyFlowData:function(flowData){\r\n let _this = this;\r\n\r\n if(_this.deepCopyFlowDataState){\r\n if(_this.deepCopyFlowDataWorker != null){\r\n _this.deepCopyFlowDataWorker.terminate(); \r\n }\r\n return _this.deepCopyFlowDataCache;\r\n }\r\n else{\r\n if(flowData == null){\r\n flowData = Store.flowdata;\r\n }\r\n\r\n return $.extend(true, [], flowData);\r\n }\r\n },\r\n webWorkerFlowDataCache:function(flowData){\r\n let _this = this;\r\n\r\n try{\r\n if(_this.deepCopyFlowDataWorker != null){//\u5B58\u65B0\u7684webwork\u524D\u5148\u9500\u6BC1\u4EE5\u524D\u7684\r\n _this.deepCopyFlowDataWorker.terminate();\r\n }\r\n\r\n let funcTxt = 'data:text/javascript;chartset=US-ASCII,onmessage = function (e) { postMessage(e.data); };';\r\n _this.deepCopyFlowDataState = false;\r\n\r\n //\u9002\u914DIE\r\n let worker;\r\n if(browser.isIE() == 1){\r\n let response = \"self.onmessage=function(e){postMessage(e.data);}\";\r\n worker = new Worker('./plugins/Worker-helper.js');\r\n worker.postMessage(response);\r\n }\r\n else{\r\n worker = new Worker(funcTxt);\r\n }\r\n\r\n _this.deepCopyFlowDataWorker = worker;\r\n worker.postMessage(flowData);\r\n worker.onmessage = function(e) { \r\n _this.deepCopyFlowDataCache = e.data;\r\n _this.deepCopyFlowDataState = true;\r\n };\r\n }\r\n catch(e){\r\n _this.deepCopyFlowDataCache = $.extend(true, [], flowData);\r\n }\r\n },\r\n\r\n /**\r\n * @param {Array} dataChe \r\n * @param {Object} range \u662F\u5426\u6307\u5B9A\u9009\u533A\uFF0C\u9ED8\u8BA4\u4E3A\u5F53\u524D\u9009\u533A\r\n * @since Add range parameter. Update by siwei@2020-09-10. \r\n */\r\n controlHandler: function (dataChe, range) {\r\n let _this = this;\r\n\r\n let d = _this.deepCopyFlowData(Store.flowdata);//\u53D6\u6570\u636E\r\n\r\n // let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let last = range || Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let curR = last[\"row\"] == null ? 0 : last[\"row\"][0];\r\n let curC = last[\"column\"] == null ? 0 : last[\"column\"][0];\r\n let rlen = dataChe.length, clen = dataChe[0].length;\r\n\r\n let addr = curR + rlen - d.length, addc = curC + clen - d[0].length;\r\n if(addr > 0 || addc > 0){\r\n d = datagridgrowth([].concat(d), addr, addc, true);\r\n }\r\n\r\n for (let r = 0; r < rlen; r++) {\r\n let x = [].concat(d[r + curR]);\r\n for (let c = 0; c < clen; c++) {\r\n let value = \"\";\r\n if (dataChe[r] != null && dataChe[r][c] != null) {\r\n value = dataChe[r][c];\r\n }\r\n x[c + curC] = value;\r\n }\r\n d[r + curR] = x;\r\n }\r\n\r\n if (addr > 0 || addc > 0) {\r\n jfrefreshgridall(d[0].length, d.length, d, null, Store.luckysheet_select_save, \"datachangeAll\");\r\n }\r\n else {\r\n jfrefreshrange(d, Store.luckysheet_select_save);\r\n }\r\n },\r\n clearRangeByindex: function (st_r, ed_r, st_c, ed_c, sheetIndex) {\r\n let index = getSheetIndex(sheetIndex);\r\n let d = $.extend(true, [], Store.luckysheetfile[index][\"data\"]);\r\n \r\n for (let r = st_r; r <= ed_r; r++) {\r\n let x = [].concat(d[r]);\r\n for (let c = st_c; c <= ed_c; c++) {\r\n formula.delFunctionGroup(r, c);\r\n formula.execFunctionGroup(r, c, \"\");\r\n x[c] = null;\r\n }\r\n d[r] = x;\r\n }\r\n\r\n if(sheetIndex == Store.currentSheetIndex){\r\n let rlen = ed_r - st_r + 1, \r\n clen = ed_c - st_c + 1;\r\n \r\n if (rlen > 5000) {\r\n jfrefreshgrid(d, [{ \"row\": [st_r, ed_r], \"column\": [st_c, ed_c] }]);\r\n }\r\n else {\r\n jfrefreshrange(d, { \"row\": [st_r, ed_r], \"column\": [st_c, ed_c] });\r\n }\r\n }\r\n else{\r\n Store.luckysheetfile[index][\"data\"] = d;\r\n }\r\n },\r\n controlHandlerD: function (dataChe) {\r\n let _this = this;\r\n\r\n let d = _this.deepCopyFlowData(Store.flowdata);//\u53D6\u6570\u636E\r\n\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let r1 = last[\"row\"][0], r2 = last[\"row\"][1];\r\n let c1 = last[\"column\"][0], c2 = last[\"column\"][1];\r\n let rlen = dataChe.length, clen = dataChe[0].length;\r\n\r\n let addr = r1 + rlen - d.length, addc = c1 + clen - d[0].length;\r\n if(addr >0 || addc > 0){\r\n d = datagridgrowth([].concat(d), addr, addc, true);\r\n }\r\n\r\n for(let r = r1; r <= r2; r++){\r\n for(let c = c1; c <= c2; c++){\r\n d[r][c] = null;\r\n }\r\n }\r\n\r\n for(let i = 0; i < rlen; i++){\r\n for(let j = 0; j < clen; j++){\r\n d[r1 + i][c1 + j] = dataChe[i][j];\r\n }\r\n }\r\n\r\n let range = [\r\n { \"row\": [r1, r2], \"column\": [c1, c2] },\r\n { \"row\": [r1, r1 + rlen - 1], \"column\": [c1, c1 + clen - 1] }\r\n ];\r\n\r\n jfrefreshgrid(d, range);\r\n }\r\n};\r\n\r\nexport default editor;", "import { getObjType } from '../utils/util';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport Store from '../store';\r\n\r\n//\u52A8\u6001\u6570\u7EC4\u8BA1\u7B97\r\nfunction dynamicArrayCompute(dynamicArray) {\r\n let dynamicArray_compute = {};\r\n\r\n if(getObjType(dynamicArray) == \"array\"){\r\n for(let i = 0; i < dynamicArray.length; i++){\r\n let d_row = dynamicArray[i].r;\r\n let d_col = dynamicArray[i].c;\r\n let d_f = dynamicArray[i].f;\r\n \r\n if(Store.flowdata[d_row][d_col] != null && Store.flowdata[d_row][d_col].f != null && Store.flowdata[d_row][d_col].f == d_f){\r\n if((d_row + \"_\" + d_col) in dynamicArray_compute){\r\n dynamicArray_compute = dynamicArraySpillEditCompute(dynamicArray_compute, d_row , d_col);\r\n }\r\n\r\n let d_data = dynamicArray[i].data;\r\n let d_rowlen = d_data.length;\r\n let d_collen = 1;\r\n\r\n if(getObjType(d_data[0]) == \"array\"){\r\n d_collen = d_data[0].length;\r\n }\r\n\r\n if(dynamicArrayRangeIsAllNull({ \"row\": [d_row, d_row + d_rowlen - 1], \"column\": [d_col, d_col + d_collen - 1] }, Store.flowdata)){\r\n for(let x = 0; x < d_rowlen; x++){\r\n for(let y = 0; y < d_collen; y++){\r\n let rowIndex = d_row + x;\r\n let colIndex = d_col + y;\r\n\r\n if(getObjType(d_data[0]) == \"array\"){\r\n dynamicArray_compute[rowIndex + \"_\" + colIndex] = {\"v\": d_data[x][y], \"r\": d_row, \"c\": d_col};\r\n }\r\n else{\r\n dynamicArray_compute[rowIndex + \"_\" + colIndex] = {\"v\": d_data[x], \"r\": d_row, \"c\": d_col};\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n dynamicArray_compute[d_row + \"_\" + d_col] = {\"v\": \"#SPILL!\", \"r\": d_row, \"c\": d_col};\r\n }\r\n }\r\n }\r\n }\r\n\r\n return dynamicArray_compute; \r\n}\r\n\r\nfunction dynamicArraySpillEditCompute(computeObj, r, c) {\r\n let rowIndex = computeObj[r + \"_\" + c].r;\r\n let colIndex = computeObj[r + \"_\" + c].c;\r\n\r\n for(let x in computeObj){\r\n if(x == (rowIndex + \"_\" + colIndex)){\r\n computeObj[x].v = \"#SPILL!\";\r\n }\r\n else if(computeObj[x].r == rowIndex && computeObj[x].c == colIndex){\r\n delete computeObj[x];\r\n }\r\n }\r\n\r\n return computeObj;\r\n}\r\n\r\n//\u8303\u56F4\u662F\u5426\u90FD\u662F\u7A7A\u5355\u5143\u683C(\u9664\u7B2C\u4E00\u4E2A\u5355\u5143\u683C)\r\nfunction dynamicArrayRangeIsAllNull(range, data) {\r\n let r1 = range[\"row\"][0], r2 = range[\"row\"][1];\r\n let c1 = range[\"column\"][0], c2 = range[\"column\"][1];\r\n\r\n let isAllNull = true;\r\n for(let r = r1; r <= r2; r++){\r\n for(let c = c1; c <= c2; c++){\r\n if(!(r == r1 && c == c1) && data[r][c] != null && data[r][c].v != null && data[r][c].v.toString() != \"\"){\r\n isAllNull = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return isAllNull;\r\n}\r\n\r\n//\u70B9\u51FB\u8868\u683C\u533A\u57DF\u662F\u5426\u5C5E\u4E8E\u52A8\u6001\u6570\u7EC4\u533A\u57DF\r\nfunction dynamicArrayHightShow(r, c) {\r\n let dynamicArray = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dynamicArray\"] == null ? [] : Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dynamicArray\"];\r\n let dynamicArray_compute = dynamicArrayCompute(dynamicArray);\r\n\r\n if((r + \"_\" + c) in dynamicArray_compute && dynamicArray_compute[r + \"_\" + c].v != \"#SPILL!\"){\r\n let d_row = dynamicArray_compute[r + \"_\" + c].r;\r\n let d_col = dynamicArray_compute[r + \"_\" + c].c;\r\n\r\n let d_f = Store.flowdata[d_row][d_col].f;\r\n\r\n let rlen, clen;\r\n for(let i = 0; i < dynamicArray.length; i++){\r\n if(dynamicArray[i].f == d_f){\r\n rlen = dynamicArray[i].data.length;\r\n\r\n if(getObjType(dynamicArray[i].data[0]) == \"array\"){\r\n clen = dynamicArray[i].data[0].length;\r\n }\r\n else{\r\n clen = 1;\r\n }\r\n }\r\n }\r\n\r\n let d_row_end = d_row + rlen - 1;\r\n let d_col_end = d_col + clen - 1;\r\n\r\n let row = Store.visibledatarow[d_row_end], \r\n row_pre = d_row - 1 == -1 ? 0 : Store.visibledatarow[d_row - 1];\r\n let col = Store.visibledatacolumn[d_col_end], \r\n col_pre = d_col - 1 == -1 ? 0 : Store.visibledatacolumn[d_col - 1];\r\n\r\n $(\"#luckysheet-dynamicArray-hightShow\").css({ \r\n \"left\": col_pre, \r\n \"width\": col - col_pre - 1, \r\n \"top\": row_pre, \r\n \"height\": row - row_pre - 1, \r\n \"display\": \"block\" \r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-dynamicArray-hightShow\").hide();\r\n }\r\n}\r\n\r\nexport {\r\n dynamicArrayCompute,\r\n dynamicArraySpillEditCompute,\r\n dynamicArrayRangeIsAllNull,\r\n dynamicArrayHightShow,\r\n}", "import Store from '../store';\r\n\r\nfunction luckysheetRangeLast(obj) {\r\n let range;\r\n \r\n if(document.createRange){ //chrome, firefox, opera, safari, ie9+\r\n if(obj.innerHTML != obj.innerText || obj.innerHTML == \"\"){\r\n obj.focus(); //\u89E3\u51B3ff\u4E0D\u83B7\u53D6\u7126\u70B9\u65E0\u6CD5\u5B9A\u4F4D\u95EE\u9898\r\n range = window.getSelection();//\u521B\u5EFArange\r\n range.selectAllChildren(obj);//range \u9009\u62E9obj\u4E0B\u6240\u6709\u5B50\u5185\u5BB9\r\n range.collapseToEnd();//\u5149\u6807\u79FB\u81F3\u6700\u540E\r\n }\r\n else{\r\n let len = obj.innerText.length;\r\n\r\n range = document.createRange();\r\n range.selectNodeContents(obj);\r\n range.setStart(obj.childNodes[0], len);\r\n range.collapse(true);\r\n\r\n let selection = window.getSelection();\r\n selection.removeAllRanges();\r\n selection.addRange(range); \r\n }\r\n }\r\n else if(document.selection){ //ie8 and lower\r\n range = document.body.createTextRange();\r\n range.moveToElementText(obj);\r\n range.collapse(false);\r\n range.select();\r\n }\r\n}\r\n\r\nfunction getCursortPosition(textDom){\r\n let cursorPos = 0;\r\n \r\n if(document.selection){\r\n textDom.focus();\r\n let selectRange = document.selection.createRange();\r\n selectRange.moveStart(\"character\", -textDom.value.length);\r\n cursorPos = selectRange.text.length;\r\n }\r\n else if(textDom.selectionStart || textDom.selectionStart == \"0\"){\r\n cursorPos = textDom.selectionStart;\r\n }\r\n\r\n return cursorPos;\r\n}\r\n\r\nfunction hideMenuByCancel(event){\r\n\r\n // Right-click the menu in the title bar, and click on the elements whose class is luckysheet-cols-rows-shift-left and luckysheet-cols-rows-shift-right will trigger the hiding of the menu bar. It should be prohibited. Exclude these two elements. There may be more Other elements will also jump here for more testing\r\n\r\n if(event.target.classList && (event.target.classList.contains('luckysheet-cols-rows-shift-left') || event.target.classList.contains('luckysheet-cols-rows-shift-right'))){\r\n return;\r\n }\r\n\r\n if (!$(event.target).hasClass(\"luckysheet-mousedown-cancel\") && $(event.target).filter(\"[class*='sp-palette']\").length == 0 && $(event.target).filter(\"[class*='sp-thumb']\").length == 0 && $(event.target).filter(\"[class*='sp-']\").length == 0) {\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-cols-h-hover\").hide();\r\n $(\"#luckysheet-cols-menu-btn\").hide();\r\n // $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-sheet-list, #luckysheet-rightclick-sheet-menu, #luckysheet-user-menu\").hide();\r\n $(\"body > .luckysheet-filter-menu, body > .luckysheet-filter-submenu, body > .luckysheet-cols-menu\").hide();\r\n //$(\"body > luckysheet-menuButton\").hide();\r\n Store.luckysheet_cols_menu_status = false;\r\n }\r\n}\r\n\r\nfunction selectTextDom(ele){\r\n if (window.getSelection) {\r\n let range = document.createRange();\r\n range.selectNodeContents(ele);\r\n if(range.startContainer && isInPage(range.startContainer)){\r\n window.getSelection().removeAllRanges();\r\n window.getSelection().addRange(range);\r\n }\r\n }\r\n else if (document.selection) {\r\n let range = document.body.createTextRange();\r\n range.moveToElementText(ele);\r\n range.select();\r\n } \r\n}\r\n\r\nfunction selectTextContent(ele){\r\n if (window.getSelection) {\r\n let range = document.createRange();\r\n var content=ele.firstChild;\r\n range.setStart(content,0);\r\n range.setEnd(content,content.length);\r\n if(range.startContainer && isInPage(range.startContainer)){\r\n window.getSelection().removeAllRanges();\r\n window.getSelection().addRange(range);\r\n }\r\n }\r\n else if (document.selection) {\r\n let range = document.body.createTextRange();\r\n range.moveToElementText(ele);\r\n range.select();\r\n } \r\n}\r\n\r\nfunction selectTextContentCross(sEle, eEle){\r\n if (window.getSelection) {\r\n let range = document.createRange();\r\n var sContent=sEle.firstChild, eContent=eEle.firstChild;\r\n range.setStart(sContent,0);\r\n range.setEnd(eContent,eContent.length);\r\n if(range.startContainer && isInPage(range.startContainer)){\r\n window.getSelection().removeAllRanges();\r\n window.getSelection().addRange(range);\r\n }\r\n }\r\n}\r\n\r\nfunction selectTextContentCollapse(sEle, index){\r\n if (window.getSelection) {\r\n let range = document.createRange();\r\n var sContent=sEle.firstChild;\r\n if(index>sContent.length){\r\n index=sContent.length;\r\n }\r\n else if(index<0){\r\n index = 0;\r\n }\r\n range.setStart(sContent,index);\r\n range.collapse(true);\r\n if(range.startContainer && isInPage(range.startContainer)){\r\n window.getSelection().removeAllRanges();\r\n window.getSelection().addRange(range);\r\n }\r\n\r\n }\r\n}\r\n\r\nfunction isInPage(node) {\r\n return (node === document.body) ? false : document.body.contains(node);\r\n}\r\n\r\nexport {\r\n luckysheetRangeLast,\r\n getCursortPosition,\r\n hideMenuByCancel,\r\n selectTextContent,\r\n selectTextDom,\r\n selectTextContentCross,\r\n selectTextContentCollapse\r\n}", "import {getFontStyleByCell, textTrim} from \"../global/getdata\";\r\nimport {selectTextContent,selectTextContentCross,selectTextContentCollapse} from '../global/cursorPos';\r\nimport locale from '../locale/locale';\r\nimport Store from '../store';\r\n\r\nexport const inlineStyleAffectAttribute = {\"bl\":1, \"it\":1 , \"ff\":1, \"cl\":1, \"un\":1,\"fs\":1,\"fc\":1};\r\nexport const inlineStyleAffectCssName = {\"font-weight\":1, \"font-style\":1 , \"font-family\":1, \"text-decoration\":1, \"border-bottom\":1,\"font-size\":1,\"color\":1};\r\n\r\nexport function isInlineStringCell(cell){\r\n let isIs = cell && cell.ct!=null && cell.ct.t==\"inlineStr\" && cell.ct.s!=null && cell.ct.s.length>0;\r\n return isIs; \r\n}\r\n\r\nexport function isInlineStringCT(ct){\r\n let isIs = ct!=null && ct.t==\"inlineStr\" && ct.s!=null && ct.s.length>0;\r\n return isIs; \r\n}\r\n\r\nexport function updateInlineStringFormat(cell, attr, value, $input){\r\n // let s = Store.inlineStringEditCache;\r\n var w = window.getSelection(); \r\n var range;\r\n if(w.type==\"None\"){\r\n range = Store.inlineStringEditRange;\r\n }\r\n else{\r\n range = w.getRangeAt(0);\r\n } \r\n \r\n\r\n // if(isInlineStringCell(cell)){\r\n // if(Store.inlineStringEditCache==null){\r\n // Store.inlineStringEditCache = JSON.parse(JSON.stringify(cell.ct.s));\r\n // }\r\n // }\r\n // else{\r\n // Store.inlineStringEditCache = [{\r\n // v:cell.v\r\n // }];\r\n // }\r\n\r\n let cac = range.commonAncestorContainer;\r\n let $textEditor;\r\n if(cac.id==\"luckysheet-rich-text-editor\"){\r\n $textEditor = $(cac);\r\n }\r\n else{\r\n $textEditor = $(cac).closest(\"#luckysheet-rich-text-editor\");\r\n }\r\n let $functionbox = $(cac).closest(\"#luckysheet-functionbox-cell\");\r\n\r\n if($textEditor.length==0 && $functionbox.length==0 && Store.inlineStringEditRange!=null){\r\n range = Store.inlineStringEditRange;\r\n cac = range.commonAncestorContainer;\r\n if(cac.id==\"luckysheet-rich-text-editor\"){\r\n $textEditor = $(cac);\r\n }\r\n else{\r\n $textEditor = $(cac).closest(\"#luckysheet-rich-text-editor\");\r\n }\r\n $functionbox = $(cac).closest(\"#luckysheet-functionbox-cell\");\r\n }\r\n\r\n if(range.collapsed===true){\r\n return;\r\n }\r\n\r\n let endContainer = range.endContainer, startContainer = range.startContainer;\r\n let endOffset = range.endOffset, startOffset = range.startOffset;\r\n\r\n if($textEditor.length>0){\r\n if(startContainer===endContainer){\r\n let span = startContainer.parentNode, spanIndex, inherit=false;\r\n \r\n let content = span.innerText;\r\n\r\n let fullContent = $textEditor.html();\r\n if(fullContent.substr(0,5) != \"\" + left + \"\";\r\n }\r\n\r\n if(mid!=\"\"){\r\n // let styleObj = {};\r\n // styleObj[attr] = value;\r\n // let s = getFontStyleByCell(styleObj, undefined, undefined, false);\r\n // let ukey = textTrim(s.substr(0, s.indexOf(':')));\r\n // let uvalue = textTrim(s.substr(s.indexOf(':')+1));\r\n // uvalue = uvalue.substr(0, uvalue.length-1);\r\n // let cssText = span.style.cssText;\r\n // cssText = removeClassWidthCss(cssText, attr);\r\n\r\n let cssText = getCssText(span.style.cssText, attr, value);\r\n\r\n if(inherit){\r\n let box = $(span).closest(\"#luckysheet-input-box\").get(0);\r\n if(box!=null){\r\n cssText = extendCssText(box.style.cssText, cssText);\r\n }\r\n }\r\n \r\n cont += \"\" + mid + \"\";\r\n }\r\n\r\n if(right!=\"\"){\r\n let cssText = span.style.cssText;\r\n if(inherit){\r\n let box = $(span).closest(\"#luckysheet-input-box\").get(0);\r\n if(box!=null){\r\n cssText = extendCssText(box.style.cssText, cssText);\r\n }\r\n }\r\n cont += \"\" + right + \"\";\r\n }\r\n\r\n if(startContainer.parentNode.tagName==\"SPAN\"){\r\n spanIndex = $textEditor.find(\"span\").index(span);\r\n $(span).replaceWith(cont);\r\n }\r\n else{\r\n spanIndex = 0;\r\n $(span).html(cont);\r\n }\r\n \r\n\r\n let seletedNodeIndex = 0;\r\n if(s1==s2){\r\n seletedNodeIndex = spanIndex;\r\n }\r\n else{\r\n seletedNodeIndex = spanIndex+1;\r\n }\r\n\r\n selectTextContent($textEditor.find(\"span\").get(seletedNodeIndex));\r\n }\r\n else{\r\n if(startContainer.parentNode.tagName==\"SPAN\" && endContainer.parentNode.tagName==\"SPAN\"){\r\n let startSpan = startContainer.parentNode, startSpanIndex;\r\n let endSpan = endContainer.parentNode, endSpanIndex;\r\n\r\n startSpanIndex = $textEditor.find(\"span\").index(startSpan);\r\n endSpanIndex = $textEditor.find(\"span\").index(endSpan);\r\n\r\n let startContent = startSpan.innerHTML, endContent = endSpan.innerHTML;\r\n let sleft=\"\" , sright=\"\", eleft=\"\" , eright=\"\";\r\n let s1=0, s2=startOffset, s3 = endOffset, s4=endContent.length;\r\n\r\n sleft = startContent.substring(s1, s2);\r\n sright = startContent.substring(s2, startContent.length);\r\n\r\n eleft = endContent.substring(0, s3);\r\n eright = endContent.substring(s3, s4);\r\n let spans = $textEditor.find(\"span\");\r\n let replaceSpans = spans.slice(startSpanIndex, endSpanIndex+1);\r\n let cont = \"\";\r\n for(let i=0;i\" + content + \"\";\r\n }\r\n if(sleft!=\"\"){\r\n cont += \"\" + sleft + \"\";\r\n }\r\n\r\n if(sright!=\"\"){\r\n let cssText = getCssText(startSpan.style.cssText, attr, value);\r\n cont += \"\" + sright + \"\";\r\n }\r\n\r\n if(startSpanIndex\" + content + \"\";\r\n }\r\n }\r\n\r\n if(eleft!=\"\"){\r\n let cssText = getCssText(endSpan.style.cssText, attr, value);\r\n cont += \"\" + eleft + \"\";\r\n } \r\n \r\n if(eright!=\"\"){\r\n cont += \"\" + eright + \"\";\r\n }\r\n\r\n for(let i=endSpanIndex+1;i\" + content + \"\";\r\n }\r\n\r\n $textEditor.html(cont);\r\n\r\n // console.log(replaceSpans, cont);\r\n // replaceSpans.replaceWith(cont);\r\n\r\n let startSeletedNodeIndex, endSeletedNodeIndex;\r\n if(s1==s2){\r\n startSeletedNodeIndex = startSpanIndex;\r\n endSeletedNodeIndex = endSpanIndex;\r\n }\r\n else{\r\n startSeletedNodeIndex = startSpanIndex+1;\r\n endSeletedNodeIndex = endSpanIndex+1;\r\n }\r\n\r\n spans = $textEditor.find(\"span\");\r\n\r\n selectTextContentCross(spans.get(startSeletedNodeIndex), spans.get(endSeletedNodeIndex));\r\n }\r\n }\r\n }\r\n else if($functionbox.length>0){\r\n\r\n }\r\n}\r\n\r\nexport function enterKeyControll(cell){\r\n var w = window.getSelection(); \r\n \r\n if(w.type==\"None\"){\r\n return\r\n }\r\n var range = w.getRangeAt(0);\r\n let cac = range.commonAncestorContainer;\r\n let $textEditor;\r\n if(cac.id==\"luckysheet-rich-text-editor\"){\r\n $textEditor = $(cac);\r\n }\r\n else{\r\n $textEditor = $(cac).closest(\"#luckysheet-rich-text-editor\");\r\n }\r\n let $functionbox = $(cac).closest(\"#luckysheet-functionbox-cell\");\r\n\r\n // if(range.collapsed===true){\r\n // return;\r\n // }\r\n\r\n let endContainer = range.endContainer, startContainer = range.startContainer;\r\n let endOffset = range.endOffset, startOffset = range.startOffset;\r\n \r\n if($textEditor.length>0){\r\n let startSpan = startContainer.parentNode;\r\n if(startContainer.id==\"luckysheet-rich-text-editor\"){\r\n startSpan = $(startContainer).find(\"span\");\r\n if(startSpan.length==0){\r\n // \u5728\u672B\u5C3E\u6362\u884C\u64CD\u4F5C\u4F1A\u5BFC\u81F4\u6570\u636E\u4E22\u5931(\u8986\u76D6)\r\n startContainer.innerHTML = `${startContainer.innerText}`;\r\n startSpan = $(startContainer).find(\"span\");\r\n }\r\n startSpan = startSpan.get(startSpan.length-1);\r\n startOffset = startSpan.innerHTML.length;\r\n }\r\n // let startSpanIndex = $textEditor.find(\"span\").index(startSpan);\r\n if(range.collapsed===false){\r\n range.deleteContents();\r\n }\r\n\r\n // \u5982\u679C\u62F7\u8D1D\u7684\u5185\u5BB9\u4E3A\uFF1Apc&web \uFF0C\u90A3\u4E48innerHTML\u5F97\u5230\u7684\u503C\u4E3A\uFF1Apc&web \uFF0C\u6267\u884C\u6362\u884C\u64CD\u4F5C\u5B58\u5728\u95EE\u9898\r\n // let startContent = startSpan.innerHTML; \r\n let startContent = startSpan.innerText;\r\n let sleft=\"\" , sright=\"\";\r\n let s1=0, s2=startOffset;\r\n\r\n sleft = startContent.substring(s1, s2);\r\n sright = startContent.substring(s2, startContent.length);\r\n\r\n \r\n let spanIndex,cont;\r\n if(startContainer.parentNode.tagName==\"SPAN\"){\r\n let textSpan = $textEditor.find(\"span\");\r\n spanIndex = textSpan.index(startSpan);\r\n if((spanIndex==textSpan.length-1) && sright==\"\"){\r\n let txt = textSpan[spanIndex].innerHTML;\r\n if(txt.substr(txt.length-1, 1)==\"\\n\"){\r\n cont = \"\" + sleft + \"\\n\" + \"\";\r\n }\r\n else{\r\n cont = \"\" + sleft + \"\\n\\n\" + \"\";\r\n }\r\n \r\n }\r\n else{\r\n cont = \"\" + sleft + \"\\n\" + sright + \"\";\r\n }\r\n \r\n $(startSpan).replaceWith(cont);\r\n }\r\n else{\r\n // \u8FD9\u91CC\u4E0D\u80FD\u53D6\u6574\u4E2A\u5355\u5143\u683C\u7684\u6837\u5F0F\uFF0C\u56E0\u4E3A\u5982\u679C\u8BBE\u7F6E\u4E86\u90E8\u5206\u6837\u5F0F\u7684\u8BDD\u5C31\u4F1A\u51FA\u95EE\u9898\r\n // let cssText = getFontStyleByCell(cell);\r\n \r\n let cssText = startSpan.style.cssText;\r\n\r\n if(sright==\"\"){\r\n cont = \"\" + sleft + \"\\n\\n\" + \"\";\r\n }\r\n else{\r\n cont = \"\" + sleft + \"\\n\" + sright + \"\";\r\n }\r\n \r\n if(startContainer.id==\"luckysheet-rich-text-editor\"){\r\n $(startSpan).replaceWith(cont);\r\n let textSpan = $textEditor.find(\"span\");\r\n spanIndex = textSpan.length-1;\r\n startOffset = textSpan.get(spanIndex).innerHTML.length-1;\r\n }\r\n else{\r\n $(startSpan).html(cont);\r\n spanIndex = 0;\r\n }\r\n \r\n }\r\n\r\n selectTextContentCollapse($textEditor.find(\"span\").get(spanIndex), startOffset+1);\r\n\r\n }\r\n else if($functionbox.length>0){\r\n\r\n }\r\n}\r\n\r\nexport function updateInlineStringFormatOutside(cell, key, value){\r\n if(cell.ct==null){\r\n return;\r\n }\r\n let s = cell.ct.s;\r\n if(s==null){\r\n return;\r\n }\r\n for(let i=0;i {\r\n s = s.toLowerCase();\r\n let key = textTrim(s.substr(0, s.indexOf(':')));\r\n let value = textTrim(s.substr(s.indexOf(':') + 1));\r\n if(key==\"font-weight\"){\r\n if(value==\"bold\"){\r\n styleList[\"bl\"] = 1;\r\n }\r\n else{\r\n styleList[\"bl\"] = 0;\r\n }\r\n }\r\n\r\n if(key==\"font-style\"){\r\n if(value==\"italic\"){\r\n styleList[\"it\"] = 1;\r\n }\r\n else{\r\n styleList[\"it\"] = 0;\r\n }\r\n }\r\n\r\n if(key==\"font-family\"){\r\n let ff = locale_fontjson[value];\r\n if(ff==null){\r\n styleList[\"ff\"] = value;\r\n }\r\n else{\r\n styleList[\"ff\"] = ff;\r\n }\r\n }\r\n\r\n if(key==\"font-size\"){\r\n styleList[\"fs\"] = parseInt(value);\r\n }\r\n\r\n if(key==\"color\"){\r\n styleList[\"fc\"] = value;\r\n }\r\n\r\n if(key==\"text-decoration\"){\r\n styleList[\"cl\"] = 1;\r\n }\r\n\r\n if(key==\"border-bottom\"){\r\n styleList[\"un\"] = 1;\r\n }\r\n\r\n if(key==\"lucky-strike\"){\r\n styleList[\"cl\"] = value;\r\n }\r\n\r\n if(key==\"lucky-underline\"){\r\n styleList[\"un\"] = value;\r\n }\r\n\r\n });\r\n\r\n return styleList;\r\n}\r\n\r\nconst luckyToCssName = {\r\n \"bl\":\"font-weight\",\r\n \"it\":\"font-style\",\r\n \"ff\":\"font-family\",\r\n \"fs\":\"font-size\",\r\n \"fc\":\"color\",\r\n \"cl\":\"text-decoration\",\r\n \"un\":\"border-bottom\",\r\n}\r\n\r\nfunction getClassWithcss(cssText, ukey){\r\n let cssTextArray = cssText.split(\";\");\r\n if(ukey==null || ukey.length==0){\r\n return cssText;\r\n }\r\n if(cssText.indexOf(ukey)>-1){\r\n for(let i=0;i-1){\r\n for(let i=0;i0){\r\n newCss += key + \":\" + value + \";\";\r\n }\r\n }\r\n }\r\n else if(ukey.length>0){\r\n cssText += ukey + \":\" + uvalue + \";\"; \r\n newCss = cssText;\r\n }\r\n\r\n return newCss;\r\n}\r\n\r\nfunction removeClassWidthCss(cssText, ukey){\r\n let cssTextArray = cssText.split(\";\");\r\n let newCss = \"\";\r\n let oUkey = ukey;\r\n if(ukey==null || ukey.length==0){\r\n return cssText;\r\n }\r\n if(ukey in luckyToCssName){\r\n ukey = luckyToCssName[ukey];\r\n }\r\n if(cssText.indexOf(ukey)>-1){\r\n for(let i=0;i0){\r\n newCss += key + \":\" + value + \";\";\r\n }\r\n }\r\n }\r\n else{\r\n newCss = cssText;\r\n }\r\n\r\n return newCss;\r\n}\r\n\r\nfunction getCssText(cssText, attr, value){\r\n let styleObj = {};\r\n styleObj[attr] = value;\r\n if(attr==\"un\"){\r\n let fontColor = getClassWithcss(cssText,\"color\");\r\n if(fontColor==\"\"){\r\n fontColor = \"#000000\";\r\n }\r\n let fs = getClassWithcss(cssText,\"font-size\");\r\n if(fs==\"\"){\r\n fs = 11;\r\n }\r\n fs = parseInt(fs);\r\n styleObj[\"_fontSize\"] = fs;\r\n styleObj[\"_color\"] = fontColor;\r\n }\r\n let s = getFontStyleByCell(styleObj, undefined, undefined, false);\r\n let ukey = textTrim(s.substr(0, s.indexOf(':')));\r\n let uvalue = textTrim(s.substr(s.indexOf(':')+1));\r\n uvalue = uvalue.substr(0, uvalue.length-1);\r\n // let cssText = span.style.cssText;\r\n cssText = removeClassWidthCss(cssText, attr);\r\n\r\n cssText = upsetClassWithCss(cssText, ukey, uvalue);\r\n\r\n return cssText;\r\n}\r\n\r\nfunction extendCssText(origin, cover, isLimit=true){\r\n let originArray = origin.split(\";\");\r\n let coverArray = cover.split(\";\");\r\n let newCss = \"\";\r\n \r\n let addKeyList = {};\r\n for(let i=0;i \"2023-05-17 to 2023-05-19\"\r\n // else if(d_value && d_value.ct && d_value.ct.t == 'd') {\r\n // retv = d_value.m;\r\n // }\r\n }\r\n\r\n if(retv == undefined){\r\n retv = null;\r\n }\r\n\r\n return retv;\r\n}\r\n\r\n//Data increase in rows and columns\r\nexport function datagridgrowth(data, addr, addc, iscallback) {\r\n if (addr <= 0 && addc <= 0) {\r\n return data;\r\n }\r\n\r\n if (addr <= 0) {\r\n addr = 0;\r\n }\r\n\r\n if (addc <= 0) {\r\n addc = 0;\r\n }\r\n\r\n let dataClen = 0;\r\n if (data.length == 0) {\r\n data = [];\r\n dataClen = 0;\r\n }\r\n else {\r\n dataClen = data[0].length;\r\n }\r\n\r\n let coladd = [];//\u9700\u8981\u989D\u5916\u589E\u52A0\u7684\u7A7A\u5217\r\n for (let c = 0; c < addc; c++) {\r\n coladd.push(null);\r\n }\r\n\r\n let rowadd = [];//\u5B8C\u6574\u7684\u4E00\u4E2A\u7A7A\u884C\r\n for (let r = 0; r < dataClen + addc; r++) {\r\n rowadd.push(null);\r\n }\r\n\r\n // \u4E0B\u9762\u5FAA\u73AF\u975E\u5E38\u8017\u65F6, \u5728coladd\u4E3A\u7A7A\u65F6\u662F\u65E0\u7528\u5FAA\u73AF\r\n if (coladd && coladd.length) {\r\n for (let r = 0; r < data.length; r++) {\r\n data[r] = [].concat(data[r].concat(coladd));\r\n }\r\n }\r\n\r\n for (let r = 0; r < addr; r++) {\r\n data.push([].concat(rowadd));\r\n }\r\n\r\n if(!!iscallback){\r\n server.saveParam(\"all\", Store.currentSheetIndex, data.length, { \"k\": \"row\" });\r\n server.saveParam(\"all\", Store.currentSheetIndex, data[0].length, { \"k\": \"column\" });\r\n }\r\n\r\n return data;\r\n}\r\n\r\n\r\n//Get the formula of the cell\r\nexport function getcellFormula(r, c, i, data) {\r\n let cell;\r\n if(data!=null){\r\n cell = data[r][c];\r\n }\r\n else{\r\n cell = getOrigincell(r,c,i);\r\n }\r\n\r\n \r\n if(cell==null){\r\n return null;\r\n }\r\n\r\n return cell.f;\r\n}\r\n\r\n\r\nexport function getOrigincell(r, c, i) {\r\n if(r==null || c==null){\r\n return;\r\n }\r\n let data;\r\n if (i == null) {\r\n data = Store.flowdata;\r\n }\r\n else{\r\n let sheet = sheetmanage.getSheetByIndex(i);\r\n data = sheet.data;\r\n }\r\n\r\n if(!data || !data[r] || !data[r][c]){\r\n return;\r\n }\r\n\r\n return data[r][c];\r\n\r\n\r\n}\r\n\r\nexport function getRealCellValue(r, c){\r\n let value = getcellvalue(r, c, null, \"m\");\r\n if(value == null){\r\n value = getcellvalue(r, c);\r\n if(value==null){\r\n let ct = getcellvalue(r, c, null, \"ct\");\r\n if(isInlineStringCT(ct)){\r\n value = ct.s;\r\n }\r\n }\r\n }\r\n\r\n return value;\r\n}\r\n\r\nexport function getInlineStringNoStyle(r, c){\r\n let ct = getcellvalue(r, c, null, \"ct\");\r\n if(isInlineStringCT(ct)){\r\n let strings = ct.s, value=\"\";\r\n for(let i=0;i\" + strObj.v + \"\";\r\n }\r\n }\r\n return value;\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nexport function getFontStyleByCell(cell,checksAF,checksCF, isCheck=true){\r\n if(cell==null){\r\n return;\r\n }\r\n let style = \"\";\r\n const _locale = locale();\r\n const locale_fontarray = _locale.fontarray;\r\n for(let key in cell){\r\n let value = cell[key];\r\n if(isCheck){\r\n value = checkstatusByCell(cell, key);\r\n }\r\n if(key == \"bl\" && value != \"0\"){\r\n style += \"font-weight: bold;\";\r\n }\r\n\r\n if(key == \"it\" && value != \"0\"){\r\n style += \"font-style:italic;\";\r\n }\r\n\r\n if(key == \"ff\"){\r\n let f = value;\r\n if(!isNaN(parseInt(value))){\r\n f = locale_fontarray[parseInt(value)];\r\n }\r\n else{\r\n f = value;\r\n }\r\n style += \"font-family: \" + f + \";\";\r\n }\r\n\r\n if(key == \"fs\"){\r\n style += \"font-size: \"+ value + \"pt;\";\r\n }\r\n\r\n if((key == \"fc\" && value != \"#000000\") || checksAF != null || (checksCF != null && checksCF[\"textColor\"] != null)){\r\n if(checksCF != null && checksCF[\"textColor\"] != null){\r\n style += \"color: \" + checksCF[\"textColor\"] + \";\";\r\n }\r\n else if(checksAF != null){\r\n style += \"color: \" + checksAF[0] + \";\";\r\n }\r\n else{\r\n style += \"color: \" + value + \";\"; \r\n }\r\n }\r\n\r\n if(key == \"cl\" && value != \"0\"){\r\n style += \"text-decoration: line-through;\";\r\n }\r\n\r\n }\r\n return style;\r\n}\r\n\r\nexport function checkstatusByCell(cell, a){\r\n let foucsStatus =cell;\r\n let tf = {\"bl\":1, \"it\":1 , \"ff\":1, \"cl\":1, \"un\":1};\r\n\r\n if(a in tf || (a==\"fs\" && isInlineStringCell(cell)) ){\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n else{\r\n // var w = window.getSelection(), isInlineEdit=false; \r\n // if(w.type!=\"None\"){\r\n // var range = w.getRangeAt(0);\r\n // let startContainer = range.startContainer;\r\n // if (parseInt($(\"#luckysheet-input-box\").css(\"top\")) > 0 && startContainer.parentNode.tagName==\"SPAN\" && !range.collapsed) {\r\n // let span = startContainer.parentNode;\r\n // let styleList = convertCssToStyleList(span.style.cssText);\r\n // foucsStatus = styleList[a];\r\n // isInlineEdit = true;\r\n // }\r\n // }\r\n \r\n // if(!isInlineEdit){ \r\n // if(isInlineStringCell(cell)){\r\n // foucsStatus = cell.ct.s[0][a];\r\n // }\r\n // else{\r\n // foucsStatus = foucsStatus[a];\r\n // }\r\n // } \r\n \r\n foucsStatus = foucsStatus[a];\r\n \r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n }\r\n }\r\n else if(a == \"fc\"){\r\n if(foucsStatus == null){\r\n foucsStatus = \"#000000\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n\r\n if(foucsStatus == null){\r\n foucsStatus = \"#000000\";\r\n }\r\n\r\n if(foucsStatus.indexOf(\"rgba\") > -1){\r\n foucsStatus = rgbTohex(foucsStatus);\r\n }\r\n }\r\n }\r\n else if(a == \"bg\"){\r\n if(foucsStatus == null){\r\n foucsStatus = null;\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n\r\n if(foucsStatus == null){\r\n foucsStatus = null;\r\n }\r\n else if(foucsStatus.toString().indexOf(\"rgba\") > -1){\r\n foucsStatus = rgbTohex(foucsStatus);\r\n }\r\n }\r\n }\r\n else if(a.substr(0, 2) == \"bs\"){\r\n if(foucsStatus == null){\r\n foucsStatus = \"none\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = \"none\";\r\n }\r\n }\r\n }\r\n else if(a.substr(0, 2) == \"bc\"){\r\n if(foucsStatus == null){\r\n foucsStatus = \"#000000\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = \"#000000\";\r\n }\r\n }\r\n }\r\n else if(a == \"ht\"){\r\n if(foucsStatus == null){\r\n foucsStatus = \"1\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = \"1\";\r\n }\r\n }\r\n\r\n if([\"0\", \"1\", \"2\"].indexOf(foucsStatus.toString()) == -1){\r\n foucsStatus = \"1\";\r\n }\r\n }\r\n else if(a == \"vt\"){//\u9ED8\u8BA4\u5782\u76F4\u5C45\u4E2D\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n }\r\n\r\n if([\"0\", \"1\", \"2\"].indexOf(foucsStatus.toString()) == -1){\r\n foucsStatus = \"0\";\r\n }\r\n }\r\n else if(a == \"ct\"){\r\n if(foucsStatus == null){\r\n foucsStatus = null;\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = null;\r\n }\r\n }\r\n }\r\n else if(a == \"fs\"){\r\n if(foucsStatus == null){\r\n foucsStatus = String(Store.defaultFontSize);\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = String(Store.defaultFontSize);\r\n }\r\n }\r\n }\r\n else if(a == \"tb\"){\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n }\r\n }\r\n else if(a == \"tr\"){\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = \"0\";\r\n }\r\n }\r\n }\r\n else if(a == \"rt\"){\r\n if(foucsStatus == null){\r\n foucsStatus = null;\r\n }\r\n else{\r\n foucsStatus = foucsStatus[a];\r\n if(foucsStatus == null){\r\n foucsStatus = null;\r\n }\r\n }\r\n }\r\n\r\n return foucsStatus;\r\n}\r\n\r\nexport function textTrim(x) {\r\n if(x==null || x.length==0){\r\n return x;\r\n }\r\n return x.replace(/^\\s+|\\s+$/gm,'');\r\n}", "function luckysheetbinary_search(arr, key) {\r\n let low = 0, high = arr.length - 1;\r\n \r\n while (low <= high) {\r\n let mid = parseInt((high + low) / 2);\r\n \r\n if (key < arr[mid] && (mid == 0 || key >= arr[mid - 1])) {\r\n return mid;\r\n } \r\n else if (key >= arr[mid]) {\r\n low = mid + 1;\r\n } \r\n else if (key < arr[mid]) {\r\n high = mid - 1;\r\n }\r\n else {\r\n return -1;\r\n }\r\n }\r\n}\r\n\r\nfunction luckysheetorder_search(arr, y) {\r\n let i = 0, \r\n row = 0, \r\n row_pre = 0, \r\n row_index = -1, \r\n i_ed = arr.length - 1;\r\n\r\n while (i < arr.length && i_ed >= 0 && i_ed >= i) {\r\n row = arr[i_ed];\r\n\r\n if (i_ed == 0) {\r\n row_pre = 0;\r\n }\r\n else {\r\n row_pre = arr[i_ed - 1];\r\n }\r\n\r\n if (y >= row_pre && y < row) {\r\n row_index = i_ed;\r\n break;\r\n }\r\n\r\n row = arr[i];\r\n\r\n if (i == 0) {\r\n row_pre = 0;\r\n }\r\n else {\r\n row_pre = arr[i - 1];\r\n }\r\n\r\n if (y >= row_pre && y < row) {\r\n row_index = i;\r\n break;\r\n }\r\n\r\n i++;\r\n i_ed--;\r\n }\r\n\r\n return row_index;\r\n}\r\n\r\nfunction luckysheet_searcharray(arr, y) {\r\n let index = arr.length - 1;\r\n\r\n if (arr.length < 40 || y <= arr[20] || y >= arr[index - 20]) {\r\n index = luckysheetorder_search(arr, y);\r\n }\r\n else {\r\n index = luckysheetbinary_search(arr, y);\r\n }\r\n\r\n return index;\r\n}\r\n\r\nexport {\r\n luckysheet_searcharray,\r\n}", "import { luckysheet_searcharray } from '../controllers/sheetSearch';\r\nimport Store from '../store';\r\n\r\nfunction rowLocationByIndex(row_index) {\r\n let row = 0, row_pre = 0;\r\n row = Store.visibledatarow[row_index];\r\n\r\n if (row_index == 0) {\r\n row_pre = 0;\r\n }\r\n else {\r\n row_pre = Store.visibledatarow[row_index - 1];\r\n }\r\n\r\n return [row_pre, row, row_index];\r\n}\r\n\r\nfunction rowLocation(y) {\r\n let row_index = luckysheet_searcharray(Store.visibledatarow, y);\r\n\r\n if (row_index == -1 && y > 0) {\r\n row_index = Store.visibledatarow.length - 1;\r\n }\r\n else if (row_index == -1 && y <= 0) {\r\n row_index = 0;\r\n }\r\n\r\n return rowLocationByIndex(row_index);\r\n}\r\n\r\nfunction colLocationByIndex(col_index){\r\n let col = 0, col_pre = 0;\r\n col = Store.visibledatacolumn[col_index];\r\n\r\n if (col_index == 0) {\r\n col_pre = 0;\r\n }\r\n else {\r\n col_pre = Store.visibledatacolumn[col_index - 1];\r\n }\r\n\r\n return [col_pre, col, col_index];\r\n}\r\n\r\nfunction colSpanLocationByIndex(col_index, span){\r\n let col = 0, col_pre = 0;\r\n col = Store.visibledatacolumn[col_index + span - 1];\r\n\r\n if (col_index == 0) {\r\n col_pre = 0;\r\n }\r\n else {\r\n col_pre = Store.visibledatacolumn[col_index - 1];\r\n }\r\n\r\n return [col_pre, col, col_index];\r\n}\r\n\r\nfunction colLocation(x) {\r\n let col_index = luckysheet_searcharray(Store.visibledatacolumn, x);\r\n\r\n if (col_index == -1 && x > 0) {\r\n col_index = Store.visibledatacolumn.length - 1;\r\n }\r\n else if (col_index == -1 && x <= 0) {\r\n col_index = 0;\r\n }\r\n\r\n return colLocationByIndex(col_index);\r\n}\r\n\r\nfunction mouseposition(x, y) {\r\n let container_offset = $(\"#\" + Store.container).offset();\r\n\r\n let newX = x - container_offset.left - Store.rowHeaderWidth,\r\n newY = y - container_offset.top - Store.infobarHeight - Store.toolbarHeight - Store.calculatebarHeight - Store.columnHeaderHeight;\r\n\r\n return [newX, newY];\r\n}\r\n\r\nexport {\r\n rowLocationByIndex,\r\n rowLocation,\r\n colLocationByIndex,\r\n colSpanLocationByIndex,\r\n colLocation,\r\n mouseposition,\r\n}\r\n", "import {luckysheetfontformat} from '../utils/util';\r\nimport menuButton from '../controllers/menuButton';\r\nimport {checkstatusByCell} from './getdata';\r\nimport {colLocationByIndex,colSpanLocationByIndex} from './location';\r\nimport {checkWordByteLength, hasChinaword, isRealNull} from './validate';\r\nimport {isInlineStringCell} from '../controllers/inlineString';\r\n\r\nimport Store from '../store';\r\n\r\n/**\r\n * \u8BA1\u7B97\u8303\u56F4\u884C\u9AD8\r\n *\r\n * @param d \u539F\u59CB\u6570\u636E\r\n * @param r1 \u8D77\u59CB\u884C\r\n * @param r2 \u622A\u81F3\u884C\r\n * @param cfg \u914D\u7F6E\r\n * @returns \u8BA1\u7B97\u540E\u7684\u914D\u7F6E\r\n */\r\nfunction rowlenByRange(d, r1, r2, cfg) {\r\n let cfg_clone = $.extend(true, {}, cfg);\r\n if(cfg_clone[\"rowlen\"] == null){\r\n cfg_clone[\"rowlen\"] = {};\r\n }\r\n\r\n if(cfg_clone[\"customHeight\"] == null){\r\n cfg_clone[\"customHeight\"] = {};\r\n }\r\n\r\n let canvas = $(\"#luckysheetTableContent\").get(0).getContext(\"2d\");\r\n canvas.textBaseline = 'top'; //textBaseline\u4EE5top\u8BA1\u7B97\r\n\r\n for(let r = r1; r <= r2; r++){\r\n if (cfg_clone[\"rowhidden\"] != null && cfg_clone[\"rowhidden\"][r] != null) {\r\n continue;\r\n }\r\n\r\n let currentRowLen = Store.defaultrowlen;\r\n\r\n if(cfg_clone[\"customHeight\"][r]==1){\r\n continue;\r\n }\r\n\r\n delete cfg_clone[\"rowlen\"][r];\r\n\r\n for(let c = 0; c < d[r].length; c++){\r\n let cell = d[r][c];\r\n\r\n if(cell == null){\r\n continue;\r\n }\r\n\r\n if(cell != null && (cell.v != null || isInlineStringCell(cell)) ){\r\n let cellWidth;\r\n if(cell.mc){\r\n if(c === cell.mc.c){\r\n let st_cellWidth = colLocationByIndex(c)[0];\r\n let ed_cellWidth = colLocationByIndex(cell.mc.c + cell.mc.cs - 1)[1];\r\n cellWidth = ed_cellWidth - st_cellWidth - 2;\r\n }else{\r\n continue;\r\n }\r\n } else {\r\n cellWidth = colLocationByIndex(c)[1] - colLocationByIndex(c)[0] - 2;\r\n }\r\n\r\n let textInfo = getCellTextInfo(cell, canvas,{\r\n r:r,\r\n c:c,\r\n cellWidth:cellWidth\r\n });\r\n\r\n let computeRowlen = 0;\r\n\r\n if(textInfo!=null){\r\n computeRowlen = textInfo.textHeightAll+2;\r\n }\r\n\r\n //\u6BD4\u8F83\u8BA1\u7B97\u9AD8\u5EA6\u548C\u5F53\u524D\u9AD8\u5EA6\u53D6\u6700\u5927\u9AD8\u5EA6\r\n if(computeRowlen > currentRowLen){\r\n currentRowLen = computeRowlen;\r\n }\r\n }\r\n }\r\n\r\n currentRowLen = currentRowLen/Store.zoomRatio;\r\n\r\n if(currentRowLen != Store.defaultrowlen){\r\n cfg_clone[\"rowlen\"][r] = currentRowLen;\r\n }else{\r\n if(cfg[\"rowlen\"]?.[r]){\r\n cfg_clone[\"rowlen\"][r] = cfg[\"rowlen\"][r]\r\n }\r\n }\r\n }\r\n\r\n return cfg_clone;\r\n}\r\n\r\n//\u6839\u636E\u5185\u5BB9\u8BA1\u7B97\u884C\u9AD8\r\nfunction computeRowlenByContent(d, r) {\r\n let currentRowLen = 0;\r\n\r\n let canvas = $(\"#luckysheetTableContent\").get(0).getContext(\"2d\");\r\n canvas.textBaseline = 'top'; //textBaseline\u4EE5top\u8BA1\u7B97\r\n\r\n for(let c = 0; c < d[r].length; c++){\r\n let cell = d[r][c];\r\n\r\n if (cell == null) {\r\n continue;\r\n }\r\n\r\n if (cell.mc != null) {\r\n if (1 !== cell.mc.rs) {\r\n continue;\r\n }\r\n }\r\n\r\n if(Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c] != null){\r\n continue;\r\n }\r\n\r\n\r\n if(cell != null && (cell.v != null || isInlineStringCell(cell)) ){\r\n let cellWidth = computeCellWidth(cell, c);\r\n\r\n let textInfo = getCellTextInfo(cell, canvas,{\r\n r:r,\r\n c:c,\r\n cellWidth:cellWidth\r\n });\r\n\r\n let computeRowlen = 0;\r\n\r\n if (textInfo != null) {\r\n computeRowlen = textInfo.textHeightAll + 2;\r\n }\r\n\r\n //\u6BD4\u8F83\u8BA1\u7B97\u9AD8\u5EA6\u548C\u5F53\u524D\u9AD8\u5EA6\u53D6\u6700\u5927\u9AD8\u5EA6\r\n if (computeRowlen > currentRowLen) {\r\n currentRowLen = computeRowlen;\r\n }\r\n }\r\n }\r\n\r\n return currentRowLen;\r\n}\r\n\r\nfunction computeCellWidth(cell, col_index) {\r\n let colLocationArr = colLocationByIndex(col_index);\r\n if (cell.mc && 1 !== cell.mc.cs) {\r\n colLocationArr = colSpanLocationByIndex(col_index, cell.mc.cs);\r\n }\r\n\r\n return colLocationArr[1] - colLocationArr[0] - 2;\r\n}\r\n\r\nfunction computeColWidthByContent(d, c, rh) {\r\n let currentColLen = 0;\r\n let rowlenArr = computeRowlenArr(rh, c)\r\n\r\n let canvas = $(\"#luckysheetTableContent\").get(0).getContext(\"2d\");\r\n canvas.textBaseline = 'top'; //textBaseline\u4EE5top\u8BA1\u7B97\r\n\r\n for (var i = 0; i < d.length; i++) {\r\n var cell = d[i][c]\r\n\r\n if (cell != null && (cell.v != null || isInlineStringCell(cell))) {\r\n let cellHeight = rowlenArr[c];\r\n let textInfo = getCellTextInfo(cell, canvas, {\r\n r: i,\r\n c: c,\r\n cellHeight: cellHeight\r\n });\r\n\r\n let computeCollen = 0;\r\n\r\n if (textInfo != null) {\r\n computeCollen = textInfo.textWidthAll + 2;\r\n }\r\n\r\n //\u6BD4\u8F83\u8BA1\u7B97\u9AD8\u5EA6\u548C\u5F53\u524D\u9AD8\u5EA6\u53D6\u6700\u5927\u9AD8\u5EA6\r\n if (computeCollen > currentColLen) {\r\n currentColLen = computeCollen;\r\n }\r\n }\r\n }\r\n\r\n return currentColLen;\r\n}\r\n\r\n//\u8BA1\u7B97\u8868\u683C\u884C\u9AD8\u6570\u7EC4\r\nfunction computeRowlenArr(rowHeight, cfg) {\r\n let rowlenArr = [];\r\n let rh_height = 0;\r\n\r\n for (let i = 0; i < rowHeight; i++) {\r\n let rowlen = Store.defaultrowlen;\r\n\r\n if (cfg[\"rowlen\"] != null && cfg[\"rowlen\"][i] != null) {\r\n rowlen = cfg[\"rowlen\"][i];\r\n }\r\n\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][i] != null) {\r\n rowlen = cfg[\"rowhidden\"][i];\r\n rowlenArr.push(rh_height);\r\n continue;\r\n }\r\n else {\r\n rh_height += rowlen + 1;\r\n }\r\n\r\n rowlenArr.push(rh_height);//\u884C\u7684\u4E34\u65F6\u957F\u5EA6\u5206\u5E03\r\n }\r\n\r\n return rowlenArr;\r\n}\r\n\r\n//\u83B7\u53D6\u6362\u884C\u5355\u5143\u683C\u622A\u65AD\u6570\u7EC4\r\nfunction getCellTextSplitArr(strValue, strArr, cellWidth, canvas){\r\n for(let strI = 1; strI <= strValue.length; strI++){\r\n let strV = strValue.substring(0, strI);\r\n let strtextMetrics = getMeasureText(strV, canvas).width;\r\n\r\n if(strtextMetrics > cellWidth){\r\n if(strI - 1 <= 0){\r\n return strArr;\r\n }\r\n else{\r\n strArr.push(strValue.substring(0, strI - 1));\r\n return getCellTextSplitArr(strValue.substring(strI - 1), strArr, cellWidth, canvas);\r\n }\r\n }\r\n else if(strI == strValue.length){\r\n strArr.push(strV);\r\n }\r\n }\r\n\r\n return strArr;\r\n}\r\n\r\n//\u83B7\u53D6\u6709\u503C\u5355\u5143\u683C\u6587\u672C\u5927\u5C0F\r\n// let measureTextCache = {}, measureTextCacheTimeOut = null;\r\nfunction getMeasureText(value, ctx, fontset){\r\n\r\n let mtc = Store.measureTextCache[value + \"_\" + ctx.font];\r\n if(fontset!=null){\r\n mtc = Store.measureTextCache[value + \"_\" + fontset];\r\n }\r\n\r\n if(mtc != null){\r\n return mtc;\r\n }\r\n else{\r\n if(fontset!=null){\r\n let preFont = ctx.font;\r\n ctx.font = fontset;\r\n }\r\n\r\n let measureText = ctx.measureText(value), cache = {};\r\n // var regu = \"^[ ]+$\";\r\n // var re = new RegExp(regu);\r\n // if(measureText.actualBoundingBoxRight==null || re.test(value)){\r\n // cache.width = measureText.width;\r\n // }\r\n // else{\r\n // //measureText.actualBoundingBoxLeft +\r\n // cache.width = measureText.actualBoundingBoxRight;\r\n // }\r\n\r\n cache.width = measureText.width;\r\n\r\n if(fontset!=null){\r\n ctx.font = fontset;\r\n }\r\n\r\n cache.actualBoundingBoxDescent = measureText.actualBoundingBoxDescent;\r\n cache.actualBoundingBoxAscent = measureText.actualBoundingBoxAscent;\r\n if(cache.actualBoundingBoxDescent==null || cache.actualBoundingBoxAscent==null || isNaN(cache.actualBoundingBoxDescent) || isNaN(cache.actualBoundingBoxAscent)){\r\n let commonWord = \"M\"\r\n if(hasChinaword(value)){\r\n commonWord = \"\u7530\";\r\n }\r\n let oneLineTextHeight = menuButton.getTextSize(commonWord, ctx.font)[1]*0.8;\r\n if(ctx.textBaseline==\"top\"){\r\n cache.actualBoundingBoxDescent = oneLineTextHeight;\r\n cache.actualBoundingBoxAscent = 0;\r\n }\r\n else if(ctx.textBaseline==\"middle\"){\r\n cache.actualBoundingBoxDescent = oneLineTextHeight/2;\r\n cache.actualBoundingBoxAscent = oneLineTextHeight/2;\r\n }\r\n else{\r\n cache.actualBoundingBoxDescent = 0;\r\n cache.actualBoundingBoxAscent = oneLineTextHeight;\r\n }\r\n\r\n //console.log(value, oneLineTextHeight, measureText.actualBoundingBoxDescent+measureText.actualBoundingBoxAscent,ctx.font);\r\n }\r\n\r\n if(ctx.textBaseline == 'alphabetic'){\r\n let descText = \"gjpqy\", matchText=\"abcdABCD\";\r\n let descTextMeasure = Store.measureTextCache[descText + \"_\" + ctx.font];\r\n if(fontset!=null){\r\n descTextMeasure = Store.measureTextCache[descText + \"_\" + fontset];\r\n }\r\n\r\n let matchTextMeasure = Store.measureTextCache[matchText + \"_\" + ctx.font];\r\n if(fontset!=null){\r\n matchTextMeasure = Store.measureTextCache[matchText + \"_\" + fontset];\r\n }\r\n\r\n if(descTextMeasure == null){\r\n descTextMeasure = ctx.measureText(descText);\r\n }\r\n\r\n if(matchTextMeasure == null){\r\n matchTextMeasure = ctx.measureText(matchText);\r\n }\r\n\r\n if(cache.actualBoundingBoxDescent<=matchTextMeasure.actualBoundingBoxDescent){\r\n cache.actualBoundingBoxDescent = descTextMeasure.actualBoundingBoxDescent;\r\n if(cache.actualBoundingBoxDescent==null){\r\n cache.actualBoundingBoxDescent = 0;\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n cache.width *= Store.zoomRatio;\r\n cache.actualBoundingBoxDescent *= Store.zoomRatio;\r\n cache.actualBoundingBoxAscent *= Store.zoomRatio;\r\n Store.measureTextCache[value + \"_\" + Store.zoomRatio + \"_\" + ctx.font] = cache;\r\n // console.log(measureText, value);\r\n return cache;\r\n }\r\n}\r\n\r\nfunction isSupportBoundingBox(ctx){\r\n let measureText = ctx.measureText(\"\u7530\");\r\n if(measureText.actualBoundingBoxAscent==null){\r\n return false;\r\n }\r\n return true;\r\n}\r\n\r\n\r\n//\u83B7\u53D6\u5355\u5143\u683C\u6587\u672C\u5185\u5BB9\u7684\u6E32\u67D3\u4FE1\u606F\r\n// let measureTextCache = {}, measureTextCacheTimeOut = null;\r\n// option {cellWidth,cellHeight,space_width,space_height}\r\nfunction getCellTextInfo(cell , ctx, option){\r\n let cellWidth = option.cellWidth;\r\n let cellHeight = option.cellHeight;\r\n let isMode = \"\", isModeSplit = \"\";\r\n // console.log(\"initialinfo\", cell, option);\r\n if(cellWidth==null){\r\n isMode = \"onlyWidth\";\r\n isModeSplit = \"_\";\r\n }\r\n let textInfo = Store.measureTextCellInfoCache[option.r + \"_\" + option.c + isModeSplit + isMode];\r\n if(textInfo != null){\r\n return textInfo;\r\n }\r\n\r\n // let cell = Store.flowdata[r][c];\r\n let space_width = option.space_width, space_height = option.space_height; //\u5BBD\u9AD8\u65B9\u5411 \u95F4\u9699\r\n\r\n if(space_width==null){\r\n space_width = 2;\r\n }\r\n\r\n if(space_height==null){\r\n space_height = 2;\r\n }\r\n\r\n //\u6C34\u5E73\u5BF9\u9F50\r\n let horizonAlign = checkstatusByCell(cell, \"ht\");\r\n //\u5782\u76F4\u5BF9\u9F50\r\n let verticalAlign = checkstatusByCell(cell, \"vt\");\r\n\r\n let tb = checkstatusByCell(cell ,\"tb\");//wrap overflow\r\n let tr = checkstatusByCell(cell ,\"tr\");//rotate\r\n let rt = checkstatusByCell(cell ,\"rt\");//rotate angle\r\n\r\n let isRotateUp = 1, isRotateDown=0;\r\n\r\n if(rt==null){\r\n if(tr==\"0\"){\r\n rt = 0;\r\n }\r\n else if(tr==\"1\"){\r\n rt = 45;\r\n }\r\n else if(tr==\"4\"){\r\n rt = 90;\r\n }\r\n else if(tr==\"2\"){\r\n rt = 135;\r\n }\r\n else if(tr==\"5\"){\r\n rt = 180;\r\n }\r\n\r\n if(rt==null){\r\n rt = 0;\r\n }\r\n }\r\n\r\n if(rt>180 || rt<0){\r\n rt = 0;\r\n }\r\n\r\n rt = parseInt(rt);\r\n if(rt>90){\r\n rt = 90 -rt;\r\n isRotateUp = 0;\r\n isRotateDown = 1;\r\n }\r\n\r\n ctx.textAlign=\"start\";\r\n\r\n let textContent = {};\r\n textContent.values = [];\r\n\r\n let fontset, cancelLine=\"0\", underLine=\"0\", fontSize=11, isInline=false, value, inlineStringArr=[];\r\n if(isInlineStringCell(cell)){\r\n let sharedStrings = cell.ct.s, similarIndex = 0;\r\n for(let i=0;icellHeight && textH_all_Column[colIndex]!=null){\r\n // textW_all += textW;\r\n // textH_all = Math.max(textH_all,textH_all_cache);\r\n // console.log(\">\",i,colIndex);\r\n textH_all_ColumnHeight.push(textH_all_cache-textH);\r\n textH_all_cache = textH;\r\n colIndex +=1;\r\n }\r\n }\r\n\r\n if(i== inlineStringArr.length-1){\r\n textH_all_ColumnHeight.push(textH_all_cache);\r\n }\r\n\r\n if(textH_all_Column[colIndex]==null){\r\n textH_all_Column[colIndex]= [];\r\n }\r\n\r\n let item = {\r\n content:showValue,\r\n style:shareCell,\r\n width:textW,\r\n height:textH,\r\n left:0,\r\n top:0,\r\n colIndex:colIndex,\r\n asc:measureText.actualBoundingBoxAscent,\r\n desc:measureText.actualBoundingBoxDescent,\r\n inline:true,\r\n }\r\n\r\n if(shareCell.wrap===true){\r\n item.wrap=true;\r\n }\r\n\r\n textH_all_Column[colIndex].push(item);\r\n console.log(\"normal\",i,colIndex,shareCell, preShareCell, textH_all_Column);\r\n preShareCell = shareCell;\r\n\r\n }\r\n }\r\n else{\r\n let measureText = getMeasureText(value, ctx);\r\n let textHeight = measureText.actualBoundingBoxDescent + measureText.actualBoundingBoxAscent;\r\n\r\n value = value.toString();\r\n\r\n let vArr = [];\r\n if(value.length > 1){\r\n vArr = value.split(\"\");\r\n }\r\n else{\r\n vArr.push(value);\r\n }\r\n let oneWordWidth = getMeasureText(vArr[0], ctx).width;\r\n\r\n for(let i = 0; i < vArr.length; i++){\r\n let textW = oneWordWidth + space_width;\r\n let textH = textHeight + space_height;\r\n\r\n // textW_all += textW;\r\n textH_all_cache += textH;\r\n\r\n\r\n if(tb==\"2\"){\r\n if(textH_all_cache>cellHeight && textH_all_Column[colIndex]!=null){\r\n // textW_all += textW;\r\n // textH_all = Math.max(textH_all,textH_all_cache);\r\n textH_all_ColumnHeight.push(textH_all_cache-textH);\r\n textH_all_cache = textH;\r\n colIndex +=1;\r\n }\r\n }\r\n\r\n if(i== vArr.length-1){\r\n textH_all_ColumnHeight.push(textH_all_cache);\r\n }\r\n\r\n if(textH_all_Column[colIndex]==null){\r\n textH_all_Column[colIndex]= [];\r\n }\r\n\r\n textH_all_Column[colIndex].push({\r\n content:vArr[i],\r\n style:fontset,\r\n width:textW,\r\n height:textH,\r\n left:0,\r\n top:0,\r\n colIndex:colIndex,\r\n asc:measureText.actualBoundingBoxAscent,\r\n desc:measureText.actualBoundingBoxDescent\r\n });\r\n\r\n }\r\n }\r\n\r\n let textH_all_ColumWidth = [];\r\n for(let i = 0; i < textH_all_ColumnHeight.length; i++){\r\n let columnHeight = textH_all_ColumnHeight[i];\r\n let col = textH_all_Column[i], colMaxW=0;\r\n for(let c=0;c1){\r\n for(let s=0;scellHeight);\r\n if((height+space_height)>cellHeight && text_all_split[splitIndex]!=null && tb==\"2\" && i!= inlineStringArr.length){\r\n // console.log(\"cut\",anchor, i , str);\r\n\r\n if(spaceOrTwoByteIndex!=null && spaceOrTwoByteIndexcellWidth && text_all_split[splitIndex]!=null && tb==\"2\" && i!= inlineStringArr.length){\r\n\r\n\r\n if(spaceOrTwoByteIndex!=null && spaceOrTwoByteIndexcellHeight && text_all_split[splitIndex]!=null && i!= value.length){\r\n // console.log(\"cut\",anchor, i , str);\r\n\r\n if(spaceOrTwoByte!=null && spaceOrTwoByte.indexcellWidth && text_all_split[splitIndex]!=null && i!= value.length){\r\n // console.log(spaceOrTwoByte, i, anchor);\r\n if(spaceOrTwoByte!=null && spaceOrTwoByte.index=0;c--){\r\n let wordGroup = splitLists[c];\r\n let left, top;\r\n if(rt!=0){//rotate\r\n let x, y = cumWordHeight+size.asc;\r\n\r\n x = (cumWordHeight)/Math.tan(rtPI) - cumColumnWidth + textW_all_inner;\r\n if(horizonAlign == \"0\"){//center\r\n let sh = textH_all/Math.sin(rtPI);\r\n if(verticalAlign == \"0\"){//mid\r\n\r\n left = x + cellWidth/2 - (textW_all/2) + lastLineSpaceHeight*Math.cos(rtPI)/2;\r\n top = y + cellHeight/2 - textH_all/2 - lastLineSpaceHeight*Math.cos(rtPI)/2;\r\n }\r\n else if(verticalAlign == \"1\"){//top\r\n left = x + cellWidth/2 - textW_all/2;\r\n top = y - (textH_all/2 - rh/2);\r\n }\r\n else if(verticalAlign == \"2\"){//bottom\r\n left = x + cellWidth/2 - (textW_all/2)+lastLineSpaceHeight*Math.cos(rtPI);\r\n top = y + cellHeight - rh/2 - textH_all/2 - lastLineSpaceHeight*Math.cos(rtPI);\r\n }\r\n }\r\n else if(horizonAlign == \"1\"){//left\r\n if(verticalAlign == \"0\"){//mid\r\n left = x - rh*Math.sin(rtPI)/2 + lastLineSpaceHeight*Math.cos(rtPI)/2;\r\n top = y + cellHeight/2 + rh*Math.cos(rtPI)/2 - lastLineSpaceHeight*Math.cos(rtPI)/2;\r\n }\r\n else if(verticalAlign == \"1\"){//top\r\n left = x - rh*Math.sin(rtPI);\r\n top = y + rh*Math.cos(rtPI);\r\n }\r\n else if(verticalAlign == \"2\"){//bottom\r\n left = x + lastLineSpaceHeight*Math.cos(rtPI);\r\n top = y + cellHeight - lastLineSpaceHeight*Math.cos(rtPI);\r\n }\r\n }\r\n else if(horizonAlign == \"2\"){//right\r\n if(verticalAlign == \"0\"){//mid\r\n left = x + cellWidth - rw/2 - (textW_all_inner/2+(textH_all/2)/Math.tan(rtPI))+ lastLineSpaceHeight*Math.cos(rtPI)/2;\r\n top = y + cellHeight/2 - textH_all/2 - lastLineSpaceHeight*Math.cos(rtPI)/2;\r\n }\r\n else if(verticalAlign == \"1\"){//top fixOneLineLeft\r\n left = x + cellWidth - textW_all + fixOneLineLeft;\r\n top = y - textH_all;\r\n }\r\n else if(verticalAlign == \"2\"){//bottom\r\n left = x + cellWidth - rw*Math.cos(rtPI) + lastLineSpaceHeight*Math.cos(rtPI);\r\n top = y + cellHeight - rw*Math.sin(rtPI) - lastLineSpaceHeight*Math.cos(rtPI);\r\n }\r\n }\r\n\r\n }\r\n\r\n wordGroup.left = left;\r\n wordGroup.top = top;\r\n\r\n // console.log(left, top, cumWordHeight, size.height);\r\n\r\n drawLineInfo(wordGroup, cancelLine, underLine,{\r\n width:wordGroup.width,\r\n height:wordGroup.height,\r\n left:left-wordGroup.width,\r\n top:top,\r\n asc:size.asc,\r\n desc:size.desc,\r\n fs:wordGroup.fs\r\n });\r\n\r\n textContent.values.push(wordGroup);\r\n\r\n cumColumnWidth += wordGroup.width;\r\n }\r\n\r\n\r\n cumWordHeight += size.height;\r\n\r\n\r\n }\r\n }\r\n else{\r\n for(let i = 0; i < splitLen; i++){\r\n let splitLists = text_all_split[i];\r\n if(splitLists==null){\r\n continue;\r\n }\r\n let size = split_all_size[i];\r\n\r\n cumColumnWidth = 0;\r\n\r\n for(let c=0;c 300) {\r\n firstcolumnlen = 300;\r\n }\r\n else if (firstcolumnlen < Store.defaultcollen) {\r\n firstcolumnlen = Store.defaultcollen;\r\n }\r\n\r\n if (firstcolumnlen != Store.defaultcollen) {\r\n if (Store.config[\"columnlen\"] == null) {\r\n Store.config[\"columnlen\"] = {};\r\n }\r\n\r\n Store.config[\"columnlen\"][c] = firstcolumnlen;\r\n }\r\n }\r\n }\r\n\r\n if(Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c] != null){\r\n Store.visibledatacolumn.push(Store.ch_width);\r\n continue;\r\n }\r\n\r\n // \u81EA\u52A8\u884C\u9AD8\u8BA1\u7B97\r\n if (firstcolumnlen === 'auto') {\r\n firstcolumnlen = computeColWidthByContent(Store.flowdata, c, rowheight);\r\n }\r\n Store.ch_width += Math.round((firstcolumnlen + 1)*Store.zoomRatio);\r\n\r\n Store.visibledatacolumn.push(Store.ch_width);//\u5217\u7684\u4E34\u65F6\u957F\u5EA6\u5206\u5E03\r\n\r\n // if(maxColumnlen < firstcolumnlen + 1){\r\n // maxColumnlen = firstcolumnlen + 1;\r\n // }\r\n }\r\n\r\n // Store.ch_width += 120;\r\n Store.ch_width += maxColumnlen;\r\n }\r\n}\r\n\r\n\r\nexport function zoomSetting(){\r\n //zoom\r\n Store.rowHeaderWidth = luckysheetConfigsetting.rowHeaderWidth * Store.zoomRatio;\r\n Store.columnHeaderHeight = luckysheetConfigsetting.columnHeaderHeight *Store.zoomRatio;\r\n $(\"#luckysheet-rows-h\").width((Store.rowHeaderWidth-1.5));\r\n $(\"#luckysheet-cols-h-c\").height((Store.columnHeaderHeight-1.5));\r\n $(\"#luckysheet-left-top\").css({width:Store.rowHeaderWidth-1.5, height:Store.columnHeaderHeight-1.5});\r\n}\r\n", "!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) 12){\r\n return false;\r\n }\r\n\r\n if(day > 31){\r\n return false;\r\n }\r\n\r\n if(month == 2){\r\n if(new Date(year, 1, 29).getDate() == 29 && day > 29){\r\n return false;\r\n }\r\n else if(new Date(year, 1, 29).getDate() != 29 && day > 28){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n\r\nfunction diff(now, then) {\r\n return dayjs(now).diff(dayjs(then));\r\n}\r\n\r\nfunction isdatatypemulti(s) {\r\n let type = {};\r\n\r\n if (isdatetime(s)) {\r\n type[\"date\"] = true;\r\n }\r\n\r\n if (!isNaN(parseFloat(s)) && !hasChinaword(s)) {\r\n type[\"num\"] = true;\r\n }\r\n\r\n return type;\r\n}\r\n\r\nfunction isdatatype(s) {\r\n let type = \"string\";\r\n\r\n if (isdatetime(s)) {\r\n type = \"date\";\r\n }\r\n else if (!isNaN(parseFloat(s)) && !hasChinaword(s)) {\r\n type = \"num\";\r\n }\r\n\r\n return type;\r\n}\r\n\r\nexport {\r\n isdatetime,\r\n diff,\r\n isdatatypemulti,\r\n isdatatype,\r\n}\r\n", "/*! @preserve\n * numeral.js\n * version : 2.0.6\n * author : Adam Draper\n * license : MIT\n * http://adamwdraper.github.com/Numeral-js/\n */\n\n(function (global, factory) {\n if (typeof define === 'function' && define.amd) {\n define(factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n global.numeral = factory();\n }\n}(this, function () {\n /************************************\n Variables\n ************************************/\n\n var numeral,\n _,\n VERSION = '2.0.6',\n formats = {},\n locales = {},\n defaults = {\n currentLocale: 'en',\n zeroFormat: null,\n nullFormat: null,\n defaultFormat: '0,0',\n scalePercentBy100: true\n },\n options = {\n currentLocale: defaults.currentLocale,\n zeroFormat: defaults.zeroFormat,\n nullFormat: defaults.nullFormat,\n defaultFormat: defaults.defaultFormat,\n scalePercentBy100: defaults.scalePercentBy100\n };\n\n\n /************************************\n Constructors\n ************************************/\n\n // Numeral prototype object\n function Numeral(input, number) {\n this._input = input;\n\n this._value = number;\n }\n\n numeral = function(input) {\n var value,\n kind,\n unformatFunction,\n regexp;\n\n if (numeral.isNumeral(input)) {\n value = input.value();\n } else if (input === 0 || typeof input === 'undefined') {\n value = 0;\n } else if (input === null || _.isNaN(input)) {\n value = null;\n } else if (typeof input === 'string') {\n if (options.zeroFormat && input === options.zeroFormat) {\n value = 0;\n } else if (options.nullFormat && input === options.nullFormat || !input.replace(/[^0-9]+/g, '').length) {\n value = null;\n } else {\n for (kind in formats) {\n regexp = typeof formats[kind].regexps.unformat === 'function' ? formats[kind].regexps.unformat() : formats[kind].regexps.unformat;\n\n if (regexp && input.match(regexp)) {\n unformatFunction = formats[kind].unformat;\n\n break;\n }\n }\n\n unformatFunction = unformatFunction || numeral._.stringToNumber;\n\n value = unformatFunction(input);\n }\n } else {\n value = Number(input)|| null;\n }\n\n return new Numeral(input, value);\n };\n\n // version number\n numeral.version = VERSION;\n\n // compare numeral object\n numeral.isNumeral = function(obj) {\n return obj instanceof Numeral;\n };\n\n // helper functions\n numeral._ = _ = {\n // formats numbers separators, decimals places, signs, abbreviations\n numberToFormat: function(value, format, roundingFunction) {\n var locale = locales[numeral.options.currentLocale],\n negP = false,\n optDec = false,\n leadingCount = 0,\n abbr = '',\n trillion = 1000000000000,\n billion = 1000000000,\n million = 1000000,\n thousand = 1000,\n decimal = '',\n neg = false,\n abbrForce, // force abbreviation\n abs,\n min,\n max,\n power,\n int,\n precision,\n signed,\n thousands,\n output;\n\n // make sure we never format a null value\n value = value || 0;\n\n abs = Math.abs(value);\n\n // see if we should use parentheses for negative number or if we should prefix with a sign\n // if both are present we default to parentheses\n if (numeral._.includes(format, '(')) {\n negP = true;\n format = format.replace(/[\\(|\\)]/g, '');\n } else if (numeral._.includes(format, '+') || numeral._.includes(format, '-')) {\n signed = numeral._.includes(format, '+') ? format.indexOf('+') : value < 0 ? format.indexOf('-') : -1;\n format = format.replace(/[\\+|\\-]/g, '');\n }\n\n // see if abbreviation is wanted\n if (numeral._.includes(format, 'a')) {\n abbrForce = format.match(/a(k|m|b|t)?/);\n\n abbrForce = abbrForce ? abbrForce[1] : false;\n\n // check for space before abbreviation\n if (numeral._.includes(format, ' a')) {\n abbr = ' ';\n }\n\n format = format.replace(new RegExp(abbr + 'a[kmbt]?'), '');\n\n if (abs >= trillion && !abbrForce || abbrForce === 't') {\n // trillion\n abbr += locale.abbreviations.trillion;\n value = value / trillion;\n } else if (abs < trillion && abs >= billion && !abbrForce || abbrForce === 'b') {\n // billion\n abbr += locale.abbreviations.billion;\n value = value / billion;\n } else if (abs < billion && abs >= million && !abbrForce || abbrForce === 'm') {\n // million\n abbr += locale.abbreviations.million;\n value = value / million;\n } else if (abs < million && abs >= thousand && !abbrForce || abbrForce === 'k') {\n // thousand\n abbr += locale.abbreviations.thousand;\n value = value / thousand;\n }\n }\n\n // check for optional decimals\n if (numeral._.includes(format, '[.]')) {\n optDec = true;\n format = format.replace('[.]', '.');\n }\n\n // break number and format\n int = value.toString().split('.')[0];\n precision = format.split('.')[1];\n thousands = format.indexOf(',');\n leadingCount = (format.split('.')[0].split(',')[0].match(/0/g) || []).length;\n\n if (precision) {\n if (numeral._.includes(precision, '[')) {\n precision = precision.replace(']', '');\n precision = precision.split('[');\n decimal = numeral._.toFixed(value, (precision[0].length + precision[1].length), roundingFunction, precision[1].length);\n } else {\n decimal = numeral._.toFixed(value, precision.length, roundingFunction);\n }\n\n int = decimal.split('.')[0];\n\n if (numeral._.includes(decimal, '.')) {\n decimal = locale.delimiters.decimal + decimal.split('.')[1];\n } else {\n decimal = '';\n }\n\n if (optDec && Number(decimal.slice(1)) === 0) {\n decimal = '';\n }\n } else {\n int = numeral._.toFixed(value, 0, roundingFunction);\n }\n\n // check abbreviation again after rounding\n if (abbr && !abbrForce && Number(int) >= 1000 && abbr !== locale.abbreviations.trillion) {\n int = String(Number(int) / 1000);\n\n switch (abbr) {\n case locale.abbreviations.thousand:\n abbr = locale.abbreviations.million;\n break;\n case locale.abbreviations.million:\n abbr = locale.abbreviations.billion;\n break;\n case locale.abbreviations.billion:\n abbr = locale.abbreviations.trillion;\n break;\n }\n }\n\n\n // format number\n if (numeral._.includes(int, '-')) {\n int = int.slice(1);\n neg = true;\n }\n\n if (int.length < leadingCount) {\n for (var i = leadingCount - int.length; i > 0; i--) {\n int = '0' + int;\n }\n }\n\n if (thousands > -1) {\n int = int.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1' + locale.delimiters.thousands);\n }\n\n if (format.indexOf('.') === 0) {\n int = '';\n }\n\n output = int + decimal + (abbr ? abbr : '');\n\n if (negP) {\n output = (negP && neg ? '(' : '') + output + (negP && neg ? ')' : '');\n } else {\n if (signed >= 0) {\n output = signed === 0 ? (neg ? '-' : '+') + output : output + (neg ? '-' : '+');\n } else if (neg) {\n output = '-' + output;\n }\n }\n\n return output;\n },\n // unformats numbers separators, decimals places, signs, abbreviations\n stringToNumber: function(string) {\n var locale = locales[options.currentLocale],\n stringOriginal = string,\n abbreviations = {\n thousand: 3,\n million: 6,\n billion: 9,\n trillion: 12\n },\n abbreviation,\n value,\n i,\n regexp;\n\n if (options.zeroFormat && string === options.zeroFormat) {\n value = 0;\n } else if (options.nullFormat && string === options.nullFormat || !string.replace(/[^0-9]+/g, '').length) {\n value = null;\n } else {\n value = 1;\n\n if (locale.delimiters.decimal !== '.') {\n string = string.replace(/\\./g, '').replace(locale.delimiters.decimal, '.');\n }\n\n for (abbreviation in abbreviations) {\n regexp = new RegExp('[^a-zA-Z]' + locale.abbreviations[abbreviation] + '(?:\\\\)|(\\\\' + locale.currency.symbol + ')?(?:\\\\))?)?$');\n\n if (stringOriginal.match(regexp)) {\n value *= Math.pow(10, abbreviations[abbreviation]);\n break;\n }\n }\n\n // check for negative number\n value *= (string.split('-').length + Math.min(string.split('(').length - 1, string.split(')').length - 1)) % 2 ? 1 : -1;\n\n // remove non numbers\n string = string.replace(/[^0-9\\.]+/g, '');\n\n value *= Number(string);\n }\n\n return value;\n },\n isNaN: function(value) {\n return typeof value === 'number' && isNaN(value);\n },\n includes: function(string, search) {\n return string.indexOf(search) !== -1;\n },\n insert: function(string, subString, start) {\n return string.slice(0, start) + subString + string.slice(start);\n },\n reduce: function(array, callback /*, initialValue*/) {\n if (this === null) {\n throw new TypeError('Array.prototype.reduce called on null or undefined');\n }\n\n if (typeof callback !== 'function') {\n throw new TypeError(callback + ' is not a function');\n }\n\n var t = Object(array),\n len = t.length >>> 0,\n k = 0,\n value;\n\n if (arguments.length === 3) {\n value = arguments[2];\n } else {\n while (k < len && !(k in t)) {\n k++;\n }\n\n if (k >= len) {\n throw new TypeError('Reduce of empty array with no initial value');\n }\n\n value = t[k++];\n }\n for (; k < len; k++) {\n if (k in t) {\n value = callback(value, t[k], k, t);\n }\n }\n return value;\n },\n /**\n * Computes the multiplier necessary to make x >= 1,\n * effectively eliminating miscalculations caused by\n * finite precision.\n */\n multiplier: function (x) {\n var parts = x.toString().split('.');\n\n return parts.length < 2 ? 1 : Math.pow(10, parts[1].length);\n },\n /**\n * Given a variable number of arguments, returns the maximum\n * multiplier that must be used to normalize an operation involving\n * all of them.\n */\n correctionFactor: function () {\n var args = Array.prototype.slice.call(arguments);\n\n return args.reduce(function(accum, next) {\n var mn = _.multiplier(next);\n return accum > mn ? accum : mn;\n }, 1);\n },\n /**\n * Implementation of toFixed() that treats floats more like decimals\n *\n * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present\n * problems for accounting- and finance-related software.\n */\n toFixed: function(value, maxDecimals, roundingFunction, optionals) {\n var splitValue = value.toString().split('.'),\n minDecimals = maxDecimals - (optionals || 0),\n boundedPrecision,\n optionalsRegExp,\n power,\n output;\n\n // Use the smallest precision value possible to avoid errors from floating point representation\n if (splitValue.length === 2) {\n boundedPrecision = Math.min(Math.max(splitValue[1].length, minDecimals), maxDecimals);\n } else {\n boundedPrecision = minDecimals;\n }\n\n power = Math.pow(10, boundedPrecision);\n\n // Multiply up by precision, round accurately, then divide and use native toFixed():\n output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision);\n\n if (optionals > maxDecimals - boundedPrecision) {\n optionalsRegExp = new RegExp('\\\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$');\n output = output.replace(optionalsRegExp, '');\n }\n\n return output;\n }\n };\n\n // avaliable options\n numeral.options = options;\n\n // avaliable formats\n numeral.formats = formats;\n\n // avaliable formats\n numeral.locales = locales;\n\n // This function sets the current locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n numeral.locale = function(key) {\n if (key) {\n options.currentLocale = key.toLowerCase();\n }\n\n return options.currentLocale;\n };\n\n // This function provides access to the loaded locale data. If\n // no arguments are passed in, it will simply return the current\n // global locale object.\n numeral.localeData = function(key) {\n if (!key) {\n return locales[options.currentLocale];\n }\n\n key = key.toLowerCase();\n\n if (!locales[key]) {\n throw new Error('Unknown locale : ' + key);\n }\n\n return locales[key];\n };\n\n numeral.reset = function() {\n for (var property in defaults) {\n options[property] = defaults[property];\n }\n };\n\n numeral.zeroFormat = function(format) {\n options.zeroFormat = typeof(format) === 'string' ? format : null;\n };\n\n numeral.nullFormat = function (format) {\n options.nullFormat = typeof(format) === 'string' ? format : null;\n };\n\n numeral.defaultFormat = function(format) {\n options.defaultFormat = typeof(format) === 'string' ? format : '0.0';\n };\n\n numeral.register = function(type, name, format) {\n name = name.toLowerCase();\n\n if (this[type + 's'][name]) {\n throw new TypeError(name + ' ' + type + ' already registered.');\n }\n\n this[type + 's'][name] = format;\n\n return format;\n };\n\n\n numeral.validate = function(val, culture) {\n var _decimalSep,\n _thousandSep,\n _currSymbol,\n _valArray,\n _abbrObj,\n _thousandRegEx,\n localeData,\n temp;\n\n //coerce val to string\n if (typeof val !== 'string') {\n val += '';\n\n if (console.warn) {\n console.warn('Numeral.js: Value is not string. It has been co-erced to: ', val);\n }\n }\n\n //trim whitespaces from either sides\n val = val.trim();\n\n //if val is just digits return true\n if (!!val.match(/^\\d+$/)) {\n return true;\n }\n\n //if val is empty return false\n if (val === '') {\n return false;\n }\n\n //get the decimal and thousands separator from numeral.localeData\n try {\n //check if the culture is understood by numeral. if not, default it to current locale\n localeData = numeral.localeData(culture);\n } catch (e) {\n localeData = numeral.localeData(numeral.locale());\n }\n\n //setup the delimiters and currency symbol based on culture/locale\n _currSymbol = localeData.currency.symbol;\n _abbrObj = localeData.abbreviations;\n _decimalSep = localeData.delimiters.decimal;\n if (localeData.delimiters.thousands === '.') {\n _thousandSep = '\\\\.';\n } else {\n _thousandSep = localeData.delimiters.thousands;\n }\n\n // validating currency symbol\n temp = val.match(/^[^\\d]+/);\n if (temp !== null) {\n val = val.substr(1);\n if (temp[0] !== _currSymbol) {\n return false;\n }\n }\n\n //validating abbreviation symbol\n temp = val.match(/[^\\d]+$/);\n if (temp !== null) {\n val = val.slice(0, -1);\n if (temp[0] !== _abbrObj.thousand && temp[0] !== _abbrObj.million && temp[0] !== _abbrObj.billion && temp[0] !== _abbrObj.trillion) {\n return false;\n }\n }\n\n _thousandRegEx = new RegExp(_thousandSep + '{2}');\n\n if (!val.match(/[^\\d.,]/g)) {\n _valArray = val.split(_decimalSep);\n if (_valArray.length > 2) {\n return false;\n } else {\n if (_valArray.length < 2) {\n return ( !! _valArray[0].match(/^\\d+.*\\d$/) && !_valArray[0].match(_thousandRegEx));\n } else {\n if (_valArray[0].length === 1) {\n return ( !! _valArray[0].match(/^\\d+$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\\d+$/));\n } else {\n return ( !! _valArray[0].match(/^\\d+.*\\d$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\\d+$/));\n }\n }\n }\n }\n\n return false;\n };\n\n\n /************************************\n Numeral Prototype\n ************************************/\n\n numeral.fn = Numeral.prototype = {\n clone: function() {\n return numeral(this);\n },\n format: function(inputString, roundingFunction) {\n var value = this._value,\n format = inputString || options.defaultFormat,\n kind,\n output,\n formatFunction;\n\n // make sure we have a roundingFunction\n roundingFunction = roundingFunction || Math.round;\n\n // format based on value\n if (value === 0 && options.zeroFormat !== null) {\n output = options.zeroFormat;\n } else if (value === null && options.nullFormat !== null) {\n output = options.nullFormat;\n } else {\n for (kind in formats) {\n if (format.match(formats[kind].regexps.format)) {\n formatFunction = formats[kind].format;\n\n break;\n }\n }\n\n formatFunction = formatFunction || numeral._.numberToFormat;\n\n output = formatFunction(value, format, roundingFunction);\n }\n\n return output;\n },\n value: function() {\n return this._value;\n },\n input: function() {\n return this._input;\n },\n set: function(value) {\n this._value = Number(value);\n\n return this;\n },\n add: function(value) {\n var corrFactor = _.correctionFactor.call(null, this._value, value);\n\n function cback(accum, curr, currI, O) {\n return accum + Math.round(corrFactor * curr);\n }\n\n this._value = _.reduce([this._value, value], cback, 0) / corrFactor;\n\n return this;\n },\n subtract: function(value) {\n var corrFactor = _.correctionFactor.call(null, this._value, value);\n\n function cback(accum, curr, currI, O) {\n return accum - Math.round(corrFactor * curr);\n }\n\n this._value = _.reduce([value], cback, Math.round(this._value * corrFactor)) / corrFactor;\n\n return this;\n },\n multiply: function(value) {\n function cback(accum, curr, currI, O) {\n var corrFactor = _.correctionFactor(accum, curr);\n return Math.round(accum * corrFactor) * Math.round(curr * corrFactor) / Math.round(corrFactor * corrFactor);\n }\n\n this._value = _.reduce([this._value, value], cback, 1);\n\n return this;\n },\n divide: function(value) {\n function cback(accum, curr, currI, O) {\n var corrFactor = _.correctionFactor(accum, curr);\n return Math.round(accum * corrFactor) / Math.round(curr * corrFactor);\n }\n\n this._value = _.reduce([this._value, value], cback);\n\n return this;\n },\n difference: function(value) {\n return Math.abs(numeral(this._value).subtract(value).value());\n }\n };\n\n /************************************\n Default Locale && Format\n ************************************/\n\n numeral.register('locale', 'en', {\n delimiters: {\n thousands: ',',\n decimal: '.'\n },\n abbreviations: {\n thousand: 'k',\n million: 'm',\n billion: 'b',\n trillion: 't'\n },\n ordinal: function(number) {\n var b = number % 10;\n return (~~(number % 100 / 10) === 1) ? 'th' :\n (b === 1) ? 'st' :\n (b === 2) ? 'nd' :\n (b === 3) ? 'rd' : 'th';\n },\n currency: {\n symbol: '$'\n }\n });\n\n \n\n(function() {\n numeral.register('format', 'bps', {\n regexps: {\n format: /(BPS)/,\n unformat: /(BPS)/\n },\n format: function(value, format, roundingFunction) {\n var space = numeral._.includes(format, ' BPS') ? ' ' : '',\n output;\n\n value = value * 10000;\n\n // check for space before BPS\n format = format.replace(/\\s?BPS/, '');\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n if (numeral._.includes(output, ')')) {\n output = output.split('');\n\n output.splice(-1, 0, space + 'BPS');\n\n output = output.join('');\n } else {\n output = output + space + 'BPS';\n }\n\n return output;\n },\n unformat: function(string) {\n return +(numeral._.stringToNumber(string) * 0.0001).toFixed(15);\n }\n });\n})();\n\n\n(function() {\n var decimal = {\n base: 1000,\n suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n },\n binary = {\n base: 1024,\n suffixes: ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\n };\n\n var allSuffixes = decimal.suffixes.concat(binary.suffixes.filter(function (item) {\n return decimal.suffixes.indexOf(item) < 0;\n }));\n var unformatRegex = allSuffixes.join('|');\n // Allow support for BPS (http://www.investopedia.com/terms/b/basispoint.asp)\n unformatRegex = '(' + unformatRegex.replace('B', 'B(?!PS)') + ')';\n\n numeral.register('format', 'bytes', {\n regexps: {\n format: /([0\\s]i?b)/,\n unformat: new RegExp(unformatRegex)\n },\n format: function(value, format, roundingFunction) {\n var output,\n bytes = numeral._.includes(format, 'ib') ? binary : decimal,\n suffix = numeral._.includes(format, ' b') || numeral._.includes(format, ' ib') ? ' ' : '',\n power,\n min,\n max;\n\n // check for space before\n format = format.replace(/\\s?i?b/, '');\n\n for (power = 0; power <= bytes.suffixes.length; power++) {\n min = Math.pow(bytes.base, power);\n max = Math.pow(bytes.base, power + 1);\n\n if (value === null || value === 0 || value >= min && value < max) {\n suffix += bytes.suffixes[power];\n\n if (min > 0) {\n value = value / min;\n }\n\n break;\n }\n }\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n return output + suffix;\n },\n unformat: function(string) {\n var value = numeral._.stringToNumber(string),\n power,\n bytesMultiplier;\n\n if (value) {\n for (power = decimal.suffixes.length - 1; power >= 0; power--) {\n if (numeral._.includes(string, decimal.suffixes[power])) {\n bytesMultiplier = Math.pow(decimal.base, power);\n\n break;\n }\n\n if (numeral._.includes(string, binary.suffixes[power])) {\n bytesMultiplier = Math.pow(binary.base, power);\n\n break;\n }\n }\n\n value *= (bytesMultiplier || 1);\n }\n\n return value;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'currency', {\n regexps: {\n format: /(\\$)/\n },\n format: function(value, format, roundingFunction) {\n var locale = numeral.locales[numeral.options.currentLocale],\n symbols = {\n before: format.match(/^([\\+|\\-|\\(|\\s|\\$]*)/)[0],\n after: format.match(/([\\+|\\-|\\)|\\s|\\$]*)$/)[0]\n },\n output,\n symbol,\n i;\n\n // strip format of spaces and $\n format = format.replace(/\\s?\\$\\s?/, '');\n\n // format the number\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n // update the before and after based on value\n if (value >= 0) {\n symbols.before = symbols.before.replace(/[\\-\\(]/, '');\n symbols.after = symbols.after.replace(/[\\-\\)]/, '');\n } else if (value < 0 && (!numeral._.includes(symbols.before, '-') && !numeral._.includes(symbols.before, '('))) {\n symbols.before = '-' + symbols.before;\n }\n\n // loop through each before symbol\n for (i = 0; i < symbols.before.length; i++) {\n symbol = symbols.before[i];\n\n switch (symbol) {\n case '$':\n output = numeral._.insert(output, locale.currency.symbol, i);\n break;\n case ' ':\n output = numeral._.insert(output, ' ', i + locale.currency.symbol.length - 1);\n break;\n }\n }\n\n // loop through each after symbol\n for (i = symbols.after.length - 1; i >= 0; i--) {\n symbol = symbols.after[i];\n\n switch (symbol) {\n case '$':\n output = i === symbols.after.length - 1 ? output + locale.currency.symbol : numeral._.insert(output, locale.currency.symbol, -(symbols.after.length - (1 + i)));\n break;\n case ' ':\n output = i === symbols.after.length - 1 ? output + ' ' : numeral._.insert(output, ' ', -(symbols.after.length - (1 + i) + locale.currency.symbol.length - 1));\n break;\n }\n }\n\n\n return output;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'exponential', {\n regexps: {\n format: /(e\\+|e-)/,\n unformat: /(e\\+|e-)/\n },\n format: function(value, format, roundingFunction) {\n var output,\n exponential = typeof value === 'number' && !numeral._.isNaN(value) ? value.toExponential() : '0e+0',\n parts = exponential.split('e');\n\n format = format.replace(/e[\\+|\\-]{1}0/, '');\n\n output = numeral._.numberToFormat(Number(parts[0]), format, roundingFunction);\n\n return output + 'e' + parts[1];\n },\n unformat: function(string) {\n var parts = numeral._.includes(string, 'e+') ? string.split('e+') : string.split('e-'),\n value = Number(parts[0]),\n power = Number(parts[1]);\n\n power = numeral._.includes(string, 'e-') ? power *= -1 : power;\n\n function cback(accum, curr, currI, O) {\n var corrFactor = numeral._.correctionFactor(accum, curr),\n num = (accum * corrFactor) * (curr * corrFactor) / (corrFactor * corrFactor);\n return num;\n }\n\n return numeral._.reduce([value, Math.pow(10, power)], cback, 1);\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'ordinal', {\n regexps: {\n format: /(o)/\n },\n format: function(value, format, roundingFunction) {\n var locale = numeral.locales[numeral.options.currentLocale],\n output,\n ordinal = numeral._.includes(format, ' o') ? ' ' : '';\n\n // check for space before\n format = format.replace(/\\s?o/, '');\n\n ordinal += locale.ordinal(value);\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n return output + ordinal;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'percentage', {\n regexps: {\n format: /(%)/,\n unformat: /(%)/\n },\n format: function(value, format, roundingFunction) {\n var space = numeral._.includes(format, ' %') ? ' ' : '',\n output;\n\n if (numeral.options.scalePercentBy100) {\n value = value * 100;\n }\n\n // check for space before %\n format = format.replace(/\\s?\\%/, '');\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n if (numeral._.includes(output, ')')) {\n output = output.split('');\n\n output.splice(-1, 0, space + '%');\n\n output = output.join('');\n } else {\n output = output + space + '%';\n }\n\n return output;\n },\n unformat: function(string) {\n var number = numeral._.stringToNumber(string);\n if (numeral.options.scalePercentBy100) {\n return number * 0.01;\n }\n return number;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'time', {\n regexps: {\n format: /(:)/,\n unformat: /(:)/\n },\n format: function(value, format, roundingFunction) {\n var hours = Math.floor(value / 60 / 60),\n minutes = Math.floor((value - (hours * 60 * 60)) / 60),\n seconds = Math.round(value - (hours * 60 * 60) - (minutes * 60));\n\n return hours + ':' + (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);\n },\n unformat: function(string) {\n var timeArray = string.split(':'),\n seconds = 0;\n\n // turn hours and minutes into seconds and add them all up\n if (timeArray.length === 3) {\n // hours\n seconds = seconds + (Number(timeArray[0]) * 60 * 60);\n // minutes\n seconds = seconds + (Number(timeArray[1]) * 60);\n // seconds\n seconds = seconds + Number(timeArray[2]);\n } else if (timeArray.length === 2) {\n // minutes\n seconds = seconds + (Number(timeArray[0]) * 60);\n // seconds\n seconds = seconds + Number(timeArray[1]);\n }\n return Number(seconds);\n }\n });\n})();\n\nreturn numeral;\n}));\n", "import { isRealNum, valueIsError } from './validate';\r\nimport { isdatetime } from './datecontroll';\r\nimport { getcellvalue } from './getdata';\r\nimport numeral from 'numeral';\r\n\r\nvar SSF = ({});\r\nvar make_ssf = function make_ssf(SSF) {\r\n SSF.version = '0.11.2';\r\n\r\n function _strrev(x) {\r\n var o = \"\",\r\n i = x.length - 1;\r\n while (i >= 0) o += x.charAt(i--);\r\n return o;\r\n }\r\n\r\n function fill(c, l) {\r\n var o = \"\";\r\n while (o.length < l) o += c;\r\n return o;\r\n }\r\n\r\n function pad0(v, d) {\r\n var t = \"\" + v;\r\n return t.length >= d ? t : fill('0', d - t.length) + t;\r\n }\r\n\r\n function pad_(v, d) {\r\n var t = \"\" + v;\r\n return t.length >= d ? t : fill(' ', d - t.length) + t;\r\n }\r\n\r\n function rpad_(v, d) {\r\n var t = \"\" + v;\r\n return t.length >= d ? t : t + fill(' ', d - t.length);\r\n }\r\n\r\n function pad0r1(v, d) {\r\n var t = \"\" + Math.round(v);\r\n return t.length >= d ? t : fill('0', d - t.length) + t;\r\n }\r\n\r\n function pad0r2(v, d) {\r\n var t = \"\" + v;\r\n return t.length >= d ? t : fill('0', d - t.length) + t;\r\n }\r\n var p2_32 = Math.pow(2, 32);\r\n\r\n function pad0r(v, d) {\r\n if (v > p2_32 || v < -p2_32) return pad0r1(v, d);\r\n var i = Math.round(v);\r\n return pad0r2(i, d);\r\n }\r\n\r\n function isgeneral(s, i) {\r\n i = i || 0;\r\n return s.length >= 7 + i && (s.charCodeAt(i) | 32) === 103 && (s.charCodeAt(i + 1) | 32) === 101 && (s.charCodeAt(i + 2) | 32) === 110 && (s.charCodeAt(i + 3) | 32) === 101 && (s.charCodeAt(i + 4) | 32) === 114 && (s.charCodeAt(i + 5) | 32) === 97 && (s.charCodeAt(i + 6) | 32) === 108;\r\n }\r\n var days = [\r\n ['Sun', 'Sunday'],\r\n ['Mon', 'Monday'],\r\n ['Tue', 'Tuesday'],\r\n ['Wed', 'Wednesday'],\r\n ['Thu', 'Thursday'],\r\n ['Fri', 'Friday'],\r\n ['Sat', 'Saturday']\r\n ];\r\n var months = [\r\n ['J', 'Jan', 'January'],\r\n ['F', 'Feb', 'February'],\r\n ['M', 'Mar', 'March'],\r\n ['A', 'Apr', 'April'],\r\n ['M', 'May', 'May'],\r\n ['J', 'Jun', 'June'],\r\n ['J', 'Jul', 'July'],\r\n ['A', 'Aug', 'August'],\r\n ['S', 'Sep', 'September'],\r\n ['O', 'Oct', 'October'],\r\n ['N', 'Nov', 'November'],\r\n ['D', 'Dec', 'December']\r\n ];\r\n\r\n function init_table(t) {\r\n t[0] = 'General';\r\n t[1] = '0';\r\n t[2] = '0.00';\r\n t[3] = '#,##0';\r\n t[4] = '#,##0.00';\r\n t[9] = '0%';\r\n t[10] = '0.00%';\r\n t[11] = '0.00E+00';\r\n t[12] = '# ?/?';\r\n t[13] = '# ??/??';\r\n t[14] = 'm/d/yy';\r\n t[15] = 'd-mmm-yy';\r\n t[16] = 'd-mmm';\r\n t[17] = 'mmm-yy';\r\n t[18] = 'h:mm AM/PM';\r\n t[19] = 'h:mm:ss AM/PM';\r\n t[20] = 'h:mm';\r\n t[21] = 'h:mm:ss';\r\n t[22] = 'm/d/yy h:mm';\r\n t[37] = '#,##0 ;(#,##0)';\r\n t[38] = '#,##0 ;[Red](#,##0)';\r\n t[39] = '#,##0.00;(#,##0.00)';\r\n t[40] = '#,##0.00;[Red](#,##0.00)';\r\n t[45] = 'mm:ss';\r\n t[46] = '[h]:mm:ss';\r\n t[47] = 'mmss.0';\r\n t[48] = '##0.0E+0';\r\n t[49] = '@';\r\n t[56] = '\"\u4E0A\u5348/\u4E0B\u5348 \"hh\"\u6642\"mm\"\u5206\"ss\"\u79D2 \"';\r\n t[65535] = 'General';\r\n }\r\n var table_fmt = {};\r\n init_table(table_fmt);\r\n /* Defaults determined by systematically testing in Excel 2019 */\r\n /* These formats appear to default to other formats in the table */\r\n var default_map = [];\r\n var defi = 0;\r\n // 5 -> 37 ... 8 -> 40\r\n for (defi = 5; defi <= 8; ++defi) default_map[defi] = 32 + defi;\r\n // 23 -> 0 ... 26 -> 0\r\n for (defi = 23; defi <= 26; ++defi) default_map[defi] = 0;\r\n // 27 -> 14 ... 31 -> 14\r\n for (defi = 27; defi <= 31; ++defi) default_map[defi] = 14;\r\n // 50 -> 14 ... 58 -> 14\r\n for (defi = 50; defi <= 58; ++defi) default_map[defi] = 14;\r\n // 59 -> 1 ... 62 -> 4\r\n for (defi = 59; defi <= 62; ++defi) default_map[defi] = defi - 58;\r\n // 67 -> 9 ... 68 -> 10\r\n for (defi = 67; defi <= 68; ++defi) default_map[defi] = defi - 58;\r\n // 72 -> 14 ... 75 -> 17\r\n for (defi = 72; defi <= 75; ++defi) default_map[defi] = defi - 58;\r\n // 69 -> 12 ... 71 -> 14\r\n for (defi = 67; defi <= 68; ++defi) default_map[defi] = defi - 57;\r\n // 76 -> 20 ... 78 -> 22\r\n for (defi = 76; defi <= 78; ++defi) default_map[defi] = defi - 56;\r\n // 79 -> 45 ... 81 -> 47\r\n for (defi = 79; defi <= 81; ++defi) default_map[defi] = defi - 34;\r\n // 82 -> 0 ... 65536 -> 0 (omitted)\r\n /* These formats technically refer to Accounting formats with no equivalent */\r\n var default_str = [];\r\n // 5 -- Currency, 0 decimal, black negative\r\n default_str[5] = default_str[63] = '\"$\"#,##0_);\\\\(\"$\"#,##0\\\\)';\r\n // 6 -- Currency, 0 decimal, red negative\r\n default_str[6] = default_str[64] = '\"$\"#,##0_);[Red]\\\\(\"$\"#,##0\\\\)';\r\n // 7 -- Currency, 2 decimal, black negative\r\n default_str[7] = default_str[65] = '\"$\"#,##0.00_);\\\\(\"$\"#,##0.00\\\\)';\r\n // 8 -- Currency, 2 decimal, red negative\r\n default_str[8] = default_str[66] = '\"$\"#,##0.00_);[Red]\\\\(\"$\"#,##0.00\\\\)';\r\n // 41 -- Accounting, 0 decimal, No Symbol\r\n default_str[41] = '_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \"-\"_);_(@_)';\r\n // 42 -- Accounting, 0 decimal, $ Symbol\r\n default_str[42] = '_(\"$\"* #,##0_);_(\"$\"* \\\\(#,##0\\\\);_(\"$\"* \"-\"_);_(@_)';\r\n // 43 -- Accounting, 2 decimal, No Symbol\r\n default_str[43] = '_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \"-\"??_);_(@_)';\r\n // 44 -- Accounting, 2 decimal, $ Symbol\r\n default_str[44] = '_(\"$\"* #,##0.00_);_(\"$\"* \\\\(#,##0.00\\\\);_(\"$\"* \"-\"??_);_(@_)';\r\n\r\n function frac(x, D, mixed) {\r\n var sgn = x < 0 ? -1 : 1;\r\n var B = x * sgn;\r\n var P_2 = 0,\r\n P_1 = 1,\r\n P = 0;\r\n var Q_2 = 1,\r\n Q_1 = 0,\r\n Q = 0;\r\n var A = Math.floor(B);\r\n while (Q_1 < D) {\r\n A = Math.floor(B);\r\n P = A * P_1 + P_2;\r\n Q = A * Q_1 + Q_2;\r\n if ((B - A) < 0.00000005) break;\r\n B = 1 / (B - A);\r\n P_2 = P_1;\r\n P_1 = P;\r\n Q_2 = Q_1;\r\n Q_1 = Q;\r\n }\r\n if (Q > D) {\r\n if (Q_1 > D) {\r\n Q = Q_2;\r\n P = P_2;\r\n } else {\r\n Q = Q_1;\r\n P = P_1;\r\n }\r\n }\r\n if (!mixed) return [0, sgn * P, Q];\r\n var q = Math.floor(sgn * P / Q);\r\n return [q, sgn * P - q * Q, Q];\r\n }\r\n\r\n function parse_date_code(v, opts, b2) {\r\n if (v > 2958465 || v < 0) return null;\r\n var date = (v | 0),\r\n time = Math.floor(86400 * (v - date)),\r\n dow = 0;\r\n var dout = [];\r\n var out = {\r\n D: date,\r\n T: time,\r\n u: 86400 * (v - date) - time,\r\n y: 0,\r\n m: 0,\r\n d: 0,\r\n H: 0,\r\n M: 0,\r\n S: 0,\r\n q: 0\r\n };\r\n if (Math.abs(out.u) < 1e-6) out.u = 0;\r\n if (opts && opts.date1904) date += 1462;\r\n if (out.u > 0.9999) {\r\n out.u = 0;\r\n if (++time == 86400) {\r\n out.T = time = 0;\r\n ++date;\r\n ++out.D;\r\n }\r\n }\r\n if (date === 60) {\r\n dout = b2 ? [1317, 10, 29] : [1900, 2, 29];\r\n dow = 3;\r\n } else if (date === 0) {\r\n dout = b2 ? [1317, 8, 29] : [1900, 1, 0];\r\n dow = 6;\r\n } else {\r\n if (date > 60) --date;\r\n /* 1 = Jan 1 1900 in Gregorian */\r\n var d = new Date(1900, 0, 1);\r\n d.setDate(d.getDate() + date - 1);\r\n dout = [d.getFullYear(), d.getMonth() + 1, d.getDate()];\r\n dow = d.getDay();\r\n if (date < 60) dow = (dow + 6) % 7;\r\n if (b2) dow = fix_hijri(d, dout);\r\n }\r\n out.y = dout[0];\r\n out.m = dout[1];\r\n out.d = dout[2];\r\n out.S = time % 60;\r\n time = Math.floor(time / 60);\r\n out.M = time % 60;\r\n time = Math.floor(time / 60);\r\n out.H = time;\r\n out.q = dow;\r\n return out;\r\n }\r\n SSF.parse_date_code = parse_date_code;\r\n var basedate = new Date(1899, 11, 31, 0, 0, 0);\r\n var dnthresh = basedate.getTime();\r\n var base1904 = new Date(1900, 2, 1, 0, 0, 0);\r\n\r\n function datenum_local(v, date1904) {\r\n var epoch = v.getTime();\r\n if (date1904) epoch -= 1461 * 24 * 60 * 60 * 1000;\r\n else if (v >= base1904) epoch += 24 * 60 * 60 * 1000;\r\n return (epoch - (dnthresh + (v.getTimezoneOffset() - basedate.getTimezoneOffset()) * 60000)) / (24 * 60 * 60 * 1000);\r\n }\r\n /* The longest 32-bit integer text is \"-4294967296\", exactly 11 chars */\r\n function general_fmt_int(v) {\r\n return v.toString(10);\r\n }\r\n SSF._general_int = general_fmt_int;\r\n /* ECMA-376 18.8.30 numFmt*/\r\n /* Note: `toPrecision` uses standard form when prec > E and E >= -6 */\r\n var general_fmt_num = (function make_general_fmt_num() {\r\n var trailing_zeroes_and_decimal = /(?:\\.0*|(\\.\\d*[1-9])0+)$/;\r\n\r\n function strip_decimal(o) {\r\n return (o.indexOf(\".\") == -1) ? o : o.replace(trailing_zeroes_and_decimal, \"$1\");\r\n }\r\n /* General Exponential always shows 2 digits exp and trims the mantissa */\r\n var mantissa_zeroes_and_decimal = /(?:\\.0*|(\\.\\d*[1-9])0+)[Ee]/;\r\n var exp_with_single_digit = /(E[+-])(\\d)$/;\r\n\r\n function normalize_exp(o) {\r\n if (o.indexOf(\"E\") == -1) return o;\r\n return o.replace(mantissa_zeroes_and_decimal, \"$1E\").replace(exp_with_single_digit, \"$10$2\");\r\n }\r\n /* exponent >= -9 and <= 9 */\r\n function small_exp(v) {\r\n var w = (v < 0 ? 12 : 11);\r\n var o = strip_decimal(v.toFixed(12));\r\n if (o.length <= w) return o;\r\n o = v.toPrecision(10);\r\n if (o.length <= w) return o;\r\n return v.toExponential(5);\r\n }\r\n /* exponent >= 11 or <= -10 likely exponential */\r\n function large_exp(v) {\r\n var o = strip_decimal(v.toFixed(11));\r\n return (o.length > (v < 0 ? 12 : 11) || o === \"0\" || o === \"-0\") ? v.toPrecision(6) : o;\r\n }\r\n\r\n function general_fmt_num_base(v) {\r\n var V = Math.floor(Math.log(Math.abs(v)) * Math.LOG10E),\r\n o;\r\n if (V >= -4 && V <= -1) o = v.toPrecision(10 + V);\r\n else if (Math.abs(V) <= 9) o = small_exp(v);\r\n else if (V === 10) o = v.toFixed(10).substr(0, 12);\r\n else o = large_exp(v);\r\n return strip_decimal(normalize_exp(o.toUpperCase()));\r\n }\r\n return general_fmt_num_base;\r\n })();\r\n SSF._general_num = general_fmt_num;\r\n /*\r\n \"General\" rules:\r\n - text is passed through (\"@\")\r\n - booleans are rendered as TRUE/FALSE\r\n - \"up to 11 characters\" displayed for numbers\r\n - Default date format (code 14) used for Dates\r\n TODO: technically the display depends on the width of the cell\r\n */\r\n function general_fmt(v, opts) {\r\n switch (typeof v) {\r\n case 'string':\r\n return v;\r\n case 'boolean':\r\n return v ? \"TRUE\" : \"FALSE\";\r\n case 'number':\r\n return (v | 0) === v ? v.toString(10) : general_fmt_num(v);\r\n case 'undefined':\r\n return \"\";\r\n case 'object':\r\n if (v == null) return \"\";\r\n if (v instanceof Date) return format(14, datenum_local(v, opts && opts.date1904), opts);\r\n }\r\n throw new Error(\"unsupported value in General format: \" + v);\r\n }\r\n SSF._general = general_fmt;\r\n\r\n function fix_hijri(date, o) {\r\n /* TODO: properly adjust y/m/d and */\r\n o[0] -= 581;\r\n var dow = date.getDay();\r\n if (date < 60) dow = (dow + 6) % 7;\r\n return dow;\r\n }\r\n var THAI_DIGITS = \"\\u0E50\\u0E51\\u0E52\\u0E53\\u0E54\\u0E55\\u0E56\\u0E57\\u0E58\\u0E59\".split(\"\");\r\n /*jshint -W086 */\r\n function write_date(type, fmt, val, ss0) {\r\n var o = \"\",\r\n ss = 0,\r\n tt = 0,\r\n y = val.y,\r\n out, outl = 0;\r\n switch (type) {\r\n case 98:\r\n /* 'b' buddhist year */ y = val.y + 543;\r\n /* falls through */\r\n case 121:\r\n /* 'y' year */ switch (fmt.length) {\r\n case 1:\r\n case 2:\r\n out = y % 100;\r\n outl = 2;\r\n break;\r\n default:\r\n out = y % 10000;\r\n outl = 4;\r\n break;\r\n }\r\n break;\r\n case 109:\r\n /* 'm' month */ switch (fmt.length) {\r\n case 1:\r\n case 2:\r\n out = val.m;\r\n outl = fmt.length;\r\n break;\r\n case 3:\r\n return months[val.m - 1][1];\r\n case 5:\r\n return months[val.m - 1][0];\r\n default:\r\n return months[val.m - 1][2];\r\n }\r\n break;\r\n case 100:\r\n /* 'd' day */ switch (fmt.length) {\r\n case 1:\r\n case 2:\r\n out = val.d;\r\n outl = fmt.length;\r\n break;\r\n case 3:\r\n return days[val.q][0];\r\n default:\r\n return days[val.q][1];\r\n }\r\n break;\r\n case 104:\r\n /* 'h' 12-hour */ switch (fmt.length) {\r\n case 1:\r\n case 2:\r\n out = 1 + (val.H + 11) % 12;\r\n outl = fmt.length;\r\n break;\r\n default:\r\n throw 'bad hour format: ' + fmt;\r\n }\r\n break;\r\n case 72:\r\n /* 'H' 24-hour */ switch (fmt.length) {\r\n case 1:\r\n case 2:\r\n out = val.H;\r\n outl = fmt.length;\r\n break;\r\n default:\r\n throw 'bad hour format: ' + fmt;\r\n }\r\n break;\r\n case 77:\r\n /* 'M' minutes */ switch (fmt.length) {\r\n case 1:\r\n case 2:\r\n out = val.M;\r\n outl = fmt.length;\r\n break;\r\n default:\r\n throw 'bad minute format: ' + fmt;\r\n }\r\n break;\r\n case 115:\r\n /* 's' seconds */ if (fmt != 's' && fmt != 'ss' && fmt != '.0' && fmt != '.00' && fmt != '.000') throw 'bad second format: ' + fmt;\r\n if (val.u === 0 && (fmt == \"s\" || fmt == \"ss\")) return pad0(val.S, fmt.length);\r\n if (ss0 >= 2) tt = ss0 === 3 ? 1000 : 100;\r\n else tt = ss0 === 1 ? 10 : 1;\r\n ss = Math.round((tt) * (val.S + val.u));\r\n if (ss >= 60 * tt) ss = 0;\r\n if (fmt === 's') return ss === 0 ? \"0\" : \"\" + ss / tt;\r\n o = pad0(ss, 2 + ss0);\r\n if (fmt === 'ss') return o.substr(0, 2);\r\n return \".\" + o.substr(2, fmt.length - 1);\r\n case 90:\r\n /* 'Z' absolute time */ switch (fmt) {\r\n case '[h]':\r\n case '[hh]':\r\n out = val.D * 24 + val.H;\r\n break;\r\n case '[m]':\r\n case '[mm]':\r\n out = (val.D * 24 + val.H) * 60 + val.M;\r\n break;\r\n case '[s]':\r\n case '[ss]':\r\n out = ((val.D * 24 + val.H) * 60 + val.M) * 60 + Math.round(val.S + val.u);\r\n break;\r\n default:\r\n throw 'bad abstime format: ' + fmt;\r\n }\r\n outl = fmt.length === 3 ? 1 : 2;\r\n break;\r\n case 101:\r\n /* 'e' era */ out = y;\r\n outl = 1;\r\n break;\r\n }\r\n var outstr = outl > 0 ? pad0(out, outl) : \"\";\r\n return outstr;\r\n }\r\n /*jshint +W086 */\r\n function commaify(s) {\r\n var w = 3;\r\n if (s.length <= w) return s;\r\n var j = (s.length % w),\r\n o = s.substr(0, j);\r\n for (; j != s.length; j += w) o += (o.length > 0 ? \",\" : \"\") + s.substr(j, w);\r\n return o;\r\n }\r\n var write_num = (function make_write_num() {\r\n var pct1 = /%/g;\r\n\r\n function write_num_pct(type, fmt, val) {\r\n var sfmt = fmt.replace(pct1, \"\"),\r\n mul = fmt.length - sfmt.length;\r\n return write_num(type, sfmt, val * Math.pow(10, 2 * mul)) + fill(\"%\", mul);\r\n }\r\n\r\n function write_num_cm(type, fmt, val) {\r\n var idx = fmt.length - 1;\r\n while (fmt.charCodeAt(idx - 1) === 44) --idx;\r\n return write_num(type, fmt.substr(0, idx), val / Math.pow(10, 3 * (fmt.length - idx)));\r\n }\r\n\r\n function write_num_exp(fmt, val) {\r\n var o;\r\n var idx = fmt.indexOf(\"E\") - fmt.indexOf(\".\") - 1;\r\n if (fmt.match(/^#+0.0E\\+0$/)) {\r\n if (val == 0) return \"0.0E+0\";\r\n else if (val < 0) return \"-\" + write_num_exp(fmt, -val);\r\n var period = fmt.indexOf(\".\");\r\n if (period === -1) period = fmt.indexOf('E');\r\n var ee = Math.floor(Math.log(val) * Math.LOG10E) % period;\r\n if (ee < 0) ee += period;\r\n o = (val / Math.pow(10, ee)).toPrecision(idx + 1 + (period + ee) % period);\r\n if (o.indexOf(\"e\") === -1) {\r\n var fakee = Math.floor(Math.log(val) * Math.LOG10E);\r\n if (o.indexOf(\".\") === -1) o = o.charAt(0) + \".\" + o.substr(1) + \"E+\" + (fakee - o.length + ee);\r\n else o += \"E+\" + (fakee - ee);\r\n while (o.substr(0, 2) === \"0.\") {\r\n o = o.charAt(0) + o.substr(2, period) + \".\" + o.substr(2 + period);\r\n o = o.replace(/^0+([1-9])/, \"$1\").replace(/^0+\\./, \"0.\");\r\n }\r\n o = o.replace(/\\+-/, \"-\");\r\n }\r\n o = o.replace(/^([+-]?)(\\d*)\\.(\\d*)[Ee]/, function($$, $1, $2, $3) {\r\n return $1 + $2 + $3.substr(0, (period + ee) % period) + \".\" + $3.substr(ee) + \"E\";\r\n });\r\n } else o = val.toExponential(idx);\r\n if (fmt.match(/E\\+00$/) && o.match(/e[+-]\\d$/)) o = o.substr(0, o.length - 1) + \"0\" + o.charAt(o.length - 1);\r\n if (fmt.match(/E\\-/) && o.match(/e\\+/)) o = o.replace(/e\\+/, \"e\");\r\n return o.replace(\"e\", \"E\");\r\n }\r\n var frac1 = /# (\\?+)( ?)\\/( ?)(\\d+)/;\r\n\r\n function write_num_f1(r, aval, sign) {\r\n var den = parseInt(r[4], 10),\r\n rr = Math.round(aval * den),\r\n base = Math.floor(rr / den);\r\n var myn = (rr - base * den),\r\n myd = den;\r\n return sign + (base === 0 ? \"\" : \"\" + base) + \" \" + (myn === 0 ? fill(\" \", r[1].length + 1 + r[4].length) : pad_(myn, r[1].length) + r[2] + \"/\" + r[3] + pad0(myd, r[4].length));\r\n }\r\n\r\n function write_num_f2(r, aval, sign) {\r\n return sign + (aval === 0 ? \"\" : \"\" + aval) + fill(\" \", r[1].length + 2 + r[4].length);\r\n }\r\n var dec1 = /^#*0*\\.([0#]+)/;\r\n var closeparen = /\\).*[0#]/;\r\n var phone = /\\(###\\) ###\\\\?-####/;\r\n\r\n function hashq(str) {\r\n var o = \"\",\r\n cc;\r\n for (var i = 0; i != str.length; ++i) switch ((cc = str.charCodeAt(i))) {\r\n case 35:\r\n break;\r\n case 63:\r\n o += \" \";\r\n break;\r\n case 48:\r\n o += \"0\";\r\n break;\r\n default:\r\n o += String.fromCharCode(cc);\r\n }\r\n return o;\r\n }\r\n\r\n function rnd(val, d) {\r\n var dd = Math.pow(10, d);\r\n return \"\" + (Math.round(val * dd) / dd);\r\n }\r\n\r\n function dec(val, d) {\r\n var _frac = val - Math.floor(val),\r\n dd = Math.pow(10, d);\r\n if (d < ('' + Math.round(_frac * dd)).length) return 0;\r\n return Math.round(_frac * dd);\r\n }\r\n\r\n function carry(val, d) {\r\n if (d < ('' + Math.round((val - Math.floor(val)) * Math.pow(10, d))).length) {\r\n return 1;\r\n }\r\n return 0;\r\n }\r\n\r\n function flr(val) {\r\n if (val < 2147483647 && val > -2147483648) return \"\" + (val >= 0 ? (val | 0) : (val - 1 | 0));\r\n return \"\" + Math.floor(val);\r\n }\r\n\r\n function write_num_flt(type, fmt, val) {\r\n if (type.charCodeAt(0) === 40 && !fmt.match(closeparen)) {\r\n var ffmt = fmt.replace(/\\( */, \"\").replace(/ \\)/, \"\").replace(/\\)/, \"\");\r\n if (val >= 0) return write_num_flt('n', ffmt, val);\r\n return '(' + write_num_flt('n', ffmt, -val) + ')';\r\n }\r\n if (fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm(type, fmt, val);\r\n if (fmt.indexOf('%') !== -1) return write_num_pct(type, fmt, val);\r\n if (fmt.indexOf('E') !== -1) return write_num_exp(fmt, val);\r\n if (fmt.charCodeAt(0) === 36) return \"$\" + write_num_flt(type, fmt.substr(fmt.charAt(1) == ' ' ? 2 : 1), val);\r\n var o;\r\n var r, ri, ff, aval = Math.abs(val),\r\n sign = val < 0 ? \"-\" : \"\";\r\n if (fmt.match(/^00+$/)) return sign + pad0r(aval, fmt.length);\r\n if (fmt.match(/^[#?]+$/)) {\r\n o = pad0r(val, 0);\r\n if (o === \"0\") o = \"\";\r\n return o.length > fmt.length ? o : hashq(fmt.substr(0, fmt.length - o.length)) + o;\r\n }\r\n if ((r = fmt.match(frac1))) return write_num_f1(r, aval, sign);\r\n if (fmt.match(/^#+0+$/)) return sign + pad0r(aval, fmt.length - fmt.indexOf(\"0\"));\r\n if ((r = fmt.match(dec1))) {\r\n o = rnd(val, r[1].length).replace(/^([^\\.]+)$/, \"$1.\" + hashq(r[1])).replace(/\\.$/, \".\" + hashq(r[1])).replace(/\\.(\\d*)$/, function($$, $1) {\r\n return \".\" + $1 + fill(\"0\", hashq(r[1]).length - $1.length);\r\n });\r\n return fmt.indexOf(\"0.\") !== -1 ? o : o.replace(/^0\\./, \".\");\r\n }\r\n fmt = fmt.replace(/^#+([0.])/, \"$1\");\r\n if ((r = fmt.match(/^(0*)\\.(#*)$/))) {\r\n return sign + rnd(aval, r[2].length).replace(/\\.(\\d*[1-9])0*$/, \".$1\").replace(/^(-?\\d*)$/, \"$1.\").replace(/^0\\./, r[1].length ? \"0.\" : \".\");\r\n }\r\n if ((r = fmt.match(/^#{1,3},##0(\\.?)$/))) return sign + commaify(pad0r(aval, 0));\r\n if ((r = fmt.match(/^#,##0\\.([#0]*0)$/))) {\r\n return val < 0 ? \"-\" + write_num_flt(type, fmt, -val) : commaify(\"\" + (Math.floor(val) + carry(val, r[1].length))) + \".\" + pad0(dec(val, r[1].length), r[1].length);\r\n }\r\n if ((r = fmt.match(/^#,#*,#0/))) return write_num_flt(type, fmt.replace(/^#,#*,/, \"\"), val);\r\n if ((r = fmt.match(/^([0#]+)(\\\\?-([0#]+))+$/))) {\r\n o = _strrev(write_num_flt(type, fmt.replace(/[\\\\-]/g, \"\"), val));\r\n ri = 0;\r\n return _strrev(_strrev(fmt.replace(/\\\\/g, \"\")).replace(/[0#]/g, function(x) {\r\n return ri < o.length ? o.charAt(ri++) : x === '0' ? '0' : \"\";\r\n }));\r\n }\r\n if (fmt.match(phone)) {\r\n o = write_num_flt(type, \"##########\", val);\r\n return \"(\" + o.substr(0, 3) + \") \" + o.substr(3, 3) + \"-\" + o.substr(6);\r\n }\r\n var oa = \"\";\r\n if ((r = fmt.match(/^([#0?]+)( ?)\\/( ?)([#0?]+)/))) {\r\n ri = Math.min(r[4].length, 7);\r\n ff = frac(aval, Math.pow(10, ri) - 1, false);\r\n o = \"\" + sign;\r\n oa = write_num(\"n\", r[1], ff[1]);\r\n if (oa.charAt(oa.length - 1) == \" \") oa = oa.substr(0, oa.length - 1) + \"0\";\r\n o += oa + r[2] + \"/\" + r[3];\r\n oa = rpad_(ff[2], ri);\r\n if (oa.length < r[4].length) oa = hashq(r[4].substr(r[4].length - oa.length)) + oa;\r\n o += oa;\r\n return o;\r\n }\r\n if ((r = fmt.match(/^# ([#0?]+)( ?)\\/( ?)([#0?]+)/))) {\r\n ri = Math.min(Math.max(r[1].length, r[4].length), 7);\r\n ff = frac(aval, Math.pow(10, ri) - 1, true);\r\n return sign + (ff[0] || (ff[1] ? \"\" : \"0\")) + \" \" + (ff[1] ? pad_(ff[1], ri) + r[2] + \"/\" + r[3] + rpad_(ff[2], ri) : fill(\" \", 2 * ri + 1 + r[2].length + r[3].length));\r\n }\r\n if ((r = fmt.match(/^[#0?]+$/))) {\r\n o = pad0r(val, 0);\r\n if (fmt.length <= o.length) return o;\r\n return hashq(fmt.substr(0, fmt.length - o.length)) + o;\r\n }\r\n if ((r = fmt.match(/^([#0?]+)\\.([#0]+)$/))) {\r\n o = \"\" + val.toFixed(Math.min(r[2].length, 10)).replace(/([^0])0+$/, \"$1\");\r\n ri = o.indexOf(\".\");\r\n var lres = fmt.indexOf(\".\") - ri,\r\n rres = fmt.length - o.length - lres;\r\n return hashq(fmt.substr(0, lres) + o + fmt.substr(fmt.length - rres));\r\n }\r\n if ((r = fmt.match(/^00,000\\.([#0]*0)$/))) {\r\n ri = dec(val, r[1].length);\r\n return val < 0 ? \"-\" + write_num_flt(type, fmt, -val) : commaify(flr(val)).replace(/^\\d,\\d{3}$/, \"0$&\").replace(/^\\d*$/, function($$) {\r\n return \"00,\" + ($$.length < 3 ? pad0(0, 3 - $$.length) : \"\") + $$;\r\n }) + \".\" + pad0(ri, r[1].length);\r\n }\r\n switch (fmt) {\r\n case \"###,##0.00\":\r\n return write_num_flt(type, \"#,##0.00\", val);\r\n case \"###,###\":\r\n case \"##,###\":\r\n case \"#,###\":\r\n var x = commaify(pad0r(aval, 0));\r\n return x !== \"0\" ? sign + x : \"\";\r\n case \"###,###.00\":\r\n return write_num_flt(type, \"###,##0.00\", val).replace(/^0\\./, \".\");\r\n case \"#,###.00\":\r\n return write_num_flt(type, \"#,##0.00\", val).replace(/^0\\./, \".\");\r\n default:\r\n }\r\n throw new Error(\"unsupported format |\" + fmt + \"|\");\r\n }\r\n\r\n function write_num_cm2(type, fmt, val) {\r\n var idx = fmt.length - 1;\r\n while (fmt.charCodeAt(idx - 1) === 44) --idx;\r\n return write_num(type, fmt.substr(0, idx), val / Math.pow(10, 3 * (fmt.length - idx)));\r\n }\r\n\r\n function write_num_pct2(type, fmt, val) {\r\n var sfmt = fmt.replace(pct1, \"\"),\r\n mul = fmt.length - sfmt.length;\r\n return write_num(type, sfmt, val * Math.pow(10, 2 * mul)) + fill(\"%\", mul);\r\n }\r\n\r\n function write_num_exp2(fmt, val) {\r\n var o;\r\n var idx = fmt.indexOf(\"E\") - fmt.indexOf(\".\") - 1;\r\n if (fmt.match(/^#+0.0E\\+0$/)) {\r\n if (val == 0) return \"0.0E+0\";\r\n else if (val < 0) return \"-\" + write_num_exp2(fmt, -val);\r\n var period = fmt.indexOf(\".\");\r\n if (period === -1) period = fmt.indexOf('E');\r\n var ee = Math.floor(Math.log(val) * Math.LOG10E) % period;\r\n if (ee < 0) ee += period;\r\n o = (val / Math.pow(10, ee)).toPrecision(idx + 1 + (period + ee) % period);\r\n if (!o.match(/[Ee]/)) {\r\n var fakee = Math.floor(Math.log(val) * Math.LOG10E);\r\n if (o.indexOf(\".\") === -1) o = o.charAt(0) + \".\" + o.substr(1) + \"E+\" + (fakee - o.length + ee);\r\n else o += \"E+\" + (fakee - ee);\r\n o = o.replace(/\\+-/, \"-\");\r\n }\r\n o = o.replace(/^([+-]?)(\\d*)\\.(\\d*)[Ee]/, function($$, $1, $2, $3) {\r\n return $1 + $2 + $3.substr(0, (period + ee) % period) + \".\" + $3.substr(ee) + \"E\";\r\n });\r\n } else o = val.toExponential(idx);\r\n if (fmt.match(/E\\+00$/) && o.match(/e[+-]\\d$/)) o = o.substr(0, o.length - 1) + \"0\" + o.charAt(o.length - 1);\r\n if (fmt.match(/E\\-/) && o.match(/e\\+/)) o = o.replace(/e\\+/, \"e\");\r\n return o.replace(\"e\", \"E\");\r\n }\r\n\r\n function write_num_int(type, fmt, val) {\r\n if (type.charCodeAt(0) === 40 && !fmt.match(closeparen)) {\r\n var ffmt = fmt.replace(/\\( */, \"\").replace(/ \\)/, \"\").replace(/\\)/, \"\");\r\n if (val >= 0) return write_num_int('n', ffmt, val);\r\n return '(' + write_num_int('n', ffmt, -val) + ')';\r\n }\r\n if (fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm2(type, fmt, val);\r\n if (fmt.indexOf('%') !== -1) return write_num_pct2(type, fmt, val);\r\n if (fmt.indexOf('E') !== -1) return write_num_exp2(fmt, val);\r\n if (fmt.charCodeAt(0) === 36) return \"$\" + write_num_int(type, fmt.substr(fmt.charAt(1) == ' ' ? 2 : 1), val);\r\n var o;\r\n var r, ri, ff, aval = Math.abs(val),\r\n sign = val < 0 ? \"-\" : \"\";\r\n if (fmt.match(/^00+$/)) return sign + pad0(aval, fmt.length);\r\n if (fmt.match(/^[#?]+$/)) {\r\n o = (\"\" + val);\r\n if (val === 0) o = \"\";\r\n return o.length > fmt.length ? o : hashq(fmt.substr(0, fmt.length - o.length)) + o;\r\n }\r\n if ((r = fmt.match(frac1))) return write_num_f2(r, aval, sign);\r\n if (fmt.match(/^#+0+$/)) return sign + pad0(aval, fmt.length - fmt.indexOf(\"0\"));\r\n if ((r = fmt.match(dec1))) {\r\n o = (\"\" + val).replace(/^([^\\.]+)$/, \"$1.\" + hashq(r[1])).replace(/\\.$/, \".\" + hashq(r[1]));\r\n o = o.replace(/\\.(\\d*)$/, function($$, $1) {\r\n return \".\" + $1 + fill(\"0\", hashq(r[1]).length - $1.length);\r\n });\r\n return fmt.indexOf(\"0.\") !== -1 ? o : o.replace(/^0\\./, \".\");\r\n }\r\n fmt = fmt.replace(/^#+([0.])/, \"$1\");\r\n if ((r = fmt.match(/^(0*)\\.(#*)$/))) {\r\n return sign + (\"\" + aval).replace(/\\.(\\d*[1-9])0*$/, \".$1\").replace(/^(-?\\d*)$/, \"$1.\").replace(/^0\\./, r[1].length ? \"0.\" : \".\");\r\n }\r\n if ((r = fmt.match(/^#{1,3},##0(\\.?)$/))) return sign + commaify((\"\" + aval));\r\n if ((r = fmt.match(/^#,##0\\.([#0]*0)$/))) {\r\n return val < 0 ? \"-\" + write_num_int(type, fmt, -val) : commaify((\"\" + val)) + \".\" + fill('0', r[1].length);\r\n }\r\n if ((r = fmt.match(/^#,#*,#0/))) return write_num_int(type, fmt.replace(/^#,#*,/, \"\"), val);\r\n if ((r = fmt.match(/^([0#]+)(\\\\?-([0#]+))+$/))) {\r\n o = _strrev(write_num_int(type, fmt.replace(/[\\\\-]/g, \"\"), val));\r\n ri = 0;\r\n return _strrev(_strrev(fmt.replace(/\\\\/g, \"\")).replace(/[0#]/g, function(x) {\r\n return ri < o.length ? o.charAt(ri++) : x === '0' ? '0' : \"\";\r\n }));\r\n }\r\n if (fmt.match(phone)) {\r\n o = write_num_int(type, \"##########\", val);\r\n return \"(\" + o.substr(0, 3) + \") \" + o.substr(3, 3) + \"-\" + o.substr(6);\r\n }\r\n var oa = \"\";\r\n if ((r = fmt.match(/^([#0?]+)( ?)\\/( ?)([#0?]+)/))) {\r\n ri = Math.min(r[4].length, 7);\r\n ff = frac(aval, Math.pow(10, ri) - 1, false);\r\n o = \"\" + sign;\r\n oa = write_num(\"n\", r[1], ff[1]);\r\n if (oa.charAt(oa.length - 1) == \" \") oa = oa.substr(0, oa.length - 1) + \"0\";\r\n o += oa + r[2] + \"/\" + r[3];\r\n oa = rpad_(ff[2], ri);\r\n if (oa.length < r[4].length) oa = hashq(r[4].substr(r[4].length - oa.length)) + oa;\r\n o += oa;\r\n return o;\r\n }\r\n if ((r = fmt.match(/^# ([#0?]+)( ?)\\/( ?)([#0?]+)/))) {\r\n ri = Math.min(Math.max(r[1].length, r[4].length), 7);\r\n ff = frac(aval, Math.pow(10, ri) - 1, true);\r\n return sign + (ff[0] || (ff[1] ? \"\" : \"0\")) + \" \" + (ff[1] ? pad_(ff[1], ri) + r[2] + \"/\" + r[3] + rpad_(ff[2], ri) : fill(\" \", 2 * ri + 1 + r[2].length + r[3].length));\r\n }\r\n if ((r = fmt.match(/^[#0?]+$/))) {\r\n o = \"\" + val;\r\n if (fmt.length <= o.length) return o;\r\n return hashq(fmt.substr(0, fmt.length - o.length)) + o;\r\n }\r\n if ((r = fmt.match(/^([#0]+)\\.([#0]+)$/))) {\r\n o = \"\" + val.toFixed(Math.min(r[2].length, 10)).replace(/([^0])0+$/, \"$1\");\r\n ri = o.indexOf(\".\");\r\n var lres = fmt.indexOf(\".\") - ri,\r\n rres = fmt.length - o.length - lres;\r\n return hashq(fmt.substr(0, lres) + o + fmt.substr(fmt.length - rres));\r\n }\r\n if ((r = fmt.match(/^00,000\\.([#0]*0)$/))) {\r\n return val < 0 ? \"-\" + write_num_int(type, fmt, -val) : commaify(\"\" + val).replace(/^\\d,\\d{3}$/, \"0$&\").replace(/^\\d*$/, function($$) {\r\n return \"00,\" + ($$.length < 3 ? pad0(0, 3 - $$.length) : \"\") + $$;\r\n }) + \".\" + pad0(0, r[1].length);\r\n }\r\n switch (fmt) {\r\n case \"###,###\":\r\n case \"##,###\":\r\n case \"#,###\":\r\n var x = commaify(\"\" + aval);\r\n return x !== \"0\" ? sign + x : \"\";\r\n default:\r\n if (fmt.match(/\\.[0#?]*$/)) return write_num_int(type, fmt.slice(0, fmt.lastIndexOf(\".\")), val) + hashq(fmt.slice(fmt.lastIndexOf(\".\")));\r\n }\r\n throw new Error(\"unsupported format |\" + fmt + \"|\");\r\n }\r\n return function write_num(type, fmt, val) {\r\n return (val | 0) === val ? write_num_int(type, fmt, val) : write_num_flt(type, fmt, val);\r\n };\r\n })();\r\n\r\n function split_fmt(fmt) {\r\n var out = [];\r\n var in_str = false /*, cc*/ ;\r\n for (var i = 0, j = 0; i < fmt.length; ++i) switch (( /*cc=*/ fmt.charCodeAt(i))) {\r\n case 34:\r\n /* '\"' */ in_str = !in_str;\r\n break;\r\n case 95:\r\n case 42:\r\n case 92:\r\n /* '_' '*' '\\\\' */\r\n ++i;\r\n break;\r\n case 59:\r\n /* ';' */ out[out.length] = fmt.substr(j, i - j);\r\n j = i + 1;\r\n }\r\n out[out.length] = fmt.substr(j);\r\n if (in_str === true) throw new Error(\"Format |\" + fmt + \"| unterminated string \");\r\n return out;\r\n }\r\n SSF._split = split_fmt;\r\n var abstime = /\\[[HhMmSs\\u0E0A\\u0E19\\u0E17]*\\]/;\r\n\r\n function fmt_is_date(fmt) {\r\n var i = 0,\r\n /*cc = 0,*/ c = \"\",\r\n o = \"\";\r\n while (i < fmt.length) {\r\n switch ((c = fmt.charAt(i))) {\r\n case 'G':\r\n if (isgeneral(fmt, i)) i += 6;\r\n i++;\r\n break;\r\n case '\"':\r\n for (;\r\n ( /*cc=*/ fmt.charCodeAt(++i)) !== 34 && i < fmt.length;) { /*empty*/ }++i;\r\n break;\r\n case '\\\\':\r\n i += 2;\r\n break;\r\n case '_':\r\n i += 2;\r\n break;\r\n case '@':\r\n ++i;\r\n break;\r\n case 'B':\r\n case 'b':\r\n if (fmt.charAt(i + 1) === \"1\" || fmt.charAt(i + 1) === \"2\") return true;\r\n /* falls through */\r\n case 'M':\r\n case 'D':\r\n case 'Y':\r\n case 'H':\r\n case 'S':\r\n case 'E':\r\n /* falls through */\r\n case 'm':\r\n case 'd':\r\n case 'y':\r\n case 'h':\r\n case 's':\r\n case 'e':\r\n case 'g':\r\n return true;\r\n case 'A':\r\n case 'a':\r\n case '\u4E0A':\r\n if (fmt.substr(i, 3).toUpperCase() === \"A/P\") return true;\r\n if (fmt.substr(i, 5).toUpperCase() === \"AM/PM\") return true;\r\n if (fmt.substr(i, 5).toUpperCase() === \"\u4E0A\u5348/\u4E0B\u5348\") return true;\r\n ++i;\r\n break;\r\n case '[':\r\n o = c;\r\n while (fmt.charAt(i++) !== ']' && i < fmt.length) o += fmt.charAt(i);\r\n if (o.match(abstime)) return true;\r\n break;\r\n case '.':\r\n /* falls through */\r\n case '0':\r\n case '#':\r\n while (i < fmt.length && (\"0#?.,E+-%\".indexOf(c = fmt.charAt(++i)) > -1 || (c == '\\\\' && fmt.charAt(i + 1) == \"-\" && \"0#\".indexOf(fmt.charAt(i + 2)) > -1))) { /* empty */ }\r\n break;\r\n case '?':\r\n while (fmt.charAt(++i) === c) { /* empty */ }\r\n break;\r\n case '*':\r\n ++i;\r\n if (fmt.charAt(i) == ' ' || fmt.charAt(i) == '*') ++i;\r\n break;\r\n case '(':\r\n case ')':\r\n ++i;\r\n break;\r\n case '1':\r\n case '2':\r\n case '3':\r\n case '4':\r\n case '5':\r\n case '6':\r\n case '7':\r\n case '8':\r\n case '9':\r\n while (i < fmt.length && \"0123456789\".indexOf(fmt.charAt(++i)) > -1) { /* empty */ }\r\n break;\r\n case ' ':\r\n ++i;\r\n break;\r\n default:\r\n ++i;\r\n break;\r\n }\r\n }\r\n return false;\r\n }\r\n SSF.is_date = fmt_is_date;\r\n\r\n function eval_fmt(fmt, v, opts, flen) {\r\n var out = [],\r\n o = \"\",\r\n i = 0,\r\n c = \"\",\r\n lst = 't',\r\n dt, j, cc;\r\n var hr = 'H';\r\n /* Tokenize */\r\n while (i < fmt.length) {\r\n switch ((c = fmt.charAt(i))) {\r\n case 'G':\r\n /* General */ if (!isgeneral(fmt, i)) throw new Error('unrecognized character ' + c + ' in ' + fmt);\r\n out[out.length] = {\r\n t: 'G',\r\n v: 'General'\r\n };\r\n i += 7;\r\n break;\r\n case '\"':\r\n /* Literal text */ for (o = \"\";\r\n (cc = fmt.charCodeAt(++i)) !== 34 && i < fmt.length;) o += String.fromCharCode(cc);\r\n out[out.length] = {\r\n t: 't',\r\n v: o\r\n };\r\n ++i;\r\n break;\r\n case '\\\\':\r\n var w = fmt.charAt(++i),\r\n t = (w === \"(\" || w === \")\") ? w : 't';\r\n out[out.length] = {\r\n t: t,\r\n v: w\r\n };\r\n ++i;\r\n break;\r\n case '_':\r\n out[out.length] = {\r\n t: 't',\r\n v: \" \"\r\n };\r\n i += 2;\r\n break;\r\n case '@':\r\n /* Text Placeholder */ out[out.length] = {\r\n t: 'T',\r\n v: v\r\n };\r\n ++i;\r\n break;\r\n case 'B':\r\n case 'b':\r\n if (fmt.charAt(i + 1) === \"1\" || fmt.charAt(i + 1) === \"2\") {\r\n if (dt == null) {\r\n dt = parse_date_code(v, opts, fmt.charAt(i + 1) === \"2\");\r\n if (dt == null) return \"\";\r\n }\r\n out[out.length] = {\r\n t: 'X',\r\n v: fmt.substr(i, 2)\r\n };\r\n lst = c;\r\n i += 2;\r\n break;\r\n }\r\n /* falls through */\r\n case 'M':\r\n case 'D':\r\n case 'Y':\r\n case 'H':\r\n case 'S':\r\n case 'E':\r\n c = c.toLowerCase();\r\n /* falls through */\r\n case 'm':\r\n case 'd':\r\n case 'y':\r\n case 'h':\r\n case 's':\r\n case 'e':\r\n case 'g':\r\n if (v < 0) return \"\";\r\n if (dt == null) {\r\n dt = parse_date_code(v, opts);\r\n if (dt == null) return \"#####\";\r\n }\r\n o = c;\r\n while (++i < fmt.length && fmt.charAt(i).toLowerCase() === c) o += c;\r\n if (c === 'm' && lst.toLowerCase() === 'h') c = 'M';\r\n if (c === 'h') c = hr;\r\n out[out.length] = {\r\n t: c,\r\n v: o\r\n };\r\n lst = c;\r\n break;\r\n case 'A':\r\n case 'a':\r\n case '\u4E0A':\r\n var q = {\r\n t: c,\r\n v: c\r\n };\r\n if (dt == null) dt = parse_date_code(v, opts);\r\n if (fmt.substr(i, 3).toUpperCase() === \"A/P\") {\r\n if (dt != null) q.v = dt.H >= 12 ? \"P\" : \"A\";\r\n q.t = 'T';\r\n hr = 'h';\r\n i += 3;\r\n } else if (fmt.substr(i, 5).toUpperCase() === \"AM/PM\") {\r\n if (dt != null) q.v = dt.H >= 12 ? \"PM\" : \"AM\";\r\n q.t = 'T';\r\n i += 5;\r\n hr = 'h';\r\n } else if (fmt.substr(i, 5).toUpperCase() === \"\u4E0A\u5348/\u4E0B\u5348\") {\r\n if (dt != null) q.v = dt.H >= 12 ? \"\u4E0B\u5348\" : \"\u4E0A\u5348\";\r\n q.t = 'T';\r\n i += 5;\r\n hr = 'h';\r\n } else {\r\n q.t = \"t\";\r\n ++i;\r\n }\r\n if (dt == null && q.t === 'T') return \"\";\r\n out[out.length] = q;\r\n lst = c;\r\n break;\r\n case '[':\r\n o = c;\r\n while (fmt.charAt(i++) !== ']' && i < fmt.length) o += fmt.charAt(i);\r\n if (o.slice(-1) !== ']') throw 'unterminated \"[\" block: |' + o + '|';\r\n if (o.match(abstime)) {\r\n if (dt == null) {\r\n dt = parse_date_code(v, opts);\r\n if (dt == null) return \"\";\r\n }\r\n out[out.length] = {\r\n t: 'Z',\r\n v: o.toLowerCase()\r\n };\r\n lst = o.charAt(1);\r\n } else if (o.indexOf(\"$\") > -1) {\r\n o = (o.match(/\\$([^-\\[\\]]*)/) || [])[1] || \"$\";\r\n if (!fmt_is_date(fmt)) out[out.length] = {\r\n t: 't',\r\n v: o\r\n };\r\n }\r\n break;\r\n /* Numbers */\r\n case '.':\r\n if (dt != null) {\r\n o = c;\r\n while (++i < fmt.length && (c = fmt.charAt(i)) === \"0\") o += c;\r\n out[out.length] = {\r\n t: 's',\r\n v: o\r\n };\r\n break;\r\n }\r\n /* falls through */\r\n case '0':\r\n case '#':\r\n o = c;\r\n while (++i < fmt.length && \"0#?.,E+-%\".indexOf(c = fmt.charAt(i)) > -1) o += c;\r\n out[out.length] = {\r\n t: 'n',\r\n v: o\r\n };\r\n break;\r\n case '?':\r\n o = c;\r\n while (fmt.charAt(++i) === c) o += c;\r\n out[out.length] = {\r\n t: c,\r\n v: o\r\n };\r\n lst = c;\r\n break;\r\n case '*':\r\n ++i;\r\n if (fmt.charAt(i) == ' ' || fmt.charAt(i) == '*') ++i;\r\n break; // **\r\n case '(':\r\n case ')':\r\n out[out.length] = {\r\n t: (flen === 1 ? 't' : c),\r\n v: c\r\n };\r\n ++i;\r\n break;\r\n case '1':\r\n case '2':\r\n case '3':\r\n case '4':\r\n case '5':\r\n case '6':\r\n case '7':\r\n case '8':\r\n case '9':\r\n o = c;\r\n while (i < fmt.length && \"0123456789\".indexOf(fmt.charAt(++i)) > -1) o += fmt.charAt(i);\r\n out[out.length] = {\r\n t: 'D',\r\n v: o\r\n };\r\n break;\r\n case ' ':\r\n out[out.length] = {\r\n t: c,\r\n v: c\r\n };\r\n ++i;\r\n break;\r\n case '$':\r\n out[out.length] = {\r\n t: 't',\r\n v: '$'\r\n };\r\n ++i;\r\n break;\r\n default:\r\n // if (\"\u00A4\u0E3FBsBr\u20B5\u20A1\u20AB\u0192FtRs.\u20ADkr\u00A3\u20A4Lm\u20A5\u20A6\u20B1PQRSkRp\u09F2\u09F3R$S/.\u3012\u20AE\u20A9\u00A5NT\uFFE5z\u0142\u20B4\u20AA\u17DB\u0440\u0443\u0431\u20AC\uFF04,$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP\".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);\r\n if (\"\u00A4\u0E3FBsBr\u20B5\u20A1\u20AB\u0192FtRs.\u20ADkr\u00A3\u20A4Lm\u20A5\u20A6\u20B1PQRSkRp\u09F2\u09F3R$S/.\u3012\u20AE\u20A9\u00A5NT\uFFE5z\u0142\u20B4\u20AA\u17DB\u0440\u0443\u0431\u20AC\uFF04,$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP$\uFFE5LekdinAf$dhAflRial?\uFFE1BirrKzMOPPGKRsGsB/R$\u0440\u0440levkrKMzBsPNuFBuKPkrRD$NfkCFA?CVEGMDFrCDHTGNAfLFdjKGSFGGHSRielKCFknKshLSLL\uFFE1LtRFRONArRfMWKRMMURsMROS/KMDLMTnRC$kr\u20ACGELCHFSLLSCRDbSZLSDGSOSSomFCFPTShT$VUVQUGX\u0433\u0440\u043DsomWSTNT$FtDramRpZMWFCFA\".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);\r\n out[out.length] = {\r\n t: 't',\r\n v: c\r\n };\r\n ++i;\r\n break;\r\n }\r\n }\r\n /* Scan for date/time parts */\r\n var bt = 0,\r\n ss0 = 0,\r\n ssm;\r\n for (i = out.length - 1, lst = 't'; i >= 0; --i) {\r\n switch (out[i].t) {\r\n case 'h':\r\n case 'H':\r\n out[i].t = hr;\r\n lst = 'h';\r\n if (bt < 1) bt = 1;\r\n break;\r\n case 's':\r\n if ((ssm = out[i].v.match(/\\.0+$/))) ss0 = Math.max(ss0, ssm[0].length - 1);\r\n if (bt < 3) bt = 3;\r\n /* falls through */\r\n case 'd':\r\n case 'y':\r\n case 'M':\r\n case 'e':\r\n lst = out[i].t;\r\n break;\r\n case 'm':\r\n if (lst === 's') {\r\n out[i].t = 'M';\r\n if (bt < 2) bt = 2;\r\n }\r\n break;\r\n case 'X':\r\n /*if(out[i].v === \"B2\");*/ break;\r\n case 'Z':\r\n if (bt < 1 && out[i].v.match(/[Hh]/)) bt = 1;\r\n if (bt < 2 && out[i].v.match(/[Mm]/)) bt = 2;\r\n if (bt < 3 && out[i].v.match(/[Ss]/)) bt = 3;\r\n }\r\n }\r\n /* time rounding depends on presence of minute / second / usec fields */\r\n switch (bt) {\r\n case 0:\r\n break;\r\n case 1:\r\n if (dt.u >= 0.5) {\r\n dt.u = 0;\r\n ++dt.S;\r\n }\r\n if (dt.S >= 60) {\r\n dt.S = 0;\r\n ++dt.M;\r\n }\r\n if (dt.M >= 60) {\r\n dt.M = 0;\r\n ++dt.H;\r\n }\r\n break;\r\n case 2:\r\n if (dt.u >= 0.5) {\r\n dt.u = 0;\r\n ++dt.S;\r\n }\r\n if (dt.S >= 60) {\r\n dt.S = 0;\r\n ++dt.M;\r\n }\r\n break;\r\n }\r\n /* replace fields */\r\n var nstr = \"\",\r\n jj;\r\n for (i = 0; i < out.length; ++i) {\r\n switch (out[i].t) {\r\n case 't':\r\n case 'T':\r\n case ' ':\r\n case 'D':\r\n break;\r\n case 'X':\r\n out[i].v = \"\";\r\n out[i].t = \";\";\r\n break;\r\n case 'd':\r\n case 'm':\r\n case 'y':\r\n case 'h':\r\n case 'H':\r\n case 'M':\r\n case 's':\r\n case 'e':\r\n case 'b':\r\n case 'Z':\r\n out[i].v = write_date(out[i].t.charCodeAt(0), out[i].v, dt, ss0);\r\n out[i].t = 't';\r\n break;\r\n case 'n':\r\n case '?':\r\n jj = i + 1;\r\n while (out[jj] != null && (\r\n (c = out[jj].t) === \"?\" || c === \"D\" || ((c === \" \" || c === \"t\") && out[jj + 1] != null && (out[jj + 1].t === '?' || out[jj + 1].t === \"t\" && out[jj + 1].v === '/')) || (out[i].t === '(' && (c === ' ' || c === 'n' || c === ')')) || (c === 't' && (out[jj].v === '/' || out[jj].v === ' ' && out[jj + 1] != null && out[jj + 1].t == '?')))) {\r\n out[i].v += out[jj].v;\r\n out[jj] = {\r\n v: \"\",\r\n t: \";\"\r\n };\r\n ++jj;\r\n }\r\n nstr += out[i].v;\r\n i = jj - 1;\r\n break;\r\n case 'G':\r\n out[i].t = 't';\r\n out[i].v = general_fmt(v, opts);\r\n break;\r\n }\r\n }\r\n var vv = \"\",\r\n myv, ostr;\r\n if (nstr.length > 0) {\r\n if (nstr.charCodeAt(0) == 40) /* '(' */ {\r\n myv = (v < 0 && nstr.charCodeAt(0) === 45 ? -v : v);\r\n ostr = write_num('n', nstr, myv);\r\n } else {\r\n myv = (v < 0 && flen > 1 ? -v : v);\r\n ostr = write_num('n', nstr, myv);\r\n if (myv < 0 && out[0] && out[0].t == 't') {\r\n ostr = ostr.substr(1);\r\n out[0].v = \"-\" + out[0].v;\r\n }\r\n }\r\n jj = ostr.length - 1;\r\n var decpt = out.length;\r\n for (i = 0; i < out.length; ++i)\r\n if (out[i] != null && out[i].t != 't' && out[i].v.indexOf(\".\") > -1) {\r\n decpt = i;\r\n break;\r\n }\r\n var lasti = out.length;\r\n if (decpt === out.length && ostr.indexOf(\"E\") === -1) {\r\n for (i = out.length - 1; i >= 0; --i) {\r\n if (out[i] == null || 'n?'.indexOf(out[i].t) === -1) continue;\r\n if (jj >= out[i].v.length - 1) {\r\n jj -= out[i].v.length;\r\n out[i].v = ostr.substr(jj + 1, out[i].v.length);\r\n } else if (jj < 0) out[i].v = \"\";\r\n else {\r\n out[i].v = ostr.substr(0, jj + 1);\r\n jj = -1;\r\n }\r\n out[i].t = 't';\r\n lasti = i;\r\n }\r\n if (jj >= 0 && lasti < out.length) out[lasti].v = ostr.substr(0, jj + 1) + out[lasti].v;\r\n } else if (decpt !== out.length && ostr.indexOf(\"E\") === -1) {\r\n jj = ostr.indexOf(\".\") - 1;\r\n for (i = decpt; i >= 0; --i) {\r\n if (out[i] == null || 'n?'.indexOf(out[i].t) === -1) continue;\r\n j = out[i].v.indexOf(\".\") > -1 && i === decpt ? out[i].v.indexOf(\".\") - 1 : out[i].v.length - 1;\r\n vv = out[i].v.substr(j + 1);\r\n for (; j >= 0; --j) {\r\n if (jj >= 0 && (out[i].v.charAt(j) === \"0\" || out[i].v.charAt(j) === \"#\")) vv = ostr.charAt(jj--) + vv;\r\n }\r\n out[i].v = vv;\r\n out[i].t = 't';\r\n lasti = i;\r\n }\r\n if (jj >= 0 && lasti < out.length) out[lasti].v = ostr.substr(0, jj + 1) + out[lasti].v;\r\n jj = ostr.indexOf(\".\") + 1;\r\n for (i = decpt; i < out.length; ++i) {\r\n if (out[i] == null || ('n?('.indexOf(out[i].t) === -1 && i !== decpt)) continue;\r\n j = out[i].v.indexOf(\".\") > -1 && i === decpt ? out[i].v.indexOf(\".\") + 1 : 0;\r\n vv = out[i].v.substr(0, j);\r\n for (; j < out[i].v.length; ++j) {\r\n if (jj < ostr.length) vv += ostr.charAt(jj++);\r\n }\r\n out[i].v = vv;\r\n out[i].t = 't';\r\n lasti = i;\r\n }\r\n }\r\n }\r\n for (i = 0; i < out.length; ++i)\r\n if (out[i] != null && 'n?'.indexOf(out[i].t) > -1) {\r\n myv = (flen > 1 && v < 0 && i > 0 && out[i - 1].v === \"-\" ? -v : v);\r\n out[i].v = write_num(out[i].t, out[i].v, myv);\r\n out[i].t = 't';\r\n }\r\n var retval = \"\";\r\n for (i = 0; i !== out.length; ++i)\r\n if (out[i] != null) retval += out[i].v;\r\n \r\n return retval;\r\n }\r\n SSF._eval = eval_fmt;\r\n var cfregex = /\\[[=<>]/;\r\n var cfregex2 = /\\[(=|>[=]?|<[>=]?)(-?\\d+(?:\\.\\d*)?)\\]/;\r\n\r\n function chkcond(v, rr) {\r\n if (rr == null) return false;\r\n var thresh = parseFloat(rr[2]);\r\n switch (rr[1]) {\r\n case \"=\":\r\n if (v == thresh) return true;\r\n break;\r\n case \">\":\r\n if (v > thresh) return true;\r\n break;\r\n case \"<\":\r\n if (v < thresh) return true;\r\n break;\r\n case \"<>\":\r\n if (v != thresh) return true;\r\n break;\r\n case \">=\":\r\n if (v >= thresh) return true;\r\n break;\r\n case \"<=\":\r\n if (v <= thresh) return true;\r\n break;\r\n }\r\n return false;\r\n }\r\n\r\n function choose_fmt(f, v) {\r\n var fmt = split_fmt(f);\r\n var l = fmt.length,\r\n lat = fmt[l - 1].indexOf(\"@\");\r\n if (l < 4 && lat > -1) --l;\r\n if (fmt.length > 4) throw new Error(\"cannot find right format for |\" + fmt.join(\"|\") + \"|\");\r\n if (typeof v !== \"number\") return [4, fmt.length === 4 || lat > -1 ? fmt[fmt.length - 1] : \"@\"];\r\n switch (fmt.length) {\r\n case 1:\r\n fmt = lat > -1 ? [\"General\", \"General\", \"General\", fmt[0]] : [fmt[0], fmt[0], fmt[0], \"@\"];\r\n break;\r\n case 2:\r\n fmt = lat > -1 ? [fmt[0], fmt[0], fmt[0], fmt[1]] : [fmt[0], fmt[1], fmt[0], \"@\"];\r\n break;\r\n case 3:\r\n fmt = lat > -1 ? [fmt[0], fmt[1], fmt[0], fmt[2]] : [fmt[0], fmt[1], fmt[2], \"@\"];\r\n break;\r\n case 4:\r\n break;\r\n }\r\n var ff = v > 0 ? fmt[0] : v < 0 ? fmt[1] : fmt[2];\r\n if (fmt[0].indexOf(\"[\") === -1 && fmt[1].indexOf(\"[\") === -1) return [l, ff];\r\n if (fmt[0].match(cfregex) != null || fmt[1].match(cfregex) != null) {\r\n var m1 = fmt[0].match(cfregex2);\r\n var m2 = fmt[1].match(cfregex2);\r\n return chkcond(v, m1) ? [l, fmt[0]] : chkcond(v, m2) ? [l, fmt[1]] : [l, fmt[m1 != null && m2 != null ? 2 : 1]];\r\n }\r\n return [l, ff];\r\n }\r\n\r\n function format(fmt, v, o) {\r\n if (o == null) o = {};\r\n var sfmt = \"\";\r\n switch (typeof fmt) {\r\n case \"string\":\r\n if (fmt == \"m/d/yy\" && o.dateNF) sfmt = o.dateNF;\r\n else sfmt = fmt;\r\n break;\r\n case \"number\":\r\n if (fmt == 14 && o.dateNF) sfmt = o.dateNF;\r\n else sfmt = (o.table != null ? (o.table) : table_fmt)[fmt];\r\n if (sfmt == null) sfmt = (o.table && o.table[default_map[fmt]]) || table_fmt[default_map[fmt]];\r\n if (sfmt == null) sfmt = default_str[fmt] || \"General\";\r\n break;\r\n }\r\n\r\n //new runze \u589E\u52A0\u4E07 \u4EBF \u683C\u5F0F \r\n //\u6CE8\uFF1A\"w\":2\u4E072500 \"w0\":2\u4E072500 \"w0.0\":2\u4E072500.2 \"w0.00\":2\u4E072500.23......\u81EA\u5B9A\u4E49\u7CBE\u786E\u5EA6\r\n var reg = /^(w|W)((0?)|(0\\.0+))$/;\r\n if(!!sfmt.match(reg)){\r\n if(isNaN(v)){\r\n return v;\r\n }\r\n\r\n //var v =300101886.436;\r\n var acc = sfmt.slice(1); //\u53D6\u5F970/0.0/0.00\r\n var isNegative = false;\r\n if(!isNaN(v) && Number(v) < 0){\r\n isNegative = true;\r\n v = Math.abs(v);\r\n }\r\n var vInt = parseInt(v);\r\n \r\n var vlength = vInt.toString().length;\r\n if( vlength> 4){\r\n if(vlength > 8){\r\n var y =parseInt (v / 100000000); //\u4EBF\r\n var w = parseInt(parseFloat(v).subtract(y*100000000) / 10000); //\u4E07\r\n var q = parseFloat(v).subtract(y*100000000 + w*10000); //\u5343\u4EE5\u540E\r\n if(acc != \"\"){\r\n q = numeral(q).format(acc); //\u5904\u7406\u7CBE\u786E\u5EA6\r\n }\r\n v = y + \"\u4EBF\" + w + \"\u4E07\" + q;\r\n }else{\r\n var w = parseInt(v / 10000); //\u4E07\r\n var q = parseFloat(v).subtract(w*10000) //\u5343\u4EE5\u540E\r\n if(acc != \"\"){\r\n q = numeral(q).format(acc); //\u5904\u7406\u7CBE\u786E\u5EA6\r\n }\r\n v = w + \"\u4E07\" + q;\r\n }\r\n \r\n\r\n if(v.indexOf(\"\u4EBF0\u4E070\") != -1){\r\n v = v.replace(\"0\u4E070\",\"\");\r\n }else if(v.indexOf(\"\u4EBF0\u4E07\") != -1){\r\n v = v.replace(\"0\u4E07\",\"\");\r\n }else if(v.indexOf(\"\u4E070\") != -1){\r\n v = v.replace(\"\u4E070\",\"\u4E07\");\r\n }\r\n\r\n //\u820D\u5F03\u6B63\u5219\u540E\u987E\u65AD\u8A00\u5199\u6CD5\uFF0C\u65E7\u6D4F\u89C8\u5668\u4E0D\u8BC6\u522B\uFF08360 V9\uFF09\r\n if (v.indexOf(\"\u4EBF\") != -1 && v.indexOf(\"\u4E07\") == -1) { //1\u4EBF/1\u4EBF111 => 1\u4EBF/1\u4EBF0111\r\n var afterYi = v.substring(v.indexOf(\"\u4EBF\") + 1);\r\n if (afterYi.substring(0, 1) !== \".\" && afterYi != \"\") {\r\n switch ((parseInt(afterYi) + \"\").length) {\r\n case 1:\r\n afterYi = \"000\" + afterYi;\r\n break;\r\n case 2:\r\n afterYi = \"00\" + afterYi;\r\n break;\r\n case 3:\r\n afterYi = \"0\" + afterYi;\r\n break;\r\n }\r\n v = v.substring(0, v.indexOf(\"\u4EBF\") + 1) + afterYi;\r\n }\r\n } else if (v.indexOf(\"\u4EBF\") == -1 && v.indexOf(\"\u4E07\") != -1) { //3\u4E070011\r\n var afterWan = v.substring(v.indexOf(\"\u4E07\") + 1);\r\n if (afterWan.substring(0, 1) !== \".\" && afterWan != \"\") {\r\n switch ((parseInt(afterWan) + \"\").length) {\r\n case 1:\r\n afterWan = \"000\" + afterWan;\r\n break;\r\n case 2:\r\n afterWan = \"00\" + afterWan;\r\n break;\r\n case 3:\r\n afterWan = \"0\" + afterWan;\r\n break;\r\n }\r\n v = v.substring(0, v.indexOf(\"\u4E07\") + 1) + afterWan;\r\n }\r\n } else if (v.indexOf(\"\u4EBF\") != -1 && v.indexOf(\"\u4E07\") != -1) { //1\u4EBF0053\u4E070611\r\n var afterYi = v.substring(v.indexOf(\"\u4EBF\") + 1,v.indexOf(\"\u4E07\")),\r\n afterWan = v.substring(v.indexOf(\"\u4E07\") + 1);\r\n\r\n switch ((parseInt(afterYi) + \"\").length) {\r\n case 1:\r\n afterYi = \"000\" + afterYi;\r\n break;\r\n case 2:\r\n afterYi = \"00\" + afterYi;\r\n break;\r\n case 3:\r\n afterYi = \"0\" + afterYi;\r\n break;\r\n }\r\n v = v.substring(0, v.indexOf(\"\u4EBF\") + 1) + afterYi + v.substring(v.indexOf(\"\u4E07\"))\r\n \r\n\r\n if (afterWan.substring(0, 1) !== \".\" && afterWan != \"\") {\r\n switch ((parseInt(afterWan) + \"\").length) {\r\n case 1:\r\n afterWan = \"000\" + afterWan;\r\n break;\r\n case 2:\r\n afterWan = \"00\" + afterWan;\r\n break;\r\n case 3:\r\n afterWan = \"0\" + afterWan;\r\n break;\r\n }\r\n v = v.substring(0, v.indexOf(\"\u4E07\") + 1) + afterWan\r\n }\r\n }\r\n\r\n }else{\r\n if(acc != \"\"){\r\n v = numeral(v).format(acc); //\u5904\u7406\u7CBE\u786E\u5EA6\r\n }\r\n }\r\n if(isNegative){\r\n return '-' + v;\r\n }else{\r\n return v;\r\n }\r\n \r\n }\r\n\r\n\r\n if (isgeneral(sfmt, 0)) return general_fmt(v, o);\r\n if (v instanceof Date) v = datenum_local(v, o.date1904);\r\n var f = choose_fmt(sfmt, v);\r\n if (isgeneral(f[1])) return general_fmt(v, o);\r\n if (v === true) v = \"TRUE\";\r\n else if (v === false) v = \"FALSE\";\r\n else if (v === \"\" || v == null) return \"\";\r\n return eval_fmt(f[1], v, o, f[0]);\r\n }\r\n\r\n function load_entry(fmt, idx) {\r\n if (typeof idx != 'number') {\r\n idx = +idx || -1;\r\n for (var i = 0; i < 0x0188; ++i) {\r\n if (table_fmt[i] == undefined) {\r\n if (idx < 0) idx = i;\r\n continue;\r\n }\r\n if (table_fmt[i] == fmt) {\r\n idx = i;\r\n break;\r\n }\r\n }\r\n if (idx < 0) idx = 0x187;\r\n }\r\n table_fmt[idx] = fmt;\r\n return idx;\r\n }\r\n SSF.load = load_entry;\r\n SSF._table = table_fmt;\r\n SSF.get_table = function get_table() {\r\n return table_fmt;\r\n };\r\n SSF.load_table = function load_table(tbl) {\r\n for (var i = 0; i != 0x0188; ++i)\r\n if (tbl[i] !== undefined) load_entry(tbl[i], i);\r\n };\r\n SSF.init_table = init_table;\r\n SSF.format = format;\r\n};\r\nmake_ssf(SSF);\r\n\r\nvar XLMLFormatMap /*{[string]:string}*/ = ({\r\n \"General Number\": \"General\",\r\n \"General Date\": SSF._table[22],\r\n \"Long Date\": \"dddd, mmmm dd, yyyy\",\r\n \"Medium Date\": SSF._table[15],\r\n \"Short Date\": SSF._table[14],\r\n \"Long Time\": SSF._table[19],\r\n \"Medium Time\": SSF._table[18],\r\n \"Short Time\": SSF._table[20],\r\n \"Currency\": '\"$\"#,##0.00_);[Red]\\\\(\"$\"#,##0.00\\\\)',\r\n \"Fixed\": SSF._table[2],\r\n \"Standard\": SSF._table[4],\r\n \"Percent\": SSF._table[10],\r\n \"Scientific\": SSF._table[11],\r\n \"Yes/No\": '\"Yes\";\"Yes\";\"No\";@',\r\n \"True/False\": '\"True\";\"True\";\"False\";@',\r\n \"On/Off\": '\"Yes\";\"Yes\";\"No\";@'\r\n});\r\n\r\nvar unescapexml = (function() {\r\n /* 22.4.2.4 bstr (Basic String) */\r\n var encregex = /&(?:quot|apos|gt|lt|amp|#x?([\\da-fA-F]+));/g,\r\n coderegex = /_x([\\da-fA-F]{4})_/g;\r\n return function unescapexml(text) {\r\n var s = text + '',\r\n i = s.indexOf(\" -1 ? 16 : 10)) || $$;\r\n }).replace(coderegex, function(m, c) {\r\n return String.fromCharCode(parseInt(c, 16));\r\n });\r\n var j = s.indexOf(\"]]>\");\r\n return unescapexml(s.slice(0, i)) + s.slice(i + 9, j) + unescapexml(s.slice(j + 3));\r\n };\r\n})();\r\n\r\nfunction xlml_format(format, value) {\r\n var fmt = XLMLFormatMap[format] || unescapexml(format);\r\n if (fmt === \"General\") return SSF._general(value);\r\n return SSF.format(fmt, value);\r\n}\r\n\r\nvar basedate = new Date(1899, 11, 31, 0, 0, 0);\r\nvar dnthresh = basedate.getTime();\r\nvar base1904 = new Date(1900, 2, 1, 0, 0, 0);\r\n\r\nfunction datenum(v, date1904) {\r\n var epoch = v.getTime();\r\n if (date1904) epoch -= 1462 * 24 * 60 * 60 * 1000;\r\n return (epoch - dnthresh) / (24 * 60 * 60 * 1000);\r\n}\r\n\r\nexport function datenum_local(v, date1904) {\r\n var epoch = Date.UTC(v.getFullYear(), v.getMonth(), v.getDate(), v.getHours(), v.getMinutes(), v.getSeconds());\r\n var dnthresh_utc = Date.UTC(1899, 11, 31, 0, 0, 0);\r\n\r\n if (date1904) epoch -= 1461 * 24 * 60 * 60 * 1000;\r\n else if (v >= base1904) epoch += 24 * 60 * 60 * 1000;\r\n return (epoch - dnthresh_utc) / (24 * 60 * 60 * 1000);\r\n}\r\n\r\nfunction numdate(v) {\r\n var out = new Date();\r\n out.setTime(v * 24 * 60 * 60 * 1000 + dnthresh);\r\n return out;\r\n}\r\n/* ISO 8601 Duration */\r\nfunction parse_isodur(s) {\r\n var sec = 0,\r\n mt = 0,\r\n time = false;\r\n var m = s.match(/P([0-9\\.]+Y)?([0-9\\.]+M)?([0-9\\.]+D)?T([0-9\\.]+H)?([0-9\\.]+M)?([0-9\\.]+S)?/);\r\n if (!m) throw new Error(\"|\" + s + \"| is not an ISO8601 Duration\");\r\n for (var i = 1; i != m.length; ++i) {\r\n if (!m[i]) continue;\r\n mt = 1;\r\n if (i > 3) time = true;\r\n switch (m[i].slice(m[i].length - 1)) {\r\n case 'Y':\r\n throw new Error(\"Unsupported ISO Duration Field: \" + m[i].slice(m[i].length - 1));\r\n case 'D':\r\n mt *= 24;\r\n /* falls through */\r\n case 'H':\r\n mt *= 60;\r\n /* falls through */\r\n case 'M':\r\n if (!time) throw new Error(\"Unsupported ISO Duration Field: M\");\r\n else mt *= 60;\r\n /* falls through */\r\n case 'S':\r\n break;\r\n }\r\n sec += mt * parseInt(m[i], 10);\r\n }\r\n return sec;\r\n}\r\nvar good_pd_date = new Date('2017-02-19T19:06:09.000Z');\r\nif (isNaN(good_pd_date.getFullYear())) good_pd_date = new Date('2/19/17');\r\nvar good_pd = good_pd_date.getFullYear() == 2017;\r\n/* parses a date as a local date */\r\nfunction parseDate(str, fixdate) {\r\n var d = new Date(str);\r\n if (good_pd) {\r\n if (fixdate > 0) d.setTime(d.getTime() + d.getTimezoneOffset() * 60 * 1000);\r\n else if (fixdate < 0) d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000);\r\n return d;\r\n }\r\n if (str instanceof Date) return str;\r\n if (good_pd_date.getFullYear() == 1917 && !isNaN(d.getFullYear())) {\r\n var s = d.getFullYear();\r\n if (str.indexOf(\"\" + s) > -1) return d;\r\n d.setFullYear(d.getFullYear() + 100);\r\n return d;\r\n }\r\n var n = str.match(/\\d+/g) || [\"2017\", \"2\", \"19\", \"0\", \"0\", \"0\"];\r\n var out = new Date(+n[0], +n[1] - 1, +n[2], (+n[3] || 0), (+n[4] || 0), (+n[5] || 0));\r\n if (str.indexOf(\"Z\") > -1) out = new Date(out.getTime() - out.getTimezoneOffset() * 60 * 1000);\r\n return out;\r\n}\r\n\r\n/* TODO: stress test */\r\nfunction fuzzynum(s) {\r\n var v = Number(s);\r\n if(typeof s == \"number\"){\r\n return s;\r\n }\r\n if (!isNaN(v)) return v;\r\n var wt = 1;\r\n var ss = s.replace(/([\\d]),([\\d])/g, \"$1$2\").replace(/[$]/g, \"\").replace(/[%]/g, function() {\r\n wt *= 100;\r\n return \"\";\r\n });\r\n if (!isNaN(v = Number(ss))) return v / wt;\r\n ss = ss.replace(/[(](.*)[)]/, function($$, $1) {\r\n wt = -wt;\r\n return $1;\r\n });\r\n if (!isNaN(v = Number(ss))) return v / wt;\r\n return v;\r\n}\r\n\r\nfunction fuzzydate(s) {\r\n var o = new Date(s),\r\n n = new Date(NaN);\r\n var y = o.getYear(),\r\n m = o.getMonth(),\r\n d = o.getDate();\r\n if (isNaN(d)) return n;\r\n if (y < 0 || y > 8099) return n;\r\n if ((m > 0 || d > 1) && y != 101) return o;\r\n if (s.toLowerCase().match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)) return o;\r\n if (s.match(/[^-0-9:,\\/\\\\]/)) return n;\r\n return o;\r\n}\r\n\r\nexport function genarate(value) {//\u4E07 \u5355\u4F4D\u683C\u5F0F\u589E\u52A0\uFF01\uFF01\uFF01\r\n var ret = [];\r\n var m = null, ct = {}, v = value;\r\n \r\n if(value == null){\r\n return null;\r\n }\r\n\r\n if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) { // \u8868\u8FF0\u91D1\u989D\u7684\u5B57\u7B26\u4E32\uFF0C\u5982\uFF1A12,000.00 \u6216\u8005 -12,000.00\r\n m = value\r\n v = Number(value.split('.')[0].replace(',', ''))\r\n let fa = \"#,##0\"\r\n if (value.split('.')[1]) {\r\n fa = \"#,##0.\"\r\n for (let i = 0; i < value.split('.')[1].length; i++) {\r\n fa += 0\r\n }\r\n }\r\n ct= {fa, t: \"n\"}\r\n } else if(value.toString().substr(0, 1) === \"'\"){\r\n m = value.toString().substr(1);\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n else if(value.toString().toUpperCase() === \"TRUE\"){\r\n m = \"TRUE\";\r\n ct = { \"fa\": \"General\", \"t\": \"b\" };\r\n v = true;\r\n }\r\n else if(value.toString().toUpperCase() === \"FALSE\"){\r\n m = \"FALSE\";\r\n ct = { \"fa\": \"General\", \"t\": \"b\" };\r\n v = false;\r\n }\r\n else if(valueIsError(value)){\r\n m = value.toString();\r\n ct = { \"fa\": \"General\", \"t\": \"e\" };\r\n }\r\n else if(/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(value)){\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n else if(isRealNum(value) && Math.abs(parseFloat(value)) > 0 && (Math.abs(parseFloat(value)) >= 1e+11 || Math.abs(parseFloat(value)) < 1e-9)){\r\n if (value.length > 16) {\r\n v = value;\r\n ct = { 'fa': '@', 't': 's' }\r\n m = SSF.format(ct.fa, v);\r\n }\r\n else {\r\n v = numeral(value).value();\r\n var str = v.toExponential();\r\n if(str.indexOf(\".\") > -1){\r\n var strlen = str.split(\".\")[1].split(\"e\")[0].length;\r\n if(strlen > 5){\r\n strlen = 5;\r\n }\r\n ct = { \"fa\": \"#0.\"+ new Array(strlen + 1).join(\"0\") +\"E+00\", \"t\": \"n\" }; \r\n }\r\n else{\r\n ct = { \"fa\": \"#0.E+00\", \"t\": \"n\" };\r\n }\r\n m = SSF.format(ct.fa, v);\r\n }\r\n }\r\n else if(value.toString().indexOf(\"%\") > -1){\r\n var index = value.toString().indexOf(\"%\");\r\n var value2 = value.toString().substr(0, index);\r\n var value3 = value2.replace(/,/g, \"\");\r\n\r\n if(index == value.toString().length - 1 && isRealNum(value3)){\r\n if(value2.indexOf(\".\") > -1){\r\n if(value2.indexOf(\".\") == value2.lastIndexOf(\".\")){\r\n var value4 = value2.split(\".\")[0];\r\n var value5 = value2.split(\".\")[1];\r\n\r\n var len = value5.length;\r\n if(len > 9){\r\n len = 9;\r\n }\r\n\r\n if(value4.indexOf(\",\") > -1){\r\n var isThousands = true;\r\n var ThousandsArr = value4.split(\",\");\r\n\r\n for(var i = 1; i < ThousandsArr.length; i++){\r\n if(ThousandsArr[i].length < 3){\r\n isThousands = false;\r\n break;\r\n }\r\n }\r\n\r\n if(isThousands){\r\n ct = { \"fa\": \"#,##0.\" + new Array(len + 1).join(\"0\") + \"%\", \"t\": \"n\" };\r\n v = numeral(value).value();\r\n m = SSF.format(ct.fa, v);\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n else{\r\n ct = { \"fa\": \"0.\" + new Array(len + 1).join(\"0\") + \"%\", \"t\": \"n\" };\r\n v = numeral(value).value();\r\n m = SSF.format(ct.fa, v);\r\n }\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n else if(value2.indexOf(\",\") > -1){\r\n var isThousands = true;\r\n var ThousandsArr = value2.split(\",\");\r\n\r\n for(var i = 1; i < ThousandsArr.length; i++){\r\n if(ThousandsArr[i].length < 3){\r\n isThousands = false;\r\n break;\r\n }\r\n }\r\n\r\n if(isThousands){\r\n ct = { \"fa\": \"#,##0%\", \"t\": \"n\" };\r\n v = numeral(value).value();\r\n m = SSF.format(ct.fa, v);\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n else{\r\n ct = { \"fa\": \"0%\", \"t\": \"n\" };\r\n v = numeral(value).value();\r\n m = SSF.format(ct.fa, v);\r\n }\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n else if(value.toString().indexOf(\".\") > -1){\r\n if(value.toString().indexOf(\".\") == value.toString().lastIndexOf(\".\")){\r\n var value1 = value.toString().split(\".\")[0];\r\n var value2 = value.toString().split(\".\")[1];\r\n\r\n var len = value2.length;\r\n if(len > 9){\r\n len = 9;\r\n }\r\n\r\n if(value1.indexOf(\",\") > -1){\r\n var isThousands = true;\r\n var ThousandsArr = value1.split(\",\");\r\n\r\n for(var i = 1; i < ThousandsArr.length; i++){\r\n if(!isRealNum(ThousandsArr[i]) || ThousandsArr[i].length < 3){\r\n isThousands = false;\r\n break;\r\n }\r\n }\r\n\r\n if(isThousands){\r\n ct = { \"fa\": \"#,##0.\" + new Array(len + 1).join(\"0\"), \"t\": \"n\" };\r\n v = numeral(value).value();\r\n m = SSF.format(ct.fa, v);\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n else{\r\n if(isRealNum(value1) && isRealNum(value2)){\r\n ct = { \"fa\": \"0.\" + new Array(len + 1).join(\"0\"), \"t\": \"n\" };\r\n v = numeral(value).value();\r\n m = SSF.format(ct.fa, v);\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n }\r\n else{\r\n m = value.toString();\r\n ct = { \"fa\": \"@\", \"t\": \"s\" };\r\n }\r\n }\r\n else if(isRealNum(value)){\r\n m = value.toString();\r\n ct = { \"fa\": \"General\", \"t\": \"n\" };\r\n v = parseFloat(value);\r\n }\r\n else if (isdatetime(value) && (value.toString().indexOf(\".\") > -1 || value.toString().indexOf(\":\") > -1 || value.toString().length < 16)){\r\n v = datenum_local(parseDate(value.toString().replace(/-/g, \"/\")));\r\n\r\n if(v.toString().indexOf(\".\") > -1){\r\n if(value.toString().length > 18){\r\n ct.fa = \"yyyy-MM-dd hh:mm:ss\";\r\n }\r\n else if(value.toString().length > 11){\r\n ct.fa = \"yyyy-MM-dd hh:mm\";\r\n }\r\n else{\r\n ct.fa = \"yyyy-MM-dd\";\r\n }\r\n }\r\n else{\r\n ct.fa = \"yyyy-MM-dd\";\r\n }\r\n \r\n ct.t = \"d\";\r\n m = SSF.format(ct.fa, v);\r\n }\r\n else{\r\n m = value;\r\n ct.fa = \"General\";\r\n ct.t = \"g\";\r\n }\r\n\r\n return [m, ct, v];\r\n}\r\n\r\nexport function update(fmt, v) {\r\n return SSF.format(fmt, v);\r\n}\r\n\r\nexport function is_date(fmt, v) {\r\n return SSF.is_date(fmt, v);\r\n}\r\n\r\nexport function valueShowEs(r, c, d) {\r\n var value = getcellvalue(r, c, d, \"m\");\r\n if(value == null){\r\n value = getcellvalue(r, c, d, \"v\");\r\n }\r\n else{\r\n if (!isNaN(fuzzynum(value))){\r\n if(typeof(value) == \"string\" && value.indexOf(\"%\") > -1){\r\n \r\n }\r\n else{\r\n value = getcellvalue(r, c, d, \"v\");\r\n }\r\n }\r\n // else if (!isNaN(parseDate(value).getDate())){\r\n else if (d[r][c].ct != null && d[r][c].ct.t == \"d\"){\r\n\r\n }\r\n else if (d[r][c].ct != null && d[r][c].ct.t == \"b\"){\r\n\r\n }\r\n else{\r\n value = getcellvalue(r, c, d, \"v\");\r\n }\r\n }\r\n return value;\r\n}\r\n", "import { getObjType } from \"../utils/util\";\r\nimport { isRealNull, isRealNum, valueIsError } from \"./validate\";\r\nimport { genarate, update } from \"./format\";\r\nimport server from \"../controllers/server\";\r\nimport luckysheetConfigsetting from \"../controllers/luckysheetConfigsetting\";\r\nimport Store from \"../store/index\";\r\n\r\n//Set cell value\r\nfunction setcellvalue(r, c, d, v) {\r\n if (d == null) {\r\n d = Store.flowdata;\r\n }\r\n // \u82E5\u91C7\u7528\u6DF1\u62F7\u8D1D\uFF0C\u521D\u59CB\u5316\u65F6\u7684\u5355\u5143\u683C\u5C5E\u6027\u4E22\u5931\r\n // let cell = $.extend(true, {}, d[r][c]);\r\n let cell = d[r][c];\r\n\r\n let vupdate;\r\n\r\n if (getObjType(v) == \"object\") {\r\n if (cell == null) {\r\n cell = v;\r\n } else {\r\n if (v.f != null) {\r\n cell.f = v.f;\r\n } else if (cell.hasOwnProperty(\"f\")) {\r\n delete cell.f;\r\n }\r\n\r\n if (v.spl != null) {\r\n cell.spl = v.spl;\r\n }\r\n\r\n if (v.ct != null) {\r\n cell.ct = v.ct;\r\n }\r\n }\r\n\r\n if (getObjType(v.v) == \"object\") {\r\n vupdate = v.v.v;\r\n } else {\r\n vupdate = v.v;\r\n }\r\n } else {\r\n vupdate = v;\r\n }\r\n\r\n // fix #81\uFF0C vupdate = ''\r\n if (vupdate == null) {\r\n if (getObjType(cell) == \"object\") {\r\n delete cell.m;\r\n delete cell.v;\r\n } else {\r\n cell = null;\r\n }\r\n\r\n d[r][c] = cell;\r\n\r\n return cell;\r\n }\r\n\r\n // 1.\u4E3Anull\r\n // 2.\u6570\u636E\u900F\u89C6\u8868\u7684\u6570\u636E\uFF0Cflowdata\u7684\u6BCF\u4E2A\u6570\u636E\u53EF\u80FD\u4E3A\u5B57\u7B26\u4E32\uFF0C\u7ED3\u679C\u5C31\u662Fcell == v == \u4E00\u4E2A\u5B57\u7B26\u4E32\u6216\u8005\u6570\u5B57\u6570\u636E\r\n if (isRealNull(cell) || ((getObjType(cell) === \"string\" || getObjType(cell) === \"number\") && cell === v)) {\r\n cell = {};\r\n }\r\n\r\n let vupdateStr = vupdate.toString();\r\n\r\n if (vupdateStr.substr(0, 1) == \"'\") {\r\n cell.m = vupdateStr.substr(1);\r\n cell.ct = { fa: \"@\", t: \"s\" };\r\n cell.v = vupdateStr.substr(1);\r\n cell.qp = 1;\r\n } else if (cell.qp == 1) {\r\n cell.m = vupdateStr;\r\n cell.ct = { fa: \"@\", t: \"s\" };\r\n cell.v = vupdateStr;\r\n } else if (vupdateStr.toUpperCase() === \"TRUE\") {\r\n cell.m = \"TRUE\";\r\n cell.ct = { fa: \"General\", t: \"b\" };\r\n cell.v = true;\r\n } else if (vupdateStr.toUpperCase() === \"FALSE\") {\r\n cell.m = \"FALSE\";\r\n cell.ct = { fa: \"General\", t: \"b\" };\r\n cell.v = false;\r\n } else if (vupdateStr.substr(-1) === \"%\" && isRealNum(vupdateStr.substring(0, vupdateStr.length - 1))) {\r\n cell.ct = { fa: \"0%\", t: \"n\" };\r\n cell.v = vupdateStr.substring(0, vupdateStr.length - 1) / 100;\r\n cell.m = vupdate;\r\n } else if (valueIsError(vupdate)) {\r\n cell.m = vupdateStr;\r\n // cell.ct = { \"fa\": \"General\", \"t\": \"e\" };\r\n if (cell.ct != null) {\r\n cell.ct.t = \"e\";\r\n } else {\r\n cell.ct = { fa: \"General\", t: \"e\" };\r\n }\r\n cell.v = vupdate;\r\n } else {\r\n if (\r\n cell.f != null &&\r\n isRealNum(vupdate) &&\r\n !/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(vupdate)\r\n ) {\r\n cell.v = parseFloat(vupdate);\r\n if (cell.ct == null) {\r\n cell.ct = { fa: \"General\", t: \"n\" };\r\n }\r\n\r\n if (cell.v == Infinity || cell.v == -Infinity) {\r\n cell.m = cell.v.toString();\r\n } else {\r\n if (cell.v.toString().indexOf(\"e\") > -1) {\r\n let len;\r\n if (cell.v.toString().split(\".\").length == 1) {\r\n len = 0;\r\n } else {\r\n len = cell.v\r\n .toString()\r\n .split(\".\")[1]\r\n .split(\"e\")[0].length;\r\n }\r\n if (len > 5) {\r\n len = 5;\r\n }\r\n\r\n cell.m = cell.v.toExponential(len).toString();\r\n } else {\r\n let v_p = Math.round(cell.v * 1000000000) / 1000000000;\r\n if (cell.ct == null) {\r\n let mask = genarate(v_p);\r\n cell.m = mask[0].toString();\r\n } else {\r\n let mask = update(cell.ct.fa, v_p);\r\n cell.m = mask.toString();\r\n }\r\n\r\n // cell.m = mask[0].toString();\r\n }\r\n }\r\n } else if (cell.ct != null && cell.ct.fa == \"@\") {\r\n cell.m = vupdateStr;\r\n cell.v = vupdate;\r\n } else if (cell.ct != null && cell.ct.fa != null && cell.ct.fa != \"General\") {\r\n if (isRealNum(vupdate)) {\r\n vupdate = parseFloat(vupdate);\r\n }\r\n\r\n let mask = update(cell.ct.fa, vupdate);\r\n\r\n if (mask === vupdate) {\r\n //\u82E5\u539F\u6765\u5355\u5143\u683C\u683C\u5F0F \u5E94\u7528\u4E0D\u4E86 \u8981\u66F4\u65B0\u7684\u503C\uFF0C\u5219\u83B7\u53D6\u66F4\u65B0\u503C\u7684 \u683C\u5F0F\r\n mask = genarate(vupdate);\r\n\r\n cell.m = mask[0].toString();\r\n cell.ct = mask[1];\r\n cell.v = mask[2];\r\n } else {\r\n cell.m = mask.toString();\r\n cell.v = vupdate;\r\n }\r\n } else {\r\n if (\r\n isRealNum(vupdate) &&\r\n !/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(vupdate)\r\n ) {\r\n if (typeof vupdate === \"string\") {\r\n let flag = vupdate.split(\"\").every((ele) => ele == \"0\" || ele == \".\");\r\n\r\n // 1.1111111111111111 as an example, numbers within 18 characters need to be converted to numbers\r\n if (flag || vupdate.length < 18) {\r\n vupdate = parseFloat(vupdate);\r\n }\r\n }\r\n cell.v = vupdate; /* \u5907\u6CE8\uFF1A\u5982\u679C\u4F7F\u7528parseFloat\uFF0C1.1111111111111111\u4F1A\u8F6C\u6362\u4E3A1.1111111111111112 ? */\r\n cell.ct = { fa: \"General\", t: \"n\" };\r\n if (cell.v == Infinity || cell.v == -Infinity) {\r\n cell.m = cell.v.toString();\r\n } else {\r\n let mask = genarate(cell.v);\r\n\r\n cell.m = mask[0].toString();\r\n }\r\n } else {\r\n let mask = genarate(vupdate);\r\n\r\n cell.m = mask[0].toString();\r\n cell.ct = mask[1];\r\n cell.v = mask[2];\r\n }\r\n }\r\n }\r\n\r\n if (!server.allowUpdate && !luckysheetConfigsetting.pointEdit) {\r\n if (\r\n cell.ct != null &&\r\n /^(w|W)((0?)|(0\\.0+))$/.test(cell.ct.fa) == false &&\r\n cell.ct.t == \"n\" &&\r\n cell.v != null &&\r\n parseInt(cell.v).toString().length > 4\r\n ) {\r\n let autoFormatw = luckysheetConfigsetting.autoFormatw.toString().toUpperCase();\r\n let accuracy = luckysheetConfigsetting.accuracy;\r\n\r\n let sfmt = setAccuracy(autoFormatw, accuracy);\r\n\r\n if (sfmt != \"General\") {\r\n cell.ct.fa = sfmt;\r\n cell.m = update(sfmt, cell.v);\r\n }\r\n }\r\n }\r\n\r\n d[r][c] = cell;\r\n return cell;\r\n}\r\n\r\n//new runze \u6839\u636E\u4EBF\u4E07\u683C\u5F0FautoFormatw\u548C\u7CBE\u786E\u5EA6accuracy \u8F6C\u6362\u6210 w/w0/w0.00 or 0/0.0\u683C\u5F0F\r\nfunction setAccuracy(autoFormatw, accuracy) {\r\n let acc = \"0.\";\r\n let fmt;\r\n\r\n if (autoFormatw == \"TRUE\") {\r\n if (accuracy == undefined) {\r\n return \"w\";\r\n } else {\r\n let alength = parseInt(accuracy);\r\n\r\n if (alength == 0) {\r\n return \"w0\";\r\n } else {\r\n acc = \"w0.\";\r\n\r\n for (let i = 0; i < alength; i++) {\r\n acc += \"0\";\r\n }\r\n\r\n fmt = acc;\r\n }\r\n }\r\n } else {\r\n if (accuracy == undefined) {\r\n return \"General\";\r\n } else {\r\n let alength = parseInt(accuracy);\r\n\r\n if (alength == 0) {\r\n return \"0\";\r\n } else {\r\n for (let i = 0; i < alength; i++) {\r\n acc += \"0\";\r\n }\r\n\r\n fmt = acc;\r\n }\r\n }\r\n }\r\n\r\n return fmt.toString();\r\n}\r\n\r\nexport { setcellvalue, setAccuracy };\r\n", "import Store from '../store';\r\nimport { getdatabyselectionNoCopy } from './getdata';\r\nimport { isRealNull, isRealNum } from './validate';\r\nimport { update } from './format';\r\nimport locale from '../locale/locale';\r\n\r\n//\u8868\u683C\u8BA1\u6570\u680F\r\nexport function countfunc() {\r\n if(Store.luckysheet_select_save.length == 0){\r\n return;\r\n }\r\n\r\n let min = Infinity, //\u6700\u5C0F\u503C\r\n \tmax = -Infinity, //\u6700\u5927\u503C\r\n \tsum = 0, //\u6C42\u548C \r\n \tcount = 0, //\u8BA1\u6570\uFF08\u975E\u7A7A\u5355\u5143\u683C\uFF09\r\n \tmean = 0; //\u5E73\u5747\u503C\r\n\r\n for(let s = 0; s < Store.luckysheet_select_save.length; s++){\r\n let data = getdatabyselectionNoCopy(Store.luckysheet_select_save[s]);\r\n\r\n for (let r = 0; r < data.length; r++) {\r\n for (let c = 0; c < data[0].length; c++) {\r\n if(isRealNull(data[r][c])){\r\n continue;\r\n }\r\n\r\n count++;\r\n\r\n if(data[r][c].ct != null && data[r][c].ct.t == \"d\"){\r\n continue;\r\n }\r\n\r\n let value = data[r][c].v;\r\n\r\n if(!isRealNum(value)){\r\n continue;\r\n }\r\n\r\n value = parseFloat(value);\r\n\r\n sum += value;\r\n\r\n if(value < min){\r\n min = value;\r\n }\r\n\r\n if(value > max){\r\n max = value;\r\n }\r\n }\r\n }\r\n }\r\n\r\n let locale_formula = locale().formula;\r\n\r\n let ret = \"\";\r\n ret += \"\"+locale_formula.count+\":\" + count + \"\";\r\n\r\n //\u5904\u7406\u6210\u4EBF\u4E07\u683C\u5F0F\r\n if (isFinite(max) || isFinite(min)) {\r\n ret += \"\"+locale_formula.sum+\":\" + sum + \"\";\r\n ret += \"\"+locale_formula.average+\":\" + Math.round(sum / count * 10000) / 10000 + \"\";\r\n }\r\n\r\n if (isFinite(max)) {\r\n ret += \"\"+locale_formula.max+\":\" + max + \"\";\r\n }\r\n\r\n if (isFinite(min)) {\r\n ret += \"\"+locale_formula.min+\":\" + min + \"\";\r\n }\r\n\r\n $(\"#luckysheet-sta-content\").html(ret);\r\n}\r\n", "import { getObjType } from '../utils/util';\r\nimport formula from '../global/formula';\r\nimport { isRealNull } from '../global/validate';\r\nimport { countfunc } from '../global/count';\r\nimport menuButton from './menuButton';\r\nimport { selectHightlightShow } from './select';\r\nimport pivotTable from './pivotTable';\r\nimport Store from '../store';\r\nimport server from './server';\r\n\r\nfunction luckysheetMoveEndCell(postion, type, isScroll, terminal, onlyvalue) {\r\n if (isScroll == null) {\r\n isScroll = true;\r\n }\r\n\r\n if (!postion) {\r\n postion = \"down\";\r\n }\r\n\r\n if (!type) {\r\n type = \"cell\";\r\n }\r\n\r\n if (onlyvalue == null) {\r\n onlyvalue = false;\r\n }\r\n\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n\r\n let curR = last[\"row\"] == null ? 0 : last[\"row\"][0];\r\n let curC = last[\"column\"] == null ? 0 : last[\"column\"][0];\r\n\r\n let startR = last[\"row\"] == null ? 0 : last[\"row\"][0];\r\n let startC = last[\"column\"] == null ? 0 : last[\"column\"][0];\r\n\r\n let endR = last[\"row\"] == null ? 0 : last[\"row\"][1];\r\n let endC = last[\"column\"] == null ? 0 : last[\"column\"][1];\r\n\r\n formula.fucntionboxshow(curR, curC);\r\n\r\n if (type == \"range\") {\r\n // need var\r\n var p_startR = Store.luckysheet_shiftpositon[\"row\"][0];\r\n var p_startC = Store.luckysheet_shiftpositon[\"column\"][0];\r\n\r\n let p_endR = Store.luckysheet_shiftpositon[\"row\"][1];\r\n let p_endC = Store.luckysheet_shiftpositon[\"column\"][1];\r\n\r\n if (postion == \"down\" || postion == \"up\") {\r\n if (p_endR < endR) {\r\n curR = last[\"row\"] == null ? 0 : last[\"row\"][1];\r\n }\r\n else if (p_startR > startR) {\r\n curR = last[\"row\"] == null ? 0 : last[\"row\"][0];\r\n }\r\n else if (p_endR == endR && p_startR == startR) {\r\n if (postion == \"down\") {\r\n curR = last[\"row\"] == null ? 0 : last[\"row\"][1];\r\n }\r\n else {\r\n curR = last[\"row\"] == null ? 0 : last[\"row\"][0];\r\n }\r\n }\r\n }\r\n else if (postion == \"right\" || postion == \"left\") {\r\n if (p_endC < endC) {\r\n curC = last[\"column\"] == null ? 0 : last[\"column\"][1];\r\n }\r\n else if (p_startC > startC) {\r\n curC = last[\"column\"] == null ? 0 : last[\"column\"][0];\r\n }\r\n else if (p_endC == endC && p_startC == startC) {\r\n if (postion == \"right\") {\r\n curC = last[\"column\"] == null ? 0 : last[\"column\"][1];\r\n }\r\n else {\r\n curC = last[\"column\"] == null ? 0 : last[\"column\"][0];\r\n }\r\n }\r\n }\r\n }\r\n\r\n let datarowlen = Store.flowdata.length, \r\n datacolumnlen = Store.flowdata[0].length;\r\n\r\n let data = Store.flowdata, moveP = \"\", moveV = 0;\r\n\r\n if (postion == \"up\") {\r\n if (curR == 0) {\r\n return;\r\n }\r\n else {\r\n let stvalue = [], p = null, i = 0, p_pre = null;\r\n for (let c = startC; c <= endC; c++) {\r\n stvalue = [];\r\n i = 0;\r\n\r\n for (let r = curR - 1; r >= 0; r--) {\r\n let cell = data[r][c];\r\n\r\n if (getObjType(cell) == \"object\" && isRealNull(cell.v)) {\r\n stvalue.push(false);\r\n }\r\n else if (isRealNull(cell)) {\r\n stvalue.push(false);\r\n }\r\n else {\r\n stvalue.push(true);\r\n }\r\n\r\n if (stvalue.length > 1) {\r\n if (stvalue[i] == true && stvalue[i - 1] == false) {\r\n p = r;\r\n break\r\n }\r\n else if (stvalue[i] == false && stvalue[i - 1] == true) {\r\n p = r + 1;\r\n break\r\n }\r\n }\r\n\r\n i++;\r\n }\r\n\r\n if(p == null){\r\n p = 0;\r\n }\r\n\r\n if (p_pre == null || p < p_pre) {\r\n p_pre = p;\r\n }\r\n }\r\n \r\n moveP = \"down\";\r\n moveV = p_pre - curR;\r\n }\r\n }\r\n else if (postion == \"down\") {\r\n if (curR == datarowlen - 1) {\r\n return;\r\n }\r\n else {\r\n let stvalue = [], p = null, i = 0, p_pre = null;\r\n for (let c = startC; c <= endC; c++) {\r\n stvalue = [];\r\n i = 0;\r\n\r\n for (let r = curR + 1; r < data.length; r++) {\r\n let cell = data[r][c];\r\n\r\n if (getObjType(cell) == \"object\" && isRealNull(cell.v)) {\r\n stvalue.push(false);\r\n }\r\n else if (isRealNull(cell)) {\r\n stvalue.push(false);\r\n }\r\n else {\r\n stvalue.push(true);\r\n }\r\n \r\n if (stvalue.length > 1) {\r\n if (stvalue[i] == true && stvalue[i - 1] == false) {\r\n p = r;\r\n break\r\n }\r\n else if (stvalue[i] == false && stvalue[i - 1] == true) {\r\n p = r - 1;\r\n break\r\n }\r\n }\r\n\r\n i++;\r\n }\r\n\r\n if(p == null){\r\n p = data.length - 1;\r\n }\r\n\r\n if (p_pre == null || p > p_pre) {\r\n p_pre = p;\r\n }\r\n }\r\n \r\n moveP = \"down\";\r\n moveV = p_pre - curR;\r\n }\r\n }\r\n else if (postion == \"left\") {\r\n if (curC == 0) {\r\n return;\r\n }\r\n else {\r\n let stvalue = [], p = null, i = 0, p_pre = null;\r\n for (let r = startR; r <= endR; r++) {\r\n stvalue = [];\r\n i = 0;\r\n for (let c = curC - 1; c >= 0; c--) {\r\n let cell = data[r][c];\r\n\r\n if (getObjType(cell) == \"object\" && isRealNull(cell.v)) {\r\n stvalue.push(false);\r\n }\r\n else if (isRealNull(cell)) {\r\n stvalue.push(false);\r\n }\r\n else {\r\n stvalue.push(true);\r\n }\r\n\r\n if (stvalue.length > 1) {\r\n if (stvalue[i] == true && stvalue[i - 1] == false) {\r\n p = c;\r\n break\r\n }\r\n else if (stvalue[i] == false && stvalue[i - 1] == true) {\r\n p = c + 1;\r\n break\r\n }\r\n }\r\n\r\n i++;\r\n }\r\n\r\n if(p == null){\r\n p = 0;\r\n }\r\n\r\n if (p_pre == null || p < p_pre) {\r\n p_pre = p;\r\n }\r\n }\r\n \r\n moveP = \"right\";\r\n moveV = p_pre - curC;\r\n }\r\n }\r\n else if (postion == \"right\") {\r\n if (curC == datacolumnlen - 1) {\r\n return;\r\n }\r\n else {\r\n let stvalue = [], p = null, i = 0, p_pre = null;\r\n for (let r = startR; r <= endR; r++) {\r\n stvalue = [];\r\n i = 0;\r\n\r\n for (let c = curC + 1; c < data[0].length; c++) {\r\n let cell = data[r][c];\r\n\r\n if (getObjType(cell) == \"object\" && isRealNull(cell.v)) {\r\n stvalue.push(false);\r\n }\r\n else if (isRealNull(cell)) {\r\n stvalue.push(false);\r\n }\r\n else {\r\n stvalue.push(true);\r\n }\r\n\r\n if (stvalue.length > 1) {\r\n if (stvalue[i] == true && stvalue[i - 1] == false) {\r\n p = c;\r\n break\r\n }\r\n else if (stvalue[i] == false && stvalue[i - 1] == true) {\r\n p = c - 1;\r\n break\r\n }\r\n }\r\n\r\n i++;\r\n }\r\n\r\n if(p == null){\r\n p = data[0].length - 1;\r\n }\r\n\r\n if (p_pre == null || p > p_pre) {\r\n p_pre = p;\r\n }\r\n }\r\n\r\n moveP = \"right\";\r\n moveV = p_pre - curC;\r\n }\r\n }\r\n\r\n if (type == \"range\") {\r\n if (postion == \"up\") {\r\n if (p_endR < endR) {\r\n if (moveV + curR < p_endR) {\r\n moveV = p_endR - curR;\r\n }\r\n }\r\n }\r\n else if (postion == \"down\") {\r\n if (p_startR > startR) {\r\n if (moveV + curR > p_startR) {\r\n moveV = p_startR - curR;\r\n }\r\n }\r\n }\r\n else if (postion == \"left\") {\r\n if (p_endC < endC) {\r\n if (moveV + curC < p_endC) {\r\n moveV = p_endC - curC;\r\n }\r\n }\r\n }\r\n else if (postion == \"right\") {\r\n if (p_startC > startC) {\r\n if (moveV + curC > p_startC) {\r\n moveV = p_startC - curC;\r\n }\r\n }\r\n }\r\n\r\n if (terminal != null && Math.abs(moveV) > Math.abs(terminal)) {\r\n moveV = terminal;\r\n }\r\n }\r\n\r\n if (!onlyvalue) {\r\n if (type == \"cell\") {\r\n luckysheetMoveHighlightCell(moveP, moveV, \"rangeOfSelect\", isScroll);\r\n }\r\n else if (type == \"range\") {\r\n luckysheetMoveHighlightRange(moveP, moveV, \"rangeOfSelect\", isScroll);\r\n }\r\n }\r\n else {\r\n return moveV;\r\n }\r\n}\r\n\r\n//\u65B9\u5411\u952E \u8C03\u6574\u5355\u5143\u683C\r\nfunction luckysheetMoveHighlightCell(postion, index, type, isScroll) {\r\n if (isScroll == null) {\r\n isScroll = true;\r\n }\r\n\r\n if (!postion) {\r\n postion == \"down\";\r\n }\r\n\r\n let datarowlen = Store.flowdata.length, \r\n datacolumnlen = Store.flowdata[0].length;\r\n\r\n let row, row_pre, row_index, row_index_ed;\r\n let col, col_pre, col_index, col_index_ed;\r\n\r\n if(type == \"rangeOfSelect\"){\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n \r\n let curR;\r\n if(last[\"row_focus\"] == null){\r\n curR = last[\"row\"][0]; \r\n }\r\n else{\r\n curR = last[\"row_focus\"]; \r\n }\r\n\r\n let curC;\r\n if(last[\"column_focus\"] == null){\r\n curC = last[\"column\"][0];\r\n }\r\n else{\r\n curC = last[\"column_focus\"]; \r\n }\r\n \r\n //focus\u5355\u5143\u683C \u662F\u5426\u662F\u5408\u5E76\u5355\u5143\u683C\r\n let margeset = menuButton.mergeborer(Store.flowdata, curR, curC);\r\n if(!!margeset){\r\n let str_r = margeset.row[2];\r\n let end_r = margeset.row[3];\r\n\r\n let str_c = margeset.column[2];\r\n let end_c = margeset.column[3];\r\n\r\n if(index > 0){\r\n if(postion == \"down\"){\r\n curR = end_r;\r\n curC = str_c;\r\n }\r\n else if(postion == \"right\"){\r\n curR = str_r;\r\n curC = end_c;\r\n }\r\n }\r\n else{\r\n curR = str_r;\r\n curC = str_c;\r\n }\r\n }\r\n\r\n let moveX = last[\"moveXY\"] == null ? curR : last[\"moveXY\"].x;\r\n let moveY = last[\"moveXY\"] == null ? curC : last[\"moveXY\"].y;\r\n\r\n if (postion == \"down\") {\r\n curR += index;\r\n moveX = curR;\r\n }\r\n else if (postion == \"right\") {\r\n curC += index;\r\n moveY = curC;\r\n }\r\n\r\n if (curR >= datarowlen) {\r\n curR = datarowlen - 1;\r\n moveX = curR;\r\n }\r\n\r\n if (curR < 0) {\r\n curR = 0;\r\n moveX = curR;\r\n }\r\n\r\n if (curC >= datacolumnlen) {\r\n curC = datacolumnlen - 1;\r\n moveY = curC;\r\n }\r\n\r\n if (curC < 0) {\r\n curC = 0;\r\n moveY = curC;\r\n }\r\n\r\n //\u79FB\u52A8\u7684\u4E0B\u4E00\u4E2A\u5355\u5143\u683C\u662F\u5426\u662F\u5408\u5E76\u7684\u5355\u5143\u683C\r\n let margeset2 = menuButton.mergeborer(Store.flowdata, curR, curC);\r\n if(!!margeset2){\r\n row = margeset2.row[1];\r\n row_pre = margeset2.row[0];\r\n row_index = margeset2.row[2];\r\n row_index_ed = margeset2.row[3];\r\n\r\n col = margeset2.column[1];\r\n col_pre = margeset2.column[0];\r\n col_index = margeset2.column[2];\r\n col_index_ed = margeset2.column[3];\r\n }\r\n else{\r\n row = Store.visibledatarow[moveX]; \r\n row_pre = moveX - 1 == -1 ? 0 : Store.visibledatarow[moveX - 1];\r\n // row_index = moveX;\r\n // row_index_ed = moveX;\r\n\r\n col = Store.visibledatacolumn[moveY]; \r\n col_pre = moveY - 1 == -1 ? 0 : Store.visibledatacolumn[moveY - 1];\r\n // col_index = moveY;\r\n // col_index_ed = moveY;\r\n \r\n row_index = row_index_ed = curR;\r\n col_index = col_index_ed = curC;\r\n }\r\n\r\n last[\"row\"] = [row_index, row_index_ed];\r\n last[\"column\"] = [col_index, col_index_ed];\r\n last[\"row_focus\"] = row_index;\r\n last[\"column_focus\"] = col_index;\r\n last[\"moveXY\"] = {\"x\": moveX,\"y\": moveY};\r\n\r\n selectHightlightShow();\r\n pivotTable.pivotclick(row_index, col_index);\r\n formula.fucntionboxshow(row_index, col_index);\r\n }\r\n else if(type == \"rangeOfFormula\"){\r\n let last = formula.func_selectedrange;\r\n \r\n let curR;\r\n if(last[\"row_focus\"] == null){\r\n curR = last[\"row\"][0]; \r\n }\r\n else{\r\n curR = last[\"row_focus\"]; \r\n }\r\n\r\n let curC;\r\n if(last[\"column_focus\"] == null){\r\n curC = last[\"column\"][0];\r\n }\r\n else{\r\n curC = last[\"column_focus\"]; \r\n }\r\n \r\n //focus\u5355\u5143\u683C \u662F\u5426\u662F\u5408\u5E76\u5355\u5143\u683C\r\n let margeset = menuButton.mergeborer(Store.flowdata, curR, curC);\r\n if(!!margeset){\r\n let str_r = margeset.row[2];\r\n let end_r = margeset.row[3];\r\n\r\n let str_c = margeset.column[2];\r\n let end_c = margeset.column[3];\r\n\r\n if(index > 0){\r\n if(postion == \"down\"){\r\n curR = end_r;\r\n curC = str_c;\r\n }\r\n else if(postion == \"right\"){\r\n curR = str_r;\r\n curC = end_c;\r\n }\r\n }\r\n else{\r\n curR = str_r;\r\n curC = str_c;\r\n }\r\n }\r\n\r\n let moveX = last[\"moveXY\"] == null ? curR : last[\"moveXY\"].x;\r\n let moveY = last[\"moveXY\"] == null ? curC : last[\"moveXY\"].y;\r\n\r\n if (postion == \"down\") {\r\n curR += index;\r\n moveX = curR;\r\n }\r\n else if (postion == \"right\") {\r\n curC += index;\r\n moveY = curC;\r\n }\r\n\r\n if (curR >= datarowlen) {\r\n curR = datarowlen - 1;\r\n moveX = curR;\r\n }\r\n\r\n if (curR < 0) {\r\n curR = 0;\r\n moveX = curR;\r\n }\r\n\r\n if (curC >= datacolumnlen) {\r\n curC = datacolumnlen - 1;\r\n moveY = curC;\r\n }\r\n\r\n if (curC < 0) {\r\n curC = 0;\r\n moveY = curC;\r\n }\r\n\r\n //\u79FB\u52A8\u7684\u4E0B\u4E00\u4E2A\u5355\u5143\u683C\u662F\u5426\u662F\u5408\u5E76\u7684\u5355\u5143\u683C\r\n let margeset2 = menuButton.mergeborer(Store.flowdata, curR, curC);\r\n if(!!margeset2){\r\n row = margeset2.row[1];\r\n row_pre = margeset2.row[0];\r\n row_index = margeset2.row[2];\r\n row_index_ed = margeset2.row[3];\r\n\r\n col = margeset2.column[1];\r\n col_pre = margeset2.column[0];\r\n col_index = margeset2.column[2];\r\n col_index_ed = margeset2.column[3];\r\n }\r\n else{\r\n row = Store.visibledatarow[moveX]; \r\n row_pre = moveX - 1 == -1 ? 0 : Store.visibledatarow[moveX - 1];\r\n row_index = moveX;\r\n row_index_ed = moveX;\r\n\r\n col = Store.visibledatacolumn[moveY];\r\n col_pre = moveY - 1 == -1 ? 0 : Store.visibledatacolumn[moveY - 1];\r\n col_index = moveY;\r\n col_index_ed = moveY;\r\n }\r\n\r\n formula.func_selectedrange = {\r\n \"left\": col_pre,\r\n \"width\": col - col_pre - 1,\r\n \"top\": row_pre,\r\n \"height\": row - row_pre - 1,\r\n \"left_move\": col_pre,\r\n \"width_move\": col - col_pre - 1,\r\n \"top_move\": row_pre,\r\n \"height_move\": row - row_pre - 1,\r\n \"row\": [row_index, row_index_ed],\r\n \"column\": [col_index, col_index_ed],\r\n \"row_focus\": row_index,\r\n \"column_focus\": col_index,\r\n \"moveXY\": {\"x\": moveX, \"y\": moveY}\r\n };\r\n\r\n $(\"#luckysheet-formula-functionrange-select\").css({\r\n \"left\": col_pre,\r\n \"width\": col - col_pre - 1,\r\n \"top\": row_pre,\r\n \"height\": row - row_pre - 1\r\n }).show();\r\n\r\n formula.rangeSetValue({\r\n \"row\": [row_index, row_index_ed],\r\n \"column\": [col_index, col_index_ed]\r\n });\r\n }\r\n\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let winH = $(\"#luckysheet-cell-main\").height(), winW = $(\"#luckysheet-cell-main\").width();\r\n\r\n let sleft = 0, stop = 0;\r\n if (col - scrollLeft - winW + 20 > 0) {\r\n sleft = col - winW + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n else if (col_pre - scrollLeft - 20 < 0) {\r\n sleft = col_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n\r\n if (row - scrollTop - winH + 20 > 0) {\r\n stop = row - winH + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n else if (row_pre - scrollTop - 20 < 0) {\r\n stop = row_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n\r\n clearTimeout(Store.countfuncTimeout);\r\n countfunc();\r\n \r\n // \u79FB\u52A8\u5355\u5143\u683C\u901A\u77E5\u540E\u53F0\r\n server.saveParam(\"mv\", Store.currentSheetIndex, Store.luckysheet_select_save);\r\n}\r\n\r\n//ctrl + \u65B9\u5411\u952E \u8C03\u6574\u5355\u5143\u683C\r\nfunction luckysheetMoveHighlightCell2(postion, type, isScroll) {\r\n if(!isScroll){\r\n isScroll = true;\r\n }\r\n\r\n let row, row_pre;\r\n let col, col_pre;\r\n\r\n if(type == \"rangeOfSelect\"){\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rf = last[\"row_focus\"], cf = last[\"column_focus\"];\r\n\r\n let focusIsMerge = false, mc = {};\r\n if(Store.config[\"merge\"] != null && (rf + \"_\" + cf) in Store.config[\"merge\"]){\r\n focusIsMerge = true;\r\n mc = Store.config[\"merge\"][rf + \"_\" + cf];\r\n }\r\n\r\n if(postion == \"down\"){\r\n if(rf == Store.flowdata.length - 1){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n rf = getNextIndex(\"down\", cf, mc.r + mc.rs - 1, Store.flowdata.length - 1);\r\n }\r\n else{\r\n rf = getNextIndex(\"down\", cf, rf, Store.flowdata.length - 1);\r\n }\r\n }\r\n else if(postion == \"up\"){\r\n if(rf == 0){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n rf = getNextIndex(\"up\", cf, 0, mc.r);\r\n }\r\n else{\r\n rf = getNextIndex(\"up\", cf, 0, rf);\r\n }\r\n }\r\n else if(postion == \"right\"){\r\n if(cf == Store.flowdata[0].length - 1){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n cf = getNextIndex(\"right\", rf, mc.c + mc.cs - 1, Store.flowdata[0].length - 1);\r\n }\r\n else{\r\n cf = getNextIndex(\"right\", rf, cf, Store.flowdata[0].length - 1);\r\n }\r\n }\r\n else if(postion == \"left\"){\r\n if(cf == 0){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n cf = getNextIndex(\"left\", rf, 0, mc.c);\r\n }\r\n else{\r\n cf = getNextIndex(\"left\", rf, 0, cf);\r\n }\r\n }\r\n\r\n let rowseleted = [rf, rf];\r\n let columnseleted = [cf, cf];\r\n\r\n row = Store.visibledatarow[rf];\r\n row_pre = rf - 1 == -1 ? 0 : Store.visibledatarow[rf - 1];\r\n col = Store.visibledatacolumn[cf];\r\n col_pre = cf - 1 == -1 ? 0 : Store.visibledatacolumn[cf - 1];\r\n\r\n let changeparam = menuButton.mergeMoveMain(columnseleted, rowseleted, last, row_pre, row - row_pre - 1, col_pre, col - col_pre - 1);\r\n if(changeparam != null){\r\n columnseleted = changeparam[0];\r\n rowseleted= changeparam[1];\r\n // top = changeparam[2];\r\n // height = changeparam[3];\r\n // left = changeparam[4];\r\n // width = changeparam[5];\r\n }\r\n\r\n Store.luckysheet_select_save = [{\"row\": rowseleted, \"column\": columnseleted}];\r\n selectHightlightShow();\r\n pivotTable.pivotclick(rf, cf);\r\n formula.fucntionboxshow(rf, cf);\r\n }\r\n else if(type == \"rangeOfFormula\"){\r\n let last = formula.func_selectedrange;\r\n let rf = last[\"row_focus\"], cf = last[\"column_focus\"];\r\n\r\n let focusIsMerge = false, mc = {};\r\n if(Store.config[\"merge\"] != null && (rf + \"_\" + cf) in Store.config[\"merge\"]){\r\n focusIsMerge = true;\r\n mc = Store.config[\"merge\"][rf + \"_\" + cf];\r\n }\r\n\r\n if(postion == \"down\"){\r\n if(rf == Store.flowdata.length - 1){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n rf = getNextIndex(\"down\", cf, mc.r + mc.rs - 1, Store.flowdata.length - 1);\r\n }\r\n else{\r\n rf = getNextIndex(\"down\", cf, rf, Store.flowdata.length - 1);\r\n }\r\n }\r\n else if(postion == \"up\"){\r\n if(rf == 0){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n rf = getNextIndex(\"up\", cf, 0, mc.r);\r\n }\r\n else{\r\n rf = getNextIndex(\"up\", cf, 0, rf);\r\n }\r\n }\r\n else if(postion == \"right\"){\r\n if(cf == Store.flowdata[0].length - 1){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n cf = getNextIndex(\"right\", rf, mc.c + mc.cs - 1, Store.flowdata[0].length - 1);\r\n }\r\n else{\r\n cf = getNextIndex(\"right\", rf, cf, Store.flowdata[0].length - 1);\r\n }\r\n }\r\n else if(postion == \"left\"){\r\n if(cf == 0){\r\n return;\r\n }\r\n\r\n if(focusIsMerge){\r\n cf = getNextIndex(\"left\", rf, 0, mc.c);\r\n }\r\n else{\r\n cf = getNextIndex(\"left\", rf, 0, cf);\r\n }\r\n }\r\n\r\n let rowseleted = [rf, rf];\r\n let columnseleted = [cf, cf];\r\n\r\n row = Store.visibledatarow[rf];\r\n row_pre = rf - 1 == -1 ? 0 : Store.visibledatarow[rf - 1];\r\n col = Store.visibledatacolumn[cf]; \r\n col_pre = cf - 1 == -1 ? 0 : Store.visibledatacolumn[cf - 1];\r\n\r\n let top = row_pre, height = row - row_pre - 1;\r\n let left = col_pre, width = col - col_pre - 1;\r\n\r\n let changeparam = menuButton.mergeMoveMain(columnseleted, rowseleted, last, top, height, left, width);\r\n if(changeparam != null){\r\n columnseleted = changeparam[0];\r\n rowseleted= changeparam[1];\r\n top = changeparam[2];\r\n height = changeparam[3];\r\n left = changeparam[4];\r\n width = changeparam[5];\r\n }\r\n\r\n formula.func_selectedrange = {\r\n \"left\": left,\r\n \"width\": width,\r\n \"top\": top,\r\n \"height\": height,\r\n \"left_move\": left,\r\n \"width_move\": width,\r\n \"top_move\": top,\r\n \"height_move\": height,\r\n \"row\": rowseleted,\r\n \"column\": columnseleted,\r\n \"row_focus\": rf,\r\n \"column_focus\": cf\r\n };\r\n\r\n $(\"#luckysheet-formula-functionrange-select\").css({\r\n \"left\": left,\r\n \"width\": width,\r\n \"top\": top,\r\n \"height\": height\r\n }).show();\r\n\r\n formula.rangeSetValue({\r\n \"row\": rowseleted,\r\n \"column\": columnseleted\r\n });\r\n }\r\n\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let winH = $(\"#luckysheet-cell-main\").height(), winW = $(\"#luckysheet-cell-main\").width();\r\n\r\n let sleft = 0, stop = 0;\r\n if (col - scrollLeft - winW + 20 > 0) {\r\n sleft = col - winW + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n else if (col_pre - scrollLeft - 20 < 0) {\r\n sleft = col_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n\r\n if (row - scrollTop - winH + 20 > 0) {\r\n stop = row - winH + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n else if (row_pre - scrollTop - 20 < 0) {\r\n stop = row_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n\r\n clearTimeout(Store.countfuncTimeout);\r\n countfunc();\r\n}\r\n\r\n//shift + \u65B9\u5411\u952E \u8C03\u6574\u9009\u533A\r\nfunction luckysheetMoveHighlightRange(postion, index, type, isScroll) {\r\n if (isScroll == null) {\r\n isScroll = true;\r\n }\r\n\r\n if (!postion) {\r\n postion == \"down\";\r\n }\r\n\r\n let row, row_pre;\r\n let col, col_pre;\r\n\r\n if(type == \"rangeOfSelect\"){\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n\r\n let curR = last[\"row\"][0], endR = last[\"row\"][1];\r\n let curC = last[\"column\"][0], endC = last[\"column\"][1];\r\n let rf = last[\"row_focus\"], cf = last[\"column_focus\"];\r\n\r\n let datarowlen = Store.flowdata.length, \r\n datacolumnlen = Store.flowdata[0].length;\r\n\r\n if(postion == \"down\"){ //\u9009\u533A\u4E0A\u4E0B\u53D8\u52A8\r\n if(rowHasMerge(rf, curC, endC)){ //focus\u5355\u5143\u683C\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let rfMerge = getRowMerge(rf, curC, endC);\r\n let rf_str = rfMerge[0], rf_end = rfMerge[1];\r\n\r\n if(rf_str > curR && rf_end == endR){\r\n if(index > 0 && rowHasMerge(curR, curC, endC)){\r\n curR = getRowMerge(curR, curC, endC)[1];\r\n }\r\n\r\n curR += index;\r\n }\r\n else if(rf_end < endR && rf_str == curR){\r\n if(index < 0 && rowHasMerge(endR, curC, endC)){\r\n endR = getRowMerge(endR, curC, endC)[0];\r\n }\r\n\r\n endR += index;\r\n }\r\n else{\r\n if(index > 0){\r\n endR += index;\r\n }\r\n else{\r\n curR += index;\r\n }\r\n }\r\n }\r\n else{\r\n if(rf > curR && rf == endR){\r\n if(index > 0 && rowHasMerge(curR, curC, endC)){\r\n curR = getRowMerge(curR, curC, endC)[1];\r\n }\r\n\r\n curR += index;\r\n }\r\n else if(rf < endR && rf == curR){\r\n if(index < 0 && rowHasMerge(endR, curC, endC)){\r\n endR = getRowMerge(endR, curC, endC)[0];\r\n }\r\n\r\n endR += index;\r\n }\r\n else if(rf == curR && rf == endR){\r\n if(index > 0){\r\n endR += index;\r\n }\r\n else{\r\n curR += index;\r\n }\r\n }\r\n }\r\n\r\n if (endR >= datarowlen) {\r\n endR = datarowlen - 1;\r\n }\r\n\r\n if (endR < 0) {\r\n endR = 0;\r\n }\r\n\r\n if (curR >= datarowlen) {\r\n curR = datarowlen - 1;\r\n }\r\n\r\n if (curR < 0) {\r\n curR = 0;\r\n }\r\n }\r\n else{\r\n if(colHasMerge(cf, curR, endR)){ //focus\u5355\u5143\u683C\u6240\u5728\u5217\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let cfMerge = getColMerge(cf, curR, endR);\r\n let cf_str = cfMerge[0], cf_end = cfMerge[1];\r\n\r\n if(cf_str > curC && cf_end == endC){\r\n if(index > 0 && colHasMerge(curC, curR, endR)){\r\n curC = getColMerge(curC, curR, endR)[1];\r\n }\r\n\r\n curC += index;\r\n }\r\n else if(cf_end < endC && cf_str == curC){\r\n if(index < 0 && colHasMerge(endC, curR, endR)){\r\n endC = getColMerge(endC, curR, endR)[0];\r\n }\r\n\r\n endC += index;\r\n }\r\n else{\r\n if(index > 0){\r\n endC += index;\r\n }\r\n else{\r\n curC += index;\r\n }\r\n }\r\n }\r\n else{\r\n if(cf > curC && cf == endC){\r\n if(index > 0 && colHasMerge(curC, curR, endR)){\r\n curC = getColMerge(curC, curR, endR)[1];\r\n }\r\n\r\n curC += index;\r\n }\r\n else if(cf < endC && cf == curC){\r\n if(index < 0 && colHasMerge(endC, curR, endR)){\r\n endC = getColMerge(endC, curR, endR)[0];\r\n }\r\n\r\n endC += index;\r\n }\r\n else if(cf == curC && cf == endC){\r\n if(index > 0){\r\n endC += index;\r\n }\r\n else{\r\n curC += index;\r\n }\r\n }\r\n } \r\n\r\n if (endC >= datacolumnlen) {\r\n endC = datacolumnlen - 1;\r\n }\r\n\r\n if (endC < 0) {\r\n endC = 0;\r\n }\r\n\r\n if (curC >= datacolumnlen) {\r\n curC = datacolumnlen - 1;\r\n }\r\n\r\n if (curC < 0) {\r\n curC = 0;\r\n }\r\n }\r\n\r\n let rowseleted = [curR, endR];\r\n let columnseleted = [curC, endC];\r\n\r\n row = Store.visibledatarow[endR]; \r\n row_pre = curR - 1 == -1 ? 0 : Store.visibledatarow[curR - 1];\r\n col = Store.visibledatacolumn[endC]; \r\n col_pre = curC - 1 == -1 ? 0 : Store.visibledatacolumn[curC - 1];\r\n\r\n let changeparam = menuButton.mergeMoveMain(columnseleted, rowseleted, last, row_pre, row - row_pre - 1, col_pre, col - col_pre - 1);\r\n if(changeparam != null){\r\n columnseleted = changeparam[0];\r\n rowseleted= changeparam[1];\r\n // top = changeparam[2];\r\n // height = changeparam[3];\r\n // left = changeparam[4];\r\n // width = changeparam[5];\r\n }\r\n\r\n last[\"row\"] = rowseleted;\r\n last[\"column\"] = columnseleted;\r\n\r\n selectHightlightShow();\r\n }\r\n else if(type == \"rangeOfFormula\"){\r\n let last = formula.func_selectedrange;\r\n\r\n let curR = last[\"row\"][0], endR = last[\"row\"][1];\r\n let curC = last[\"column\"][0], endC = last[\"column\"][1];\r\n let rf = last[\"row_focus\"], cf = last[\"column_focus\"];\r\n\r\n let datarowlen = Store.flowdata.length, \r\n datacolumnlen = Store.flowdata[0].length;\r\n\r\n if(postion == \"down\"){ //\u9009\u533A\u4E0A\u4E0B\u53D8\u52A8\r\n if(rowHasMerge(rf, curC, endC)){ //focus\u5355\u5143\u683C\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let rfMerge = getRowMerge(rf, curC, endC);\r\n let rf_str = rfMerge[0], rf_end = rfMerge[1];\r\n\r\n if(rf_str > curR && rf_end == endR){\r\n if(index > 0 && rowHasMerge(curR, curC, endC)){\r\n curR = getRowMerge(curR, curC, endC)[1];\r\n }\r\n\r\n curR += index;\r\n }\r\n else if(rf_end < endR && rf_str == curR){\r\n if(index < 0 && rowHasMerge(endR, curC, endC)){\r\n endR = getRowMerge(endR, curC, endC)[0];\r\n }\r\n\r\n endR += index;\r\n }\r\n else{\r\n if(index > 0){\r\n endR += index;\r\n }\r\n else{\r\n curR += index;\r\n }\r\n }\r\n }\r\n else{\r\n if(rf > curR && rf == endR){\r\n if(index > 0 && rowHasMerge(curR, curC, endC)){\r\n curR = getRowMerge(curR, curC, endC)[1];\r\n }\r\n\r\n curR += index;\r\n }\r\n else if(rf < endR && rf == curR){\r\n if(index < 0 && rowHasMerge(endR, curC, endC)){\r\n endR = getRowMerge(endR, curC, endC)[0];\r\n }\r\n\r\n endR += index;\r\n }\r\n else if(rf == curR && rf == endR){\r\n if(index > 0){\r\n endR += index;\r\n }\r\n else{\r\n curR += index;\r\n }\r\n }\r\n }\r\n\r\n if (endR >= datarowlen) {\r\n endR = datarowlen - 1;\r\n }\r\n\r\n if (endR < 0) {\r\n endR = 0;\r\n }\r\n\r\n if (curR >= datarowlen) {\r\n curR = datarowlen - 1;\r\n }\r\n\r\n if (curR < 0) {\r\n curR = 0;\r\n }\r\n }\r\n else{\r\n if(colHasMerge(cf, curR, endR)){ //focus\u5355\u5143\u683C\u6240\u5728\u5217\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let cfMerge = getColMerge(cf, curR, endR);\r\n let cf_str = cfMerge[0], cf_end = cfMerge[1];\r\n\r\n if(cf_str > curC && cf_end == endC){\r\n if(index > 0 && colHasMerge(curC, curR, endR)){\r\n curC = getColMerge(curC, curR, endR)[1];\r\n }\r\n\r\n curC += index;\r\n }\r\n else if(cf_end < endC && cf_str == curC){\r\n if(index < 0 && colHasMerge(endC, curR, endR)){\r\n endC = getColMerge(endC, curR, endR)[0];\r\n }\r\n\r\n endC += index;\r\n }\r\n else{\r\n if(index > 0){\r\n endC += index;\r\n }\r\n else{\r\n curC += index;\r\n }\r\n }\r\n }\r\n else{\r\n if(cf > curC && cf == endC){\r\n if(index > 0 && colHasMerge(curC, curR, endR)){\r\n curC = getColMerge(curC, curR, endR)[1];\r\n }\r\n\r\n curC += index;\r\n }\r\n else if(cf < endC && cf == curC){\r\n if(index < 0 && colHasMerge(endC, curR, endR)){\r\n endC = getColMerge(endC, curR, endR)[0];\r\n }\r\n\r\n endC += index;\r\n }\r\n else if(cf == curC && cf == endC){\r\n if(index > 0){\r\n endC += index;\r\n }\r\n else{\r\n curC += index;\r\n }\r\n }\r\n } \r\n\r\n if (endC >= datacolumnlen) {\r\n endC = datacolumnlen - 1;\r\n }\r\n\r\n if (endC < 0) {\r\n endC = 0;\r\n }\r\n\r\n if (curC >= datacolumnlen) {\r\n curC = datacolumnlen - 1;\r\n }\r\n\r\n if (curC < 0) {\r\n curC = 0;\r\n }\r\n }\r\n\r\n let rowseleted = [curR, endR];\r\n let columnseleted = [curC, endC];\r\n\r\n row = Store.visibledatarow[endR]; \r\n row_pre = curR - 1 == -1 ? 0 : Store.visibledatarow[curR - 1];\r\n col = Store.visibledatacolumn[endC]; \r\n col_pre = curC - 1 == -1 ? 0 : Store.visibledatacolumn[curC - 1];\r\n\r\n let top = row_pre, height = row - row_pre - 1;\r\n let left = col_pre, width = col - col_pre - 1;\r\n\r\n let changeparam = menuButton.mergeMoveMain(columnseleted, rowseleted, last, top, height, left, width);\r\n if(changeparam != null){\r\n columnseleted = changeparam[0];\r\n rowseleted= changeparam[1];\r\n top = changeparam[2];\r\n height = changeparam[3];\r\n left = changeparam[4];\r\n width = changeparam[5];\r\n }\r\n\r\n formula.func_selectedrange = {\r\n \"left\": left,\r\n \"width\": width,\r\n \"top\": top,\r\n \"height\": height,\r\n \"left_move\": left,\r\n \"width_move\": width,\r\n \"top_move\": top,\r\n \"height_move\": height,\r\n \"row\": rowseleted,\r\n \"column\": columnseleted,\r\n \"row_focus\": rf,\r\n \"column_focus\": cf\r\n };\r\n\r\n $(\"#luckysheet-formula-functionrange-select\").css({\r\n \"left\": left,\r\n \"width\": width,\r\n \"top\": top,\r\n \"height\": height\r\n }).show();\r\n\r\n formula.rangeSetValue({\r\n \"row\": rowseleted,\r\n \"column\": columnseleted\r\n });\r\n }\r\n\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let winH = $(\"#luckysheet-cell-main\").height(), winW = $(\"#luckysheet-cell-main\").width();\r\n\r\n let sleft = 0, stop = 0;\r\n if (col - scrollLeft - winW + 20 > 0) {\r\n sleft = col - winW + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n else if (col_pre - scrollLeft - 20 < 0) {\r\n sleft = col_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n\r\n if (row - scrollTop - winH + 20 > 0) {\r\n stop = row - winH + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n else if (row_pre - scrollTop - 20 < 0) {\r\n stop = row_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n\r\n clearTimeout(Store.countfuncTimeout);\r\n countfunc();\r\n}\r\n\r\n//ctrl + shift + \u65B9\u5411\u952E \u8C03\u6574\u9009\u533A\r\nfunction luckysheetMoveHighlightRange2(postion, type, isScroll) {\r\n if(!isScroll){\r\n isScroll = true;\r\n }\r\n\r\n let row, row_pre;\r\n let col, col_pre;\r\n\r\n if(type == \"rangeOfSelect\"){\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rf = last[\"row_focus\"], cf = last[\"column_focus\"];\r\n\r\n let r1 = last[\"row\"][0], r2 = last[\"row\"][1];\r\n let c1 = last[\"column\"][0], c2 = last[\"column\"][1];\r\n\r\n if(postion == \"down\"){\r\n if(r2 == Store.flowdata.length - 1){\r\n return;\r\n }\r\n\r\n if(rowHasMerge(rf, c1, c2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let rfMerge = getRowMerge(rf, c1, c2);\r\n let rf_str = rfMerge[0], rf_end = rfMerge[1];\r\n\r\n if(rf_str > r1 && rf_end == r2){\r\n r1 = getNextIndex(\"down\", cf, r1, r2);\r\n }\r\n else{\r\n r2 = getNextIndex(\"down\", cf, r2, Store.flowdata.length - 1);\r\n }\r\n }\r\n else{\r\n if(rf > r1 && rf == r2){\r\n r1 = getNextIndex(\"down\", cf, r1, r2);\r\n }\r\n else{\r\n r2 = getNextIndex(\"down\", cf, r2, Store.flowdata.length - 1);\r\n }\r\n }\r\n }\r\n else if(postion == \"up\"){\r\n if(r1 == 0){\r\n return;\r\n }\r\n\r\n if(rowHasMerge(rf, c1, c2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let rfMerge = getRowMerge(rf, c1, c2);\r\n let rf_str = rfMerge[0], rf_end = rfMerge[1];\r\n\r\n if(rf_end < r2 && rf_str == r1){\r\n r2 = getNextIndex(\"up\", cf, r1, r2);\r\n }\r\n else{\r\n r1 = getNextIndex(\"up\", cf, 0, r1);\r\n }\r\n }\r\n else{\r\n if(rf < r2 && rf == r1){\r\n r2 = getNextIndex(\"up\", cf, r1, r2);\r\n }\r\n else{\r\n r1 = getNextIndex(\"up\", cf, 0, r1);\r\n }\r\n }\r\n }\r\n else if(postion == \"right\"){\r\n if(c2 == Store.flowdata[0].length - 1){\r\n return;\r\n }\r\n\r\n if(colHasMerge(cf, r1, r2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let cfMerge = getColMerge(cf, r1, r2);\r\n let cf_str = cfMerge[0], cf_end = cfMerge[1];\r\n\r\n if(cf_str > c1 && cf_end == c2){\r\n c1 = getNextIndex(\"right\", rf, c1, c2);\r\n }\r\n else{\r\n c2 = getNextIndex(\"right\", rf, c2, Store.flowdata[0].length - 1);\r\n }\r\n }\r\n else{\r\n if(cf > c1 && cf == c2){\r\n c1 = getNextIndex(\"right\", rf, c1, c2);\r\n }\r\n else{\r\n c2 = getNextIndex(\"right\", rf, c2, Store.flowdata[0].length - 1);\r\n }\r\n }\r\n }\r\n else if(postion == \"left\"){\r\n if(c1 == 0){\r\n return;\r\n }\r\n\r\n if(colHasMerge(cf, r1, r2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let cfMerge = getColMerge(cf, r1, r2);\r\n let cf_str = cfMerge[0], cf_end = cfMerge[1];\r\n\r\n if(cf_end < c2 && cf_str == c1){\r\n c2 = getNextIndex(\"left\", rf, c1, c2);\r\n }\r\n else{\r\n c1 = getNextIndex(\"left\", rf, 0, c1);\r\n }\r\n }\r\n else{\r\n if(cf < c2 && cf == c1){\r\n c2 = getNextIndex(\"left\", rf, c1, c2);\r\n }\r\n else{\r\n c1 = getNextIndex(\"left\", rf, 0, c1);\r\n }\r\n }\r\n }\r\n\r\n let rowseleted = [r1, r2];\r\n let columnseleted = [c1, c2];\r\n\r\n row = Store.visibledatarow[r2]; \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n col = Store.visibledatacolumn[c2]; \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n let changeparam = menuButton.mergeMoveMain(columnseleted, rowseleted, last, row_pre, row - row_pre - 1, col_pre, col - col_pre - 1);\r\n if(changeparam != null){\r\n columnseleted = changeparam[0];\r\n rowseleted= changeparam[1];\r\n // top = changeparam[2];\r\n // height = changeparam[3];\r\n // left = changeparam[4];\r\n // width = changeparam[5];\r\n }\r\n\r\n last[\"row\"] = rowseleted;\r\n last[\"column\"] = columnseleted;\r\n\r\n selectHightlightShow();\r\n }\r\n else if(type == \"rangeOfFormula\"){\r\n let last = formula.func_selectedrange;\r\n let rf = last[\"row_focus\"], cf = last[\"column_focus\"];\r\n\r\n let r1 = last[\"row\"][0], r2 = last[\"row\"][1];\r\n let c1 = last[\"column\"][0], c2 = last[\"column\"][1];\r\n\r\n if(postion == \"down\"){\r\n if(r2 == Store.flowdata.length - 1){\r\n return;\r\n }\r\n\r\n if(rowHasMerge(rf, c1, c2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let rfMerge = getRowMerge(rf, c1, c2);\r\n let rf_str = rfMerge[0], rf_end = rfMerge[1];\r\n\r\n if(rf_str > r1 && rf_end == r2){\r\n r1 = getNextIndex(\"down\", cf, r1, r2);\r\n }\r\n else{\r\n r2 = getNextIndex(\"down\", cf, r2, Store.flowdata.length - 1);\r\n }\r\n }\r\n else{\r\n if(rf > r1 && rf == r2){\r\n r1 = getNextIndex(\"down\", cf, r1, r2);\r\n }\r\n else{\r\n r2 = getNextIndex(\"down\", cf, r2, Store.flowdata.length - 1);\r\n }\r\n }\r\n }\r\n else if(postion == \"up\"){\r\n if(r1 == 0){\r\n return;\r\n }\r\n\r\n if(rowHasMerge(rf, c1, c2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let rfMerge = getRowMerge(rf, c1, c2);\r\n let rf_str = rfMerge[0], rf_end = rfMerge[1];\r\n\r\n if(rf_end < r2 && rf_str == r1){\r\n r2 = getNextIndex(\"up\", cf, r1, r2);\r\n }\r\n else{\r\n r1 = getNextIndex(\"up\", cf, 0, r1);\r\n }\r\n }\r\n else{\r\n if(rf < r2 && rf == r1){\r\n r2 = getNextIndex(\"up\", cf, r1, r2);\r\n }\r\n else{\r\n r1 = getNextIndex(\"up\", cf, 0, r1);\r\n }\r\n }\r\n }\r\n else if(postion == \"right\"){\r\n if(c2 == Store.flowdata[0].length - 1){\r\n return;\r\n }\r\n\r\n if(colHasMerge(cf, r1, r2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let cfMerge = getColMerge(cf, r1, r2);\r\n let cf_str = cfMerge[0], cf_end = cfMerge[1];\r\n\r\n if(cf_str > c1 && cf_end == c2){\r\n c1 = getNextIndex(\"right\", rf, c1, c2);\r\n }\r\n else{\r\n c2 = getNextIndex(\"right\", rf, c2, Store.flowdata[0].length - 1);\r\n }\r\n }\r\n else{\r\n if(cf > c1 && cf == c2){\r\n c1 = getNextIndex(\"right\", rf, c1, c2);\r\n }\r\n else{\r\n c2 = getNextIndex(\"right\", rf, c2, Store.flowdata[0].length - 1);\r\n }\r\n }\r\n }\r\n else if(postion == \"left\"){\r\n if(c1 == 0){\r\n return;\r\n }\r\n\r\n if(colHasMerge(cf, r1, r2)){ //focus\u6240\u5728\u884C\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let cfMerge = getColMerge(cf, r1, r2);\r\n let cf_str = cfMerge[0], cf_end = cfMerge[1];\r\n\r\n if(cf_end < c2 && cf_str == c1){\r\n c2 = getNextIndex(\"left\", rf, c1, c2);\r\n }\r\n else{\r\n c1 = getNextIndex(\"left\", rf, 0, c1);\r\n }\r\n }\r\n else{\r\n if(cf < c2 && cf == c1){\r\n c2 = getNextIndex(\"left\", rf, c1, c2);\r\n }\r\n else{\r\n c1 = getNextIndex(\"left\", rf, 0, c1);\r\n }\r\n }\r\n }\r\n\r\n let rowseleted = [r1, r2];\r\n let columnseleted = [c1, c2];\r\n\r\n row = Store.visibledatarow[r2]; \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n col = Store.visibledatacolumn[c2]; \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n let top = row_pre, height = row - row_pre - 1;\r\n let left = col_pre, width = col - col_pre - 1;\r\n\r\n let changeparam = menuButton.mergeMoveMain(columnseleted, rowseleted, last, top, height, left, width);\r\n if(changeparam != null){\r\n columnseleted = changeparam[0];\r\n rowseleted= changeparam[1];\r\n top = changeparam[2];\r\n height = changeparam[3];\r\n left = changeparam[4];\r\n width = changeparam[5];\r\n }\r\n\r\n formula.func_selectedrange = {\r\n \"left\": left,\r\n \"width\": width,\r\n \"top\": top,\r\n \"height\": height,\r\n \"left_move\": left,\r\n \"width_move\": width,\r\n \"top_move\": top,\r\n \"height_move\": height,\r\n \"row\": rowseleted,\r\n \"column\": columnseleted,\r\n \"row_focus\": rf,\r\n \"column_focus\": cf\r\n };\r\n\r\n $(\"#luckysheet-formula-functionrange-select\").css({\r\n \"left\": left,\r\n \"width\": width,\r\n \"top\": top,\r\n \"height\": height\r\n }).show();\r\n\r\n formula.rangeSetValue({\r\n \"row\": rowseleted,\r\n \"column\": columnseleted\r\n });\r\n }\r\n\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let winH = $(\"#luckysheet-cell-main\").height(), winW = $(\"#luckysheet-cell-main\").width();\r\n\r\n let sleft = 0, stop = 0;\r\n if (col - scrollLeft - winW + 20 > 0) {\r\n sleft = col - winW + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n else if (col_pre - scrollLeft - 20 < 0) {\r\n sleft = col_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(sleft);\r\n }\r\n }\r\n\r\n if (row - scrollTop - winH + 20 > 0) {\r\n stop = row - winH + 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n else if (row_pre - scrollTop - 20 < 0) {\r\n stop = row_pre - 20;\r\n if (isScroll) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(stop);\r\n }\r\n }\r\n\r\n clearTimeout(Store.countfuncTimeout);\r\n countfunc();\r\n}\r\n\r\n//shift + \u65B9\u5411\u952E / ctrl + shift + \u65B9\u5411\u952E \u529F\u80FD\r\nfunction rowHasMerge(r, c1, c2){\r\n let rowHasMerge = false;\r\n\r\n for(let c = c1; c <= c2; c++){\r\n let cell = Store.flowdata[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && (\"mc\" in cell)){\r\n rowHasMerge = true;\r\n break;\r\n }\r\n }\r\n\r\n return rowHasMerge;\r\n}\r\nfunction colHasMerge(c, r1, r2){\r\n let colHasMerge = false;\r\n\r\n for(let r = r1; r <= r2; r++){\r\n let cell = Store.flowdata[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && (\"mc\" in cell)){\r\n colHasMerge = true;\r\n break;\r\n }\r\n }\r\n\r\n return colHasMerge;\r\n}\r\nfunction getRowMerge(rIndex, c1, c2){\r\n let r1 = 0, r2 = Store.flowdata.length - 1;\r\n\r\n let str = null;\r\n if(rIndex > r1){\r\n for(let r = rIndex; r >= r1; r--){\r\n for(let c = c1; c <= c2; c++){\r\n let cell = Store.flowdata[r][c];\r\n \r\n if(getObjType(cell) == \"object\" && (\"mc\" in cell)){\r\n let mc = Store.config[\"merge\"][cell[\"mc\"].r + \"_\" + cell[\"mc\"].c];\r\n\r\n if(str == null || mc.r < str){\r\n str = mc.r;\r\n }\r\n } \r\n }\r\n\r\n if(rowHasMerge(str - 1, c1, c2) && str > r1){\r\n r = str;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n str = r1;\r\n }\r\n\r\n let end = null;\r\n if(rIndex < r2){\r\n for(let r = rIndex; r <= r2; r++){\r\n for(let c = c1; c <= c2; c++){\r\n let cell = Store.flowdata[r][c];\r\n \r\n if(getObjType(cell) == \"object\" && (\"mc\" in cell)){\r\n let mc = Store.config[\"merge\"][cell[\"mc\"].r + \"_\" + cell[\"mc\"].c];\r\n\r\n if(end == null || (mc.r + mc.rs - 1) > end){\r\n end = mc.r + mc.rs - 1;\r\n }\r\n }\r\n }\r\n\r\n if(rowHasMerge(end + 1, c1, c2) && end < r2){\r\n r = end;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n end = r2;\r\n }\r\n\r\n return [str, end];\r\n}\r\nfunction getColMerge(cIndex, r1, r2){\r\n let c1 = 0, c2 = Store.flowdata[0].length - 1;\r\n\r\n let str = null;\r\n if(cIndex > c1){\r\n for(let c = cIndex; c >= c1; c--){\r\n for(let r = r1; r <= r2; r++){\r\n let cell = Store.flowdata[r][c];\r\n \r\n if(getObjType(cell) == \"object\" && (\"mc\" in cell)){\r\n let mc = Store.config[\"merge\"][cell[\"mc\"].r + \"_\" + cell[\"mc\"].c];\r\n\r\n if(str == null || mc.c < str){\r\n str = mc.c;\r\n }\r\n } \r\n }\r\n\r\n if(colHasMerge(str - 1, r1, r2) && str > c1){\r\n c = str;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n str = c1;\r\n }\r\n\r\n let end = null;\r\n if(cIndex < c2){\r\n for(let c = cIndex; c <= c2; c++){\r\n for(let r = r1; r <= r2; r++){\r\n let cell = Store.flowdata[r][c];\r\n \r\n if(getObjType(cell) == \"object\" && (\"mc\" in cell)){\r\n let mc = Store.config[\"merge\"][cell[\"mc\"].r + \"_\" + cell[\"mc\"].c];\r\n\r\n if(end == null || (mc.c + mc.cs - 1) > end){\r\n end = mc.c + mc.cs - 1;\r\n }\r\n }\r\n }\r\n\r\n if(colHasMerge(end + 1, r1, r2) && end < c2){\r\n c = end;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n end = c2;\r\n }\r\n\r\n return [str, end];\r\n}\r\nfunction getNextIndex(direction, focusIndex, strIndex, endIndex) {\r\n let index = null;\r\n\r\n let stNull;\r\n if(direction == \"down\"){\r\n let stValue = Store.flowdata[strIndex][focusIndex];\r\n\r\n if(getObjType(stValue) == \"object\" && isRealNull(stValue.v)){\r\n stNull = true;\r\n }\r\n else if(isRealNull(stValue)){\r\n stNull = true;\r\n }\r\n else{\r\n stNull = false;\r\n }\r\n\r\n console.log(stNull, \"stNull\");\r\n\r\n let cellNull = [], i = 0;\r\n for(let r = strIndex + 1; r <= endIndex; r++){\r\n let cell = Store.flowdata[r][focusIndex];\r\n\r\n if(getObjType(cell) == \"object\" && isRealNull(cell.v)){\r\n cellNull.push(true);\r\n }\r\n else if(isRealNull(cell)){\r\n cellNull.push(true);\r\n }\r\n else{\r\n cellNull.push(false);\r\n }\r\n\r\n if(cellNull.length == 1 && stNull==true && cellNull[i] == false){\r\n index = strIndex + i + 1;\r\n break;\r\n }\r\n else if(cellNull.length > 1){\r\n if(stNull && cellNull[i] == false){ //\u8D77\u59CB\u662F\u7A7A\uFF0C\u627E\u7B2C\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n index = strIndex + i + 1;\r\n break;\r\n }\r\n else if(!stNull){ //\u8D77\u59CB\u6709\u503C\uFF0C\u627E\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n if(cellNull[i] == false && cellNull[i - 1] == true){ //\u524D\u9762\u4E3A\u7A7A\r\n index = strIndex + i + 1;\r\n break;\r\n }\r\n else if(cellNull[i] == true && cellNull[i - 1] == false){ //\u540E\u9762\u4E3A\u7A7A\r\n index = strIndex + i;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if(r == endIndex){\r\n index = endIndex;\r\n }\r\n\r\n i++;\r\n }\r\n }\r\n else if(direction == \"up\"){\r\n let stValue = Store.flowdata[endIndex][focusIndex];\r\n\r\n if(getObjType(stValue) == \"object\" && isRealNull(stValue.v)){\r\n stNull = true;\r\n }\r\n else if(isRealNull(stValue)){\r\n stNull = true;\r\n }\r\n else{\r\n stNull = false;\r\n }\r\n\r\n let cellNull = [], i = 0;\r\n for(let r = endIndex - 1; r >= strIndex; r--){\r\n let cell = Store.flowdata[r][focusIndex];\r\n\r\n if(getObjType(cell) == \"object\" && isRealNull(cell.v)){\r\n cellNull.push(true);\r\n }\r\n else if(isRealNull(cell)){\r\n cellNull.push(true);\r\n }\r\n else{\r\n cellNull.push(false);\r\n }\r\n\r\n if(cellNull.length == 1 && stNull && cellNull[i] == false){\r\n index = endIndex - (i + 1);\r\n break;\r\n }\r\n else if(cellNull.length > 1){\r\n if(stNull && cellNull[i] == false){ //\u8D77\u59CB\u662F\u7A7A\uFF0C\u627E\u7B2C\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n index = endIndex - (i + 1);\r\n break;\r\n }\r\n else if(!stNull){ //\u8D77\u59CB\u6709\u503C\uFF0C\u627E\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n if(cellNull[i] == false && cellNull[i - 1] == true){ //\u524D\u9762\u4E3A\u7A7A\r\n index = endIndex - (i + 1);\r\n break;\r\n }\r\n else if(cellNull[i] == true && cellNull[i - 1] == false){ //\u540E\u9762\u4E3A\u7A7A\r\n index = endIndex - i;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if(r == strIndex){\r\n index = strIndex;\r\n }\r\n\r\n i++;\r\n }\r\n }\r\n else if(direction == \"right\"){\r\n let stValue = Store.flowdata[focusIndex][strIndex];\r\n\r\n if(getObjType(stValue) == \"object\" && isRealNull(stValue.v)){\r\n stNull = true;\r\n }\r\n else if(isRealNull(stValue)){\r\n stNull = true;\r\n }\r\n else{\r\n stNull = false;\r\n }\r\n\r\n let cellNull = [], i = 0;\r\n for(let c = strIndex + 1; c <= endIndex; c++){\r\n let cell = Store.flowdata[focusIndex][c];\r\n\r\n if(getObjType(cell) == \"object\" && isRealNull(cell.v)){\r\n cellNull.push(true);\r\n }\r\n else if(isRealNull(cell)){\r\n cellNull.push(true);\r\n }\r\n else{\r\n cellNull.push(false);\r\n }\r\n\r\n if(cellNull.length == 1 && stNull && cellNull[i] == false){\r\n index = strIndex + i + 1;\r\n break;\r\n }\r\n else if(cellNull.length > 1){\r\n if(stNull && cellNull[i] == false){ //\u8D77\u59CB\u662F\u7A7A\uFF0C\u627E\u7B2C\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n index = strIndex + i + 1;\r\n break;\r\n }\r\n else if(!stNull){ //\u8D77\u59CB\u6709\u503C\uFF0C\u627E\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n if(cellNull[i] == false && cellNull[i - 1] == true){ //\u524D\u9762\u4E3A\u7A7A\r\n index = strIndex + i + 1;\r\n break;\r\n }\r\n else if(cellNull[i] == true && cellNull[i - 1] == false){ //\u540E\u9762\u4E3A\u7A7A\r\n index = strIndex + i;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if(c == endIndex){\r\n index = endIndex;\r\n }\r\n\r\n i++;\r\n }\r\n }\r\n else if(direction == \"left\"){\r\n let stValue = Store.flowdata[focusIndex][endIndex];\r\n\r\n if(getObjType(stValue) == \"object\" && isRealNull(stValue.v)){\r\n stNull = true;\r\n }\r\n else if(isRealNull(stValue)){\r\n stNull = true;\r\n }\r\n else{\r\n stNull = false;\r\n }\r\n\r\n let cellNull = [], i = 0;\r\n for(let c = endIndex - 1; c >= strIndex; c--){\r\n let cell = Store.flowdata[focusIndex][c];\r\n\r\n if(getObjType(cell) == \"object\" && isRealNull(cell.v)){\r\n cellNull.push(true);\r\n }\r\n else if(isRealNull(cell)){\r\n cellNull.push(true);\r\n }\r\n else{\r\n cellNull.push(false);\r\n }\r\n\r\n if(cellNull.length == 1 && stNull && cellNull[i] == false){\r\n index = endIndex - (i + 1);\r\n break;\r\n }\r\n else if(cellNull.length > 1){\r\n if(stNull && cellNull[i] == false){ //\u8D77\u59CB\u662F\u7A7A\uFF0C\u627E\u7B2C\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n index = endIndex - (i + 1);\r\n break;\r\n }\r\n else if(!stNull){ //\u8D77\u59CB\u6709\u503C\uFF0C\u627E\u4E00\u4E2A\u6709\u503C\u7684\u4F4D\u7F6E\r\n if(cellNull[i] == false && cellNull[i - 1] == true){ //\u524D\u9762\u4E3A\u7A7A\r\n index = endIndex - (i + 1);\r\n break;\r\n }\r\n else if(cellNull[i] == true && cellNull[i - 1] == false){ //\u540E\u9762\u4E3A\u7A7A\r\n index = endIndex - i;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if(c == strIndex){\r\n index = strIndex;\r\n }\r\n\r\n i++;\r\n }\r\n }\r\n\r\n return index;\r\n}\r\n\r\nexport {\r\n luckysheetMoveEndCell,\r\n luckysheetMoveHighlightCell,\r\n luckysheetMoveHighlightCell2,\r\n luckysheetMoveHighlightRange,\r\n luckysheetMoveHighlightRange2,\r\n}", "\r\nimport { getSheetIndex, getRangetxt } from '../methods/get';\r\nimport { replaceHtml } from '../utils/util';\r\nimport formula from '../global/formula';\r\nimport { isEditMode } from '../global/validate';\r\nimport tooltip from '../global/tooltip';\r\nimport { luckysheetrefreshgrid } from '../global/refresh';\r\nimport { luckysheetAlternateformatHtml, modelHTML } from './constant';\r\nimport luckysheetsizeauto from './resize';\r\nimport server from './server';\r\nimport { selectHightlightShow } from './select';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\n\r\n//\u4EA4\u66FF\u989C\u8272\r\nconst alternateformat = {\r\n rangefocus: false,\r\n modelfocusIndex: null,\r\n FixedModelColor: [\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#bfbdbe\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f8f3f7\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#dde2de\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#4bd4e7\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#eaf7ff\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#aae9f8\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#5ed593\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#e5fbee\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#a5efcc\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#f6cb4b\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#fff9e7\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#ffebac\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#f96420\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#ffe5d9\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#ffcfba\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#5599fc\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#ecf2fe\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#afcbfa\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#22a69b\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#dff2f8\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#8dd4d0\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#7a939a\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f0eff7\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#bdcad0\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#d7a270\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#fdf3f1\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#ead2b6\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#89c54b\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f1f7e9\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#c5e3a7\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#8f88f0\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f0e5ff\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#c6c4f6\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#fd1664\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#feddee\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#f98ab5\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#da96d3\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#fce8fb\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#f2caee\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#b49191\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f5ebe8\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#d8c3c3\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#91b493\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f0fbf0\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#b4cfb6\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#b4a891\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f8f6f1\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#d3cab8\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#91abb4\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#eff7fa\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#b7cbd3\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#b7ba82\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#fafbeb\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#dadcb4\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#df3e3e\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#fde9e9\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#f89292\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#f2711c\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#fef0d7\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#fbb335\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#b5cc18\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f9fbd4\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#e2ed2a\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#00b5ad\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#ccfaf9\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#00e4df\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#2185d0\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#d8f3fc\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#3cc4f0\" }\r\n },\r\n {\r\n \"head\": { \"fc\": \"#000\", \"bc\": \"#a5673f\" },\r\n \"one\": { \"fc\": \"#000\", \"bc\": \"#ffffff\" },\r\n \"two\": { \"fc\": \"#000\", \"bc\": \"#f6ede5\" },\r\n \"foot\": { \"fc\": \"#000\", \"bc\": \"#d3a47c\" }\r\n } \r\n ],\r\n getModelBox: function(hasRowHeader, hasRowFooter){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-modelList\").empty();\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-modelCustom\").empty();\r\n\r\n //\u683C\u5F0F\u6837\u5F0F \u6A21\u677F\r\n let modelListHtml = '';\r\n\r\n for(let i = 0; i < _this.FixedModelColor.length; i++){\r\n let obj = _this.FixedModelColor[i];\r\n\r\n let color1, color2, color3, color4;\r\n\r\n if(hasRowHeader && hasRowFooter){\r\n color1 = obj[\"head\"];\r\n color2 = obj[\"one\"];\r\n color3 = obj[\"two\"];\r\n color4 = obj[\"foot\"];\r\n }\r\n else if(hasRowHeader){\r\n color1 = obj[\"head\"];\r\n color2 = obj[\"one\"];\r\n color3 = obj[\"two\"];\r\n color4 = obj[\"one\"];\r\n }\r\n else if(hasRowFooter){\r\n color1 = obj[\"one\"];\r\n color2 = obj[\"two\"];\r\n color3 = obj[\"one\"];\r\n color4 = obj[\"foot\"];\r\n }\r\n else{\r\n color1 = obj[\"one\"];\r\n color2 = obj[\"two\"];\r\n color3 = obj[\"one\"];\r\n color4 = obj[\"two\"];\r\n }\r\n\r\n modelListHtml += '
'+\r\n '
'+\r\n ' \u2014 '+\r\n ' \u2014 '+\r\n ' \u2014 '+\r\n ' \u2014 '+\r\n '
'+\r\n '
';\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-modelList\").append(modelListHtml);\r\n\r\n //\u81EA\u5B9A\u4E49 \u6A21\u677F\r\n let modelCustom = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_alternateformat_save_modelCustom\"];\r\n if(modelCustom != null && modelCustom.length > 0){\r\n let modelCustomHtml = '';\r\n\r\n for(let i = 0; i < modelCustom.length; i++){\r\n let obj = modelCustom[i];\r\n\r\n let color1, color2, color3, color4;\r\n\r\n if(hasRowHeader && hasRowFooter){\r\n color1 = obj[\"head\"];\r\n color2 = obj[\"one\"];\r\n color3 = obj[\"two\"];\r\n color4 = obj[\"foot\"];\r\n }\r\n else if(hasRowHeader){\r\n color1 = obj[\"head\"];\r\n color2 = obj[\"one\"];\r\n color3 = obj[\"two\"];\r\n color4 = obj[\"one\"];\r\n }\r\n else if(hasRowFooter){\r\n color1 = obj[\"one\"];\r\n color2 = obj[\"two\"];\r\n color3 = obj[\"one\"];\r\n color4 = obj[\"foot\"];\r\n }\r\n else{\r\n color1 = obj[\"one\"];\r\n color2 = obj[\"two\"];\r\n color3 = obj[\"one\"];\r\n color4 = obj[\"two\"];\r\n }\r\n\r\n modelCustomHtml += '
'+\r\n '
'+\r\n ' \u2014 '+\r\n ' \u2014 '+\r\n ' \u2014 '+\r\n ' \u2014 '+\r\n '
'+\r\n '
';\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-modelCustom\").append(modelCustomHtml);\r\n }\r\n },\r\n init: function(){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").remove();\r\n $(\"body\").append(luckysheetAlternateformatHtml());\r\n luckysheetsizeauto();\r\n\r\n //\u5173\u95ED\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat .luckysheet-model-close-btn\").click(function () {\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").hide();\r\n luckysheetsizeauto();\r\n });\r\n\r\n //\u5E94\u7528\u8303\u56F4\r\n $(document).off(\"focus.AFrangeInput\").on(\"focus.AFrangeInput\", \"#luckysheet-alternateformat-range input\", function(){\r\n _this.rangefocus = true;\r\n });\r\n $(document).off(\"blur.AFrangeInput\").on(\"blur.AFrangeInput\", \"#luckysheet-alternateformat-range input\", function(){\r\n _this.rangefocus = false;\r\n });\r\n\r\n $(document).off(\"keydown.AFrangeInput\").on(\"keydown.AFrangeInput\", \"#luckysheet-alternateformat-range input\", function(e){\r\n let rangeValue = $(this).val().trim();\r\n if(e.keyCode == 13){\r\n _this.update();\r\n }\r\n });\r\n $(document).off(\"click.AFrangeIcon\").on(\"click.AFrangeIcon\", \"#luckysheet-alternateformat-range .fa-table\", function(){\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").hide();\r\n luckysheetsizeauto();\r\n\r\n let rangeValue = $(this).parents(\"#luckysheet-alternateformat-range\").find(\"input\").val().trim();\r\n _this.rangeDialog(rangeValue);\r\n });\r\n $(document).off(\"click.AFrDCf\").on(\"click.AFrDCf\", \"#luckysheet-alternateformat-rangeDialog-confirm\", function(){\r\n let rangeValue = $(this).parents(\"#luckysheet-alternateformat-rangeDialog\").find(\"input\").val().trim();\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-range input\").val(rangeValue);\r\n\r\n $(this).parents(\"#luckysheet-alternateformat-rangeDialog\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").show();\r\n luckysheetsizeauto();\r\n\r\n _this.update();\r\n });\r\n $(document).off(\"click.AFrDCl\").on(\"click.AFrDCl\", \"#luckysheet-alternateformat-rangeDialog-close\", function(){\r\n $(this).parents(\"#luckysheet-alternateformat-rangeDialog\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").show();\r\n luckysheetsizeauto();\r\n });\r\n $(document).off(\"click.AFrDTitle\").on(\"click.AFrDTitle\", \"#luckysheet-alternateformat-rangeDialog .luckysheet-modal-dialog-title-close\", function(){\r\n $(this).parents(\"#luckysheet-alternateformat-rangeDialog\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").show();\r\n luckysheetsizeauto();\r\n });\r\n\r\n //\u9875\u7709\u3001\u9875\u811A\u9009\u4E2D\r\n $(document).off(\"change.AFrowHeader\").on(\"change.AFrowHeader\", \"#luckysheet-alternateformat-rowHeader\", function(){\r\n let hasRowHeader;\r\n if($(this).is(\":checked\")){\r\n hasRowHeader = true;\r\n }\r\n else{\r\n hasRowHeader = false; \r\n }\r\n\r\n let hasRowFooter;\r\n if($(\"#luckysheet-alternateformat-rowFooter\").is(\":checked\")){\r\n hasRowFooter = true;\r\n }\r\n else{\r\n hasRowFooter = false; \r\n }\r\n\r\n _this.checkboxChange(hasRowHeader, hasRowFooter);\r\n _this.modelboxOn();\r\n _this.update();\r\n });\r\n $(document).off(\"change.AFrowFooter\").on(\"change.AFrowFooter\", \"#luckysheet-alternateformat-rowFooter\", function(){\r\n let hasRowHeader;\r\n if($(\"#luckysheet-alternateformat-rowHeader\").is(\":checked\")){\r\n hasRowHeader = true;\r\n }\r\n else{\r\n hasRowHeader = false; \r\n }\r\n\r\n let hasRowFooter;\r\n if($(this).is(\":checked\")){\r\n hasRowFooter = true;\r\n }\r\n else{\r\n hasRowFooter = false; \r\n }\r\n\r\n _this.checkboxChange(hasRowHeader, hasRowFooter);\r\n _this.modelboxOn();\r\n _this.update();\r\n });\r\n\r\n //\u70B9\u51FB\u6837\u5F0F\u6A21\u677F\r\n $(document).off(\"click.AFmodelbox\").on(\"click.AFmodelbox\", \"#luckysheet-modal-dialog-slider-alternateformat .modelbox\", function(){\r\n let index = $(this).index();\r\n let $id = $(this).parents(\".cf\").attr(\"id\");\r\n\r\n if($id == \"luckysheet-alternateformat-modelList\"){\r\n _this.modelfocusIndex = index;\r\n }\r\n else if($id == \"luckysheet-alternateformat-modelCustom\"){\r\n let len = _this.FixedModelColor.length;\r\n _this.modelfocusIndex = index + len;\r\n }\r\n\r\n _this.modelboxOn();\r\n _this.update();\r\n });\r\n\r\n //\u70B9\u51FB\u9009\u62E9\u6587\u672C/\u5355\u5143\u683C\u989C\u8272\r\n $(document).off(\"click.AFselectColor\").on(\"click.AFselectColor\", \"#luckysheet-modal-dialog-slider-alternateformat .luckysheet-color-menu-button-indicator\", function(){\r\n let $parent = $(this).closest(\".toningbox\");\r\n\r\n let colorType, currenColor;\r\n if($(this).find(\".luckysheet-icon-img\").hasClass(\"luckysheet-icon-text-color\")){\r\n colorType = \"fc\";\r\n currenColor = $parent.find(\".toningShow\").data(\"fc\");\r\n }\r\n else if($(this).find(\".luckysheet-icon-img\").hasClass(\"luckysheet-icon-cell-color\")){\r\n colorType = \"bc\";\r\n currenColor = $parent.find(\".toningShow\").data(\"bc\");\r\n }\r\n\r\n //source\r\n let source;\r\n if($parent.hasClass(\"header\")){\r\n source = \"0\";\r\n }\r\n else if($parent.hasClass(\"ctOne\")){\r\n source = \"1\";\r\n }\r\n else if($parent.hasClass(\"ctTwo\")){\r\n source = \"2\";\r\n }\r\n else if($parent.hasClass(\"footer\")){\r\n source = \"3\";\r\n }\r\n\r\n _this.colorSelectDialog(currenColor, colorType, source);\r\n });\r\n\r\n //\u9009\u62E9\u989C\u8272 \u786E\u5B9A \u6DFB\u52A0\u81EA\u5B9A\u4E49\u6A21\u677F\r\n $(document).off(\"click.AFselectColorConfirm\").on(\"click.AFselectColorConfirm\", \"#luckysheet-alternateformat-colorSelect-dialog-confirm\", function(){\r\n let $parent = $(this).parents(\"#luckysheet-alternateformat-colorSelect-dialog\");\r\n const _locale = locale()\r\n const alternatingColors =_locale.alternatingColors;\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $parent.hide();\r\n\r\n //\u83B7\u53D6currenColor colorType source\r\n let currenColor = $parent.find(\".currenColor span\").attr(\"title\");\r\n\r\n let colorType;\r\n if($parent.find(\".luckysheet-modal-dialog-title-text\").text() == alternatingColors.selectionTextColor){\r\n colorType = \"fc\";\r\n }\r\n else if($parent.find(\".luckysheet-modal-dialog-title-text\").text() == alternatingColors.selectionCellColor){\r\n colorType = \"bc\";\r\n }\r\n\r\n let source = $parent.find(\".currenColor\").attr(\"data-source\");\r\n \r\n //\u8D4B\u7ED9\u989C\u8272\r\n if(source == \"0\"){\r\n if(colorType == \"fc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .header .toningShow\").css(\"color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .header .toningShow\").data(\"fc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .header .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n if(colorType == \"bc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .header .toningShow\").css(\"background-color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .header .toningShow\").data(\"bc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .header .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n }\r\n else if(source == \"1\"){\r\n if(colorType == \"fc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .toningShow\").css(\"color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .toningShow\").data(\"fc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n if(colorType == \"bc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .toningShow\").css(\"background-color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .toningShow\").data(\"bc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n }\r\n else if(source == \"2\"){\r\n if(colorType == \"fc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .toningShow\").css(\"color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .toningShow\").data(\"fc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n if(colorType == \"bc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .toningShow\").css(\"background-color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .toningShow\").data(\"bc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n }\r\n else if(source == \"3\"){\r\n if(colorType == \"fc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .footer .toningShow\").css(\"color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .footer .toningShow\").data(\"fc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .footer .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n if(colorType == \"bc\"){\r\n $(\"#luckysheet-alternateformat-modelToning .footer .toningShow\").css(\"background-color\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .footer .toningShow\").data(\"bc\", currenColor);\r\n $(\"#luckysheet-alternateformat-modelToning .footer .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", currenColor);\r\n }\r\n }\r\n \r\n //\u82E5\u6A21\u677F\u805A\u7126\u5728\u56FA\u6709\u6A21\u677F\uFF0C\u5219\u65B0\u52A0\u6A21\u677F\uFF1B\u82E5\u6A21\u677F\u805A\u7126\u5728\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5219\u4FEE\u6539\u8BE5\u6A21\u677F\r\n let hasRowHeader;\r\n if($(\"#luckysheet-alternateformat-rowHeader\").is(\":checked\")){\r\n hasRowHeader = true;\r\n }\r\n else{\r\n hasRowHeader = false; \r\n }\r\n\r\n let hasRowFooter;\r\n if($(\"#luckysheet-alternateformat-rowFooter\").is(\":checked\")){\r\n hasRowFooter = true;\r\n }\r\n else{\r\n hasRowFooter = false; \r\n }\r\n\r\n let index = _this.modelfocusIndex;\r\n let len = _this.FixedModelColor.length;\r\n\r\n let format, file;\r\n if(index < len){\r\n format = $.extend(true, {}, _this.getFormatByIndex());\r\n }\r\n else{\r\n file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n let modelCustom = file[\"luckysheet_alternateformat_save_modelCustom\"];\r\n\r\n format = $.extend(true, {}, modelCustom[index - len]);\r\n }\r\n\r\n if(source == \"0\"){\r\n if(colorType == \"fc\"){\r\n format[\"head\"][\"fc\"] = currenColor;\r\n }\r\n else if(colorType == \"bc\"){\r\n format[\"head\"][\"bc\"] = currenColor;\r\n }\r\n }\r\n else if(source == \"1\"){\r\n if(colorType == \"fc\"){\r\n format[\"one\"][\"fc\"] = currenColor;\r\n }\r\n else if(colorType == \"bc\"){\r\n format[\"one\"][\"bc\"] = currenColor;\r\n }\r\n }\r\n else if(source == \"2\"){\r\n if(colorType == \"fc\"){\r\n format[\"two\"][\"fc\"] = currenColor;\r\n }\r\n else if(colorType == \"bc\"){\r\n format[\"two\"][\"bc\"] = currenColor;\r\n }\r\n }\r\n else if(source == \"3\"){\r\n if(colorType == \"fc\"){\r\n format[\"foot\"][\"fc\"] = currenColor;\r\n }\r\n if(colorType == \"bc\"){\r\n format[\"foot\"][\"bc\"] = currenColor;\r\n }\r\n }\r\n\r\n if(_this.modelfocusIndex < len){\r\n _this.addCustomModel(format);\r\n _this.modelfocusIndex = _this.getIndexByFormat(format);\r\n }\r\n else{\r\n file[\"luckysheet_alternateformat_save_modelCustom\"][index - len] = format;\r\n\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, file[\"luckysheet_alternateformat_save_modelCustom\"], { \"k\": \"luckysheet_alternateformat_save_modelCustom\" });\r\n }\r\n }\r\n\r\n _this.getModelBox(hasRowHeader, hasRowFooter);\r\n _this.modelboxOn();\r\n _this.update();\r\n });\r\n \r\n //\u70B9\u51FB \u79FB\u9664\u4EA4\u66FF\u989C\u8272 \u6309\u94AE\r\n $(document).off(\"click.AFremove\").on(\"click.AFremove\", \"#luckysheet-alternateformat-remove\", function(){\r\n let dataIndex = $(this).data(\"index\");\r\n\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n let ruleArr = file[\"luckysheet_alternateformat_save\"];\r\n\r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let historyRules = $.extend(true, [], ruleArr);\r\n\r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n if(ruleArr.length > 1){\r\n ruleArr.splice(dataIndex, 1);\r\n }\r\n else{\r\n ruleArr = [];\r\n }\r\n\r\n let currentRules = $.extend(true, [], ruleArr);\r\n \r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, ruleArr, { \"k\": \"luckysheet_alternateformat_save\" });\r\n }\r\n\r\n //\u9690\u85CF\u4E00\u4E9Bdom\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat\").hide();\r\n\r\n luckysheetsizeauto();\r\n });\r\n },\r\n perfect: function(){\r\n let _this = this;\r\n\r\n let range = $.extend(true, {}, Store.luckysheet_select_save[0]);\r\n let existsIndex = _this.rangeIsExists(range)[1];\r\n \r\n let obj = $.extend(true, {}, Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_alternateformat_save\"][existsIndex]);\r\n \r\n //\u5E94\u7528\u8303\u56F4\r\n let cellrange = obj[\"cellrange\"];\r\n $(\"#luckysheet-alternateformat-range input\").val(getRangetxt(Store.currentSheetIndex, { \"row\": cellrange[\"row\"], \"column\": cellrange[\"column\"] }, Store.currentSheetIndex));\r\n \r\n Store.luckysheet_select_save = [{ \"row\": cellrange[\"row\"], \"column\": cellrange[\"column\"] }];\r\n selectHightlightShow();\r\n\r\n //\u9875\u7709\u3001\u9875\u811A\r\n let hasRowHeader = obj[\"hasRowHeader\"];\r\n let hasRowFooter = obj[\"hasRowFooter\"];\r\n \r\n //\u6A21\u677F\u805A\u7126\r\n let format = obj[\"format\"];\r\n _this.modelfocusIndex = _this.getIndexByFormat(format);\r\n\r\n if(_this.modelfocusIndex == null){\r\n _this.addCustomModel(format);\r\n _this.modelfocusIndex = _this.getIndexByFormat(format);\r\n }\r\n\r\n _this.checkboxChange(hasRowHeader, hasRowFooter);\r\n _this.modelboxOn();\r\n\r\n //\u6807\u8BC6 \u4EA4\u66FF\u989C\u8272\u7684index\r\n $(\"#luckysheet-alternateformat-remove\").data(\"index\", existsIndex);\r\n },\r\n checkboxChange: function(hasRowHeader, hasRowFooter){\r\n if(hasRowHeader){\r\n $(\"#luckysheet-alternateformat-rowHeader\").prop(\"checked\", true);\r\n $(\"#luckysheet-alternateformat-modelToning .header\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-alternateformat-rowHeader\").removeAttr(\"checked\"); \r\n $(\"#luckysheet-alternateformat-modelToning .header\").hide(); \r\n }\r\n\r\n if(hasRowFooter){\r\n $(\"#luckysheet-alternateformat-rowFooter\").prop(\"checked\", true);\r\n $(\"#luckysheet-alternateformat-modelToning .footer\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-alternateformat-rowFooter\").removeAttr(\"checked\"); \r\n $(\"#luckysheet-alternateformat-modelToning .footer\").hide(); \r\n }\r\n\r\n this.getModelBox(hasRowHeader, hasRowFooter);\r\n },\r\n modelboxOn: function(){\r\n let _this = this;\r\n\r\n //\u6A21\u677F foucs\r\n $(\"#luckysheet-modal-dialog-slider-alternateformat .modelbox\").removeClass(\"on\");\r\n\r\n let index = _this.modelfocusIndex;\r\n let len = _this.FixedModelColor.length;\r\n \r\n if(index < len){\r\n $(\"#luckysheet-alternateformat-modelList .modelbox\").eq(index).addClass(\"on\");\r\n }\r\n else{\r\n $(\"#luckysheet-alternateformat-modelCustom .modelbox\").eq(index - len).addClass(\"on\");\r\n }\r\n\r\n //\u7F16\u8F91 \u5BF9\u5E94\u989C\u8272\u6539\u53D8\r\n _this.modelToningColor();\r\n },\r\n modelToningColor: function(){\r\n let format = this.getFormatByIndex();\r\n\r\n //\u9875\u7709\r\n $(\"#luckysheet-alternateformat-modelToning .header .toningShow\").css({\"color\": format[\"head\"].fc, \"background-color\": format[\"head\"].bc});\r\n $(\"#luckysheet-alternateformat-modelToning .header .toningShow\").data(\"fc\", format[\"head\"].fc).data(\"bc\", format[\"head\"].bc);\r\n $(\"#luckysheet-alternateformat-modelToning .header .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"head\"].fc);\r\n $(\"#luckysheet-alternateformat-modelToning .header .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"head\"].bc);\r\n\r\n //\u989C\u82721\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .toningShow\").css({\"color\": format[\"one\"].fc, \"background-color\": format[\"one\"].bc});\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .toningShow\").data(\"fc\", format[\"one\"].fc).data(\"bc\", format[\"one\"].bc);\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"one\"].fc);\r\n $(\"#luckysheet-alternateformat-modelToning .ctOne .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"one\"].bc);\r\n\r\n //\u989C\u82722\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .toningShow\").css({\"color\": format[\"two\"].fc, \"background-color\": format[\"two\"].bc});\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .toningShow\").data(\"fc\", format[\"two\"].fc).data(\"bc\", format[\"two\"].bc);\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"two\"].fc);\r\n $(\"#luckysheet-alternateformat-modelToning .ctTwo .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"two\"].bc);\r\n\r\n //\u9875\u811A\r\n $(\"#luckysheet-alternateformat-modelToning .footer .toningShow\").css({\"color\": format[\"foot\"].fc, \"background-color\": format[\"foot\"].bc});\r\n $(\"#luckysheet-alternateformat-modelToning .footer .toningShow\").data(\"fc\", format[\"foot\"].fc).data(\"bc\", format[\"foot\"].bc);\r\n $(\"#luckysheet-alternateformat-modelToning .footer .luckysheet-icon-text-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"foot\"].fc);\r\n $(\"#luckysheet-alternateformat-modelToning .footer .luckysheet-icon-cell-color\").parents(\".luckysheet-color-menu-button-indicator\").css(\"border-bottom-color\", format[\"foot\"].bc);\r\n },\r\n addCustomModel: function(format){\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n if(file[\"luckysheet_alternateformat_save_modelCustom\"] == null){\r\n file[\"luckysheet_alternateformat_save_modelCustom\"] = [];\r\n }\r\n\r\n file[\"luckysheet_alternateformat_save_modelCustom\"].push(format);\r\n\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, file[\"luckysheet_alternateformat_save_modelCustom\"], { \"k\": \"luckysheet_alternateformat_save_modelCustom\" });\r\n }\r\n },\r\n colorSelectDialog: function(currenColor, colorType, source){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-alternateformat-colorSelect-dialog\").remove();\r\n\r\n const _locale = locale()\r\n const alternatingColors =_locale.alternatingColors;\r\n const locale_button = _locale.button;\r\n const locale_toolbar = _locale.toolbar;\r\n\r\n let title;\r\n if(colorType == \"fc\"){\r\n title = alternatingColors.selectionTextColor;\r\n }\r\n else if(colorType == \"bc\"){\r\n title = alternatingColors.selectionCellColor;\r\n }\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-alternateformat-colorSelect-dialog\", \r\n \"addclass\": \"luckysheet-alternateformat-colorSelect-dialog\", \r\n \"title\": title, \r\n \"content\": \"
\"+ alternatingColors.currentColor +\"\uFF1A
\", \r\n \"botton\": '', \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-alternateformat-colorSelect-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-alternateformat-colorSelect-dialog\").css({ \r\n \"left\": (winw + scrollLeft - myw) / 2, \r\n \"top\": (winh + scrollTop - myh) / 3 \r\n }).show();\r\n \r\n //\u521D\u59CB\u5316\u9009\u62E9\u989C\u8272\u63D2\u4EF6\r\n $(\"#luckysheet-alternateformat-colorSelect-dialog\").find(\".colorshowbox\").spectrum({\r\n showPalette: true,\r\n showPaletteOnly: true,\r\n preferredFormat: \"hex\",\r\n clickoutFiresChange: false,\r\n showInitial: true,\r\n showInput: true,\r\n flat: true,\r\n hideAfterPaletteSelect: true,\r\n showSelectionPalette: true,\r\n showButtons: false,//\u9690\u85CF\u9009\u62E9\u53D6\u6D88\u6309\u94AE\r\n maxPaletteSize: 8,\r\n maxSelectionSize: 8,\r\n color: currenColor,\r\n cancelText: locale_button.cancel,\r\n chooseText: locale_toolbar.confirmColor,\r\n togglePaletteMoreText: locale_toolbar.customColor,\r\n togglePaletteLessText: locale_toolbar.collapse,\r\n togglePaletteOnly: true,\r\n clearText: locale_toolbar.clearText,\r\n noColorSelectedText: locale_toolbar.noColorSelectedText,\r\n localStorageKey: \"spectrum.textcolor\" + server.gridKey,\r\n palette: [\r\n [\"#000\", \"#444\", \"#666\", \"#999\", \"#ccc\", \"#eee\", \"#f3f3f3\", \"#fff\"],\r\n [\"#f00\", \"#f90\", \"#ff0\", \"#0f0\", \"#0ff\", \"#00f\", \"#90f\", \"#f0f\"],\r\n [\"#f4cccc\", \"#fce5cd\", \"#fff2cc\", \"#d9ead3\", \"#d0e0e3\", \"#cfe2f3\", \"#d9d2e9\", \"#ead1dc\"],\r\n [\"#ea9999\", \"#f9cb9c\", \"#ffe599\", \"#b6d7a8\", \"#a2c4c9\", \"#9fc5e8\", \"#b4a7d6\", \"#d5a6bd\"],\r\n [\"#e06666\", \"#f6b26b\", \"#ffd966\", \"#93c47d\", \"#76a5af\", \"#6fa8dc\", \"#8e7cc3\", \"#c27ba0\"],\r\n [\"#c00\", \"#e69138\", \"#f1c232\", \"#6aa84f\", \"#45818e\", \"#3d85c6\", \"#674ea7\", \"#a64d79\"],\r\n [\"#900\", \"#b45f06\", \"#bf9000\", \"#38761d\", \"#134f5c\", \"#0b5394\", \"#351c75\", \"#741b47\"],\r\n [\"#600\", \"#783f04\", \"#7f6000\", \"#274e13\", \"#0c343d\", \"#073763\", \"#20124d\", \"#4c1130\"]\r\n ],\r\n move: function(color){\r\n if (color != null) {\r\n color = color.toHexString();\r\n }\r\n else {\r\n color = \"#000\";\r\n }\r\n\r\n $(\"#luckysheet-alternateformat-colorSelect-dialog .currenColor span\").css(\"background-color\", color).attr(\"title\", color);\r\n }\r\n });\r\n },\r\n rangeDialog: function(value){\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-alternateformat-rangeDialog\").remove();\r\n\r\n const _locale = locale()\r\n const alternatingColors =_locale.alternatingColors;\r\n const locale_button = _locale.button;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-alternateformat-rangeDialog\", \r\n \"addclass\": \"luckysheet-alternateformat-rangeDialog\", \r\n \"title\": alternatingColors.selectRange, \r\n \"content\": '', \r\n \"botton\": '', \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-alternateformat-rangeDialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-alternateformat-rangeDialog\").css({ \r\n \"left\": (winw + scrollLeft - myw) / 2, \r\n \"top\": (winh + scrollTop - myh) / 3 \r\n }).show();\r\n },\r\n rangeIsExists: function(range, index){\r\n let _this = this;\r\n\r\n let isExists = false;\r\n let existsIndex = null;\r\n\r\n //\u83B7\u53D6\u5DF2\u6709\u4EA4\u66FF\u989C\u8272\u6240\u6709\u5E94\u7528\u8303\u56F4\r\n let AFarr = $.extend(true, [], Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_alternateformat_save\"]);\r\n\r\n if(index != undefined && index != null){\r\n if(AFarr.length > 1){\r\n AFarr.splice(index, 1);\r\n }\r\n else{\r\n AFarr = [];\r\n }\r\n }\r\n\r\n if(AFarr.length > 0){\r\n let arr = [];\r\n for(let i = 0; i < AFarr.length; i++){\r\n let obj = {\r\n \"index\": i,\r\n \"map\": _this.getRangeMap(AFarr[i][\"cellrange\"][\"row\"], AFarr[i][\"cellrange\"][\"column\"])\r\n }\r\n\r\n arr.push(obj);\r\n }\r\n \r\n //\u83B7\u53D6\u5F53\u524D\u9009\u533A\r\n let rangeMap = _this.getRangeMap(range[\"row\"], range[\"column\"]);\r\n \r\n //\u904D\u5386\r\n for(let x in rangeMap){\r\n if(isExists){\r\n break;\r\n } \r\n\r\n for(let j = 0; j < arr.length; j++){\r\n if(x in arr[j][\"map\"]){\r\n isExists = true;\r\n existsIndex = arr[j][\"index\"];\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return [isExists, existsIndex];\r\n },\r\n getRangeMap: function(row, column){\r\n let map = {};\r\n let st_r = row[0], ed_r = row[1], st_c = column[0], ed_c = column[1];\r\n \r\n for(let r = st_r; r <= ed_r; r++){\r\n for(let c = st_c; c <= ed_c; c++){\r\n map[r + \"_\" + c] = 0;\r\n }\r\n }\r\n \r\n return map;\r\n },\r\n getIndexByFormat: function(format){\r\n let _this = this;\r\n let index = null;\r\n\r\n //\u683C\u5F0F\u6837\u5F0F \u6A21\u677F\r\n let modelList = _this.FixedModelColor;\r\n for(let i = 0; i < modelList.length; i++){\r\n let obj = modelList[i];\r\n\r\n if(format[\"head\"].fc == obj[\"head\"].fc && format[\"head\"].bc == obj[\"head\"].bc){\r\n if(format[\"one\"].fc == obj[\"one\"].fc && format[\"one\"].bc == obj[\"one\"].bc){\r\n if(format[\"two\"].fc == obj[\"two\"].fc && format[\"two\"].bc == obj[\"two\"].bc){\r\n if(format[\"foot\"].fc == obj[\"foot\"].fc && format[\"foot\"].bc == obj[\"foot\"].bc){\r\n index = i;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n //\u81EA\u5B9A\u4E49 \u6A21\u677F\r\n let modelCustom = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_alternateformat_save_modelCustom\"];\r\n if(modelCustom != null && modelCustom.length > 0){\r\n for(let j = 0; j < modelCustom.length; j++){\r\n let obj = modelCustom[j];\r\n\r\n if(format[\"head\"].fc == obj[\"head\"].fc && format[\"head\"].bc == obj[\"head\"].bc){\r\n if(format[\"one\"].fc == obj[\"one\"].fc && format[\"one\"].bc == obj[\"one\"].bc){\r\n if(format[\"two\"].fc == obj[\"two\"].fc && format[\"two\"].bc == obj[\"two\"].bc){\r\n if(format[\"foot\"].fc == obj[\"foot\"].fc && format[\"foot\"].bc == obj[\"foot\"].bc){\r\n index = modelList.length + j;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n return index;\r\n },\r\n getFormatByIndex: function(){\r\n let _this = this;\r\n\r\n let index = _this.modelfocusIndex;\r\n let len = _this.FixedModelColor.length;\r\n\r\n let format = {};\r\n\r\n if(index < len){\r\n format = _this.FixedModelColor[index];\r\n }\r\n else{\r\n format = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_alternateformat_save_modelCustom\"][index - len];\r\n }\r\n\r\n return format;\r\n },\r\n new: function(cellrange){\r\n let _this = this;\r\n\r\n let format = _this.getFormatByIndex();\r\n\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n let ruleArr = file[\"luckysheet_alternateformat_save\"];\r\n \r\n if(ruleArr == null){\r\n ruleArr = [];\r\n }\r\n\r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let historyRules = $.extend(true, [], ruleArr);\r\n \r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n let obj = {\r\n \"cellrange\": {\r\n \"row\": cellrange[\"row\"],\r\n \"column\": cellrange[\"column\"]\r\n },\r\n \"format\": format,\r\n \"hasRowHeader\": true,\r\n \"hasRowFooter\": false\r\n }\r\n\r\n ruleArr.push(obj);\r\n\r\n let currentRules = $.extend(true, [], ruleArr);\r\n \r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, ruleArr, { \"k\": \"luckysheet_alternateformat_save\" });\r\n }\r\n },\r\n update: function(){\r\n let _this = this;\r\n const _locale = locale()\r\n const alternatingColors =_locale.alternatingColors;\r\n //\u83B7\u53D6\u6807\u8BC6\r\n let dataIndex = $(\"#luckysheet-alternateformat-remove\").data(\"index\");\r\n \r\n //\u5E94\u7528\u8303\u56F4\r\n let rangeValue = $(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-range input\").val().trim();\r\n \r\n if(!formula.iscelldata(rangeValue)){\r\n if(isEditMode()){\r\n alert(alternatingColors.errorNoRange);\r\n }\r\n else{\r\n tooltip.info(alternatingColors.errorNoRange, \"\");\r\n }\r\n\r\n return;\r\n }\r\n \r\n let cellrange = formula.getcellrange(rangeValue);\r\n let isExists = _this.rangeIsExists(cellrange, dataIndex)[0];\r\n\r\n if(isExists){\r\n if(isEditMode()){\r\n alert(alternatingColors.errorExistColors);\r\n }\r\n else{\r\n tooltip.info(alternatingColors.errorExistColors, \"\"); \r\n }\r\n\r\n return;\r\n }\r\n\r\n //\u9875\u7709\u3001\u9875\u811A\r\n let hasRowHeader;\r\n if($(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-rowHeader\").is(\":checked\")){\r\n hasRowHeader = true;\r\n }\r\n else{\r\n hasRowHeader = false; \r\n }\r\n\r\n let hasRowFooter;\r\n if($(\"#luckysheet-modal-dialog-slider-alternateformat #luckysheet-alternateformat-rowFooter\").is(\":checked\")){\r\n hasRowFooter = true;\r\n }\r\n else{\r\n hasRowFooter = false; \r\n }\r\n\r\n //\u83B7\u53D6\u9009\u4E2D\u6837\u5F0F\u6A21\u677F\u7684\u989C\u8272\r\n let format = _this.getFormatByIndex();\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n \r\n let ruleArr = file[\"luckysheet_alternateformat_save\"];\r\n if(ruleArr == null){\r\n ruleArr = [];\r\n }\r\n \r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let historyRules = $.extend(true, [], ruleArr);\r\n \r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n let obj = {\r\n \"cellrange\": {\r\n \"row\": cellrange[\"row\"],\r\n \"column\": cellrange[\"column\"]\r\n },\r\n \"format\": format,\r\n \"hasRowHeader\": hasRowHeader,\r\n \"hasRowFooter\": hasRowFooter\r\n }\r\n \r\n ruleArr[dataIndex] = obj;\r\n\r\n let currentRules = $.extend(true, [], ruleArr);\r\n \r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, ruleArr, { \"k\": \"luckysheet_alternateformat_save\" });\r\n }\r\n },\r\n checksAF: function(r, c, computeMap){\r\n if((r + \"_\" + c) in computeMap){\r\n //\u8FD4\u56DE\u503C\uFF08fc bc\uFF09\r\n return computeMap[r + \"_\" + c];\r\n }\r\n else{\r\n return null;\r\n }\r\n },\r\n getComputeMap: function(){\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n let ruleArr = file[\"luckysheet_alternateformat_save\"];\r\n\r\n let computeMap = this.compute(ruleArr);\r\n\r\n return computeMap;\r\n },\r\n compute: function(obj){\r\n //\u8BA1\u7B97\u5B58\u50A8\r\n let computeMap = {};\r\n\r\n if(obj != null && obj.length > 0){\r\n for(let i = 0; i < obj.length; i++){\r\n let cellrange = obj[i][\"cellrange\"];\r\n let format = obj[i][\"format\"];\r\n let hasRowHeader = obj[i][\"hasRowHeader\"];\r\n let hasRowFooter = obj[i][\"hasRowFooter\"];\r\n let st_r = cellrange[\"row\"][0], \r\n ed_r = cellrange[\"row\"][1], \r\n st_c = cellrange[\"column\"][0], \r\n ed_c = cellrange[\"column\"][1];\r\n \r\n if(hasRowHeader && hasRowFooter){\r\n //\u9875\u7709\u6240\u5728\u884C\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[st_r + \"_\" + c] = [format[\"head\"].fc, format[\"head\"].bc];\r\n }\r\n\r\n //\u4E2D\u95F4\u884C\r\n if(ed_r - st_r > 1){\r\n for(let r = st_r + 1; r < ed_r; r++){\r\n let fc, bc;\r\n if((r - st_r) % 2 != 0){\r\n fc = format[\"one\"].fc;\r\n bc = format[\"one\"].bc;\r\n }\r\n else{\r\n fc = format[\"two\"].fc;\r\n bc = format[\"two\"].bc;\r\n }\r\n\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[r + \"_\" + c] = [fc, bc];\r\n } \r\n }\r\n }\r\n\r\n //\u9875\u811A\u6240\u5728\u884C\r\n if(ed_r > st_r){\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[ed_r + \"_\" + c] = [format[\"foot\"].fc, format[\"foot\"].bc];\r\n }\r\n }\r\n }\r\n else if(hasRowHeader){\r\n //\u9875\u7709\u6240\u5728\u884C\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[st_r + \"_\" + c] = [format[\"head\"].fc, format[\"head\"].bc];\r\n }\r\n\r\n //\u4E2D\u95F4\u884C\r\n if(ed_r > st_r){\r\n for(let r = st_r + 1; r <= ed_r; r++){\r\n let fc, bc;\r\n if((r - st_r) % 2 != 0){\r\n fc = format[\"one\"].fc;\r\n bc = format[\"one\"].bc;\r\n }\r\n else{\r\n fc = format[\"two\"].fc;\r\n bc = format[\"two\"].bc;\r\n }\r\n\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[r + \"_\" + c] = [fc, bc];\r\n } \r\n }\r\n }\r\n }\r\n else if(hasRowFooter){\r\n //\u4E2D\u95F4\u884C\r\n if(ed_r > st_r){\r\n for(let r = st_r; r < ed_r; r++){\r\n let fc, bc;\r\n if((r - st_r) % 2 == 0){\r\n fc = format[\"one\"].fc;\r\n bc = format[\"one\"].bc;\r\n }\r\n else{\r\n fc = format[\"two\"].fc;\r\n bc = format[\"two\"].bc;\r\n }\r\n\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[r + \"_\" + c] = [fc, bc];\r\n }\r\n }\r\n }\r\n\r\n //\u9875\u811A\u6240\u5728\u884C\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[ed_r + \"_\" + c] = [format[\"foot\"].fc, format[\"foot\"].bc];\r\n }\r\n }\r\n else{\r\n //\u4E2D\u95F4\u884C\r\n for(let r = st_r; r <= ed_r; r++){\r\n let fc, bc;\r\n if((r - st_r) % 2 == 0){\r\n fc = format[\"one\"].fc;\r\n bc = format[\"one\"].bc;\r\n }\r\n else{\r\n fc = format[\"two\"].fc;\r\n bc = format[\"two\"].bc;\r\n }\r\n\r\n for(let c = st_c; c <= ed_c; c++){\r\n computeMap[r + \"_\" + c] = [fc, bc];\r\n } \r\n }\r\n }\r\n }\r\n }\r\n\r\n return computeMap;\r\n },\r\n ref: function(historyRules, currentRules){\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n let redo = {};\r\n redo[\"type\"] = \"updateAF\";\r\n redo[\"sheetIndex\"] = Store.currentSheetIndex;\r\n redo[\"data\"] = {\"historyRules\": historyRules, \"currentRules\": currentRules};\r\n Store.jfredo.push(redo); \r\n }\r\n\r\n let index = getSheetIndex(Store.currentSheetIndex);\r\n Store.luckysheetfile[index][\"luckysheet_alternateformat_save\"] = currentRules;\r\n\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n}\r\n\r\nexport default alternateformat;", "import { getObjType } from '../utils/util';\r\n\r\nconst json = {\r\n parseJsonParm: function(obj){\r\n if(obj == null){\r\n return {};\r\n }\r\n else if(getObjType(obj) == \"string\"){\r\n try {\r\n let json = new Function(\"return \" + obj)(); \r\n return json;\r\n } \r\n catch(e) {\r\n return {};\r\n }\r\n }\r\n else{\r\n return obj;\r\n }\r\n },\r\n hasKey: function(obj){\r\n let _this = this;\r\n let json = _this.parseJsonParm(obj);\r\n \r\n for(let item in json){\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n\r\nexport default json;", "import { getSheetIndex } from '../methods/get';\r\nimport editor from '../global/editor';\r\nimport { isRealNull, isEditMode } from '../global/validate';\r\nimport tooltip from '../global/tooltip';\r\nimport { rowlenByRange } from '../global/getRowlen';\r\nimport { selectHightlightShow } from './select';\r\nimport { luckysheetMoveEndCell } from './sheetMove';\r\nimport { luckysheetlodingHTML } from '../controllers/constant';\r\nimport server from './server';\r\nimport locale from '../locale/locale';\r\nimport Store from '../store';\r\nimport menuButton from './menuButton';\r\nimport conditionformat from './conditionformat';\r\nimport alternateformat from './alternateformat';\r\nimport {checkProtectionAuthorityNormal} from './protection';\r\nimport { \r\n rgbTohex, \r\n showrightclickmenu, \r\n} from '../utils/util';\r\nimport cleargridelement from '../global/cleargridelement';\r\nimport { \r\n jfrefreshgrid, \r\n jfrefreshgrid_rhcw,\r\n} from '../global/refresh';\r\nimport { orderbydata, orderbydata1D } from '../global/sort';\r\nimport json from '../global/json';\r\nimport { update, genarate } from '../global/format';\r\n\r\n//\u7B5B\u9009\u914D\u7F6E\u72B6\u6001\r\nfunction labelFilterOptionState($top, optionstate, rowhidden, caljs, notSave, str, edr, cindex, stc, edc) {\r\n if (optionstate) {\r\n $top.addClass(\"luckysheet-filter-options-active\").data(\"rowhidden\", JSON.stringify(rowhidden)).data(\"caljs\", JSON.stringify(caljs)).html('');\r\n\r\n if (caljs != null) {\r\n $top.data(\"byconditionvalue\", caljs[\"value\"]).data(\"byconditiontype\", caljs[\"type\"]).data(\"byconditiontext\", caljs[\"text\"]);\r\n \r\n if (caljs[\"value1\"] != null) {\r\n $top.data(\"byconditionvalue1\", caljs[\"value1\"]);\r\n }\r\n\r\n if (caljs[\"value2\"] != null) {\r\n $top.data(\"byconditionvalue2\", caljs[\"value2\"]);\r\n }\r\n }\r\n }\r\n else {\r\n $top.removeClass(\"luckysheet-filter-options-active\").data(\"rowhidden\", \"\").data(\"caljs\", \"\").html('');\r\n\r\n $top.data(\"byconditionvalue\", \"null\").data(\"byconditiontype\", \"0\").data(\"byconditiontext\", \"\u65E0\").data(\"byconditionvalue1\", \"\").data(\"byconditionvalue2\", \"\");\r\n }\r\n\r\n if(!!notSave){\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n if(file.filter == null){\r\n file.filter = {};\r\n }\r\n\r\n if (optionstate) {\r\n let param = {\r\n \"caljs\": caljs, \r\n \"rowhidden\": rowhidden, \r\n \"optionstate\": optionstate,\r\n \"str\": str,\r\n \"edr\": edr,\r\n \"cindex\": cindex,\r\n \"stc\": stc,\r\n \"edc\": edc\r\n };\r\n file.filter[cindex - stc] = param;\r\n }\r\n else {\r\n delete file.filter[cindex - stc];\r\n }\r\n\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.filter, { \"k\": \"filter\" });\r\n }\r\n}\r\n\r\n//\u7B5B\u9009\u6392\u5E8F\r\nfunction orderbydatafiler(str, stc, edr, edc, index, asc) {\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n\r\n str = str + 1;\r\n\r\n let hasMc = false; //\u6392\u5E8F\u9009\u533A\u662F\u5426\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let data = [];\r\n\r\n for(let r = str; r <= edr; r++){\r\n let data_row = [];\r\n\r\n for(let c = stc; c <= edc; c++){\r\n if(d[r][c] != null && d[r][c].mc != null){\r\n hasMc = true;\r\n break;\r\n }\r\n\r\n data_row.push(d[r][c]);\r\n }\r\n\r\n data.push(data_row);\r\n }\r\n\r\n if(hasMc){\r\n const locale_filter = locale().filter;\r\n\r\n if(isEditMode()){\r\n alert(locale_filter.mergeError);\r\n }\r\n else{\r\n tooltip.info(locale_filter.mergeError, \"\");\r\n }\r\n\r\n return;\r\n }\r\n\r\n data = orderbydata(data, index - stc, asc);\r\n\r\n for(let r = str; r <= edr; r++){\r\n for(let c = stc; c <= edc; c++){\r\n d[r][c] = data[r - str][c - stc];\r\n }\r\n }\r\n\r\n let allParam = {};\r\n if(Store.config[\"rowlen\"] != null){\r\n let cfg = $.extend(true, {}, Store.config);\r\n cfg = rowlenByRange(d, str, edr, cfg);\r\n\r\n allParam = {\r\n \"cfg\": cfg,\r\n \"RowlChange\": true\r\n }\r\n }\r\n\r\n jfrefreshgrid(d, [{ \"row\": [str, edr], \"column\": [stc, edc] }], allParam);\r\n}\r\n\r\n//\u521B\u5EFA\u7B5B\u9009\u6309\u94AE\r\nfunction createFilter() {\r\n\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"filter\")){\r\n return;\r\n }\r\n\r\n if(Store.luckysheet_select_save.length > 1){\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n $(\"#\" + Store.container).attr(\"tabindex\", 0).focus();\r\n\r\n const locale_splitText = locale().splitText;\r\n\r\n if(isEditMode()){\r\n alert(locale_splitText.tipNoMulti);\r\n }\r\n else{\r\n tooltip.info(locale_splitText.tipNoMulti, \"\");\r\n }\r\n\r\n return;\r\n }\r\n\r\n if(Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].isPivotTable){\r\n return;\r\n }\r\n\r\n $('#luckysheet-filter-selected-sheet' + Store.currentSheetIndex + ', #luckysheet-filter-options-sheet' + Store.currentSheetIndex).remove();\r\n\r\n let last = Store.luckysheet_select_save[0];\r\n if (last[\"row\"][0] == last[\"row\"][1] && last[\"column\"][0] == last[\"column\"][1]) {\r\n let st_c, ed_c, curR = last[\"row\"][1];\r\n\r\n for (let c = 0; c < Store.flowdata[curR].length; c++) {\r\n let cell = Store.flowdata[curR][c];\r\n\r\n if (cell != null && !isRealNull(cell.v)) {\r\n if (st_c == null) {\r\n st_c = c;\r\n }\r\n }\r\n else if (st_c != null) {\r\n ed_c = c - 1;\r\n break;\r\n }\r\n }\r\n\r\n if (ed_c == null) {\r\n ed_c = Store.flowdata[curR].length - 1;\r\n }\r\n\r\n Store.luckysheet_select_save = [{ \"row\": [curR, curR], \"column\": [st_c, ed_c] }];\r\n selectHightlightShow();\r\n\r\n Store.luckysheet_shiftpositon = $.extend(true, {}, last);\r\n luckysheetMoveEndCell(\"down\", \"range\");\r\n }\r\n else if (last[\"row\"][1] - last[\"row\"][0] < 2) {\r\n Store.luckysheet_shiftpositon = $.extend(true, {}, last);\r\n luckysheetMoveEndCell(\"down\", \"range\");\r\n }\r\n\r\n Store.luckysheet_filter_save = $.extend(true, {}, Store.luckysheet_select_save[0]);\r\n\r\n createFilterOptions(Store.luckysheet_filter_save);\r\n\r\n server.saveParam(\"all\", Store.currentSheetIndex, Store.luckysheet_filter_save, { \"k\": \"filter_select\" });\r\n\r\n if (Store.filterchage) {\r\n Store.jfredo.push({ \r\n \"type\": \"filtershow\", \r\n \"data\": [], \r\n \"curdata\": [], \r\n \"sheetIndex\": Store.currentSheetIndex, \r\n \"filter_save\": Store.luckysheet_filter_save \r\n });\r\n }\r\n}\r\n\r\n//\u521B\u5EFA\u7B5B\u9009\u914D\u7F6E\r\nfunction createFilterOptions(luckysheet_filter_save, filterObj) {\r\n $(\"#luckysheet-filter-selected-sheet\" + Store.currentSheetIndex).remove();\r\n $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex).remove();\r\n \r\n if(luckysheet_filter_save == null || JSON.stringify(luckysheet_filter_save) == \"{}\"){\r\n return;\r\n }\r\n\r\n let r1 = luckysheet_filter_save.row[0], \r\n r2 = luckysheet_filter_save.row[1];\r\n let c1 = luckysheet_filter_save.column[0], \r\n c2 = luckysheet_filter_save.column[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n \r\n let newSelectedHTML = '
';\r\n $(\"#luckysheet-cell-main\").append(newSelectedHTML);\r\n \r\n let optionHTML = \"\";\r\n\r\n for (let c = c1; c <= c2; c++) {\r\n const isHide = Store.config != null && Store.config[\"colhidden\"] != null && c in Store.config[\"colhidden\"]\r\n\r\n if(filterObj == null || filterObj[c - c1] == null){\r\n optionHTML += '
';\r\n }\r\n else{\r\n let caljs_data;\r\n\r\n if(filterObj[c - c1].caljs != null){\r\n let caljs_value1_data;\r\n if (filterObj[c - c1].caljs[\"value1\"] != null) {\r\n caljs_value1_data = 'data-byconditionvalue1=\"'+ filterObj[c - c1].caljs[\"value1\"] +'\" ';\r\n }\r\n else{\r\n caljs_value1_data = '';\r\n }\r\n\r\n let caljs_value2_data;\r\n if (filterObj[c - c1].caljs[\"value2\"] != null) {\r\n caljs_value2_data = 'data-byconditionvalue2=\"'+ filterObj[c - c1].caljs[\"value2\"] +'\" ';\r\n }\r\n else{\r\n caljs_value2_data = '';\r\n }\r\n\r\n caljs_data = 'data-caljs=\"'+ JSON.stringify(filterObj[c - c1].caljs) +'\" ' +\r\n 'data-byconditionvalue=\"'+ filterObj[c - c1].caljs[\"value\"] +'\" ' + \r\n 'data-byconditiontype=\"'+ filterObj[c - c1].caljs[\"type\"] +'\" ' +\r\n 'data-byconditiontext=\"'+ filterObj[c - c1].caljs[\"text\"] +'\" ' +\r\n caljs_value1_data + caljs_value2_data;\r\n }\r\n else{\r\n caljs_data = '';\r\n }\r\n\r\n optionHTML += '
';\r\n }\r\n }\r\n\r\n $(\"#luckysheet-cell-main\").append('
' + optionHTML + '
');\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n\r\n if ($(\"#luckysheet-cell-main\").scrollTop() > luckysheet_filter_save[\"top_move\"]) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(luckysheet_filter_save[\"top_move\"]);\r\n }\r\n\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n file.filter_select = luckysheet_filter_save;\r\n}\r\n\r\nfunction initialFilterHandler(){\r\n //filter event handler\r\n let hidefilersubmenu = null;\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n const locale_button= _locale.button;\r\n $(\"#luckysheetfilter\").click(createFilter);\r\n\r\n //\u53F3\u952E\u83DC\u5355 \u83DC\u5355\u9879hover\r\n let submenuhide = null, rightclickmenu = null;\r\n $(\".luckysheet-cols-menu .luckysheet-cols-submenu\").hover(\r\n function () {\r\n let $t = $(this), attrid = $t.attr(\"id\"), $attr = $(\"#\" + attrid + \"_sub\"), $con = $t.parent();\r\n let winW = $(window).width(), winH = $(window).height();\r\n let menuW = $con.width(), attrH = $attr.height() + 25, attrW = $attr.width() + 5;\r\n let offset = $t.offset();\r\n let top = offset.top, left = offset.left + menuW;\r\n\r\n if (left + attrW > winW) {\r\n left = offset.left - attrW;\r\n }\r\n\r\n if (top + attrH > winH) {\r\n top = winH - attrH;\r\n }\r\n\r\n $attr.css({ \"top\": top, \"left\": left }).show();\r\n rightclickmenu = $t;\r\n },\r\n function () {\r\n let $t = $(this), attrid = $t.attr(\"id\"), $attr = $(\"#\" + attrid + \"_sub\");\r\n submenuhide = setTimeout(function () { $attr.hide(); }, 200);\r\n }\r\n );\r\n\r\n $(\".luckysheet-rightgclick-menu-sub\").hover(\r\n function () {\r\n rightclickmenu.addClass(\"luckysheet-cols-menuitem-hover\");\r\n clearTimeout(submenuhide);\r\n },\r\n function () {\r\n rightclickmenu.removeClass(\"luckysheet-cols-menuitem-hover\");\r\n $(this).hide();\r\n }\r\n );\r\n\r\n $(\"#luckysheet-filter-menu\").mouseover(function () {\r\n clearTimeout(hidefilersubmenu);\r\n \r\n hidefilersubmenu = setTimeout(function () {\r\n $(\"#luckysheet-filter-submenu\").hide();\r\n }, 500);\r\n });\r\n \r\n\r\n $(\"#luckysheet-filter-submenu\").mouseover(function () {\r\n clearTimeout(hidefilersubmenu);\r\n }).find(\".luckysheet-cols-menuitem\").click(function (e) {\r\n $(\"#luckysheet-filter-selected span\").html($(this).find(\".luckysheet-cols-menuitem-content\").text()).data(\"value\", $(this).data(\"value\"));\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input\").hide();\r\n\r\n let $type = $(this).data(\"type\");\r\n let $value = $(this).attr(\"data-value\");\r\n \r\n if ($type == \"2\") {\r\n $(\"#luckysheet-filter-selected span\").data(\"type\", \"2\");\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input2\").show();\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input input\").prop(\"type\", \"number\");\r\n }\r\n else if ($type == \"0\") {\r\n $(\"#luckysheet-filter-selected span\").data(\"type\", \"0\");\r\n }\r\n else {\r\n $(\"#luckysheet-filter-selected span\").data(\"type\", \"1\");\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input\").eq(0).show();\r\n \r\n //\u82E5\u662F\u65E5\u671F \u6539\u53D8input type\u7C7B\u578B\u4E3Adate\r\n if($value == \"dateequal\" || $value == \"datelessthan\" || $value == \"datemorethan\"){\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input input\").prop(\"type\", \"date\");\r\n }\r\n else if($value == \"morethan\" || $value == \"moreequalthan\" || $value == \"lessthan\" || $value == \"lessequalthan\" || $value == \"equal\" || $value == \"noequal\"){\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input input\").prop(\"type\", \"number\");\r\n }\r\n else{\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input input\").prop(\"type\", \"text\");\r\n }\r\n }\r\n\r\n $(\"#luckysheet-filter-byvalue\").next().slideUp();\r\n $(\"#luckysheet-filter-submenu\").hide();\r\n });\r\n\r\n $(\"#luckysheet-filter-bycondition, #luckysheet-filter-byvalue\").click(function () {\r\n let $t = $(this);\r\n $t.next().slideToggle(200);\r\n\r\n setTimeout(function () {\r\n if ($t.attr(\"id\") == \"luckysheet-filter-bycondition\" && $(\"#luckysheet-filter-bycondition\").next().is(\":visible\")) {\r\n if ($(\"#luckysheet-filter-selected span\").text() != locale_filter.filiterInputNone) {\r\n $(\"#luckysheet-filter-byvalue\").next().slideUp(200);\r\n }\r\n }\r\n\r\n if ($t.is($(\"#luckysheet-filter-bycondition\"))) {\r\n if ($(\"#luckysheet-filter-bycondition\").next().is(\":hidden\") && $(\"#luckysheet-filter-byvalue\").next().is(\":hidden\")) {\r\n $(\"#luckysheet-filter-byvalue\").next().slideDown(200);\r\n }\r\n }\r\n }, 300);\r\n });\r\n\r\n $(\"#luckysheet-filter-selected\").click(function () {\r\n let $t = $(this), toffset = $t.offset(), $menu = $(\"#luckysheet-filter-submenu\");\r\n $menu.hide();\r\n \r\n let winH = $(window).height(), winW = $(window).width();\r\n let menuW = $menu.width(), menuH = $menu.height();\r\n let top = toffset.top, left = toffset.left, mheight = winH - toffset.top - 20;\r\n \r\n if (toffset.left + menuW > winW) {\r\n left = toffset.left - menuW;\r\n }\r\n \r\n if (toffset.top > winH / 2) {\r\n top = winH - toffset.top;\r\n \r\n if (top < 0) {\r\n top = 0;\r\n }\r\n \r\n mheight = toffset.top - 20;\r\n }\r\n \r\n $menu.css({ \"top\": top, \"left\": left, \"height\": mheight }).show();\r\n clearTimeout(hidefilersubmenu);\r\n });\r\n\r\n //\u7B5B\u9009\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6\r\n $(\"#luckysheet-cell-main\").on(\"click\", \".luckysheet-filter-options\", function (e) {\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"filter\")){\r\n return;\r\n }\r\n let $t = $(e.currentTarget), \r\n toffset = $t.offset(), \r\n $menu = $(\"#luckysheet-filter-menu\"), \r\n winH = $(window).height(), \r\n winW = $(window).width();\r\n\r\n let st_r = $t.data(\"str\"), \r\n ed_r = $t.data(\"edr\"), \r\n cindex = $t.data(\"cindex\"), \r\n st_c = $t.data(\"stc\"), \r\n ed_c = $t.data(\"edc\"), \r\n rowhidden = $t.data(\"rowhidden\") == \"\" ? {} : JSON.parse($t.data(\"rowhidden\").replace(/\\'/g, '\"'));\r\n\r\n $(\"body .luckysheet-cols-menu\").hide();\r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n $(\"#luckysheet-filter-byvalue-input\").val(\"\");\r\n $(\"#luckysheet-filter-bycondition\").next().hide();\r\n $(\"#luckysheet-filter-byvalue\").next().show();\r\n \r\n $menu.data(\"str\", st_r);\r\n $menu.data(\"edr\", ed_r);\r\n $menu.data(\"cindex\", cindex);\r\n $menu.data(\"stc\", st_c);\r\n $menu.data(\"edc\", ed_c);\r\n\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input\").hide().find(\"input\").val();\r\n $(\"#luckysheet-filter-selected span\").data(\"type\", \"0\").data(\"type\", null).text(locale_filter.filiterInputNone);\r\n\r\n let byconditiontype = $t.data(\"byconditiontype\");\r\n $(\"#luckysheet-filter-selected span\").data(\"value\", $t.data(\"byconditionvalue\")).data(\"type\", byconditiontype).text($t.data(\"byconditiontext\"));\r\n\r\n if (byconditiontype == \"2\") {\r\n let $input = $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input2\").show().find(\"input\");\r\n $input.eq(0).val($t.data(\"byconditionvalue1\"));\r\n $input.eq(1).val($t.data(\"byconditionvalue2\"));\r\n }\r\n else if (byconditiontype == \"1\") {\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input\").eq(0).show().find(\"input\").val($t.data(\"byconditionvalue1\"));\r\n }\r\n\r\n $(\"#luckysheet-filter-orderby-asc\").off(\"click\").on(\"click\", function () {\r\n orderbydatafiler(st_r, st_c, ed_r, ed_c, cindex, true);\r\n });\r\n\r\n $(\"#luckysheet-filter-orderby-desc\").off(\"click\").on(\"click\", function () {\r\n orderbydatafiler(st_r, st_c, ed_r, ed_c, cindex, false);\r\n });\r\n\r\n const loadingObj = luckysheetlodingHTML(\"#luckysheet-filter-byvalue-select\",{text:locale_filter.filiterMoreDataTip});\r\n $(\"#luckysheet-filter-byvalue-select\").empty().append(loadingObj.el);\r\n\r\n let rowhiddenother = {}; //\u5176\u5B83\u7B5B\u9009\u5217\u7684\u9690\u85CF\u884C\r\n $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").not(this).each(function () {\r\n let $t = $(this), rh = $t.data(\"rowhidden\");\r\n \r\n if (rh == \"\") {\r\n return true;\r\n }\r\n\r\n rh = JSON.parse(rh.replace(/\\'/g, '\"'));\r\n \r\n for (let r in rh) {\r\n rowhiddenother[r] = 0;\r\n }\r\n });\r\n\r\n let data = Store.flowdata;\r\n\r\n setTimeout(function () {\r\n //\u65E5\u671F\u503C\r\n let dvmap = {}; \r\n let dvmap_uncheck = {};\r\n\r\n //\u9664\u65E5\u671F\u4EE5\u5916\u7684\u503C\r\n let vmap = {}; \r\n let vmap_uncheck = {}; \r\n\r\n for (let r = st_r + 1; r <= ed_r; r++) {\r\n if(r in rowhiddenother){\r\n continue;\r\n }\r\n\r\n if(Store.flowdata[r] == null){\r\n continue;\r\n }\r\n\r\n let cell = Store.flowdata[r][cindex];\r\n\r\n if(cell != null && !isRealNull(cell.v) && cell.ct != null && cell.ct.t == \"d\" ){ //\u5355\u5143\u683C\u662F\u65E5\u671F\r\n let v = update(\"YYYY-MM-DD\", cell.v);\r\n\r\n let y = v.split(\"-\")[0];\r\n let m = v.split(\"-\")[1];\r\n let d = v.split(\"-\")[2];\r\n\r\n if(!(y in dvmap)){\r\n dvmap[y] = {};\r\n }\r\n\r\n if(!(m in dvmap[y])){\r\n dvmap[y][m] = {};\r\n }\r\n\r\n if(!(d in dvmap[y][m])){\r\n dvmap[y][m][d] = 0;\r\n }\r\n \r\n dvmap[y][m][d]++;\r\n\r\n if(r in rowhidden){\r\n dvmap_uncheck[y] = 0;\r\n dvmap_uncheck[m] = 0;\r\n dvmap_uncheck[d] = 0;\r\n }\r\n }\r\n else{\r\n let v, m;\r\n if((cell == null || isRealNull(cell.v)) && cell?.mc){\r\n const { r, c } = cell.mc;\r\n const mainCell = Store.flowdata[r][c];\r\n v = mainCell.v;\r\n m = mainCell.m;\r\n }\r\n else if(cell == null || isRealNull(cell.v)){\r\n v = null;\r\n m = null;\r\n }\r\n else{\r\n v = cell.v;\r\n m = cell.m;\r\n }\r\n\r\n if(!(v in vmap)){\r\n vmap[v] = {};\r\n }\r\n\r\n if(!(m in vmap[v])){\r\n vmap[v][m] = 0; \r\n }\r\n\r\n vmap[v][m]++;\r\n\r\n if(r in rowhidden){\r\n vmap_uncheck[v + \"#$$$#\" + m] = 0;\r\n }\r\n }\r\n }\r\n\r\n //\u904D\u5386\u6570\u636E\u52A0\u5230\u9875\u9762\r\n let item = [];\r\n\r\n if(JSON.stringify(dvmap).length > 2){\r\n for(let y in dvmap){\r\n let ysum = 0;\r\n let monthHtml = '';\r\n\r\n for(let m in dvmap[y]){\r\n let msum = 0;\r\n let dayHtml = '';\r\n\r\n for(let d in dvmap[y][m]){\r\n let dayL = dvmap[y][m][d];\r\n msum += dayL;\r\n\r\n //\u6708 \u5C0F\u4E8E 10\r\n let mT;\r\n if(Number(m) < 10){\r\n mT = \"0\" + Number(m);\r\n }\r\n else{\r\n mT = m; \r\n }\r\n\r\n //\u65E5 \u5C0F\u4E8E 10\r\n let dT;\r\n if(Number(d) < 10){\r\n dT = \"0\" + Number(d);\r\n }\r\n else{\r\n dT = d; \r\n }\r\n\r\n //\u65E5\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n if((y in dvmap_uncheck) && (m in dvmap_uncheck) && (d in dvmap_uncheck)){\r\n dayHtml += '
' +\r\n '' +\r\n '' +\r\n '( ' + dayL + ' )' +\r\n '
';\r\n }\r\n else{\r\n dayHtml += '
' +\r\n '' +\r\n '' +\r\n '( ' + dayL + ' )' +\r\n '
';\r\n }\r\n }\r\n\r\n ysum += msum;\r\n \r\n //\u6708 \u5C0F\u4E8E 10\r\n let mT2;\r\n if(Number(m) < 10){\r\n mT2 = \"0\" + Number(m);\r\n }\r\n else{\r\n mT2 = m; \r\n }\r\n\r\n //\u6708\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n if((y in dvmap_uncheck) && (m in dvmap_uncheck)){\r\n monthHtml += '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '' +\r\n '( ' + msum + ' )' +\r\n '
' +\r\n '
' + dayHtml + '
' +\r\n '
';\r\n }\r\n else{\r\n monthHtml += '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '' +\r\n '( ' + msum + ' )' +\r\n '
' +\r\n '
' + dayHtml + '
' +\r\n '
';\r\n }\r\n }\r\n\r\n //\u5E74\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n let yearHtml;\r\n if(y in dvmap_uncheck){\r\n yearHtml = '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '' +\r\n '( ' + ysum + ' )' +\r\n '
' +\r\n '
' + monthHtml + '
' +\r\n '
';\r\n }\r\n else{\r\n yearHtml = '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '' +\r\n '( ' + ysum + ' )' +\r\n '
' +\r\n '
' + monthHtml + '
' +\r\n '
';\r\n }\r\n\r\n item.unshift(yearHtml);\r\n }\r\n }\r\n\r\n if(JSON.stringify(vmap).length > 2){\r\n let vmapKeys = Object.keys(vmap);\r\n vmapKeys = orderbydata1D(vmapKeys, true);\r\n\r\n for(let i = 0; i < vmapKeys.length; i++){\r\n let v = vmapKeys[i];\r\n\r\n for(let x in vmap[v]){\r\n let text;\r\n if((v + \"#$$$#\" + x) == \"null#$$$#null\"){\r\n text = locale_filter.valueBlank;\r\n }\r\n else{\r\n text = x;\r\n }\r\n\r\n //\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n let dataHtml;\r\n if((v + \"#$$$#\" + x) in vmap_uncheck){\r\n dataHtml = '
' +\r\n '' +\r\n '' +\r\n '( ' + vmap[v][x] + ' )' +\r\n '
';\r\n }\r\n else{\r\n dataHtml = '
' +\r\n '' +\r\n '' +\r\n '( ' + vmap[v][x] + ' )' +\r\n '
';\r\n }\r\n\r\n item.push(dataHtml);\r\n }\r\n }\r\n }\r\n\r\n // \u9002\u914D\u5C0F\u5C4F\u8BBE\u5907\r\n let containerH = winH - toffset.top - 350\r\n if (containerH < 0) containerH = 100\r\n //$(\"#luckysheet-filter-byvalue-select\").html(\"
\" + item.join(\"\") + \"
\");\r\n\r\n $(\"#luckysheet-filter-byvalue-select\").append(\"
\" + item.join(\"\") + \"
\");\r\n loadingObj.close();\r\n }, 1);\r\n\r\n showrightclickmenu($menu, toffset.left, toffset.top + 20);\r\n\r\n e.stopPropagation();\r\n return false;\r\n });\r\n\r\n //\u6309\u989C\u8272\u7B5B\u9009\r\n $(\"#luckysheet-filter-orderby-color\").hover(\r\n function(){\r\n //\u904D\u5386\u7B5B\u9009\u5217\u989C\u8272\r\n let $menu = $(\"#luckysheet-filter-menu\");\r\n let st_r = $menu.data(\"str\"), \r\n ed_r = $menu.data(\"edr\"), \r\n cindex = $menu.data(\"cindex\"), \r\n st_c = $menu.data(\"stc\"), \r\n ed_c = $menu.data(\"edc\");\r\n let bgMap = {}; //\u5355\u5143\u683C\u989C\u8272\r\n let fcMap = {}; //\u5B57\u4F53\u989C\u8272\r\n \r\n let af_compute = alternateformat.getComputeMap();\r\n let cf_compute = conditionformat.getComputeMap();\r\n \r\n for (let r = st_r + 1; r <= ed_r; r++) {\r\n let cell = Store.flowdata[r][cindex];\r\n \r\n //\u5355\u5143\u683C\u989C\u8272\r\n let bg = menuButton.checkstatus(Store.flowdata, r, cindex , \"bg\");\r\n\r\n if(bg == null){\r\n bg = \"#ffffff\";\r\n }\r\n \r\n let checksAF = alternateformat.checksAF(r, cindex, af_compute);\r\n if(checksAF != null){//\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272\r\n bg = checksAF[1];\r\n }\r\n \r\n let checksCF = conditionformat.checksCF(r, cindex, cf_compute);\r\n if(checksCF != null && checksCF[\"cellColor\"] != null){//\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F\r\n bg = checksCF[\"cellColor\"];\r\n }\r\n \r\n if(bg.indexOf(\"rgb\") > -1){\r\n bg = rgbTohex(bg);\r\n }\r\n \r\n if(bg.length == 4){\r\n bg = bg.substr(0, 1) + bg.substr(1, 1).repeat(2) + bg.substr(2, 1).repeat(2) + bg.substr(3, 1).repeat(2);\r\n }\r\n \r\n //\u5B57\u4F53\u989C\u8272\r\n let fc = menuButton.checkstatus(Store.flowdata, r, cindex , \"fc\");\r\n \r\n if(checksAF != null){//\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272\r\n fc = checksAF[0];\r\n }\r\n \r\n if(checksCF != null && checksCF[\"textColor\"] != null){//\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F\r\n fc = checksCF[\"textColor\"];\r\n }\r\n \r\n if(fc.indexOf(\"rgb\") > -1){\r\n fc = rgbTohex(fc);\r\n }\r\n \r\n if(fc.length == 4){\r\n fc = fc.substr(0, 1) + fc.substr(1, 1).repeat(2) + fc.substr(2, 1).repeat(2) + fc.substr(3, 1).repeat(2);\r\n }\r\n \r\n if(Store.config != null && Store.config[\"rowhidden\"] != null && r in Store.config[\"rowhidden\"]){\r\n bgMap[bg] = 1;\r\n \r\n if(cell != null && !isRealNull(cell.v)){\r\n fcMap[fc] = 1;\r\n }\r\n }\r\n else{\r\n bgMap[bg] = 0;\r\n \r\n if(cell != null && !isRealNull(cell.v)){\r\n fcMap[fc] = 0;\r\n }\r\n }\r\n }\r\n //\r\n let filterBgColorHtml = '';\r\n if(JSON.stringify(bgMap).length > 2 && Object.keys(bgMap).length > 1){\r\n let bgColorItemHtml = '';\r\n for(let b in bgMap){\r\n if(bgMap[b] == 0){\r\n bgColorItemHtml += '
';\r\n }\r\n else{\r\n bgColorItemHtml += '
';\r\n }\r\n }\r\n filterBgColorHtml = '
'+locale_filter.filiterByColorTip+'
' + bgColorItemHtml + '
';\r\n }\r\n \r\n let filterFcColorHtml = '';\r\n if(JSON.stringify(fcMap).length > 2 && Object.keys(fcMap).length > 1){\r\n let fcColorItemHtml = '';\r\n for(let f in fcMap){\r\n if(fcMap[f] == 0){\r\n fcColorItemHtml += '
';\r\n }\r\n else{\r\n fcColorItemHtml += '
';\r\n }\r\n }\r\n filterFcColorHtml = '
'+locale_filter.filiterByTextColorTip+'
' + fcColorItemHtml + '
';\r\n }\r\n //\r\n let content;\r\n if(filterBgColorHtml == '' && filterFcColorHtml == ''){\r\n content = '
'+locale_filter.filterContainerOneColorTip+'
';\r\n }\r\n else{\r\n content = filterBgColorHtml + filterFcColorHtml + '
';\r\n }\r\n //\u989C\u8272\u7B5B\u9009\u5B50\u83DC\u5355\r\n $(\"#luckysheet-filter-orderby-color-submenu\").remove();\r\n $(\"body\").append('
'+content+'
');\r\n let $t = $(\"#luckysheet-filter-orderby-color-submenu\").end();\r\n let $con = $(this).parent();\r\n let winW = $(window).width(), winH = $(window).height();\r\n let menuW = $con.width(), \r\n myh = $t.height() + 25, \r\n myw = $t.width() + 5;\r\n let offset = $(this).offset();\r\n let top = offset.top, left = offset.left + menuW;\r\n \r\n if (left + myw > winW) {\r\n left = offset.left - myw;\r\n }\r\n \r\n if (top + myh > winH) {\r\n top = winH - myh;\r\n }\r\n \r\n $(\"#luckysheet-filter-orderby-color-submenu\").css({ \"top\": top, \"left\": left }).show();\r\n },\r\n function(){\r\n submenuhide = setTimeout(function () { $(\"#luckysheet-filter-orderby-color-submenu\").hide(); }, 200);\r\n }\r\n );\r\n\r\n $(document).on(\"mouseover mouseleave\", \"#luckysheet-filter-orderby-color-submenu\", function(e){\r\n if (e.type === \"mouseover\") {\r\n clearTimeout(submenuhide);\r\n } \r\n else {\r\n $(this).hide();\r\n }\r\n });\r\n $(document).on(\"click\", \"#luckysheet-filter-orderby-color-submenu .item label\", function(){\r\n $(this).siblings(\"input[type='checkbox']\").click();\r\n });\r\n $(document).off(\"click.orderbyColorConfirm\").on(\"click.orderbyColorConfirm\", \"#luckysheet-filter-orderby-color-submenu #luckysheet-filter-orderby-color-confirm\", function(){\r\n let bg_colorMap = {};\r\n let fc_colorMap = {};\r\n \r\n $(\"#luckysheet-filter-orderby-color-submenu .item\").each(function(i, e){\r\n if($(e).find(\"input[type='checkbox']\").is(\":checked\")){\r\n let color = $(this).find(\"label\").attr(\"title\");\r\n let $id = $(this).closest(\".box\").attr(\"id\");\r\n \r\n if($id == \"filterBgColor\"){\r\n bg_colorMap[color] = 0;\r\n }\r\n else if($id == \"filterFcColor\"){\r\n fc_colorMap[color] = 0;\r\n }\r\n }\r\n });\r\n \r\n let bg_filter;\r\n if($(\"#luckysheet-filter-orderby-color-submenu #filterBgColor\").length > 0){\r\n bg_filter = true;\r\n }\r\n else{\r\n bg_filter = false;\r\n }\r\n \r\n let fc_filter;\r\n if($(\"#luckysheet-filter-orderby-color-submenu #filterFcColor\").length > 0){\r\n fc_filter = true;\r\n }\r\n else{\r\n fc_filter = false;\r\n }\r\n \r\n let $menu = $(\"#luckysheet-filter-menu\");\r\n let st_r = $menu.data(\"str\"), \r\n ed_r = $menu.data(\"edr\"), \r\n cindex = $menu.data(\"cindex\"), \r\n st_c = $menu.data(\"stc\"), \r\n ed_c = $menu.data(\"edc\");\r\n \r\n let rowhiddenother = {}; //\u5176\u5B83\u7B5B\u9009\u5217\u7684\u9690\u85CF\u884C\r\n $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").not($(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").eq(cindex - st_c).get(0)).each(function () {\r\n let $t = $(this), rh = $t.data(\"rowhidden\");\r\n \r\n if (rh == \"\") {\r\n return true;\r\n }\r\n \r\n rh = JSON.parse(rh);\r\n \r\n for (let r in rh) {\r\n rowhiddenother[r] = 0;\r\n }\r\n });\r\n \r\n let filterdata = {};\r\n let rowhidden = {};\r\n let caljs = {};\r\n \r\n let af_compute = alternateformat.getComputeMap();\r\n let cf_compute = conditionformat.getComputeMap();\r\n \r\n for (let r = st_r + 1; r <= ed_r; r++) {\r\n if(r in rowhiddenother){\r\n continue;\r\n }\r\n \r\n if(Store.flowdata[r] == null){\r\n continue;\r\n }\r\n \r\n let cell = Store.flowdata[r][cindex];\r\n \r\n //\u5355\u5143\u683C\u989C\u8272\r\n let bg = menuButton.checkstatus(Store.flowdata, r, cindex , \"bg\");\r\n \r\n let checksAF = alternateformat.checksAF(r, cindex, af_compute);\r\n if(checksAF != null){//\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272\r\n bg = checksAF[1];\r\n }\r\n \r\n let checksCF = conditionformat.checksCF(r, cindex, cf_compute);\r\n if(checksCF != null && checksCF[\"cellColor\"] != null){//\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F\r\n bg = checksCF[\"cellColor\"];\r\n }\r\n \r\n // bg maybe null\r\n bg = bg == null ? '#ffffff' : bg;\r\n\r\n if(bg.indexOf(\"rgb\") > -1){\r\n bg = rgbTohex(bg);\r\n }\r\n \r\n if(bg.length == 4){\r\n bg = bg.substr(0, 1) + bg.substr(1, 1).repeat(2) + bg.substr(2, 1).repeat(2) + bg.substr(3, 1).repeat(2);\r\n }\r\n \r\n //\u6587\u672C\u989C\u8272\r\n let fc = menuButton.checkstatus(Store.flowdata, r, cindex , \"fc\");\r\n \r\n if(checksAF != null){//\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272\r\n fc = checksAF[0];\r\n }\r\n \r\n if(checksCF != null && checksCF[\"textColor\"] != null){//\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F\r\n fc = checksCF[\"textColor\"];\r\n }\r\n \r\n if(fc.indexOf(\"rgb\") > -1){\r\n fc = rgbTohex(fc);\r\n }\r\n \r\n if(fc.length == 4){\r\n fc = fc.substr(0, 1) + fc.substr(1, 1).repeat(2) + fc.substr(2, 1).repeat(2) + fc.substr(3, 1).repeat(2);\r\n }\r\n \r\n if(bg_filter && fc_filter){\r\n if(!(bg in bg_colorMap) && (!(fc in fc_colorMap) || cell == null || isRealNull(cell.v))){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if(bg_filter){\r\n if(!(bg in bg_colorMap)){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if(fc_filter){\r\n if(!(fc in fc_colorMap) || cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n \r\n let $top = $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").eq(cindex - st_c);\r\n \r\n let optionstate = Object.keys(rowhidden).length > 0;\r\n \r\n let rowhiddenall = $.extend(true, rowhiddenother, rowhidden), \r\n rowhidenPre = json.parseJsonParm($top.data(\"rowhidden\"));\r\n \r\n labelFilterOptionState($top, optionstate, rowhidden, caljs, true, st_r, ed_r, cindex, st_c, ed_c);\r\n \r\n let cfg = $.extend(true, {}, Store.config);\r\n cfg[\"rowhidden\"] = rowhiddenall;\r\n \r\n //\u4FDD\u5B58\u64A4\u9500\r\n if(Store.clearjfundo){\r\n let redo = {};\r\n redo[\"type\"] = \"datachangeAll_filter\";\r\n redo[\"sheetIndex\"] = Store.currentSheetIndex;\r\n \r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n redo[\"curconfig\"] = cfg;\r\n \r\n redo[\"optionstate\"] = optionstate;\r\n redo[\"optionsindex\"] = cindex - st_c;\r\n \r\n redo[\"rowhidden\"] = $.extend(true, {}, rowhidden);\r\n redo[\"rowhidenPre\"] = $.extend(true, {}, rowhidenPre);\r\n \r\n if (caljs != null) {\r\n redo[\"caljs\"] = caljs;\r\n }\r\n \r\n Store.jfundo.length = 0;\r\n Store.jfredo.push(redo);\r\n }\r\n \r\n //config\r\n Store.config = cfg;\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].config = Store.config;\r\n \r\n server.saveParam(\"cg\", Store.currentSheetIndex, cfg[\"rowhidden\"], { \"k\": \"rowhidden\" });\r\n \r\n //\u884C\u9AD8\u3001\u5217\u5BBD \u5237\u65B0 \r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n \r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu, #luckysheet-filter-orderby-color-submenu\").hide();\r\n cleargridelement();\r\n });\r\n\r\n //\u70B9\u51FB\u590D\u9009\u6846\r\n $(document).off(\"click.filterCheckbox1\").on(\"click.filterCheckbox1\", \"#luckysheet-filter-byvalue-select .textBox\",function(){\r\n if($(this).attr(\"data-check\") == \"true\"){\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this).find(\"input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n else{\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this).find(\"input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n })\r\n $(document).off(\"click.filterCheckbox2\").on(\"click.filterCheckbox2\", \"#luckysheet-filter-byvalue-select .year\",function(){\r\n if($(this).attr(\"data-check\") == \"true\"){\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this).parents(\".yearBox\").find(\".month\").attr(\"data-check\", \"false\");\r\n $(this).parents(\".yearBox\").find(\".day\").attr(\"data-check\", \"false\");\r\n $(this).parents(\".yearBox\").find(\"input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n else{\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this).parents(\".yearBox\").find(\".month\").attr(\"data-check\", \"true\");\r\n $(this).parents(\".yearBox\").find(\".day\").attr(\"data-check\", \"true\");\r\n $(this).parents(\".yearBox\").find(\"input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n })\r\n $(document).off(\"click.filterCheckbox3\").on(\"click.filterCheckbox3\", \"#luckysheet-filter-byvalue-select .month\",function(){\r\n //\u6708\u4EFD \u5BF9\u5E94\u7684 \u5929\r\n if($(this).attr(\"data-check\") == \"true\"){\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this).parents(\".monthBox\").find(\".day\").attr(\"data-check\", \"false\");\r\n $(this).parents(\".monthBox\").find(\"input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n else{\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this).parents(\".monthBox\").find(\".day\").attr(\"data-check\", \"true\");\r\n $(this).parents(\".monthBox\").find(\"input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n //\u6708\u4EFD \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let yearDayAllCheck = true;\r\n let $yearDay = $(this).parents(\".yearBox\").find(\".day\");\r\n $yearDay.each(function(i,e){\r\n if($(e).attr(\"data-check\") == \"true\"){\r\n \r\n }\r\n else{\r\n yearDayAllCheck = false;\r\n }\r\n });\r\n if(yearDayAllCheck){\r\n $(this).parents(\".yearBox\").find(\".year\").attr(\"data-check\", \"true\");\r\n $(this).parents(\".yearBox\").find(\".year input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n else{\r\n $(this).parents(\".yearBox\").find(\".year\").attr(\"data-check\", \"false\");\r\n $(this).parents(\".yearBox\").find(\".year input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n })\r\n $(document).off(\"click.filterCheckbox4\").on(\"click.filterCheckbox4\", \"#luckysheet-filter-byvalue-select .day\",function(){\r\n if($(this).attr(\"data-check\") == \"true\"){\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this).find(\"input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n else{\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this).find(\"input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n //\u5929 \u5BF9\u5E94\u7684 \u6708\u4EFD\r\n let monthDayAllCheck = true;\r\n let $monthDay = $(this).parents(\".monthBox\").find(\".day\");\r\n $monthDay.each(function(i,e){\r\n if($(e).attr(\"data-check\") == \"true\"){\r\n \r\n }\r\n else{\r\n monthDayAllCheck = false;\r\n }\r\n });\r\n if(monthDayAllCheck){\r\n $(this).parents(\".monthBox\").find(\".month\").attr(\"data-check\", \"true\");\r\n $(this).parents(\".monthBox\").find(\".month input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n else{\r\n $(this).parents(\".monthBox\").find(\".month\").attr(\"data-check\", \"false\");\r\n $(this).parents(\".monthBox\").find(\".month input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n //\u5929 \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let yearDayAllCheck = true;\r\n let $yearDay = $(this).parents(\".yearBox\").find(\".day\");\r\n $yearDay.each(function(i,e){\r\n if($(e).attr(\"data-check\") == \"true\"){\r\n \r\n }\r\n else{\r\n yearDayAllCheck = false;\r\n }\r\n });\r\n if(yearDayAllCheck){\r\n $(this).parents(\".yearBox\").find(\".year\").attr(\"data-check\", \"true\");\r\n $(this).parents(\".yearBox\").find(\".year input[type='checkbox']\").prop(\"checked\", true);\r\n }\r\n else{\r\n $(this).parents(\".yearBox\").find(\".year\").attr(\"data-check\", \"false\");\r\n $(this).parents(\".yearBox\").find(\".year input[type='checkbox']\").removeAttr(\"checked\");\r\n }\r\n })\r\n\r\n //\u65E5\u671F \u4E09\u7EA7\u4E0B\u62C9\u663E\u793A\r\n $(document).off(\"click.filterYearDropdown\").on(\"click.filterYearDropdown\", \"#luckysheet-filter-byvalue-select .yearBox .fa-caret-right\",function(event){\r\n let $p = $(this).parents(\".luckysheet-mousedown-cancel\");\r\n if($p.hasClass(\"year\")){\r\n $(this).parents(\".yearBox\").find(\".monthList\").slideToggle();\r\n }\r\n if($p.hasClass(\"month\")){\r\n $(this).parents(\".monthBox\").find(\".dayList\").slideToggle();\r\n }\r\n\r\n event.stopPropagation();\r\n });\r\n\r\n //\u5168\u9009\r\n $(\"#luckysheet-filter-byvalue-btn-all\").click(function () {\r\n $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\").prop(\"checked\", true);\r\n $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\").parents(\".luckysheet-mousedown-cancel\").attr(\"data-check\", \"true\");\r\n });\r\n\r\n //\u6E05\u9664\r\n $(\"#luckysheet-filter-byvalue-btn-clear\").click(function () {\r\n $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\").removeAttr(\"checked\");\r\n $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\").parents(\".luckysheet-mousedown-cancel\").attr(\"data-check\", \"false\");\r\n });\r\n\r\n //\u53CD\u9009\r\n $(\"#luckysheet-filter-byvalue-btn-contra\").click(function () {\r\n let $input = $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\");\r\n $input.each(function(i, e){\r\n if($(e).is(\":checked\")){\r\n $(e).removeAttr(\"checked\");\r\n $(e).parents(\".luckysheet-mousedown-cancel\").attr(\"data-check\", \"false\");\r\n }\r\n else{\r\n $(e).prop(\"checked\", true);\r\n $(e).parents(\".luckysheet-mousedown-cancel\").attr(\"data-check\", \"true\");\r\n }\r\n });\r\n //\u5929 \u5BF9\u5E94\u7684 \u6708\u4EFD\r\n let $month = $(\"#luckysheet-filter-byvalue-select .ListBox .monthBox\");\r\n $month.each(function(index, event){\r\n let monthDayAllCheck = true;\r\n let $monthDay = $(event).find(\".day input[type='checkbox']\");\r\n $monthDay.each(function(i,e){\r\n if($(e).is(\":checked\")){\r\n \r\n }\r\n else{\r\n monthDayAllCheck = false;\r\n }\r\n });\r\n if(monthDayAllCheck){\r\n $(event).find(\".month input[type='checkbox']\").prop(\"checked\", true);\r\n $(event).attr(\"data-check\", \"true\");\r\n }\r\n else{\r\n $(event).find(\".month input[type='checkbox']\").removeAttr(\"checked\");\r\n $(event).attr(\"data-check\", \"false\");\r\n }\r\n });\r\n //\u5929 \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let $year = $(\"#luckysheet-filter-byvalue-select .ListBox .yearBox\");\r\n $year.each(function(index, event){\r\n let yearDayAllCheck = true;\r\n let $yearDay = $(event).find(\".day input[type='checkbox']\");\r\n $yearDay.each(function(i,e){\r\n if($(e).is(\":checked\")){\r\n \r\n }\r\n else{\r\n yearDayAllCheck = false;\r\n }\r\n });\r\n if(yearDayAllCheck){\r\n $(event).find(\".year input[type='checkbox']\").prop(\"checked\", true);\r\n $(event).attr(\"data-check\", \"true\");\r\n }\r\n else{\r\n $(event).find(\".year input[type='checkbox']\").removeAttr(\"checked\");\r\n $(event).attr(\"data-check\", \"false\");\r\n }\r\n });\r\n });\r\n\r\n //\u6E05\u9664\u7B5B\u9009\r\n $(\"#luckysheet-filter-initial\").click(function () {\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"filter\")){\r\n return;\r\n }\r\n\r\n $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input\").hide().find(\"input\").val();\r\n $(\"#luckysheet-filter-selected span\").data(\"type\", \"0\").data(\"type\", null).text(locale_filter.conditionNone);\r\n\r\n let redo = {};\r\n redo[\"type\"] = \"datachangeAll_filter_clear\";\r\n redo[\"sheetIndex\"] = Store.currentSheetIndex;\r\n\r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n Store.config[\"rowhidden\"] = {};\r\n redo[\"curconfig\"] = $.extend(true, {}, Store.config);\r\n\r\n redo[\"filter_save\"] = $.extend(true, {}, Store.luckysheet_filter_save);\r\n\r\n let optiongroups = [];\r\n $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").each(function () {\r\n let $t = $(this);\r\n\r\n let optionstate = $t.hasClass(\"luckysheet-filter-options-active\");\r\n let rowhidden = json.parseJsonParm($t.data(\"rowhidden\"));\r\n let caljs = json.parseJsonParm($t.data(\"caljs\"));\r\n\r\n optiongroups.push({\r\n \"optionstate\":optionstate,\r\n \"rowhidden\": rowhidden, \r\n \"caljs\":caljs, \r\n \"str\": $t.data(\"str\"),\r\n \"edr\": $t.data(\"edr\"),\r\n \"cindex\": $t.data(\"cindex\"),\r\n \"stc\": $t.data(\"stc\"),\r\n \"edc\": $t.data(\"edc\")\r\n });\r\n });\r\n redo[\"optiongroups\"] = optiongroups;\r\n\r\n Store.jfundo.length = 0;\r\n Store.jfredo.push(redo);\r\n\r\n $('#luckysheet-filter-selected-sheet' + Store.currentSheetIndex + ', #luckysheet-filter-options-sheet' + Store.currentSheetIndex).remove();\r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n\r\n //\u6E05\u9664\u7B5B\u9009\u53D1\u9001\u7ED9\u540E\u53F0\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].filter = null;\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].filter_select = null;\r\n\r\n server.saveParam(\"fsc\", Store.currentSheetIndex, null);\r\n\r\n //config\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].config = Store.config;\r\n\r\n server.saveParam(\"cg\", Store.currentSheetIndex, {}, { \"k\": \"rowhidden\" });\r\n\r\n //\u884C\u9AD8\u3001\u5217\u5BBD \u5237\u65B0 \r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n });\r\n\r\n //\u6309\u7167\u503C\u8FDB\u884C\u7B5B\u9009\r\n $(\"#luckysheet-filter-byvalue-input\").on('input propertychange', function () {\r\n let v = $(this).val().toString();\r\n $(\"#luckysheet-filter-byvalue-select .ListBox .luckysheet-mousedown-cancel\").show();\r\n \r\n if(v != \"\"){\r\n $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\").each(function(i, e){\r\n if($(e).closest(\".day\").length > 0){\r\n let day = $(e).siblings(\"label\").text().toString();\r\n let month = $(e).closest(\".monthBox\").find(\".month label\").text().toString();\r\n let year = $(e).closest(\".yearBox\").find(\".year label\").text().toString();\r\n let itemV = year + \"-\" + month + \"-\" + day;\r\n\r\n if(itemV.indexOf(v) == -1){\r\n $(e).closest(\".day\").hide();\r\n \r\n //\u5929 \u5BF9\u5E94\u7684 \u6708\u4EFD\r\n let $monthDay = $(e).closest(\".dayList\").find(\".day:visible\");\r\n if($monthDay.length == 0){\r\n $(e).closest(\".monthBox\").find(\".month\").hide();\r\n }\r\n\r\n //\u5929 \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let $yearDay = $(e).closest(\".monthList\").find(\".day:visible\");\r\n if($yearDay.length == 0){\r\n $(e).closest(\".yearBox\").find(\".year\").hide();\r\n }\r\n }\r\n }\r\n\r\n if($(e).closest(\".textBox\").length > 0){\r\n let itemV = $(e).siblings(\"label\").text().toString();\r\n \r\n if(itemV.indexOf(v) == -1){\r\n $(e).parents(\".textBox\").hide();\r\n }\r\n }\r\n });\r\n }\r\n });\r\n\r\n //\u7B5B\u9009\u53D6\u6D88\r\n $(\"#luckysheet-filter-cancel\").click(function () {\r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n });\r\n\r\n //\u7B5B\u9009 \u786E\u8BA4\r\n $(\"#luckysheet-filter-confirm\").click(function () {\r\n let $menu = $(\"#luckysheet-filter-menu\");\r\n let st_r = $menu.data(\"str\"), \r\n ed_r = $menu.data(\"edr\"), \r\n cindex = $menu.data(\"cindex\"), \r\n st_c = $menu.data(\"stc\"), \r\n ed_c = $menu.data(\"edc\");\r\n\r\n let rowhiddenother = {}; //\u5176\u5B83\u7B5B\u9009\u5217\u7684\u9690\u85CF\u884C\r\n $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").not($(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").eq(cindex - st_c).get(0)).each(function () {\r\n let $t = $(this), rh = $t.data(\"rowhidden\");\r\n\r\n if (rh == \"\") {\r\n return true;\r\n }\r\n\r\n rh = JSON.parse(rh.replace(/\\'/g, '\"'));\r\n \r\n for (let r in rh) {\r\n rowhiddenother[r] = 0;\r\n }\r\n });\r\n\r\n let filterdata = {};\r\n let rowhidden = {};\r\n let caljs = {};\r\n\r\n if ($(\"#luckysheet-filter-bycondition\").next().is(\":visible\") && $(\"#luckysheet-filter-byvalue\").next().is(\":hidden\") && $(\"#luckysheet-filter-selected span\").data(\"value\") != \"null\") {\r\n let $t = $(\"#luckysheet-filter-selected span\");\r\n let type = $t.data(\"type\"), value = $t.data(\"value\");\r\n\r\n caljs[\"value\"] = value;\r\n caljs[\"text\"] = $t.text();\r\n\r\n if (type == \"0\") {\r\n caljs[\"type\"] = \"0\";\r\n }\r\n else if (type == \"2\") {\r\n let $input = $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input2 input\");\r\n caljs[\"type\"] = \"2\";\r\n caljs[\"value1\"] = $input.eq(0).val();\r\n caljs[\"value2\"] = $input.eq(1).val();\r\n }\r\n else {\r\n caljs[\"type\"] = \"1\";\r\n caljs[\"value1\"] = $(\"#luckysheet-filter-menu .luckysheet-filter-selected-input\").eq(0).find(\"input\").val();\r\n }\r\n\r\n for (let r = st_r + 1; r <= ed_r; r++) {\r\n if(r in rowhiddenother){\r\n continue;\r\n }\r\n\r\n if(Store.flowdata[r] == null){\r\n continue;\r\n }\r\n\r\n let cell = Store.flowdata[r][cindex];\r\n \r\n if (value == \"cellnull\") { //\u5355\u5143\u683C\u4E3A\u7A7A\r\n if(cell != null && !isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"cellnonull\") { //\u5355\u5143\u683C\u6709\u6570\u636E\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"textinclude\") { //\u6587\u672C\u5305\u542B \r\n let value1 = caljs[\"value1\"];\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else{\r\n if(cell.m.indexOf(value1) == -1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n else if (value == \"textnotinclude\") { //\u6587\u672C\u4E0D\u5305\u542B\r\n let value1 = caljs[\"value1\"];\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n\r\n }\r\n else{\r\n if(cell.m.indexOf(value1) > -1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n else if (value == \"textstart\") { //\u6587\u672C\u5F00\u5934\u4E3A\r\n let value1 = caljs[\"value1\"], valuelen = value1.length;\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else{\r\n if(cell.m.substr(0, valuelen) != value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n else if (value == \"textend\") { //\u6587\u672C\u7ED3\u5C3E\u4E3A\r\n let value1 = caljs[\"value1\"], valuelen = value1.length;\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else{\r\n if(valuelen > cell.m.length || cell.m.substr(cell.m.length - valuelen, valuelen) != value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n else if (value == \"textequal\") { //\u6587\u672C\u7B49\u4E8E\r\n let value1 = caljs[\"value1\"];\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else{\r\n if(cell.m != value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n else if (value == \"dateequal\") { //\u65E5\u671F\u7B49\u4E8E\r\n let value1 = genarate(caljs[\"value1\"])[2];\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"d\"){\r\n if(parseInt(cell.v) != value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"datelessthan\") { //\u65E5\u671F\u65E9\u4E8E\r\n let value1 = genarate(caljs[\"value1\"])[2];\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"d\"){\r\n if(parseInt(cell.v) >= value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"datemorethan\") { //\u65E5\u671F\u665A\u4E8E\r\n let value1 = genarate(caljs[\"value1\"])[2];\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"d\"){\r\n if(parseInt(cell.v) <= value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"morethan\") { //\u5927\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v <= value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"moreequalthan\") { //\u5927\u4E8E\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v < value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"lessthan\") { //\u5C0F\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v >= value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"lessequalthan\") { //\u5C0F\u4E8E\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v > value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"equal\") { //\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v != value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"noequal\") { //\u4E0D\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v == value1){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"include\") { //\u4ECB\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]), value2 = parseFloat(caljs[\"value2\"]);\r\n\r\n let min, max;\r\n if(value1 < value2){\r\n min = value1;\r\n max = value2;\r\n }\r\n else{\r\n max = value1;\r\n min = value2; \r\n }\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v < min || cell.v > max){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else if (value == \"noinclude\") { //\u4E0D\u5728\u5176\u4E2D\r\n let value1 = parseFloat(caljs[\"value1\"]), value2 = parseFloat(caljs[\"value2\"]);\r\n\r\n let min, max;\r\n if(value1 < value2){\r\n min = value1;\r\n max = value2;\r\n }\r\n else{\r\n max = value1;\r\n min = value2; \r\n }\r\n\r\n if(cell == null || isRealNull(cell.v)){\r\n rowhidden[r] = 0;\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"n\"){\r\n if(cell.v >= min && cell.v <= max){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n else{\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']\").each(function(i, e){\r\n if($(e).is(\":visible\") && $(e).is(\":checked\")){\r\n return true;\r\n }\r\n\r\n if($(e).closest(\".day\").length > 0){\r\n let day = $(e).siblings(\"label\").text();\r\n if(Number(day) < 10){\r\n day = \"0\" + Number(day);\r\n }\r\n\r\n let month = $(e).closest(\".monthBox\").find(\".month label\").text().replace(locale_filter.filiterMonthText, \"\");\r\n if(Number(month) < 10){\r\n month = \"0\" + Number(month);\r\n }\r\n\r\n let year = $(e).closest(\".yearBox\").find(\".year label\").text().replace(locale_filter.filiterYearText, \"\");\r\n\r\n let itemV = locale_filter.filterDateFormatTip +\"#$$$#\" + year + \"-\" + month + \"-\" + day;\r\n\r\n filterdata[itemV] = \"1\";\r\n }\r\n\r\n if($(e).closest(\".textBox\").length > 0){\r\n let itemV = $(e).closest(\".textBox\").data(\"filter\");\r\n\r\n filterdata[itemV] = \"1\";\r\n }\r\n });\r\n \r\n for (let r = st_r + 1; r <= ed_r; r++) {\r\n if(r in rowhiddenother){\r\n continue;\r\n }\r\n\r\n if(Store.flowdata[r] == null){\r\n continue;\r\n }\r\n\r\n let cell = Store.flowdata[r][cindex];\r\n\r\n let value;\r\n if((cell == null || isRealNull(cell.v)) && cell?.mc){\r\n const { r, c } = cell.mc\r\n const mainCell = Store.flowdata[r][c]\r\n value = mainCell.v + \"#$$$#\" + mainCell.m;\r\n }\r\n else if(cell == null || isRealNull(cell.v)){\r\n value = \"null#$$$#null\";\r\n }\r\n else if(cell.ct != null && cell.ct.t == \"d\"){\r\n let fmt = update(\"YYYY-MM-DD\", cell.v);\r\n value = locale_filter.filterDateFormatTip +\"#$$$#\" + fmt;\r\n }\r\n else{\r\n value = cell.v + \"#$$$#\" + cell.m;\r\n }\r\n\r\n if(value in filterdata){\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n\r\n let $top = $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").eq(cindex - st_c);\r\n\r\n let optionstate = $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']:visible:checked\").length < $(\"#luckysheet-filter-byvalue-select .ListBox input[type='checkbox']:visible\").length || $(\"#luckysheet-filter-byvalue-input\").val().length > 0 || ($(\"#luckysheet-filter-bycondition\").next().is(\":visible\") && $(\"#luckysheet-filter-byvalue\").next().is(\":hidden\") && $(\"#luckysheet-filter-selected span\").data(\"value\") != \"null\");\r\n\r\n let rowhiddenall = $.extend(true, rowhiddenother, rowhidden), \r\n rowhidenPre = json.parseJsonParm($top.data(\"rowhidden\"));\r\n\r\n labelFilterOptionState($top, optionstate, rowhidden, caljs, true, st_r, ed_r, cindex, st_c, ed_c);\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n cfg[\"rowhidden\"] = rowhiddenall;\r\n\r\n //\u4FDD\u5B58\u64A4\u9500\r\n if(Store.clearjfundo){\r\n let redo = {};\r\n redo[\"type\"] = \"datachangeAll_filter\";\r\n redo[\"sheetIndex\"] = Store.currentSheetIndex;\r\n\r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n redo[\"curconfig\"] = cfg;\r\n\r\n redo[\"optionstate\"] = optionstate;\r\n redo[\"optionsindex\"] = cindex - st_c;\r\n\r\n redo[\"rowhidden\"] = $.extend(true, {}, rowhidden);\r\n redo[\"rowhidenPre\"] = $.extend(true, {}, rowhidenPre);\r\n\r\n if (caljs != null) {\r\n redo[\"caljs\"] = caljs;\r\n }\r\n\r\n Store.jfundo.length = 0;\r\n Store.jfredo.push(redo);\r\n }\r\n\r\n //config\r\n Store.config = cfg;\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].config = Store.config;\r\n\r\n server.saveParam(\"cg\", Store.currentSheetIndex, cfg[\"rowhidden\"], { \"k\": \"rowhidden\" });\r\n\r\n //\u884C\u9AD8\u3001\u5217\u5BBD \u5237\u65B0 \r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n\r\n $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n cleargridelement();\r\n });\r\n}\r\n\r\nexport {\r\n labelFilterOptionState,\r\n orderbydatafiler,\r\n createFilter,\r\n createFilterOptions,\r\n initialFilterHandler\r\n}", "import { mouseposition } from '../global/location';\r\nimport server from './server';\r\nimport luckysheetsizeauto from './resize';\r\nimport { modelHTML } from './constant';\r\nimport {checkProtectionAuthorityNormal} from './protection';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport { setluckysheet_scroll_status } from '../methods/set';\r\nimport { replaceHtml } from '../utils/util';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport tooltip from '../global/tooltip';\r\nimport method from '../global/method';\r\n\r\nconst imageCtrl = {\r\n imgItem: {\r\n type: '3', //1\u79FB\u52A8\u5E76\u8C03\u6574\u5355\u5143\u683C\u5927\u5C0F 2\u79FB\u52A8\u5E76\u4E14\u4E0D\u8C03\u6574\u5355\u5143\u683C\u7684\u5927\u5C0F 3\u4E0D\u8981\u79FB\u52A8\u5355\u5143\u683C\u5E76\u8C03\u6574\u5176\u5927\u5C0F\r\n src: '', //\u56FE\u7247url\r\n originWidth: null, //\u56FE\u7247\u539F\u59CB\u5BBD\u5EA6\r\n originHeight: null, //\u56FE\u7247\u539F\u59CB\u9AD8\u5EA6\r\n default: {\r\n width: null, //\u56FE\u7247 \u5BBD\u5EA6\r\n height: null, //\u56FE\u7247 \u9AD8\u5EA6\r\n left: null, //\u56FE\u7247\u79BB\u8868\u683C\u5DE6\u8FB9\u7684 \u4F4D\u7F6E\r\n top: null, //\u56FE\u7247\u79BB\u8868\u683C\u9876\u90E8\u7684 \u4F4D\u7F6E\r\n },\r\n crop: {\r\n width: null, //\u56FE\u7247\u88C1\u526A\u540E \u5BBD\u5EA6\r\n height: null, //\u56FE\u7247\u88C1\u526A\u540E \u9AD8\u5EA6\r\n offsetLeft: 0, //\u56FE\u7247\u88C1\u526A\u540E\u79BB\u672A\u88C1\u526A\u65F6 \u5DE6\u8FB9\u7684\u4F4D\u79FB\r\n offsetTop: 0, //\u56FE\u7247\u88C1\u526A\u540E\u79BB\u672A\u88C1\u526A\u65F6 \u9876\u90E8\u7684\u4F4D\u79FB\r\n },\r\n isFixedPos: false, //\u56FA\u5B9A\u4F4D\u7F6E\r\n fixedLeft: null, //\u56FA\u5B9A\u4F4D\u7F6E \u5DE6\u4F4D\u79FB\r\n fixedTop: null, //\u56FA\u5B9A\u4F4D\u7F6E \u53F3\u4F4D\u79FB\r\n border: {\r\n width: 0, //\u8FB9\u6846\u5BBD\u5EA6\r\n radius: 0, //\u8FB9\u6846\u534A\u5F84\r\n style: 'solid', //\u8FB9\u6846\u7C7B\u578B\r\n color: '#000', //\u8FB9\u6846\u989C\u8272\r\n }\r\n },\r\n images: null,\r\n currentImgId: null,\r\n currentWinW: null,\r\n currentWinH: null,\r\n resize: null, \r\n resizeXY: null,\r\n move: false,\r\n moveXY: null,\r\n cropChange: null, \r\n cropChangeXY: null,\r\n cropChangeObj: null,\r\n copyImgItemObj: null,\r\n insertImg: function (file) {\r\n const uploadImage = Store.toJsonOptions && Store.toJsonOptions['uploadImage'];\r\n if (typeof uploadImage === 'function') {\r\n // \u4E0A\u4F20\u5F62\u5F0F\r\n uploadImage(file).then(url => {\r\n imageCtrl._insertImg(url);\r\n }).catch(error => {\r\n tooltip.info('', '\u56FE\u7247\u4E0A\u4F20\u5931\u8D25');\r\n });\r\n } else {\r\n // \u5185\u90E8base64\u5F62\u5F0F\r\n let render = new FileReader();\r\n render.readAsDataURL(file);\r\n\r\n render.onload = function(event){\r\n let src = event.target.result;\r\n imageCtrl._insertImg(src);\r\n $(\"#luckysheet-imgUpload\").val(\"\");\r\n }\r\n }\r\n },\r\n\r\n _insertImg: function(src){\r\n let _this = this;\r\n \r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rowIndex = last.row_focus || 0;\r\n let colIndex = last.column_focus || 0;\r\n let left = colIndex == 0 ? 0 : Store.visibledatacolumn[colIndex - 1];\r\n let top = rowIndex == 0 ? 0 : Store.visibledatarow[rowIndex - 1];\r\n\r\n let image = new Image();\r\n image.onload = function(){\r\n let width = image.width,\r\n height = image.height;\r\n\r\n let img = {\r\n src: src,\r\n left: left,\r\n top: top,\r\n originWidth: width,\r\n originHeight: height\r\n }\r\n\r\n _this.addImgItem(img);\r\n }\r\n let imageUrlHandle = Store.toJsonOptions && Store.toJsonOptions['imageUrlHandle'];\r\n image.src = typeof imageUrlHandle === 'function' ? imageUrlHandle(src) : src;\r\n },\r\n generateRandomId: function(prefix) {\r\n if(prefix == null){\r\n prefix = \"img\";\r\n }\r\n\r\n let userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, \"\").split(\"\");\r\n\r\n let mid = \"\";\r\n\r\n for(let i = 0; i < 12; i++){\r\n mid += userAgent[Math.round(Math.random() * (userAgent.length - 1))];\r\n }\r\n\r\n let time = new Date().getTime();\r\n\r\n return prefix + \"_\" + mid + \"_\" + time;\r\n },\r\n modelHtml: function(id, imgItem) {\r\n let _this = this;\r\n\r\n let imageUrlHandle = Store.toJsonOptions && Store.toJsonOptions['imageUrlHandle'];\r\n let src = typeof imageUrlHandle === 'function' ? imageUrlHandle(imgItem.src) : imgItem.src;\r\n let imgItemParam = _this.getImgItemParam(imgItem);\r\n\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n\r\n let borderWidth = imgItem.border.width;\r\n\r\n return `
\r\n
\r\n \r\n
\r\n
\r\n
`;\r\n },\r\n getSliderHtml: function() {\r\n let imageText = locale().imageText;\r\n\r\n return `
\r\n
\r\n ${imageText.imageSetting}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
${imageText.conventional}
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
${imageText.border}
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`;\r\n },\r\n sliderHtmlShow: function() {\r\n let _this = this;\r\n\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").remove();\r\n\r\n let sliderHtml = _this.getSliderHtml();\r\n $(\"body\").append(sliderHtml);\r\n luckysheetsizeauto();\r\n\r\n let imgItem = _this.images[_this.currentImgId];\r\n\r\n //\u7C7B\u578B\r\n let type = imgItem.type;\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemType\" + type).prop(\"checked\", true);\r\n\r\n //\u56FA\u5B9A\u4F4D\u7F6E\r\n let isFixedPos = imgItem.isFixedPos;\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemIsFixedPos\").prop(\"checked\", isFixedPos);\r\n\r\n //\u8FB9\u6846\u5BBD\u5EA6\r\n let border = imgItem.border;\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemBorderWidth\").val(border.width);\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemBorderRadius\").val(border.radius);\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemBorderStyle\").val(border.style);\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemBorderColor span\").css(\"background-color\", border.color).attr(\"title\", border.color);\r\n \r\n _this.init();\r\n },\r\n colorSelectDialog: function(currenColor){\r\n const _locale = locale();\r\n const locale_button = _locale.button;\r\n const locale_toolbar = _locale.toolbar;\r\n const locale_imageCtrl = _locale.imageCtrl;\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-imageCtrl-colorSelect-dialog\").remove();\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-imageCtrl-colorSelect-dialog\", \r\n \"addclass\": \"luckysheet-imageCtrl-colorSelect-dialog\", \r\n \"title\": locale_imageCtrl.borderTile, \r\n \"content\": `
\r\n ${locale_imageCtrl.borderCur}:\r\n
\r\n
`, \r\n \"botton\": `\r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-imageCtrl-colorSelect-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-imageCtrl-colorSelect-dialog\").css({ \r\n \"left\": (winw + scrollLeft - myw) / 2, \r\n \"top\": (winh + scrollTop - myh) / 3 \r\n }).show();\r\n \r\n //\u521D\u59CB\u5316\u9009\u62E9\u989C\u8272\u63D2\u4EF6\r\n $(\"#luckysheet-imageCtrl-colorSelect-dialog\").find(\".colorshowbox\").spectrum({\r\n showPalette: true,\r\n showPaletteOnly: true,\r\n preferredFormat: \"hex\",\r\n clickoutFiresChange: false,\r\n showInitial: true,\r\n showInput: true,\r\n flat: true,\r\n hideAfterPaletteSelect: true,\r\n showSelectionPalette: true,\r\n showButtons: false,//\u9690\u85CF\u9009\u62E9\u53D6\u6D88\u6309\u94AE\r\n maxPaletteSize: 8,\r\n maxSelectionSize: 8,\r\n color: currenColor,\r\n cancelText: locale_button.cancel,\r\n chooseText: locale_toolbar.confirmColor,\r\n togglePaletteMoreText: locale_toolbar.customColor,\r\n togglePaletteLessText: locale_toolbar.collapse,\r\n togglePaletteOnly: true,\r\n clearText: locale_toolbar.clearText,\r\n noColorSelectedText: locale_toolbar.noColorSelectedText,\r\n localStorageKey: \"spectrum.textcolor\" + server.gridKey,\r\n palette: [\r\n [\"#000\", \"#444\", \"#666\", \"#999\", \"#ccc\", \"#eee\", \"#f3f3f3\", \"#fff\"],\r\n [\"#f00\", \"#f90\", \"#ff0\", \"#0f0\", \"#0ff\", \"#00f\", \"#90f\", \"#f0f\"],\r\n [\"#f4cccc\", \"#fce5cd\", \"#fff2cc\", \"#d9ead3\", \"#d0e0e3\", \"#cfe2f3\", \"#d9d2e9\", \"#ead1dc\"],\r\n [\"#ea9999\", \"#f9cb9c\", \"#ffe599\", \"#b6d7a8\", \"#a2c4c9\", \"#9fc5e8\", \"#b4a7d6\", \"#d5a6bd\"],\r\n [\"#e06666\", \"#f6b26b\", \"#ffd966\", \"#93c47d\", \"#76a5af\", \"#6fa8dc\", \"#8e7cc3\", \"#c27ba0\"],\r\n [\"#c00\", \"#e69138\", \"#f1c232\", \"#6aa84f\", \"#45818e\", \"#3d85c6\", \"#674ea7\", \"#a64d79\"],\r\n [\"#900\", \"#b45f06\", \"#bf9000\", \"#38761d\", \"#134f5c\", \"#0b5394\", \"#351c75\", \"#741b47\"],\r\n [\"#600\", \"#783f04\", \"#7f6000\", \"#274e13\", \"#0c343d\", \"#073763\", \"#20124d\", \"#4c1130\"]\r\n ],\r\n move: function(color){\r\n if (color != null) {\r\n color = color.toHexString();\r\n }\r\n else {\r\n color = \"#000\";\r\n }\r\n\r\n $(\"#luckysheet-imageCtrl-colorSelect-dialog .currenColor span\").css(\"background-color\", color).attr(\"title\", color);\r\n }\r\n });\r\n },\r\n init: function() {\r\n let _this = this;\r\n\r\n //\u5173\u95ED\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl .luckysheet-model-close-btn\").click(function () {\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").hide();\r\n luckysheetsizeauto();\r\n });\r\n\r\n //\u5E38\u89C4\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").off(\"change.radio\").on(\"change.radio\", \".radio-item input[type=radio][name=imgItemType]\", function() {\r\n _this.configChange(\"type\", this.value);\r\n })\r\n\r\n //\u56FA\u5B9A\u4F4D\u7F6E\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").off(\"change.checkbox\").on(\"change.checkbox\", \".slider-box-checkbox input[type=checkbox]\", function() {\r\n _this.configChange(\"fixedPos\", this.checked);\r\n })\r\n\r\n //\u8FB9\u6846\u5BBD\u5EA6\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").off(\"change.borderWidth\").on(\"change.borderWidth\", \"#imgItemBorderWidth\", function() {\r\n _this.configChange(\"border-width\", this.valueAsNumber);\r\n })\r\n\r\n //\u8FB9\u6846\u534A\u5F84\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").off(\"change.borderRadius\").on(\"change.borderRadius\", \"#imgItemBorderRadius\", function() {\r\n _this.configChange(\"border-radius\", this.valueAsNumber);\r\n })\r\n\r\n //\u8FB9\u6846\u6837\u5F0F\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").off(\"change.borderStyle\").on(\"change.borderStyle\", \"#imgItemBorderStyle\", function() {\r\n _this.configChange(\"border-style\", this.value);\r\n })\r\n\r\n //\u8FB9\u6846\u989C\u8272 \u9009\u62E9\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").off(\"click.color\").on(\"click.color\", \"#imgItemBorderColor\", function() {\r\n let currenColor = $(this).find(\"span\").attr(\"title\");\r\n _this.colorSelectDialog(currenColor);\r\n })\r\n\r\n //\u8FB9\u6846\u9009\u62E9\u989C\u8272 \u786E\u5B9A \r\n $(document).off(\"click.selectColorConfirm\").on(\"click.selectColorConfirm\", \"#luckysheet-imageCtrl-colorSelect-dialog-confirm\", function(){\r\n let $parent = $(this).parents(\"#luckysheet-imageCtrl-colorSelect-dialog\");\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $parent.hide();\r\n\r\n let currenColor = $parent.find(\".currenColor span\").attr(\"title\");\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl #imgItemBorderColor span\").css(\"background-color\", currenColor).attr(\"title\", currenColor);\r\n\r\n _this.configChange(\"border-color\", currenColor); \r\n });\r\n\r\n //image active\r\n $(\"#luckysheet-image-showBoxs\").off(\"mousedown.active\").on(\"mousedown.active\", \".luckysheet-modal-dialog-image\", function(e) {\r\n \r\n\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n\r\n $(this).hide();\r\n let id = $(this).attr(\"id\");\r\n\r\n if(_this.currentImgId != null && _this.currentImgId != id){\r\n _this.cancelActiveImgItem();\r\n }\r\n\r\n _this.currentImgId = id;\r\n\r\n let item = _this.images[id];\r\n let imgItemParam = _this.getImgItemParam(item);\r\n\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n \r\n $(\"#luckysheet-modal-dialog-activeImage\").show().css({\r\n \"width\": width,\r\n \"height\": height,\r\n \"left\": left,\r\n \"top\": top,\r\n \"position\": position\r\n });\r\n let imageUrlHandle = Store.toJsonOptions && Store.toJsonOptions['imageUrlHandle'];\r\n let imgUrl = typeof imageUrlHandle === 'function' ? imageUrlHandle(item.src) : item.src;\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-content\").css({\r\n \"background-image\": \"url(\" + imgUrl + \")\",\r\n \"background-size\": item.default.width * Store.zoomRatio + \"px \" + item.default.height * Store.zoomRatio + \"px\",\r\n \"background-position\": -item.crop.offsetLeft * Store.zoomRatio + \"px \" + -item.crop.offsetTop * Store.zoomRatio + \"px\"\r\n })\r\n\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-border\").css({\r\n \"border-width\": item.border.width * Store.zoomRatio,\r\n \"border-style\": item.border.style,\r\n \"border-color\": item.border.color,\r\n \"border-radius\": item.border.radius * Store.zoomRatio,\r\n \"left\": -item.border.width * Store.zoomRatio,\r\n \"right\": -item.border.width * Store.zoomRatio,\r\n \"top\": -item.border.width * Store.zoomRatio,\r\n \"bottom\": -item.border.width * Store.zoomRatio,\r\n })\r\n\r\n _this.sliderHtmlShow();\r\n\r\n e.stopPropagation();\r\n })\r\n\r\n //image move\r\n $(\"#luckysheet-modal-dialog-activeImage\").off(\"mousedown.move\").on(\"mousedown.move\", \".luckysheet-modal-dialog-content\", function(e) {\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n \r\n if(!$(\"#luckysheet-modal-dialog-slider-imageCtrl\").is(\":visible\")){\r\n _this.sliderHtmlShow();\r\n }\r\n \r\n _this.move = true;\r\n \r\n _this.currentWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n _this.currentWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n\r\n let offset = $(\"#luckysheet-modal-dialog-activeImage\").offset();\r\n\r\n _this.moveXY = [\r\n e.pageX - offset.left, \r\n e.pageY - offset.top, \r\n ];\r\n\r\n setluckysheet_scroll_status(true);\r\n\r\n e.stopPropagation();\r\n })\r\n\r\n //image resize\r\n $(\"#luckysheet-modal-dialog-activeImage\").off(\"mousedown.resize\").on(\"mousedown.resize\", \".luckysheet-modal-dialog-resize-item\", function(e) {\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n \r\n _this.currentWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n _this.currentWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n\r\n _this.resize = $(this).data(\"type\");\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop(), \r\n scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let mouse = mouseposition(e.pageX, e.pageY);\r\n let x = mouse[0] + scrollLeft;\r\n let y = mouse[1] + scrollTop;\r\n\r\n let position = $(\"#luckysheet-modal-dialog-activeImage\").position();\r\n let width = $(\"#luckysheet-modal-dialog-activeImage\").width();\r\n let height = $(\"#luckysheet-modal-dialog-activeImage\").height();\r\n\r\n _this.resizeXY = [\r\n x, \r\n y, \r\n width, \r\n height, \r\n position.left + scrollLeft, \r\n position.top + scrollTop, \r\n scrollLeft, \r\n scrollTop\r\n ];\r\n\r\n setluckysheet_scroll_status(true);\r\n \r\n e.stopPropagation();\r\n })\r\n\r\n //image croppingEnter\r\n $(\"#luckysheet-modal-dialog-activeImage\").off(\"mousedown.croppingEnter\").on(\"mousedown.croppingEnter\", \".luckysheet-modal-controll-crop\", function(e) {\r\n _this.croppingEnter();\r\n e.stopPropagation();\r\n })\r\n\r\n //image croppingExit\r\n $(\"#luckysheet-modal-dialog-cropping\").off(\"mousedown.croppingExit\").on(\"mousedown.croppingExit\", \".luckysheet-modal-controll-crop\", function(e) {\r\n _this.croppingExit();\r\n e.stopPropagation();\r\n })\r\n\r\n //image crop change\r\n $(\"#luckysheet-modal-dialog-cropping\").off(\"mousedown.cropChange\").on(\"mousedown.cropChange\", \".resize-item\", function(e) {\r\n _this.cropChange = $(this).data(\"type\");\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop(), \r\n scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let mouse = mouseposition(e.pageX, e.pageY);\r\n let x = mouse[0] + scrollLeft;\r\n let y = mouse[1] + scrollTop;\r\n\r\n _this.cropChangeXY = [\r\n x, \r\n y\r\n ];\r\n\r\n setluckysheet_scroll_status(true);\r\n \r\n e.stopPropagation();\r\n })\r\n\r\n //image restore\r\n $(\"#luckysheet-image-showBoxs\").off(\"mousedown.restore\").on(\"mousedown.restore\", \".luckysheet-modal-controll-restore\", function(e) {\r\n _this.restoreImgItem();\r\n e.stopPropagation();\r\n })\r\n\r\n //image delete\r\n $(\"#luckysheet-image-showBoxs\").off(\"mousedown.delete\").on(\"mousedown.delete\", \".luckysheet-modal-controll-del\", function(e) {\r\n _this.removeImgItem();\r\n e.stopPropagation();\r\n })\r\n },\r\n configChange: function(type, value){\r\n let _this = this;\r\n\r\n let imgItem = _this.images[_this.currentImgId];\r\n\r\n switch(type){\r\n case \"type\":\r\n imgItem.type = value;\r\n break;\r\n case \"fixedPos\":\r\n imgItem.isFixedPos = value;\r\n\r\n let imgItemParam = _this.getImgItemParam(imgItem);\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n \r\n $(\"#luckysheet-modal-dialog-activeImage\").show().css({\r\n \"width\": width,\r\n \"height\": height,\r\n \"left\": left,\r\n \"top\": top,\r\n \"position\": position\r\n });\r\n break;\r\n case \"border-width\":\r\n imgItem.border.width = value;\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-border\").css({\r\n \"border-width\": value,\r\n \"left\": -value,\r\n \"right\": -value,\r\n \"top\": -value,\r\n \"bottom\": -value\r\n });\r\n break;\r\n case \"border-radius\":\r\n imgItem.border.radius = value;\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-border\").css(\"border-radius\", value);\r\n break;\r\n case \"border-style\":\r\n imgItem.border.style = value;\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-border\").css(\"border-style\", value);\r\n break;\r\n case \"border-color\":\r\n imgItem.border.color = value;\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-border\").css(\"border-color\", value);\r\n break;\r\n }\r\n \r\n _this.ref();\r\n },\r\n getImgItemParam(imgItem){\r\n let isFixedPos = imgItem.isFixedPos;\r\n\r\n let width = imgItem.default.width * Store.zoomRatio,\r\n height = imgItem.default.height * Store.zoomRatio,\r\n left = imgItem.default.left * Store.zoomRatio,\r\n top = imgItem.default.top * Store.zoomRatio;\r\n\r\n if(imgItem.crop.width != width || imgItem.crop.height != height){\r\n width = imgItem.crop.width * Store.zoomRatio;\r\n height = imgItem.crop.height * Store.zoomRatio;\r\n left += imgItem.crop.offsetLeft * Store.zoomRatio;\r\n top += imgItem.crop.offsetTop * Store.zoomRatio;\r\n }\r\n\r\n let position = 'absolute';\r\n if(isFixedPos){\r\n position = 'fixed';\r\n left = imgItem.fixedLeft + imgItem.crop.offsetLeft;\r\n top = imgItem.fixedTop + imgItem.crop.offsetTop;\r\n\r\n // only need to scale the distance relative to the main area, otherwise it will continue to shift and overflow the main area.\r\n // Note: After scaling here, there is no need to scale again when using this position externally\r\n // fix #174\r\n const operateAreaWidth = Store.rowHeaderWidth;\r\n const operateAreaHeight = Store.infobarHeight + Store.toolbarHeight + Store.calculatebarHeight + Store.columnHeaderHeight;\r\n left = (left - operateAreaWidth) * Store.zoomRatio + operateAreaWidth\r\n top = (top - operateAreaHeight) * Store.zoomRatio + operateAreaHeight\r\n }\r\n\r\n return {\r\n width: width,\r\n height: height,\r\n left: left,\r\n top: top,\r\n position: position\r\n }\r\n },\r\n cancelActiveImgItem: function(){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-modal-dialog-activeImage\").hide();\r\n $(\"#luckysheet-modal-dialog-cropping\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").hide();\r\n\r\n let imgItem = _this.images[_this.currentImgId];\r\n let imgItemParam = _this.getImgItemParam(imgItem);\r\n\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n\r\n $(\"#\" + _this.currentImgId).show().css({\r\n \"width\": width,\r\n \"height\": height,\r\n \"left\": left,\r\n \"top\": top,\r\n \"position\": position\r\n });\r\n $(\"#\" + _this.currentImgId + \" img\").css({\r\n \"width\": imgItem.default.width * Store.zoomRatio,\r\n \"height\": imgItem.default.height * Store.zoomRatio,\r\n \"left\": -imgItem.crop.offsetLeft * Store.zoomRatio,\r\n \"top\": -imgItem.crop.offsetTop * Store.zoomRatio\r\n });\r\n $(\"#\" + _this.currentImgId + \" .luckysheet-modal-dialog-border\").css({\r\n \"border-width\": imgItem.border.width * Store.zoomRatio,\r\n \"border-style\": imgItem.border.style,\r\n \"border-color\": imgItem.border.color,\r\n \"border-radius\": imgItem.border.radius * Store.zoomRatio,\r\n \"left\": -imgItem.border.width * Store.zoomRatio,\r\n \"right\": -imgItem.border.width * Store.zoomRatio,\r\n \"top\": -imgItem.border.width * Store.zoomRatio,\r\n \"bottom\": -imgItem.border.width * Store.zoomRatio,\r\n })\r\n\r\n _this.currentImgId = null;\r\n },\r\n addImgItem: function(img) {\r\n let _this = this;\r\n\r\n let width, height;\r\n let max = 400;\r\n\r\n if(img.originHeight < img.originWidth){\r\n height = Math.round(img.originHeight * (max / img.originWidth));\r\n width = max;\r\n }\r\n else{\r\n width = Math.round(img.originWidth * (max / img.originHeight));\r\n height = max;\r\n }\r\n\r\n if(_this.images == null){\r\n _this.images = {};\r\n }\r\n\r\n let imgItem = $.extend(true, {}, _this.imgItem);\r\n imgItem.src = img.src;\r\n imgItem.originWidth = img.originWidth;\r\n imgItem.originHeight = img.originHeight;\r\n imgItem.default.width = width;\r\n imgItem.default.height = height;\r\n imgItem.default.left = img.left;\r\n imgItem.default.top = img.top;\r\n imgItem.crop.width = width;\r\n imgItem.crop.height = height;\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop(), \r\n scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n imgItem.fixedLeft = img.left - scrollLeft + Store.rowHeaderWidth;\r\n imgItem.fixedTop = img.top - scrollTop + Store.infobarHeight + Store.toolbarHeight + Store.calculatebarHeight + Store.columnHeaderHeight;\r\n\r\n let id = _this.generateRandomId();\r\n let modelHtml = _this.modelHtml(id, imgItem);\r\n\r\n $(\"#luckysheet-image-showBoxs .img-list\").append(modelHtml);\r\n\r\n _this.images[id] = imgItem;\r\n _this.ref();\r\n\r\n _this.init();\r\n },\r\n moveImgItem: function() {\r\n let _this = this;\r\n\r\n _this.move = false;\r\n\r\n let obj = $(\"#luckysheet-modal-dialog-activeImage\")[0];\r\n let item = _this.images[_this.currentImgId];\r\n\r\n\t\tvar zoomRatio = Store.zoomRatio;\r\n\t\t\r\n if(item.isFixedPos){\r\n\t\t\t\r\n item.fixedLeft = (obj.offsetLeft - item.crop.offsetLeft) / zoomRatio;\r\n item.fixedTop = (obj.offsetTop - item.crop.offsetTop) / zoomRatio;\r\n }\r\n else{\r\n item.default.left = (obj.offsetLeft - item.crop.offsetLeft) / zoomRatio;\r\n item.default.top = (obj.offsetTop - item.crop.offsetTop) / zoomRatio;\r\n }\r\n\r\n _this.ref();\r\n },\r\n resizeImgItem: function() {\r\n let _this = this;\r\n\r\n _this.resize = null;\r\n\t\t\r\n\t\tvar zoomRatio = Store.zoomRatio;\r\n\r\n let obj = $(\"#luckysheet-modal-dialog-activeImage\")[0];\r\n\r\n let item = _this.images[_this.currentImgId];\r\n let scaleX = obj.clientWidth / item.crop.width;\r\n let scaleY = obj.clientHeight / item.crop.height;\r\n\r\n item.default.width = Math.round(item.default.width * scaleX / zoomRatio);\r\n item.default.height = Math.round(item.default.height * scaleY / zoomRatio);\r\n\r\n item.crop.width = Math.round(item.crop.width * scaleX / zoomRatio);\r\n item.crop.height = Math.round(item.crop.height * scaleY / zoomRatio);\r\n item.crop.offsetLeft = Math.round(item.crop.offsetLeft * scaleX / zoomRatio);\r\n item.crop.offsetTop = Math.round(item.crop.offsetTop * scaleY / zoomRatio);\r\n\r\n if(item.isFixedPos){\r\n item.fixedLeft = obj.offsetLeft / zoomRatio;\r\n item.fixedTop = obj.offsetTop / zoomRatio;\r\n }\r\n else{\r\n item.default.left = (obj.offsetLeft - item.crop.offsetLeft) / zoomRatio;\r\n item.default.top = (obj.offsetTop - item.crop.offsetTop) / zoomRatio;\r\n }\r\n\r\n _this.ref();\r\n },\r\n croppingEnter: function() {\r\n let _this = this;\r\n _this.cropping = true;\r\n\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-activeImage\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").hide();\r\n\r\n let item = _this.images[_this.currentImgId];\r\n let imgItemParam = _this.getImgItemParam(item);\r\n\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n \r\n $(\"#luckysheet-modal-dialog-cropping\").show().css({\r\n \"width\": width,\r\n \"height\": height,\r\n \"left\": left,\r\n \"top\": top,\r\n \"position\": position\r\n });\r\n\r\n let imageUrlHandle = Store.toJsonOptions && Store.toJsonOptions['imageUrlHandle'];\r\n let imgSrc = typeof imageUrlHandle === 'function' ? imageUrlHandle(item.src) : item.src;\r\n\r\n $(\"#luckysheet-modal-dialog-cropping .cropping-mask\").css({\r\n \"width\": item.default.width,\r\n \"height\": item.default.height,\r\n \"background-image\": \"url(\" + imgSrc + \")\",\r\n \"left\": -item.crop.offsetLeft,\r\n \"top\": -item.crop.offsetTop\r\n })\r\n\r\n $(\"#luckysheet-modal-dialog-cropping .cropping-content\").css({\r\n \"background-image\": \"url(\" + imgSrc + \")\",\r\n \"background-size\": item.default.width + \"px \" + item.default.height + \"px\",\r\n \"background-position\": -item.crop.offsetLeft + \"px \" + -item.crop.offsetTop + \"px\"\r\n })\r\n\r\n $(\"#luckysheet-modal-dialog-cropping .luckysheet-modal-dialog-border\").css({\r\n \"border-width\": item.border.width,\r\n \"border-style\": item.border.style,\r\n \"border-color\": item.border.color,\r\n \"border-radius\": item.border.radius,\r\n \"left\": -item.border.width,\r\n \"right\": -item.border.width,\r\n \"top\": -item.border.width,\r\n \"bottom\": -item.border.width,\r\n })\r\n },\r\n croppingExit: function() {\r\n let _this = this;\r\n _this.cropping = false;\r\n\r\n $(\"#luckysheet-modal-dialog-cropping\").hide();\r\n\r\n let item = _this.images[_this.currentImgId];\r\n let imgItemParam = _this.getImgItemParam(item);\r\n\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n\r\n $(\"#luckysheet-modal-dialog-activeImage\").show().css({\r\n \"width\": width,\r\n \"height\": height,\r\n \"left\": left,\r\n \"top\": top,\r\n \"position\": position\r\n });\r\n let imageUrlHandle = Store.toJsonOptions && Store.toJsonOptions['imageUrlHandle'];\r\n let imgSrc = typeof imageUrlHandle === 'function' ? imageUrlHandle(item.src) : item.src;\r\n\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-content\").css({\r\n \"background-image\": \"url(\" + imgSrc + \")\",\r\n \"background-size\": item.default.width + \"px \" + item.default.height + \"px\",\r\n \"background-position\": -item.crop.offsetLeft + \"px \" + -item.crop.offsetTop + \"px\"\r\n })\r\n },\r\n cropChangeImgItem: function() {\r\n let _this = this;\r\n\r\n _this.cropChange = null;\r\n\r\n let item = _this.images[_this.currentImgId];\r\n item.crop.width = _this.cropChangeObj.width;\r\n item.crop.height = _this.cropChangeObj.height;\r\n item.crop.offsetLeft = _this.cropChangeObj.offsetLeft;\r\n item.crop.offsetTop = _this.cropChangeObj.offsetTop;\r\n\r\n _this.ref();\r\n },\r\n restoreImgItem: function() {\r\n let _this = this;\r\n let imgItem = _this.images[_this.currentImgId];\r\n\r\n imgItem.default.width = imgItem.originWidth;\r\n imgItem.default.height = imgItem.originHeight;\r\n\r\n imgItem.crop.width = imgItem.originWidth;\r\n imgItem.crop.height = imgItem.originHeight;\r\n imgItem.crop.offsetLeft = 0;\r\n imgItem.crop.offsetTop = 0;\r\n\r\n let imgItemParam = _this.getImgItemParam(imgItem);\r\n\r\n let width = imgItemParam.width;\r\n let height = imgItemParam.height;\r\n let left = imgItemParam.left;\r\n let top = imgItemParam.top;\r\n let position = imgItemParam.position;\r\n \r\n $(\"#luckysheet-modal-dialog-activeImage\").show().css({\r\n \"width\": width,\r\n \"height\": height,\r\n \"left\": left,\r\n \"top\": top,\r\n \"position\": position\r\n });\r\n\r\n let imageUrlHandle = Store.toJsonOptions && Store.toJsonOptions['imageUrlHandle'];\r\n let imgSrc = typeof imageUrlHandle === 'function' ? imageUrlHandle(imgItem.src) : imgItem.src;\r\n\r\n $(\"#luckysheet-modal-dialog-activeImage .luckysheet-modal-dialog-content\").css({\r\n \"background-image\": \"url(\" + imgSrc + \")\",\r\n \"background-size\": imgItem.default.width + \"px \" + imgItem.default.height + \"px\",\r\n \"background-position\": -imgItem.crop.offsetLeft + \"px \" + -imgItem.crop.offsetTop + \"px\"\r\n })\r\n\r\n _this.ref();\r\n },\r\n removeImgItem: function() {\r\n let _this = this;\r\n let imgItem = _this.images[_this.currentImgId];\r\n\r\n // \u94A9\u5B50 imageDeleteBefore\r\n if(!method.createHookFunction('imageDeleteBefore', imgItem)){\r\n return;\r\n }\r\n \r\n $(\"#luckysheet-modal-dialog-activeImage\").hide();\r\n $(\"#luckysheet-modal-dialog-cropping\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").hide();\r\n $(\"#\" + _this.currentImgId).remove();\r\n\r\n\r\n delete _this.images[_this.currentImgId];\r\n _this.currentImgId = null;\r\n\r\n // \u94A9\u5B50 imageDeleteAfter\r\n method.createHookFunction('imageDeleteAfter', imgItem);\r\n _this.ref();\r\n },\r\n copyImgItem: function(e) {\r\n let _this = this;\r\n\r\n _this.copyImgItemObj = $.extend(true, {}, _this.images[_this.currentImgId]);\r\n\r\n let clipboardData = window.clipboardData; //for IE\r\n if (!clipboardData) { // for chrome\r\n clipboardData = e.originalEvent.clipboardData;\r\n }\r\n\r\n let cpdata = '
';\r\n\r\n if (!clipboardData) {\r\n let textarea = $(\"#luckysheet-copy-content\");\r\n textarea.html(cpdata);\r\n textarea.focus();\r\n textarea.select();\r\n document.execCommand(\"selectAll\");\r\n document.execCommand(\"Copy\");\r\n // \u7B4950\u6BEB\u79D2\uFF0CkeyPress\u4E8B\u4EF6\u53D1\u751F\u4E86\u518D\u53BB\u5904\u7406\u6570\u636E\r\n setTimeout(function () { \r\n $(\"#luckysheet-copy-content\").blur(); \r\n }, 10);\r\n }\r\n else {\r\n clipboardData.setData('Text', cpdata);\r\n return false;//\u5426\u5219\u8BBE\u4E0D\u751F\u6548\r\n }\r\n },\r\n pasteImgItem: function() {\r\n let _this = this;\r\n\r\n if(_this.images == null){\r\n _this.images = {};\r\n }\r\n\r\n let rowIndex = Store.luckysheet_select_save[0].row_focus || 0;\r\n let colIndex = Store.luckysheet_select_save[0].column_focus || 0;\r\n let left = colIndex == 0 ? 0 : Store.visibledatacolumn[colIndex - 1];\r\n let top = rowIndex == 0 ? 0 : Store.visibledatarow[rowIndex - 1];\r\n\r\n let img = $.extend(true, {}, _this.copyImgItemObj);\r\n \r\n img.default.left = left - img.crop.offsetLeft;\r\n img.default.top = top - img.crop.offsetTop;\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop(), \r\n scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n img.fixedLeft = img.default.left - scrollLeft + Store.rowHeaderWidth;\r\n img.fixedTop = img.default.top - scrollTop + Store.infobarHeight + Store.toolbarHeight + Store.calculatebarHeight + Store.columnHeaderHeight;\r\n\r\n let id = _this.generateRandomId();\r\n let modelHtml = _this.modelHtml(id, img);\r\n\r\n $(\"#luckysheet-image-showBoxs .img-list\").append(modelHtml);\r\n\r\n _this.images[id] = img;\r\n _this.ref();\r\n\r\n _this.init();\r\n },\r\n allImagesShow: function() {\r\n let _this = this;\r\n \r\n $(\"#luckysheet-modal-dialog-activeImage\").hide();\r\n $(\"#luckysheet-modal-dialog-cropping\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-imageCtrl\").hide();\r\n $(\"#luckysheet-image-showBoxs .img-list\").empty();\r\n\r\n if(_this.images == null){\r\n return;\r\n }\r\n\r\n for(let imgId in _this.images){\r\n let imgItem = _this.images[imgId];\r\n let modelHtml = _this.modelHtml(imgId, imgItem);\r\n $(\"#luckysheet-image-showBoxs .img-list\").append(modelHtml);\r\n }\r\n },\r\n moveChangeSize: function(rc, index, size) {\r\n let _this = this;\r\n let images = $.extend(true, {}, _this.images);\r\n\r\n if(rc == \"row\"){\r\n let row = Store.visibledatarow[index], \r\n row_pre = index - 1 == -1 ? 0 : Store.visibledatarow[index - 1];\r\n let changeSize = size - (row - row_pre - 1);\r\n \r\n for(let imgId in images){\r\n let imgItem = images[imgId];\r\n let imgItemParam = _this.getImgItemParam(imgItem);\r\n let type = imgItem.type;\r\n\r\n if(type == \"1\"){\r\n if(imgItemParam.top >= row){\r\n imgItem.default.top = imgItemParam.top + changeSize - imgItem.crop.offsetTop;\r\n }\r\n else{\r\n if(imgItemParam.top + imgItemParam.height >= row-2){\r\n if(imgItemParam.top < row + changeSize){\r\n let scaleY = (imgItemParam.height + changeSize) / imgItemParam.height;\r\n imgItem.default.height = Math.round(imgItem.default.height * scaleY);\r\n imgItem.crop.height = Math.round(imgItem.crop.height * scaleY);\r\n imgItem.crop.offsetTop = Math.round(imgItem.crop.offsetTop * scaleY);\r\n }\r\n else{\r\n let scaleY = (imgItemParam.top + imgItemParam.height - row) / imgItemParam.height;\r\n imgItem.default.height = Math.round(imgItem.default.height * scaleY);\r\n imgItem.crop.height = Math.round(imgItem.crop.height * scaleY);\r\n imgItem.crop.offsetTop = Math.round(imgItem.crop.offsetTop * scaleY);\r\n imgItem.default.top = row + changeSize - imgItem.crop.offsetTop;\r\n }\r\n }\r\n else{\r\n if(imgItemParam.top > row + changeSize){\r\n let scaleY = 1 / imgItemParam.height;\r\n imgItem.default.height = Math.round(imgItem.default.height * scaleY);\r\n imgItem.crop.height = Math.round(imgItem.crop.height * scaleY);\r\n imgItem.crop.offsetTop = Math.round(imgItem.crop.offsetTop * scaleY);\r\n imgItem.default.top = row + changeSize - imgItem.crop.offsetTop;\r\n }\r\n else if(imgItemParam.top + imgItemParam.height > row + changeSize){\r\n let scaleY = (row + changeSize - imgItemParam.top) / imgItemParam.height;\r\n imgItem.default.height = Math.round(imgItem.default.height * scaleY);\r\n imgItem.crop.height = Math.round(imgItem.crop.height * scaleY);\r\n imgItem.crop.offsetTop = Math.round(imgItem.crop.offsetTop * scaleY);\r\n }\r\n }\r\n }\r\n }\r\n else if(type == \"2\"){\r\n if(imgItemParam.top >= row){\r\n imgItem.default.top = imgItemParam.top + changeSize - imgItem.crop.offsetTop;\r\n }\r\n else if(imgItemParam.top > row + changeSize){\r\n imgItem.default.top = row + changeSize - imgItem.crop.offsetTop;\r\n }\r\n }\r\n }\r\n }\r\n else if(rc == \"column\"){\r\n let col = Store.visibledatacolumn[index], \r\n col_pre = index - 1 == -1 ? 0 : Store.visibledatacolumn[index - 1];\r\n let changeSize = size - (col - col_pre - 1);\r\n\r\n for(let imgId in images){\r\n let imgItem = images[imgId];\r\n let imgItemParam = _this.getImgItemParam(imgItem);\r\n let type = imgItem.type;\r\n\r\n if(type == \"1\"){\r\n if(imgItemParam.left >= col){\r\n imgItem.default.left = imgItemParam.left + changeSize - imgItem.crop.offsetLeft;\r\n }\r\n else{\r\n if(imgItemParam.left + imgItemParam.width >= col-2){\r\n if(imgItemParam.left < col + changeSize){\r\n let scaleX = (imgItemParam.width + changeSize) / imgItemParam.width;\r\n imgItem.default.width = Math.round(imgItem.default.width * scaleX);\r\n imgItem.crop.width = Math.round(imgItem.crop.width * scaleX);\r\n imgItem.crop.offsetLeft = Math.round(imgItem.crop.offsetLeft * scaleX);\r\n }\r\n else{\r\n let scaleX = (imgItemParam.left + imgItemParam.width - col) / imgItemParam.width;\r\n imgItem.default.width = Math.round(imgItem.default.width * scaleX);\r\n imgItem.crop.width = Math.round(imgItem.crop.width * scaleX);\r\n imgItem.crop.offsetLeft = Math.round(imgItem.crop.offsetLeft * scaleX);\r\n imgItem.default.left = col + changeSize - imgItem.crop.offsetLeft;\r\n }\r\n }\r\n else{\r\n if(imgItemParam.left > col + changeSize){\r\n let scaleX = 1 / imgItemParam.width;\r\n imgItem.default.width = Math.round(imgItem.default.width * scaleX);\r\n imgItem.crop.width = Math.round(imgItem.crop.width * scaleX);\r\n imgItem.crop.offsetLeft = Math.round(imgItem.crop.offsetLeft * scaleX);\r\n imgItem.default.left = col + changeSize - imgItem.crop.offsetLeft;\r\n }\r\n else if(imgItemParam.left + imgItemParam.width > col + changeSize){\r\n let scaleX = (col + changeSize - imgItemParam.left) / imgItemParam.width;\r\n imgItem.default.width = Math.round(imgItem.default.width * scaleX);\r\n imgItem.crop.width = Math.round(imgItem.crop.width * scaleX);\r\n imgItem.crop.offsetLeft = Math.round(imgItem.crop.offsetLeft * scaleX);\r\n }\r\n }\r\n }\r\n }\r\n else if(type == \"2\"){\r\n if(imgItemParam.left >= col){\r\n imgItem.default.left = imgItemParam.left + changeSize - imgItem.crop.offsetLeft;\r\n }\r\n else if(imgItemParam.left > col + changeSize){\r\n imgItem.default.left = col + changeSize - imgItem.crop.offsetLeft;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return images;\r\n },\r\n ref: function() {\r\n let _this = this;\r\n\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n let images = _this.images;\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n Store.jfredo.push({\r\n \"type\": \"imageCtrl\",\r\n \"sheetIndex\": Store.currentSheetIndex,\r\n \"images\": file.images == null ? null : $.extend(true, {}, file.images),\r\n \"curImages\": images\r\n });\r\n }\r\n\r\n file.images = $.extend(true, {}, images);\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.images, { \"k\": \"images\" });\r\n },\r\n}\r\n\r\nexport default imageCtrl;", "import { replaceHtml } from '../utils/util';\r\nimport formula from '../global/formula';\r\nimport { isRealNum, isRealNull } from '../global/validate';\r\nimport { isdatetime, diff } from '../global/datecontroll';\r\nimport { luckysheetrefreshgrid } from '../global/refresh';\r\nimport tooltip from '../global/tooltip';\r\nimport { setcellvalue } from '../global/setdata';\r\nimport { getcellvalue } from '../global/getdata';\r\nimport editor from '../global/editor';\r\nimport { modelHTML } from './constant';\r\nimport { selectionCopyShow } from './select';\r\nimport server from './server';\r\nimport menuButton from './menuButton';\r\nimport sheetmanage from './sheetmanage';\r\nimport { getSheetIndex, getRangetxt } from '../methods/get';\r\nimport locale from '../locale/locale';\r\nimport Store from '../store';\r\n\r\nconst dataVerificationCtrl = {\r\n defaultItem: {\r\n type: 'dropdown', //\u7C7B\u578B\r\n type2: null, //\r\n value1: '', //\r\n value2: '', //\r\n checked: false,\r\n remote: false, //\u81EA\u52A8\u8FDC\u7A0B\u83B7\u53D6\u9009\u9879\r\n prohibitInput: false, //\u8F93\u5165\u6570\u636E\u65E0\u6548\u65F6\u7981\u6B62\u8F93\u5165\r\n hintShow: false, //\u9009\u4E2D\u5355\u5143\u683C\u65F6\u663E\u793A\u63D0\u793A\u8BED\r\n hintText: '', //\r\n },\r\n curItem: null,\r\n dataVerification: null,\r\n selectRange: [],\r\n selectStatus: false,\r\n optionLabel: {\r\n 'number': '\u6570\u503C',\r\n 'number_integer': '\u6574\u6570',\r\n 'number_decimal': '\u5C0F\u6570',\r\n 'bw': '\u4ECB\u4E8E',\r\n 'nb': '\u4E0D\u4ECB\u4E8E',\r\n 'eq': '\u7B49\u4E8E',\r\n 'ne': '\u4E0D\u7B49\u4E8E',\r\n 'gt': '\u5927\u4E8E',\r\n 'lt': '\u5C0F\u4E8E',\r\n 'gte': '\u5927\u4E8E\u7B49\u4E8E',\r\n 'lte': '\u5C0F\u4E8E\u7B49\u4E8E',\r\n 'include': '\u5305\u62EC',\r\n 'exclude': '\u4E0D\u5305\u62EC',\r\n 'equal': '\u7B49\u4E8E',\r\n 'bf': '\u65E9\u4E8E',\r\n 'nbf': '\u4E0D\u65E9\u4E8E',\r\n 'af': '\u665A\u4E8E',\r\n 'naf': '\u4E0D\u665A\u4E8E',\r\n 'card': '\u8EAB\u4EFD\u8BC1\u53F7\u7801',\r\n 'phone': '\u624B\u673A\u53F7'\r\n },\r\n optionLabel_en: {\r\n 'number': 'numeric',\r\n 'number_integer': 'integer',\r\n 'number_decimal': 'decimal',\r\n 'bw': 'between',\r\n 'nb': 'not between',\r\n 'eq': 'equal to',\r\n 'ne': 'not equal to',\r\n 'gt': 'greater',\r\n 'lt': 'less than',\r\n 'gte': 'greater or equal to',\r\n 'lte': 'less than or equal to',\r\n 'include': 'include',\r\n 'exclude': 'not include',\r\n 'equal': 'equal to',\r\n 'bf': 'earlier than',\r\n 'nbf': 'not earlier than',\r\n 'af': 'later than',\r\n 'naf': 'not later than',\r\n 'card': 'identification number',\r\n 'phone': 'phone number'\r\n },\r\n createDialog: function(){\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const dvText = _locale.dataVerification;\r\n const toolbarText = _locale.toolbar;\r\n const buttonText = _locale.button;\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-dataVerification-dialog\").remove();\r\n\r\n let content = `
\r\n
\r\n
${dvText.cellRange}
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
${dvText.verificationCondition}
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n ${dvText.selected} \u2014\u2014\r\n \r\n
\r\n
\r\n ${dvText.notSelected} \u2014\u2014\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n -\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n -\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n -\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
`;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-dataVerification-dialog\", \r\n \"addclass\": \"luckysheet-dataVerification-dialog\", \r\n \"title\": toolbarText.dataVerification, \r\n \"content\": content, \r\n \"botton\": `\r\n \r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-dataVerification-dialog\").find(\".luckysheet-modal-dialog-content\").css(\"min-width\", 350).end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), \r\n winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), \r\n scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-dataVerification-dialog\").css({ \r\n \"left\": (winw + scrollLeft - myw) / 2, \r\n \"top\": (winh + scrollTop - myh) / 3 \r\n }).show();\r\n\r\n _this.dataAllocation();\r\n },\r\n init: function(){\r\n let _this = this;\r\n\r\n const dvText = locale().dataVerification; \r\n\r\n //\u5355\u5143\u683C\u6570\u636E\u9A8C\u8BC1 \u7C7B\u578B\u662F \u4E0B\u62C9\u5217\u8868\r\n $(document).off(\"click.dropdownBtn\").on(\"click.dropdownBtn\", \"#luckysheet-dataVerification-dropdown-btn\", function(e) {\r\n _this.dropdownListShow();\r\n e.stopPropagation();\r\n });\r\n $(document).off(\"click.dropdownListItem\").on(\"click.dropdownListItem\", \"#luckysheet-dataVerification-dropdown-List .dropdown-List-item\", function(e) {\r\n var $item = $(this);\r\n let value = e.target.innerText;\r\n if ($item.hasClass('multi')) {\r\n $item.toggleClass('checked');\r\n value = $.map($(\"#luckysheet-dataVerification-dropdown-List\").children().filter('.checked'), function(el) {\r\n return el.innerText;\r\n }).join(',');\r\n } else {\r\n $(\"#luckysheet-dataVerification-dropdown-List\").hide();\r\n }\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rowIndex = last.row_focus;\r\n let colIndex = last.column_focus;\r\n\r\n $(\"#luckysheet-rich-text-editor\").text(value);\r\n formula.updatecell(rowIndex, colIndex);\r\n\r\n e.stopPropagation();\r\n });\r\n\r\n //\u5355\u5143\u683C\u8303\u56F4\r\n $(document).off(\"click.dvRange\").on(\"click.dvRange\", \"#data-verification-range .fa-table\", function(e) {\r\n $(\"#luckysheet-dataVerification-dialog\").hide();\r\n\r\n let dataSource = \"0\";\r\n let txt = $(this).siblings(\"input\").val().trim(); \r\n\r\n _this.rangeDialog(dataSource, txt);\r\n\r\n _this.selectRange = [];\r\n\r\n let range = _this.getRangeByTxt(txt);\r\n\r\n formula.rangetosheet = Store.currentSheetIndex;\r\n\r\n if(range[0].sheetIndex != Store.currentSheetIndex){\r\n sheetmanage.changeSheetExec(range[0].sheetIndex);\r\n }\r\n\r\n if(range.length > 0){\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n _this.selectRange.push({ \r\n \"left\": col_pre, \r\n \"width\": col - col_pre - 1, \r\n \"top\": row_pre, \r\n \"height\": row - row_pre - 1, \r\n \"left_move\": col_pre, \r\n \"width_move\": col - col_pre - 1, \r\n \"top_move\": row_pre, \r\n \"height_move\": row - row_pre - 1, \r\n \"row\": [r1, r2], \r\n \"column\": [c1, c2], \r\n \"row_focus\": r1, \r\n \"column_focus\": c1 \r\n });\r\n }\r\n }\r\n \r\n selectionCopyShow(_this.selectRange);\r\n }); \r\n $(document).off(\"click.dvRange2\").on(\"click.dvRange2\", \"#luckysheet-dataVerification-dialog .show-box-item-dropdown .range .fa-table\", function(e) {\r\n $(\"#luckysheet-dataVerification-dialog\").hide();\r\n\r\n let dataSource = \"1\";\r\n let txt = $(this).siblings(\"input\").val().trim(); \r\n\r\n _this.rangeDialog(dataSource, txt);\r\n\r\n _this.selectRange = [];\r\n\r\n let range = _this.getRangeByTxt(txt);\r\n\r\n formula.rangetosheet = Store.currentSheetIndex;\r\n\r\n if(range[0].sheetIndex != Store.currentSheetIndex){\r\n sheetmanage.changeSheetExec(range[0].sheetIndex);\r\n }\r\n\r\n if(range.length > 0){\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n _this.selectRange.push({ \r\n \"left\": col_pre, \r\n \"width\": col - col_pre - 1, \r\n \"top\": row_pre, \r\n \"height\": row - row_pre - 1, \r\n \"left_move\": col_pre, \r\n \"width_move\": col - col_pre - 1, \r\n \"top_move\": row_pre, \r\n \"height_move\": row - row_pre - 1, \r\n \"row\": [r1, r2], \r\n \"column\": [c1, c2], \r\n \"row_focus\": r1, \r\n \"column_focus\": c1 \r\n });\r\n }\r\n }\r\n \r\n selectionCopyShow(_this.selectRange);\r\n });\r\n $(document).off(\"click.dvRangeConfirm\").on(\"click.dvRangeConfirm\", \"#luckysheet-dataVerificationRange-dialog-confirm\", function(e) {\r\n let dataSource = $(this).attr(\"data-source\");\r\n let txt = $(this).parents(\"#luckysheet-dataVerificationRange-dialog\").find(\"input\").val();\r\n\r\n if(_this.getRangeByTxt(txt).length > 1){\r\n tooltip.info('', '\u4E0D\u80FD\u5BF9\u591A\u91CD\u9009\u62E9\u533A\u57DF\u6267\u884C\u6B64\u64CD\u4F5C\uFF0C\u8BF7\u9009\u62E9\u5355\u4E2A\u533A\u57DF\uFF0C\u7136\u540E\u518D\u8BD5');\r\n return;\r\n }\r\n\r\n if(dataSource == '0'){\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-range input\").val(txt);\r\n }\r\n else if(dataSource == '1'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-dropdown .range input\").val(txt);\r\n }\r\n \r\n $(\"#luckysheet-dataVerificationRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-dataVerification-dialog\").show();\r\n\r\n if(formula.rangetosheet != null && formula.rangetosheet != Store.currentSheetIndex){\r\n sheetmanage.changeSheetExec(formula.rangetosheet);\r\n formula.rangetosheet = null;\r\n }\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n $(document).off(\"click.dvRangeClose\").on(\"click.dvRangeClose\", \"#luckysheet-dataVerificationRange-dialog-close\", function(e) {\r\n $(\"#luckysheet-dataVerificationRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-dataVerification-dialog\").show();\r\n\r\n if(formula.rangetosheet != null && formula.rangetosheet != Store.currentSheetIndex){\r\n sheetmanage.changeSheetExec(formula.rangetosheet);\r\n formula.rangetosheet = null;\r\n }\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n $(document).on(\"click\", \"#luckysheet-dataVerificationRange-dialog .luckysheet-modal-dialog-title-close\", function(e) {\r\n $(\"#luckysheet-dataVerificationRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-dataVerification-dialog\").show();\r\n\r\n if(formula.rangetosheet != null && formula.rangetosheet != Store.currentSheetIndex){\r\n sheetmanage.changeSheetExec(formula.rangetosheet);\r\n formula.rangetosheet = null;\r\n }\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n })\r\n\r\n //\u9A8C\u8BC1\u6761\u4EF6 \u4E0B\u62C9\u6846\r\n $(document).off(\"change.typeSelect\").on(\"change.typeSelect\", \"#data-verification-type-select\", function(e) {\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item\").hide();\r\n\r\n let value = this.value;\r\n let item = _this.curItem;\r\n\r\n if(value == 'dropdown'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item-dropdown\").show();\r\n\r\n let value1 = \"\";\r\n\r\n if(value == item.type){\r\n value1 = item.value1;\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-dropdown .data-verification-value1\").val(value1);\r\n \r\n $('#luckysheet-dataVerification-dialog #data-verification-multi').prop('checked', item.type2 ? true : false);\r\n }\r\n else if(value == 'checkbox'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item-checkbox\").show();\r\n\r\n let value1 = \"\";\r\n let value2 = \"\";\r\n\r\n if(value == item.type){\r\n value1 = item.value1;\r\n value2 = item.value2;\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-checkbox .data-verification-value1\").val(value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-checkbox .data-verification-value2\").val(value2);\r\n }\r\n else if(value == 'number' || value == 'number_integer' || value == 'number_decimal'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number\").show();\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input\").hide();\r\n\r\n let type2 = \"bw\";\r\n let value1 = \"\";\r\n let value2 = \"\";\r\n\r\n if(item.type == 'number' || item.type == 'number_integer' || item.type == 'number_decimal'){\r\n type2 = item.type2;\r\n value1 = item.value1;\r\n value2 = item.value2;\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-number-select\").val(type2);\r\n \r\n if(type2 == 'bw' || type2 == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input2\").show();\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .data-verification-value1\").val(value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .data-verification-value2\").val(value2);\r\n }\r\n else if(value == 'text_content'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-text\").show();\r\n\r\n let type2 = \"include\";\r\n let value1 = \"\";\r\n \r\n if(value == item.type){\r\n type2 = item.type2;\r\n value1 = item.value1;\r\n }\r\n \r\n $(\"#luckysheet-dataVerification-dialog #data-verification-text-select\").val(type2);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-text .data-verification-value1\").val(value1);\r\n }\r\n else if(value == 'text_length'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength\").show();\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input\").hide();\r\n\r\n let type2 = \"bw\";\r\n let value1 = \"\";\r\n let value2 = \"\";\r\n\r\n if(value == item.type){\r\n type2 = item.type2;\r\n value1 = item.value1;\r\n value2 = item.value2;\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-textLength-select\").val(type2);\r\n \r\n if(type2 == 'bw' || type2 == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input2\").show();\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .data-verification-value1\").val(value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .data-verification-value2\").val(value2);\r\n }\r\n else if(value == 'date'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date\").show();\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input\").hide();\r\n\r\n let type2 = \"bw\";\r\n let value1 = \"\";\r\n let value2 = \"\";\r\n\r\n if(value == item.type){\r\n type2 = item.type2;\r\n value1 = item.value1;\r\n value2 = item.value2;\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-date-select\").val(type2);\r\n\r\n if(type2 == 'bw' || type2 == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input2\").show();\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .data-verification-value1\").val(value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .data-verification-value2\").val(value2);\r\n }\r\n else if(value == 'validity'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item-validity\").show();\r\n\r\n let type2 = \"card\";\r\n\r\n if(value == item.type){\r\n type2 = item.type2;\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-validity-select\").val(type2);\r\n }\r\n });\r\n\r\n $(document).off(\"change.numberSelect\").on(\"change.numberSelect\", \"#data-verification-number-select\", function(e) {\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input\").hide();\r\n\r\n let value = this.value;\r\n\r\n if(value == 'bw' || value == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input2\").show();\r\n }\r\n });\r\n // \u6587\u672C\u957F\u5EA6\u9009\u62E9\u53D8\u5316\r\n $(document).off(\"change.textLengthSelect\").on(\"change.textLengthSelect\", \"#data-verification-textLength-select\", function(e) {\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input\").hide();\r\n\r\n let value = this.value;\r\n\r\n if(value == 'bw' || value == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input2\").show();\r\n }\r\n });\r\n\r\n $(document).off(\"change.dateSelect\").on(\"change.dateSelect\", \"#data-verification-date-select\", function(e) {\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input\").hide();\r\n\r\n let value = this.value;\r\n\r\n if(value == 'bw' || value == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input2\").show();\r\n }\r\n });\r\n\r\n //\u9009\u4E2D\u5355\u5143\u683C\u65F6\u663E\u793A\u63D0\u793A\u8BED\r\n $(document).off(\"change.hintShow\").on(\"change.hintShow\", \"#data-verification-hint-show\", function(e) {\r\n if(this.checked){\r\n $(\"#luckysheet-dataVerification-dialog .data-verification-hint-text\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .data-verification-hint-text\").hide();\r\n }\r\n });\r\n\r\n //\u786E\u8BA4\u6309\u94AE\r\n $(document).off(\"click.dvSaveConfirm\").on(\"click.dvSaveConfirm\", \"#luckysheet-dataVerification-dialog-confirm\", function(e) {\r\n let rangeTxt = $(\"#luckysheet-dataVerification-dialog #data-verification-range input\").val().trim();\r\n let range = _this.getRangeByTxt(rangeTxt);\r\n\r\n if(range.length == 0){\r\n tooltip.info('', dvText.selectCellRange2);\r\n return;\r\n }\r\n\r\n let str = range[range.length - 1].row[0],\r\n edr = range[range.length - 1].row[1],\r\n stc = range[range.length - 1].column[0],\r\n edc = range[range.length - 1].column[1];\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n\r\n if(str < 0){\r\n str = 0;\r\n }\r\n\r\n if(edr > d.length - 1){\r\n edr = d.length - 1;\r\n }\r\n\r\n if(stc < 0){\r\n stc = 0;\r\n }\r\n\r\n if(edc > d[0].length - 1){\r\n edc = d[0].length - 1;\r\n }\r\n\r\n let type = $(\"#luckysheet-dataVerification-dialog #data-verification-type-select\").val();\r\n let type2 = null, value1 = \"\", value2 = \"\";\r\n\r\n if(type == 'dropdown'){\r\n value1 = $(\"#luckysheet-dataVerification-dialog .show-box-item-dropdown .data-verification-value1\").val().trim();\r\n \r\n if(value1.length == 0){\r\n tooltip.info('', dvText.tooltipInfo1);\r\n return;\r\n }\r\n type2 = $(\"#luckysheet-dataVerification-dialog #data-verification-multi\").is(':checked');\r\n }\r\n else if(type == 'checkbox'){\r\n value1 = $(\"#luckysheet-dataVerification-dialog .show-box-item-checkbox .data-verification-value1\").val().trim();\r\n value2 = $(\"#luckysheet-dataVerification-dialog .show-box-item-checkbox .data-verification-value2\").val().trim();\r\n \r\n if(value1.length == 0 || value2.length == 0){\r\n tooltip.info('', dvText.tooltipInfo2);\r\n return;\r\n }\r\n }\r\n else if(type == 'number' || type == 'number_integer' || type == 'number_decimal'){\r\n type2 = $(\"#luckysheet-dataVerification-dialog #data-verification-number-select\").val();\r\n value1 = $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input:visible .data-verification-value1\").val().trim();\r\n \r\n if(!isRealNum(value1)){\r\n tooltip.info('', dvText.tooltipInfo3);\r\n return;\r\n }\r\n\r\n if(type2 == 'bw' || type2 == 'nb'){\r\n value2 = $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input:visible .data-verification-value2\").val().trim();\r\n \r\n if(!isRealNum(value2)){\r\n tooltip.info('', dvText.tooltipInfo3);\r\n return;\r\n }\r\n\r\n if(Number(value2) < Number(value1)){\r\n tooltip.info('', dvText.tooltipInfo4);\r\n return;\r\n }\r\n }\r\n }\r\n else if(type == 'text_content'){\r\n type2 = $(\"#luckysheet-dataVerification-dialog #data-verification-text-select\").val();\r\n value1 = $(\"#luckysheet-dataVerification-dialog .show-box-item-text .data-verification-value1\").val().trim();\r\n \r\n if(value1.length == 0){\r\n tooltip.info('', dvText.tooltipInfo5);\r\n return;\r\n }\r\n }\r\n else if(type == 'text_length'){\r\n type2 = $(\"#luckysheet-dataVerification-dialog #data-verification-textLength-select\").val();\r\n value1 = $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input:visible .data-verification-value1\").val().trim();\r\n \r\n if(!isRealNum(value1)){\r\n tooltip.info('', dvText.tooltipInfo3);\r\n return;\r\n }\r\n\r\n if (!Number.isInteger(Number(value1)) || Number(value1) < 0) {\r\n tooltip.info('', dvText.textlengthInteger);\r\n return;\r\n }\r\n\r\n if(type2 == 'bw' || type2 == 'nb'){\r\n value2 = $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input:visible .data-verification-value2\").val().trim();\r\n \r\n if(!isRealNum(value2)){\r\n tooltip.info('', dvText.tooltipInfo3);\r\n return;\r\n }\r\n if (!Number.isInteger(Number(value2)) || Number(value2) < 0) {\r\n tooltip.info('', dvText.textlengthInteger);\r\n return;\r\n }\r\n\r\n if(Number(value2) < Number(value1)){\r\n tooltip.info('', dvText.tooltipInfo4);\r\n return;\r\n }\r\n }\r\n }\r\n else if(type == 'date'){\r\n type2 = $(\"#luckysheet-dataVerification-dialog #data-verification-date-select\").val();\r\n value1 = $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input:visible .data-verification-value1\").val().trim();\r\n \r\n if(!isdatetime(value1)){\r\n tooltip.info('', dvText.tooltipInfo6);\r\n return;\r\n }\r\n\r\n if(type2 == 'bw' || type2 == 'nb'){\r\n value2 = $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input:visible .data-verification-value2\").val().trim();\r\n \r\n if(!isdatetime(value2)){\r\n tooltip.info('', dvText.tooltipInfo6);\r\n return;\r\n }\r\n\r\n if(diff(value1, value2) > 0){\r\n tooltip.info('', dvText.tooltipInfo7);\r\n return;\r\n }\r\n }\r\n }\r\n else if(type == 'validity'){\r\n type2 = $(\"#luckysheet-dataVerification-dialog #data-verification-validity-select\").val();\r\n }\r\n\r\n let remote = $(\"#luckysheet-dataVerification-dialog #data-verification-remote\").is(\":checked\");\r\n let prohibitInput = $(\"#luckysheet-dataVerification-dialog #data-verification-prohibitInput\").is(\":checked\");\r\n let hintShow = $(\"#luckysheet-dataVerification-dialog #data-verification-hint-show\").is(\":checked\");\r\n let hintText = \"\";\r\n\r\n if(hintShow){\r\n hintText = $(\"#luckysheet-dataVerification-dialog .data-verification-hint-text input\").val().trim();\r\n }\r\n\r\n let item = {\r\n type: type,\r\n type2: type2, \r\n value1: value1, \r\n value2: value2, \r\n checked: false, \r\n remote: remote, \r\n prohibitInput: prohibitInput, \r\n hintShow: hintShow, \r\n hintText: hintText,\r\n }\r\n \r\n let historyDataVerification = $.extend(true, {}, _this.dataVerification);\r\n let currentDataVerification = $.extend(true, {}, _this.dataVerification);\r\n\r\n for(let r = str; r <= edr; r++){\r\n for(let c = stc; c <= edc; c++){\r\n currentDataVerification[r + '_' + c] = item;\r\n\r\n if(type == 'checkbox'){\r\n setcellvalue(r, c, d, item.value2);\r\n }\r\n }\r\n }\r\n\r\n if(type == 'checkbox'){\r\n _this.refOfCheckbox(historyDataVerification, currentDataVerification, Store.currentSheetIndex, d, range[range.length - 1]);\r\n }\r\n else{\r\n _this.ref(historyDataVerification, currentDataVerification, Store.currentSheetIndex);\r\n }\r\n \r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-dataVerification-dialog\").hide();\r\n });\r\n\r\n //\u5220\u9664\u9A8C\u8BC1\u6309\u94AE\r\n $(document).off(\"click.delete\").on(\"click.delete\", \"#luckysheet-dataVerification-dialog-delete\", function(e) {\r\n let rangeTxt = $(\"#luckysheet-dataVerification-dialog #data-verification-range input\").val().trim();\r\n let range = _this.getRangeByTxt(rangeTxt);\r\n\r\n if(range.length == 0){\r\n tooltip.info('', dvText.selectCellRange2);\r\n return;\r\n }\r\n \r\n let historyDataVerification = $.extend(true, {}, _this.dataVerification);\r\n let currentDataVerification = $.extend(true, {}, _this.dataVerification);\r\n\r\n let str = range[range.length - 1].row[0],\r\n edr = range[range.length - 1].row[1],\r\n stc = range[range.length - 1].column[0],\r\n edc = range[range.length - 1].column[1];\r\n\r\n for(let r = str; r <= edr; r++){\r\n for(let c = stc; c <= edc; c++){\r\n delete currentDataVerification[r + '_' + c];\r\n }\r\n }\r\n\r\n _this.ref(historyDataVerification, currentDataVerification, Store.currentSheetIndex);\r\n \r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-dataVerification-dialog\").hide();\r\n });\r\n\r\n //info\u63D0\u793A\u5F39\u6846 \u5173\u95ED\r\n $(document).on(\"click\", \"#luckysheet-info .luckysheet-modal-dialog-title-close, #luckysheet-info .luckysheet-model-close-btn\", function(e) {\r\n $(this).parents(\"#luckysheet-info\").hide();\r\n\r\n if($(\"#luckysheet-dataVerification-dialog\").is(\":visible\")){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n }\r\n e.stopPropagation();\r\n });\r\n },\r\n dataAllocation: function(){\r\n let _this = this;\r\n\r\n //\u5355\u5143\u683C\u8303\u56F4\r\n let range = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rangeTxt = getRangetxt(Store.currentSheetIndex, range, Store.currentSheetIndex);\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-range input\").val(rangeTxt);\r\n\r\n //focus\u5355\u5143\u683C\r\n let rowIndex = range.row_focus || range.row[0];\r\n let colIndex = range.column_focus || range.column[0];\r\n let dataVerification = $.extend(true, {}, _this.dataVerification); \r\n let item = dataVerification[rowIndex + '_' + colIndex];\r\n\r\n if(item == null){\r\n item = $.extend(true, {}, _this.defaultItem);\r\n }\r\n\r\n _this.curItem = item;\r\n \r\n //\u9A8C\u8BC1\u6761\u4EF6\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-type-select\").val(item.type);\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item\").hide();\r\n\r\n if(item.type == 'dropdown'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item-dropdown\").show();\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-dropdown .data-verification-value1\").val(item.value1);\r\n $('#luckysheet-dataVerification-dialog #data-verification-multi').prop('checked', item.type2 ? true : false);\r\n }\r\n else if(item.type == 'checkbox'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item-checkbox\").show();\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-checkbox .data-verification-value1\").val(item.value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-checkbox .data-verification-value2\").val(item.value2);\r\n }\r\n else if(item.type == 'number' || item.type == 'number_integer' || item.type == 'number_decimal'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number\").show();\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-number-select\").val(item.type2);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input\").hide();\r\n \r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .input2\").show();\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .data-verification-value1\").val(item.value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-number .data-verification-value2\").val(item.value2);\r\n }\r\n else if(item.type == 'text_content'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-text\").show();\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-text-select\").val(item.type2);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-text .data-verification-value1\").val(item.value1);\r\n }\r\n else if(item.type == 'text_length'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength\").show();\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-textLength-select\").val(item.type2);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input\").hide();\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .input2\").show();\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .data-verification-value1\").val(item.value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-textLength .data-verification-value2\").val(item.value2);\r\n }\r\n else if(item.type == 'date'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date\").show();\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-date-select\").val(item.type2);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input\").hide();\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input1\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .input2\").show();\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .data-verification-value1\").val(item.value1);\r\n $(\"#luckysheet-dataVerification-dialog .show-box-item-date .data-verification-value2\").val(item.value2);\r\n }\r\n else if(item.type == 'validity'){\r\n $(\"#luckysheet-dataVerification-dialog .show-box .show-box-item-validity\").show();\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-validity-select\").val(item.type2);\r\n }\r\n\r\n //\u81EA\u52A8\u8FDC\u7A0B\u83B7\u53D6\u9009\u9879\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-remote\").prop(\"checked\", item.remote);\r\n\r\n //\u8F93\u5165\u6570\u636E\u65E0\u6548\u65F6\u7981\u6B62\u8F93\u5165\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-prohibitInput\").prop(\"checked\", item.prohibitInput);\r\n\r\n //\u9009\u4E2D\u5355\u5143\u683C\u65F6\u663E\u793A\u63D0\u793A\u8BED\r\n $(\"#luckysheet-dataVerification-dialog #data-verification-hint-show\").prop(\"checked\", item.hintShow);\r\n \r\n if(item.hintShow){\r\n $(\"#luckysheet-dataVerification-dialog .data-verification-hint-text\").show();\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dialog .data-verification-hint-text\").hide();\r\n }\r\n \r\n $(\"#luckysheet-dataVerification-dialog .data-verification-hint-text input\").val(item.hintText);\r\n },\r\n rangeDialog: function(dataSource, txt){\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const dvText = _locale.dataVerification;\r\n const buttonText = _locale.button;\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-dataVerificationRange-dialog\").remove();\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-dataVerificationRange-dialog\", \r\n \"addclass\": \"luckysheet-dataVerificationRange-dialog\", \r\n \"title\": dvText.selectCellRange, \r\n \"content\": ``, \r\n \"botton\": `\r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-dataVerificationRange-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-dataVerificationRange-dialog\").css({ \r\n \"left\": (winw + scrollLeft - myw) / 2, \r\n \"top\": (winh + scrollTop - myh) / 3 \r\n }).show();\r\n },\r\n getTxtByRange: function(range){\r\n if(range.length > 0){\r\n let txt = [];\r\n\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n \r\n txt.push(getRangetxt(Store.currentSheetIndex, { \"row\": [r1, r2], \"column\": [c1, c2] }, Store.currentSheetIndex));\r\n }\r\n\r\n return txt.join(\",\");\r\n }\r\n },\r\n getRangeByTxt: function(txt){\r\n let range = [];\r\n\r\n if(txt.indexOf(\",\") != -1){\r\n let arr = txt.split(\",\");\r\n for(let i = 0; i < arr.length; i++){\r\n if(formula.iscelldata(arr[i])){\r\n range.push(formula.getcellrange(arr[i]));\r\n }\r\n else{\r\n range = [];\r\n break; \r\n }\r\n }\r\n }\r\n else{\r\n if(formula.iscelldata(txt)){\r\n range.push(formula.getcellrange(txt));\r\n }\r\n }\r\n\r\n return range;\r\n },\r\n cellFocus: function(r, c, clickMode){\r\n $(\"#luckysheet-dataVerification-dropdown-btn\").hide();\r\n $(\"#luckysheet-dataVerification-showHintBox\").hide();\r\n\r\n let _this = this;\r\n\r\n if(_this.dataVerification == null || _this.dataVerification[r + '_' + c] == null){\r\n $(\"#luckysheet-dataVerification-dropdown-List\").hide();\r\n return;\r\n }\r\n\r\n let row = Store.visibledatarow[r],\r\n row_pre = r == 0 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c],\r\n col_pre = c == 0 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let item = _this.dataVerification[r + '_' + c];\r\n\r\n //\u5355\u5143\u683C\u6570\u636E\u9A8C\u8BC1 \u7C7B\u578B\u662F \u590D\u9009\u6846\r\n if(clickMode && item.type == 'checkbox'){\r\n _this.checkboxChange(r, c);\r\n return;\r\n }\r\n\r\n //\u5355\u5143\u683C\u6570\u636E\u9A8C\u8BC1 \u7C7B\u578B\u662F \u4E0B\u62C9\u5217\u8868\r\n if(item.type == 'dropdown'){\r\n $(\"#luckysheet-dataVerification-dropdown-btn\").show().css({\r\n 'max-width': col - col_pre,\r\n 'max-height': row - row_pre,\r\n 'left': col - 20,\r\n 'top': row_pre + (row - row_pre - 20) / 2\r\n })\r\n\r\n if($(\"#luckysheet-dataVerification-dropdown-List\").is(\":visible\")){\r\n let dataIndex = $(\"#luckysheet-dataVerification-dropdown-List\").prop(\"data-index\");\r\n \r\n if(dataIndex != (r + '_' + c)){\r\n $(\"#luckysheet-dataVerification-dropdown-List\").hide();\r\n }\r\n }\r\n }\r\n else{\r\n $(\"#luckysheet-dataVerification-dropdown-List\").hide();\r\n }\r\n\r\n //\u63D0\u793A\u8BED\r\n if(item.hintShow){\r\n let hintText;\r\n\r\n if(Store.lang == 'en'){\r\n hintText = 'Hint: ';\r\n }\r\n else{\r\n hintText = '\u63D0\u793A\uFF1A';\r\n }\r\n\r\n hintText += _this.getHintText(item);\r\n\r\n $(\"#luckysheet-dataVerification-showHintBox\").html(hintText).show().css({\r\n 'left': col_pre,\r\n 'top': row\r\n });\r\n\r\n return;\r\n }\r\n \r\n //\u6570\u636E\u9A8C\u8BC1\u672A\u901A\u8FC7\r\n let cellValue = getcellvalue(r, c, null);\r\n\r\n if(isRealNull(cellValue)){\r\n return;\r\n }\r\n\r\n let validate = _this.validateCellData(cellValue, item);\r\n\r\n if(!validate){\r\n let failureText;\r\n\r\n if(Store.lang == 'en'){\r\n failureText = 'Failure: ';\r\n }\r\n else{\r\n failureText = '\u5931\u6548\uFF1A';\r\n }\r\n\r\n failureText += _this.getFailureText(item);\r\n\r\n $(\"#luckysheet-dataVerification-showHintBox\").html(failureText).show().css({\r\n 'left': col_pre,\r\n 'top': row\r\n });\r\n }\r\n },\r\n getHintText: function(item) {\r\n let _this = this;\r\n\r\n let hintText = item.hintText || '';\r\n\r\n if(hintText.length == 0){\r\n if(Store.lang == 'en'){\r\n if(item.type == 'dropdown'){\r\n hintText += 'please select an option in the drop-down list';\r\n }\r\n else if(item.type == 'checkbox'){\r\n\r\n }\r\n else if(item.type == 'number' || item.type == 'number_integer' || item.type == 'number_decimal'){\r\n hintText += 'please enter a ' + _this.optionLabel_en[item.type] + ' ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n hintText += ' and ' + item.value2;\r\n }\r\n }\r\n else if(item.type == 'text_content'){\r\n hintText += 'please enter text ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n }\r\n else if(item.type == 'text_length'){\r\n hintText += 'please enter text with length ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n \r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n hintText += ' and ' + item.value2;\r\n }\r\n }\r\n else if(item.type == 'date'){\r\n hintText += 'please enter a date ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n hintText += ' and ' + item.value2;\r\n }\r\n }\r\n else if(item.type == 'validity'){\r\n hintText += 'please enter the correct ' + _this.optionLabel_en[item.type2];\r\n }\r\n }\r\n else{\r\n if(item.type == 'dropdown'){\r\n hintText += '\u8BF7\u9009\u62E9\u4E0B\u62C9\u5217\u8868\u4E2D\u7684\u9009\u9879';\r\n }\r\n else if(item.type == 'checkbox'){\r\n\r\n }\r\n else if(item.type == 'number' || item.type == 'number_integer' || item.type == 'number_decimal'){\r\n hintText += '\u8BF7\u8F93\u5165' + _this.optionLabel[item.type2] + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n hintText += '\u548C' + item.value2 + '\u4E4B\u95F4';\r\n }\r\n\r\n hintText += '\u7684' + _this.optionLabel[item.type];\r\n }\r\n else if(item.type == 'text_content'){\r\n hintText += '\u8BF7\u8F93\u5165\u5185\u5BB9' + _this.optionLabel[item.type2] + item.value1 + '\u7684\u6587\u672C';\r\n }\r\n else if(item.type == 'text_length'){\r\n hintText += '\u8BF7\u8F93\u5165\u957F\u5EA6' + _this.optionLabel[item.type2] + item.value1;\r\n \r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n hintText += '\u548C' + item.value2 + '\u4E4B\u95F4';\r\n }\r\n\r\n hintText += '\u7684\u6587\u672C';\r\n }\r\n else if(item.type == 'date'){\r\n hintText += '\u8BF7\u8F93\u5165' + _this.optionLabel[item.type2] + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n hintText += '\u548C' + item.value2 + '\u4E4B\u95F4';\r\n }\r\n\r\n hintText += '\u7684\u65E5\u671F';\r\n }\r\n else if(item.type == 'validity'){\r\n hintText += '\u8BF7\u8F93\u5165\u6B63\u786E\u7684' + _this.optionLabel[item.type2];\r\n }\r\n }\r\n }\r\n\r\n return hintText;\r\n },\r\n getFailureText: function(item) {\r\n let _this = this;\r\n\r\n let failureText = '';\r\n\r\n if(Store.lang == 'en'){\r\n if(item.type == 'dropdown'){\r\n failureText += 'what you selected is not an option in the drop-down list';\r\n }\r\n else if(item.type == 'checkbox'){\r\n\r\n }\r\n else if(item.type == 'number' || item.type == 'number_integer' || item.type == 'number_decimal'){\r\n failureText += 'what you entered is not a ' + _this.optionLabel_en[item.type] + ' ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n failureText += ' and ' + item.value2;\r\n }\r\n }\r\n else if(item.type == 'text_content'){\r\n failureText += 'what you entered is not text that ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n }\r\n else if(item.type == 'text_length'){\r\n failureText += 'the text you entered is not length ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n \r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n failureText += ' and ' + item.value2;\r\n }\r\n }\r\n else if(item.type == 'date'){\r\n failureText += 'the date you entered is not ' + _this.optionLabel_en[item.type2] + ' ' + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n failureText += ' and ' + item.value2;\r\n }\r\n }\r\n else if(item.type == 'validity'){\r\n failureText += 'what you entered is not a correct ' + _this.optionLabel_en[item.type2];\r\n }\r\n }\r\n else{\r\n if(item.type == 'dropdown'){\r\n failureText += '\u4F60\u9009\u62E9\u7684\u4E0D\u662F\u4E0B\u62C9\u5217\u8868\u4E2D\u7684\u9009\u9879';\r\n }\r\n else if(item.type == 'checkbox'){\r\n\r\n }\r\n else if(item.type == 'number' || item.type == 'number_integer' || item.type == 'number_decimal'){\r\n failureText += '\u4F60\u8F93\u5165\u7684\u4E0D\u662F' + _this.optionLabel[item.type2] + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n failureText += '\u548C' + item.value2 + '\u4E4B\u95F4';\r\n }\r\n\r\n failureText += '\u7684' + _this.optionLabel[item.type];\r\n }\r\n else if(item.type == 'text_content'){\r\n failureText += '\u4F60\u8F93\u5165\u7684\u4E0D\u662F\u5185\u5BB9' + _this.optionLabel[item.type2] + item.value1 + '\u7684\u6587\u672C';\r\n }\r\n else if(item.type == 'text_length'){\r\n failureText += '\u4F60\u8F93\u5165\u7684\u4E0D\u662F\u957F\u5EA6' + _this.optionLabel[item.type2] + item.value1;\r\n \r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n failureText += '\u548C' + item.value2 + '\u4E4B\u95F4';\r\n }\r\n\r\n failureText += '\u7684\u6587\u672C';\r\n }\r\n else if(item.type == 'date'){\r\n failureText += '\u4F60\u8F93\u5165\u7684\u4E0D\u662F' + _this.optionLabel[item.type2] + item.value1;\r\n\r\n if(item.type2 == 'bw' || item.type2 == 'nb'){\r\n failureText += '\u548C' + item.value2 + '\u4E4B\u95F4';\r\n }\r\n\r\n failureText += '\u7684\u65E5\u671F';\r\n }\r\n else if(item.type == 'validity'){\r\n failureText += '\u4F60\u8F93\u5165\u7684\u4E0D\u662F\u4E00\u4E2A\u6B63\u786E\u7684' + _this.optionLabel[item.type2];\r\n }\r\n }\r\n\r\n return failureText;\r\n },\r\n validateCellData: function(cellValue, item){\r\n let _this = this;\r\n\r\n let type = item.type,\r\n type2 = item.type2,\r\n value1 = item.value1,\r\n value2 = item.value2;\r\n\r\n if(type == 'dropdown'){\r\n let list = _this.getDropdownList(value1);\r\n\r\n // \u591A\u9009\u7684\u60C5\u51B5 \u68C0\u67E5\u6BCF\u4E2A\u90FD\u5728\u4E0B\u62C9\u5217\u8868\u4E2D\r\n if(type2 && cellValue){\r\n return cellValue.split(',').every(function (i) {\r\n return list.indexOf(i) !== -1;\r\n });\r\n }\r\n\r\n let result = false;\r\n\r\n for(let i = 0; i < list.length; i++){\r\n if(list[i] == cellValue){\r\n result = true;\r\n break;\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(type == 'checkbox'){\r\n\r\n }\r\n else if(type == 'number' || type == 'number_integer' || type == 'number_decimal'){\r\n if(!isRealNum(cellValue)){\r\n return false;\r\n }\r\n \r\n cellValue = Number(cellValue);\r\n\r\n if(type == 'number_integer' && cellValue % 1 !== 0){\r\n return false;\r\n }\r\n\r\n if(type == 'number_decimal' && cellValue % 1 === 0){\r\n return false;\r\n }\r\n\r\n value1 = Number(value1);\r\n value2 = Number(value2);\r\n\r\n if(type2 == 'bw' && (cellValue < value1 || cellValue > value2)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'nb' && (cellValue >= value1 && cellValue <= value2)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'eq' && cellValue != value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'ne' && cellValue == value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'gt' && cellValue <= value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'lt' && cellValue >= value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'gte' && cellValue < value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'lte' && cellValue > value1){\r\n return false;\r\n }\r\n }\r\n else if(type == 'text_content'){\r\n cellValue = cellValue.toString();\r\n value1 = value1.toString();\r\n\r\n if(type2 == 'include' && cellValue.indexOf(value1) == -1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'exclude' && cellValue.indexOf(value1) > -1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'equal' && cellValue != value1){\r\n return false;\r\n }\r\n }\r\n else if(type == 'text_length'){\r\n cellValue = cellValue.toString().length;\r\n\r\n value1 = Number(value1);\r\n value2 = Number(value2);\r\n\r\n if(type2 == 'bw' && (cellValue < value1 || cellValue > value2)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'nb' && (cellValue >= value1 && cellValue <= value2)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'eq' && cellValue != value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'ne' && cellValue == value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'gt' && cellValue <= value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'lt' && cellValue >= value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'gte' && cellValue < value1){\r\n return false;\r\n }\r\n\r\n if(type2 == 'lte' && cellValue > value1){\r\n return false;\r\n }\r\n }\r\n else if(type == 'date'){\r\n if(!isdatetime(cellValue)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'bw' && (diff(cellValue, value1) < 0 || diff(cellValue, value2) > 0)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'nb' && (diff(cellValue, value1) >= 0 && diff(cellValue, value2) <= 0)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'eq' && diff(cellValue, value1) != 0){\r\n return false;\r\n }\r\n\r\n if(type2 == 'ne' && diff(cellValue, value1) == 0){\r\n return false;\r\n }\r\n\r\n if(type2 == 'bf' && diff(cellValue, value1) >= 0){\r\n return false;\r\n }\r\n\r\n if(type2 == 'nbf' && diff(cellValue, value1) < 0){\r\n return false;\r\n }\r\n\r\n if(type2 == 'af' && diff(cellValue, value1) <= 0){\r\n return false;\r\n }\r\n\r\n if(type2 == 'naf' && diff(cellValue, value1) > 0){\r\n return false;\r\n }\r\n }\r\n else if(type == 'validity'){\r\n if(type2 == 'card' && !validateIdCard(cellValue)){\r\n return false;\r\n }\r\n\r\n if(type2 == 'phone' && !/^1[3456789]\\d{9}$/.test(cellValue)){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n },\r\n dropdownListShow: function(){\r\n $(\"#luckysheet-dataVerification-showHintBox\").hide();\r\n\r\n let _this = this;\r\n\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rowIndex = last.row_focus;\r\n let colIndex = last.column_focus;\r\n\r\n let row = Store.visibledatarow[rowIndex],\r\n row_pre = rowIndex == 0 ? 0 : Store.visibledatarow[rowIndex - 1];\r\n let col = Store.visibledatacolumn[colIndex],\r\n col_pre = colIndex == 0 ? 0 : Store.visibledatacolumn[colIndex - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, rowIndex, colIndex);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let item = _this.dataVerification[rowIndex + '_' + colIndex];\r\n let list = _this.getDropdownList(item.value1);\r\n\r\n let optionHtml = '';\r\n if (item.type === 'dropdown' && item.type2) {\r\n // \u4E0B\u62C9\u591A\u9009\u7684\u60C5\u51B5\u4E0B \u5C06\u5DF2\u7ECF\u9009\u62E9\u7684\u6807\u51FA\u6765\r\n let cellValue = getcellvalue(rowIndex, colIndex, null);\r\n let valueArr = isRealNull(cellValue) ? [] : cellValue.split(',');\r\n list.forEach(i => {\r\n let checked = valueArr.indexOf(i) !== -1;\r\n optionHtml += `
${i}
`;\r\n });\r\n } else {\r\n list.forEach(i => {\r\n optionHtml += `
${i}
`;\r\n });\r\n }\r\n\r\n $(\"#luckysheet-dataVerification-dropdown-List\")\r\n .html(optionHtml)\r\n .prop(\"data-index\", rowIndex + '_' + colIndex)\r\n .show()\r\n .css({\r\n 'width': col - col_pre - 1,\r\n 'left': col_pre,\r\n 'top': row,\r\n });\r\n\r\n let myh = $(\"#luckysheet-dataVerification-dropdown-List\").outerHeight();\r\n let currentWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n\r\n if(row + myh > currentWinH - 42 - 6){\r\n $(\"#luckysheet-dataVerification-dropdown-List\").css({\r\n 'top': row_pre - myh,\r\n })\r\n }\r\n },\r\n getDropdownList: function(txt){\r\n let list = [];\r\n\r\n if(formula.iscelldata(txt)){\r\n let range = formula.getcellrange(txt);\r\n let d = Store.luckysheetfile[getSheetIndex(range.sheetIndex)].data;\r\n\r\n for(let r = range.row[0]; r <= range.row[1]; r++){\r\n for(let c = range.column[0]; c <= range.column[1]; c++){\r\n if(d[r] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(cell == null || cell.v == null){\r\n continue;\r\n }\r\n\r\n let v = cell.m || cell.v;\r\n\r\n if(!list.includes(v)){\r\n list.push(v);\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n let arr = txt.split(\",\");\r\n\r\n for(let i = 0; i < arr.length; i++){\r\n let v = arr[i];\r\n\r\n if(v.length == 0){\r\n continue;\r\n }\r\n\r\n if(!list.includes(v)){\r\n list.push(v);\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n },\r\n checkboxChange: function(r, c){\r\n let _this = this;\r\n\r\n let historyDataVerification = $.extend(true, {}, _this.dataVerification);\r\n let currentDataVerification = $.extend(true, {}, _this.dataVerification);\r\n\r\n let item = currentDataVerification[r + '_' + c];\r\n item.checked = !item.checked;\r\n\r\n let value = item.value2;\r\n if(item.checked){\r\n value = item.value1;\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n setcellvalue(r, c, d, value);\r\n\r\n _this.refOfCheckbox(\r\n historyDataVerification, \r\n currentDataVerification, \r\n Store.currentSheetIndex, \r\n d, \r\n { \"row\": [r, r], \"column\": [c, c] }\r\n );\r\n },\r\n ref: function(historyDataVerification, currentDataVerification, sheetIndex){\r\n let _this = this;\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n let redo = {};\r\n redo[\"type\"] = \"updateDataVerification\";\r\n redo[\"sheetIndex\"] = sheetIndex;\r\n redo[\"historyDataVerification\"] = historyDataVerification;\r\n redo[\"currentDataVerification\"] = currentDataVerification;\r\n Store.jfredo.push(redo); \r\n }\r\n \r\n _this.dataVerification = currentDataVerification;\r\n Store.luckysheetfile[getSheetIndex(sheetIndex)].dataVerification = currentDataVerification;\r\n\r\n //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n if(server.allowUpdate){ \r\n server.saveParam(\"all\", sheetIndex, currentDataVerification, { \"k\": \"dataVerification\" });\r\n }\r\n\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n },\r\n refOfCheckbox: function(historyDataVerification, currentDataVerification, sheetIndex, d, range){\r\n let _this = this;\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n let redo = {};\r\n redo[\"type\"] = \"updateDataVerificationOfCheckbox\";\r\n redo[\"sheetIndex\"] = sheetIndex;\r\n redo[\"historyDataVerification\"] = historyDataVerification;\r\n redo[\"currentDataVerification\"] = currentDataVerification;\r\n redo[\"data\"] = Store.flowdata; \r\n redo[\"curData\"] = d;\r\n redo[\"range\"] = range; \r\n Store.jfredo.push(redo); \r\n }\r\n\r\n _this.dataVerification = currentDataVerification;\r\n Store.luckysheetfile[getSheetIndex(sheetIndex)].dataVerification = currentDataVerification;\r\n\r\n Store.flowdata = d;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n Store.luckysheetfile[getSheetIndex(sheetIndex)].data = Store.flowdata;\r\n\r\n //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n if(server.allowUpdate){ \r\n server.saveParam(\"all\", sheetIndex, currentDataVerification, { \"k\": \"dataVerification\" });\r\n server.historyParam(Store.flowdata, sheetIndex, range);\r\n }\r\n\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n },\r\n}\r\n\r\nfunction validateIdCard(idCard) {\r\n // 15\u4F4D\u548C18\u4F4D\u8EAB\u4EFD\u8BC1\u53F7\u7801\u7684\u6B63\u5219\u8868\u8FBE\u5F0F\r\n var regIdCard = /^(^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$)|(^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])((\\d{4})|\\d{3}[Xx])$)$/;\r\n\r\n // \u5982\u679C\u901A\u8FC7\u8BE5\u9A8C\u8BC1\uFF0C\u8BF4\u660E\u8EAB\u4EFD\u8BC1\u683C\u5F0F\u6B63\u786E\uFF0C\u4F46\u51C6\u786E\u6027\u8FD8\u9700\u8BA1\u7B97\r\n if (regIdCard.test(idCard)) {\r\n if (idCard.length == 18) {\r\n var idCardWi = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2); // \u5C06\u524D17\u4F4D\u52A0\u6743\u56E0\u5B50\u4FDD\u5B58\u5728\u6570\u7EC4\u91CC\r\n var idCardY = new Array(1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2); // \u8FD9\u662F\u9664\u4EE511\u540E\uFF0C\u53EF\u80FD\u4EA7\u751F\u768411\u4F4D\u4F59\u6570\u3001\u9A8C\u8BC1\u7801\uFF0C\u4E5F\u4FDD\u5B58\u6210\u6570\u7EC4\r\n var idCardWiSum = 0; // \u7528\u6765\u4FDD\u5B58\u524D17\u4F4D\u5404\u81EA\u4E56\u4EE5\u52A0\u6743\u56E0\u5B50\u540E\u7684\u603B\u548C\r\n for (var i = 0; i < 17; i++) {\r\n idCardWiSum += idCard.substring(i, i + 1) * idCardWi[i];\r\n }\r\n\r\n var idCardMod = idCardWiSum % 11; // \u8BA1\u7B97\u51FA\u6821\u9A8C\u7801\u6240\u5728\u6570\u7EC4\u7684\u4F4D\u7F6E\r\n var idCardLast = idCard.substring(17); // \u5F97\u5230\u6700\u540E\u4E00\u4F4D\u8EAB\u4EFD\u8BC1\u53F7\u7801\r\n\r\n // \u5982\u679C\u7B49\u4E8E2\uFF0C\u5219\u8BF4\u660E\u6821\u9A8C\u7801\u662F10\uFF0C\u8EAB\u4EFD\u8BC1\u53F7\u7801\u6700\u540E\u4E00\u4F4D\u5E94\u8BE5\u662FX\r\n if (idCardMod == 2) {\r\n if (idCardLast == \"X\" || idCardLast == \"x\") {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n // \u7528\u8BA1\u7B97\u51FA\u7684\u9A8C\u8BC1\u7801\u4E0E\u6700\u540E\u4E00\u4F4D\u8EAB\u4EFD\u8BC1\u53F7\u7801\u5339\u914D\uFF0C\u5982\u679C\u4E00\u81F4\uFF0C\u8BF4\u660E\u901A\u8FC7\uFF0C\u5426\u5219\u662F\u65E0\u6548\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801\r\n if (idCardLast == idCardY[idCardMod]) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n } else {\r\n return false;\r\n }\r\n}\r\n\r\nexport default dataVerificationCtrl;", "import editor from \"./editor\";\r\nimport formula from \"./formula\";\r\nimport { jfrefreshgrid_adRC, jfrefreshgrid_deleteCell, jfrefreshgrid_rhcw } from \"./refresh\";\r\nimport { datagridgrowth, getcellFormula } from \"./getdata\";\r\nimport { setcellvalue } from \"./setdata\";\r\nimport conditionformat from \"../controllers/conditionformat\";\r\nimport luckysheetFreezen from \"../controllers/freezen\";\r\nimport { selectHightlightShow } from \"../controllers/select\";\r\nimport { luckysheet_searcharray } from \"../controllers/sheetSearch\";\r\nimport { checkProtectionAuthorityNormal, checkProtectionNotEnable } from \"../controllers/protection\";\r\nimport { getSheetIndex } from \"../methods/get\";\r\nimport Store from \"../store\";\r\nimport method from \"./method\";\r\n\r\n/**\r\n * \u589E\u52A0\u884C\u5217\r\n * @param {string} type \u884C\u6216\u5217 ['row', 'column'] \u4E4B\u4E00\r\n * @param {number} index \u63D2\u5165\u7684\u4F4D\u7F6E index\r\n * @param {number} value \u63D2\u5165 \u591A\u5C11 \u884C\uFF08\u5217\uFF09\r\n * @param {string} direction \u54EA\u4E2A\u65B9\u5411\u63D2\u5165 ['lefttop','rightbottom'] \u4E4B\u4E00\r\n * @param {string | number} sheetIndex \u64CD\u4F5C\u7684 sheet \u7684 index \u5C5E\u6027\r\n * @returns\r\n */\r\nfunction luckysheetextendtable(type, index, value, direction, sheetIndex) {\r\n sheetIndex = sheetIndex ?? Store.currentSheetIndex;\r\n\r\n if (type == \"row\" && !checkProtectionAuthorityNormal(sheetIndex, \"insertRows\")) {\r\n return;\r\n } else if (type == \"column\" && !checkProtectionAuthorityNormal(sheetIndex, \"insertColumns\")) {\r\n return;\r\n }\r\n\r\n let curOrder = getSheetIndex(sheetIndex);\r\n let file = Store.luckysheetfile[curOrder];\r\n let d = $.extend(true, [], file.data);\r\n\r\n value = Math.floor(value);\r\n let cfg = $.extend(true, {}, file.config);\r\n\r\n //\u5408\u5E76\u5355\u5143\u683C\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n let merge_new = {};\r\n for (let m in cfg[\"merge\"]) {\r\n let mc = cfg[\"merge\"][m];\r\n\r\n let r = mc.r,\r\n c = mc.c,\r\n rs = mc.rs,\r\n cs = mc.cs;\r\n\r\n if (type == \"row\") {\r\n if (index < r) {\r\n merge_new[r + value + \"_\" + c] = { r: r + value, c: c, rs: rs, cs: cs };\r\n }\r\n // *\u8FD9\u91CC\u8981\u5224\u65AD\u4E00\u4E0Brs\u662F\u5426\u7B49\u4E8E1,\u56E0\u4E3A\u5982\u679C\u8FD9\u4E2A\u5408\u5E76\u5355\u5143\u683C\u7684\u884C\u6570\u53EA\u6709\u4E00\u884C\u65F6r = r+ rs-1,\u8FD9\u79CD\u60C5\u51B5\u4E0D\u5E94\u8BE5\u8FDB\u884C\u5355\u5143\u683C\u7684\u52A0\u9AD8\r\n else if (index == r && rs != 1) {\r\n if (direction == \"lefttop\") {\r\n merge_new[r + value + \"_\" + c] = { r: r + value, c: c, rs: rs, cs: cs };\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs + value, cs: cs };\r\n }\r\n } else if (index < r + rs - 1) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs + value, cs: cs };\r\n } else if (index == r + rs - 1) {\r\n if (direction == \"lefttop\") {\r\n if (rs == 1) {\r\n merge_new[r + value + \"_\" + c] = { r: r + value, c: c, rs: rs, cs: cs };\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs + value, cs: cs };\r\n }\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n }\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n }\r\n } else if (type == \"column\") {\r\n if (index < c) {\r\n merge_new[r + \"_\" + (c + value)] = { r: r, c: c + value, rs: rs, cs: cs };\r\n } else if (index == c && cs != 1) {\r\n if (direction == \"lefttop\") {\r\n merge_new[r + \"_\" + (c + value)] = { r: r, c: c + value, rs: rs, cs: cs };\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs + value };\r\n }\r\n } else if (index < c + cs - 1) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs + value };\r\n } else if (index == c + cs - 1) {\r\n if (direction == \"lefttop\") {\r\n // *\u8FD9\u662F\u8981\u5224\u65AD\u4E00\u4E0B\u8FD9\u4E2A\u5408\u5E76\u5355\u5143\u683C\u7684\u5217\u5BBD\u662F\u5426=1,\u5982\u679Ccs\u7B49\u4E8E1\u7684\u60C5\u51B5\u4E0B,\u5411\u5DE6\u63D2\u5165\u5217\uFF0C\u8FD9\u4E2A\u5408\u5E76\u5355\u5143\u683C\u4F1A\u53F3\u79FB\r\n if (cs == 1) {\r\n merge_new[r + \"_\" + (c + value)] = { r: r, c: c + value, rs: rs, cs: cs };\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs + value };\r\n }\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n }\r\n } else {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n }\r\n }\r\n }\r\n cfg[\"merge\"] = merge_new;\r\n\r\n //\u516C\u5F0F\u914D\u7F6E\u53D8\u52A8\r\n let calcChain = file.calcChain;\r\n let newCalcChain = [];\r\n if (calcChain != null && calcChain.length > 0) {\r\n for (let i = 0; i < calcChain.length; i++) {\r\n let calc = $.extend(true, {}, calcChain[i]);\r\n let calc_r = calc.r,\r\n calc_c = calc.c,\r\n calc_i = calc.index,\r\n calc_funcStr = getcellFormula(calc_r, calc_c, calc_i);\r\n\r\n // \u6DFB\u52A0\u8FDB\u516C\u5F0F\u540E\uFF0C\u53EF\u80FD\u53C8\u76F4\u63A5\u8986\u76D6\u4E86\u5355\u5143\u683C\u503C\r\n if(!calc_funcStr) continue\r\n\r\n if (type == \"row\") {\r\n let functionStr = \"=\" + formula.functionStrChange(calc_funcStr, \"add\", \"row\", direction, index, value);\r\n\r\n if (d[calc_r][calc_c] && d[calc_r][calc_c].f == calc_funcStr) {\r\n d[calc_r][calc_c].f = functionStr;\r\n }\r\n\r\n if (direction == \"lefttop\") {\r\n if (calc_r >= index) {\r\n calc.r += value;\r\n }\r\n } else if (direction == \"rightbottom\") {\r\n if (calc_r > index) {\r\n calc.r += value;\r\n }\r\n }\r\n\r\n newCalcChain.push(calc);\r\n } else if (type == \"column\") {\r\n let functionStr = \"=\" + formula.functionStrChange(calc_funcStr, \"add\", \"col\", direction, index, value);\r\n\r\n if (d[calc_r][calc_c] && d[calc_r][calc_c].f == calc_funcStr) {\r\n d[calc_r][calc_c].f = functionStr;\r\n }\r\n\r\n if (direction == \"lefttop\") {\r\n if (calc_c >= index) {\r\n calc.c += value;\r\n }\r\n } else if (direction == \"rightbottom\") {\r\n if (calc_c > index) {\r\n calc.c += value;\r\n }\r\n }\r\n\r\n newCalcChain.push(calc);\r\n }\r\n }\r\n }\r\n\r\n //\u7B5B\u9009\u914D\u7F6E\u53D8\u52A8\r\n let filter_select = file.filter_select;\r\n let filter = file.filter;\r\n let newFilterObj = null;\r\n if (filter_select != null && JSON.stringify(filter_select) != \"{}\") {\r\n newFilterObj = { filter_select: null, filter: null };\r\n\r\n let f_r1 = filter_select.row[0],\r\n f_r2 = filter_select.row[1];\r\n let f_c1 = filter_select.column[0],\r\n f_c2 = filter_select.column[1];\r\n\r\n if (type == \"row\") {\r\n if (f_r1 < index) {\r\n if (f_r2 == index && direction == \"lefttop\") {\r\n f_r2 += value;\r\n } else if (f_r2 > index) {\r\n f_r2 += value;\r\n }\r\n } else if (f_r1 == index) {\r\n if (direction == \"lefttop\") {\r\n f_r1 += value;\r\n f_r2 += value;\r\n } else if (direction == \"rightbottom\" && f_r2 > index) {\r\n f_r2 += value;\r\n }\r\n } else {\r\n f_r1 += value;\r\n f_r2 += value;\r\n }\r\n\r\n if (filter != null) {\r\n newFilterObj.filter = {};\r\n\r\n for (let k in filter) {\r\n let f_rowhidden = filter[k].rowhidden;\r\n let f_rowhidden_new = {};\r\n\r\n for (let n in f_rowhidden) {\r\n n = parseFloat(n);\r\n\r\n if (n < index) {\r\n f_rowhidden_new[n] = 0;\r\n } else if (n == index) {\r\n if (direction == \"lefttop\") {\r\n f_rowhidden_new[n + value] = 0;\r\n } else if (direction == \"rightbottom\") {\r\n f_rowhidden_new[n] = 0;\r\n }\r\n } else {\r\n f_rowhidden_new[n + value] = 0;\r\n }\r\n }\r\n\r\n newFilterObj.filter[k] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[k].rowhidden = f_rowhidden_new;\r\n newFilterObj.filter[k].str = f_r1;\r\n newFilterObj.filter[k].edr = f_r2;\r\n }\r\n }\r\n } else if (type == \"column\") {\r\n if (f_c1 < index) {\r\n if (f_c2 == index && direction == \"lefttop\") {\r\n f_c2 += value;\r\n } else if (f_c2 > index) {\r\n f_c2 += value;\r\n }\r\n } else if (f_c1 == index) {\r\n if (direction == \"lefttop\") {\r\n f_c1 += value;\r\n f_c2 += value;\r\n } else if (direction == \"rightbottom\" && f_c2 > index) {\r\n f_c2 += value;\r\n }\r\n } else {\r\n f_c1 += value;\r\n f_c2 += value;\r\n }\r\n\r\n if (filter != null) {\r\n newFilterObj.filter = {};\r\n\r\n for (let k in filter) {\r\n let f_cindex = filter[k].cindex;\r\n\r\n if (f_cindex == index && direction == \"lefttop\") {\r\n f_cindex += value;\r\n } else if (f_cindex > index) {\r\n f_cindex += value;\r\n }\r\n\r\n newFilterObj.filter[f_cindex - f_c1] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[f_cindex - f_c1].cindex = f_cindex;\r\n newFilterObj.filter[f_cindex - f_c1].stc = f_c1;\r\n newFilterObj.filter[f_cindex - f_c1].edc = f_c2;\r\n }\r\n }\r\n }\r\n\r\n newFilterObj.filter_select = { row: [f_r1, f_r2], column: [f_c1, f_c2] };\r\n }\r\n\r\n if (newFilterObj != null && newFilterObj.filter != null) {\r\n if (cfg[\"rowhidden\"] == null) {\r\n cfg[\"rowhidden\"] = {};\r\n }\r\n\r\n for (let k in newFilterObj.filter) {\r\n let f_rowhidden = newFilterObj.filter[k].rowhidden;\r\n\r\n for (let n in f_rowhidden) {\r\n cfg[\"rowhidden\"][n] = 0;\r\n }\r\n }\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u914D\u7F6E\u53D8\u52A8\r\n let CFarr = file.luckysheet_conditionformat_save;\r\n let newCFarr = [];\r\n if (CFarr != null && CFarr.length > 0) {\r\n for (let i = 0; i < CFarr.length; i++) {\r\n let cf_range = CFarr[i].cellrange;\r\n let cf_new_range = [];\r\n\r\n for (let j = 0; j < cf_range.length; j++) {\r\n let CFr1 = cf_range[j].row[0],\r\n CFr2 = cf_range[j].row[1],\r\n CFc1 = cf_range[j].column[0],\r\n CFc2 = cf_range[j].column[1];\r\n\r\n if (type == \"row\") {\r\n if (CFr1 < index) {\r\n if (CFr2 == index && direction == \"lefttop\") {\r\n CFr2 += value;\r\n } else if (CFr2 > index) {\r\n CFr2 += value;\r\n }\r\n } else if (CFr1 == index) {\r\n if (direction == \"lefttop\") {\r\n CFr1 += value;\r\n CFr2 += value;\r\n } else if (direction == \"rightbottom\" && CFr2 > index) {\r\n CFr2 += value;\r\n }\r\n } else {\r\n CFr1 += value;\r\n CFr2 += value;\r\n }\r\n } else if (type == \"column\") {\r\n if (CFc1 < index) {\r\n if (CFc2 == index && direction == \"lefttop\") {\r\n CFc2 += value;\r\n } else if (CFc2 > index) {\r\n CFc2 += value;\r\n }\r\n } else if (CFc1 == index) {\r\n if (direction == \"lefttop\") {\r\n CFc1 += value;\r\n CFc2 += value;\r\n } else if (direction == \"rightbottom\" && CFc2 > index) {\r\n CFc2 += value;\r\n }\r\n } else {\r\n CFc1 += value;\r\n CFc2 += value;\r\n }\r\n }\r\n\r\n cf_new_range.push({ row: [CFr1, CFr2], column: [CFc1, CFc2] });\r\n }\r\n\r\n let cf = $.extend(true, {}, CFarr[i]);\r\n cf.cellrange = cf_new_range;\r\n\r\n newCFarr.push(cf);\r\n }\r\n }\r\n\r\n //\u4EA4\u66FF\u989C\u8272\u914D\u7F6E\u53D8\u52A8\r\n let AFarr = file.luckysheet_alternateformat_save;\r\n let newAFarr = [];\r\n if (AFarr != null && AFarr.length > 0) {\r\n for (let i = 0; i < AFarr.length; i++) {\r\n let AFr1 = AFarr[i].cellrange.row[0],\r\n AFr2 = AFarr[i].cellrange.row[1],\r\n AFc1 = AFarr[i].cellrange.column[0],\r\n AFc2 = AFarr[i].cellrange.column[1];\r\n\r\n let af = $.extend(true, {}, AFarr[i]);\r\n\r\n if (type == \"row\") {\r\n if (AFr1 < index) {\r\n if (AFr2 == index && direction == \"lefttop\") {\r\n AFr2 += value;\r\n } else if (AFr2 > index) {\r\n AFr2 += value;\r\n }\r\n } else if (AFr1 == index) {\r\n if (direction == \"lefttop\") {\r\n AFr1 += value;\r\n AFr2 += value;\r\n } else if (direction == \"rightbottom\" && AFr2 > index) {\r\n AFr2 += value;\r\n }\r\n } else {\r\n AFr1 += value;\r\n AFr2 += value;\r\n }\r\n } else if (type == \"column\") {\r\n if (AFc1 < index) {\r\n if (AFc2 == index && direction == \"lefttop\") {\r\n AFc2 += value;\r\n } else if (AFc2 > index) {\r\n AFc2 += value;\r\n }\r\n } else if (AFc1 == index) {\r\n if (direction == \"lefttop\") {\r\n AFc1 += value;\r\n AFc2 += value;\r\n } else if (direction == \"rightbottom\" && AFc2 > index) {\r\n AFc2 += value;\r\n }\r\n } else {\r\n AFc1 += value;\r\n AFc2 += value;\r\n }\r\n }\r\n\r\n af.cellrange = { row: [AFr1, AFr2], column: [AFc1, AFc2] };\r\n\r\n newAFarr.push(af);\r\n }\r\n }\r\n\r\n //\u51BB\u7ED3\u914D\u7F6E\u53D8\u52A8\r\n let newFreezen = { freezenhorizontaldata: null, freezenverticaldata: null };\r\n if (luckysheetFreezen.freezenhorizontaldata != null && type == \"row\") {\r\n let freezen_scrollTop = luckysheetFreezen.freezenhorizontaldata[2];\r\n let freezen_row_st = luckysheetFreezen.freezenhorizontaldata[1] - 1;\r\n\r\n if (freezen_row_st == index && direction == \"lefttop\") {\r\n freezen_row_st += value;\r\n } else if (freezen_row_st > index) {\r\n freezen_row_st += value;\r\n }\r\n\r\n let freezen_top = Store.visibledatarow[freezen_row_st] - 2 - freezen_scrollTop + Store.columnHeaderHeight;\r\n\r\n newFreezen.freezenhorizontaldata = [\r\n Store.visibledatarow[freezen_row_st],\r\n freezen_row_st + 1,\r\n freezen_scrollTop,\r\n luckysheetFreezen.cutVolumn(Store.visibledatarow, freezen_row_st + 1),\r\n freezen_top,\r\n ];\r\n } else {\r\n newFreezen.freezenhorizontaldata = luckysheetFreezen.freezenhorizontaldata;\r\n }\r\n\r\n if (luckysheetFreezen.freezenverticaldata != null && type == \"column\") {\r\n let freezen_scrollLeft = luckysheetFreezen.freezenverticaldata[2];\r\n let freezen_col_st = luckysheetFreezen.freezenverticaldata[1] - 1;\r\n\r\n if (freezen_col_st == index && direction == \"lefttop\") {\r\n freezen_col_st += value;\r\n } else if (freezen_col_st > index) {\r\n freezen_col_st += value;\r\n }\r\n\r\n let freezen_left = Store.visibledatacolumn[freezen_col_st] - 2 - freezen_scrollLeft + Store.rowHeaderWidth;\r\n\r\n newFreezen.freezenverticaldata = [\r\n Store.visibledatacolumn[freezen_col_st],\r\n freezen_col_st + 1,\r\n freezen_scrollLeft,\r\n luckysheetFreezen.cutVolumn(Store.visibledatacolumn, freezen_col_st + 1),\r\n freezen_left,\r\n ];\r\n } else {\r\n newFreezen.freezenverticaldata = luckysheetFreezen.freezenverticaldata;\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\u914D\u7F6E\u53D8\u52A8\r\n let dataVerification = file.dataVerification;\r\n let newDataVerification = {};\r\n if (dataVerification != null) {\r\n for (let key in dataVerification) {\r\n let r = Number(key.split(\"_\")[0]),\r\n c = Number(key.split(\"_\")[1]);\r\n let item = dataVerification[key];\r\n\r\n if (type == \"row\") {\r\n if (index < r) {\r\n newDataVerification[r + value + \"_\" + c] = item;\r\n } else if (index == r) {\r\n if (direction == \"lefttop\") {\r\n newDataVerification[r + value + \"_\" + c] = item;\r\n\r\n for (let i = 0; i < value; i++) {\r\n newDataVerification[r + i + \"_\" + c] = item;\r\n }\r\n } else {\r\n newDataVerification[r + \"_\" + c] = item;\r\n\r\n for (let i = 0; i < value; i++) {\r\n newDataVerification[r + i + 1 + \"_\" + c] = item;\r\n }\r\n }\r\n } else {\r\n newDataVerification[r + \"_\" + c] = item;\r\n }\r\n } else if (type == \"column\") {\r\n if (index < c) {\r\n newDataVerification[r + \"_\" + (c + value)] = item;\r\n } else if (index == c) {\r\n if (direction == \"lefttop\") {\r\n newDataVerification[r + \"_\" + (c + value)] = item;\r\n\r\n for (let i = 0; i < value; i++) {\r\n newDataVerification[r + \"_\" + (c + i)] = item;\r\n }\r\n } else {\r\n newDataVerification[r + \"_\" + c] = item;\r\n\r\n for (let i = 0; i < value; i++) {\r\n newDataVerification[r + \"_\" + (c + i + 1)] = item;\r\n }\r\n }\r\n } else {\r\n newDataVerification[r + \"_\" + c] = item;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u8D85\u94FE\u63A5\u914D\u7F6E\u53D8\u52A8\r\n let hyperlink = file.hyperlink;\r\n let newHyperlink = {};\r\n if (hyperlink != null) {\r\n for (let key in hyperlink) {\r\n let r = Number(key.split(\"_\")[0]),\r\n c = Number(key.split(\"_\")[1]);\r\n let item = hyperlink[key];\r\n\r\n if (type == \"row\") {\r\n if (index < r) {\r\n newHyperlink[r + value + \"_\" + c] = item;\r\n } else if (index == r) {\r\n if (direction == \"lefttop\") {\r\n newHyperlink[r + value + \"_\" + c] = item;\r\n } else {\r\n newHyperlink[r + \"_\" + c] = item;\r\n }\r\n } else {\r\n newHyperlink[r + \"_\" + c] = item;\r\n }\r\n } else if (type == \"column\") {\r\n if (index < c) {\r\n newHyperlink[r + \"_\" + (c + value)] = item;\r\n } else if (index == c) {\r\n if (direction == \"lefttop\") {\r\n newHyperlink[r + \"_\" + (c + value)] = item;\r\n } else {\r\n newHyperlink[r + \"_\" + c] = item;\r\n }\r\n } else {\r\n newHyperlink[r + \"_\" + c] = item;\r\n }\r\n }\r\n }\r\n }\r\n\r\n let type1;\r\n if (type == \"row\") {\r\n type1 = \"r\";\r\n\r\n //\u884C\u9AD8\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"rowlen\"] != null) {\r\n let rowlen_new = {};\r\n\r\n for (let r in cfg[\"rowlen\"]) {\r\n r = parseFloat(r);\r\n\r\n if (r < index) {\r\n rowlen_new[r] = cfg[\"rowlen\"][r];\r\n } else if (r == index) {\r\n if (direction == \"lefttop\") {\r\n rowlen_new[r + value] = cfg[\"rowlen\"][r];\r\n } else if (direction == \"rightbottom\") {\r\n rowlen_new[r] = cfg[\"rowlen\"][r];\r\n }\r\n } else {\r\n rowlen_new[r + value] = cfg[\"rowlen\"][r];\r\n }\r\n }\r\n\r\n cfg[\"rowlen\"] = rowlen_new;\r\n }\r\n\r\n //\u9690\u85CF\u884C\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"rowhidden\"] != null) {\r\n let rowhidden_new = {};\r\n\r\n for (let r in cfg[\"rowhidden\"]) {\r\n r = parseFloat(r);\r\n\r\n if (r < index) {\r\n rowhidden_new[r] = cfg[\"rowhidden\"][r];\r\n } else if (r == index) {\r\n if (direction == \"lefttop\") {\r\n rowhidden_new[r + value] = cfg[\"rowhidden\"][r];\r\n } else if (direction == \"rightbottom\") {\r\n rowhidden_new[r] = cfg[\"rowhidden\"][r];\r\n }\r\n } else {\r\n rowhidden_new[r + value] = cfg[\"rowhidden\"][r];\r\n }\r\n }\r\n\r\n cfg[\"rowhidden\"] = rowhidden_new;\r\n }\r\n\r\n // *\u6DFB\u52A0\u7A7A\u884C\u6A21\u677F\u8FD9\u91CC\u8BF7\u4FDD\u6301\u4E3Apush null;\r\n let row = [];\r\n for (let c = 0; c < d[0].length; c++) {\r\n row.push(null);\r\n }\r\n\r\n var cellBorderConfig = [];\r\n //\u8FB9\u6846\r\n if (cfg[\"borderInfo\"] && cfg[\"borderInfo\"].length > 0) {\r\n let borderInfo = [];\r\n\r\n for (let i = 0; i < cfg[\"borderInfo\"].length; i++) {\r\n let rangeType = cfg[\"borderInfo\"][i].rangeType;\r\n\r\n if (rangeType == \"range\") {\r\n let borderRange = cfg[\"borderInfo\"][i].range;\r\n\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < borderRange.length; j++) {\r\n let bd_r1 = borderRange[j].row[0],\r\n bd_r2 = borderRange[j].row[1];\r\n\r\n if (direction == \"lefttop\") {\r\n if (index <= bd_r1) {\r\n bd_r1 += value;\r\n bd_r2 += value;\r\n } else if (index <= bd_r2) {\r\n bd_r2 += value;\r\n }\r\n } else {\r\n if (index < bd_r1) {\r\n bd_r1 += value;\r\n bd_r2 += value;\r\n } else if (index < bd_r2) {\r\n bd_r2 += value;\r\n }\r\n }\r\n\r\n if (bd_r2 >= bd_r1) {\r\n emptyRange.push({ row: [bd_r1, bd_r2], column: borderRange[j].column });\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n let bd_obj = {\r\n rangeType: \"range\",\r\n borderType: cfg[\"borderInfo\"][i].borderType,\r\n style: cfg[\"borderInfo\"][i].style,\r\n color: cfg[\"borderInfo\"][i].color,\r\n range: emptyRange,\r\n };\r\n\r\n borderInfo.push(bd_obj);\r\n }\r\n } else if (rangeType == \"cell\") {\r\n let row_index = cfg[\"borderInfo\"][i].value.row_index;\r\n // \u4F4D\u7F6E\u76F8\u540C\u6807\u8BC6\u8FB9\u6846\u76F8\u5173 \u5148\u7F13\u5B58\r\n if (row_index === index) {\r\n cellBorderConfig.push(JSON.parse(JSON.stringify(cfg[\"borderInfo\"][i])));\r\n }\r\n\r\n if (direction == \"lefttop\") {\r\n if (index <= row_index) {\r\n row_index += value;\r\n }\r\n } else {\r\n if (index < row_index) {\r\n row_index += value;\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"][i].value.row_index = row_index;\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"] = borderInfo;\r\n }\r\n\r\n let arr = [];\r\n for (let r = 0; r < value; r++) {\r\n arr.push(JSON.stringify(row));\r\n // \u540C\u6B65\u62F7\u8D1D type \u4E3A cell \u7C7B\u578B\u7684\u8FB9\u6846\r\n if (cellBorderConfig.length) {\r\n var cellBorderConfigCopy = JSON.parse(JSON.stringify(cellBorderConfig));\r\n cellBorderConfigCopy.forEach((item) => {\r\n if (direction === \"rightbottom\") {\r\n // \u5411\u4E0B\u63D2\u5165\u65F6 \u57FA\u4E8E\u6A21\u677F\u884C\u4F4D\u7F6E\u76F4\u63A5\u9012\u589E\u5373\u53EF\r\n item.value.row_index += r + 1;\r\n } else if (direction === \"lefttop\") {\r\n // \u5411\u4E0A\u63D2\u5165\u65F6 \u76EE\u6807\u884C\u79FB\u52A8\u5230\u540E\u9762 \u65B0\u589En\u884C\u5230\u524D\u9762 \u5BF9\u4E8E\u65B0\u589E\u7684\u884C\u6765\u8BF4 \u4E5F\u662F\u9012\u589E\uFF0C\u4E0D\u8FC7\u662F\u4ECE0\u5F00\u59CB\r\n item.value.row_index += r;\r\n }\r\n });\r\n cfg[\"borderInfo\"].push(...cellBorderConfigCopy);\r\n }\r\n }\r\n\r\n if (direction == \"lefttop\") {\r\n if (index == 0) {\r\n new Function(\"d\", \"return \" + \"d.unshift(\" + arr.join(\",\") + \")\")(d);\r\n } else {\r\n new Function(\"d\", \"return \" + \"d.splice(\" + index + \", 0, \" + arr.join(\",\") + \")\")(d);\r\n }\r\n } else {\r\n new Function(\"d\", \"return \" + \"d.splice(\" + (index + 1) + \", 0, \" + arr.join(\",\") + \")\")(d);\r\n }\r\n } else {\r\n type1 = \"c\";\r\n\r\n //\u884C\u9AD8\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"columnlen\"] != null) {\r\n let columnlen_new = {};\r\n\r\n for (let c in cfg[\"columnlen\"]) {\r\n c = parseFloat(c);\r\n\r\n if (c < index) {\r\n columnlen_new[c] = cfg[\"columnlen\"][c];\r\n } else if (c == index) {\r\n if (direction == \"lefttop\") {\r\n columnlen_new[c + value] = cfg[\"columnlen\"][c];\r\n } else if (direction == \"rightbottom\") {\r\n columnlen_new[c] = cfg[\"columnlen\"][c];\r\n }\r\n } else {\r\n columnlen_new[c + value] = cfg[\"columnlen\"][c];\r\n }\r\n }\r\n\r\n cfg[\"columnlen\"] = columnlen_new;\r\n }\r\n\r\n //\u9690\u85CF\u5217\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"colhidden\"] != null) {\r\n let colhidden_new = {};\r\n\r\n for (let c in cfg[\"colhidden\"]) {\r\n c = parseFloat(c);\r\n\r\n if (c < index) {\r\n colhidden_new[c] = cfg[\"colhidden\"][c];\r\n } else if (c == index) {\r\n if (direction == \"lefttop\") {\r\n colhidden_new[c + value] = cfg[\"colhidden\"][c];\r\n } else if (direction == \"rightbottom\") {\r\n colhidden_new[c] = cfg[\"colhidden\"][c];\r\n }\r\n } else {\r\n colhidden_new[c + value] = cfg[\"colhidden\"][c];\r\n }\r\n }\r\n\r\n cfg[\"colhidden\"] = colhidden_new;\r\n }\r\n\r\n // *\u6DFB\u52A0\u7A7A\u5217\u6A21\u677F\u8FD9\u91CC\u8BF7\u4FDD\u6301\u4E3Apush null;\r\n let col = [];\r\n for (let r = 0; r < d.length; r++) {\r\n col.push(null);\r\n }\r\n\r\n var cellBorderConfig = [];\r\n //\u8FB9\u6846\r\n if (cfg[\"borderInfo\"] && cfg[\"borderInfo\"].length > 0) {\r\n let borderInfo = [];\r\n\r\n for (let i = 0; i < cfg[\"borderInfo\"].length; i++) {\r\n let rangeType = cfg[\"borderInfo\"][i].rangeType;\r\n\r\n if (rangeType == \"range\") {\r\n let borderRange = cfg[\"borderInfo\"][i].range;\r\n\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < borderRange.length; j++) {\r\n let bd_c1 = borderRange[j].column[0],\r\n bd_c2 = borderRange[j].column[1];\r\n\r\n if (direction == \"lefttop\") {\r\n if (index <= bd_c1) {\r\n bd_c1 += value;\r\n bd_c2 += value;\r\n } else if (index <= bd_c2) {\r\n bd_c2 += value;\r\n }\r\n } else {\r\n if (index < bd_c1) {\r\n bd_c1 += value;\r\n bd_c2 += value;\r\n } else if (index < bd_c2) {\r\n bd_c2 += value;\r\n }\r\n }\r\n\r\n if (bd_c2 >= bd_c1) {\r\n emptyRange.push({ row: borderRange[j].row, column: [bd_c1, bd_c2] });\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n let bd_obj = {\r\n rangeType: \"range\",\r\n borderType: cfg[\"borderInfo\"][i].borderType,\r\n style: cfg[\"borderInfo\"][i].style,\r\n color: cfg[\"borderInfo\"][i].color,\r\n range: emptyRange,\r\n };\r\n\r\n borderInfo.push(bd_obj);\r\n }\r\n } else if (rangeType == \"cell\") {\r\n let col_index = cfg[\"borderInfo\"][i].value.col_index;\r\n // \u4F4D\u7F6E\u76F8\u540C\u6807\u8BC6\u8FB9\u6846\u76F8\u5173 \u5148\u7F13\u5B58\r\n if (col_index === index) {\r\n cellBorderConfig.push(JSON.parse(JSON.stringify(cfg[\"borderInfo\"][i])));\r\n }\r\n\r\n if (direction == \"lefttop\") {\r\n if (index <= col_index) {\r\n col_index += value;\r\n }\r\n } else {\r\n if (index < col_index) {\r\n col_index += value;\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"][i].value.col_index = col_index;\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"] = borderInfo;\r\n }\r\n\r\n // \u5904\u7406\u76F8\u5173\u7684 type \u4E3A cell \u7C7B\u578B\u7684\u8FB9\u6846\r\n if (cellBorderConfig.length) {\r\n for (let i = 0; i < value; i++) {\r\n var cellBorderConfigCopy = JSON.parse(JSON.stringify(cellBorderConfig));\r\n cellBorderConfigCopy.forEach((item) => {\r\n if (direction === \"rightbottom\") {\r\n // \u5411\u53F3\u63D2\u5165\u65F6 \u57FA\u4E8E\u6A21\u677F\u5217\u4F4D\u7F6E\u76F4\u63A5\u9012\u589E\u5373\u53EF\r\n item.value.col_index += i + 1;\r\n } else if (direction === \"lefttop\") {\r\n // \u5411\u5DE6\u63D2\u5165\u65F6 \u76EE\u6807\u5217\u79FB\u52A8\u5230\u540E\u9762 \u65B0\u589En\u5217\u5230\u524D\u9762 \u5BF9\u4E8E\u65B0\u589E\u7684\u5217\u6765\u8BF4 \u4E5F\u662F\u9012\u589E\uFF0C\u4E0D\u8FC7\u662F\u4ECE0\u5F00\u59CB\r\n item.value.col_index += i;\r\n }\r\n });\r\n cfg[\"borderInfo\"].push(...cellBorderConfigCopy);\r\n }\r\n }\r\n\r\n for (let r = 0; r < d.length; r++) {\r\n let row = d[r];\r\n\r\n for (let i = 0; i < value; i++) {\r\n // *\u8FD9\u91CC\u4E0D\u80FD\u662F\u5F15\u7528,\u4E0D\u7136\u6DFB\u52A0\u591A\u5217\u65F6\u6DFB\u52A0\u7684\u90FD\u662F\u540C\u4E00\u4E2A\u5F15\u7528,\u4FEE\u6539\u4E00\u4E2Acell\u4F1A\u540C\u6B65\u5230\u591A\u4E2A\r\n const COLR = JSON.parse(JSON.stringify(col[r]));\r\n if (direction == \"lefttop\") {\r\n if (index == 0) {\r\n row.unshift(COLR);\r\n } else {\r\n row.splice(index, 0, COLR);\r\n }\r\n } else {\r\n row.splice(index + 1, 0, COLR);\r\n }\r\n }\r\n }\r\n }\r\n\r\n // \u4FEE\u6539\u5F53\u524Dsheet\u9875\u65F6\u5237\u65B0\r\n if (file.index == Store.currentSheetIndex) {\r\n jfrefreshgrid_adRC(\r\n d,\r\n cfg,\r\n \"addRC\",\r\n { index: index, len: value, direction: direction, rc: type1, restore: false },\r\n newCalcChain,\r\n newFilterObj,\r\n newCFarr,\r\n newAFarr,\r\n newFreezen,\r\n newDataVerification,\r\n newHyperlink,\r\n );\r\n } else {\r\n file.data = d;\r\n file.config = cfg;\r\n file.calcChain = newCalcChain;\r\n file.filter = newFilterObj.filter;\r\n file.filter_select = newFilterObj.filter_select;\r\n file.luckysheet_conditionformat_save = newCFarr;\r\n file.luckysheet_alternateformat_save = newAFarr;\r\n file.dataVerification = newDataVerification;\r\n file.hyperlink = newHyperlink;\r\n }\r\n\r\n let range = null;\r\n if (type == \"row\") {\r\n if (direction == \"lefttop\") {\r\n range = [{ row: [index, index + value - 1], column: [0, d[0].length - 1] }];\r\n } else {\r\n range = [{ row: [index + 1, index + value], column: [0, d[0].length - 1] }];\r\n }\r\n } else {\r\n if (direction == \"lefttop\") {\r\n range = [{ row: [0, d.length - 1], column: [index, index + value - 1] }];\r\n } else {\r\n range = [{ row: [0, d.length - 1], column: [index + 1, index + value] }];\r\n }\r\n }\r\n\r\n file.luckysheet_select_save = range;\r\n if (file.index == Store.currentSheetIndex) {\r\n Store.luckysheet_select_save = range;\r\n selectHightlightShow();\r\n }\r\n\r\n if (type == \"row\") {\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft(),\r\n scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let winH = $(\"#luckysheet-cell-main\").height(),\r\n winW = $(\"#luckysheet-cell-main\").width();\r\n\r\n let row = Store.visibledatarow[range[0].row[1]],\r\n row_pre = range[0].row[0] - 1 == -1 ? 0 : Store.visibledatarow[range[0].row[0] - 1];\r\n\r\n if (row - scrollTop - winH + 20 > 0) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(row - winH + 20);\r\n } else if (row_pre - scrollTop - 20 < 0) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(row_pre - 20);\r\n }\r\n\r\n if (value > 30) {\r\n $(\"#luckysheet-row-count-show\").hide();\r\n $(\"#luckysheet-column-count-show\").hide();\r\n }\r\n }\r\n}\r\n\r\nfunction luckysheetextendData(rowlen, newData) {\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n let collen = d[0].length;\r\n let addNullData = datagridgrowth([], rowlen, collen);\r\n\r\n d = d.concat(addNullData);\r\n\r\n for (let i = 0; i < newData.length; i++) {\r\n let r = newData[i].r,\r\n c = newData[i].c,\r\n v = newData[i].v;\r\n\r\n setcellvalue(r, c, d, v);\r\n\r\n if (v != null && v.mc != null && v.mc.rs != null) {\r\n cfg[\"merge\"][v.mc.r + \"_\" + v.mc.c] = $.extend(true, {}, v.mc);\r\n }\r\n }\r\n\r\n //luckysheet.flowdata\r\n Store.flowdata = d;\r\n editor.webWorkerFlowDataCache(Store.flowdata); //worker\u5B58\u6570\u636E\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].data = d;\r\n\r\n //config\r\n Store.config = cfg;\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].config = Store.config;\r\n\r\n //\u884C\u9AD8\u3001\u5217\u5BBD\u5237\u65B0\r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n}\r\n\r\n//\u5220\u9664\u884C\u5217\r\nfunction luckysheetdeletetable(type, st, ed, sheetIndex) {\r\n sheetIndex = sheetIndex || Store.currentSheetIndex;\r\n\r\n if (type == \"row\" && !checkProtectionAuthorityNormal(sheetIndex, \"deleteRows\")) {\r\n return;\r\n } else if (type == \"column\" && !checkProtectionAuthorityNormal(sheetIndex, \"deleteColumns\")) {\r\n return;\r\n }\r\n\r\n let curOrder = getSheetIndex(sheetIndex);\r\n\r\n let file = Store.luckysheetfile[curOrder];\r\n let d = $.extend(true, [], file.data);\r\n\r\n if (st < 0) {\r\n st = 0;\r\n }\r\n\r\n if (ed < 0) {\r\n ed = 0;\r\n }\r\n\r\n if (type == \"row\") {\r\n if (st > d.length - 1) {\r\n st = d.length - 1;\r\n }\r\n\r\n if (ed > d.length - 1) {\r\n ed = d.length - 1;\r\n }\r\n } else {\r\n if (st > d[0].length - 1) {\r\n st = d[0].length - 1;\r\n }\r\n\r\n if (ed > d[0].length - 1) {\r\n ed = d[0].length - 1;\r\n }\r\n }\r\n\r\n if (st > ed) {\r\n return;\r\n }\r\n\r\n let slen = ed - st + 1;\r\n let cfg = $.extend(true, {}, file.config);\r\n\r\n //\u5408\u5E76\u5355\u5143\u683C\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n let merge_new = {};\r\n for (let m in cfg[\"merge\"]) {\r\n let mc = cfg[\"merge\"][m];\r\n\r\n let r = mc.r,\r\n c = mc.c,\r\n rs = mc.rs,\r\n cs = mc.cs;\r\n\r\n if (type == \"row\") {\r\n if (r < st) {\r\n if (r + rs - 1 < st) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n } else if (r + rs - 1 >= st && r + rs - 1 < ed) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: st - r, cs: cs };\r\n } else if (r + rs - 1 >= ed) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs - slen, cs: cs };\r\n }\r\n } else if (r >= st && r <= ed) {\r\n if (r + rs - 1 > ed) {\r\n merge_new[st + \"_\" + c] = { r: st, c: c, rs: r + rs - 1 - ed, cs: cs };\r\n }\r\n } else if (r > ed) {\r\n merge_new[r - slen + \"_\" + c] = { r: r - slen, c: c, rs: rs, cs: cs };\r\n }\r\n } else if (type == \"column\") {\r\n if (c < st) {\r\n if (c + cs - 1 < st) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n } else if (c + cs - 1 >= st && c + cs - 1 < ed) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: st - c };\r\n } else if (c + cs - 1 >= ed) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs - slen };\r\n }\r\n } else if (c >= st && c <= ed) {\r\n if (c + cs - 1 > ed) {\r\n merge_new[r + \"_\" + st] = { r: r, c: st, rs: rs, cs: c + cs - 1 - ed };\r\n }\r\n } else if (c > ed) {\r\n merge_new[r + \"_\" + (c - slen)] = { r: r, c: c - slen, rs: rs, cs: cs };\r\n }\r\n }\r\n }\r\n cfg[\"merge\"] = merge_new;\r\n\r\n //\u516C\u5F0F\u914D\u7F6E\u53D8\u52A8\r\n let calcChain = file.calcChain;\r\n let newCalcChain = [];\r\n if (calcChain != null && calcChain.length > 0) {\r\n for (let i = 0; i < calcChain.length; i++) {\r\n let calc = $.extend(true, {}, calcChain[i]);\r\n let calc_r = calc.r,\r\n calc_c = calc.c,\r\n calc_i = calc.index,\r\n calc_funcStr = getcellFormula(calc_r, calc_c, calc_i);\r\n\r\n // \u6DFB\u52A0\u8FDB\u516C\u5F0F\u540E\uFF0C\u53EF\u80FD\u53C8\u76F4\u63A5\u8986\u76D6\u4E86\u5355\u5143\u683C\u503C\r\n if(!calc_funcStr) continue\r\n\r\n if (type == \"row\") {\r\n if (calc_r < st || calc_r > ed) {\r\n let functionStr = \"=\" + formula.functionStrChange(calc_funcStr, \"del\", \"row\", null, st, slen);\r\n\r\n if (d[calc_r][calc_c] && d[calc_r][calc_c].f == calc_funcStr) {\r\n d[calc_r][calc_c].f = functionStr;\r\n }\r\n\r\n if (calc_r > ed) {\r\n calc.r = calc_r - slen;\r\n }\r\n\r\n newCalcChain.push(calc);\r\n }\r\n } else if (type == \"column\") {\r\n if (calc_c < st || calc_c > ed) {\r\n let functionStr = \"=\" + formula.functionStrChange(calc_funcStr, \"del\", \"col\", null, st, slen);\r\n\r\n if (d[calc_r][calc_c] && d[calc_r][calc_c].f == calc_funcStr) {\r\n d[calc_r][calc_c].f = functionStr;\r\n }\r\n\r\n if (calc_c > ed) {\r\n calc.c = calc_c - slen;\r\n }\r\n\r\n newCalcChain.push(calc);\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u7B5B\u9009\u914D\u7F6E\u53D8\u52A8\r\n let filter_select = file.filter_select;\r\n let filter = file.filter;\r\n let newFilterObj = null;\r\n if (filter_select != null && JSON.stringify(filter_select) != \"{}\") {\r\n newFilterObj = { filter_select: null, filter: null };\r\n\r\n let f_r1 = filter_select.row[0],\r\n f_r2 = filter_select.row[1];\r\n let f_c1 = filter_select.column[0],\r\n f_c2 = filter_select.column[1];\r\n\r\n if (type == \"row\") {\r\n if (f_r1 > ed) {\r\n f_r1 -= slen;\r\n f_r2 -= slen;\r\n\r\n newFilterObj.filter_select = { row: [f_r1, f_r2], column: [f_c1, f_c2] };\r\n } else if (f_r1 < st) {\r\n if (f_r2 < st) {\r\n } else if (f_r2 <= ed) {\r\n f_r2 = st - 1;\r\n } else {\r\n f_r2 -= slen;\r\n }\r\n\r\n newFilterObj.filter_select = { row: [f_r1, f_r2], column: [f_c1, f_c2] };\r\n }\r\n\r\n if (newFilterObj.filter_select != null && filter != null) {\r\n for (let k in filter) {\r\n let f_rowhidden = filter[k].rowhidden;\r\n let f_rowhidden_new = {};\r\n\r\n for (let n in f_rowhidden) {\r\n if (n < st) {\r\n f_rowhidden_new[n] = 0;\r\n } else if (n > ed) {\r\n f_rowhidden_new[n - slen] = 0;\r\n }\r\n }\r\n\r\n if (JSON.stringify(f_rowhidden_new) != \"{}\") {\r\n if (newFilterObj.filter == null) {\r\n newFilterObj.filter = {};\r\n }\r\n\r\n newFilterObj.filter[k] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[k].rowhidden = f_rowhidden_new;\r\n newFilterObj.filter[k].str = f_r1;\r\n newFilterObj.filter[k].edr = f_r2;\r\n }\r\n }\r\n }\r\n } else if (type == \"column\") {\r\n if (f_c1 > ed) {\r\n f_c1 -= slen;\r\n f_c2 -= slen;\r\n\r\n newFilterObj.filter_select = { row: [f_r1, f_r2], column: [f_c1, f_c2] };\r\n } else if (f_c1 < st) {\r\n if (f_c2 < st) {\r\n } else if (f_c2 <= ed) {\r\n f_c2 = st - 1;\r\n } else {\r\n f_c2 -= slen;\r\n }\r\n\r\n newFilterObj.filter_select = { row: [f_r1, f_r2], column: [f_c1, f_c2] };\r\n } else {\r\n if (f_c2 > ed) {\r\n f_c1 = st;\r\n f_c2 -= slen;\r\n\r\n newFilterObj.filter_select = { row: [f_r1, f_r2], column: [f_c1, f_c2] };\r\n }\r\n }\r\n\r\n if (newFilterObj.filter_select != null && filter != null) {\r\n for (let k in filter) {\r\n let f_cindex = filter[k].cindex;\r\n\r\n if (f_cindex < st) {\r\n if (newFilterObj.filter == null) {\r\n newFilterObj.filter = {};\r\n }\r\n\r\n newFilterObj.filter[f_cindex - f_c1] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[f_cindex - f_c1].edc = f_c2;\r\n } else if (f_cindex > ed) {\r\n f_cindex -= slen;\r\n\r\n if (newFilterObj.filter == null) {\r\n newFilterObj.filter = {};\r\n }\r\n\r\n newFilterObj.filter[f_cindex - f_c1] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[f_cindex - f_c1].cindex = f_cindex;\r\n newFilterObj.filter[f_cindex - f_c1].stc = f_c1;\r\n newFilterObj.filter[f_cindex - f_c1].edc = f_c2;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (newFilterObj != null && newFilterObj.filter != null) {\r\n if (cfg[\"rowhidden\"] == null) {\r\n cfg[\"rowhidden\"] = {};\r\n }\r\n\r\n for (let k in newFilterObj.filter) {\r\n let f_rowhidden = newFilterObj.filter[k].rowhidden;\r\n\r\n for (let n in f_rowhidden) {\r\n cfg[\"rowhidden\"][n] = 0;\r\n }\r\n }\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u914D\u7F6E\u53D8\u52A8\r\n let CFarr = file.luckysheet_conditionformat_save;\r\n let newCFarr = [];\r\n if (CFarr != null && CFarr.length > 0) {\r\n for (let i = 0; i < CFarr.length; i++) {\r\n let cf_range = CFarr[i].cellrange;\r\n let cf_new_range = [];\r\n\r\n for (let j = 0; j < cf_range.length; j++) {\r\n let CFr1 = cf_range[j].row[0],\r\n CFr2 = cf_range[j].row[1],\r\n CFc1 = cf_range[j].column[0],\r\n CFc2 = cf_range[j].column[1];\r\n\r\n if (type == \"row\") {\r\n if (!(CFr1 >= st && CFr2 <= ed)) {\r\n if (CFr1 > ed) {\r\n CFr1 -= slen;\r\n CFr2 -= slen;\r\n } else if (CFr1 < st) {\r\n if (CFr2 < st) {\r\n } else if (CFr2 <= ed) {\r\n CFr2 = st - 1;\r\n } else {\r\n CFr2 -= slen;\r\n }\r\n } else {\r\n if (CFr2 > ed) {\r\n CFr1 = st;\r\n CFr2 -= slen;\r\n }\r\n }\r\n\r\n cf_new_range.push({ row: [CFr1, CFr2], column: [CFc1, CFc2] });\r\n }\r\n } else if (type == \"column\") {\r\n if (!(CFc1 >= st && CFc2 <= ed)) {\r\n if (CFc1 > ed) {\r\n CFc1 -= slen;\r\n CFc2 -= slen;\r\n } else if (CFc1 < st) {\r\n if (CFc2 < st) {\r\n } else if (CFc2 <= ed) {\r\n CFc2 = st - 1;\r\n } else {\r\n CFc2 -= slen;\r\n }\r\n } else {\r\n if (CFc2 > ed) {\r\n CFc1 = st;\r\n CFc2 -= slen;\r\n }\r\n }\r\n\r\n cf_new_range.push({ row: [CFr1, CFr2], column: [CFc1, CFc2] });\r\n }\r\n }\r\n }\r\n\r\n if (cf_new_range.length > 0) {\r\n let cf = $.extend(true, {}, CFarr[i]);\r\n cf.cellrange = cf_new_range;\r\n\r\n newCFarr.push(cf);\r\n }\r\n }\r\n }\r\n\r\n //\u4EA4\u66FF\u989C\u8272\u914D\u7F6E\u53D8\u52A8\r\n let AFarr = file.luckysheet_alternateformat_save;\r\n let newAFarr = [];\r\n if (AFarr != null && AFarr.length > 0) {\r\n for (let i = 0; i < AFarr.length; i++) {\r\n let AFr1 = AFarr[i].cellrange.row[0],\r\n AFr2 = AFarr[i].cellrange.row[1],\r\n AFc1 = AFarr[i].cellrange.column[0],\r\n AFc2 = AFarr[i].cellrange.column[1];\r\n\r\n if (type == \"row\") {\r\n if (!(AFr1 >= st && AFr2 <= ed)) {\r\n let af = $.extend(true, {}, AFarr[i]);\r\n\r\n if (AFr1 > ed) {\r\n AFr1 -= slen;\r\n AFr2 -= slen;\r\n } else if (AFr1 < st) {\r\n if (AFr2 < st) {\r\n } else if (AFr2 <= ed) {\r\n AFr2 = st - 1;\r\n } else {\r\n AFr2 -= slen;\r\n }\r\n } else {\r\n if (AFr2 > ed) {\r\n AFr1 = st;\r\n AFr2 -= slen;\r\n }\r\n }\r\n\r\n af.cellrange = { row: [AFr1, AFr2], column: [AFc1, AFc2] };\r\n\r\n newAFarr.push(af);\r\n }\r\n } else if (type == \"column\") {\r\n if (!(AFc1 >= st && AFc2 <= ed)) {\r\n let af = $.extend(true, {}, AFarr[i]);\r\n\r\n if (AFc1 > ed) {\r\n AFc1 -= slen;\r\n AFc2 -= slen;\r\n } else if (AFc1 < st) {\r\n if (AFc2 < st) {\r\n } else if (AFc2 <= ed) {\r\n AFc2 = st - 1;\r\n } else {\r\n AFc2 -= slen;\r\n }\r\n } else {\r\n if (AFc2 > ed) {\r\n AFc1 = st;\r\n AFc2 -= slen;\r\n }\r\n }\r\n\r\n af.cellrange = { row: [AFr1, AFr2], column: [AFc1, AFc2] };\r\n\r\n newAFarr.push(af);\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u51BB\u7ED3\u914D\u7F6E\u53D8\u52A8\r\n let newFreezen = { freezenhorizontaldata: null, freezenverticaldata: null };\r\n if (luckysheetFreezen.freezenhorizontaldata != null && type == \"row\") {\r\n let freezen_scrollTop = luckysheetFreezen.freezenhorizontaldata[2];\r\n let freezen_st = luckysheet_searcharray(Store.visibledatarow, freezen_scrollTop);\r\n if (freezen_st == -1) {\r\n freezen_st = 0;\r\n }\r\n\r\n let freezen_row_st = luckysheetFreezen.freezenhorizontaldata[1] - 1;\r\n\r\n if (freezen_row_st >= st) {\r\n if (freezen_row_st < ed) {\r\n freezen_row_st = st - 1;\r\n } else {\r\n freezen_row_st -= slen;\r\n }\r\n }\r\n\r\n if (freezen_row_st < freezen_st) {\r\n freezen_row_st = freezen_st;\r\n }\r\n\r\n let freezen_top = Store.visibledatarow[freezen_row_st] - 2 - freezen_scrollTop + Store.columnHeaderHeight;\r\n\r\n newFreezen.freezenhorizontaldata = [\r\n Store.visibledatarow[freezen_row_st],\r\n freezen_row_st + 1,\r\n freezen_scrollTop,\r\n luckysheetFreezen.cutVolumn(Store.visibledatarow, freezen_row_st + 1),\r\n freezen_top,\r\n ];\r\n } else {\r\n newFreezen.freezenhorizontaldata = luckysheetFreezen.freezenhorizontaldata;\r\n }\r\n\r\n if (luckysheetFreezen.freezenverticaldata != null && type == \"column\") {\r\n let freezen_scrollLeft = luckysheetFreezen.freezenverticaldata[2];\r\n let freezen_st2 = luckysheet_searcharray(Store.visibledatacolumn, freezen_scrollLeft);\r\n if (freezen_st2 == -1) {\r\n freezen_st2 = 0;\r\n }\r\n\r\n let freezen_col_st = luckysheetFreezen.freezenverticaldata[1] - 1;\r\n\r\n if (freezen_col_st >= st) {\r\n if (freezen_col_st < ed) {\r\n freezen_col_st = st - 1;\r\n } else {\r\n freezen_col_st -= slen;\r\n }\r\n }\r\n\r\n if (freezen_col_st < freezen_st2) {\r\n freezen_col_st = freezen_st2;\r\n }\r\n\r\n let freezen_left = Store.visibledatacolumn[freezen_col_st] - 2 - freezen_scrollLeft + Store.rowHeaderWidth;\r\n\r\n newFreezen.freezenverticaldata = [\r\n Store.visibledatacolumn[freezen_col_st],\r\n freezen_col_st + 1,\r\n freezen_scrollLeft,\r\n luckysheetFreezen.cutVolumn(Store.visibledatacolumn, freezen_col_st + 1),\r\n freezen_left,\r\n ];\r\n } else {\r\n newFreezen.freezenverticaldata = luckysheetFreezen.freezenverticaldata;\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\u914D\u7F6E\u53D8\u52A8\r\n let dataVerification = file.dataVerification;\r\n let newDataVerification = {};\r\n if (dataVerification != null) {\r\n for (let key in dataVerification) {\r\n let r = Number(key.split(\"_\")[0]),\r\n c = Number(key.split(\"_\")[1]);\r\n let item = dataVerification[key];\r\n\r\n if (type == \"row\") {\r\n if (r < st) {\r\n newDataVerification[r + \"_\" + c] = item;\r\n } else if (r > ed) {\r\n newDataVerification[r - slen + \"_\" + c] = item;\r\n }\r\n } else if (type == \"column\") {\r\n if (c < st) {\r\n newDataVerification[r + \"_\" + c] = item;\r\n } else if (c > ed) {\r\n newDataVerification[r + \"_\" + (c - slen)] = item;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u8D85\u94FE\u63A5\u914D\u7F6E\u53D8\u52A8\r\n let hyperlink = file.hyperlink;\r\n let newHyperlink = {};\r\n if (hyperlink != null) {\r\n for (let key in hyperlink) {\r\n let r = Number(key.split(\"_\")[0]),\r\n c = Number(key.split(\"_\")[1]);\r\n let item = hyperlink[key];\r\n\r\n if (type == \"row\") {\r\n if (r < st) {\r\n newHyperlink[r + \"_\" + c] = item;\r\n } else if (r > ed) {\r\n newHyperlink[r - slen + \"_\" + c] = item;\r\n }\r\n } else if (type == \"column\") {\r\n if (c < st) {\r\n newHyperlink[r + \"_\" + c] = item;\r\n } else if (c > ed) {\r\n newHyperlink[r + \"_\" + (c - slen)] = item;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u4E3B\u903B\u8F91\r\n let type1;\r\n if (type == \"row\") {\r\n type1 = \"r\";\r\n\r\n //\u884C\u9AD8\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"rowlen\"] == null) {\r\n cfg[\"rowlen\"] = {};\r\n }\r\n\r\n let rowlen_new = {};\r\n for (let r in cfg[\"rowlen\"]) {\r\n if (r < st) {\r\n rowlen_new[r] = cfg[\"rowlen\"][r];\r\n } else if (r > ed) {\r\n rowlen_new[r - slen] = cfg[\"rowlen\"][r];\r\n }\r\n }\r\n\r\n cfg[\"rowlen\"] = rowlen_new;\r\n\r\n //\u9690\u85CF\u884C\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"rowhidden\"] == null) {\r\n cfg[\"rowhidden\"] = {};\r\n }\r\n\r\n let rowhidden_new = {};\r\n for (let r in cfg[\"rowhidden\"]) {\r\n if (r < st) {\r\n rowhidden_new[r] = cfg[\"rowhidden\"][r];\r\n } else if (r > ed) {\r\n rowhidden_new[r - slen] = cfg[\"rowhidden\"][r];\r\n }\r\n }\r\n\r\n cfg[\"rowhidden\"] = rowhidden_new;\r\n\r\n //\u8FB9\u6846\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"borderInfo\"] && cfg[\"borderInfo\"].length > 0) {\r\n let borderInfo = [];\r\n\r\n for (let i = 0; i < cfg[\"borderInfo\"].length; i++) {\r\n let rangeType = cfg[\"borderInfo\"][i].rangeType;\r\n\r\n if (rangeType == \"range\") {\r\n let borderRange = cfg[\"borderInfo\"][i].range;\r\n\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < borderRange.length; j++) {\r\n let bd_r1 = borderRange[j].row[0],\r\n bd_r2 = borderRange[j].row[1];\r\n\r\n for (let r = st; r <= ed; r++) {\r\n if (r < borderRange[j].row[0]) {\r\n bd_r1 -= 1;\r\n bd_r2 -= 1;\r\n } else if (r <= borderRange[j].row[1]) {\r\n bd_r2 -= 1;\r\n }\r\n }\r\n\r\n if (bd_r2 >= bd_r1) {\r\n emptyRange.push({ row: [bd_r1, bd_r2], column: borderRange[j].column });\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n let bd_obj = {\r\n rangeType: \"range\",\r\n borderType: cfg[\"borderInfo\"][i].borderType,\r\n style: cfg[\"borderInfo\"][i].style,\r\n color: cfg[\"borderInfo\"][i].color,\r\n range: emptyRange,\r\n };\r\n\r\n borderInfo.push(bd_obj);\r\n }\r\n } else if (rangeType == \"cell\") {\r\n let row_index = cfg[\"borderInfo\"][i].value.row_index;\r\n\r\n if (row_index < st) {\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n } else if (row_index > ed) {\r\n cfg[\"borderInfo\"][i].value.row_index = row_index - (ed - st + 1);\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n }\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"] = borderInfo;\r\n }\r\n\r\n // \u5907\u6CE8\uFF1A\u8BE5\u5904\u7406\u65B9\u5F0F\u4F1A\u5728\u5220\u9664\u591A\u884C\u7684\u65F6\u5019\u4F1A\u5B58\u5728bug\r\n // \u8BF4\u660E\uFF1A\u5220\u9664\u591A\u884C\u540E\uFF0C\u4F1A\u628A\u540C\u4E00\u4E2Arow\u7A7A\u6570\u7EC4(\u5F15\u7528\u7C7B\u578B)\u6DFB\u52A0\u6210\u4E3Adata\u591A\u884C\u7684\u6570\u636E\u6E90\uFF0C\u5BFC\u81F4\u8BBE\u7F6E\u8FD9\u4E9B\u884C\u6570\u636E\u65F6\u4EA7\u751F\u9519\u8BEF\u3002\r\n //\u7A7A\u767D\u884C\u6A21\u677F\r\n // let row = [];\r\n // for (let c = 0; c < d[0].length; c++) {\r\n // row.push(null);\r\n // }\r\n\r\n // //\u5220\u9664\u9009\u4E2D\u884C\r\n // d.splice(st, slen);\r\n\r\n // //\u5220\u9664\u591A\u5C11\u884C\uFF0C\u589E\u52A0\u591A\u5C11\u884C\u7A7A\u767D\u884C\r\n // for (let r = 0; r < slen; r++) {\r\n // d.push(row);\r\n // }\r\n\r\n //\u5220\u9664\u9009\u4E2D\u884C\r\n d.splice(st, slen);\r\n\r\n //\u5220\u9664\u591A\u5C11\u884C\uFF0C\u589E\u52A0\u591A\u5C11\u884C\u7A7A\u767D\u884C\r\n // for (let r = 0; r < slen; r++) {\r\n // let row = [];\r\n // for (let c = 0; c < d[0].length; c++) {\r\n // row.push(null);\r\n // }\r\n // d.push(row);\r\n // }\r\n } else {\r\n type1 = \"c\";\r\n\r\n //\u5217\u5BBD\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"columnlen\"] == null) {\r\n cfg[\"columnlen\"] = {};\r\n }\r\n\r\n let columnlen_new = {};\r\n for (let c in cfg[\"columnlen\"]) {\r\n if (c < st) {\r\n columnlen_new[c] = cfg[\"columnlen\"][c];\r\n } else if (c > ed) {\r\n columnlen_new[c - slen] = cfg[\"columnlen\"][c];\r\n }\r\n }\r\n\r\n cfg[\"columnlen\"] = columnlen_new;\r\n\r\n //\u9690\u85CF\u5217\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"colhidden\"] == null) {\r\n cfg[\"colhidden\"] = {};\r\n }\r\n\r\n let colhidden_new = {};\r\n for (let c in cfg[\"colhidden\"]) {\r\n if (c < st) {\r\n colhidden_new[c] = cfg[\"colhidden\"][c];\r\n } else if (c > ed) {\r\n colhidden_new[c - slen] = cfg[\"colhidden\"][c];\r\n }\r\n }\r\n\r\n cfg[\"colhidden\"] = colhidden_new;\r\n\r\n //\u8FB9\u6846\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"borderInfo\"] && cfg[\"borderInfo\"].length > 0) {\r\n let borderInfo = [];\r\n\r\n for (let i = 0; i < cfg[\"borderInfo\"].length; i++) {\r\n let rangeType = cfg[\"borderInfo\"][i].rangeType;\r\n\r\n if (rangeType == \"range\") {\r\n let borderRange = cfg[\"borderInfo\"][i].range;\r\n\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < borderRange.length; j++) {\r\n let bd_c1 = borderRange[j].column[0],\r\n bd_c2 = borderRange[j].column[1];\r\n\r\n for (let c = st; c <= ed; c++) {\r\n if (c < borderRange[j].column[0]) {\r\n bd_c1 -= 1;\r\n bd_c2 -= 1;\r\n } else if (c <= borderRange[j].column[1]) {\r\n bd_c2 -= 1;\r\n }\r\n }\r\n\r\n if (bd_c2 >= bd_c1) {\r\n emptyRange.push({ row: borderRange[j].row, column: [bd_c1, bd_c2] });\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n let bd_obj = {\r\n rangeType: \"range\",\r\n borderType: cfg[\"borderInfo\"][i].borderType,\r\n style: cfg[\"borderInfo\"][i].style,\r\n color: cfg[\"borderInfo\"][i].color,\r\n range: emptyRange,\r\n };\r\n\r\n borderInfo.push(bd_obj);\r\n }\r\n } else if (rangeType == \"cell\") {\r\n let col_index = cfg[\"borderInfo\"][i].value.col_index;\r\n\r\n if (col_index < st) {\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n } else if (col_index > ed) {\r\n cfg[\"borderInfo\"][i].value.col_index = col_index - (ed - st + 1);\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n }\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"] = borderInfo;\r\n }\r\n\r\n // //\u7A7A\u767D\u5217\u6A21\u677F\r\n // let addcol = [];\r\n // for (let r = 0; r < slen; r++) {\r\n // addcol.push(null);\r\n // }\r\n\r\n for (let r = 0; r < d.length; r++) {\r\n let row = [].concat(JSON.parse((JSON.stringify(d[r]))));\r\n //\u5220\u9664\u8BE5\u884C\u9009\u4E2D\u5217\r\n row.splice(st, slen);\r\n d[r] = row;//\u5C06\u5220\u9664\u5217\u7684\u884C\u6570\u636E \u8D4B\u503C\u7ED9sheet\u7684\u5BF9\u5E94\u884C\r\n }\r\n }\r\n\r\n // \u4FEE\u6539\u5F53\u524Dsheet\u9875\u65F6\u5237\u65B0\r\n if (file.index == Store.currentSheetIndex) {\r\n jfrefreshgrid_adRC(\r\n d,\r\n cfg,\r\n \"delRC\",\r\n { index: st, len: ed - st + 1, rc: type1 },\r\n newCalcChain,\r\n newFilterObj,\r\n newCFarr,\r\n newAFarr,\r\n newFreezen,\r\n newDataVerification,\r\n newHyperlink,\r\n );\r\n } else {\r\n file.data = d;\r\n file.config = cfg;\r\n file.calcChain = newCalcChain;\r\n file.filter = newFilterObj.filter;\r\n file.filter_select = newFilterObj.filter_select;\r\n file.luckysheet_conditionformat_save = newCFarr;\r\n file.luckysheet_alternateformat_save = newAFarr;\r\n file.dataVerification = newDataVerification;\r\n file.hyperlink = newHyperlink;\r\n }\r\n}\r\n\r\n//\u5220\u9664\u5355\u5143\u683C\r\nfunction luckysheetDeleteCell(type, str, edr, stc, edc, sheetIndex) {\r\n sheetIndex = sheetIndex || Store.currentSheetIndex;\r\n if (!checkProtectionNotEnable(sheetIndex)) {\r\n return;\r\n }\r\n\r\n // Hook function\r\n if (!method.createHookFunction(\"rangeDeleteBefore\", str, stc)) {\r\n return;\r\n }\r\n\r\n let curOrder = getSheetIndex(sheetIndex);\r\n let file = Store.luckysheetfile[curOrder];\r\n\r\n let d = $.extend(true, [], file.data);\r\n\r\n let rlen = edr - str + 1;\r\n let clen = edc - stc + 1;\r\n let cfg = $.extend(true, {}, Store.config);\r\n\r\n //\u5408\u5E76\u5355\u5143\u683C\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n let merge_new = {};\r\n for (let m in cfg[\"merge\"]) {\r\n let mc = cfg[\"merge\"][m];\r\n\r\n let r = mc.r,\r\n c = mc.c,\r\n rs = mc.rs,\r\n cs = mc.cs;\r\n\r\n if (type == \"moveLeft\") {\r\n if (str > r + rs - 1 || edr < r || stc > c + cs - 1) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n } else if (str <= r && edr >= r + rs - 1 && edc < c) {\r\n merge_new[r + \"_\" + (c - clen)] = { r: r, c: c - clen, rs: rs, cs: cs };\r\n } else {\r\n for (let r_i = r; r_i <= r + rs - 1; r_i++) {\r\n for (let c_i = c; c_i <= c + cs - 1; c_i++) {\r\n delete d[r_i][c_i].mc;\r\n }\r\n }\r\n }\r\n } else if (type == \"moveUp\") {\r\n if (stc > c + cs - 1 || edc < c || str > r + rs - 1) {\r\n merge_new[r + \"_\" + c] = { r: r, c: c, rs: rs, cs: cs };\r\n } else if (stc <= c && edc >= c + cs - 1 && edr < r) {\r\n merge_new[r - rlen + \"_\" + c] = { r: r - rlen, c: c, rs: rs, cs: cs };\r\n } else {\r\n for (let r_i = r; r_i <= r + rs - 1; r_i++) {\r\n for (let c_i = c; c_i <= c + cs - 1; c_i++) {\r\n delete d[r_i][c_i].mc;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n cfg[\"merge\"] = merge_new;\r\n\r\n //\u516C\u5F0F\u914D\u7F6E\u53D8\u52A8\r\n let calcChain = file.calcChain;\r\n let newCalcChain = [];\r\n if (calcChain != null && calcChain.length > 0) {\r\n for (let i = 0; i < calcChain.length; i++) {\r\n let calc = $.extend(true, {}, calcChain[i]);\r\n let calc_r = calc.r,\r\n calc_c = calc.c,\r\n calc_i = calc.index,\r\n calc_funcStr = getcellFormula(calc_r, calc_c, calc_i);\r\n\r\n // \u6DFB\u52A0\u8FDB\u516C\u5F0F\u540E\uFF0C\u53EF\u80FD\u53C8\u76F4\u63A5\u8986\u76D6\u4E86\u5355\u5143\u683C\u503C\r\n if(!calc_funcStr) continue\r\n\r\n if (calc_r < str || calc_r > edr || calc_c < stc || calc_c > edc) {\r\n let functionStr;\r\n\r\n if (type == \"moveLeft\") {\r\n functionStr = \"=\" + formula.functionStrChange(calc_funcStr, \"del\", \"col\", null, stc, clen);\r\n\r\n if (calc_c > edc && calc_r >= str && calc_r <= edr) {\r\n calc.c = calc_c - clen;\r\n }\r\n } else if (type == \"moveUp\") {\r\n functionStr = \"=\" + formula.functionStrChange(calc_funcStr, \"del\", \"row\", null, str, rlen);\r\n\r\n if (calc_r > edr && calc_c >= stc && calc_c <= edc) {\r\n calc.r = calc_r - rlen;\r\n }\r\n }\r\n\r\n if (d[calc_r][calc_c] && d[calc_r][calc_c].f == calc_funcStr) {\r\n d[calc_r][calc_c].f = functionStr;\r\n }\r\n\r\n newCalcChain.push(calc);\r\n }\r\n }\r\n }\r\n\r\n //\u7B5B\u9009\u914D\u7F6E\u53D8\u52A8\r\n let filter_select = file.filter_select;\r\n let filter = file.filter;\r\n let newFilterObj = null;\r\n if (filter_select != null && JSON.stringify(filter_select) != \"{}\") {\r\n newFilterObj = { filter_select: null, filter: null };\r\n\r\n let f_r1 = filter_select.row[0],\r\n f_r2 = filter_select.row[1];\r\n let f_c1 = filter_select.column[0],\r\n f_c2 = filter_select.column[1];\r\n\r\n if (type == \"moveUp\") {\r\n if (f_c1 >= stc && f_c2 <= edc) {\r\n if (f_r1 > edr) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1 - rlen, f_r2 - rlen],\r\n column: [f_c1, f_c2],\r\n };\r\n } else if (f_r2 < str) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n } else if (f_r1 < str) {\r\n if (f_r2 > edr) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2 - rlen],\r\n column: [f_c1, f_c2],\r\n };\r\n } else {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, str - 1],\r\n column: [f_c1, f_c2],\r\n };\r\n }\r\n }\r\n\r\n if (newFilterObj.filter_select != null && filter != null) {\r\n for (let k in filter) {\r\n let f_rowhidden = filter[k].rowhidden;\r\n let f_rowhidden_new = {};\r\n\r\n for (let n in f_rowhidden) {\r\n if (n < str) {\r\n f_rowhidden_new[n] = 0;\r\n } else if (n > edr) {\r\n f_rowhidden_new[n - slen] = 0;\r\n }\r\n }\r\n\r\n if (newFilterObj.filter == null) {\r\n newFilterObj.filter = {};\r\n }\r\n newFilterObj.filter[k] = $.extend(true, {}, filter[k]);\r\n\r\n if (JSON.stringify(f_rowhidden_new) != \"{}\") {\r\n newFilterObj.filter[k].rowhidden = f_rowhidden_new;\r\n }\r\n\r\n newFilterObj.filter[k].str = newFilterObj.filter_select.row[0];\r\n newFilterObj.filter[k].edr = newFilterObj.filter_select.row[1];\r\n }\r\n }\r\n } else if (f_r1 >= str && f_r2 <= edr) {\r\n if (f_c1 > edc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n } else if (f_c1 >= stc) {\r\n if (f_c2 > edc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [stc, f_c2 - clen],\r\n };\r\n }\r\n } else {\r\n if (f_c2 < stc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n } else if (f_c2 <= edc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, stc - 1],\r\n };\r\n } else {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2 - clen],\r\n };\r\n }\r\n }\r\n\r\n if (newFilterObj.filter_select != null && filter != null) {\r\n for (let k in filter) {\r\n let f_stc = newFilterObj.filter_select.column[0];\r\n let f_edc = newFilterObj.filter_select.column[1];\r\n let f_cindex = filter[k].cindex;\r\n\r\n if (f_cindex < stc || f_cindex > edc) {\r\n if (newFilterObj.filter == null) {\r\n newFilterObj.filter = {};\r\n }\r\n\r\n if (f_cindex > edc) {\r\n f_cindex -= clen;\r\n }\r\n\r\n let k2 = f_cindex - f_stc;\r\n\r\n newFilterObj.filter[k2] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[k2].cindex = f_cindex;\r\n newFilterObj.filter[k2].stc = f_stc;\r\n newFilterObj.filter[k2].edc = f_edc;\r\n }\r\n }\r\n }\r\n } else {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n\r\n if (filter != null) {\r\n newFilterObj.filter = filter;\r\n }\r\n }\r\n } else if (type == \"moveLeft\") {\r\n if (f_r1 >= str && f_r2 <= edr) {\r\n if (f_c1 > edc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1 - clen, f_c2 - clen],\r\n };\r\n } else if (f_c2 < stc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n } else if (f_c1 < stc) {\r\n if (f_c2 > edc) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2 - clen],\r\n };\r\n } else {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, stc - 1],\r\n };\r\n }\r\n }\r\n\r\n if (newFilterObj.filter_select != null && filter != null) {\r\n for (let k in filter) {\r\n let f_stc = newFilterObj.filter_select.column[0];\r\n let f_edc = newFilterObj.filter_select.column[1];\r\n let f_cindex = filter[k].cindex;\r\n\r\n if (f_cindex < stc || f_cindex > edc) {\r\n if (newFilterObj.filter == null) {\r\n newFilterObj.filter = {};\r\n }\r\n\r\n if (f_cindex > edc) {\r\n f_cindex -= clen;\r\n }\r\n\r\n let k2 = f_cindex - f_stc;\r\n\r\n newFilterObj.filter[k2] = $.extend(true, {}, filter[k]);\r\n newFilterObj.filter[k2].cindex = f_cindex;\r\n newFilterObj.filter[k2].stc = f_stc;\r\n newFilterObj.filter[k2].edc = f_edc;\r\n }\r\n }\r\n }\r\n } else if (f_c1 >= stc && f_c2 <= edc) {\r\n if (f_r1 < str || f_r1 > edr) {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n\r\n if (filter != null) {\r\n newFilterObj.filter = filter;\r\n }\r\n }\r\n } else {\r\n newFilterObj.filter_select = {\r\n row: [f_r1, f_r2],\r\n column: [f_c1, f_c2],\r\n };\r\n\r\n if (filter != null) {\r\n newFilterObj.filter = filter;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (newFilterObj != null && newFilterObj.filter != null) {\r\n if (cfg[\"rowhidden\"] == null) {\r\n cfg[\"rowhidden\"] = {};\r\n }\r\n\r\n for (let k in newFilterObj.filter) {\r\n let f_rowhidden = newFilterObj.filter[k].rowhidden;\r\n\r\n for (let n in f_rowhidden) {\r\n cfg[\"rowhidden\"][n] = 0;\r\n }\r\n }\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u914D\u7F6E\u53D8\u52A8\r\n let CFarr = file.luckysheet_conditionformat_save;\r\n let newCFarr = [];\r\n if (CFarr != null && CFarr.length > 0) {\r\n for (let i = 0; i < CFarr.length; i++) {\r\n let cf_range = CFarr[i].cellrange;\r\n let cf_new_range = [];\r\n\r\n for (let j = 0; j < cf_range.length; j++) {\r\n let CFr1 = cf_range[j].row[0],\r\n CFr2 = cf_range[j].row[1],\r\n CFc1 = cf_range[j].column[0],\r\n CFc2 = cf_range[j].column[1];\r\n\r\n if (!(str <= CFr1 && edr >= CFr2 && stc <= CFc1 && edc >= CFc2)) {\r\n cf_new_range = getMoveRange(type, str, edr, stc, edc, CFr1, CFr2, CFc1, CFc2, rlen, clen);\r\n }\r\n }\r\n\r\n if (cf_new_range.length > 0) {\r\n let cf = $.extend(true, {}, CFarr[i]);\r\n cf.cellrange = cf_new_range;\r\n\r\n newCFarr.push(cf);\r\n }\r\n }\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\u914D\u7F6E\u53D8\u52A8\r\n let dataVerification = file.dataVerification;\r\n let newDataVerification = {};\r\n if (dataVerification != null) {\r\n for (let key in dataVerification) {\r\n let r = Number(key.split(\"_\")[0]),\r\n c = Number(key.split(\"_\")[1]);\r\n let item = dataVerification[key];\r\n\r\n if (r < str || r > edr || c < stc || c > edc) {\r\n if (type == \"moveLeft\") {\r\n if (c > edc && r >= str && r <= edr) {\r\n newDataVerification[r + \"_\" + (c - clen)] = item;\r\n } else {\r\n newDataVerification[r + \"_\" + c] = item;\r\n }\r\n } else if (type == \"moveUp\") {\r\n if (r > edr && c >= stc && c <= edc) {\r\n newDataVerification[r - rlen + \"_\" + c] = item;\r\n } else {\r\n newDataVerification[r + \"_\" + c] = item;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u8D85\u94FE\u63A5\u914D\u7F6E\u53D8\u52A8\r\n let hyperlink = file.hyperlink;\r\n let newHyperlink = {};\r\n if (hyperlink != null) {\r\n for (let key in hyperlink) {\r\n let r = Number(key.split(\"_\")[0]),\r\n c = Number(key.split(\"_\")[1]);\r\n let item = hyperlink[key];\r\n\r\n if (r < str || r > edr || c < stc || c > edc) {\r\n if (type == \"moveLeft\") {\r\n if (c > edc && r >= str && r <= edr) {\r\n newHyperlink[r + \"_\" + (c - clen)] = item;\r\n } else {\r\n newHyperlink[r + \"_\" + c] = item;\r\n }\r\n } else if (type == \"moveUp\") {\r\n if (r > edr && c >= stc && c <= edc) {\r\n newHyperlink[r - rlen + \"_\" + c] = item;\r\n } else {\r\n newHyperlink[r + \"_\" + c] = item;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u8FB9\u6846\u914D\u7F6E\u53D8\u52A8\r\n if (cfg[\"borderInfo\"] && cfg[\"borderInfo\"].length > 0) {\r\n let borderInfo = [];\r\n\r\n for (let i = 0; i < cfg[\"borderInfo\"].length; i++) {\r\n let rangeType = cfg[\"borderInfo\"][i].rangeType;\r\n\r\n if (rangeType == \"range\") {\r\n let borderRange = cfg[\"borderInfo\"][i].range;\r\n\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < borderRange.length; j++) {\r\n let bd_r1 = borderRange[j].row[0],\r\n bd_r2 = borderRange[j].row[1],\r\n bd_c1 = borderRange[j].column[0],\r\n bd_c2 = borderRange[j].column[1];\r\n\r\n if (!(str <= bd_r1 && edr >= bd_r2 && stc <= bd_c1 && edc >= bd_c2)) {\r\n emptyRange = getMoveRange(type, str, edr, stc, edc, bd_r1, bd_r2, bd_c1, bd_c2, rlen, clen);\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n let bd_obj = {\r\n rangeType: \"range\",\r\n borderType: cfg[\"borderInfo\"][i].borderType,\r\n style: cfg[\"borderInfo\"][i].style,\r\n color: cfg[\"borderInfo\"][i].color,\r\n range: emptyRange,\r\n };\r\n\r\n borderInfo.push(bd_obj);\r\n }\r\n } else if (rangeType == \"cell\") {\r\n let row_index = cfg[\"borderInfo\"][i].value.row_index;\r\n let col_index = cfg[\"borderInfo\"][i].value.col_index;\r\n\r\n if (row_index < str || row_index > edr || col_index < stc || col_index > edc) {\r\n if (type == \"moveLeft\") {\r\n if (col_index > edc && row_index >= str && row_index <= edr) {\r\n col_index -= clen;\r\n cfg[\"borderInfo\"][i].value.col_index = col_index;\r\n }\r\n } else if (type == \"moveUp\") {\r\n if (row_index > edr && col_index >= stc && col_index <= edc) {\r\n row_index -= rlen;\r\n cfg[\"borderInfo\"][i].value.row_index = row_index;\r\n }\r\n }\r\n\r\n borderInfo.push(cfg[\"borderInfo\"][i]);\r\n }\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"] = borderInfo;\r\n }\r\n\r\n //\u7A7A\u767D\u5217\u6A21\u677F\r\n let addcol = [];\r\n for (let c = stc; c <= edc; c++) {\r\n addcol.push(null);\r\n }\r\n\r\n if (type == \"moveUp\") {\r\n //\u4E0A\u79FB\r\n let data = [];\r\n\r\n for (let r = str; r <= d.length - 1; r++) {\r\n let row = [];\r\n\r\n for (let c = stc; c <= edc; c++) {\r\n row.push(d[r][c]);\r\n }\r\n\r\n data.push(row);\r\n }\r\n\r\n data.splice(0, rlen);\r\n\r\n //\u7A7A\u767D\u884C\u6A21\u677F\r\n let addrow = [];\r\n for (let r = str; r <= edr; r++) {\r\n addrow.push(addcol);\r\n }\r\n\r\n data = data.concat(addrow);\r\n\r\n for (let r = str; r <= d.length - 1; r++) {\r\n for (let c = stc; c <= edc; c++) {\r\n d[r][c] = data[r - str][c - stc];\r\n }\r\n }\r\n } else if (type == \"moveLeft\") {\r\n //\u5DE6\u79FB\r\n for (let r = str; r <= edr; r++) {\r\n d[r].splice(stc, clen);\r\n d[r] = d[r].concat(addcol);\r\n }\r\n }\r\n\r\n if (file.index == Store.currentSheetIndex) {\r\n jfrefreshgrid_deleteCell(\r\n d,\r\n cfg,\r\n { type: type, str: str, edr: edr, stc: stc, edc: edc },\r\n newCalcChain,\r\n newFilterObj,\r\n newCFarr,\r\n newDataVerification,\r\n newHyperlink,\r\n );\r\n } else {\r\n file.data = d;\r\n file.config = cfg;\r\n file.calcChain = newCalcChain;\r\n file.filter = newFilterObj.filter;\r\n file.filter_select = newFilterObj.filter_select;\r\n file.luckysheet_conditionformat_save = newCFarr;\r\n file.dataVerification = newDataVerification;\r\n file.hyperlink = newHyperlink;\r\n }\r\n}\r\n\r\nfunction getMoveRange(type, str, edr, stc, edc, r1, r2, c1, c2, rlen, clen) {\r\n let newRange = [];\r\n\r\n if (type == \"moveLeft\") {\r\n if (str > r2 || edr < r1 || stc > c2) {\r\n newRange.push({\r\n row: [r1, r2],\r\n column: [c1, c2],\r\n });\r\n } else if (edc < c1) {\r\n if (str <= r1 && edr >= r2) {\r\n newRange.push({\r\n row: [r1, r2],\r\n column: [c1 - clen, c2 - clen],\r\n });\r\n } else if (str > r1 && edr < r2) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n { row: [str, edr], column: [c1 - clen, c2 - clen] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (str > r1) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [str, r2], column: [c1 - clen, c2 - clen] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edr < r2) {\r\n let range = [\r\n { row: [r1, edr], column: [c1 - clen, c2 - clen] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (edc >= c1) {\r\n if (stc <= c1 && edc >= c2) {\r\n if (str > r1 && edr < r2) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (str > r1) {\r\n let range = [{ row: [r1, str - 1], column: [c1, c2] }];\r\n newRange = newRange.concat(range);\r\n } else if (edr < r2) {\r\n let range = [{ row: [edr + 1, r2], column: [c1, c2] }];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (stc > c1 && edc < c2) {\r\n if (str <= r1 && edr >= r2) {\r\n newRange.push({\r\n row: [r1, r2],\r\n column: [c1, c2 - clen],\r\n });\r\n } else if (str > r1 && edr < r2) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n { row: [str, edr], column: [c1, c2 - clen] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (str > r1) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [str, r2], column: [c1, c2 - clen] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edr < r2) {\r\n let range = [\r\n { row: [r1, edr], column: [c1, c2 - clen] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (stc > c1) {\r\n if (str <= r1 && edr >= r2) {\r\n newRange.push({\r\n row: [r1, r2],\r\n column: [c1, stc - 1],\r\n });\r\n } else if (str > r1 && edr < r2) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n { row: [str, edr], column: [c1, stc - 1] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (str > r1) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [str, r2], column: [c1, stc - 1] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edr < r2) {\r\n let range = [\r\n { row: [r1, edr], column: [c1, stc - 1] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (edc < c2) {\r\n if (str <= r1 && edr >= r2) {\r\n newRange.push({\r\n row: [r1, r2],\r\n column: [c1 - clen, c2 - clen],\r\n });\r\n } else if (str > r1 && edr < r2) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n { row: [str, edr], column: [c1 - clen, c2 - clen] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (str > r1) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, c2] },\r\n { row: [str, r2], column: [c1 - clen, c2 - clen] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edr < r2) {\r\n let range = [\r\n { row: [r1, edr], column: [c1 - clen, c2 - clen] },\r\n { row: [edr + 1, r2], column: [c1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n }\r\n }\r\n } else if (type == \"moveUp\") {\r\n if (stc > c2 || edc < c1 || str > r2) {\r\n newRange.push({\r\n row: [r1, r2],\r\n column: [c1, c2],\r\n });\r\n } else if (edr < r1) {\r\n if (stc <= c1 && edc >= c2) {\r\n newRange.push({\r\n row: [r1 - rlen, r2 - rlen],\r\n column: [c1, c2],\r\n });\r\n } else if (stc > c1 && edc < c2) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n { row: [r1 - rlen, r2 - rlen], column: [stc, edc] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (stc > c1) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1 - rlen, r2 - rlen], column: [stc, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edc < c2) {\r\n let range = [\r\n { row: [r1 - rlen, r2 - rlen], column: [c1, edc] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (edr >= r1) {\r\n if (str <= r1 && edr >= r2) {\r\n if (stc > c1 && edc < c2) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (stc > c1) {\r\n let range = [{ row: [r1, r2], column: [c1, stc - 1] }];\r\n newRange = newRange.concat(range);\r\n } else if (edc < c2) {\r\n let range = [{ row: [r1, r2], column: [edc + 1, c2] }];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (str > r1 && edr < r2) {\r\n if (stc <= c1 && edc >= c2) {\r\n newRange.push({\r\n row: [r1, r2 - rlen],\r\n column: [c1, c2],\r\n });\r\n } else if (stc > c1 && edc < c2) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n { row: [r1, r2 - rlen], column: [stc, edc] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (stc > c1) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, r2 - rlen], column: [stc, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edc < c2) {\r\n let range = [\r\n { row: [r1, r2 - rlen], column: [c1, edc] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (str > r1) {\r\n if (stc <= c1 && edc >= c2) {\r\n newRange.push({\r\n row: [r1, str - 1],\r\n column: [c1, c2],\r\n });\r\n } else if (stc > c1 && edc < c2) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n { row: [r1, str - 1], column: [stc, edc] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (stc > c1) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, str - 1], column: [stc, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edc < c2) {\r\n let range = [\r\n { row: [r1, str - 1], column: [c1, edc] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n } else if (edr < r2) {\r\n if (stc <= c1 && edc >= c2) {\r\n newRange.push({\r\n row: [r1 - rlen, r2 - rlen],\r\n column: [c1, c2],\r\n });\r\n } else if (stc > c1 && edc < c2) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n { row: [r1 - rlen, r2 - rlen], column: [stc, edc] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (stc > c1) {\r\n let range = [\r\n { row: [r1, r2], column: [c1, stc - 1] },\r\n { row: [r1 - rlen, r2 - rlen], column: [stc, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n } else if (edc < c2) {\r\n let range = [\r\n { row: [r1 - rlen, r2 - rlen], column: [c1, edc] },\r\n { row: [r1, r2], column: [edc + 1, c2] },\r\n ];\r\n newRange = newRange.concat(range);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return newRange;\r\n}\r\n\r\nexport { luckysheetextendtable, luckysheetextendData, luckysheetdeletetable, luckysheetDeleteCell };\r\n", "import { datagridgrowth } from './getdata';\r\nimport editor from './editor';\r\nimport rhchInit from './rhchInit';\r\nimport formula from './formula';\r\nimport { luckysheetrefreshgrid } from './refresh';\r\nimport sheetmanage from '../controllers/sheetmanage';\r\nimport Store from '../store';\r\n\r\nexport default function luckysheetcreatesheet(colwidth, rowheight, data, cfg, active) {\r\n if(active == null){\r\n active = true;\r\n }\r\n\r\n Store.visibledatarow = [];\r\n Store.visibledatacolumn = [];\r\n Store.ch_width = 0;\r\n Store.rh_height = 0;\r\n Store.zoomRatio = 1;\r\n\r\n if(cfg != null){\r\n Store.config = cfg;\r\n }\r\n else{\r\n Store.config = {};\r\n }\r\n\r\n if (data.length == 0) {\r\n Store.flowdata = datagridgrowth(data, rowheight, colwidth);\r\n }\r\n else if (data.length < rowheight && data[0].length < colwidth) {\r\n Store.flowdata = datagridgrowth(data, rowheight - data.length, colwidth - data[0].length);\r\n }\r\n else if (data.length < rowheight) {\r\n Store.flowdata = datagridgrowth(data, rowheight - data.length, 0);\r\n }\r\n else if (data[0].length < colwidth) {\r\n Store.flowdata = datagridgrowth(data, 0, colwidth - data[0].length);\r\n }\r\n else {\r\n Store.flowdata = data;\r\n }\r\n\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n rhchInit(rowheight, colwidth);\r\n\r\n if(active){\r\n sheetmanage.showSheet();\r\n\r\n setTimeout(function () {\r\n sheetmanage.restoreCache();\r\n formula.execFunctionGroup();\r\n sheetmanage.restoreSheetAll(Store.currentSheetIndex);\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n}\r\n", "import server from '../controllers/server';\r\nimport { luckysheetlodingHTML, luckyColor } from '../controllers/constant';\r\nimport sheetmanage from '../controllers/sheetmanage';\r\nimport luckysheetformula from './formula';\r\nimport imageCtrl from '../controllers/imageCtrl';\r\nimport dataVerificationCtrl from '../controllers/dataVerificationCtrl';\r\nimport pivotTable from '../controllers/pivotTable';\r\nimport luckysheetFreezen from '../controllers/freezen';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport { luckysheetextendData } from './extend';\r\nimport luckysheetConfigsetting from '../controllers/luckysheetConfigsetting';\r\nimport editor from './editor';\r\nimport luckysheetcreatesheet from './createsheet';\r\nimport Store from '../store';\r\n\r\nconst defaultConfig = {\r\n defaultStore:{\r\n container: null, \r\n luckysheetfile: null, \r\n defaultcolumnNum: 60, \r\n defaultrowNum: 84, \r\n fullscreenmode: true,\r\n devicePixelRatio: 1,\r\n \r\n currentSheetIndex: 0,\r\n calculateSheetIndex: 0,\r\n flowdata: [],\r\n config: {},\r\n \r\n visibledatarow: [],\r\n visibledatacolumn: [],\r\n ch_width: 0,\r\n rh_height: 0,\r\n \r\n cellmainWidth: 0,\r\n cellmainHeight: 0,\r\n toolbarHeight: 0,\r\n infobarHeight: 0,\r\n calculatebarHeight: 0,\r\n rowHeaderWidth: 46,\r\n columnHeaderHeight: 20,\r\n cellMainSrollBarSize: 12,\r\n sheetBarHeight: 31,\r\n statisticBarHeight: 23,\r\n luckysheetTableContentHW: [0, 0], \r\n \r\n defaultcollen: 73,\r\n defaultrowlen: 19,\r\n \r\n jfcountfuncTimeout: null, \r\n jfautoscrollTimeout: null,\r\n \r\n luckysheet_select_status: false,\r\n luckysheet_select_save: [{ \"row\": [0, 0], \"column\": [0, 0] }],\r\n luckysheet_selection_range: [],\r\n \r\n luckysheet_copy_save: {}, //\u590D\u5236\u7C98\u8D34\r\n luckysheet_paste_iscut: false,\r\n \r\n filterchage: true, //\u7B5B\u9009\r\n luckysheet_filter_save: { \"row\": [], \"column\": [] },\r\n \r\n luckysheet_sheet_move_status: false,\r\n luckysheet_sheet_move_data: [],\r\n luckysheet_scroll_status: false,\r\n \r\n luckysheetisrefreshdetail: true,\r\n luckysheetisrefreshtheme: true,\r\n luckysheetcurrentisPivotTable: false,\r\n \r\n luckysheet_rows_selected_status: false, //\u884C\u5217\u6807\u9898\u76F8\u5173\u53C2\r\n luckysheet_cols_selected_status: false, \r\n luckysheet_rows_change_size: false,\r\n luckysheet_rows_change_size_start: [],\r\n luckysheet_cols_change_size: false,\r\n luckysheet_cols_change_size_start: [],\r\n luckysheet_cols_dbclick_timeout: null,\r\n luckysheet_cols_dbclick_times: 0,\r\n \r\n luckysheetCellUpdate: [],\r\n \r\n luckysheet_shiftpositon: null,\r\n \r\n iscopyself: true,\r\n \r\n orderbyindex: 0, //\u6392\u5E8F\u4E0B\u6807\r\n \r\n luckysheet_model_move_state: false, //\u6A21\u6001\u6846\u62D6\u52A8\r\n luckysheet_model_xy: [0, 0],\r\n luckysheet_model_move_obj: null,\r\n \r\n luckysheet_cell_selected_move: false, //\u9009\u533A\u62D6\u52A8\u66FF\u6362\r\n luckysheet_cell_selected_move_index: [],\r\n \r\n luckysheet_cell_selected_extend: false, //\u9009\u533A\u4E0B\u62C9\r\n luckysheet_cell_selected_extend_index: [],\r\n luckysheet_cell_selected_extend_time: null,\r\n \r\n clearjfundo: true,\r\n jfredo: [],\r\n jfundo: [],\r\n lang: 'en', //language\r\n createChart: '',\r\n highlightChart: '',\r\n zIndex: 15,\r\n chartparam: {\r\n luckysheetCurrentChart: null, //current chart_id\r\n luckysheetCurrentChartActive: false,\r\n luckysheetCurrentChartMove: null, // Debounce state\r\n luckysheetCurrentChartMoveTimeout: null,//\u62D6\u52A8\u56FE\u8868\u6846\u7684\u8282\u6D41\u5B9A\u65F6\u5668\r\n luckysheetCurrentChartMoveObj: null, //chart DOM object\r\n luckysheetCurrentChartMoveXy: null, //\u4E0A\u4E00\u6B21\u64CD\u4F5C\u7ED3\u675F\u7684\u56FE\u8868\u4FE1\u606F\uFF0Cx,y: chart\u6846\u4F4D\u7F6E\uFF0CscrollLeft1,scrollTop1: \u6EDA\u52A8\u6761\u4F4D\u7F6E\r\n luckysheetCurrentChartMoveWinH: null, //\u5DE6\u53F3\u6EDA\u52A8\u6761\u6ED1\u52A8\u8DDD\u79BB\r\n luckysheetCurrentChartMoveWinW: null, //\u4E0A\u4E0B\u6EDA\u52A8\u6761\u6ED1\u52A8\u8DDD\u79BB\r\n luckysheetCurrentChartResize: null,\r\n luckysheetCurrentChartResizeObj: null,\r\n luckysheetCurrentChartResizeXy: null,\r\n luckysheetCurrentChartResizeWinH: null,\r\n luckysheetCurrentChartResizeWinW: null,\r\n luckysheetInsertChartTosheetChange: true, // \u6B63\u5728\u6267\u884C\u64A4\u9500\r\n luckysheetCurrentChartZIndexRank : 100,\r\n luckysheet_chart_redo_click:false, //\u64A4\u9500\u91CD\u505A\u65F6\u6807\u8BC6\r\n luckysheetCurrentChartMaxState: false, //\u56FE\u8868\u5168\u5C4F\u72B6\u6001\r\n jfrefreshchartall: '',\r\n changeChartCellData: '',\r\n renderChart: '',\r\n getChartJson: ''\r\n },\r\n functionList:null, //function list explanation\r\n luckysheet_function:null,\r\n chart_selection: {},\r\n currentChart: '',\r\n scrollRefreshSwitch:true,\r\n \r\n measureTextCache:{},\r\n measureTextCellInfoCache:{},\r\n measureTextCacheTimeOut:null,\r\n cellOverflowMapCache:{},\r\n \r\n zoomRatio:1,\r\n \r\n visibledatacolumn_unique:null,\r\n visibledatarow_unique:null,\r\n \r\n showGridLines:true,\r\n \r\n toobarObject: {}, //toolbar constant\r\n inlineStringEditCache:null,\r\n inlineStringEditRange:null,\r\n \r\n fontList:[],\r\n\r\n currentSheetView:\"viewNormal\",\r\n \r\n }, \r\n defaultFormula:{\r\n searchFunctionCell: null,\r\n functionlistPosition: {},\r\n rangechangeindex: null,\r\n rangestart: false,\r\n rangetosheet: null,\r\n rangeSetValueTo: null,\r\n func_selectedrange: {}, //\u51FD\u6570\u9009\u533A\u8303\u56F4\r\n rangedrag_column_start: false,\r\n rangedrag_row_start: false,\r\n rangeResizeObj: null,\r\n rangeResize: null,\r\n rangeResizeIndex: null,\r\n rangeResizexy: null,\r\n rangeResizeWinH: null,\r\n rangeResizeWinW: null,\r\n rangeResizeTo: null,\r\n rangeMovexy: null,\r\n rangeMove: false,\r\n rangeMoveObj: null,\r\n rangeMoveIndex: null,\r\n rangeMoveRangedata: null,\r\n functionHTMLIndex: 0,\r\n functionRangeIndex: null,\r\n execvertex: {},\r\n execFunctionGroupData: null,\r\n execFunctionExist: null,\r\n formulaContainSheetList:{},\r\n cellTextToIndexList:{},\r\n isFunctionRangeSave: false,\r\n formulaContainCellList:{},\r\n execFunctionGlobalData:{},\r\n groupValuesRefreshData: [],\r\n functionResizeData: {},\r\n functionResizeStatus: false,\r\n functionResizeTimeout: null,\r\n data_parm_index: 0 //\u9009\u62E9\u516C\u5F0F\u540E\u53C2\u6570\u7D22\u5F15\u6807\u8BB0\r\n },\r\n defaultSheet:{\r\n sheetMaxIndex: 0,\r\n nulldata: null,\r\n mergeCalculationSheet:{},\r\n checkLoadSheetIndexToDataIndex:{},\r\n CacheNotLoadControll:[],\r\n },\r\n defaultPivotTable:{\r\n pivotDatas: null,\r\n pivotSheetIndex: 0,\r\n pivotDataSheetIndex: 0,\r\n celldata: null,\r\n origindata: null,\r\n pivot_data_type: {},\r\n pivot_select_save: null,\r\n column: null,\r\n row: null,\r\n values: null,\r\n filter: null,\r\n showType: null,\r\n rowhidden: null,\r\n selected: null,\r\n caljs: null,\r\n initial: true,\r\n filterparm: null,\r\n luckysheet_pivotTable_select_state: false,\r\n jgridCurrentPivotInput: null,\r\n movestate: false,\r\n moveitemposition: [],\r\n movesave: {},\r\n drawPivotTable: true,\r\n pivotTableBoundary: [12, 6],\r\n },\r\n defaultImage:{\r\n imgItem: {\r\n type: '3', //1\u79FB\u52A8\u5E76\u8C03\u6574\u5355\u5143\u683C\u5927\u5C0F 2\u79FB\u52A8\u5E76\u4E14\u4E0D\u8C03\u6574\u5355\u5143\u683C\u7684\u5927\u5C0F 3\u4E0D\u8981\u79FB\u52A8\u5355\u5143\u683C\u5E76\u8C03\u6574\u5176\u5927\u5C0F\r\n src: '', //\u56FE\u7247url\r\n originWidth: null, //\u56FE\u7247\u539F\u59CB\u5BBD\u5EA6\r\n originHeight: null, //\u56FE\u7247\u539F\u59CB\u9AD8\u5EA6\r\n default: {\r\n width: null, //\u56FE\u7247 \u5BBD\u5EA6\r\n height: null, //\u56FE\u7247 \u9AD8\u5EA6\r\n left: null, //\u56FE\u7247\u79BB\u8868\u683C\u5DE6\u8FB9\u7684 \u4F4D\u7F6E\r\n top: null, //\u56FE\u7247\u79BB\u8868\u683C\u9876\u90E8\u7684 \u4F4D\u7F6E\r\n },\r\n crop: {\r\n width: null, //\u56FE\u7247\u88C1\u526A\u540E \u5BBD\u5EA6\r\n height: null, //\u56FE\u7247\u88C1\u526A\u540E \u9AD8\u5EA6\r\n offsetLeft: 0, //\u56FE\u7247\u88C1\u526A\u540E\u79BB\u672A\u88C1\u526A\u65F6 \u5DE6\u8FB9\u7684\u4F4D\u79FB\r\n offsetTop: 0, //\u56FE\u7247\u88C1\u526A\u540E\u79BB\u672A\u88C1\u526A\u65F6 \u9876\u90E8\u7684\u4F4D\u79FB\r\n },\r\n isFixedPos: false, //\u56FA\u5B9A\u4F4D\u7F6E\r\n fixedLeft: null, //\u56FA\u5B9A\u4F4D\u7F6E \u5DE6\u4F4D\u79FB\r\n fixedTop: null, //\u56FA\u5B9A\u4F4D\u7F6E \u53F3\u4F4D\u79FB\r\n border: {\r\n width: 0, //\u8FB9\u6846\u5BBD\u5EA6\r\n radius: 0, //\u8FB9\u6846\u534A\u5F84\r\n style: 'solid', //\u8FB9\u6846\u7C7B\u578B\r\n color: '#000', //\u8FB9\u6846\u989C\u8272\r\n }\r\n },\r\n images: null,\r\n currentImgId: null,\r\n currentWinW: null,\r\n currentWinH: null,\r\n resize: null, \r\n resizeXY: null,\r\n move: false,\r\n moveXY: null,\r\n cropChange: null, \r\n cropChangeXY: null,\r\n cropChangeObj: null,\r\n copyImgItemObj: null,\r\n },\r\n defaultDataVerification:{\r\n defaultItem: {\r\n type: 'dropdown', //\u7C7B\u578B\r\n type2: null, //\r\n value1: '', //\r\n value2: '', //\r\n checked: false,\r\n remote: false, //\u81EA\u52A8\u8FDC\u7A0B\u83B7\u53D6\u9009\u9879\r\n prohibitInput: false, //\u8F93\u5165\u6570\u636E\u65E0\u6548\u65F6\u7981\u6B62\u8F93\u5165\r\n hintShow: false, //\u9009\u4E2D\u5355\u5143\u683C\u65F6\u663E\u793A\u63D0\u793A\u8BED\r\n hintText: '', //\r\n },\r\n curItem: null,\r\n dataVerification: null,\r\n selectRange: [],\r\n selectStatus: false,\r\n }\r\n}\r\n\r\nconst method = {\r\n //\u7FFB\u9875\r\n addDataAjax: function(param, index, url, func){\r\n let _this = this;\r\n\r\n if(index == null){\r\n index = Store.currentSheetIndex;\r\n }\r\n\r\n if(url == null){\r\n url = server.loadSheetUrl;\r\n }\r\n\r\n $(\"#luckysheet-grid-window-1\").append(luckysheetlodingHTML());\r\n param.currentPage++;\r\n \r\n let dataType = 'application/json;charset=UTF-8';\r\n let token = sessionStorage.getItem('x-auth-token');\r\n\r\n $.ajax({\r\n method: 'POST',\r\n url: url,\r\n headers: { \"x-auth-token\": token },\r\n data: JSON.stringify(param),\r\n contentType: dataType,\r\n success: function(d) {\r\n //d\u53EF\u80FD\u4E3Ajson\u5B57\u7B26\u4E32\r\n if(typeof d == \"string\"){\r\n d = JSON.parse(d);\r\n }\r\n\r\n let dataset = d.data;\r\n \r\n let newData = dataset.celldata;\r\n luckysheetextendData(dataset[\"row\"], newData);\r\n\r\n setTimeout(function(){\r\n Store.loadingObj.close()\r\n }, 500);\r\n\r\n if(func && typeof(func)==\"function\"){ \r\n func(dataset);\r\n }\r\n }\r\n })\r\n },\r\n //\u91CD\u8F7D\r\n reload: function(param, index, url, func){\r\n let _this = this;\r\n\r\n if(index == null){\r\n index = Store.currentSheetIndex;\r\n }\r\n\r\n if(url == null){\r\n url = server.loadSheetUrl;\r\n }\r\n\r\n $(\"#luckysheet-grid-window-1\").append(luckysheetlodingHTML());\r\n\r\n let arg = {\"gridKey\" : server.gridKey, \"index\": index};\r\n param = $.extend(true, param, arg);\r\n let file = Store.luckysheetfile[getSheetIndex(index)];\r\n\r\n $.post(url, param, function (d) {\r\n let dataset = new Function(\"return \" + d)();\r\n file.celldata = dataset[index.toString()];\r\n let data = sheetmanage.buildGridData(file);\r\n\r\n setTimeout(function(){\r\n Store.loadingObj.close()\r\n }, 500);\r\n\r\n file[\"data\"] = data;\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(data);//worker\u5B58\u6570\u636E\r\n\r\n luckysheetcreatesheet(data[0].length, data.length, data, null, false);\r\n file[\"load\"] = \"1\";\r\n\r\n Store.luckysheet_select_save.length = 0;\r\n Store.luckysheet_selection_range = [];\r\n\r\n server.saveParam(\"shs\", null, Store.currentSheetIndex);\r\n\r\n sheetmanage.changeSheet(index);\r\n\r\n if(func && typeof(func)==\"function\"){ \r\n func();\r\n }\r\n });\r\n },\r\n clearSheetByIndex: function(i){\r\n let index = getSheetIndex(i);\r\n let sheetfile = Store.luckysheetfile[index];\r\n\r\n if(!sheetfile.isPivotTable){\r\n sheetfile.data = [];\r\n sheetfile.row = Store.defaultrowNum;\r\n sheetfile.column = Store.defaultcolumnNum;\r\n\r\n sheetfile.chart = [];\r\n sheetfile.config = null;\r\n sheetfile.filter = null;\r\n sheetfile.filter_select = null;\r\n sheetfile.celldata = [];\r\n sheetfile.pivotTable = {};\r\n sheetfile.calcChain = [];\r\n sheetfile.status = 0;\r\n sheetfile.load = 0;\r\n\r\n Store.flowdata = [];\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n $(\"#\"+ Store.container +\" .luckysheet-data-visualization-chart\").remove();\r\n $(\"#\"+ Store.container +\" .luckysheet-datavisual-selection-set\").remove();\r\n\r\n $(\"#luckysheet-row-count-show, #luckysheet-formula-functionrange-select, #luckysheet-row-count-show, #luckysheet-column-count-show, #luckysheet-change-size-line, #luckysheet-cell-selected-focus, #luckysheet-selection-copy, #luckysheet-cell-selected-extend, #luckysheet-cell-selected-move, #luckysheet-cell-selected\").hide();\r\n\r\n delete sheetfile.load;\r\n }\r\n else {\r\n delete Store.luckysheetfile[index];\r\n }\r\n },\r\n clear: function(index){\r\n let _this = this;\r\n\r\n if(index == \"all\"){\r\n for(let i = 0; i < Store.luckysheetfile.length; i++){\r\n let sheetfile = Store.luckysheetfile[i];\r\n _this.clearSheetByIndex(sheetfile.index);\r\n }\r\n \r\n }\r\n else{\r\n if(index == null){\r\n index = Store.currentSheetIndex;\r\n }\r\n _this.clearSheetByIndex(index);\r\n }\r\n\r\n sheetmanage.changeSheet(Store.luckysheetfile[0].index);\r\n },\r\n destroy:function(){\r\n $(\"#\" + Store.container).empty();\r\n $(\"body > .luckysheet-cols-menu\").remove();\r\n\r\n $(\"#luckysheet-modal-dialog-mask, #luckysheetTextSizeTest, #luckysheet-icon-morebtn-div\").remove();\r\n $(\"#luckysheet-input-box\").parent().remove();\r\n $(\"#luckysheet-formula-help-c\").remove();\r\n $(\".chartSetting, .luckysheet-modal-dialog-slider\").remove();\r\n\r\n //document event release\r\n $(document).off(\".luckysheetEvent\");\r\n $(document).off(\".luckysheetProtection\");\r\n \r\n //\u53C2\u6570\u91CD\u7F6E\r\n luckysheetFreezen.initialHorizontal = true;\r\n luckysheetFreezen.initialVertical = true;\r\n\r\n let defaultStore = $.extend(true, {}, defaultConfig.defaultStore);\r\n for(let key in defaultStore){\r\n if(key in Store){\r\n Store[key] = defaultStore[key];\r\n }\r\n }\r\n\r\n let defaultFormula = $.extend(true, {}, defaultConfig.defaultFormula);\r\n for(let key in defaultFormula){\r\n if(key in luckysheetformula){\r\n luckysheetformula[key] = defaultFormula[key];\r\n }\r\n }\r\n\r\n let defaultSheet = $.extend(true, {}, defaultConfig.defaultSheet);\r\n for(let key in defaultSheet){\r\n if(key in sheetmanage){\r\n sheetmanage[key] = defaultSheet[key];\r\n }\r\n }\r\n\r\n let defaultPivotTable = $.extend(true, {}, defaultConfig.defaultPivotTable);\r\n for(let key in defaultPivotTable){\r\n if(key in pivotTable){\r\n pivotTable[key] = defaultPivotTable[key];\r\n }\r\n }\r\n\r\n let defaultImage = $.extend(true, {}, defaultConfig.defaultImage);\r\n for(let key in defaultImage){\r\n if(key in imageCtrl){\r\n imageCtrl[key] = defaultImage[key];\r\n }\r\n }\r\n\r\n let defaultDataVerification = $.extend(true, {}, defaultConfig.defaultDataVerification);\r\n for(let key in defaultDataVerification){\r\n if(key in dataVerificationCtrl){\r\n dataVerificationCtrl[key] = defaultDataVerification[key];\r\n }\r\n }\r\n\r\n // remove proxy\r\n Store.asyncLoad = ['core'];\r\n },\r\n editorChart:function(c){\r\n let chart_selection_color = luckyColor[0];\r\n let chart_id = \"luckysheetEditMode-datav-chart\";\r\n let chart_selection_id = chart_id + \"_selection\";\r\n c.chart_id = chart_id;\r\n let chartTheme = c.chartTheme;\r\n chartTheme = chartTheme == null ? \"default0000\" : chartTheme;\r\n\r\n luckysheet.insertChartTosheet(c.sheetIndex, c.dataSheetIndex, c.option, c.chartType, c.selfOption, c.defaultOption, c.row, c.column, chart_selection_color, chart_id, chart_selection_id, c.chartStyle, c.rangeConfigCheck, c.rangeRowCheck, c.rangeColCheck, c.chartMarkConfig, c.chartTitleConfig, c.winWidth, c.winHeight, c.scrollLeft, c.scrollTop, chartTheme, c.myWidth, c.myHeight, c.myLeft!=null?parseFloat(c.myLeft):null, c.myTop!=null?parseFloat(c.myTop):null, c.myindexrank, true);\r\n\r\n $(\"#\"+chart_id).find(\".luckysheet-modal-controll-update\").click();\r\n },\r\n /**\r\n * \u83B7\u53D6\u5355\u5143\u683C\u7684\u503C\r\n * @param {name} \u51FD\u6570\u540D\u79F0\r\n * @param {arguments} \u51FD\u6570\u53C2\u6570\r\n */\r\n createHookFunction:function(){\r\n let hookName = arguments[0];\r\n if(luckysheetConfigsetting.hook && luckysheetConfigsetting.hook[hookName]!=null && (typeof luckysheetConfigsetting.hook[hookName] == \"function\")){\r\n var args = Array.prototype.slice.apply(arguments);\r\n args.shift();\r\n let ret = luckysheetConfigsetting.hook[hookName].apply(this, args);\r\n if(ret===false){\r\n return false;\r\n }\r\n else{\r\n return true;\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n}\r\n\r\nexport default method;", "import { rowLocation, colLocation, mouseposition } from '../global/location';\r\nimport editor from '../global/editor';\r\nimport formula from '../global/formula';\r\nimport { luckysheetRangeLast } from '../global/cursorPos';\r\nimport { luckysheetrefreshgrid } from '../global/refresh';\r\nimport { setluckysheet_scroll_status } from '../methods/set';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport { getObjType } from '../utils/util';\r\nimport luckysheetFreezen from './freezen';\r\nimport menuButton from './menuButton';\r\nimport {checkProtectionAuthorityNormal} from './protection';\r\nimport server from './server';\r\nimport Store from '../store';\r\nimport method from '../global/method';\r\n\r\n//\u6279\u6CE8\r\nconst luckysheetPostil = {\r\n defaultWidth: 144,\r\n defaultHeight: 84,\r\n currentObj: null,\r\n currentWinW: null,\r\n currentWinH: null,\r\n resize: null,\r\n resizeXY: null,\r\n move: false,\r\n moveXY: null,\r\n init: function(){\r\n let _this = this;\r\n\r\n //\u70B9\u51FB\u6279\u6CE8\u6846 \u805A\u7126\r\n $(\"#luckysheet-postil-showBoxs\").off(\"mousedown.showPs\").on(\"mousedown.showPs\", \".luckysheet-postil-show\", function(event){\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n \r\n _this.currentObj = $(this).find(\".luckysheet-postil-show-main\");\r\n\r\n if($(this).hasClass(\"luckysheet-postil-show-active\")){\r\n event.stopPropagation();\r\n return;\r\n }\r\n\r\n _this.removeActivePs();\r\n\r\n $(this).addClass(\"luckysheet-postil-show-active\");\r\n $(this).find(\".luckysheet-postil-dialog-resize\").show();\r\n $(this).find(\".arrowCanvas\").css(\"z-index\", 200);\r\n $(this).find(\".luckysheet-postil-show-main\").css(\"z-index\", 200);\r\n\r\n event.stopPropagation();\r\n });\r\n $(\"#luckysheet-postil-showBoxs\").off(\"mouseup.showPs\").on(\"mouseup.showPs\", \".luckysheet-postil-show\", function(event){\r\n if(event.which == \"3\"){\r\n event.stopPropagation();\r\n }\r\n });\r\n\r\n //\u6279\u6CE8\u6846 \u6539\u53D8\u5927\u5C0F\r\n $(\"#luckysheet-postil-showBoxs\").off(\"mousedown.resize\").on(\"mousedown.resize\", \".luckysheet-postil-show .luckysheet-postil-dialog-resize .luckysheet-postil-dialog-resize-item\", function(event){\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n \r\n _this.currentObj = $(this).closest(\".luckysheet-postil-show-main\");\r\n _this.currentWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n _this.currentWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n\r\n _this.resize = $(this).data(\"type\");\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop(), \r\n scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let mouse = mouseposition(event.pageX, event.pageY);\r\n let x = mouse[0] + scrollLeft;\r\n let y = mouse[1] + scrollTop;\r\n\r\n let position = _this.currentObj.position();\r\n let width = _this.currentObj.width();\r\n let height = _this.currentObj.height();\r\n\r\n _this.resizeXY = [\r\n x, \r\n y, \r\n width, \r\n height, \r\n position.left + scrollLeft, \r\n position.top + scrollTop, \r\n scrollLeft, \r\n scrollTop\r\n ];\r\n\r\n setluckysheet_scroll_status(true);\r\n\r\n if($(this).closest(\".luckysheet-postil-show\").hasClass(\"luckysheet-postil-show-active\")){\r\n event.stopPropagation();\r\n return;\r\n }\r\n\r\n _this.removeActivePs();\r\n\r\n $(this).closest(\".luckysheet-postil-show\").addClass(\"luckysheet-postil-show-active\");\r\n $(this).closest(\".luckysheet-postil-show\").find(\".luckysheet-postil-dialog-resize\").show();\r\n $(this).closest(\".luckysheet-postil-show\").find(\".arrowCanvas\").css(\"z-index\", 200);\r\n $(this).closest(\".luckysheet-postil-show\").find(\".luckysheet-postil-show-main\").css(\"z-index\", 200);\r\n\r\n event.stopPropagation();\r\n });\r\n\r\n //\u6279\u6CE8\u6846 \u79FB\u52A8\r\n $(\"#luckysheet-postil-showBoxs\").off(\"mousedown.move\").on(\"mousedown.move\", \".luckysheet-postil-show .luckysheet-postil-dialog-move .luckysheet-postil-dialog-move-item\", function(event){\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\",false)){\r\n return;\r\n }\r\n \r\n _this.currentObj = $(this).closest(\".luckysheet-postil-show-main\");\r\n _this.currentWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n _this.currentWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n\r\n _this.move = true;\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop(), \r\n scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n let offset = _this.currentObj.offset();\r\n let position = _this.currentObj.position();\r\n\r\n _this.moveXY = [\r\n event.pageX - offset.left, \r\n event.pageY - offset.top, \r\n position.left, \r\n position.top, \r\n scrollLeft, \r\n scrollTop\r\n ];\r\n\r\n setluckysheet_scroll_status(true);\r\n\r\n if($(this).closest(\".luckysheet-postil-show\").hasClass(\"luckysheet-postil-show-active\")){\r\n event.stopPropagation();\r\n return;\r\n }\r\n\r\n _this.removeActivePs();\r\n\r\n $(this).closest(\".luckysheet-postil-show\").addClass(\"luckysheet-postil-show-active\");\r\n $(this).closest(\".luckysheet-postil-show\").find(\".luckysheet-postil-dialog-resize\").show();\r\n $(this).closest(\".luckysheet-postil-show\").find(\".arrowCanvas\").css(\"z-index\", 200);\r\n $(this).closest(\".luckysheet-postil-show\").find(\".luckysheet-postil-show-main\").css(\"z-index\", 200);\r\n\r\n event.stopPropagation();\r\n });\r\n },\r\n overshow: function(event){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-postil-overshow\").remove();\r\n\r\n if($(event.target).closest(\"#luckysheet-cell-main\").length == 0){\r\n return;\r\n }\r\n\r\n let mouse = mouseposition(event.pageX, event.pageY);\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let x = mouse[0];\r\n let y = mouse[1];\r\n let offsetX = 0;\r\n let offsetY = 0;\r\n\r\n if(luckysheetFreezen.freezenverticaldata != null && mouse[0] < (luckysheetFreezen.freezenverticaldata[0] - luckysheetFreezen.freezenverticaldata[2])){\r\n offsetX = scrollLeft;\r\n } else {\r\n x += scrollLeft;\r\n }\r\n\r\n if(luckysheetFreezen.freezenhorizontaldata != null && mouse[1] < (luckysheetFreezen.freezenhorizontaldata[0] - luckysheetFreezen.freezenhorizontaldata[2])){\r\n offsetY = scrollTop;\r\n } else {\r\n y += scrollTop;\r\n }\r\n\r\n let row_index = rowLocation(y)[2];\r\n let col_index = colLocation(x)[2];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, row_index, col_index);\r\n if(!!margeset){\r\n row_index = margeset.row[2];\r\n col_index = margeset.column[2];\r\n }\r\n\r\n if(Store.flowdata[row_index] == null || Store.flowdata[row_index][col_index] == null || Store.flowdata[row_index][col_index].ps == null){\r\n return;\r\n }\r\n\r\n let postil = Store.flowdata[row_index][col_index].ps;\r\n\r\n if(postil[\"isshow\"] || $(\"#luckysheet-postil-show_\"+ row_index +\"_\"+ col_index).length > 0){\r\n return;\r\n }\r\n\r\n let value = postil[\"value\"] == null ? \"\" : postil[\"value\"];\r\n\r\n let row = Store.visibledatarow[row_index], \r\n row_pre = row_index - 1 == -1 ? 0 : Store.visibledatarow[row_index - 1];\r\n let col = Store.visibledatacolumn[col_index], \r\n col_pre = col_index - 1 == -1 ? 0 : Store.visibledatacolumn[col_index - 1];\r\n\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col + offsetX;\r\n let toY = row_pre + offsetY;\r\n\r\n let fromX = toX + 18 * Store.zoomRatio;\r\n let fromY = toY - 18 * Store.zoomRatio;\r\n\r\n if(fromY < 0){\r\n fromY = 2;\r\n }\r\n\r\n let width = postil[\"width\"] == null ? _this.defaultWidth * Store.zoomRatio : postil[\"width\"] * Store.zoomRatio;\r\n let height = postil[\"height\"] == null ? _this.defaultHeight * Store.zoomRatio : postil[\"height\"] * Store.zoomRatio;\r\n\r\n let size = _this.getArrowCanvasSize(fromX, fromY, toX, toY);\r\n\r\n let commentDivs = '';\r\n let valueLines = value.split('\\n');\r\n for (let line of valueLines) {\r\n commentDivs += '
' + _this.htmlEscape(line) + '
';\r\n }\r\n\r\n let html = '
' +\r\n '' +\r\n '
'+ commentDivs +'
' +\r\n '
';\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main\"));\r\n\r\n let ctx = $(\"#luckysheet-postil-overshow .arrowCanvas\").get(0).getContext(\"2d\");\r\n\r\n _this.drawArrow(ctx, size[4], size[5], size[6], size[7]);\r\n },\r\n getArrowCanvasSize: function(fromX, fromY, toX, toY){\r\n let left = toX - 5;\r\n \r\n if(fromX < toX){\r\n left = fromX - 5;\r\n }\r\n\r\n let top = toY - 5;\r\n \r\n if(fromY < toY){\r\n top = fromY - 5;\r\n }\r\n\r\n let width = Math.abs(fromX - toX) + 10;\r\n let height = Math.abs(fromY - toY) + 10;\r\n\r\n let x1 = width - 5;\r\n let x2 = 5;\r\n \r\n if(fromX < toX){\r\n x1 = 5;\r\n x2 = width - 5;\r\n }\r\n\r\n let y1 = height - 5;\r\n let y2 = 5;\r\n\r\n if(fromY < toY){\r\n y1 = 5;\r\n y2 = height - 5;\r\n }\r\n\r\n return [left, top, width, height, x1, y1, x2, y2];\r\n },\r\n drawArrow: function(ctx, fromX, fromY, toX, toY, theta, headlen, width, color){\r\n theta = getObjType(theta) == \"undefined\" ? 30 : theta;\r\n headlen = getObjType(headlen) == \"undefined\" ? 6 : headlen;\r\n width = getObjType(width) == \"undefined\" ? 1 : width;\r\n color = getObjType(color) == \"undefined\" ? \"#000\" : color;\r\n\r\n // \u8BA1\u7B97\u5404\u89D2\u5EA6\u548C\u5BF9\u5E94\u7684P2,P3\u5750\u6807\r\n let angle = Math.atan2(fromY - toY, fromX - toX) * 180 / Math.PI, \r\n angle1 = (angle + theta) * Math.PI / 180, \r\n angle2 = (angle - theta) * Math.PI / 180, \r\n topX = headlen * Math.cos(angle1), \r\n topY = headlen * Math.sin(angle1), \r\n botX = headlen * Math.cos(angle2), \r\n botY = headlen * Math.sin(angle2);\r\n\r\n ctx.save();\r\n ctx.beginPath();\r\n\r\n let arrowX = fromX - topX,\r\n arrowY = fromY - topY;\r\n\r\n ctx.moveTo(arrowX, arrowY); \r\n ctx.moveTo(fromX, fromY); \r\n ctx.lineTo(toX, toY); \r\n \r\n ctx.lineWidth = width;\r\n ctx.strokeStyle = color; \r\n ctx.stroke();\r\n\r\n arrowX = toX + topX; \r\n arrowY = toY + topY; \r\n ctx.moveTo(arrowX, arrowY); \r\n ctx.lineTo(toX, toY); \r\n arrowX = toX + botX; \r\n arrowY = toY + botY; \r\n ctx.lineTo(arrowX, arrowY); \r\n \r\n ctx.fillStyle = color;\r\n ctx.fill(); \r\n ctx.restore();\r\n },\r\n buildAllPs: function(data){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\").empty();\r\n\r\n for(let r = 0; r < data.length; r++){\r\n for(let c = 0; c < data[0].length; c++){\r\n if(data[r][c] != null && data[r][c].ps != null){\r\n let postil = data[r][c].ps;\r\n _this.buildPs(r, c, postil);\r\n }\r\n }\r\n }\r\n\r\n _this.init();\r\n },\r\n buildPs: function(r, c, postil){\r\n if($(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).length > 0){\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).remove();\r\n }\r\n\r\n if(postil == null){\r\n return;\r\n }\r\n\r\n let _this = this;\r\n let isshow = postil[\"isshow\"] == null ? false : postil[\"isshow\"];\r\n\r\n if(isshow){\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n let left = postil[\"left\"] == null ? toX + 18 * Store.zoomRatio : postil[\"left\"] * Store.zoomRatio;\r\n let top = postil[\"top\"] == null ? toY - 18 * Store.zoomRatio : postil[\"top\"] * Store.zoomRatio;\r\n let width = postil[\"width\"] == null ? _this.defaultWidth * Store.zoomRatio : postil[\"width\"] * Store.zoomRatio;\r\n let height = postil[\"height\"] == null ? _this.defaultHeight * Store.zoomRatio : postil[\"height\"] * Store.zoomRatio;\r\n let value = postil[\"value\"] == null ? \"\" : postil[\"value\"];\r\n\r\n if(top < 0){\r\n top = 2;\r\n }\r\n\r\n let size = _this.getArrowCanvasSize(left, top, toX, toY);\r\n\r\n let commentDivs = '';\r\n let valueLines = value.split('\\n');\r\n for (let line of valueLines) {\r\n commentDivs += '
' + _this.htmlEscape(line) + '
';\r\n }\r\n\r\n let html = '
' +\r\n '' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' + \r\n '
' +\r\n commentDivs +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\"));\r\n\r\n let ctx = $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .arrowCanvas\").get(0).getContext(\"2d\");\r\n\r\n _this.drawArrow(ctx, size[4], size[5], size[6], size[7]);\r\n }\r\n },\r\n newPs: function(r, c){\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\")){\r\n return;\r\n }\r\n\r\n // Hook function\r\n if(!method.createHookFunction('commentInsertBefore',r,c, )){\r\n return;\r\n }\r\n\r\n let _this = this;\r\n\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n let fromX = toX + 18 * Store.zoomRatio;\r\n let fromY = toY - 18 * Store.zoomRatio;\r\n\r\n if(fromY < 0){\r\n fromY = 2;\r\n }\r\n\r\n let width = _this.defaultWidth * Store.zoomRatio;\r\n let height = _this.defaultHeight * Store.zoomRatio;\r\n\r\n let size = _this.getArrowCanvasSize(fromX, fromY, toX, toY);\r\n\r\n let html = '
' +\r\n '' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' + \r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\"));\r\n\r\n let ctx = $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .arrowCanvas\").get(0).getContext(\"2d\");\r\n\r\n _this.drawArrow(ctx, size[4], size[5], size[6], size[7]);\r\n\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .formulaInputFocus\").focus();\r\n\r\n _this.init();\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n let rc = [];\r\n\r\n if(d[r][c] == null){\r\n d[r][c] = {};\r\n }\r\n\r\n d[r][c].ps = { \"left\": null, \"top\": null, \"width\": null, \"height\": null, \"value\": \"\", \"isshow\": false };\r\n rc.push(r + \"_\" + c);\r\n\r\n _this.ref(d, rc);\r\n\r\n // Hook function\r\n setTimeout(() => {\r\n method.createHookFunction('commentInsertAfter',r,c, d[r][c])\r\n }, 0);\r\n },\r\n editPs: function(r, c){\r\n let _this = this;\r\n\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\")){\r\n return;\r\n }\r\n\r\n if($(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).length > 0){\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).show();\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).addClass(\"luckysheet-postil-show-active\");\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).find(\".luckysheet-postil-dialog-resize\").show();\r\n }\r\n else{\r\n let postil = Store.flowdata[r][c].ps;\r\n\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n let left = postil[\"left\"] == null ? toX + 18 * Store.zoomRatio : postil[\"left\"] * Store.zoomRatio;\r\n let top = postil[\"top\"] == null ? toY - 18 * Store.zoomRatio : postil[\"top\"] * Store.zoomRatio;\r\n let width = postil[\"width\"] == null ? _this.defaultWidth * Store.zoomRatio : postil[\"width\"] * Store.zoomRatio;\r\n let height = postil[\"height\"] == null ? _this.defaultHeight * Store.zoomRatio : postil[\"height\"] * Store.zoomRatio;\r\n let value = postil[\"value\"] == null ? \"\" : postil[\"value\"];\r\n\r\n if(top < 0){\r\n top = 2;\r\n }\r\n\r\n let size = _this.getArrowCanvasSize(left, top, toX, toY);\r\n\r\n let commentDivs = '';\r\n let valueLines = value.split('\\n');\r\n for (let line of valueLines) {\r\n commentDivs += '
' + _this.htmlEscape(line) + '
';\r\n }\r\n\r\n let html = '
' +\r\n '' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' + \r\n '
' +\r\n commentDivs +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\"));\r\n\r\n let ctx = $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .arrowCanvas\").get(0).getContext(\"2d\");\r\n\r\n _this.drawArrow(ctx, size[4], size[5], size[6], size[7]);\r\n }\r\n\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .formulaInputFocus\").focus();\r\n luckysheetRangeLast($(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .formulaInputFocus\").get(0));\r\n\r\n _this.init();\r\n },\r\n delPs: function(r, c){\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"editObjects\")){\r\n return;\r\n }\r\n\r\n // Hook function\r\n if(!method.createHookFunction('commentDeleteBefore',r,c,Store.flowdata[r][c])){\r\n return;\r\n }\r\n\r\n if($(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).length > 0){\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).remove();\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n let rc = [];\r\n\r\n delete d[r][c].ps;\r\n rc.push(r + \"_\" + c);\r\n\r\n this.ref(d, rc);\r\n\r\n // Hook function\r\n setTimeout(() => {\r\n method.createHookFunction('commentDeleteAfter',r,c, Store.flowdata[r][c])\r\n }, 0);\r\n },\r\n showHidePs: function(r, c){\r\n let _this = this;\r\n\r\n let postil = Store.flowdata[r][c].ps;\r\n let isshow = postil[\"isshow\"];\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n let rc = [];\r\n\r\n if(isshow){\r\n d[r][c].ps.isshow = false;\r\n\r\n $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c).remove();\r\n }\r\n else{\r\n d[r][c].ps.isshow = true;\r\n\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n if(luckysheetFreezen.freezenverticaldata != null && toX < (luckysheetFreezen.freezenverticaldata[0] - luckysheetFreezen.freezenverticaldata[2])){\r\n toX += scrollLeft;\r\n }\r\n if(luckysheetFreezen.freezenhorizontaldata != null && toY < (luckysheetFreezen.freezenhorizontaldata[0] - luckysheetFreezen.freezenhorizontaldata[2])){\r\n toY += scrollTop;\r\n }\r\n\r\n let left = postil[\"left\"] == null ? toX + 18 * Store.zoomRatio : postil[\"left\"] * Store.zoomRatio;\r\n let top = postil[\"top\"] == null ? toY - 18 * Store.zoomRatio : postil[\"top\"] * Store.zoomRatio;\r\n let width = postil[\"width\"] == null ? _this.defaultWidth * Store.zoomRatio : postil[\"width\"] * Store.zoomRatio;\r\n let height = postil[\"height\"] == null ? _this.defaultHeight * Store.zoomRatio : postil[\"height\"] * Store.zoomRatio;\r\n let value = postil[\"value\"] == null ? \"\" : postil[\"value\"];\r\n\r\n if(top < 0){\r\n top = 2;\r\n }\r\n\r\n let size = _this.getArrowCanvasSize(left, top, toX, toY);\r\n let commentDivs = '';\r\n let valueLines = value.split('\\n');\r\n for (let line of valueLines) {\r\n commentDivs += '
' + _this.htmlEscape(line) + '
';\r\n }\r\n let html = '
' +\r\n '' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' + \r\n '
' +\r\n commentDivs +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\"));\r\n\r\n let ctx = $(\"#luckysheet-postil-show_\"+ r +\"_\"+ c +\" .arrowCanvas\").get(0).getContext(\"2d\");\r\n\r\n _this.drawArrow(ctx, size[4], size[5], size[6], size[7]);\r\n\r\n _this.init();\r\n }\r\n\r\n rc.push(r + \"_\" + c);\r\n\r\n _this.ref(d, rc);\r\n },\r\n showHideAllPs: function(){\r\n let _this = this;\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n\r\n let isAllShow = true;\r\n let allPs = [];\r\n\r\n for(let r = 0; r < d.length; r++){\r\n for(let c = 0; c < d[0].length; c++){\r\n if(d[r] != null && d[r][c] != null && d[r][c].ps != null){\r\n allPs.push(r + \"_\" + c);\r\n\r\n if(!d[r][c].ps.isshow){\r\n isAllShow = false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n let rc = [];\r\n if(allPs.length > 0){\r\n if(isAllShow){ //\u5168\u90E8\u663E\u793A\uFF0C\u64CD\u4F5C\u4E3A\u9690\u85CF\u6240\u6709\u6279\u6CE8\r\n $(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\").empty();\r\n\r\n for(let i = 0; i < allPs.length; i++){\r\n let rowIndex = allPs[i].split(\"_\")[0];\r\n let colIndex = allPs[i].split(\"_\")[1];\r\n\r\n let postil = d[rowIndex][colIndex].ps;\r\n\r\n if(postil[\"isshow\"]){\r\n d[rowIndex][colIndex].ps.isshow = false;\r\n rc.push(allPs[i]);\r\n }\r\n }\r\n }\r\n else{ //\u90E8\u5206\u663E\u793A\u6216\u5168\u90E8\u9690\u85CF\uFF0C\u64CD\u4F5C\u4F4D\u663E\u793A\u6240\u6709\u6279\u6CE8\r\n for(let i = 0; i < allPs.length; i++){\r\n let rowIndex = allPs[i].split(\"_\")[0];\r\n let colIndex = allPs[i].split(\"_\")[1];\r\n\r\n let postil = d[rowIndex][colIndex].ps;\r\n\r\n if(!postil[\"isshow\"]){\r\n let row = Store.visibledatarow[rowIndex], \r\n row_pre = rowIndex - 1 == -1 ? 0 : Store.visibledatarow[rowIndex - 1];\r\n let col = Store.visibledatacolumn[colIndex], \r\n col_pre = colIndex - 1 == -1 ? 0 : Store.visibledatacolumn[colIndex - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, rowIndex, colIndex);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n \r\n let toX = col;\r\n let toY = row_pre;\r\n \r\n if(luckysheetFreezen.freezenverticaldata != null && toX < (luckysheetFreezen.freezenverticaldata[0] - luckysheetFreezen.freezenverticaldata[2])){\r\n toX += scrollLeft;\r\n }\r\n if(luckysheetFreezen.freezenhorizontaldata != null && toY < (luckysheetFreezen.freezenhorizontaldata[0] - luckysheetFreezen.freezenhorizontaldata[2])){\r\n toY += scrollTop;\r\n }\r\n\r\n let left = postil[\"left\"] == null ? toX + 18 * Store.zoomRatio : postil[\"left\"] * Store.zoomRatio;\r\n let top = postil[\"top\"] == null ? toY - 18 * Store.zoomRatio : postil[\"top\"] * Store.zoomRatio;\r\n let width = postil[\"width\"] == null ? _this.defaultWidth * Store.zoomRatio : postil[\"width\"] * Store.zoomRatio;\r\n let height = postil[\"height\"] == null ? _this.defaultHeight * Store.zoomRatio : postil[\"height\"] * Store.zoomRatio;\r\n let value = postil[\"value\"] == null ? \"\" : postil[\"value\"];\r\n\r\n if(top < 0){\r\n top = 2;\r\n }\r\n\r\n let size = _this.getArrowCanvasSize(left, top, toX, toY);\r\n\r\n let commentDivs = '';\r\n let valueLines = value.split('\\n');\r\n for (let line of valueLines) {\r\n commentDivs += '
' + _this.htmlEscape(line) + '
';\r\n }\r\n\r\n let html = '
' +\r\n '' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' + \r\n '
' +\r\n commentDivs +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main #luckysheet-postil-showBoxs\"));\r\n\r\n let ctx = $(\"#luckysheet-postil-show_\"+ rowIndex +\"_\"+ colIndex +\" .arrowCanvas\").get(0).getContext(\"2d\");\r\n\r\n _this.drawArrow(ctx, size[4], size[5], size[6], size[7]);\r\n\r\n d[rowIndex][colIndex].ps.isshow = true;\r\n rc.push(allPs[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n _this.ref(d, rc);\r\n _this.init();\r\n },\r\n removeActivePs: function(){\r\n if($(\"#luckysheet-postil-showBoxs .luckysheet-postil-show-active\").length > 0){\r\n \r\n\r\n let id = $(\"#luckysheet-postil-showBoxs .luckysheet-postil-show-active\").attr(\"id\");\r\n let r = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[0];\r\n let c = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[1];\r\n\r\n // interpret
as new line\r\n let value = $(\"#\" + id).find(\".formulaInputFocus\").html().replaceAll('
', '\\n').replaceAll(/<(.*)>.*?|<(.*) \\/>/g, '').trim();\r\n // Hook function\r\n if(!method.createHookFunction('commentUpdateBefore',r,c,value)){\r\n if (!Store.flowdata[r][c].ps.isshow) {\r\n $(\"#\" + id).remove();\r\n }\r\n return;\r\n }\r\n\r\n const previousCell = $.extend(true,{},Store.flowdata[r][c]);\r\n\r\n $(\"#\" + id).removeClass(\"luckysheet-postil-show-active\");\r\n $(\"#\" + id).find(\".luckysheet-postil-dialog-resize\").hide();\r\n $(\"#\" + id).find(\".arrowCanvas\").css(\"z-index\", 100);\r\n $(\"#\" + id).find(\".luckysheet-postil-show-main\").css(\"z-index\", 100);\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n let rc = [];\r\n\r\n d[r][c].ps.value = value;\r\n rc.push(r + \"_\" + c);\r\n\r\n this.ref(d, rc);\r\n\r\n if(!d[r][c].ps.isshow){\r\n $(\"#\" + id).remove();\r\n }\r\n // Hook function\r\n setTimeout(() => {\r\n method.createHookFunction('commentUpdateAfter',r,c, previousCell, d[r][c])\r\n }, 0);\r\n }\r\n },\r\n ref: function(data, rc){\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n \r\n Store.jfredo.push({ \r\n \"type\": \"postil\", \r\n \"data\": Store.flowdata, \r\n \"curdata\": data, \r\n \"sheetIndex\": Store.currentSheetIndex,\r\n \"rc\": rc \r\n });\r\n }\r\n\r\n //flowdata\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].data = Store.flowdata;\r\n // formula.execFunctionGroupData = Store.flowdata;\r\n\r\n //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n if(server.allowUpdate){\r\n for(let i = 0; i < rc.length; i++){\r\n let r = rc[i].split(\"_\")[0];\r\n let c = rc[i].split(\"_\")[1];\r\n\r\n server.saveParam(\"v\", Store.currentSheetIndex, Store.flowdata[r][c], { \"r\": r, \"c\": c });\r\n }\r\n }\r\n \r\n //\u5237\u65B0\u8868\u683C\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n },\r\n positionSync: function(){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-postil-showBoxs .luckysheet-postil-show\").each(function(i, e){\r\n let id = $(e).attr(\"id\");\r\n\r\n let r = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[0];\r\n let c = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[1];\r\n\r\n let cell = Store.flowdata[r][c];\r\n \r\n if(cell != null && cell.ps != null){\r\n _this.buildPs(r, c, cell.ps);\r\n }\r\n else{\r\n $(\"#\" + id).hide();\r\n }\r\n });\r\n },\r\n htmlEscape: function(text){\r\n return text.replace(/[<>\"&]/g, function(match, pos, originalText){\r\n console.log(match, pos, originalText)\r\n switch(match){\r\n case '<': {\r\n return '<';\r\n }\r\n case '>': {\r\n return '>';\r\n }\r\n case '&': {\r\n return '&';\r\n }\r\n case '\\\"': {\r\n return '"';\r\n }\r\n }\r\n })\r\n }\r\n}\r\n\r\nexport default luckysheetPostil;", "import { getSheetIndex } from '../methods/get';\r\nimport { getObjType } from '../utils/util';\r\nimport Store from '../store';\r\n\r\n//\u83B7\u53D6\u8868\u683C\u8FB9\u6846\u6570\u636E\u8BA1\u7B97\u503C\r\nfunction getBorderInfoComputeRange(dataset_row_st,dataset_row_ed,dataset_col_st,dataset_col_ed,sheetIndex) {\r\n let borderInfoCompute = {};\r\n\r\n let cfg, data; \r\n if(sheetIndex == null){\r\n cfg = Store.config;\r\n data = Store.flowdata;\r\n }\r\n else{\r\n cfg = Store.luckysheetfile[getSheetIndex(sheetIndex)].config;\r\n data = Store.luckysheetfile[getSheetIndex(sheetIndex)].data;\r\n }\r\n\r\n let borderInfo = cfg[\"borderInfo\"];\r\n\r\n if(borderInfo != null && borderInfo.length > 0){\r\n for(let i = 0; i < borderInfo.length; i++){\r\n let rangeType = borderInfo[i].rangeType;\r\n\r\n if(rangeType == \"range\"){\r\n let borderType = borderInfo[i].borderType;\r\n let borderColor = borderInfo[i].color;\r\n let borderStyle = borderInfo[i].style;\r\n\r\n let borderRange = borderInfo[i].range;\r\n\r\n for(let j = 0; j < borderRange.length; j++){\r\n let bd_r1 = borderRange[j].row[0], bd_r2 = borderRange[j].row[1];\r\n let bd_c1 = borderRange[j].column[0], bd_c2 = borderRange[j].column[1];\r\n\r\n if(bd_r1dataset_row_ed){\r\n bd_r2 = dataset_row_ed;\r\n }\r\n\r\n if(bd_c1dataset_col_ed){\r\n bd_c2 = dataset_col_ed;\r\n }\r\n\r\n if(borderType == \"border-left\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n \r\n if(borderInfoCompute[bd_r + \"_\" + bd_c1] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c1] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c1].l = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_c_left = bd_c1 - 1;\r\n\r\n if(bd_c_left >= 0 && borderInfoCompute[bd_r + \"_\" + bd_c_left]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_left]) == \"object\" && data[bd_r][bd_c_left].mc != null){\r\n let cell_left = data[bd_r][bd_c_left];\r\n\r\n let mc = cfg[\"merge\"][cell_left.mc.r + \"_\" + cell_left.mc.c];\r\n\r\n if(mc.c + mc.cs - 1 == bd_c_left){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n\r\n let mc = cfg[\"merge\"] || {}; \r\n for (const key in mc) {\r\n let {c,r,cs,rs} = mc[key];\r\n if(bd_c1 <= c + cs - 1 && bd_c1 > c && bd_r >= r && bd_r <= r + rs -1){\r\n borderInfoCompute[bd_r + \"_\" + bd_c1].l = null;\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-right\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n \r\n if(borderInfoCompute[bd_r + \"_\" + bd_c2] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c2] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c2].r = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_c_right = bd_c2 + 1;\r\n\r\n if(bd_c_right < data[0].length && borderInfoCompute[bd_r + \"_\" + bd_c_right]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_right]) == \"object\" && data[bd_r][bd_c_right].mc != null){\r\n let cell_right = data[bd_r][bd_c_right];\r\n\r\n let mc = cfg[\"merge\"][cell_right.mc.r + \"_\" + cell_right.mc.c];\r\n\r\n if(mc.c == bd_c_right){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n let mc = cfg[\"merge\"] || {}; \r\n for (const key in mc) {\r\n let {c,r,cs,rs} = mc[key];\r\n if(bd_c2 < c + cs - 1 && bd_c2 >= c && bd_r >= r && bd_r <= r + rs -1){\r\n borderInfoCompute[bd_r + \"_\" + bd_c2].r = null;\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-top\"){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r1] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(borderInfoCompute[bd_r1 + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r1 + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r1 + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_r_top = bd_r1 - 1;\r\n\r\n if(bd_r_top >= 0 && borderInfoCompute[bd_r_top + \"_\" + bd_c]){\r\n if(data[bd_r_top] != null && getObjType(data[bd_r_top][bd_c]) == \"object\" && data[bd_r_top][bd_c].mc != null){\r\n let cell_top = data[bd_r_top][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell_top.mc.r + \"_\" + cell_top.mc.c];\r\n\r\n if(mc.r + mc.rs - 1 == bd_r_top){\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n\r\n let mc = cfg[\"merge\"] || {}; \r\n for (const key in mc) {\r\n let {c,r,cs,rs} = mc[key];\r\n if(bd_r1 <= r + rs - 1 && bd_r1 > r && bd_c >= c && bd_c <= c + cs -1){\r\n borderInfoCompute[bd_r1 + \"_\" + bd_c].t = null;\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-bottom\"){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r2] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(borderInfoCompute[bd_r2 + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r2 + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r2 + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_r_bottom = bd_r2 + 1;\r\n\r\n if(bd_r_bottom < data.length && borderInfoCompute[bd_r_bottom + \"_\" + bd_c]){\r\n if(data[bd_r_bottom] != null && getObjType(data[bd_r_bottom][bd_c]) == \"object\" && data[bd_r_bottom][bd_c].mc != null){\r\n let cell_bottom = data[bd_r_bottom][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell_bottom.mc.r + \"_\" + cell_bottom.mc.c];\r\n\r\n if(mc.r == bd_r_bottom){\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n\r\n let mc = cfg[\"merge\"] || {}; \r\n for (const key in mc) {\r\n let {c,r,cs,rs} = mc[key];\r\n if(bd_r2 < r + rs - 1 && bd_r2 >= r && bd_c >= c && bd_c <= c + cs -1){\r\n borderInfoCompute[bd_r2 + \"_\" + bd_c].b = null;\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-all\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.r == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n \r\n if(mc.r + mc.rs - 1 == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n\r\n if(mc.c == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n \r\n if(mc.c + mc.cs - 1 == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n\r\n if(bd_r == bd_r1){\r\n let bd_r_top = bd_r1 - 1;\r\n\r\n if(bd_r_top >= 0 && borderInfoCompute[bd_r_top + \"_\" + bd_c]){\r\n if(data[bd_r_top] != null && getObjType(data[bd_r_top][bd_c]) == \"object\" && data[bd_r_top][bd_c].mc != null){\r\n let cell_top = data[bd_r_top][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell_top.mc.r + \"_\" + cell_top.mc.c];\r\n\r\n if(mc.r + mc.rs - 1 == bd_r_top){\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n }\r\n \r\n if(bd_r == bd_r2){\r\n let bd_r_bottom = bd_r2 + 1;\r\n\r\n if(bd_r_bottom < data.length && borderInfoCompute[bd_r_bottom + \"_\" + bd_c]){\r\n if(data[bd_r_bottom] != null && getObjType(data[bd_r_bottom][bd_c]) == \"object\" && data[bd_r_bottom][bd_c].mc != null){\r\n let cell_bottom = data[bd_r_bottom][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell_bottom.mc.r + \"_\" + cell_bottom.mc.c];\r\n\r\n if(mc.r == bd_r_bottom){\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n }\r\n \r\n if(bd_c == bd_c1){\r\n let bd_c_left = bd_c1 - 1;\r\n\r\n if(bd_c_left >= 0 && borderInfoCompute[bd_r + \"_\" + bd_c_left]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_left]) == \"object\" && data[bd_r][bd_c_left].mc != null){\r\n let cell_left = data[bd_r][bd_c_left];\r\n\r\n let mc = cfg[\"merge\"][cell_left.mc.r + \"_\" + cell_left.mc.c];\r\n\r\n if(mc.c + mc.cs - 1 == bd_c_left){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n }\r\n \r\n if(bd_c == bd_c2){\r\n let bd_c_right = bd_c2 + 1;\r\n\r\n if(bd_c_right < data[0].length && borderInfoCompute[bd_r + \"_\" + bd_c_right]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_right]) == \"object\" && data[bd_r][bd_c_right].mc != null){\r\n let cell_right = data[bd_r][bd_c_right];\r\n\r\n let mc = cfg[\"merge\"][cell_right.mc.r + \"_\" + cell_right.mc.c];\r\n\r\n if(mc.c == bd_c_right){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-outside\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(!(bd_r == bd_r1 || bd_r == bd_r2 || bd_c == bd_c1 || bd_c == bd_c2)){\r\n continue;\r\n }\r\n\r\n if(bd_r == bd_r1){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_r_top = bd_r1 - 1;\r\n\r\n if(bd_r_top >= 0 && borderInfoCompute[bd_r_top + \"_\" + bd_c]){\r\n if(data[bd_r_top] != null && getObjType(data[bd_r_top][bd_c]) == \"object\" && data[bd_r_top][bd_c].mc != null){\r\n let cell_top = data[bd_r_top][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell_top.mc.r + \"_\" + cell_top.mc.c];\r\n\r\n if(mc.r + mc.rs - 1 == bd_r_top){\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n }\r\n\r\n if(bd_r == bd_r2){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_r_bottom = bd_r2 + 1;\r\n\r\n if(bd_r_bottom < data.length && borderInfoCompute[bd_r_bottom + \"_\" + bd_c]){\r\n if(data[bd_r_bottom] != null && getObjType(data[bd_r_bottom][bd_c]) == \"object\" && data[bd_r_bottom][bd_c].mc != null){\r\n let cell_bottom = data[bd_r_bottom][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell_bottom.mc.r + \"_\" + cell_bottom.mc.c];\r\n\r\n if(mc.r == bd_r_bottom){\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n }\r\n\r\n if(bd_c == bd_c1){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_c_left = bd_c1 - 1;\r\n\r\n if(bd_c_left >= 0 && borderInfoCompute[bd_r + \"_\" + bd_c_left]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_left]) == \"object\" && data[bd_r][bd_c_left].mc != null){\r\n let cell_left = data[bd_r][bd_c_left];\r\n\r\n let mc = cfg[\"merge\"][cell_left.mc.r + \"_\" + cell_left.mc.c];\r\n\r\n if(mc.c + mc.cs - 1 == bd_c_left){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n }\r\n\r\n if(bd_c == bd_c2){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n\r\n let bd_c_right = bd_c2 + 1;\r\n\r\n if(bd_c_right < data[0].length && borderInfoCompute[bd_r + \"_\" + bd_c_right]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_right]) == \"object\" && data[bd_r][bd_c_right].mc != null){\r\n let cell_right = data[bd_r][bd_c_right];\r\n\r\n let mc = cfg[\"merge\"][cell_right.mc.r + \"_\" + cell_right.mc.c];\r\n\r\n if(mc.c == bd_c_right){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": borderColor, \"style\": borderStyle }; \r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-inside\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(bd_r == bd_r1 && bd_c == bd_c1){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_r == bd_r2 && bd_c == bd_c1){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_r == bd_r1 && bd_c == bd_c2){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_r == bd_r2 && bd_c == bd_c2){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_r == bd_r1){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.c == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.c + mc.cs - 1 == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_r == bd_r2){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.c == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.c + mc.cs - 1 == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_c == bd_c1){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.r == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.r + mc.rs - 1 == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_c == bd_c2){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.r == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.r + mc.rs - 1 == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.r == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.r + mc.rs - 1 == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n\r\n if(mc.c == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.c + mc.cs - 1 == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n } \r\n }\r\n }\r\n }\r\n else if(borderType == \"border-horizontal\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(bd_r == bd_r1){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_r == bd_r2){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c];\r\n\r\n if(mc.r == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.r + mc.rs - 1 == bd_r){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-vertical\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(bd_c == bd_c1){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else if(bd_c == bd_c2){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c] || {};\r\n\r\n if(mc.c == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n else if(mc.c + mc.cs - 1 == bd_c){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n else{\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": borderColor, \"style\": borderStyle };\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": borderColor, \"style\": borderStyle };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(borderType == \"border-none\"){\r\n for(let bd_r = bd_r1; bd_r <= bd_r2; bd_r++){\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n for(let bd_c = bd_c1; bd_c <= bd_c2; bd_c++){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] != null){\r\n delete borderInfoCompute[bd_r + \"_\" + bd_c];\r\n }\r\n\r\n if(bd_r == bd_r1){\r\n let bd_r_top = bd_r1 - 1;\r\n\r\n if(bd_r_top >= 0 && borderInfoCompute[bd_r_top + \"_\" + bd_c]){\r\n delete borderInfoCompute[bd_r_top + \"_\" + bd_c].b;\r\n }\r\n }\r\n \r\n if(bd_r == bd_r2){\r\n let bd_r_bottom = bd_r2 + 1;\r\n\r\n if(bd_r_bottom < data.length && borderInfoCompute[bd_r_bottom + \"_\" + bd_c]){\r\n delete borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t;\r\n }\r\n }\r\n \r\n if(bd_c == bd_c1){\r\n let bd_c_left = bd_c1 - 1;\r\n\r\n if(bd_c_left >= 0 && borderInfoCompute[bd_r + \"_\" + bd_c_left]){\r\n delete borderInfoCompute[bd_r + \"_\" + bd_c_left].r;\r\n }\r\n }\r\n \r\n if(bd_c == bd_c2){\r\n let bd_c_right = bd_c2 + 1;\r\n\r\n if(bd_c_right < data[0].length && borderInfoCompute[bd_r + \"_\" + bd_c_right]){\r\n delete borderInfoCompute[bd_r + \"_\" + bd_c_right].l;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(rangeType == \"cell\"){\r\n let value = borderInfo[i].value;\r\n\r\n let bd_r = value.row_index, bd_c = value.col_index;\r\n\r\n if(bd_r < dataset_row_st || bd_r > dataset_row_ed || bd_c < dataset_col_st || bd_c > dataset_col_ed){\r\n continue;\r\n }\r\n\r\n if (cfg[\"rowhidden\"] != null && cfg[\"rowhidden\"][bd_r] != null) {\r\n continue;\r\n }\r\n\r\n if(value.l != null || value.r != null || value.t != null || value.b != null){\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c] == null){\r\n borderInfoCompute[bd_r + \"_\" + bd_c] = {};\r\n }\r\n\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c]) == \"object\" && data[bd_r][bd_c].mc != null){\r\n let cell = data[bd_r][bd_c];\r\n let mc = cfg[\"merge\"][cell.mc.r + \"_\" + cell.mc.c] || {};\r\n\r\n if(value.l != null && bd_c == mc.c){ //\u5DE6\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": value.l.color, \"style\": value.l.style };\r\n\r\n let bd_c_left = bd_c - 1;\r\n\r\n if(bd_c_left >= 0 && borderInfoCompute[bd_r + \"_\" + bd_c_left]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_left]) == \"object\" && data[bd_r][bd_c_left].mc != null){\r\n let cell_left = data[bd_r][bd_c_left];\r\n\r\n let mc_l = cfg[\"merge\"][cell_left.mc.r + \"_\" + cell_left.mc.c];\r\n\r\n if(mc_l.c + mc_l.cs - 1 == bd_c_left){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": value.l.color, \"style\": value.l.style }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": value.l.color, \"style\": value.l.style }; \r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = null;\r\n }\r\n\r\n if(value.r != null && bd_c == mc.c + mc.cs - 1){ //\u53F3\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": value.r.color, \"style\": value.r.style };\r\n\r\n let bd_c_right = bd_c + 1;\r\n\r\n if(bd_c_right < data[0].length && borderInfoCompute[bd_r + \"_\" + bd_c_right]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_right]) == \"object\" && data[bd_r][bd_c_right].mc != null){\r\n let cell_right = data[bd_r][bd_c_right];\r\n\r\n let mc_r = cfg[\"merge\"][cell_right.mc.r + \"_\" + cell_right.mc.c];\r\n\r\n if(mc_r.c == bd_c_right){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": value.r.color, \"style\": value.r.style }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": value.r.color, \"style\": value.r.style }; \r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = null;\r\n }\r\n\r\n if(value.t != null && bd_r == mc.r){ //\u4E0A\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": value.t.color, \"style\": value.t.style };\r\n\r\n let bd_r_top = bd_r - 1;\r\n\r\n if(bd_r_top >= 0 && borderInfoCompute[bd_r_top + \"_\" + bd_c]){\r\n if(data[bd_r_top] != null && getObjType(data[bd_r_top][bd_c]) == \"object\" && data[bd_r_top][bd_c].mc != null){\r\n let cell_top = data[bd_r_top][bd_c];\r\n\r\n let mc_t = cfg[\"merge\"][cell_top.mc.r + \"_\" + cell_top.mc.c];\r\n\r\n if(mc_t.r + mc_t.rs - 1 == bd_r_top){\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": value.t.color, \"style\": value.t.style };\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": value.t.color, \"style\": value.t.style };\r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = null;\r\n }\r\n\r\n if(value.b != null && bd_r == mc.r + mc.rs - 1){ //\u4E0B\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": value.b.color, \"style\": value.b.style };\r\n\r\n let bd_r_bottom = bd_r + 1;\r\n\r\n if(bd_r_bottom < data.length && borderInfoCompute[bd_r_bottom + \"_\" + bd_c]){\r\n if(data[bd_r_bottom] != null && getObjType(data[bd_r_bottom][bd_c]) == \"object\" && data[bd_r_bottom][bd_c].mc != null){\r\n let cell_bottom = data[bd_r_bottom][bd_c];\r\n \r\n let mc_b = cfg[\"merge\"][cell_bottom.mc.r + \"_\" + cell_bottom.mc.c];\r\n\r\n if(mc_b.r == bd_r_bottom){\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": value.b.color, \"style\": value.b.style }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": value.b.color, \"style\": value.b.style }; \r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = null;\r\n }\r\n }\r\n else{\r\n if(value.l != null){ //\u5DE6\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = { \"color\": value.l.color, \"style\": value.l.style };\r\n\r\n let bd_c_left = bd_c - 1;\r\n\r\n if(bd_c_left >= 0 && borderInfoCompute[bd_r + \"_\" + bd_c_left]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_left]) == \"object\" && data[bd_r][bd_c_left].mc != null){\r\n let cell_left = data[bd_r][bd_c_left];\r\n\r\n let mc_l = cfg[\"merge\"][cell_left.mc.r + \"_\" + cell_left.mc.c];\r\n\r\n if(mc_l.c + mc_l.cs - 1 == bd_c_left){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": value.l.color, \"style\": value.l.style }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_left].r = { \"color\": value.l.color, \"style\": value.l.style }; \r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l = null;\r\n }\r\n\r\n if(value.r != null){ //\u53F3\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = { \"color\": value.r.color, \"style\": value.r.style };\r\n\r\n let bd_c_right = bd_c + 1;\r\n\r\n if(bd_c_right < data[0].length && borderInfoCompute[bd_r + \"_\" + bd_c_right]){\r\n if(data[bd_r] != null && getObjType(data[bd_r][bd_c_right]) == \"object\" && data[bd_r][bd_c_right].mc != null){\r\n let cell_right = data[bd_r][bd_c_right];\r\n\r\n let mc_r = cfg[\"merge\"][cell_right.mc.r + \"_\" + cell_right.mc.c];\r\n\r\n if(mc_r.c == bd_c_right){\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": value.r.color, \"style\": value.r.style }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c_right].l = { \"color\": value.r.color, \"style\": value.r.style }; \r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r = null;\r\n }\r\n\r\n if(value.t != null){ //\u4E0A\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = { \"color\": value.t.color, \"style\": value.t.style };\r\n\r\n let bd_r_top = bd_r - 1;\r\n\r\n if(bd_r_top >= 0 && borderInfoCompute[bd_r_top + \"_\" + bd_c]){\r\n if(data[bd_r_top] != null && getObjType(data[bd_r_top][bd_c]) == \"object\" && data[bd_r_top][bd_c].mc != null){\r\n let cell_top = data[bd_r_top][bd_c];\r\n\r\n let mc_t = cfg[\"merge\"][cell_top.mc.r + \"_\" + cell_top.mc.c];\r\n\r\n if(mc_t.r + mc_t.rs - 1 == bd_r_top){\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": value.t.color, \"style\": value.t.style };\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_top + \"_\" + bd_c].b = { \"color\": value.t.color, \"style\": value.t.style };\r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t = null;\r\n }\r\n\r\n if(value.b != null){ //\u4E0B\u8FB9\u6846\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = { \"color\": value.b.color, \"style\": value.b.style };\r\n\r\n let bd_r_bottom = bd_r + 1;\r\n\r\n if(bd_r_bottom < data.length && borderInfoCompute[bd_r_bottom + \"_\" + bd_c]){\r\n if(data[bd_r_bottom] != null && getObjType(data[bd_r_bottom][bd_c]) == \"object\" && data[bd_r_bottom][bd_c].mc != null){\r\n let cell_bottom = data[bd_r_bottom][bd_c];\r\n \r\n let mc_b = cfg[\"merge\"][cell_bottom.mc.r + \"_\" + cell_bottom.mc.c];\r\n\r\n if(mc_b.r == bd_r_bottom){\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": value.b.color, \"style\": value.b.style }; \r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r_bottom + \"_\" + bd_c].t = { \"color\": value.b.color, \"style\": value.b.style }; \r\n }\r\n }\r\n }\r\n else{\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b = null;\r\n }\r\n }\r\n }\r\n else{\r\n delete borderInfoCompute[bd_r + \"_\" + bd_c];\r\n }\r\n }\r\n }\r\n }\r\n\r\n return borderInfoCompute;\r\n}\r\n\r\nfunction getBorderInfoCompute(sheetIndex) {\r\n let borderInfoCompute = {};\r\n\r\n let cfg, data; \r\n if(sheetIndex == null){\r\n cfg = Store.config;\r\n data = Store.flowdata;\r\n }\r\n else{\r\n cfg = Store.luckysheetfile[getSheetIndex(sheetIndex)].config;\r\n data = Store.luckysheetfile[getSheetIndex(sheetIndex)].data;\r\n }\r\n\r\n borderInfoCompute = getBorderInfoComputeRange(0, data.length,0, data[0].length, sheetIndex);\r\n\r\n return borderInfoCompute;\r\n}\r\n\r\nexport {\r\n getBorderInfoCompute,\r\n getBorderInfoComputeRange\r\n}", "import { rowLocationByIndex, colLocationByIndex } from '../global/location';\r\nimport { countfunc } from '../global/count';\r\nimport { getBorderInfoCompute } from '../global/border';\r\nimport { isRealNum } from '../global/validate';\r\nimport { genarate, update } from '../global/format';\r\nimport { jfrefreshgrid } from '../global/refresh';\r\nimport editor from '../global/editor';\r\nimport formula from '../global/formula';\r\nimport conditionformat from './conditionformat';\r\nimport {checkProtectionLockedRangeList} from './protection';\r\nimport { selectHightlightShow } from './select';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport { getObjType, replaceHtml } from '../utils/util';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport dayjs from 'dayjs'\r\n\r\n//\u9009\u533A\u4E0B\u62C9\r\nconst luckysheetDropCell = {\r\n iconHtml: '
'+\r\n '
'+\r\n '
',\r\n typeListHtml: '
'+\r\n '
'+\r\n '
'+\r\n '${copyCell}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${sequence}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${onlyFormat}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${noFormat}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${day}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${workDay}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${month}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${year}'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '
'+\r\n '${chineseNumber}'+\r\n '
'+\r\n '
'+\r\n '
',\r\n copyRange: {}, //\u590D\u5236\u8303\u56F4\r\n applyRange: {}, //\u5E94\u7528\u8303\u56F4\r\n applyType: null, //0\u590D\u5236\u5355\u5143\u683C\uFF0C1\u586B\u5145\u5E8F\u5217\uFF0C2\u4EC5\u586B\u5145\u683C\u5F0F\uFF0C3\u4E0D\u5E26\u683C\u5F0F\u586B\u5145\uFF0C4\u4EE5\u5929\u6570\u586B\u5145\uFF0C5\u4EE5\u5DE5\u4F5C\u65E5\u586B\u5145\uFF0C6\u4EE5\u6708\u586B\u5145\uFF0C7\u4EE5\u5E74\u586B\u5145\uFF0C8\u4EE5\u4E2D\u6587\u5C0F\u5199\u6570\u5B57\u5E8F\u5217\u586B\u5145\r\n direction: null, //down-\u5F80\u4E0B\u62D6\u62FD\uFF0Cright-\u5F80\u53F3\u62D6\u62FD\uFF0Cup-\u5F80\u4E0A\u62D6\u62FD\uFF0Cleft-\u5F80\u5DE6\u62D6\u62FD\r\n chnNumChar: {\"\u96F6\": 0, \"\u4E00\": 1, \"\u4E8C\": 2, \"\u4E09\": 3, \"\u56DB\": 4, \"\u4E94\": 5, \"\u516D\": 6, \"\u4E03\": 7, \"\u516B\": 8, \"\u4E5D\": 9},\r\n chnNameValue: {\r\n \"\u5341\": {value: 10, secUnit: false},\r\n \"\u767E\": {value: 100, secUnit: false},\r\n \"\u5343\": {value: 1000, secUnit: false},\r\n \"\u4E07\": {value: 10000, secUnit: true},\r\n \"\u4EBF\": {value: 100000000, secUnit: true}\r\n },\r\n ChineseToNumber: function(chnStr){\r\n let _this = this;\r\n\r\n let rtn = 0;\r\n let section = 0;\r\n let number = 0;\r\n let secUnit = false;\r\n let str = chnStr.split(\"\");\r\n\r\n for(let i = 0; i < str.length; i++){\r\n let num = _this.chnNumChar[str[i]];\r\n\r\n if(typeof num != \"undefined\"){\r\n number = num;\r\n\r\n if(i == str.length - 1){\r\n section += number;\r\n }\r\n }\r\n else{\r\n let unit = _this.chnNameValue[str[i]].value;\r\n secUnit = _this.chnNameValue[str[i]].secUnit;\r\n\r\n if(secUnit){\r\n section = (section + number) * unit;\r\n rtn += section;\r\n section = 0;\r\n }\r\n else{\r\n section += (number * unit);\r\n }\r\n\r\n number = 0;\r\n }\r\n }\r\n\r\n return rtn + section;\r\n },\r\n chnNumChar2: [\"\u96F6\", \"\u4E00\", \"\u4E8C\", \"\u4E09\", \"\u56DB\", \"\u4E94\", \"\u516D\", \"\u4E03\", \"\u516B\", \"\u4E5D\"],\r\n chnUnitSection: [\"\", \"\u4E07\", \"\u4EBF\", \"\u4E07\u4EBF\", \"\u4EBF\u4EBF\"],\r\n chnUnitChar: [\"\", \"\u5341\", \"\u767E\", \"\u5343\"],\r\n SectionToChinese: function(section){\r\n let _this = this;\r\n\r\n let strIns = '', chnStr = '';\r\n let unitPos = 0;\r\n let zero = true;\r\n\r\n while(section > 0){\r\n let v = section % 10;\r\n\r\n if(v == 0){\r\n if(!zero){\r\n zero = true;\r\n chnStr = _this.chnNumChar2[v] + chnStr;\r\n }\r\n }\r\n else{\r\n zero = false;\r\n strIns = _this.chnNumChar2[v];\r\n strIns += _this.chnUnitChar[unitPos];\r\n chnStr = strIns + chnStr;\r\n }\r\n\r\n unitPos++;\r\n section = Math.floor(section / 10);\r\n }\r\n\r\n return chnStr;\r\n },\r\n NumberToChinese: function(num){\r\n let _this = this;\r\n\r\n let unitPos = 0;\r\n let strIns = '', chnStr = '';\r\n let needZero = false;\r\n\r\n if(num == 0){\r\n return _this.chnNumChar2[0];\r\n }\r\n while(num > 0){\r\n let section = num % 10000;\r\n\r\n if(needZero){\r\n chnStr = _this.chnNumChar2[0] + chnStr;\r\n }\r\n\r\n strIns = _this.SectionToChinese(section);\r\n strIns += (section != 0) ? _this.chnUnitSection[unitPos] : _this.chnUnitSection[0];\r\n chnStr = strIns + chnStr;\r\n needZero = (section < 1000) && (section > 0);\r\n num = Math.floor(num / 10000);\r\n unitPos++;\r\n }\r\n\r\n return chnStr;\r\n },\r\n isChnNumber: function(txt){\r\n let _this = this;\r\n\r\n let isChnNumber = true;\r\n\r\n if (txt) {//\u5982\u679C\u4E0D\u5224\u65AD\uFF0C\u51FA\u73B0undefined\u7684\u65F6\u5019\u8FD9\u91CC\u4F1A\u62A5\u9519\r\n if(txt.length == 1){\r\n if(txt == \"\u65E5\" || (txt in _this.chnNumChar)){\r\n isChnNumber = true;\r\n }\r\n else{\r\n isChnNumber = false;\r\n }\r\n }\r\n else{\r\n let str = txt.split(\"\");\r\n for(let i = 0; i < str.length; i++){\r\n if(!((str[i] in _this.chnNumChar) || (str[i] in _this.chnNameValue))){\r\n isChnNumber = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return isChnNumber;\r\n },\r\n isExtendNumber: function(txt){\r\n let reg = /0|([1-9]+[0-9]*)/g;\r\n let isExtendNumber = reg.test(txt);\r\n\r\n if(isExtendNumber){\r\n let match = txt.match(reg);\r\n let matchTxt = match[match.length - 1];\r\n let matchIndex = txt.lastIndexOf(matchTxt);\r\n let beforeTxt = txt.substr(0, matchIndex);\r\n let afterTxt = txt.substr(matchIndex + matchTxt.length);\r\n\r\n return [isExtendNumber, Number(matchTxt), beforeTxt, afterTxt];\r\n }\r\n else {\r\n return [isExtendNumber]\r\n }\r\n },\r\n isChnWeek1: function(txt){\r\n let _this = this;\r\n\r\n let isChnWeek1;\r\n if(txt.length == 1){\r\n if(txt == \"\u65E5\" || _this.ChineseToNumber(txt) < 7){\r\n isChnWeek1 = true;\r\n }\r\n else{\r\n isChnWeek1 = false;\r\n }\r\n }\r\n else{\r\n isChnWeek1 = false;\r\n }\r\n\r\n return isChnWeek1;\r\n },\r\n isChnWeek2: function(txt){\r\n let isChnWeek2;\r\n if(txt.length == 2){\r\n if(txt == \"\u5468\u4E00\" || txt == \"\u5468\u4E8C\" || txt == \"\u5468\u4E09\" || txt == \"\u5468\u56DB\" || txt == \"\u5468\u4E94\" || txt == \"\u5468\u516D\" || txt == \"\u5468\u65E5\"){\r\n isChnWeek2 = true;\r\n }\r\n else{\r\n isChnWeek2 = false;\r\n }\r\n }\r\n else{\r\n isChnWeek2 = false;\r\n }\r\n\r\n return isChnWeek2;\r\n },\r\n isChnWeek3: function(txt){\r\n let isChnWeek3;\r\n if(txt.length == 3){\r\n if(txt == \"\u661F\u671F\u4E00\" || txt == \"\u661F\u671F\u4E8C\" || txt == \"\u661F\u671F\u4E09\" || txt == \"\u661F\u671F\u56DB\" || txt == \"\u661F\u671F\u4E94\" || txt == \"\u661F\u671F\u516D\" || txt == \"\u661F\u671F\u65E5\"){\r\n isChnWeek3 = true;\r\n }\r\n else{\r\n isChnWeek3 = false;\r\n }\r\n }\r\n else{\r\n isChnWeek3 = false;\r\n }\r\n\r\n return isChnWeek3;\r\n },\r\n createIcon: function(){\r\n let _this = this;\r\n\r\n let copy_r = _this.copyRange[\"row\"][1],\r\n copy_c = _this.copyRange[\"column\"][1];\r\n let apply_r = _this.applyRange[\"row\"][1],\r\n apply_c = _this.applyRange[\"column\"][1];\r\n\r\n let row_index, col_index;\r\n if(apply_r >= copy_r && apply_c >= copy_c){\r\n row_index = apply_r;\r\n col_index = apply_c;\r\n }\r\n else{\r\n row_index = copy_r;\r\n col_index = copy_c;\r\n }\r\n\r\n let row = rowLocationByIndex(row_index)[1],\r\n row_pre = rowLocationByIndex(row_index)[0];\r\n let col = colLocationByIndex(col_index)[1],\r\n col_pre = colLocationByIndex(col_index)[0];\r\n\r\n $(\"#luckysheet-dropCell-icon\").remove();\r\n $(\"#luckysheet-cell-main\").append(_this.iconHtml);\r\n $(\"#luckysheet-dropCell-icon\").css({\"left\": col, \"top\": row});\r\n\r\n //\u70B9\u51FBicon\r\n $(\"#luckysheet-dropCell-icon\").mouseover(function(){\r\n $(this).css(\"background-color\", \"#ffe8e8\");\r\n }).mouseleave(function(){\r\n $(this).css(\"background-color\", \"#f1f1f1\");\r\n }).mousedown(function(event){\r\n $(\"#luckysheet-dropCell-typeList\").remove();\r\n const _locale = locale();\r\n const locale_dropCell = _locale.dropCell;\r\n $(\"body\").append(replaceHtml(_this.typeListHtml,{\r\n copyCell:locale_dropCell.copyCell,\r\n sequence:locale_dropCell.sequence,\r\n onlyFormat:locale_dropCell.onlyFormat,\r\n noFormat:locale_dropCell.noFormat,\r\n day:locale_dropCell.day,\r\n workDay:locale_dropCell.workDay,\r\n month:locale_dropCell.month,\r\n year:locale_dropCell.year,\r\n chineseNumber:locale_dropCell.chineseNumber,\r\n }));\r\n\r\n let typeItemHide = _this.typeItemHide();\r\n if(!typeItemHide[0] && !typeItemHide[1] && !typeItemHide[2] && !typeItemHide[3] && !typeItemHide[4] && !typeItemHide[5] && !typeItemHide[6]){\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=1]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=4]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=5]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=6]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=7]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=8]\").hide();\r\n }\r\n\r\n if(!typeItemHide[2]){\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=4]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=5]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=6]\").hide();\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=7]\").hide();\r\n }\r\n\r\n if(!typeItemHide[3]){\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=8]\").hide();\r\n }\r\n\r\n let left = $(this).offset().left;\r\n let top = $(this).offset().top + 25;\r\n let winH = $(window).height(), winW = $(window).width();\r\n let menuW = $(\"#luckysheet-dropCell-typeList\").width(),\r\n menuH = $(\"#luckysheet-dropCell-typeList\").height();\r\n\r\n if (left + menuW > winW) {\r\n left = left - menuW;\r\n }\r\n\r\n if (top + menuH > winH) {\r\n top = top - menuH - 38;\r\n }\r\n\r\n if (top < 0) {\r\n top = 0;\r\n }\r\n\r\n $(\"#luckysheet-dropCell-typeList\").css({\"left\": left, \"top\": top}).show();\r\n $(\"#luckysheet-dropCell-icon\").mouseleave(function(){ $(this).css(\"backgroundColor\", \"#ffe8e8\") });\r\n\r\n let type = _this.applyType;\r\n $(\"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem[data-type=\"+ type +\"]\").find(\"span\").append('');\r\n event.stopPropagation();\r\n });\r\n\r\n //\u70B9\u51FB\u6570\u636E\u586B\u5145\u7C7B\u578B\r\n $(document).off(\"click.dCtypeList\").on(\"click.dCtypeList\", \"#luckysheet-dropCell-typeList .luckysheet-cols-menuitem\", function(){\r\n $(\"#luckysheet-dropCell-typeList .fa-check\").remove();\r\n $(this).find(\"span\").append('');\r\n\r\n let type = $(this).attr(\"data-type\");\r\n _this.applyType = type;\r\n\r\n _this.update();\r\n\r\n $(\"#luckysheet-dropCell-typeList\").hide();\r\n $(\"#luckysheet-dropCell-icon\").css(\"backgroundColor\", \"#f1f1f1\");\r\n $(\"#luckysheet-dropCell-icon\").mouseleave(function(){ $(this).css(\"backgroundColor\", \"#f1f1f1\") });\r\n\r\n countfunc();\r\n });\r\n },\r\n typeItemHide: function(){\r\n let _this = this;\r\n\r\n let copyRange = _this.copyRange;\r\n let str_r = copyRange[\"row\"][0], end_r = copyRange[\"row\"][1];\r\n let str_c = copyRange[\"column\"][0], end_c = copyRange[\"column\"][1];\r\n\r\n let hasNumber = false,\r\n hasExtendNumber = false,\r\n hasDate = false,\r\n hasChn = false,\r\n hasChnWeek1 = false,\r\n hasChnWeek2 = false,\r\n hasChnWeek3 = false;\r\n\r\n for(let r = str_r; r <= end_r; r++){\r\n for(let c = str_c; c <= end_c; c++){\r\n if(!!Store.flowdata[r][c]){\r\n let cell = Store.flowdata[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"v\"] != null && cell[\"f\"] == null){\r\n if(cell[\"ct\"] != null && cell[\"ct\"].t == \"n\"){\r\n hasNumber = true;\r\n }\r\n else if(cell[\"ct\"] != null && cell[\"ct\"].t == \"d\"){\r\n hasDate = true;\r\n }\r\n else if(_this.isExtendNumber(cell[\"m\"])[0]){\r\n hasExtendNumber = true;\r\n }\r\n else if(_this.isChnNumber(cell[\"m\"]) && cell[\"m\"] != \"\u65E5\"){\r\n hasChn = true;\r\n }\r\n else if(cell[\"m\"] == \"\u65E5\"){\r\n hasChnWeek1 = true;\r\n }\r\n else if(_this.isChnWeek2(cell[\"m\"])){\r\n hasChnWeek2 = true;\r\n }\r\n else if(_this.isChnWeek3(cell[\"m\"])){\r\n hasChnWeek3 = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return [hasNumber, hasExtendNumber, hasDate, hasChn, hasChnWeek1, hasChnWeek2, hasChnWeek3];\r\n },\r\n update: function(){\r\n let _this = this;\r\n\r\n if(!checkProtectionLockedRangeList([_this.applyRange], Store.currentSheetIndex)){\r\n return;\r\n }\r\n\r\n if(Store.allowEdit===false){\r\n return;\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n let borderInfoCompute = getBorderInfoCompute();\r\n let dataVerification = $.extend(true, {}, file[\"dataVerification\"]);\r\n\r\n let direction = _this.direction;\r\n let type = _this.applyType;\r\n\r\n //\u590D\u5236\u8303\u56F4\r\n let copyRange = _this.copyRange;\r\n let copy_str_r = copyRange[\"row\"][0], copy_end_r = copyRange[\"row\"][1];\r\n let copy_str_c = copyRange[\"column\"][0], copy_end_c = copyRange[\"column\"][1];\r\n let copyData = _this.getCopyData(d, copy_str_r, copy_end_r, copy_str_c, copy_end_c, direction);\r\n\r\n let csLen;\r\n if(direction == \"down\" || direction == \"up\"){\r\n csLen = copy_end_r - copy_str_r + 1;\r\n }\r\n else if(direction == \"right\" || direction == \"left\"){\r\n csLen = copy_end_c - copy_str_c + 1;\r\n }\r\n\r\n //\u5E94\u7528\u8303\u56F4\r\n let applyRange = _this.applyRange;\r\n let apply_str_r = applyRange[\"row\"][0], apply_end_r = applyRange[\"row\"][1];\r\n let apply_str_c = applyRange[\"column\"][0], apply_end_c = applyRange[\"column\"][1];\r\n\r\n if(direction == \"down\" || direction == \"up\"){\r\n let asLen = apply_end_r - apply_str_r + 1;\r\n\r\n for(let i = apply_str_c; i <= apply_end_c; i++){\r\n let copyD = copyData[i - apply_str_c];\r\n\r\n let applyData = _this.getApplyData(copyD, csLen, asLen);\r\n\r\n if(direction == \"down\"){\r\n for(let j = apply_str_r; j <= apply_end_r; j++){\r\n let cell = applyData[j - apply_str_r];\r\n\r\n if(cell.f != null){\r\n let f = \"=\" + formula.functionCopy(cell.f, \"down\", j - apply_str_r + 1);\r\n let v = formula.execfunction(f, j, i);\r\n\r\n formula.execFunctionGroup(j, i, v[1], undefined, d);\r\n\r\n cell.f = v[2];\r\n cell.v = v[1];\r\n\r\n if(cell.spl != null){\r\n cell.spl = v[3].data;\r\n }\r\n else{\r\n if(isRealNum(cell.v) && !/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(cell.v)){\r\n if(cell.v == Infinity || cell.v == -Infinity){\r\n cell.m = cell.v.toString();\r\n }\r\n else{\r\n if(cell.v.toString().indexOf(\"e\") > -1){\r\n let len = cell.v.toString().split(\".\")[1].split(\"e\")[0].length;\r\n if(len > 5){\r\n len = 5;\r\n }\r\n\r\n cell.m = cell.v.toExponential(len).toString();\r\n }\r\n else{\r\n let mask;\r\n if(cell.ct.fa === \"##0.00\"){\r\n /* \u5982\u679C\u662F\u6570\u5B57\u7C7B\u578B */\r\n mask = genarate(Math.round(cell.v * 1000000000) / 1000000000 + \".00\") ;\r\n cell.m = mask[0].toString();\r\n }else {\r\n mask = genarate(Math.round(cell.v * 1000000000) / 1000000000);\r\n cell.m = mask[0].toString();\r\n }\r\n }\r\n }\r\n\r\n cell.ct = cell.ct || { \"fa\": \"General\", \"t\": \"n\" };\r\n }\r\n else{\r\n let mask = genarate(cell.v);\r\n cell.m = mask[0].toString();\r\n cell.ct = mask[1];\r\n }\r\n }\r\n }\r\n\r\n d[j][i] = cell;\r\n\r\n //\u8FB9\u6846\r\n let bd_r = copy_str_r + (j - apply_str_r) % csLen;\r\n let bd_c = i;\r\n\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": j,\r\n \"col_index\": i,\r\n \"l\": borderInfoCompute[bd_r + \"_\" + bd_c].l,\r\n \"r\": borderInfoCompute[bd_r + \"_\" + bd_c].r,\r\n \"t\": borderInfoCompute[bd_r + \"_\" + bd_c].t,\r\n \"b\": borderInfoCompute[bd_r + \"_\" + bd_c].b\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n else if(borderInfoCompute[j + \"_\" + i]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": j,\r\n \"col_index\": i,\r\n \"l\": null,\r\n \"r\": null,\r\n \"t\": null,\r\n \"b\": null\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n if(dataVerification[bd_r + \"_\" + bd_c]){\r\n dataVerification[j + \"_\" + i] = dataVerification[bd_r + \"_\" + bd_c];\r\n }\r\n }\r\n }\r\n if(direction == \"up\"){\r\n for(let j = apply_end_r; j >= apply_str_r; j--){\r\n let cell = applyData[apply_end_r - j];\r\n\r\n if(cell.f != null){\r\n let f = \"=\" + formula.functionCopy(cell.f, \"up\", apply_end_r - j + 1);\r\n let v = formula.execfunction(f, j, i);\r\n\r\n formula.execFunctionGroup(j, i, v[1], undefined, d);\r\n\r\n cell.f = v[2];\r\n cell.v = v[1];\r\n\r\n if(cell.spl != null){\r\n cell.spl = v[3].data;\r\n }\r\n else{\r\n if(isRealNum(cell.v) && !/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(cell.v)){\r\n if(cell.v == Infinity || cell.v == -Infinity){\r\n cell.m = cell.v.toString();\r\n }\r\n else{\r\n if(cell.v.toString().indexOf(\"e\") > -1){\r\n let len = cell.v.toString().split(\".\")[1].split(\"e\")[0].length;\r\n if(len > 5){\r\n len = 5;\r\n }\r\n\r\n cell.m = cell.v.toExponential(len).toString();\r\n }\r\n else{\r\n let mask = genarate(Math.round(cell.v * 1000000000) / 1000000000);\r\n cell.m = mask[0].toString();\r\n }\r\n }\r\n\r\n cell.ct = { \"fa\": \"General\", \"t\": \"n\" };\r\n }\r\n else{\r\n let mask = genarate(cell.v);\r\n cell.m = mask[0].toString();\r\n cell.ct = mask[1];\r\n }\r\n }\r\n }\r\n\r\n d[j][i] = cell;\r\n\r\n //\u8FB9\u6846\r\n let bd_r = copy_end_r - (apply_end_r - j) % csLen;\r\n let bd_c = i;\r\n\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": j,\r\n \"col_index\": i,\r\n \"l\": borderInfoCompute[bd_r + \"_\" + bd_c].l,\r\n \"r\": borderInfoCompute[bd_r + \"_\" + bd_c].r,\r\n \"t\": borderInfoCompute[bd_r + \"_\" + bd_c].t,\r\n \"b\": borderInfoCompute[bd_r + \"_\" + bd_c].b\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n else if(borderInfoCompute[j + \"_\" + i]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": j,\r\n \"col_index\": i,\r\n \"l\": null,\r\n \"r\": null,\r\n \"t\": null,\r\n \"b\": null\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n if(dataVerification[bd_r + \"_\" + bd_c]){\r\n dataVerification[j + \"_\" + i] = dataVerification[bd_r + \"_\" + bd_c];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(direction == \"right\" || direction == \"left\"){\r\n let asLen = apply_end_c - apply_str_c + 1;\r\n\r\n for(let i = apply_str_r; i <= apply_end_r; i++){\r\n let copyD = copyData[i - apply_str_r];\r\n\r\n let applyData = _this.getApplyData(copyD, csLen, asLen);\r\n\r\n if(direction == \"right\"){\r\n for(let j = apply_str_c; j <= apply_end_c; j++){\r\n let cell = applyData[j - apply_str_c];\r\n\r\n if(cell.f != null){\r\n let f = \"=\" + formula.functionCopy(cell.f, \"right\", j - apply_str_c + 1);\r\n let v = formula.execfunction(f, i, j);\r\n\r\n formula.execFunctionGroup(i, j, v[1], undefined, d);\r\n\r\n cell.f = v[2];\r\n cell.v = v[1];\r\n\r\n if(cell.spl != null){\r\n cell.spl = v[3].data;\r\n }\r\n else{\r\n if(isRealNum(cell.v) && !/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(cell.v)){\r\n if(cell.v == Infinity || cell.v == -Infinity){\r\n cell.m = cell.v.toString();\r\n }\r\n else{\r\n if(cell.v.toString().indexOf(\"e\") > -1){\r\n let len = cell.v.toString().split(\".\")[1].split(\"e\")[0].length;\r\n if(len > 5){\r\n len = 5;\r\n }\r\n\r\n cell.m = cell.v.toExponential(len).toString();\r\n }\r\n else{\r\n let mask = genarate(Math.round(cell.v * 1000000000) / 1000000000);\r\n cell.m = mask[0].toString();\r\n }\r\n }\r\n\r\n cell.ct = { \"fa\": \"General\", \"t\": \"n\" };\r\n }\r\n else{\r\n let mask = genarate(cell.v);\r\n cell.m = mask[0].toString();\r\n cell.ct = mask[1];\r\n }\r\n }\r\n }\r\n\r\n d[i][j] = cell;\r\n\r\n //\u8FB9\u6846\r\n let bd_r = i;\r\n let bd_c = copy_str_c + (j - apply_str_c) % csLen;\r\n\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": i,\r\n \"col_index\": j,\r\n \"l\": borderInfoCompute[bd_r + \"_\" + bd_c].l,\r\n \"r\": borderInfoCompute[bd_r + \"_\" + bd_c].r,\r\n \"t\": borderInfoCompute[bd_r + \"_\" + bd_c].t,\r\n \"b\": borderInfoCompute[bd_r + \"_\" + bd_c].b\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n else if(borderInfoCompute[i + \"_\" + j]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": i,\r\n \"col_index\": j,\r\n \"l\": null,\r\n \"r\": null,\r\n \"t\": null,\r\n \"b\": null\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n if(dataVerification[bd_r + \"_\" + bd_c]){\r\n dataVerification[i + \"_\" + j] = dataVerification[bd_r + \"_\" + bd_c];\r\n }\r\n }\r\n }\r\n if(direction == \"left\"){\r\n for(let j = apply_end_c; j >= apply_str_c; j--){\r\n let cell = applyData[apply_end_c - j];\r\n\r\n if(cell.f != null){\r\n let f = \"=\" + formula.functionCopy(cell.f, \"left\", apply_end_c - j + 1);\r\n let v = formula.execfunction(f, i, j);\r\n\r\n formula.execFunctionGroup(i, j, v[1], undefined, d);\r\n\r\n cell.f = v[2];\r\n cell.v = v[1];\r\n\r\n if(cell.spl != null){\r\n cell.spl = v[3].data;\r\n }\r\n else{\r\n if(isRealNum(cell.v) && !/^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[12])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X)$/i.test(cell.v)){\r\n if(cell.v == Infinity || cell.v == -Infinity){\r\n cell.m = cell.v.toString();\r\n }\r\n else{\r\n if(cell.v.toString().indexOf(\"e\") > -1){\r\n let len = cell.v.toString().split(\".\")[1].split(\"e\")[0].length;\r\n if(len > 5){\r\n len = 5;\r\n }\r\n\r\n cell.m = cell.v.toExponential(len).toString();\r\n }\r\n else{\r\n let mask = genarate(Math.round(cell.v * 1000000000) / 1000000000);\r\n cell.m = mask[0].toString();\r\n }\r\n }\r\n\r\n cell.ct = { \"fa\": \"General\", \"t\": \"n\" };\r\n }\r\n else{\r\n let mask = genarate(cell.v);\r\n cell.m = mask[0].toString();\r\n cell.ct = mask[1];\r\n }\r\n }\r\n }\r\n\r\n d[i][j] = cell;\r\n\r\n //\u8FB9\u6846\r\n let bd_r = i;\r\n let bd_c = copy_end_c - (apply_end_c - j) % csLen;\r\n\r\n if(borderInfoCompute[bd_r + \"_\" + bd_c]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": i,\r\n \"col_index\": j,\r\n \"l\": borderInfoCompute[bd_r + \"_\" + bd_c].l,\r\n \"r\": borderInfoCompute[bd_r + \"_\" + bd_c].r,\r\n \"t\": borderInfoCompute[bd_r + \"_\" + bd_c].t,\r\n \"b\": borderInfoCompute[bd_r + \"_\" + bd_c].b\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n else if(borderInfoCompute[i + \"_\" + j]){\r\n let bd_obj = {\r\n \"rangeType\": \"cell\",\r\n \"value\": {\r\n \"row_index\": i,\r\n \"col_index\": j,\r\n \"l\": null,\r\n \"r\": null,\r\n \"t\": null,\r\n \"b\": null\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n if(dataVerification[bd_r + \"_\" + bd_c]){\r\n dataVerification[i + \"_\" + j] = dataVerification[bd_r + \"_\" + bd_c];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\r\n let cdformat = $.extend(true, [], file[\"luckysheet_conditionformat_save\"]);\r\n if(cdformat != null && cdformat.length > 0){\r\n for(let i = 0; i < cdformat.length; i++){\r\n let cdformat_cellrange = cdformat[i].cellrange;\r\n\r\n let emptyRange = [];\r\n\r\n for(let j = 0; j < cdformat_cellrange.length; j++){\r\n let range = conditionformat.CFSplitRange(cdformat_cellrange[j], {\"row\": copyRange[\"row\"], \"column\": copyRange[\"column\"]}, {\"row\": applyRange[\"row\"], \"column\": applyRange[\"column\"]}, \"operatePart\");\r\n if(range.length > 0){\r\n emptyRange = emptyRange.concat(range);\r\n }\r\n }\r\n\r\n if(emptyRange.length > 0){\r\n cdformat[i].cellrange.push(applyRange);\r\n }\r\n }\r\n }\r\n\r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n let allParam = {\r\n \"cfg\": cfg,\r\n \"cdformat\": cdformat,\r\n \"dataVerification\": dataVerification\r\n }\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n\r\n selectHightlightShow();\r\n },\r\n getCopyData: function(d, r1, r2, c1, c2, direction){\r\n let _this = this;\r\n\r\n let copyData = [];\r\n\r\n let a1, a2, b1, b2;\r\n if(direction == \"down\" || direction == \"up\"){\r\n a1 = c1;\r\n a2 = c2;\r\n b1 = r1;\r\n b2 = r2;\r\n }\r\n else if(direction == \"right\" || direction == \"left\"){\r\n a1 = r1;\r\n a2 = r2;\r\n b1 = c1;\r\n b2 = c2;\r\n }\r\n\r\n for(let a = a1; a <= a2; a++){\r\n let obj = {};\r\n\r\n let arrData = [];\r\n let arrIndex = [];\r\n let text = \"\";\r\n let extendNumberBeforeStr = null;\r\n let extendNumberAfterStr = null;\r\n let isSameStr = true;\r\n\r\n for(let b = b1; b <= b2; b++){\r\n //\u5355\u5143\u683C\r\n let data;\r\n if(direction == \"down\" || direction == \"up\"){\r\n data = d[b][a];\r\n }\r\n else if(direction == \"right\" || direction == \"left\"){\r\n data = d[a][b];\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\u7C7B\u578B\r\n let str;\r\n if(!!data && !!data[\"v\"] && data[\"f\"] == null){\r\n if(!!data[\"ct\"] && data[\"ct\"][\"t\"] == \"n\"){\r\n str = \"number\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n else if(!!data[\"ct\"] && data[\"ct\"][\"t\"] == \"d\"){\r\n str = \"date\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n else if(_this.isExtendNumber(data[\"m\"])[0]){\r\n str = \"extendNumber\";\r\n\r\n let isExtendNumber = _this.isExtendNumber(data[\"m\"]);\r\n\r\n if(extendNumberBeforeStr == null || extendNumberAfterStr == null){\r\n isSameStr = true;\r\n extendNumberBeforeStr = isExtendNumber[2];\r\n extendNumberAfterStr = isExtendNumber[3];\r\n }\r\n else {\r\n if(isExtendNumber[2] != extendNumberBeforeStr || isExtendNumber[3] != extendNumberAfterStr){\r\n isSameStr = false;\r\n extendNumberBeforeStr = isExtendNumber[2];\r\n extendNumberAfterStr = isExtendNumber[3];\r\n }\r\n else {\r\n isSameStr = true;\r\n }\r\n }\r\n }\r\n else if(_this.isChnNumber(data[\"m\"])){\r\n str = \"chnNumber\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n else if(_this.isChnWeek2(data[\"m\"])){\r\n str = \"chnWeek2\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n else if(_this.isChnWeek3(data[\"m\"])){\r\n str = \"chnWeek3\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n else{\r\n str = \"other\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n }\r\n else{\r\n str = \"other\";\r\n extendNumberBeforeStr = null;\r\n extendNumberAfterStr = null;\r\n }\r\n\r\n if(str == \"extendNumber\"){\r\n if(b == b1){\r\n if(b1 == b2){\r\n text = str;\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n text = str;\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n }\r\n }\r\n else if(b == b2){\r\n if(text == str && isSameStr){\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n else{\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n\r\n text = str;\r\n arrData = [];\r\n arrData.push(data);\r\n arrIndex = [];\r\n arrIndex.push(b - b1 + 1);\r\n\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n }\r\n else{\r\n if(text == str && isSameStr){\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n }\r\n else{\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n\r\n text = str;\r\n arrData = [];\r\n arrData.push(data);\r\n arrIndex = [];\r\n arrIndex.push(b - b1 + 1);\r\n }\r\n }\r\n }\r\n else{\r\n if(b == b1){\r\n if(b1 == b2){\r\n text = str;\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n text = str;\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n }\r\n }\r\n else if(b == b2){\r\n if(text == str){\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n else{\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n\r\n text = str;\r\n arrData = [];\r\n arrData.push(data);\r\n arrIndex = [];\r\n arrIndex.push(b - b1 + 1);\r\n\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n }\r\n else{\r\n if(text == str){\r\n arrData.push(data);\r\n arrIndex.push(b - b1 + 1);\r\n }\r\n else{\r\n if(text in obj){\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n else{\r\n obj[text] = [];\r\n obj[text].push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n\r\n text = str;\r\n arrData = [];\r\n arrData.push(data);\r\n arrIndex = [];\r\n arrIndex.push(b - b1 + 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n copyData.push(obj);\r\n }\r\n\r\n return copyData;\r\n },\r\n getApplyData: function(copyD, csLen, asLen){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n let direction = _this.direction;\r\n let type = _this.applyType;\r\n\r\n let num = Math.floor(asLen / csLen);\r\n let rsd = asLen % csLen;\r\n\r\n //\u7EAF\u6570\u5B57\u7C7B\u578B\r\n let copyD_number = copyD[\"number\"];\r\n let applyD_number = [];\r\n if(!!copyD_number){\r\n for(let i = 0; i < copyD_number.length; i++){\r\n let s = _this.getLenS(copyD_number[i][\"index\"], rsd);\r\n let len = copyD_number[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"1\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_number[i][\"data\"], len, direction, type, \"number\");\r\n }\r\n else if(type == \"2\"){\r\n arrData = _this.getDataByType(copyD_number[i][\"data\"], len, direction, type);\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_number[i][\"data\"], len, direction, \"0\");\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_number[i][\"index\"]);\r\n applyD_number.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n //\u6269\u5C55\u6570\u5B57\u578B\uFF08\u5373\u4E00\u4E32\u5B57\u7B26\u6700\u540E\u9762\u7684\u662F\u6570\u5B57\uFF09\r\n let copyD_extendNumber = copyD[\"extendNumber\"];\r\n let applyD_extendNumber = [];\r\n if(!!copyD_extendNumber){\r\n for(let i = 0; i < copyD_extendNumber.length; i++){\r\n let s = _this.getLenS(copyD_extendNumber[i][\"index\"], rsd);\r\n let len = copyD_extendNumber[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"1\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_extendNumber[i][\"data\"], len, direction, type, \"extendNumber\");\r\n }\r\n else if(type == \"2\"){\r\n arrData = _this.getDataByType(copyD_extendNumber[i][\"data\"], len, direction, type);\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_extendNumber[i][\"data\"], len, direction, \"0\");\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_extendNumber[i][\"index\"]);\r\n applyD_extendNumber.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n //\u65E5\u671F\u7C7B\u578B\r\n let copyD_date = copyD[\"date\"];\r\n let applyD_date = [];\r\n if(!!copyD_date){\r\n for(let i = 0; i < copyD_date.length; i++){\r\n let s = _this.getLenS(copyD_date[i][\"index\"], rsd);\r\n let len = copyD_date[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"1\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_date[i][\"data\"], len, direction, type, \"date\");\r\n }\r\n else if(type == \"8\"){\r\n arrData = _this.getDataByType(copyD_date[i][\"data\"], len, direction, \"0\");\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_date[i][\"data\"], len, direction, type);\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_date[i][\"index\"]);\r\n applyD_date.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n //\u4E2D\u6587\u5C0F\u5199\u6570\u5B57 \u6216 \u4E00~\u65E5\r\n let copyD_chnNumber = copyD[\"chnNumber\"];\r\n let applyD_chnNumber = [];\r\n if(!!copyD_chnNumber){\r\n for(let i = 0; i < copyD_chnNumber.length; i++){\r\n let s = _this.getLenS(copyD_chnNumber[i][\"index\"], rsd);\r\n let len = copyD_chnNumber[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"1\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_chnNumber[i][\"data\"], len, direction, type, \"chnNumber\");\r\n }\r\n else if(type == \"2\" || type == \"8\"){\r\n arrData = _this.getDataByType(copyD_chnNumber[i][\"data\"], len, direction, type);\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_chnNumber[i][\"data\"], len, direction, \"0\");\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_chnNumber[i][\"index\"]);\r\n applyD_chnNumber.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n //\u5468\u4E00~\u5468\u65E5\r\n let copyD_chnWeek2 = copyD[\"chnWeek2\"];\r\n let applyD_chnWeek2 = [];\r\n if(!!copyD_chnWeek2){\r\n for(let i = 0; i < copyD_chnWeek2.length; i++){\r\n let s = _this.getLenS(copyD_chnWeek2[i][\"index\"], rsd);\r\n let len = copyD_chnWeek2[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"1\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_chnWeek2[i][\"data\"], len, direction, type, \"chnWeek2\");\r\n }\r\n else if(type == \"2\"){\r\n arrData = _this.getDataByType(copyD_chnWeek2[i][\"data\"], len, direction, type);\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_chnWeek2[i][\"data\"], len, direction, \"0\");\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_chnWeek2[i][\"index\"]);\r\n applyD_chnWeek2.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n //\u661F\u671F\u4E00~\u661F\u671F\u65E5\r\n let copyD_chnWeek3 = copyD[\"chnWeek3\"];\r\n let applyD_chnWeek3 = [];\r\n if(!!copyD_chnWeek3){\r\n for(let i = 0; i < copyD_chnWeek3.length; i++){\r\n let s = _this.getLenS(copyD_chnWeek3[i][\"index\"], rsd);\r\n let len = copyD_chnWeek3[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"1\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_chnWeek3[i][\"data\"], len, direction, type, \"chnWeek3\");\r\n }\r\n else if(type == \"2\"){\r\n arrData = _this.getDataByType(copyD_chnWeek3[i][\"data\"], len, direction, type);\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_chnWeek3[i][\"data\"], len, direction, \"0\");\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_chnWeek3[i][\"index\"]);\r\n applyD_chnWeek3.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n //\u5176\u5B83\r\n let copyD_other = copyD[\"other\"];\r\n let applyD_other = [];\r\n if(!!copyD_other){\r\n for(let i = 0; i < copyD_other.length; i++){\r\n let s = _this.getLenS(copyD_other[i][\"index\"], rsd);\r\n let len = copyD_other[i][\"index\"].length * num + s;\r\n\r\n let arrData;\r\n if(type == \"2\" || type == \"3\"){\r\n arrData = _this.getDataByType(copyD_other[i][\"data\"], len, direction, type);\r\n }\r\n else{\r\n arrData = _this.getDataByType(copyD_other[i][\"data\"], len, direction, \"0\");\r\n }\r\n\r\n let arrIndex = _this.getDataIndex(csLen, asLen, copyD_other[i][\"index\"]);\r\n applyD_other.push({\"data\": arrData, \"index\": arrIndex});\r\n }\r\n }\r\n\r\n for(let x = 1; x <= asLen; x++){\r\n if(applyD_number.length > 0){\r\n for(let y = 0; y < applyD_number.length; y++){\r\n if(x in applyD_number[y][\"index\"]){\r\n applyData.push(applyD_number[y][\"data\"][applyD_number[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n\r\n if(applyD_extendNumber.length > 0){\r\n for(let y = 0; y < applyD_extendNumber.length; y++){\r\n if(x in applyD_extendNumber[y][\"index\"]){\r\n applyData.push(applyD_extendNumber[y][\"data\"][applyD_extendNumber[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n\r\n if(applyD_date.length > 0){\r\n for(let y = 0; y < applyD_date.length; y++){\r\n if(x in applyD_date[y][\"index\"]){\r\n applyData.push(applyD_date[y][\"data\"][applyD_date[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n\r\n if(applyD_chnNumber.length > 0){\r\n for(let y = 0; y < applyD_chnNumber.length; y++){\r\n if(x in applyD_chnNumber[y][\"index\"]){\r\n applyData.push(applyD_chnNumber[y][\"data\"][applyD_chnNumber[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n\r\n if(applyD_chnWeek2.length > 0){\r\n for(let y = 0; y < applyD_chnWeek2.length; y++){\r\n if(x in applyD_chnWeek2[y][\"index\"]){\r\n applyData.push(applyD_chnWeek2[y][\"data\"][applyD_chnWeek2[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n\r\n if(applyD_chnWeek3.length > 0){\r\n for(let y = 0; y < applyD_chnWeek3.length; y++){\r\n if(x in applyD_chnWeek3[y][\"index\"]){\r\n applyData.push(applyD_chnWeek3[y][\"data\"][applyD_chnWeek3[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n\r\n if(applyD_other.length > 0){\r\n for(let y = 0; y < applyD_other.length; y++){\r\n if(x in applyD_other[y][\"index\"]){\r\n applyData.push(applyD_other[y][\"data\"][applyD_other[y][\"index\"][x]]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return applyData;\r\n },\r\n getLenS: function(indexArr, rsd){\r\n let s = 0;\r\n\r\n for(let j = 0; j < indexArr.length; j++){\r\n if(indexArr[j] <= rsd){\r\n s++;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n\r\n return s;\r\n },\r\n getDataIndex: function(csLen, asLen, indexArr){\r\n let obj = {};\r\n\r\n let num = Math.floor(asLen / csLen);\r\n let rsd = asLen % csLen;\r\n\r\n let sum = 0;\r\n if(num > 0){\r\n for(let i = 1; i <= num; i++){\r\n for(let j = 0; j < indexArr.length; j++){\r\n obj[indexArr[j] + (i - 1) * csLen] = sum;\r\n sum++;\r\n }\r\n }\r\n for(let a = 0; a < indexArr.length; a++){\r\n if(indexArr[a] <= rsd){\r\n obj[indexArr[a] + csLen * num] = sum;\r\n sum++;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n for(let a = 0; a < indexArr.length; a++){\r\n if(indexArr[a] <= rsd){\r\n obj[indexArr[a]] = sum;\r\n sum++;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return obj;\r\n },\r\n getDataByType: function(data, len, direction, type ,dataType){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n if(type == \"0\"){ //\u590D\u5236\u5355\u5143\u683C\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n else if(type == \"1\"){ //\u586B\u5145\u5E8F\u5217\r\n if(dataType == \"number\"){\r\n //\u6570\u636E\u7C7B\u578B\u662F \u6570\u5B57\r\n applyData = _this.FillSeries(data, len, direction);\r\n }\r\n else if(dataType == \"extendNumber\"){\r\n //\u6269\u5C55\u6570\u5B57\r\n if(data.length == 1){\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillExtendNumber(data, len, step);\r\n }\r\n else{\r\n let dataNumArr = [];\r\n\r\n for(let i = 0; i < data.length; i++){\r\n let txt = data[i][\"m\"];\r\n dataNumArr.push(Number(_this.isExtendNumber(txt)[1]));\r\n }\r\n\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n dataNumArr.reverse();\r\n }\r\n\r\n if(_this.isEqualDiff(dataNumArr)){\r\n //\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u7B49\u5DEE\u4E3Astep\r\n let step = dataNumArr[1] - dataNumArr[0];\r\n applyData = _this.FillExtendNumber(data, len, step);\r\n }\r\n else{\r\n //\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(dataType == \"date\"){\r\n //\u6570\u636E\u7C7B\u578B\u662F \u65E5\u671F\r\n if(data.length == 1){\r\n //\u4EE5\u4E00\u5929\u4E3Astep\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillDays(data, len, step);\r\n }\r\n else{\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let judgeDate = _this.judgeDate(data);\r\n if(judgeDate[0] && judgeDate[3]){\r\n //\u65E5\u4E00\u6837\uFF0C\u6708\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u6708\u5DEE\u4E3Astep\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n applyData = _this.FillMonths(data, len, step);\r\n }\r\n else if(!judgeDate[0] && judgeDate[2]){\r\n //\u65E5\u4E0D\u4E00\u6837\uFF0C\u65E5\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u65E5\u5DEE\u4E3Astep\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"days\");\r\n applyData = _this.FillDays(data, len, step);\r\n }\r\n else{\r\n //\u5176\u5B83\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(dataType == \"chnNumber\"){\r\n //\u6570\u636E\u7C7B\u578B\u662F \u4E2D\u6587\u5C0F\u5199\u6570\u5B57\r\n if(data.length == 1){\r\n if(data[0][\"m\"] == \"\u65E5\" || _this.ChineseToNumber(data[0][\"m\"]) < 7){\r\n //\u6570\u5B57\u5C0F\u4E8E7\uFF0C\u4EE5\u5468\u4E00~\u5468\u65E5\u5E8F\u5217\u586B\u5145\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillChnWeek(data, len, step);\r\n }\r\n else{\r\n //\u6570\u5B57\u5927\u4E8E7\uFF0C\u4EE5\u4E2D\u6587\u5C0F\u5199\u6570\u5B57\u5E8F\u5217\u586B\u5145\r\n let step\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillChnNumber(data, len, step);\r\n }\r\n }\r\n else{\r\n let hasweek = false;\r\n for(let i = 0; i < data.length; i++){\r\n if(data[i][\"m\"] == \"\u65E5\"){\r\n hasweek = true;\r\n break;\r\n }\r\n }\r\n\r\n let dataNumArr = [];\r\n let weekIndex = 0;\r\n for(let i = 0; i < data.length; i++){\r\n if(data[i][\"m\"] == \"\u65E5\"){\r\n if(i == 0){\r\n dataNumArr.push(0);\r\n }\r\n else{\r\n weekIndex++;\r\n dataNumArr.push(weekIndex * 7);\r\n }\r\n }\r\n else if(hasweek && _this.ChineseToNumber(data[i][\"m\"]) > 0 && _this.ChineseToNumber(data[i][\"m\"]) < 7){\r\n dataNumArr.push(_this.ChineseToNumber(data[i][\"m\"]) + weekIndex * 7);\r\n }\r\n else{\r\n dataNumArr.push(_this.ChineseToNumber(data[i][\"m\"]));\r\n }\r\n }\r\n\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n dataNumArr.reverse();\r\n }\r\n\r\n if(_this.isEqualDiff(dataNumArr)){\r\n if(hasweek || (dataNumArr[dataNumArr.length - 1] < 6 && dataNumArr[0] > 0) || (dataNumArr[0] < 6 && dataNumArr[dataNumArr.length - 1] > 0)){\r\n //\u4EE5\u5468\u4E00~\u5468\u65E5\u5E8F\u5217\u586B\u5145\r\n let step = dataNumArr[1] - dataNumArr[0];\r\n applyData = _this.FillChnWeek(data, len, step);\r\n }\r\n else{\r\n //\u4EE5\u4E2D\u6587\u5C0F\u5199\u6570\u5B57\u5E8F\u5217\u586B\u5145\r\n let step = dataNumArr[1] - dataNumArr[0];\r\n applyData = _this.FillChnNumber(data, len, step);\r\n }\r\n }\r\n else{\r\n //\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(dataType == \"chnWeek2\"){\r\n //\u5468\u4E00~\u5468\u65E5\r\n if(data.length == 1){\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillChnWeek2(data, len, step);\r\n }\r\n else{\r\n let dataNumArr = [];\r\n let weekIndex = 0;\r\n\r\n for(let i = 0; i < data.length; i++){\r\n let lastTxt = data[i][\"m\"].substr(data[i][\"m\"].length - 1, 1);\r\n if(data[i][\"m\"] == \"\u5468\u65E5\"){\r\n if(i == 0){\r\n dataNumArr.push(0);\r\n }\r\n else{\r\n weekIndex++;\r\n dataNumArr.push(weekIndex * 7);\r\n }\r\n }\r\n else{\r\n dataNumArr.push(_this.ChineseToNumber(lastTxt) + weekIndex * 7);\r\n }\r\n }\r\n\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n dataNumArr.reverse();\r\n }\r\n\r\n if(_this.isEqualDiff(dataNumArr)){\r\n //\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u7B49\u5DEE\u4E3Astep\r\n let step = dataNumArr[1] - dataNumArr[0];\r\n applyData = _this.FillChnWeek2(data, len, step);\r\n }\r\n else{\r\n //\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(dataType == \"chnWeek3\"){\r\n //\u661F\u671F\u4E00~\u661F\u671F\u65E5\r\n if(data.length == 1){\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillChnWeek3(data, len, step);\r\n }\r\n else{\r\n let dataNumArr = [];\r\n let weekIndex = 0;\r\n\r\n for(let i = 0; i < data.length; i++){\r\n let lastTxt = data[i][\"m\"].substr(data[i][\"m\"].length - 1, 1);\r\n if(data[i][\"m\"] == \"\u661F\u671F\u65E5\"){\r\n if(i == 0){\r\n dataNumArr.push(0);\r\n }\r\n else{\r\n weekIndex++;\r\n dataNumArr.push(weekIndex * 7);\r\n }\r\n }\r\n else{\r\n dataNumArr.push(_this.ChineseToNumber(lastTxt) + weekIndex * 7);\r\n }\r\n }\r\n\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n dataNumArr.reverse();\r\n }\r\n\r\n if(_this.isEqualDiff(dataNumArr)){\r\n //\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u7B49\u5DEE\u4E3Astep\r\n let step = dataNumArr[1] - dataNumArr[0];\r\n applyData = _this.FillChnWeek3(data, len, step);\r\n }\r\n else{\r\n //\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else{\r\n //\u6570\u636E\u7C7B\u578B\u662F \u5176\u5B83\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n else if(type == \"2\"){ //\u4EC5\u586B\u5145\u683C\u5F0F\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n applyData = _this.FillOnlyFormat(data, len);\r\n }\r\n else if(type == \"3\"){ //\u4E0D\u5E26\u683C\u5F0F\u586B\u5145\r\n let dataArr = _this.getDataByType(data, len, direction, \"1\" ,dataType);\r\n applyData = _this.FillWithoutFormat(dataArr);\r\n }\r\n else if(type == \"4\"){ //\u4EE5\u5929\u6570\u586B\u5145\r\n if(data.length == 1){\r\n //\u4EE5\u4E00\u5929\u4E3Astep\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillDays(data, len, step);\r\n }\r\n else if(data.length == 2){\r\n //\u4EE5\u65E5\u5DEE\u4E3Astep\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"days\");\r\n applyData = _this.FillDays(data, len, step);\r\n }\r\n else{\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let judgeDate = _this.judgeDate(data);\r\n if(judgeDate[0] && judgeDate[3]){\r\n //\u65E5\u4E00\u6837\uFF0C\u4E14\u6708\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u6708\u5DEE\u4E3Astep\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n applyData = _this.FillMonths(data, len, step);\r\n }\r\n else if(!judgeDate[0] && judgeDate[2]){\r\n //\u65E5\u4E0D\u4E00\u6837\uFF0C\u4E14\u65E5\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u65E5\u5DEE\u4E3Astep\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"days\");\r\n applyData = _this.FillDays(data, len, step);\r\n }\r\n else{\r\n //\u65E5\u5DEE\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(type == \"5\"){ //\u4EE5\u5DE5\u4F5C\u65E5\u586B\u5145\r\n if(data.length == 1){\r\n //\u4EE5\u4E00\u5929\u4E3Astep\uFF08\u82E5\u90A3\u5929\u4E3A\u4F11\u606F\u65E5\uFF0C\u5219\u8DF3\u8FC7\uFF09\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n let newLen = Math.round(len * 1.5);\r\n for(let i = 1; i <= newLen; i++){\r\n let d = $.extend(true, {}, data[0]);\r\n\r\n let day = dayjs(d[\"m\"]).add(i, \"days\").day();\r\n if(day == 0 || day == 6){\r\n continue;\r\n }\r\n\r\n let date = dayjs(d[\"m\"]).add(step * i, \"days\").format(\"YYYY-MM-DD\");\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n\r\n if(applyData.length == len){\r\n break;\r\n }\r\n }\r\n }\r\n else if(data.length == 2){\r\n if(dayjs(data[1][\"m\"]).date() == dayjs(data[0][\"m\"]).date() && dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\") != 0){\r\n //\u65E5\u4E00\u6837\uFF0C\u4E14\u6708\u5DEE\u5927\u4E8E\u4E00\u6708\uFF0C\u4EE5\u6708\u5DEE\u4E3Astep\uFF08\u82E5\u90A3\u5929\u4E3A\u4F11\u606F\u65E5\uFF0C\u5219\u5411\u524D\u53D6\u6700\u8FD1\u7684\u5DE5\u4F5C\u65E5\uFF09\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let day = dayjs(data[data.length - 1]).add(step * i, \"months\").day(),\r\n date;\r\n if(day == 0){\r\n date = dayjs(data[data.length - 1]).add(step * i, \"months\").subtract(2, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else if(day == 6){\r\n date = dayjs(data[data.length - 1]).add(step * i, \"months\").subtract(1, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else{\r\n date = dayjs(data[data.length - 1]).add(step * i, \"months\").format(\"YYYY-MM-DD\");\r\n }\r\n\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n else{\r\n //\u65E5\u4E0D\u4E00\u6837\r\n if(Math.abs(dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]))) > 7){\r\n //\u82E5\u65E5\u5DEE\u5927\u4E8E7\u5929\uFF0C\u4EE5\u4E00\u6708\u4E3Astep\uFF08\u82E5\u90A3\u5929\u662F\u4F11\u606F\u65E5\uFF0C\u5219\u5411\u524D\u53D6\u6700\u8FD1\u7684\u5DE5\u4F5C\u65E5\uFF09\r\n let step_month;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_month = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_month = -1;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_month * num, \"months\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let day = dayjs(d[\"m\"]).add(step, \"days\").day(),\r\n date;\r\n if(day == 0){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(2, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else if(day == 6){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(1, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else{\r\n date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n else{\r\n //\u82E5\u65E5\u5DEE\u5C0F\u4E8E\u7B49\u4E8E7\u5929\uFF0C\u4EE57\u5929\u4E3Astep\uFF08\u82E5\u90A3\u5929\u662F\u4F11\u606F\u65E5\uFF0C\u5219\u5411\u524D\u53D6\u6700\u8FD1\u7684\u5DE5\u4F5C\u65E5\uFF09\r\n let step_day;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_day = 7;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_day = -7;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_day * num, \"days\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let day = dayjs(d[\"m\"]).add(step, \"days\").day(),\r\n date;\r\n if(day == 0){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(2, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else if(day == 6){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(1, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else{\r\n date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n let judgeDate = _this.judgeDate(data);\r\n if(judgeDate[0] && judgeDate[3]){\r\n //\u65E5\u4E00\u6837\uFF0C\u4E14\u6708\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u6708\u5DEE\u4E3Astep\uFF08\u82E5\u90A3\u5929\u4E3A\u4F11\u606F\u65E5\uFF0C\u5219\u5411\u524D\u53D6\u6700\u8FD1\u7684\u5DE5\u4F5C\u65E5\uFF09\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let day = dayjs(data[data.length - 1][\"m\"]).add(step * i, \"months\").day(),\r\n date;\r\n if(day == 0){\r\n date = dayjs(data[data.length - 1][\"m\"]).add(step * i, \"months\").subtract(2, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else if(day == 6){\r\n date = dayjs(data[data.length - 1][\"m\"]).add(step * i, \"months\").subtract(1, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else{\r\n date = dayjs(data[data.length - 1][\"m\"]).add(step * i, \"months\").format(\"YYYY-MM-DD\");\r\n }\r\n\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n else if(!judgeDate[0] && judgeDate[2]){\r\n //\u65E5\u4E0D\u4E00\u6837\uFF0C\u4E14\u65E5\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\r\n if(Math.abs(dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]))) > 7){\r\n //\u82E5\u65E5\u5DEE\u5927\u4E8E7\u5929\uFF0C\u4EE5\u4E00\u6708\u4E3Astep\uFF08\u82E5\u90A3\u5929\u662F\u4F11\u606F\u65E5\uFF0C\u5219\u5411\u524D\u53D6\u6700\u8FD1\u7684\u5DE5\u4F5C\u65E5\uFF09\r\n let step_month\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_month = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_month = -1;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_month * num, \"months\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let day = dayjs(d[\"m\"]).add(step, \"days\").day(),\r\n date;\r\n if(day == 0){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(2, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else if(day == 6){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(1, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else{\r\n date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n else{\r\n //\u82E5\u65E5\u5DEE\u5C0F\u4E8E\u7B49\u4E8E7\u5929\uFF0C\u4EE57\u5929\u4E3Astep\uFF08\u82E5\u90A3\u5929\u662F\u4F11\u606F\u65E5\uFF0C\u5219\u5411\u524D\u53D6\u6700\u8FD1\u7684\u5DE5\u4F5C\u65E5\uFF09\r\n let step_day;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_day = 7;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_day = -7;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_day * num, \"days\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let day = dayjs(d[\"m\"]).add(step, \"days\").day(),\r\n date;\r\n if(day == 0){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(2, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else if(day == 6){\r\n date = dayjs(d[\"m\"]).add(step, \"days\").subtract(1, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n else{\r\n date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n }\r\n\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n }\r\n else{\r\n //\u65E5\u5DEE\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(type == \"6\"){ //\u4EE5\u6708\u586B\u5145\r\n if(data.length == 1){\r\n //\u4EE5\u4E00\u6708\u4E3Astep\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillMonths(data, len, step);\r\n }\r\n else if(data.length == 2){\r\n if(dayjs(data[1][\"m\"]).date() == dayjs(data[0][\"m\"]).date() && dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\") != 0){\r\n //\u65E5\u4E00\u6837\uFF0C\u4E14\u6708\u5DEE\u5927\u4E8E\u4E00\u6708\uFF0C\u4EE5\u6708\u5DEE\u4E3Astep\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n applyData = _this.FillMonths(data, len, step);\r\n }\r\n else{\r\n //\u4EE5\u4E00\u6708\u4E3Astep\r\n let step_month;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_month = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_month = -1;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_month * num, \"months\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n }\r\n else{\r\n let judgeDate = _this.judgeDate(data);\r\n if(judgeDate[0] && judgeDate[3]){\r\n //\u65E5\u4E00\u6837\uFF0C\u4E14\u6708\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u6708\u5DEE\u4E3Astep\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n applyData = _this.FillMonths(data, len, step);\r\n }\r\n else if(!judgeDate[0] && judgeDate[2]){\r\n //\u65E5\u4E0D\u4E00\u6837\uFF0C\u4E14\u65E5\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u4E00\u6708\u4E3Astep\r\n let step_month;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_month = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_month = -1;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_month * num, \"months\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n else{\r\n //\u65E5\u5DEE\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(type == \"7\"){ //\u4EE5\u5E74\u586B\u5145\r\n if(data.length == 1){\r\n //\u4EE5\u4E00\u5E74\u4E3Astep\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillYears(data, len, step);\r\n }\r\n else if(data.length == 2){\r\n if(dayjs(data[1][\"m\"]).date() == dayjs(data[0][\"m\"]).date() && dayjs(data[1][\"m\"]).month() == dayjs(data[0][\"m\"]).month() && dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"years\") != 0){\r\n //\u65E5\u6708\u4E00\u6837\uFF0C\u4E14\u5E74\u5DEE\u5927\u4E8E\u4E00\u5E74\uFF0C\u4EE5\u5E74\u5DEE\u4E3Astep\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"years\");\r\n applyData = _this.FillYears(data, len, step);\r\n }\r\n else{\r\n //\u4EE5\u4E00\u5E74\u4E3Astep\r\n let step_year;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_year = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_year = -1;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_year * num, \"years\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n }\r\n else{\r\n let judgeDate = _this.judgeDate(data);\r\n if(judgeDate[0] && judgeDate[1] && judgeDate[4]){\r\n //\u65E5\u6708\u4E00\u6837\uFF0C\u4E14\u5E74\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u5E74\u5DEE\u4E3Astep\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n let step = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"years\");\r\n applyData = _this.FillYears(data, len, step);\r\n }\r\n else if((judgeDate[0] && judgeDate[3]) || judgeDate[2]){\r\n //\u65E5\u4E00\u6837\u4E14\u6708\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u6216\u5929\u5DEE\u4E3A\u7B49\u5DEE\u6570\u5217\uFF0C\u4EE5\u4E00\u5E74\u4E3Astep\r\n let step_year;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step_year = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step_year = -1;\r\n data.reverse();\r\n }\r\n\r\n let step; //\u4EE5\u6570\u7EC4\u7B2C\u4E00\u4E2A\u4E3A\u5BF9\u6BD4\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = Math.ceil(i / data.length);\r\n if(index == 0){\r\n step = dayjs(d[\"m\"]).add(step_year * num, \"years\").diff(dayjs(d[\"m\"]), \"days\");\r\n }\r\n\r\n let date = dayjs(d[\"m\"]).add(step, \"days\").format(\"YYYY-MM-DD\");\r\n d[\"m\"] = date;\r\n d[\"v\"] = genarate(date)[2];\r\n applyData.push(d);\r\n }\r\n }\r\n else{\r\n //\u65E5\u5DEE\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n }\r\n\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n else if(type == \"8\"){ //\u4EE5\u4E2D\u6587\u5C0F\u5199\u6570\u5B57\u5E8F\u5217\u586B\u5145\r\n if(data.length == 1){\r\n let step;\r\n if(direction == \"down\" || direction == \"right\"){\r\n step = 1;\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n step = -1;\r\n }\r\n\r\n applyData = _this.FillChnNumber(data, len, step);\r\n }\r\n else{\r\n let dataNumArr = [];\r\n for(let i = 0; i < data.length; i++){\r\n dataNumArr.push(_this.ChineseToNumber(data[i][\"m\"]));\r\n }\r\n\r\n if(direction == \"up\" || direction == \"left\"){\r\n data.reverse();\r\n dataNumArr.reverse();\r\n }\r\n\r\n if(_this.isEqualDiff(dataNumArr)){\r\n let step = dataNumArr[1] - dataNumArr[0];\r\n applyData = _this.FillChnNumber(data, len, step);\r\n }\r\n else{\r\n //\u4E0D\u662F\u7B49\u5DEE\u6570\u5217\uFF0C\u590D\u5236\u6570\u636E\r\n applyData = _this.FillCopy(data, len);\r\n }\r\n }\r\n }\r\n\r\n return applyData;\r\n },\r\n FillCopy: function(data, len){\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillSeries: function(data, len, direction){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n let dataNumArr = [];\r\n for(let j = 0; j < data.length; j++){\r\n dataNumArr.push(Number(data[j][\"v\"]));\r\n }\r\n\r\n if(data.length > 2 && _this.isEqualRatio(dataNumArr)){\r\n //\u7B49\u6BD4\u6570\u5217\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num;\r\n if(direction == \"down\" || direction == \"right\"){\r\n num = Number(data[data.length -1][\"v\"]) * Math.pow(Number(data[1][\"v\"]) / Number(data[0][\"v\"]), i);\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n num = Number(data[0][\"v\"]) / Math.pow(Number(data[1][\"v\"]) / Number(data[0][\"v\"]), i);\r\n }\r\n\r\n d[\"v\"] = num;\r\n d[\"m\"] = update(d[\"ct\"][\"fa\"], num);\r\n applyData.push(d);\r\n }\r\n }\r\n else{\r\n //\u7EBF\u6027\u6570\u5217\r\n let xArr = _this.getXArr(data.length);\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let y;\r\n if(direction == \"down\" || direction == \"right\"){\r\n y = _this.forecast(data.length + i, dataNumArr, xArr);\r\n }\r\n else if(direction == \"up\" || direction == \"left\"){\r\n y = _this.forecast(1 - i, dataNumArr, xArr);\r\n }\r\n\r\n d[\"v\"] = y;\r\n d[\"m\"] = update(d[\"ct\"][\"fa\"], y);\r\n applyData.push(d);\r\n }\r\n }\r\n\r\n return applyData;\r\n },\r\n FillExtendNumber: function(data, len, step){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n let reg = /0|([1-9]+[0-9]*)/g;\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let last = data[data.length - 1][\"m\"];\r\n let match = last.match(reg)\r\n let lastTxt = match[match.length -1];\r\n \r\n let num = Math.abs(Number(lastTxt) + step * i);\r\n let lastIndex = last.lastIndexOf(lastTxt);\r\n let valueTxt = last.substr(0, lastIndex) + num.toString() + last.substr(lastIndex + lastTxt.length);\r\n\r\n d[\"v\"] = valueTxt;\r\n d[\"m\"] = valueTxt;\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillOnlyFormat: function(data, len){\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n delete d[\"f\"];\r\n delete d[\"m\"];\r\n delete d[\"v\"];\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillWithoutFormat: function(dataArr){\r\n let applyData = [];\r\n\r\n for(let i = 0; i < dataArr.length; i++){\r\n let d = $.extend(true, {}, dataArr[i]);\r\n\r\n let obj;\r\n if(d[\"f\"] == null){\r\n obj = {\"m\": d[\"v\"].toString(), \"v\": d[\"v\"]};\r\n }\r\n else{\r\n obj = {\"f\": d[\"f\"], \"m\": d[\"v\"].toString(), \"v\": d[\"v\"]};\r\n }\r\n\r\n applyData.push(obj);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillDays: function(data, len, step){\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let date = update(\"yyyy-MM-dd\", d[\"v\"]);\r\n date = dayjs(date).add(step * i, \"days\").format(\"YYYY-MM-DD\");\r\n\r\n d[\"v\"] = genarate(date)[2];\r\n d[\"m\"] = update(d[\"ct\"][\"fa\"], d[\"v\"]);\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillMonths: function(data, len, step){\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let date = update(\"yyyy-MM-dd\", d[\"v\"]);\r\n date = dayjs(date).add(step * i, \"months\").format(\"YYYY-MM-DD\");\r\n\r\n d[\"v\"] = genarate(date)[2];\r\n d[\"m\"] = update(d[\"ct\"][\"fa\"], d[\"v\"]);\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillYears: function(data, len, step){\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let date = update(\"yyyy-MM-dd\", d[\"v\"]);\r\n date = dayjs(date).add(step * i, \"years\").format(\"YYYY-MM-DD\");\r\n\r\n d[\"v\"] = genarate(date)[2];\r\n d[\"m\"] = update(d[\"ct\"][\"fa\"], d[\"v\"]);\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillChnWeek: function(data, len, step){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num;\r\n if(data[data.length - 1][\"m\"] == \"\u65E5\"){\r\n num = 7 + step * i;\r\n }\r\n else{\r\n num = _this.ChineseToNumber(data[data.length - 1][\"m\"]) + step * i;\r\n }\r\n\r\n if(num < 0){\r\n num = Math.ceil(Math.abs(num) / 7) * 7 + num;\r\n }\r\n\r\n let rsd = num % 7;\r\n if(rsd == 0){\r\n d[\"m\"] = \"\u65E5\";\r\n d[\"v\"] = \"\u65E5\";\r\n }\r\n else if(rsd == 1){\r\n d[\"m\"] = \"\u4E00\";\r\n d[\"v\"] = \"\u4E00\";\r\n }\r\n else if(rsd == 2){\r\n d[\"m\"] = \"\u4E8C\";\r\n d[\"v\"] = \"\u4E8C\";\r\n }\r\n else if(rsd == 3){\r\n d[\"m\"] = \"\u4E09\";\r\n d[\"v\"] = \"\u4E09\";\r\n }\r\n else if(rsd == 4){\r\n d[\"m\"] = \"\u56DB\";\r\n d[\"v\"] = \"\u56DB\";\r\n }\r\n else if(rsd == 5){\r\n d[\"m\"] = \"\u4E94\";\r\n d[\"v\"] = \"\u4E94\";\r\n }\r\n else if(rsd == 6){\r\n d[\"m\"] = \"\u516D\";\r\n d[\"v\"] = \"\u516D\";\r\n }\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillChnWeek2: function(data, len, step){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num;\r\n if(data[data.length - 1][\"m\"] == \"\u5468\u65E5\"){\r\n num = 7 + step * i;\r\n }\r\n else{\r\n let last = data[data.length - 1][\"m\"];\r\n let txt = last.substr(last.length - 1, 1);\r\n num = _this.ChineseToNumber(txt) + step * i;\r\n }\r\n\r\n if(num < 0){\r\n num = Math.ceil(Math.abs(num) / 7) * 7 + num;\r\n }\r\n\r\n let rsd = num % 7;\r\n if(rsd == 0){\r\n d[\"m\"] = \"\u5468\u65E5\";\r\n d[\"v\"] = \"\u5468\u65E5\";\r\n }\r\n else if(rsd == 1){\r\n d[\"m\"] = \"\u5468\u4E00\";\r\n d[\"v\"] = \"\u5468\u4E00\";\r\n }\r\n else if(rsd == 2){\r\n d[\"m\"] = \"\u5468\u4E8C\";\r\n d[\"v\"] = \"\u5468\u4E8C\";\r\n }\r\n else if(rsd == 3){\r\n d[\"m\"] = \"\u5468\u4E09\";\r\n d[\"v\"] = \"\u5468\u4E09\";\r\n }\r\n else if(rsd == 4){\r\n d[\"m\"] = \"\u5468\u56DB\";\r\n d[\"v\"] = \"\u5468\u56DB\";\r\n }\r\n else if(rsd == 5){\r\n d[\"m\"] = \"\u5468\u4E94\";\r\n d[\"v\"] = \"\u5468\u4E94\";\r\n }\r\n else if(rsd == 6){\r\n d[\"m\"] = \"\u5468\u516D\";\r\n d[\"v\"] = \"\u5468\u516D\";\r\n }\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillChnWeek3: function(data, len, step){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num;\r\n if(data[data.length - 1][\"m\"] == \"\u661F\u671F\u65E5\"){\r\n num = 7 + step * i;\r\n }\r\n else{\r\n let last = data[data.length - 1][\"m\"];\r\n let txt = last.substr(last.length - 1, 1);\r\n num = _this.ChineseToNumber(txt) + step * i;\r\n }\r\n\r\n if(num < 0){\r\n num = Math.ceil(Math.abs(num) / 7) * 7 + num;\r\n }\r\n\r\n let rsd = num % 7;\r\n if(rsd == 0){\r\n d[\"m\"] = \"\u661F\u671F\u65E5\";\r\n d[\"v\"] = \"\u661F\u671F\u65E5\";\r\n }\r\n else if(rsd == 1){\r\n d[\"m\"] = \"\u661F\u671F\u4E00\";\r\n d[\"v\"] = \"\u661F\u671F\u4E00\";\r\n }\r\n else if(rsd == 2){\r\n d[\"m\"] = \"\u661F\u671F\u4E8C\";\r\n d[\"v\"] = \"\u661F\u671F\u4E8C\";\r\n }\r\n else if(rsd == 3){\r\n d[\"m\"] = \"\u661F\u671F\u4E09\";\r\n d[\"v\"] = \"\u661F\u671F\u4E09\";\r\n }\r\n else if(rsd == 4){\r\n d[\"m\"] = \"\u661F\u671F\u56DB\";\r\n d[\"v\"] = \"\u661F\u671F\u56DB\";\r\n }\r\n else if(rsd == 5){\r\n d[\"m\"] = \"\u661F\u671F\u4E94\";\r\n d[\"v\"] = \"\u661F\u671F\u4E94\";\r\n }\r\n else if(rsd == 6){\r\n d[\"m\"] = \"\u661F\u671F\u516D\";\r\n d[\"v\"] = \"\u661F\u671F\u516D\";\r\n }\r\n\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n FillChnNumber: function(data, len, step){\r\n let _this = this;\r\n\r\n let applyData = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n let index = (i - 1) % data.length;\r\n let d = $.extend(true, {}, data[index]);\r\n\r\n let num = _this.ChineseToNumber(data[data.length - 1][\"m\"]) + step * i,\r\n txt;\r\n if(num <= 0){\r\n txt = \"\u96F6\";\r\n }\r\n else{\r\n txt = _this.NumberToChinese(num);\r\n }\r\n\r\n d[\"v\"] = txt;\r\n d[\"m\"] = txt.toString();\r\n applyData.push(d);\r\n }\r\n\r\n return applyData;\r\n },\r\n isEqualDiff: function(arr){\r\n let diff = true;\r\n let step = arr[1] - arr[0];\r\n\r\n for(let i = 1; i < arr.length; i++){\r\n if(arr[i] - arr[i - 1] != step){\r\n diff = false;\r\n break;\r\n }\r\n }\r\n\r\n return diff;\r\n },\r\n isEqualRatio: function(arr){\r\n let ratio = true;\r\n let step = arr[1] / arr[0];\r\n\r\n for(let i = 1; i < arr.length; i++){\r\n if(arr[i] / arr[i - 1] != step){\r\n ratio = false;\r\n break;\r\n }\r\n }\r\n\r\n return ratio;\r\n },\r\n getXArr: function(len){\r\n let xArr = [];\r\n\r\n for(let i = 1; i <= len; i++){\r\n xArr.push(i);\r\n }\r\n\r\n return xArr;\r\n },\r\n forecast: function(x, yArr, xArr){\r\n function getAverage(arr){\r\n let sum = 0;\r\n\r\n for(let i = 0; i < arr.length; i++){\r\n sum += arr[i];\r\n }\r\n\r\n return sum / arr.length;\r\n }\r\n\r\n let ax = getAverage(xArr); //x\u6570\u7EC4 \u5E73\u5747\u503C\r\n let ay = getAverage(yArr); //y\u6570\u7EC4 \u5E73\u5747\u503C\r\n\r\n let sum_d = 0, sum_n = 0;\r\n for(let j = 0; j < xArr.length; j++){\r\n //\u5206\u6BCD\u548C\r\n sum_d += (xArr[j] - ax)*(yArr[j] - ay);\r\n //\u5206\u5B50\u548C\r\n sum_n += (xArr[j] - ax)*(xArr[j] - ax);\r\n }\r\n\r\n let b;\r\n if(sum_n == 0){\r\n b = 1;\r\n }\r\n else{\r\n b = sum_d / sum_n;\r\n }\r\n\r\n let a = ay - b * ax;\r\n\r\n return Math.round((a + b * x) * 100000) / 100000;\r\n },\r\n judgeDate: function(data){\r\n let isSameDay = true,\r\n isSameMonth = true,\r\n isEqualDiffDays = true,\r\n isEqualDiffMonths = true,\r\n isEqualDiffYears = true;\r\n let sameDay = dayjs(data[0][\"m\"]).date(),\r\n sameMonth = dayjs(data[0][\"m\"]).month();\r\n let equalDiffDays = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"days\");\r\n let equalDiffMonths = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"months\");\r\n let equalDiffYears = dayjs(data[1][\"m\"]).diff(dayjs(data[0][\"m\"]), \"years\");\r\n\r\n for(let i = 1; i < data.length; i++){\r\n //\u65E5\u662F\u5426\u4E00\u6837\r\n if(dayjs(data[i][\"m\"]).date() != sameDay){\r\n isSameDay = false;\r\n }\r\n //\u6708\u662F\u5426\u4E00\u6837\r\n if(dayjs(data[i][\"m\"]).month() != sameMonth){\r\n isSameMonth = false;\r\n }\r\n //\u65E5\u5DEE\u662F\u5426\u662F \u7B49\u5DEE\u6570\u5217\r\n if(dayjs(data[i][\"m\"]).diff(dayjs(data[i - 1][\"m\"]), \"days\") != equalDiffDays){\r\n isEqualDiffDays = false;\r\n }\r\n //\u6708\u5DEE\u662F\u5426\u662F \u7B49\u5DEE\u6570\u5217\r\n if(dayjs(data[i][\"m\"]).diff(dayjs(data[i - 1][\"m\"]), \"months\") != equalDiffMonths){\r\n isEqualDiffMonths = false;\r\n }\r\n //\u5E74\u5DEE\u662F\u5426\u662F \u7B49\u5DEE\u6570\u5217\r\n if(dayjs(data[i][\"m\"]).diff(dayjs(data[i - 1][\"m\"]), \"years\") != equalDiffYears){\r\n isEqualDiffYears = false;\r\n }\r\n }\r\n\r\n if(equalDiffDays == 0){\r\n isEqualDiffDays = false;\r\n }\r\n if(equalDiffMonths == 0){\r\n isEqualDiffMonths = false;\r\n }\r\n if(equalDiffYears == 0){\r\n isEqualDiffYears = false;\r\n }\r\n\r\n return [isSameDay, isSameMonth, isEqualDiffDays, isEqualDiffMonths, isEqualDiffYears];\r\n }\r\n}\r\n\r\nexport default luckysheetDropCell;\r\n", "import { getSheetIndex } from '../methods/get';\r\nimport { luckysheet_searcharray } from './sheetSearch';\r\nimport { selectHightlightShow } from './select';\r\nimport { createFilterOptions } from './filter';\r\nimport server from './server';\r\nimport menuButton from './menuButton';\r\nimport luckysheetPostil from './postil';\r\nimport luckysheetDropCell from './dropCell';\r\nimport { rowLocationByIndex, colLocationByIndex } from '../global/location';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport { luckysheetrefreshgrid } from '../global/refresh';\r\n\r\n\r\nconst luckysheetFreezen = {\r\n freezenHorizontalHTML: '
 
',\r\n freezenVerticalHTML: '
 
',\r\n initialHorizontal: true,\r\n initialVertical: true,\r\n horizontalmovestate: false,\r\n horizontalmoveposition: null,\r\n verticalmovestate: false,\r\n verticalmoveposition: null,\r\n windowHeight: null,\r\n windowWidth: null,\r\n freezenhorizontaldata: null,\r\n freezenverticaldata: null,\r\n // \u5B9A\u4E49\u51BB\u7ED3\u9996\u884C\u3001\u9996\u5217\u662F\u5B9E\u9645\u7684\u7B2C\u4E00\u884C\u7B2C\u4E00\u5217\u8FD8\u662F\u5F53\u524D\u89C6\u56FE\u7684\u7B2C\u4E00\u884C\u7B2C\u4E00\u5217\r\n // excel \u4E3A\u89C6\u56FE\u7684\u7B2C\u4E00\u884C\u7B2C\u4E00\u5217\uFF0C\u4F46\u6B64\u5904\u5B9E\u73B0\u6709\u95EE\u9898\uFF0C\u5982\u6EDA\u52A8\u523015\u884C\u51BB\u7ED3\u9996\u884C\uFF0C\u5F53\u524D\u51BB\u7ED3\u4E8615\u884C\uFF0C\u4FDD\u5B58\u518D\u8FDB\u53BB\u5B9E\u9645\u51BB\u7ED3\u4E86\u7B2C\u4E00\u884C\r\n // \u51BB\u7ED3\u771F\u5B9E\u7684\u7B2C\u4E00\u884C\u3001\u7B2C\u4E00\u5217\u66F4\u7B26\u5408\u76F4\u89C9\r\n freezenRealFirstRowColumn: true, \r\n cutVolumn: function (arr, cutindex) {\r\n if(cutindex <= 0){\r\n return arr;\r\n }\r\n\r\n let pre = arr.slice(0, cutindex);\r\n let premax = pre[pre.length - 1];\r\n let ret = arr.slice(cutindex);\r\n \r\n // for (let i = 0; i < ret.length; i++) {\r\n // ret[i] -= premax;\r\n // }\r\n\r\n return ret;\r\n },\r\n cancelFreezenVertical: function (sheetIndex) {\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const locale_freezen = _locale.freezen;\r\n // \u89E3\u51B3freeze \u4E0D\u5782\u76F4\u5C45\u4E2D\u7684\u95EE\u9898\r\n const freezeHTML = `\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${locale_freezen.default}\r\n
\r\n
\r\n
\r\n `\r\n\r\n $(\"#luckysheet-freezen-btn-horizontal\").html(freezeHTML);\r\n\r\n $(\"#luckysheet-freezen-btn-vertical\").html(' '+locale_freezen.freezenColumn);\r\n _this.freezenverticaldata = null;\r\n let isvertical = $(\"#luckysheet-freezebar-vertical\").is(\":visible\");\r\n $(\"#luckysheet-freezebar-vertical\").hide();\r\n\r\n if (sheetIndex == null) {\r\n sheetIndex = Store.currentSheetIndex;\r\n }\r\n\r\n let currentSheet = Store.luckysheetfile[getSheetIndex(sheetIndex)];\r\n if (currentSheet.freezen != null) {\r\n currentSheet.freezen.vertical = null;\r\n }\r\n\r\n if(currentSheet.frozen != null && isvertical){\r\n server.saveParam(\"all\", sheetIndex, currentSheet.frozen, { \"k\": \"frozen\" });\r\n }\r\n },\r\n createFreezenVertical: function (freezenverticaldata, left) {\r\n let _this = this;\r\n\r\n if (_this.initialVertical) {\r\n _this.initialVertical = false;\r\n $(\"#luckysheet-grid-window-1\").append(_this.freezenVerticalHTML);\r\n\r\n $(\"#luckysheet-freezebar-vertical\").find(\".luckysheet-freezebar-vertical-drop\").hover(function () {\r\n $(this).parent().addClass(\"luckysheet-freezebar-hover\");\r\n }, function () {\r\n $(this).parent().removeClass(\"luckysheet-freezebar-hover\");\r\n });\r\n\r\n\r\n $(\"#luckysheet-freezebar-vertical\").find(\".luckysheet-freezebar-vertical-drop\").mousedown(function () {\r\n _this.verticalmovestate = true;\r\n _this.verticalmoveposition = $(this).position().left;\r\n _this.windowWidth = $(\"#luckysheet-grid-window-1\").width();\r\n\r\n $(this).parent().addClass(\"luckysheet-freezebar-active\");\r\n $(\"#luckysheet-freezebar-vertical\").find(\".luckysheet-freezebar-vertical-handle\").css(\"cursor\", \"-webkit-grabbing\");\r\n });\r\n\r\n let gridheight = $(\"#luckysheet-grid-window-1\").height();\r\n $(\"#luckysheet-freezebar-vertical\").find(\".luckysheet-freezebar-vertical-handle\").css({ \r\n \"height\": gridheight - 10, \r\n \"width\": \"4px\", \r\n \"cursor\": \"-webkit-grab\", \r\n \"top\": \"0px\" \r\n }).end().find(\".luckysheet-freezebar-vertical-drop\").css({ \r\n \"height\": gridheight - 10, \r\n \"width\": \"4px\", \r\n \"top\": \"0px\", \r\n \"cursor\": \"-webkit-grab\" \r\n });\r\n }\r\n\r\n if (freezenverticaldata == null) {\r\n if (_this.freezenRealFirstRowColumn) {\r\n let dataset_col_st = 0;\r\n left = Store.visibledatacolumn[dataset_col_st] - 2 + Store.rowHeaderWidth;\r\n freezenverticaldata = [\r\n Store.visibledatacolumn[dataset_col_st], \r\n dataset_col_st + 1, \r\n 0, \r\n _this.cutVolumn(Store.visibledatacolumn, dataset_col_st + 1), \r\n left\r\n ];\r\n } else {\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let dataset_col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollLeft);\r\n if (dataset_col_st == -1) {\r\n dataset_col_st = 0;\r\n }\r\n \r\n left = Store.visibledatacolumn[dataset_col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n freezenverticaldata = [\r\n Store.visibledatacolumn[dataset_col_st], \r\n dataset_col_st + 1, \r\n scrollLeft, \r\n _this.cutVolumn(Store.visibledatacolumn, dataset_col_st + 1), \r\n left\r\n ];\r\n }\r\n\r\n _this.saveFreezen(null, null, freezenverticaldata, left);\r\n }\r\n\r\n _this.freezenverticaldata = freezenverticaldata;\r\n\r\n // $(\"#luckysheet-freezen-btn-horizontal\").html(' '+locale().freezen.freezenCancel);\r\n\r\n // \u89E3\u51B3freeze \u4E0D\u5782\u76F4\u5C45\u4E2D\u7684\u95EE\u9898\r\n const freezeHTML = `\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${locale().freezen.freezenCancel}\r\n
\r\n
\r\n
\r\n `\r\n $(\"#luckysheet-freezen-btn-horizontal\").html(freezeHTML);\r\n\r\n $(\"#luckysheet-freezebar-vertical\").show().find(\".luckysheet-freezebar-vertical-handle\").css({ \"left\": left }).end().find(\".luckysheet-freezebar-vertical-drop\").css({ \"left\": left });\r\n },\r\n saveFreezen: function (freezenhorizontaldata, top, freezenverticaldata, left) {\r\n let currentSheet = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n if (currentSheet.freezen == null) {\r\n currentSheet.freezen = {};\r\n }\r\n\r\n if (freezenhorizontaldata != null) {\r\n if (currentSheet.freezen.horizontal == null) {\r\n currentSheet.freezen.horizontal = {};\r\n }\r\n\r\n currentSheet.freezen.horizontal.freezenhorizontaldata = freezenhorizontaldata;\r\n currentSheet.freezen.horizontal.top = top;\r\n }\r\n\r\n if (freezenverticaldata != null) {\r\n if (currentSheet.freezen.vertical == null) {\r\n currentSheet.freezen.vertical = {};\r\n }\r\n\r\n currentSheet.freezen.vertical.freezenverticaldata = freezenverticaldata;\r\n currentSheet.freezen.vertical.left = left;\r\n }\r\n\r\n // if(currentSheet.freezen != null){\r\n // server.saveParam(\"all\", Store.currentSheetIndex, currentSheet.freezen, { \"k\": \"freezen\" });\r\n // }\r\n\r\n // use new property frozen\r\n if(currentSheet.frozen != null){\r\n server.saveParam(\"all\", Store.currentSheetIndex, currentSheet.frozen, { \"k\": \"frozen\" });\r\n }\r\n },\r\n initialFreezen: function (sheetIndex) {\r\n let _this = this;\r\n\r\n // when init ,we get frozen, but here, we need freezen,so tranform it\r\n _this.frozenTofreezen();\r\n\r\n let currentSheet = Store.luckysheetfile[getSheetIndex(sheetIndex)];\r\n if (currentSheet.freezen != null && currentSheet.freezen.horizontal != null && currentSheet.freezen.horizontal.freezenhorizontaldata != null) {\r\n _this.createFreezenHorizontal(currentSheet.freezen.horizontal.freezenhorizontaldata, currentSheet.freezen.horizontal.top);\r\n }\r\n else {\r\n _this.cancelFreezenHorizontal(sheetIndex);\r\n }\r\n\r\n if (currentSheet.freezen != null && currentSheet.freezen.vertical != null && currentSheet.freezen.vertical.freezenverticaldata != null) {\r\n _this.createFreezenVertical(currentSheet.freezen.vertical.freezenverticaldata, currentSheet.freezen.vertical.left);\r\n }\r\n else {\r\n _this.cancelFreezenVertical(sheetIndex);\r\n }\r\n\r\n _this.createAssistCanvas();\r\n },\r\n changeFreezenIndex: function (originindex, type) {\r\n let _this = this;\r\n\r\n if (type == \"v\" && _this.freezenverticaldata != null) {\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offset = luckysheet_searcharray(Store.visibledatacolumn, $(\"#luckysheet-cell-main\").scrollLeft());\r\n\r\n if (originindex - offset < freezen_colindex) {\r\n originindex = originindex - offset;\r\n }\r\n }\r\n else if (type == \"h\" && _this.freezenhorizontaldata != null) {\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let offset = luckysheet_searcharray(Store.visibledatarow, $(\"#luckysheet-cell-main\").scrollTop());\r\n \r\n if (originindex - offset < freezen_rowindex) {\r\n originindex = originindex - offset;\r\n }\r\n }\r\n \r\n return originindex;\r\n },\r\n scrollFreezen: function () {\r\n let _this = this;\r\n\r\n let row;\r\n let row_focus = Store.luckysheet_select_save[0][\"row_focus\"];\r\n if(row_focus == Store.luckysheet_select_save[0][\"row\"][0]){\r\n row = Store.luckysheet_select_save[0][\"row\"][1];\r\n }\r\n else if(row_focus == Store.luckysheet_select_save[0][\"row\"][1]){\r\n row = Store.luckysheet_select_save[0][\"row\"][0];\r\n }\r\n\r\n let column;\r\n let column_focus = Store.luckysheet_select_save[0][\"column_focus\"];\r\n if(column_focus == Store.luckysheet_select_save[0][\"column\"][0]){\r\n column = Store.luckysheet_select_save[0][\"column\"][1];\r\n }\r\n else if(column_focus == Store.luckysheet_select_save[0][\"column\"][1]){\r\n column = Store.luckysheet_select_save[0][\"column\"][0];\r\n }\r\n\r\n if (_this.freezenverticaldata != null) {\r\n let freezen_colindex = _this.freezenverticaldata[1]; \r\n\r\n let offset = luckysheet_searcharray(_this.freezenverticaldata[3], $(\"#luckysheet-cell-main\").scrollLeft());\r\n\r\n let top = _this.freezenverticaldata[4];\r\n\r\n freezen_colindex += offset;\r\n\r\n if(column>=Store.visibledatacolumn.length){\r\n column = Store.visibledatacolumn.length - 1;\r\n }\r\n\r\n if(freezen_colindex>=Store.visibledatacolumn.length){\r\n freezen_colindex = Store.visibledatacolumn.length - 1;\r\n }\r\n \r\n let column_px = Store.visibledatacolumn[column], freezen_px = Store.visibledatacolumn[freezen_colindex];\r\n\r\n if (column_px <= freezen_px+top) {\r\n setTimeout(function () { $(\"#luckysheet-scrollbar-x\").scrollLeft(0); }, 100);\r\n }\r\n }\r\n\r\n if (_this.freezenhorizontaldata != null) {\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n \r\n let offset = luckysheet_searcharray(_this.freezenhorizontaldata[3], $(\"#luckysheet-cell-main\").scrollTop());\r\n\r\n let left = _this.freezenhorizontaldata[4];\r\n\r\n freezen_rowindex += offset;\r\n\r\n if(row>=Store.visibledatarow.length){\r\n row = Store.visibledatarow.length - 1;\r\n }\r\n\r\n if(freezen_rowindex>=Store.visibledatarow.length){\r\n freezen_rowindex = Store.visibledatarow.length - 1;\r\n }\r\n\r\n let row_px = Store.visibledatarow[row], freezen_px = Store.visibledatarow[freezen_rowindex];\r\n\r\n if (row_px <= freezen_px+left) {\r\n setTimeout(function () {$(\"#luckysheet-scrollbar-y\").scrollTop(0);}, 100);\r\n }\r\n }\r\n },\r\n cancelFreezenHorizontal: function (sheetIndex) {\r\n let _this = this;\r\n\r\n // $(\"#luckysheet-freezen-btn-horizontal\").html(' '+locale().freezen.default);\r\n\r\n // \u89E3\u51B3freeze \u4E0D\u5782\u76F4\u5C45\u4E2D\u7684\u95EE\u9898\r\n const freezeHTML = `\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${locale().freezen.default}\r\n
\r\n
\r\n
\r\n `\r\n\r\n $(\"#luckysheet-freezen-btn-horizontal\").html(freezeHTML);\r\n\r\n _this.freezenhorizontaldata = null;\r\n let ishorizontal = $(\"#luckysheet-freezebar-horizontal\").is(\":visible\");\r\n $(\"#luckysheet-freezebar-horizontal\").hide();\r\n\r\n if (sheetIndex == null) {\r\n sheetIndex = Store.currentSheetIndex;\r\n }\r\n\r\n let currentSheet = Store.luckysheetfile[getSheetIndex(sheetIndex)];\r\n if (currentSheet.freezen != null) {\r\n currentSheet.freezen.horizontal = null;\r\n }\r\n\r\n if(currentSheet.frozen != null && ishorizontal){\r\n server.saveParam(\"all\", sheetIndex, currentSheet.frozen, { \"k\": \"frozen\" });\r\n }\r\n },\r\n createFreezenHorizontal: function (freezenhorizontaldata, top) {\r\n let _this = this;\r\n\r\n if (_this.initialHorizontal) {\r\n _this.initialHorizontal = false;\r\n $(\"#luckysheet-grid-window-1\").append(_this.freezenHorizontalHTML);\r\n\r\n $(\"#luckysheet-freezebar-horizontal\").find(\".luckysheet-freezebar-horizontal-drop\").hover(function () {\r\n $(this).parent().addClass(\"luckysheet-freezebar-hover\");\r\n }, function () {\r\n $(this).parent().removeClass(\"luckysheet-freezebar-hover\");\r\n });\r\n\r\n $(\"#luckysheet-freezebar-horizontal\").find(\".luckysheet-freezebar-horizontal-drop\").mousedown(function () {\r\n _this.horizontalmovestate = true;\r\n _this.horizontalmoveposition = $(this).position().top;\r\n _this.windowHeight = $(\"#luckysheet-grid-window-1\").height();\r\n\r\n $(this).parent().addClass(\"luckysheet-freezebar-active\");\r\n $(\"#luckysheet-freezebar-horizontal\").find(\".luckysheet-freezebar-horizontal-handle\").css(\"cursor\", \"-webkit-grabbing\");\r\n });\r\n\r\n let gridwidth = $(\"#luckysheet-grid-window-1\").width();\r\n $(\"#luckysheet-freezebar-horizontal\").find(\".luckysheet-freezebar-horizontal-handle\").css({ \r\n \"width\": gridwidth - 10, \r\n \"height\": \"4px\", \r\n \"cursor\": \"-webkit-grab\", \r\n \"left\": \"0px\" \r\n }).end().find(\".luckysheet-freezebar-horizontal-drop\").css({ \r\n \"width\": gridwidth - 10, \r\n \"height\": \"4px\", \r\n \"left\": \"0px\", \r\n \"cursor\": \"-webkit-grab\" \r\n });\r\n }\r\n\r\n if (freezenhorizontaldata == null) {\r\n let dataset_row_st;\r\n if (_this.freezenRealFirstRowColumn) {\r\n dataset_row_st = 0;\r\n top = Store.visibledatarow[dataset_row_st] - 2 + Store.columnHeaderHeight;\r\n freezenhorizontaldata = [\r\n Store.visibledatarow[dataset_row_st], \r\n dataset_row_st + 1, \r\n 0, \r\n _this.cutVolumn(Store.visibledatarow, dataset_row_st + 1), \r\n top\r\n ];\r\n _this.saveFreezen(freezenhorizontaldata, top, null, null);\r\n // todo: \u6CA1\u6709\u4E0B\u9762\u4EE3\u7801 \u5982\u679C\u6709\u6EDA\u52A8\uFF0C\u51BB\u7ED3\u4E4B\u540E\u9996\u884C\u7684\u884C\u53F7\u4ECD\u663E\u793A\u7684\u4E4B\u524D\u6EDA\u52A8\u7684\u884C\u53F7\r\n // todo: \u4E0D setTimeout \u8FD9\u91CC\u76F4\u63A5\u5237\u65B0\u7684\u8BDD\uFF0C\u51BB\u7ED3\u7684\u9996\u884C\u663E\u793A\u6709\u95EE\u9898\uFF0C\u6CA1\u6709\u5217\u7684\u5206\u5272\u7EBF\r\n setTimeout(() => {\r\n luckysheetFreezen.createAssistCanvas();\r\n luckysheetrefreshgrid();\r\n });\r\n } else {\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n dataset_row_st = luckysheet_searcharray(Store.visibledatarow, scrollTop);\r\n if (dataset_row_st == -1) {\r\n dataset_row_st = 0;\r\n }\r\n \r\n top = Store.visibledatarow[dataset_row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n freezenhorizontaldata = [\r\n Store.visibledatarow[dataset_row_st], \r\n dataset_row_st + 1, \r\n scrollTop, \r\n _this.cutVolumn(Store.visibledatarow, dataset_row_st + 1), \r\n top\r\n ];\r\n _this.saveFreezen(freezenhorizontaldata, top, null, null);\r\n }\r\n }\r\n\r\n _this.freezenhorizontaldata = freezenhorizontaldata;\r\n\r\n // $(\"#luckysheet-freezen-btn-horizontal\").html(' '+locale().freezen.freezenCancel);\r\n\r\n // $(\"#luckysheet-freezen-btn-horizontal\").html(' '+locale().freezen.freezenCancel);\r\n\r\n const freezeHTML = `\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${locale().freezen.freezenCancel}\r\n
\r\n
\r\n
\r\n `\r\n\r\n $(\"#luckysheet-freezen-btn-horizontal\").html(freezeHTML);\r\n\r\n $(\"#luckysheet-freezebar-horizontal\").show().find(\".luckysheet-freezebar-horizontal-handle\").css({ \"top\": top }).end().find(\".luckysheet-freezebar-horizontal-drop\").css({ \"top\": top });\r\n\r\n },\r\n createAssistCanvas: function(){\r\n let _this = this;\r\n _this.removeAssistCanvas();\r\n\r\n if (_this.freezenverticaldata != null || _this.freezenhorizontaldata != null) {\r\n let freezen_horizon_px, freezen_horizon_ed, freezen_horizon_scrollTop;\r\n let freezen_vertical_px, freezen_vertical_ed, freezen_vertical_scrollTop;\r\n let drawWidth = Store.luckysheetTableContentHW[0], \r\n drawHeight = Store.luckysheetTableContentHW[1];\r\n\r\n //\u53CC\u5411freezen\r\n if (_this.freezenverticaldata != null && _this.freezenhorizontaldata != null) {\r\n freezen_horizon_px = _this.freezenhorizontaldata[0];\r\n freezen_horizon_ed = _this.freezenhorizontaldata[1];\r\n freezen_horizon_scrollTop = _this.freezenhorizontaldata[2];\r\n\r\n freezen_vertical_px = _this.freezenverticaldata[0];\r\n freezen_vertical_ed = _this.freezenverticaldata[1];\r\n freezen_vertical_scrollTop = _this.freezenverticaldata[2];\r\n\r\n //3\r\n _this.createCanvas(\"freezen_3\", freezen_vertical_px - freezen_vertical_scrollTop, freezen_horizon_px - freezen_horizon_scrollTop + 1, Store.rowHeaderWidth - 1, Store.columnHeaderHeight - 1);\r\n //4\r\n _this.createCanvas(\"freezen_4\", drawWidth - freezen_vertical_px + freezen_vertical_scrollTop, freezen_horizon_px - freezen_horizon_scrollTop + 1, freezen_vertical_px - freezen_vertical_scrollTop + Store.rowHeaderWidth - 1, Store.columnHeaderHeight - 1);\r\n //7\r\n _this.createCanvas(\"freezen_7\", freezen_vertical_px - freezen_vertical_scrollTop, drawHeight - freezen_horizon_px + freezen_horizon_scrollTop - Store.columnHeaderHeight, Store.rowHeaderWidth - 1, freezen_horizon_px - freezen_horizon_scrollTop + Store.columnHeaderHeight - 1);\r\n }\r\n //\u6C34\u5E73freezen\r\n else if (_this.freezenhorizontaldata != null) {\r\n freezen_horizon_px = _this.freezenhorizontaldata[0];\r\n freezen_horizon_ed = _this.freezenhorizontaldata[1];\r\n freezen_horizon_scrollTop = _this.freezenhorizontaldata[2];\r\n\r\n _this.createCanvas(\"freezen_h\", drawWidth, freezen_horizon_px - freezen_horizon_scrollTop + 1, Store.rowHeaderWidth - 1, Store.columnHeaderHeight - 1);\r\n }\r\n //\u5782\u76F4freezen\r\n else if (_this.freezenverticaldata != null) {\r\n freezen_vertical_px = _this.freezenverticaldata[0];\r\n freezen_vertical_ed = _this.freezenverticaldata[1];\r\n freezen_vertical_scrollTop = _this.freezenverticaldata[2];\r\n\r\n _this.createCanvas(\"freezen_v\", freezen_vertical_px - freezen_vertical_scrollTop, drawHeight, Store.rowHeaderWidth - 1, Store.columnHeaderHeight - 1);\r\n }\r\n\r\n _this.scrollAdapt();\r\n }\r\n },\r\n createCanvas: function(id, width, height, left, top){\r\n let c = $(\"\").appendTo(\"#luckysheet-grid-window-1\").attr({\r\n \"id\": id, \r\n \"width\": Math.ceil(width * Store.devicePixelRatio), \r\n \"height\": Math.ceil(height * Store.devicePixelRatio)\r\n }).css({\r\n \"user-select\": \"none\",\r\n \"postion\": \"absolute\",\r\n \"left\": left, \r\n \"top\": top,\r\n \"width\": width, \r\n \"height\": height, \r\n \"z-index\": 10, \r\n \"pointer-events\": \"none\"\r\n });\r\n },\r\n removeAssistCanvas: function(){\r\n $(\"#luckysheet-grid-window-1 > canvas\").not($(\"#luckysheetTableContent\")).remove();\r\n $(\"#luckysheet-cell-selected\").css(\"z-index\", 15);\r\n },\r\n scrollAdapt: function(){\r\n let _this = this;\r\n\r\n //\u6709\u51BB\u7ED3\u65F6 \u9009\u533A\u6846 \u6EDA\u52A8\u9002\u5E94\r\n if(Store.luckysheet_select_save != null && Store.luckysheet_select_save.length > 0){\r\n _this.scrollAdaptOfselect(); \r\n }\r\n\r\n //\u6709\u51BB\u7ED3\u65F6 \u56FE\u7247 \u6EDA\u52A8\u9002\u5E94\r\n if($(\".luckysheet-modal-dialog-image\").length > 0 && imageCtrl.images != undefined){\r\n _this.scrollAdaptOfImage();\r\n }\r\n\r\n //\u6709\u51BB\u7ED3\u65F6 \u56FE\u8868\u6846 \u6EDA\u52A8\u9002\u5E94\r\n if($(\"#luckysheet-cell-main .luckysheet-data-visualization-chart\").length > 0){\r\n\r\n // \u5F53\u524Dsheet\u6709\u56FE\u8868\u624D\u9700\u8981\u6EDA\u52A8\u9002\u5E94\r\n const chart = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"chart\"];\r\n \r\n if(chart != null && chart.length > 0){\r\n _this.scrollAdaptOfchart();\r\n }\r\n }\r\n\r\n //\u6709\u51BB\u7ED3\u65F6 \u6279\u6CE8\u6846 \u6EDA\u52A8\u9002\u5E94\r\n if($(\"#luckysheet-postil-showBoxs .luckysheet-postil-show\").length > 0){\r\n _this.scrollAdaptOfpostil(); \r\n }\r\n\r\n //\u6709\u51BB\u7ED3\u65F6 \u4E0B\u62C9\u9009\u533A\u56FE\u6807 \u6EDA\u52A8\u9002\u5E94\r\n if($(\"#luckysheet-dropCell-icon\").length > 0){\r\n _this.scrollAdaptOfdpicon();\r\n }\r\n\r\n //\u6709\u51BB\u7ED3\u65F6 \u7B5B\u9009\u4E0B\u62C9\u6309\u94AE \u6EDA\u52A8\u9002\u5E94\r\n if($(\"#luckysheet-filter-options-sheet\"+ Store.currentSheetIndex +\" .luckysheet-filter-options\").length > 0){\r\n _this.scrollAdaptOffilteroptions();\r\n }\r\n },\r\n scrollAdaptOfselect: function(){\r\n let _this = this;\r\n\r\n if($(\"#luckysheet-row-count-show\").is(\":visible\")){\r\n $(\"#luckysheet-row-count-show\").hide();\r\n }\r\n\r\n if($(\"#luckysheet-column-count-show\").is(\":visible\")){\r\n $(\"#luckysheet-column-count-show\").hide();\r\n }\r\n\r\n $(\"#luckysheet-rows-h-selected\").empty();\r\n $(\"#luckysheet-cols-h-selected\").empty();\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n if (_this.freezenhorizontaldata != null && _this.freezenverticaldata != null) {\r\n let freezenTop = _this.freezenhorizontaldata[0];\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let offTop = scrollTop - _this.freezenhorizontaldata[2];\r\n\r\n let freezenLeft = _this.freezenverticaldata[0];\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offLeft = scrollLeft - _this.freezenverticaldata[2];\r\n\r\n for(let s = 0; s < Store.luckysheet_select_save.length; s++){\r\n let obj = $.extend(true, {}, Store.luckysheet_select_save[s]);\r\n\r\n let r1 = obj.row[0], \r\n r2 = obj.row[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n\r\n let top_move = row_pre;\r\n let height_move = row - row_pre - 1;\r\n\r\n let rangeshow = true;\r\n\r\n if(r1 >= freezen_rowindex){//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5916\r\n if(top_move + height_move < freezenTop + offTop){\r\n rangeshow = false;\r\n }\r\n else if(top_move < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": freezenTop + offTop,\r\n \"height\": height_move - (freezenTop + offTop - top_move)\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": top_move,\r\n \"height\": height_move\r\n });\r\n }\r\n }\r\n else if(r2 >= freezen_rowindex){//\u539F\u9009\u533A\u6709\u4E00\u90E8\u5206\u5728\u51BB\u7ED3\u533A\u5185\r\n if(top_move + height_move < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": top_move + offTop,\r\n \"height\": freezenTop - top_move\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": top_move + offTop,\r\n \"height\": height_move - offTop\r\n });\r\n }\r\n }\r\n else{//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5185\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css(\"top\", top_move + offTop);\r\n }\r\n\r\n let c1 = obj.column[0], \r\n c2 = obj.column[1];\r\n\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n let left_move = col_pre;\r\n let width_move = col - col_pre - 1;\r\n\r\n if(c1 >= freezen_colindex){//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5916\r\n if(left_move + width_move < freezenLeft + offLeft){\r\n rangeshow = false;\r\n }\r\n else if(left_move < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": freezenLeft + offLeft,\r\n \"width\": width_move - (freezenLeft + offLeft - left_move)\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": left_move,\r\n \"width\": width_move\r\n });\r\n }\r\n }\r\n else if(c2 >= freezen_colindex){//\u539F\u9009\u533A\u6709\u4E00\u90E8\u5206\u5728\u51BB\u7ED3\u533A\u5185\r\n if(left_move + width_move < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": left_move + offLeft,\r\n \"width\": freezenLeft - left_move\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": left_move + offLeft,\r\n \"width\": width_move - offLeft\r\n });\r\n }\r\n }\r\n else{//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5185\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css(\"left\", left_move + offLeft);\r\n }\r\n\r\n if(!rangeshow){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).hide();\r\n }\r\n\r\n if(s == Store.luckysheet_select_save.length - 1){\r\n let rf = obj.row_focus == null ? r1 : obj.row_focus;\r\n let cf = obj.column_focus == null ? c1 : obj.column_focus;\r\n \r\n let row_f = Store.visibledatarow[rf], \r\n row_pre_f = rf - 1 == -1 ? 0 : Store.visibledatarow[rf - 1];\r\n let col_f = Store.visibledatacolumn[cf], \r\n col_pre_f = cf - 1 == -1 ? 0 : Store.visibledatacolumn[cf - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, rf, cf);\r\n if(!!margeset){\r\n row_f = margeset.row[1];\r\n row_pre_f = margeset.row[0];\r\n\r\n col_f = margeset.column[1];\r\n col_pre_f = margeset.column[0];\r\n }\r\n\r\n let top = row_pre_f;\r\n let height = row_f - row_pre_f - 1;\r\n\r\n let left = col_pre_f;\r\n let width = col_f - col_pre_f - 1;\r\n\r\n let focuscell = true;\r\n\r\n if(top >= freezenTop){\r\n if(top + height < freezenTop + offTop){\r\n focuscell = false;\r\n }\r\n else if(top < freezenTop + offTop){ \r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": freezenTop + offTop,\r\n \"height\": height - (freezenTop + offTop - top)\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": top,\r\n \"height\": height\r\n });\r\n }\r\n }\r\n else if(top + height >= freezenTop){\r\n if(top + height < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": top + offTop,\r\n \"height\": freezenTop - top\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": top + offTop,\r\n \"height\": height - offTop\r\n })\r\n }\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css(\"top\", top + offTop);\r\n }\r\n\r\n if(left >= freezenLeft){\r\n if(left + width < freezenLeft + offLeft){\r\n focuscell = false;\r\n }\r\n else if(left < freezenLeft + offLeft){ \r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": freezenLeft + offLeft,\r\n \"width\": width - (freezenLeft + offLeft - left)\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": left,\r\n \"width\": width\r\n });\r\n }\r\n }\r\n else if(left + width >= freezenLeft){\r\n if(left + width < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": left + offLeft,\r\n \"width\": freezenLeft - left\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": left + offLeft,\r\n \"width\": width - offLeft\r\n })\r\n }\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css(\"left\", left + offLeft);\r\n }\r\n\r\n if(!focuscell){\r\n $(\"#luckysheet-cell-selected-focus\").hide();\r\n }\r\n }\r\n }\r\n }\r\n else if (_this.freezenhorizontaldata != null) {\r\n let freezenTop = _this.freezenhorizontaldata[0];\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let offTop = scrollTop - _this.freezenhorizontaldata[2];\r\n\r\n for(let s = 0; s < Store.luckysheet_select_save.length; s++){\r\n let obj = $.extend(true, {}, Store.luckysheet_select_save[s]);\r\n\r\n let r1 = obj.row[0], \r\n r2 = obj.row[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n\r\n let top_move = row_pre;\r\n let height_move = row - row_pre - 1;\r\n\r\n if(r1 >= freezen_rowindex){//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5916\r\n if(top_move + height_move < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).hide();\r\n }\r\n else if(top_move < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": freezenTop + offTop,\r\n \"height\": height_move - (freezenTop + offTop - top_move)\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": top_move,\r\n \"height\": height_move\r\n });\r\n }\r\n }\r\n else if(r2 >= freezen_rowindex){//\u539F\u9009\u533A\u6709\u4E00\u90E8\u5206\u5728\u51BB\u7ED3\u533A\u5185\r\n if(top_move + height_move < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": top_move + offTop,\r\n \"height\": freezenTop - top_move\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"top\": top_move + offTop,\r\n \"height\": height_move - offTop\r\n });\r\n }\r\n }\r\n else{//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5185\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css(\"top\", top_move + offTop);\r\n }\r\n\r\n if(s == Store.luckysheet_select_save.length - 1){\r\n let rf = obj.row_focus == null ? r1 : obj.row_focus;\r\n let cf = obj.column_focus == null ? obj.column[0] : obj.column_focus;\r\n \r\n let row_f = Store.visibledatarow[rf], \r\n row_pre_f = rf - 1 == -1 ? 0 : Store.visibledatarow[rf - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, rf, cf);\r\n if(!!margeset){\r\n row_f = margeset.row[1];\r\n row_pre_f = margeset.row[0];\r\n }\r\n\r\n let top = row_pre_f;\r\n let height = row_f - row_pre_f - 1;\r\n\r\n if(top >= freezenTop){\r\n if(top + height < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-focus\").hide();\r\n }\r\n else if(top < freezenTop + offTop){ \r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": freezenTop + offTop,\r\n \"height\": height - (freezenTop + offTop - top)\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": top,\r\n \"height\": height\r\n });\r\n }\r\n }\r\n else if(top + height >= freezenTop){\r\n if(top + height < freezenTop + offTop){\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": top + offTop,\r\n \"height\": freezenTop - top\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"top\": top + offTop,\r\n \"height\": height - offTop\r\n })\r\n }\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css(\"top\", top + offTop);\r\n }\r\n }\r\n }\r\n }\r\n else if (_this.freezenverticaldata != null) {\r\n let freezenLeft = _this.freezenverticaldata[0];\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offLeft = scrollLeft - _this.freezenverticaldata[2];\r\n\r\n for(let s = 0; s < Store.luckysheet_select_save.length; s++){\r\n let obj = $.extend(true, {}, Store.luckysheet_select_save[s]);\r\n\r\n let c1 = obj.column[0], \r\n c2 = obj.column[1];\r\n\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n let left_move = col_pre;\r\n let width_move = col - col_pre - 1;\r\n\r\n if(c1 >= freezen_colindex){//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5916\r\n if(left_move + width_move < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).hide();\r\n }\r\n else if(left_move < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": freezenLeft + offLeft,\r\n \"width\": width_move - (freezenLeft + offLeft - left_move)\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": left_move,\r\n \"width\": width_move\r\n });\r\n }\r\n }\r\n else if(c2 >= freezen_colindex){//\u539F\u9009\u533A\u6709\u4E00\u90E8\u5206\u5728\u51BB\u7ED3\u533A\u5185\r\n if(left_move + width_move < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": left_move + offLeft,\r\n \"width\": freezenLeft - left_move\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css({\r\n \"left\": left_move + offLeft,\r\n \"width\": width_move - offLeft\r\n });\r\n }\r\n }\r\n else{//\u539F\u9009\u533A\u5728\u51BB\u7ED3\u533A\u5185\r\n $(\"#luckysheet-cell-selected-boxs\").find(\".luckysheet-cell-selected\").eq(s).show().css(\"left\", left_move + offLeft);\r\n }\r\n\r\n if(s == Store.luckysheet_select_save.length - 1){\r\n let rf = obj.row_focus == null ? obj.row[0] : obj.row_focus;\r\n let cf = obj.column_focus == null ? c1 : obj.column_focus;\r\n \r\n let col_f = Store.visibledatacolumn[cf], \r\n col_pre_f = cf - 1 == -1 ? 0 : Store.visibledatacolumn[cf - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, rf, cf);\r\n if(!!margeset){\r\n col_f = margeset.column[1];\r\n col_pre_f = margeset.column[0];\r\n }\r\n\r\n let left = col_pre_f;\r\n let width = col_f - col_pre_f - 1;\r\n\r\n if(left >= freezenLeft){\r\n if(left + width < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-focus\").hide();\r\n }\r\n else if(left < freezenLeft + offLeft){ \r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": freezenLeft + offLeft,\r\n \"width\": width - (freezenLeft + offLeft - left)\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": left,\r\n \"width\": width\r\n });\r\n }\r\n }\r\n else if(left + width >= freezenLeft){\r\n if(left + width < freezenLeft + offLeft){\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": left + offLeft,\r\n \"width\": freezenLeft - left\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css({\r\n \"left\": left + offLeft,\r\n \"width\": width - offLeft\r\n })\r\n }\r\n }\r\n else{\r\n $(\"#luckysheet-cell-selected-focus\").show().css(\"left\", left + offLeft);\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n selectHightlightShow();\r\n }\r\n },\r\n scrollAdaptOfImage: function () {\r\n\r\n let _this = this;\r\n\r\n var images = imageCtrl.images;\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n let freezenTop = _this.freezenhorizontaldata != null ? (_this.freezenhorizontaldata[0] - _this.freezenhorizontaldata[2]) : -1;\r\n let freezenLeft = _this.freezenverticaldata != null ? (_this.freezenverticaldata[0] - _this.freezenverticaldata[2]) : -1;\r\n\r\n let zoomRatio = Store.zoomRatio;\r\n\r\n $.each(images, function (i) {\r\n\r\n let image = images[i];\r\n let dialogImage = $(\"#\" + i);\r\n let x = dialogImage.position();\r\n\r\n let width = dialogImage.width();\r\n let height = dialogImage.height();\r\n let defaultTop = image.default.top * zoomRatio;\r\n let defaultLeft = image.default.left * zoomRatio;\r\n\r\n let isHidden = false;\r\n\r\n //\u884C\u51BB\u7ED3\r\n if (defaultTop >= freezenTop) {//\u539F\u56FE\u7247\u5728\u51BB\u7ED3\u533A\u5916\r\n if (x.top < freezenTop) { //\u5728\u754C\u9762\u4E0A\u7684\u4F4D\u7F6E\u5DF2\u7ECF\u8FDB\u5165\u51BB\u7ED3\u533A\u91CC\u9762\u4E86\r\n dialogImage.css(\"visibility\", \"hidden\");\r\n isHidden = true;\r\n }\r\n else {\r\n dialogImage.css({\r\n \"visibility\": \"visible\"\r\n });\r\n }\r\n }\r\n else {//\u539F\u56FE\u7247\u5728\u51BB\u7ED3\u533A\u5185\r\n dialogImage.css({\r\n \"top\": defaultTop + scrollTop,\r\n \"height\": height,\r\n \"visibility\": \"visible\"\r\n });\r\n }\r\n\r\n //\u5217\u51BB\u7ED3\r\n if (!isHidden) {\r\n if (defaultLeft >= freezenLeft) {//\u539F\u56FE\u7247\u5728\u51BB\u7ED3\u533A\u5916\r\n if (x.left < freezenLeft) { //\u5728\u754C\u9762\u4E0A\u7684\u4F4D\u7F6E\u5DF2\u7ECF\u8FDB\u5165\u51BB\u7ED3\u533A\u91CC\u9762\u4E86\r\n dialogImage.css(\"visibility\", \"hidden\");\r\n }\r\n else {\r\n dialogImage.css({\r\n \"visibility\": \"visible\"\r\n });\r\n }\r\n }\r\n else {//\u539F\u56FE\u7247\u5728\u51BB\u7ED3\u533A\u5185\r\n dialogImage.css({\r\n \"left\": defaultLeft + scrollLeft,\r\n \"width\": width,\r\n \"visibility\": \"visible\"\r\n });\r\n }\r\n }\r\n });\r\n },\r\n scrollAdaptOfchart: function(){\r\n let _this = this;\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n if(_this.freezenhorizontaldata != null && _this.freezenverticaldata != null){\r\n let freezenTop = _this.freezenhorizontaldata[0] - _this.freezenhorizontaldata[2];\r\n let freezenLeft = _this.freezenverticaldata[0] - _this.freezenverticaldata[2];\r\n\r\n $(\"#luckysheet-cell-main .luckysheet-data-visualization-chart\").each(function(i, e){\r\n let x = $(e).position();\r\n let width = $(e).width();\r\n let height = $(e).height();\r\n\r\n let $canvas_width = $(e).find(\"canvas\").width();\r\n let $canvas_height = $(e).find(\"canvas\").height();\r\n\r\n let height_diff = $canvas_height - height;\r\n let width_diff = $canvas_width - width;\r\n\r\n if((x.top - height_diff) < freezenTop){\r\n let size = freezenTop - (x.top - height_diff);\r\n\r\n if(size > ($canvas_height + 40 + 2)){\r\n $(e).css(\"visibility\", \"hidden\");\r\n }\r\n else{\r\n $(e).css({\r\n \"top\": freezenTop + scrollTop,\r\n \"height\": $canvas_height - size,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"top\", - size);\r\n }\r\n }\r\n else{\r\n $(e).css({\r\n \"top\": x.top - height_diff + scrollTop,\r\n \"height\": $canvas_height,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"top\", 0);\r\n }\r\n\r\n if((x.left - width_diff) < freezenLeft){\r\n let size = freezenLeft - (x.left - width_diff);\r\n\r\n if(size > ($canvas_width + 20 + 2)){\r\n $(e).css(\"visibility\", \"hidden\");\r\n }\r\n else{\r\n $(e).css({\r\n \"left\": freezenLeft + scrollLeft,\r\n \"width\": $canvas_width - size,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"left\", - size);\r\n }\r\n }\r\n else{\r\n $(e).css({\r\n \"left\": x.left - width_diff + scrollLeft,\r\n \"width\": $canvas_width,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"left\", 0);\r\n }\r\n })\r\n }\r\n else if(_this.freezenhorizontaldata != null){\r\n let freezenTop = _this.freezenhorizontaldata[0] - _this.freezenhorizontaldata[2];\r\n\r\n $(\"#luckysheet-cell-main .luckysheet-data-visualization-chart\").each(function(i, e){\r\n let x = $(e).position();\r\n let height = $(e).height();\r\n \r\n let $canvas_height = $(e).find(\"canvas\").height();\r\n\r\n let height_diff = $canvas_height - height;\r\n\r\n if((x.top - height_diff) < freezenTop){\r\n let size = freezenTop - (x.top - height_diff);\r\n\r\n if(size > ($canvas_height + 40 + 2)){\r\n $(e).css(\"visibility\", \"hidden\");\r\n }\r\n else{\r\n $(e).css({\r\n \"top\": freezenTop + scrollTop,\r\n \"height\": $canvas_height - size,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"top\", - size);\r\n }\r\n }\r\n else{\r\n $(e).css({\r\n \"top\": x.top - height_diff + scrollTop,\r\n \"height\": $canvas_height,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"top\", 0);\r\n }\r\n })\r\n }\r\n else if(_this.freezenverticaldata != null){\r\n let freezenLeft = _this.freezenverticaldata[0] - _this.freezenverticaldata[2];\r\n\r\n $(\"#luckysheet-cell-main .luckysheet-data-visualization-chart\").each(function(i, e){\r\n let x = $(e).position();\r\n let width = $(e).width();\r\n\r\n let $canvas_width = $(e).find(\"canvas\").width();\r\n\r\n let width_diff = $canvas_width - width;\r\n\r\n if((x.left - width_diff) < freezenLeft){\r\n let size = freezenLeft - (x.left - width_diff);\r\n\r\n if(size > ($canvas_width + 20 + 2)){\r\n $(e).css(\"visibility\", \"hidden\");\r\n }\r\n else{\r\n $(e).css({\r\n \"left\": freezenLeft + scrollLeft,\r\n \"width\": $canvas_width - size,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"left\", - size);\r\n }\r\n }\r\n else{\r\n $(e).css({\r\n \"left\": x.left - width_diff + scrollLeft,\r\n \"width\": $canvas_width,\r\n \"visibility\": \"visible\"\r\n }); \r\n $(e).find(\"canvas\").css(\"left\", 0);\r\n }\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-cell-main .luckysheet-data-visualization-chart\").each(function(i, e){\r\n let x = $(e).position();\r\n let width = $(e).width();\r\n let height = $(e).height();\r\n\r\n let $canvas_width = $(e).find(\"canvas\").width();\r\n let $canvas_height = $(e).find(\"canvas\").height();\r\n\r\n let height_diff = $canvas_height - height;\r\n let width_diff = $canvas_width - width;\r\n\r\n $(e).css({\r\n \"top\": x.top - height_diff + scrollTop,\r\n \"height\": $canvas_height,\r\n \"left\": x.left - width_diff + scrollLeft,\r\n \"width\": $canvas_width,\r\n \"visibility\": \"visible\"\r\n }); \r\n\r\n $(e).find(\"canvas\").css({\r\n \"top\": 0,\r\n \"left\": 0\r\n });\r\n })\r\n }\r\n },\r\n scrollAdaptOfpostil: function(){\r\n let _this = this;\r\n\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n\r\n if(_this.freezenhorizontaldata != null && _this.freezenverticaldata != null){\r\n let freezenTop = _this.freezenhorizontaldata[0];\r\n let freezenLeft = _this.freezenverticaldata[0];\r\n\r\n let offTop = scrollTop - _this.freezenhorizontaldata[2];\r\n let offLeft = scrollLeft - _this.freezenverticaldata[2];\r\n\r\n $(\"#luckysheet-postil-showBoxs .luckysheet-postil-show\").each(function(i, e){\r\n let id = $(e).attr(\"id\");\r\n\r\n let r = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[0];\r\n let c = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[1];\r\n\r\n let postil = Store.flowdata[r][c].ps;\r\n\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n let postil_left = postil[\"left\"] == null ? toX + 18 : postil[\"left\"];\r\n let postil_top = postil[\"top\"] == null ? toY - 18 : postil[\"top\"];\r\n let postil_width = postil[\"width\"] == null ? luckysheetPostil.defaultWidth : postil[\"width\"];\r\n let postil_height = postil[\"height\"] == null ? luckysheetPostil.defaultHeight : postil[\"height\"];\r\n\r\n if(postil_top < 0){\r\n postil_top = 2;\r\n }\r\n\r\n let size = luckysheetPostil.getArrowCanvasSize(postil_left, postil_top, toX, toY);\r\n let show = true;\r\n let show2 = true;\r\n\r\n if(r >= _this.freezenhorizontaldata[1]){\r\n if(postil_top + postil_height < freezenTop){\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"top\", postil_top + offTop);\r\n $(e).show().find(\".arrowCanvas\").css(\"top\", size[1] + offTop);\r\n }\r\n else{\r\n if(postil_top < freezenTop + offTop){\r\n if(postil_top + postil_height <= freezenTop + offTop){\r\n show = false;\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css({ \"top\": freezenTop + offTop, \"height\": postil_height - (freezenTop + offTop - postil_top) });\r\n $(e).show().find(\".formulaInputFocus\").css(\"margin-top\", -(freezenTop + offTop - postil_top));\r\n $(e).show().find(\".arrowCanvas\").hide(); \r\n\r\n show2 = false;\r\n }\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css({\r\n \"top\": postil_top,\r\n \"height\": postil_height\r\n });\r\n $(e).show().find(\".formulaInputFocus\").css(\"margin-top\", 0);\r\n $(e).show().find(\".arrowCanvas\").css(\"top\", size[1]);\r\n // luckysheetPostil.buildPs(r, c, postil);\r\n }\r\n }\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"top\", postil_top + offTop);\r\n $(e).show().find(\".arrowCanvas\").css(\"top\", size[1] + offTop);\r\n }\r\n\r\n if(c >= _this.freezenverticaldata[1]){\r\n if(postil_left + postil_width < freezenLeft){\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"left\", postil_left + offLeft);\r\n $(e).show().find(\".arrowCanvas\").css(\"left\", size[0] + offLeft);\r\n }\r\n else{\r\n if(postil_left < freezenLeft + offLeft){\r\n if(postil_left + postil_width <= freezenLeft + offLeft){\r\n show = false;\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css({ \"left\": freezenLeft + offLeft, \"width\": postil_width - (freezenLeft + offLeft - postil_left) });\r\n $(e).show().find(\".formulaInputFocus\").css(\"margin-left\", -(freezenLeft + offLeft - postil_left));\r\n $(e).show().find(\".arrowCanvas\").hide(); \r\n\r\n show2 = false;\r\n }\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css({\r\n \"left\": postil_left,\r\n \"width\": postil_width \r\n });\r\n $(e).show().find(\".formulaInputFocus\").css(\"margin-left\", 0);\r\n $(e).show().find(\".arrowCanvas\").css(\"left\", size[0]);\r\n // luckysheetPostil.buildPs(r, c, postil);\r\n }\r\n }\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"left\", postil_left + offLeft);\r\n $(e).show().find(\".arrowCanvas\").css(\"left\", size[0] + offLeft);\r\n }\r\n\r\n if(!show){\r\n $(e).hide();\r\n }\r\n\r\n if(show && show2){\r\n $(e).show().find(\".arrowCanvas\").show();\r\n }\r\n })\r\n }\r\n else if(_this.freezenhorizontaldata != null){\r\n let freezenTop = _this.freezenhorizontaldata[0];\r\n let offTop = scrollTop - _this.freezenhorizontaldata[2];\r\n\r\n $(\"#luckysheet-postil-showBoxs .luckysheet-postil-show\").each(function(i, e){\r\n let id = $(e).attr(\"id\");\r\n\r\n let r = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[0];\r\n let c = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[1];\r\n\r\n let postil = Store.flowdata[r][c].ps;\r\n\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n let postil_left = postil[\"left\"] == null ? toX + 18 : postil[\"left\"];\r\n let postil_top = postil[\"top\"] == null ? toY - 18 : postil[\"top\"];\r\n let postil_width = postil[\"width\"] == null ? luckysheetPostil.defaultWidth : postil[\"width\"];\r\n let postil_height = postil[\"height\"] == null ? luckysheetPostil.defaultHeight : postil[\"height\"];\r\n\r\n if(postil_top < 0){\r\n postil_top = 2;\r\n }\r\n\r\n let size = luckysheetPostil.getArrowCanvasSize(postil_left, postil_top, toX, toY);\r\n\r\n if(r >= _this.freezenhorizontaldata[1]){\r\n if(postil_top + postil_height < freezenTop){\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"top\", postil_top + offTop);\r\n $(e).show().find(\".arrowCanvas\").css(\"top\", size[1] + offTop);\r\n }\r\n else{\r\n if(postil_top < freezenTop + offTop){\r\n if(postil_top + postil_height <= freezenTop + offTop){\r\n $(e).hide();\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css({ \"top\": freezenTop + offTop, \"height\": postil_height - (freezenTop + offTop - postil_top) });\r\n $(e).show().find(\".formulaInputFocus\").css(\"margin-top\", -(freezenTop + offTop - postil_top));\r\n $(e).show().find(\".arrowCanvas\").hide(); \r\n }\r\n }\r\n else{\r\n luckysheetPostil.buildPs(r, c, postil);\r\n }\r\n }\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"top\", postil_top + offTop);\r\n $(e).show().find(\".arrowCanvas\").css(\"top\", size[1] + offTop);\r\n }\r\n })\r\n }\r\n else if(_this.freezenverticaldata != null){\r\n let freezenLeft = _this.freezenverticaldata[0];\r\n let offLeft = scrollLeft - _this.freezenverticaldata[2];\r\n\r\n $(\"#luckysheet-postil-showBoxs .luckysheet-postil-show\").each(function(i, e){\r\n let id = $(e).attr(\"id\");\r\n\r\n let r = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[0];\r\n let c = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[1];\r\n\r\n let postil = Store.flowdata[r][c].ps;\r\n\r\n let row = Store.visibledatarow[r], \r\n row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1];\r\n let col = Store.visibledatacolumn[c], \r\n col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let toX = col;\r\n let toY = row_pre;\r\n\r\n let postil_left = postil[\"left\"] == null ? toX + 18 : postil[\"left\"];\r\n let postil_top = postil[\"top\"] == null ? toY - 18 : postil[\"top\"];\r\n let postil_width = postil[\"width\"] == null ? luckysheetPostil.defaultWidth : postil[\"width\"];\r\n let postil_height = postil[\"height\"] == null ? luckysheetPostil.defaultHeight : postil[\"height\"];\r\n\r\n if(postil_top < 0){\r\n postil_top = 2;\r\n }\r\n\r\n let size = luckysheetPostil.getArrowCanvasSize(postil_left, postil_top, toX, toY);\r\n\r\n if(c >= _this.freezenverticaldata[1]){\r\n if(postil_left + postil_width < freezenLeft){\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"left\", postil_left + offLeft);\r\n $(e).show().find(\".arrowCanvas\").css(\"left\", size[0] + offLeft);\r\n }\r\n else{\r\n if(postil_left < freezenLeft + offLeft){\r\n if(postil_left + postil_width <= freezenLeft + offLeft){\r\n $(e).hide();\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css({ \"left\": freezenLeft + offLeft, \"width\": postil_width - (freezenLeft + offLeft - postil_left) });\r\n $(e).show().find(\".formulaInputFocus\").css(\"margin-left\", -(freezenLeft + offLeft - postil_left));\r\n $(e).show().find(\".arrowCanvas\").hide(); \r\n }\r\n }\r\n else{\r\n luckysheetPostil.buildPs(r, c, postil);\r\n }\r\n }\r\n }\r\n else{\r\n $(e).show().find(\".luckysheet-postil-show-main\").css(\"left\", postil_left + offLeft);\r\n $(e).show().find(\".arrowCanvas\").css(\"left\", size[0] + offLeft);\r\n }\r\n })\r\n }\r\n else{\r\n $(\"#luckysheet-postil-showBoxs .luckysheet-postil-show\").each(function(i, e){\r\n let id = $(e).attr(\"id\");\r\n\r\n let r = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[0];\r\n let c = id.split(\"luckysheet-postil-show_\")[1].split(\"_\")[1];\r\n\r\n let postil = Store.flowdata[r][c].ps;\r\n\r\n luckysheetPostil.buildPs(r, c, postil);\r\n })\r\n }\r\n },\r\n scrollAdaptOfdpicon: function(){\r\n let _this = this;\r\n\r\n let copy_r = luckysheetDropCell.copyRange[\"row\"][1], \r\n copy_c = luckysheetDropCell.copyRange[\"column\"][1];\r\n \r\n let apply_r = luckysheetDropCell.applyRange[\"row\"][1], \r\n apply_c = luckysheetDropCell.applyRange[\"column\"][1];\r\n \r\n let row_index, col_index;\r\n if(apply_r >= copy_r && apply_c >= copy_c){\r\n row_index = apply_r;\r\n col_index = apply_c;\r\n }\r\n else{\r\n row_index = copy_r;\r\n col_index = copy_c; \r\n }\r\n\r\n if(_this.freezenhorizontaldata != null && _this.freezenverticaldata != null){\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let offsetRow = luckysheet_searcharray(_this.freezenhorizontaldata[3], $(\"#luckysheet-cell-main\").scrollTop() - _this.freezenhorizontaldata[2]);\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offsetColumn = luckysheet_searcharray(_this.freezenverticaldata[3], $(\"#luckysheet-cell-main\").scrollLeft() - _this.freezenverticaldata[2]);\r\n\r\n if(row_index >= freezen_rowindex && col_index >= freezen_colindex){\r\n if(row_index < (freezen_rowindex + offsetRow - 1) || col_index < (freezen_colindex + offsetColumn - 1)){\r\n $(\"#luckysheet-dropCell-icon\").hide();\r\n }\r\n else{\r\n $(\"#luckysheet-dropCell-icon\").show();\r\n }\r\n }\r\n else if(row_index >= freezen_rowindex){\r\n if(row_index < (freezen_rowindex + offsetRow - 1)){\r\n $(\"#luckysheet-dropCell-icon\").hide();\r\n }\r\n else{\r\n let col = colLocationByIndex(col_index + offsetColumn)[1];\r\n\r\n $(\"#luckysheet-dropCell-icon\").show().css(\"left\", col);\r\n }\r\n }\r\n else if(col_index >= freezen_colindex){\r\n if(col_index < (freezen_colindex + offsetColumn - 1)){\r\n $(\"#luckysheet-dropCell-icon\").hide();\r\n }\r\n else{\r\n let row = rowLocationByIndex(row_index + offsetRow)[1];\r\n\r\n $(\"#luckysheet-dropCell-icon\").show().css(\"top\", row);\r\n }\r\n }\r\n else{\r\n let row = rowLocationByIndex(row_index + offsetRow)[1],\r\n col = colLocationByIndex(col_index + offsetColumn)[1];\r\n\r\n $(\"#luckysheet-dropCell-icon\").show().css({ \"left\": col, \"top\": row });\r\n }\r\n }\r\n else if(_this.freezenhorizontaldata != null){\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let offsetRow = luckysheet_searcharray(_this.freezenhorizontaldata[3], $(\"#luckysheet-cell-main\").scrollTop() - _this.freezenhorizontaldata[2]);\r\n\r\n if(row_index >= freezen_rowindex){\r\n if(row_index < (freezen_rowindex + offsetRow - 1)){\r\n $(\"#luckysheet-dropCell-icon\").hide();\r\n }\r\n else{\r\n $(\"#luckysheet-dropCell-icon\").show();\r\n }\r\n }\r\n else{\r\n let row = rowLocationByIndex(row_index + offsetRow)[1];\r\n\r\n $(\"#luckysheet-dropCell-icon\").show().css(\"top\", row);\r\n }\r\n }\r\n else if(_this.freezenverticaldata != null){\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offsetColumn = luckysheet_searcharray(_this.freezenverticaldata[3], $(\"#luckysheet-cell-main\").scrollLeft() - _this.freezenverticaldata[2]);\r\n\r\n if(col_index >= freezen_colindex){\r\n if(col_index < (freezen_colindex + offsetColumn - 1)){\r\n $(\"#luckysheet-dropCell-icon\").hide();\r\n }\r\n else{\r\n $(\"#luckysheet-dropCell-icon\").show();\r\n }\r\n }\r\n else{\r\n let col = colLocationByIndex(col_index + offsetColumn)[1];\r\n\r\n $(\"#luckysheet-dropCell-icon\").show().css(\"left\", col);\r\n }\r\n }\r\n else{\r\n let row = rowLocationByIndex(row_index)[1],\r\n col = colLocationByIndex(col_index)[1];\r\n\r\n $(\"#luckysheet-dropCell-icon\").show().css({ \"left\": col, \"top\": row });\r\n }\r\n },\r\n scrollAdaptOffilteroptions: function(){\r\n let _this = this;\r\n\r\n if(_this.freezenhorizontaldata != null && _this.freezenverticaldata != null){\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let freezen_top = _this.freezenhorizontaldata[0] + $(\"#luckysheet-cell-main\").scrollTop();\r\n\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offsetColumn = luckysheet_searcharray(_this.freezenverticaldata[3], $(\"#luckysheet-cell-main\").scrollLeft() - _this.freezenverticaldata[2]);\r\n\r\n $(\"#luckysheet-filter-options-sheet\"+ Store.currentSheetIndex +\" .luckysheet-filter-options\").each(function(i, e){\r\n let row_index = $(e).data(\"str\");\r\n let top = row_index - 1 == -1 ? 0 : Store.visibledatarow[row_index - 1];\r\n\r\n let col_index = $(e).data(\"cindex\");\r\n\r\n if(row_index >= freezen_rowindex && col_index >= freezen_colindex){\r\n if(top < freezen_top || col_index < (freezen_colindex + offsetColumn)){\r\n $(e).hide();\r\n }\r\n else{\r\n $(e).show();\r\n }\r\n }\r\n else if(row_index >= freezen_rowindex){\r\n if(top < freezen_top){\r\n $(e).hide();\r\n }\r\n else{\r\n let left = Store.visibledatacolumn[col_index + offsetColumn] - 20;\r\n\r\n $(e).show().css(\"left\", left);\r\n }\r\n }\r\n else if(col_index >= freezen_colindex){\r\n if(col_index < (freezen_colindex + offsetColumn)){\r\n $(e).hide();\r\n }\r\n else{\r\n $(e).show().css(\"top\", top + $(\"#luckysheet-cell-main\").scrollTop());\r\n }\r\n }\r\n else{\r\n let left = Store.visibledatacolumn[col_index + offsetColumn] - 20;\r\n\r\n $(e).show().css({ \"left\": left, \"top\": top + $(\"#luckysheet-cell-main\").scrollTop() });\r\n }\r\n });\r\n }\r\n else if(_this.freezenhorizontaldata != null){\r\n let freezen_rowindex = _this.freezenhorizontaldata[1];\r\n let freezen_top = _this.freezenhorizontaldata[0] + $(\"#luckysheet-cell-main\").scrollTop();\r\n\r\n $(\"#luckysheet-filter-options-sheet\"+ Store.currentSheetIndex +\" .luckysheet-filter-options\").each(function(i, e){\r\n let row_index = $(e).data(\"str\");\r\n let top = row_index - 1 == -1 ? 0 : Store.visibledatarow[row_index - 1];\r\n\r\n if(row_index >= freezen_rowindex){\r\n if(top < freezen_top){\r\n $(e).hide();\r\n }\r\n else{\r\n $(e).show();\r\n }\r\n }\r\n else{\r\n $(e).show().css(\"top\", top + $(\"#luckysheet-cell-main\").scrollTop());\r\n }\r\n });\r\n }\r\n else if(_this.freezenverticaldata != null){\r\n let freezen_colindex = _this.freezenverticaldata[1];\r\n let offsetColumn = luckysheet_searcharray(_this.freezenverticaldata[3], $(\"#luckysheet-cell-main\").scrollLeft() - _this.freezenverticaldata[2]);\r\n\r\n $(\"#luckysheet-filter-options-sheet\"+ Store.currentSheetIndex +\" .luckysheet-filter-options\").each(function(i, e){\r\n let col_index = $(e).data(\"cindex\");\r\n\r\n if(col_index >= freezen_colindex){\r\n if(col_index < (freezen_colindex + offsetColumn)){\r\n $(e).hide();\r\n }\r\n else{\r\n $(e).show();\r\n }\r\n }\r\n else{\r\n let left = Store.visibledatacolumn[col_index + offsetColumn] - 20;\r\n\r\n $(e).show().css(\"left\", left);\r\n }\r\n });\r\n }\r\n else{\r\n $(\"#luckysheet-filter-options-sheet\"+ Store.currentSheetIndex).empty();\r\n createFilterOptions(Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].filter_select);\r\n }\r\n },\r\n /**\r\n * \r\n * @param {string} operate \"freezenRow\"/ \"freezenColumn\"......\r\n * @param {Number | String} order \u5DE5\u4F5C\u8868\u7D22\u5F15\uFF1B\u9ED8\u8BA4\u503C\u4E3A\u5F53\u524D\u5DE5\u4F5C\u8868\u7D22\u5F15\r\n * @param {Object} focus \u51BB\u7ED3\u9009\u533A\u65F6\u7684focus\u5355\u5143\u683C\u884C\u5217\u503C\u6784\u6210\u7684\u5BF9\u8C61\uFF1B\u683C\u5F0F\u4E3A{ row_focus:0, column_focus:0 }\r\n */\r\n saveFrozen: function(operate, order, focus = {}) {\r\n if (order == null) {\r\n order = getSheetIndex(Store.currentSheetIndex)\r\n }\r\n \r\n // New configuration attribute of sheet: frozen, which stores more semantic configuration for initialization and transmission to the backend. freezenhorizontaldata is still used as local data\r\n\r\n const select_save = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n\r\n const row_focus = select_save[\"row_focus\"] == null ? select_save[\"row\"][0] : select_save[\"row_focus\"];\r\n const column_focus = select_save[\"column_focus\"] == null ? select_save[\"column\"][0] : select_save[\"column_focus\"];\r\n\r\n const range = {\r\n row_focus: focus.row_focus || row_focus,\r\n column_focus: focus.column_focus || column_focus\r\n }\r\n\r\n const frozen = {\r\n \"freezenRow\": {\r\n type: 'row'\r\n },\r\n \"freezenColumn\": {\r\n type: 'column'\r\n },\r\n \"freezenRC\": {\r\n type: 'both'\r\n },\r\n \"freezenRowRange\": {\r\n type: 'rangeRow',\r\n range: range\r\n },\r\n \"freezenColumnRange\": {\r\n type: 'rangeColumn',\r\n range: range\r\n },\r\n \"freezenRCRange\": {\r\n type: 'rangeBoth',\r\n range: range\r\n },\r\n \"freezenCancel\": {\r\n type: 'cancel'\r\n }\r\n }\r\n\r\n // store frozen\r\n Store.luckysheetfile[order][\"frozen\"] = frozen[operate];\r\n },\r\n frozenTofreezen: function() {\r\n // get frozen type\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n const frozen = file[\"frozen\"];\r\n\r\n if(frozen == null){\r\n return;\r\n }\r\n\r\n let freezen = null;\r\n\r\n // transform to freezen\r\n if(frozen.type === 'row'){\r\n let scrollTop = 0;\r\n let row_st = luckysheet_searcharray(Store.visibledatarow, scrollTop);\r\n if(row_st == -1){\r\n row_st = 0;\r\n }\r\n let top = Store.visibledatarow[row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n let freezenhorizontaldata = [Store.visibledatarow[row_st], row_st + 1, scrollTop, luckysheetFreezen.cutVolumn(Store.visibledatarow, row_st + 1), top];\r\n \r\n freezen = {\r\n horizontal:{\r\n freezenhorizontaldata: freezenhorizontaldata,\r\n top: top\r\n }\r\n }\r\n \r\n }\r\n else if(frozen.type === 'column'){\r\n let scrollLeft = 0;\r\n let col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollLeft);\r\n if(col_st == -1){\r\n col_st = 0;\r\n }\r\n let left = Store.visibledatacolumn[col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n let freezenverticaldata = [Store.visibledatacolumn[col_st], col_st + 1, scrollLeft, luckysheetFreezen.cutVolumn(Store.visibledatacolumn, col_st + 1), left];\r\n\r\n freezen = {\r\n vertical:{\r\n freezenverticaldata: freezenverticaldata,\r\n left: left\r\n }\r\n }\r\n }\r\n else if(frozen.type === 'both'){\r\n let scrollTop = 0;\r\n let row_st = luckysheet_searcharray(Store.visibledatarow, scrollTop);\r\n if(row_st == -1){\r\n row_st = 0;\r\n }\r\n let top = Store.visibledatarow[row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n let freezenhorizontaldata = [Store.visibledatarow[row_st], row_st + 1, scrollTop, luckysheetFreezen.cutVolumn(Store.visibledatarow, row_st + 1), top];\r\n \r\n let scrollLeft = 0;\r\n let col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollLeft);\r\n if(col_st == -1){\r\n col_st = 0;\r\n }\r\n let left = Store.visibledatacolumn[col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n let freezenverticaldata = [Store.visibledatacolumn[col_st], col_st + 1, scrollLeft, luckysheetFreezen.cutVolumn(Store.visibledatacolumn, col_st + 1), left];\r\n\r\n freezen = {\r\n horizontal:{\r\n freezenhorizontaldata: freezenhorizontaldata,\r\n top: top\r\n },\r\n vertical:{\r\n freezenverticaldata: freezenverticaldata,\r\n left: left\r\n }\r\n }\r\n\r\n }\r\n else if(frozen.type === 'rangeRow'){\r\n let scrollTop = 0;\r\n let row_st = luckysheet_searcharray(Store.visibledatarow, scrollTop);\r\n\r\n let row_focus = frozen.range[\"row_focus\"];\r\n\r\n if(row_focus > row_st){\r\n row_st = row_focus;\r\n }\r\n \r\n if(row_st == -1){\r\n row_st = 0;\r\n }\r\n\r\n let top = Store.visibledatarow[row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n let freezenhorizontaldata = [Store.visibledatarow[row_st], row_st + 1, scrollTop, luckysheetFreezen.cutVolumn(Store.visibledatarow, row_st + 1), top];\r\n\r\n freezen = {\r\n horizontal:{\r\n freezenhorizontaldata: freezenhorizontaldata,\r\n top: top\r\n }\r\n }\r\n\r\n }\r\n else if(frozen.type === 'rangeColumn'){\r\n let scrollLeft = 0;\r\n let col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollLeft);\r\n\r\n let column_focus = frozen.range[\"column_focus\"];\r\n\r\n if(column_focus > col_st){\r\n col_st = column_focus;\r\n }\r\n\r\n if(col_st == -1){\r\n col_st = 0;\r\n }\r\n\r\n let left = Store.visibledatacolumn[col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n let freezenverticaldata = [Store.visibledatacolumn[col_st], col_st + 1, scrollLeft, luckysheetFreezen.cutVolumn(Store.visibledatacolumn, col_st + 1), left];\r\n\r\n freezen = {\r\n vertical:{\r\n freezenverticaldata: freezenverticaldata,\r\n left: left\r\n }\r\n }\r\n\r\n }\r\n else if(frozen.type === 'rangeBoth'){\r\n let scrollTop = 0;\r\n let row_st = luckysheet_searcharray(Store.visibledatarow, scrollTop);\r\n\r\n let row_focus = frozen.range[\"row_focus\"];\r\n\r\n if(row_focus > row_st){\r\n row_st = row_focus;\r\n }\r\n \r\n if(row_st == -1){\r\n row_st = 0;\r\n }\r\n\r\n let top = Store.visibledatarow[row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n let freezenhorizontaldata = [Store.visibledatarow[row_st], row_st + 1, scrollTop, luckysheetFreezen.cutVolumn(Store.visibledatarow, row_st + 1), top];\r\n\r\n let scrollLeft = 0;\r\n let col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollLeft);\r\n\r\n let column_focus = frozen.range[\"column_focus\"];\r\n\r\n if(column_focus > col_st){\r\n col_st = column_focus;\r\n }\r\n\r\n if(col_st == -1){\r\n col_st = 0;\r\n }\r\n\r\n let left = Store.visibledatacolumn[col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n let freezenverticaldata = [Store.visibledatacolumn[col_st], col_st + 1, scrollLeft, luckysheetFreezen.cutVolumn(Store.visibledatacolumn, col_st + 1), left];\r\n\r\n freezen = {\r\n horizontal:{\r\n freezenhorizontaldata: freezenhorizontaldata,\r\n top: top\r\n },\r\n vertical:{\r\n freezenverticaldata: freezenverticaldata,\r\n left: left\r\n }\r\n }\r\n }\r\n else if(frozen.type === 'cancel'){\r\n freezen = {\r\n horizontal: null,\r\n vertical: null\r\n }\r\n }\r\n\r\n file[\"freezen\"] = freezen;\r\n }\r\n}\r\n\r\nexport default luckysheetFreezen;\r\n", "import luckysheetConfigsetting from './luckysheetConfigsetting';\r\nimport luckysheetFreezen from './freezen';\r\nimport { luckysheetrefreshgrid } from '../global/refresh';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport sheetmanage from './sheetmanage';\r\nimport tooltip from '../global/tooltip'\r\nimport { $$, getObjType, camel2split } from \"../utils/util\";\r\nimport { defaultToolbar, toolbarIdMap } from './toolbar';\r\n\r\nlet gridW = 0,\r\n gridH = 0;\r\n\r\nexport default function luckysheetsizeauto(isRefreshCanvas=true) {\r\n if (!luckysheetConfigsetting.showinfobar) {\r\n Store.infobarHeight = 0;\r\n $(\"#luckysheet_info_detail\").hide();\r\n }\r\n else {\r\n $(\"#luckysheet_info_detail\").show();\r\n // Store.infobarHeight = 56;\r\n Store.infobarHeight = document.querySelector('#luckysheet_info_detail').offsetHeight;\r\n }\r\n\r\n if (!!Store.toobarObject && !!Store.toobarObject.toobarElements && Store.toobarObject.toobarElements.length === 0) {\r\n $(\"#\" + Store.container).find(\".luckysheet-wa-editor\").hide();\r\n Store.toolbarHeight = 0;\r\n }\r\n else {\r\n $(\"#\" + Store.container).find(\".luckysheet-wa-editor\").show();\r\n // Store.toolbarHeight = 72;\r\n Store.toolbarHeight = document.querySelector('#' + Store.container +' .luckysheet-wa-editor').offsetHeight;\r\n }\r\n\r\n // if (!luckysheetConfigsetting.showsheetbar) {\r\n // $(\"#\" + Store.container).find(\"#luckysheet-sheet-area\").hide();\r\n // Store.sheetBarHeight = 0;\r\n // }\r\n // else {\r\n // $(\"#\" + Store.container).find(\"#luckysheet-sheet-area\").show();\r\n // Store.sheetBarHeight = 31;\r\n // }\r\n\r\n\r\n customSheetbarConfig();\r\n\r\n // if (!luckysheetConfigsetting.showstatisticBar) {\r\n // $(\"#\" + Store.container).find(\".luckysheet-stat-area\").hide();\r\n // Store.statisticBarHeight = 0;\r\n // }\r\n // else {\r\n // $(\"#\" + Store.container).find(\".luckysheet-stat-area\").show();\r\n // Store.statisticBarHeight = 23;\r\n // }\r\n\r\n customStatisticBarConfig();\r\n\r\n // \u516C\u5F0F\u680F\r\n const formulaEle = document.querySelector(\"#\" + Store.container + ' .luckysheet-wa-calculate');\r\n if (!luckysheetConfigsetting.sheetFormulaBar) {\r\n formulaEle.style.display = 'none';\r\n Store.calculatebarHeight = 0;\r\n }\r\n else {\r\n formulaEle.style.display = 'block';\r\n Store.calculatebarHeight = formulaEle.offsetHeight;\r\n }\r\n\r\n $(\"#\" + Store.container).find(\".luckysheet-grid-container\").css(\"top\", Store.toolbarHeight + Store.infobarHeight + Store.calculatebarHeight);\r\n\r\n gridW = $(\"#\" + Store.container).width();\r\n\r\n if(luckysheetConfigsetting.showConfigWindowResize){//\u6570\u636E\u900F\u89C6\u8868 \u56FE\u8868 \u4EA4\u66FF\u989C\u8272 Protection\r\n if($(\"#luckysheet-modal-dialog-slider-pivot\").is(\":visible\")){\r\n gridW -= $(\"#luckysheet-modal-dialog-slider-pivot\").outerWidth();\r\n }\r\n else if($(\".chartSetting\").is(\":visible\")){\r\n gridW -= $(\".chartSetting\").outerWidth();\r\n }\r\n else if($(\"#luckysheet-modal-dialog-slider-alternateformat\").is(\":visible\")){\r\n gridW -= $(\"#luckysheet-modal-dialog-slider-alternateformat\").outerWidth();\r\n }\r\n if($(\"#luckysheet-modal-dialog-slider-protection\").is(\":visible\")){\r\n gridW -= $(\"#luckysheet-modal-dialog-slider-protection\").outerWidth();\r\n }\r\n }\r\n\r\n const _locale = locale();\r\n const locale_toolbar = _locale.toolbar;\r\n let ismore = false,\r\n toolbarW = 0,\r\n morebtn = `
\r\n
\r\n
\r\n\r\n
\r\n ${locale_toolbar.toolMore}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
`,\r\n // Add style left:$$('.luckysheet') left, when the worksheet does not fill the full screen\r\n morediv = '
';\r\n\r\n if($(\"#luckysheet-icon-morebtn-div\").length == 0){\r\n $(\"body\").append(morediv);\r\n }\r\n\r\n // $(\"#luckysheet-icon-morebtn-div\").hide();\r\n $$(\"#luckysheet-icon-morebtn-div\").style.visibility = 'hidden';\r\n // $(\"#luckysheet-icon-morebtn-div > div\").appendTo($(\"#luckysheet-wa-editor\"));\r\n\r\n $(\"#luckysheet-icon-morebtn-div > div\").each(function(){\r\n const $t = $(this)[0];\r\n const $container = $(\"#luckysheet-wa-editor\")[0];\r\n\r\n $container.appendChild(document.createTextNode(\" \"));\r\n\r\n $container.appendChild($t);\r\n });\r\n\r\n $(\"#luckysheet-icon-morebtn\").remove();\r\n\r\n // \u6240\u6709\u6309\u94AE\u5BBD\u5EA6\u4E0E\u5143\u7D20\u5B9A\u4F4D\r\n const toobarWidths = Store.toobarObject.toobarWidths;\r\n const toobarElements = Store.toobarObject.toobarElements;\r\n let moreButtonIndex = 0;\r\n\r\n // When you resize the window during initialization, you will find that the dom has not been rendered yet\r\n if(toobarWidths == undefined){\r\n return;\r\n }\r\n // \u627E\u5230\u5E94\u8BE5\u9690\u85CF\u7684\u8D77\u59CB\u5143\u7D20\u4F4D\u7F6E\r\n for (let index = toobarWidths.length - 1; index >= 0; index--) {\r\n\r\n // #luckysheet-icon-morebtn button width plus right is 83px\r\n if(toobarWidths[index] < gridW - 90){\r\n moreButtonIndex = index;\r\n if(moreButtonIndex < toobarWidths.length - 1){\r\n\r\n ismore = true;\r\n }\r\n break;\r\n }\r\n }\r\n // \u4ECE\u8D77\u59CB\u4F4D\u7F6E\u5F00\u59CB\uFF0C\u540E\u9762\u7684\u5143\u7D20\u7EDF\u4E00\u632A\u5230\u4E0B\u65B9\u9690\u85CFDIV\u4E2D\r\n for (let index = moreButtonIndex; index < toobarElements.length; index++) {\r\n const element = toobarElements[index];\r\n if(element instanceof Array){\r\n for(const ele of element){\r\n $(\"#luckysheet-icon-morebtn-div\").append($(`${ele}`));\r\n }\r\n }else{\r\n $(\"#luckysheet-icon-morebtn-div\").append($(`${element}`));\r\n }\r\n\r\n }\r\n\r\n if(ismore){\r\n\r\n $(\"#luckysheet-wa-editor\").append(morebtn);\r\n $(\"#luckysheet-icon-morebtn\").click(function(){\r\n\r\n //When resize, change the width of the more button container in real time\r\n $$('#luckysheet-icon-morebtn-div').style.left = '';//reset\r\n\r\n // *\u8FD9\u91CC\u8BA1\u7B97containerLeft\u7684\u4F5C\u7528\u662F\uFF1A\u83B7\u5F97\u5BB9\u5668\u5DE6\u4FA7\u7684margin\u503C\uFF0C\u4EE5\u8BA9\u70B9\u51FB\u51FA\u73B0\u7684\u201C\u66F4\u591A\u6309\u94AE\u201D\u680F\u4F4D\u7F6E\u4E0D\u4F1A\u51FA\u9519\u3002\r\n const containerLeft = $$(`#${Store.container}`).getBoundingClientRect ? $$(`#${Store.container}`).getBoundingClientRect().left : 0;\r\n const morebtnLeft = $$('#luckysheet-icon-morebtn-div').getBoundingClientRect().left;//get real left info\r\n\r\n if(morebtnLeft < containerLeft){\r\n $$('#luckysheet-icon-morebtn-div').style.left = containerLeft + 'px';\r\n }\r\n\r\n let right = $(window).width() - $(\"#luckysheet-icon-morebtn\").offset().left - $(\"#luckysheet-icon-morebtn\").width()+ $(\"body\").scrollLeft();\r\n\r\n\r\n // $(\"#luckysheet-icon-morebtn-div\").toggle().css(\"right\", right < 0 ? 0 : right);\r\n\r\n // use native js operation\r\n $$('#luckysheet-icon-morebtn-div').style.right = right < 0 ? 0 : right + 'px';\r\n\r\n // change to visibility,morebtnLeft will get the actual value\r\n if($$('#luckysheet-icon-morebtn-div').style.visibility === 'hidden'){\r\n $$('#luckysheet-icon-morebtn-div').style.visibility = 'visible';\r\n }else{\r\n $$('#luckysheet-icon-morebtn-div').style.visibility = 'hidden';\r\n }\r\n\r\n let $txt = $(this).find(\".luckysheet-toolbar-menu-button-caption\");\r\n if($txt.text().indexOf(locale_toolbar.toolMore) > -1){\r\n\r\n const toolCloseHTML = `\r\n
\r\n ${locale_toolbar.toolClose}\r\n
\r\n
\r\n
\r\n `\r\n $(this).find(\".luckysheet-toolbar-button-inner-box\").html(toolCloseHTML);\r\n }\r\n else{\r\n\r\n const toolMoreHTML = `\r\n
\r\n ${locale_toolbar.toolMore}\r\n
\r\n
\r\n
\r\n `\r\n\r\n $(this).find(\".luckysheet-toolbar-button-inner-box\").html(toolMoreHTML);\r\n }\r\n\r\n });\r\n //$(\"#luckysheet-wa-editor div\").trigger(\"create\");\r\n\r\n // $(\"#luckysheet-icon-morebtn-div .luckysheet-toolbar-menu-button\").css(\"margin-right\", -1);\r\n // $(\"#luckysheet-icon-morebtn-div .luckysheet-toolbar-button-split-left\").css(\"margin-right\", -3);\r\n\r\n // \u201C\u66F4\u591A\u201D\u5BB9\u5668\u4E2D\uFF0C\u8054\u52A8hover\u6548\u679C\r\n $(\"#luckysheet-icon-morebtn-div .luckysheet-toolbar-button-split-left\").off(\"hover\").hover(function(){\r\n $(this).next(\".luckysheet-toolbar-button-split-right\").addClass(\"luckysheet-toolbar-button-split-right-hover\");\r\n }, function(){\r\n $(this).next(\".luckysheet-toolbar-button-split-right\").removeClass(\"luckysheet-toolbar-button-split-right-hover\");\r\n });\r\n\r\n $(\"#luckysheet-icon-morebtn-div .luckysheet-toolbar-button-split-right\").off(\"hover\").hover(function(){\r\n $(this).prev(\".luckysheet-toolbar-button-split-left\").addClass(\"luckysheet-toolbar-button-hover\");\r\n }, function(){\r\n $(this).prev(\".luckysheet-toolbar-button-split-left\").removeClass(\"luckysheet-toolbar-button-hover\");\r\n });\r\n\r\n // tooltip\r\n tooltip.createHoverTip(\"#luckysheet-icon-morebtn-div\" ,\".luckysheet-toolbar-menu-button, .luckysheet-toolbar-button, .luckysheet-toolbar-combo-button\");\r\n }\r\n\r\n $(\"#\"+ Store.container + \" .luckysheet-wa-editor .luckysheet-toolbar-button-split-left\").off(\"hover\").hover(function(){\r\n $(this).next(\".luckysheet-toolbar-button-split-right\").addClass(\"luckysheet-toolbar-button-split-right-hover\");\r\n }, function(){\r\n $(this).next(\".luckysheet-toolbar-button-split-right\").removeClass(\"luckysheet-toolbar-button-split-right-hover\");\r\n });\r\n\r\n $(\"#\"+ Store.container + \" .luckysheet-wa-editor .luckysheet-toolbar-button-split-right\").off(\"hover\").hover(function(){\r\n $(this).prev(\".luckysheet-toolbar-button-split-left\").addClass(\"luckysheet-toolbar-button-hover\");\r\n }, function(){\r\n $(this).prev(\".luckysheet-toolbar-button-split-left\").removeClass(\"luckysheet-toolbar-button-hover\");\r\n });\r\n\r\n // When adding elements to the luckysheet-icon-morebtn-div element of the toolbar, it will affect the height of the entire workbook area, so the height is obtained here\r\n gridH = $(\"#\" + Store.container).height();\r\n\r\n $(\"#\" + Store.container).find(\".luckysheet\").height(gridH - 2).width(gridW - 2);\r\n\r\n changeSheetContainerSize(gridW, gridH)\r\n\r\n if(isRefreshCanvas){\r\n luckysheetrefreshgrid($(\"#luckysheet-cell-main\").scrollLeft(), $(\"#luckysheet-cell-main\").scrollTop());\r\n }\r\n\r\n sheetmanage.sheetArrowShowAndHide();\r\n sheetmanage.sheetBarShowAndHide();\r\n}\r\n\r\n\r\nexport function changeSheetContainerSize(gridW, gridH){\r\n if(gridW==null){\r\n gridW = $(\"#\" + Store.container).width();\r\n }\r\n\r\n if(gridH==null){\r\n gridH = $(\"#\" + Store.container).height();\r\n }\r\n Store.cellmainHeight = gridH - (Store.infobarHeight + Store.toolbarHeight + Store.calculatebarHeight + Store.columnHeaderHeight + Store.sheetBarHeight + Store.statisticBarHeight);\r\n Store.cellmainWidth = gridW - Store.rowHeaderWidth;\r\n\r\n $(\"#luckysheet-cols-h-c, #luckysheet-cell-main\").width(Store.cellmainWidth);\r\n $(\"#luckysheet-cell-main\").height(Store.cellmainHeight);\r\n $(\"#luckysheet-rows-h\").height(Store.cellmainHeight - Store.cellMainSrollBarSize);\r\n\r\n $(\"#luckysheet-scrollbar-y\").height(Store.cellmainHeight + Store.columnHeaderHeight - Store.cellMainSrollBarSize - 3);\r\n $(\"#luckysheet-scrollbar-x\").height(Store.cellMainSrollBarSize);\r\n $(\"#luckysheet-scrollbar-y\").width(Store.cellMainSrollBarSize);\r\n\r\n $(\"#luckysheet-scrollbar-x\").width(Store.cellmainWidth).css(\"left\", Store.rowHeaderWidth - 2);\r\n\r\n Store.luckysheetTableContentHW = [\r\n Store.cellmainWidth + Store.rowHeaderWidth - Store.cellMainSrollBarSize,\r\n Store.cellmainHeight + Store.columnHeaderHeight - Store.cellMainSrollBarSize\r\n ];\r\n\r\n $(\"#luckysheetTableContent, #luckysheetTableContentF\").attr({\r\n width: Math.ceil(Store.luckysheetTableContentHW[0] * Store.devicePixelRatio),\r\n height: Math.ceil(Store.luckysheetTableContentHW[1] * Store.devicePixelRatio)\r\n })\r\n .css({ width: Store.luckysheetTableContentHW[0], height: Store.luckysheetTableContentHW[1] });\r\n\r\n $(\"#\" + Store.container).find(\"#luckysheet-grid-window-1\").css(\"bottom\", Store.sheetBarHeight);\r\n $(\"#\" + Store.container).find(\".luckysheet-grid-window\").css(\"bottom\", Store.statisticBarHeight);\r\n\r\n let gridwidth = $(\"#luckysheet-grid-window-1\").width();\r\n $(\"#luckysheet-freezebar-horizontal\").find(\".luckysheet-freezebar-horizontal-handle\")\r\n .css({ \"width\": gridwidth - 10 })\r\n .end()\r\n .find(\".luckysheet-freezebar-horizontal-drop\")\r\n .css({ \"width\": gridwidth - 10 });\r\n\r\n let gridheight = $(\"#luckysheet-grid-window-1\").height();\r\n $(\"#luckysheet-freezebar-vertical\")\r\n .find(\".luckysheet-freezebar-vertical-handle\")\r\n .css({ \"height\": gridheight - 10 })\r\n .end()\r\n .find(\".luckysheet-freezebar-vertical-drop\")\r\n .css({ \"height\": gridheight - 10 });\r\n\r\n luckysheetFreezen.createAssistCanvas();\r\n}\r\n\r\n/**\r\n *\r\n *\r\n * Toolbar judgment rules: First set the display and hide of all tool buttons according to showtoolbar, and then override the judgment of showtoolbar according to showtoolbarConfig rules\r\n *\r\n * The width value of each button in the statistics toolbar is used to calculate which needs to be placed in more buttons\r\n */\r\nexport function menuToolBarWidth() {\r\n const showtoolbar = luckysheetConfigsetting.showtoolbar;\r\n const showtoolbarConfig = luckysheetConfigsetting.showtoolbarConfig;\r\n\r\n const toobarWidths = Store.toobarObject.toobarWidths = [];\r\n const toobarElements = Store.toobarObject.toobarElements = [];\r\n const toolbarConfig = Store.toobarObject.toolbarConfig = buildBoolBarConfig();\r\n\r\n /**\r\n * \u57FA\u4E8E showtoolbarConfig \u914D\u7F6E \u52A8\u6001\u751F\u6210 toolbarConfig\r\n * @returns {object}\r\n * @input showtoolbarConfig = ['undo', 'redo', '|' , 'font' , 'moreFormats', '|']\r\n * {\r\n * undo: {ele: '#luckysheet-icon-undo', index: 0},\r\n * redo: {ele: ['#luckysheet-icon-redo', '#luckysheet-separator-redo'], index: 1},\r\n * undo: {ele: '#luckysheet-icon-font', index: 2},\r\n * moreFormats: {ele: ['#luckysheet-icon-fmt-other', '#luckysheet-separator-more-formats'], index: 3},\r\n * }\r\n */\r\n function buildBoolBarConfig() {\r\n let obj = {};\r\n function array2Config(arr) {\r\n const obj = {};\r\n let current,next;\r\n let index = 0;\r\n for (let i = 0; i b.index){\r\n return 1;\r\n }else{\r\n return -1;\r\n }\r\n }\r\n toobarElements.forEach((curr,index,arr)=>{\r\n arr[index] = curr.ele;\r\n\r\n if(index !== toobarElements.length - 1){\r\n if(curr.ele instanceof Array){\r\n toobarWidths.push($(curr.ele[0]).offset().left);\r\n }else{\r\n toobarWidths.push($(curr.ele).offset().left);\r\n }\r\n }else{\r\n if(curr.ele instanceof Array){\r\n toobarWidths.push($(curr.ele[0]).offset().left);\r\n toobarWidths.push($(curr.ele[0]).offset().left + $(curr.ele[0]).outerWidth() + 5);\r\n }else{\r\n toobarWidths.push($(curr.ele).offset().left);\r\n toobarWidths.push($(curr.ele).offset().left + $(curr.ele).outerWidth() + 5);\r\n }\r\n }\r\n\r\n });\r\n\r\n //If the container does not occupy the full screen, we need to subtract the left margin\r\n const containerLeft = $('#' + Store.container).offset().left;\r\n toobarWidths.forEach((item,i)=>{\r\n toobarWidths[i] -= containerLeft;\r\n })\r\n\r\n}\r\n\r\n/**\r\n *Custom configuration bottom sheet button\r\n */\r\nfunction customSheetbarConfig() {\r\n\r\n if(!luckysheetConfigsetting.initShowsheetbarConfig){\r\n\r\n luckysheetConfigsetting.initShowsheetbarConfig = true;\r\n\r\n const config = {\r\n add: true, //Add worksheet\r\n menu: true, //Worksheet management menu\r\n sheet: true //Worksheet display\r\n }\r\n\r\n if(!luckysheetConfigsetting.showsheetbar){\r\n for(let s in config){\r\n config[s] = false;\r\n }\r\n }\r\n\r\n // showsheetbarConfig determines the final result\r\n if(JSON.stringify(luckysheetConfigsetting.showsheetbarConfig) !== '{}'){\r\n Object.assign(config,luckysheetConfigsetting.showsheetbarConfig);\r\n }\r\n\r\n luckysheetConfigsetting.showsheetbarConfig = config;\r\n\r\n }\r\n\r\n const config = luckysheetConfigsetting.showsheetbarConfig;\r\n\r\n let isHide = 0;\r\n\r\n for (let s in config) {\r\n if(!config[s]){\r\n switch (s) {\r\n case 'add':\r\n $('#luckysheet-sheets-add').hide();\r\n isHide++;\r\n break;\r\n\r\n case 'menu':\r\n $('#luckysheet-sheets-m').hide();\r\n isHide++;\r\n break;\r\n\r\n case 'sheet':\r\n $('#luckysheet-sheet-container').hide();\r\n $('#luckysheet-sheets-leftscroll').hide();\r\n $('#luckysheet-sheets-rightscroll').hide();\r\n isHide++;\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (isHide === 3) {\r\n $(\"#\" + Store.container).find(\"#luckysheet-sheet-area\").hide();\r\n Store.sheetBarHeight = 0;\r\n }\r\n else {\r\n $(\"#\" + Store.container).find(\"#luckysheet-sheet-area\").show();\r\n Store.sheetBarHeight = 31;\r\n }\r\n}\r\n\r\n\r\n/**\r\n * Customize the bottom count bar\r\n */\r\nfunction customStatisticBarConfig() {\r\n if(!luckysheetConfigsetting.initStatisticBarConfig){\r\n\r\n luckysheetConfigsetting.initStatisticBarConfig = true;\r\n\r\n const config = {\r\n count: true, // Count bar\r\n view: true, // print view\r\n zoom: true // Zoom\r\n }\r\n\r\n if(!luckysheetConfigsetting.showstatisticBar){\r\n for(let s in config){\r\n config[s] = false;\r\n }\r\n }\r\n\r\n // showstatisticBarConfig determines the final result\r\n if(JSON.stringify(luckysheetConfigsetting.showstatisticBarConfig) !== '{}'){\r\n Object.assign(config,luckysheetConfigsetting.showstatisticBarConfig);\r\n }\r\n\r\n luckysheetConfigsetting.showstatisticBarConfig = config;\r\n\r\n }\r\n\r\n const config = luckysheetConfigsetting.showstatisticBarConfig;\r\n\r\n let isHide = 0;\r\n\r\n for (let s in config) {\r\n if(!config[s]){\r\n switch (s) {\r\n case 'count':\r\n $('#luckysheet-sta-content').hide();\r\n isHide++;\r\n break;\r\n\r\n case 'view':\r\n $('.luckysheet-print-viewList').hide();\r\n isHide++;\r\n break;\r\n\r\n case 'zoom':\r\n $('#luckysheet-zoom-content').hide();\r\n isHide++;\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (isHide === 3) {\r\n $(\"#\" + Store.container).find(\".luckysheet-stat-area\").hide();\r\n Store.statisticBarHeight = 0;\r\n }\r\n else {\r\n $(\"#\" + Store.container).find(\".luckysheet-stat-area\").show();\r\n Store.statisticBarHeight = 23;\r\n }\r\n}\r\n", "import Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport { modelHTML } from './constant';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport { setluckysheet_scroll_status } from '../methods/set';\r\nimport sheetmanage from './sheetmanage';\r\nimport luckysheetsizeauto from './resize';\r\nimport dataVerificationCtrl from './dataVerificationCtrl';\r\nimport { replaceHtml,transformRangeToAbsolute,openSelfModel } from '../utils/util';\r\nimport { selectionCopyShow } from './select';\r\nimport tooltip from '../global/tooltip';\r\nimport cleargridelement from '../global/cleargridelement';\r\n\r\nlet isInitialProtection = false, isInitialProtectionAddRang = false, rangeItemListCache=[], isAddRangeItemState=true, updateRangeItemIndex = null, validationAuthority=null, updatingSheetFile=null, firstInputSheetProtectionPassword = true;\r\nlet sqrefMapCache = {}, inputRangeProtectionPassword = {}, initialRangePasswordHtml=false;\r\n\r\nconst authorityItemArr = [\r\n \"selectLockedCells\",\r\n \"selectunLockedCells\",\r\n \"formatCells\",\r\n \"formatColumns\",\r\n \"formatRows\",\r\n \"insertColumns\",\r\n \"insertRows\",\r\n \"insertHyperlinks\",\r\n \"deleteColumns\",\r\n \"deleteRows\",\r\n \"sort\",\r\n \"filter\",\r\n \"usePivotTablereports\",\r\n \"editObjects\",\r\n \"editScenarios\"\r\n]\r\n\r\nfunction addRangeItem(item){\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n const locale_button = _locale.button;\r\n\r\n let title = item.name, sqref = item.sqref, password = item.password;\r\n \r\n let passwordTxt = \"\";\r\n if(password!=null && password.length>0){\r\n passwordTxt = '';\r\n }\r\n\r\n let rangeItemTemplate = `\r\n
\r\n
\r\n \r\n
\r\n
\r\n ${title}${passwordTxt}\r\n
\r\n
\r\n ${sqref}\r\n
\r\n
\r\n \r\n
\r\n
\r\n `;\r\n\r\n $(\"#luckysheet-protection-rangeItem-container\").append(rangeItemTemplate);\r\n}\r\n\r\nexport function initialEvent(file){\r\n\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n const locale_button = _locale.button;\r\n\r\n //confirm protection\r\n $(\"#luckysheet-slider-protection-ok\").unbind(\"click\").click(function () {\r\n let password = $(\"#protection-password\").val();\r\n let sheet = $(\"#protection-swichProtectionState\").is(\":checked\");\r\n let hint = $(\"#protection-hint\").val();\r\n\r\n let file = updatingSheetFile, aut = {};\r\n\r\n if(file!=null && file.config!=null && file.config.authority!=null){\r\n aut = file.config.authority;\r\n } \r\n \r\n let authorityData = {\r\n\r\n }\r\n\r\n let algorithmName = \"None\";\r\n if(password!=\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\"){\r\n authorityData.password = password;\r\n authorityData.algorithmName = \"None\";\r\n authorityData.saltValue = null;\r\n }\r\n else if(aut!=null){\r\n authorityData.algorithmName = aut.algorithmName;\r\n authorityData.saltValue = aut.saltValue;\r\n authorityData.password = aut.password;\r\n }\r\n else {\r\n authorityData.algorithmName = \"None\";\r\n authorityData.saltValue = null;\r\n authorityData.password = \"\";\r\n }\r\n\r\n authorityData.hintText = hint;\r\n\r\n authorityData.sheet = sheet==true?1:0;\r\n\r\n for(let i=0;i div.luckysheet-protection-rangeItem\").index($rangeItem);\r\n\r\n let item = rangeItemListCache[index];\r\n\r\n updateRangeItemIndex = index;\r\n\r\n $(\"#protection-allowRangeAdd-title\").val(item.name);\r\n $(\"#protection-allowRangeAdd-range input\").val(item.sqref);\r\n if(item.algorithmName==\"None\"){\r\n $(\"#protection-allowRangeAdd-password\").val(item.password);\r\n }\r\n else{\r\n $(\"#protection-allowRangeAdd-password\").val(\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\");\r\n }\r\n $(\"#protection-allowRangeAdd-hint\").val(item.hintText);\r\n });\r\n\r\n //delete allow edit range\r\n $(document).off(\"click.luckysheetProtection.rangeItemDelete\").on(\"click.luckysheetProtection.rangeItemDelete\",\"#luckysheet-protection-rangeItem-container .luckysheet-protection-rangeItem-del\", function(e){\r\n let $rangeItem = $(e.target).closest(\".luckysheet-protection-rangeItem\");\r\n\r\n let $rangeItemContainer = $(\"#luckysheet-protection-rangeItem-container\");\r\n\r\n let index = $rangeItemContainer.find(\"> div.luckysheet-protection-rangeItem\").index($rangeItem);\r\n\r\n let item = rangeItemListCache[index];\r\n\r\n rangeItemListCache.splice(index, 1);\r\n $rangeItem.remove();\r\n });\r\n\r\n //confirm allow edit range\r\n $(document).off(\"click.luckysheetProtection.rangeItemConfirm\").on(\"click.luckysheetProtection.rangeItemConfirm\",\"#luckysheet-protection-rangeItem-confirm\", function(){\r\n let name = $(\"#protection-allowRangeAdd-title\").val(),\r\n rangeText = $(\"#protection-allowRangeAdd-range input\").val(),\r\n password = $(\"#protection-allowRangeAdd-password\").val(),\r\n hint = $(\"#protection-allowRangeAdd-hint\").val();\r\n\r\n if(name.length==0){\r\n alert(local_protection.rangeItemErrorTitleNull);\r\n return;\r\n }\r\n\r\n let range = dataVerificationCtrl.getRangeByTxt(rangeText);\r\n\r\n if(rangeText.length==0){\r\n alert(local_protection.rangeItemErrorRangeNull);\r\n return;\r\n }\r\n\r\n if(range.length==0){\r\n alert(local_protection.rangeItemErrorRange);\r\n return;\r\n }\r\n\r\n rangeText = transformRangeToAbsolute(rangeText);\r\n\r\n\r\n if(isAddRangeItemState){\r\n let item = {\r\n name:name,\r\n password:password,\r\n hintText:hint,\r\n algorithmName:\"None\",//MD2,MD4,MD5,RIPEMD-128,RIPEMD-160,SHA-1,SHA-256,SHA-384,SHA-512,WHIRLPOOL\r\n saltValue:null,\r\n checkRangePasswordUrl:null,\r\n sqref:rangeText\r\n }\r\n\r\n addRangeItem(item);\r\n rangeItemListCache.push(item);\r\n }\r\n else{\r\n let index = updateRangeItemIndex;\r\n let item = rangeItemListCache[index];\r\n\r\n item.name = name;\r\n item.sqref = rangeText;\r\n item.hintText = hint;\r\n\r\n if(password!=\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\"){\r\n item.password = password;\r\n item.algorithmName = \"None\";\r\n }\r\n\r\n let $rangeItemContainer = $(\"#luckysheet-protection-rangeItem-container\");\r\n\r\n let $rangeitem = $rangeItemContainer.find(\"> div.luckysheet-protection-rangeItem\").eq(index);\r\n\r\n let $name = $rangeitem.find(\".luckysheet-protection-rangeItem-name\");\r\n\r\n let passwordTxt = \"\";\r\n if(password!=null && password.length>0){\r\n passwordTxt = '';\r\n }\r\n\r\n $name.html(name+passwordTxt).attr(\"title\",name);\r\n\r\n let $range = $rangeitem.find(\".luckysheet-protection-rangeItem-range\");\r\n\r\n $range.html(rangeText).attr(\"title\",rangeText);\r\n }\r\n\r\n\r\n\r\n $(\"#luckysheet-protection-rangeItem-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n\r\n });\r\n\r\n\r\n //sheet validation check passWord\r\n $(document).off(\"click.luckysheetProtection.validationConfirm\").on(\"click.luckysheetProtection.validationConfirm\",\"#luckysheet-protection-sheet-validation-confirm\", function(e){\r\n let $validation = $(\"#luckysheet-protection-sheet-validation\");\r\n let aut = validationAuthority;\r\n\r\n if(aut==null){\r\n restoreProtectionConfig(validationAuthority);\r\n $validation.hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-protection\").show();\r\n luckysheetsizeauto();\r\n return;\r\n }\r\n \r\n let $input = $validation.find(\"input\");\r\n let password = $input.val();\r\n\r\n\r\n if(password==null || password.length==0){\r\n alert(local_protection.checkPasswordNullalert);\r\n return;\r\n }\r\n\r\n if(aut.algorithmName!=null && aut.algorithmName!=\"None\"){\r\n if(aut.saltValue!=null && aut.saltValue.length>0){\r\n var hasher = CryptoApi.getHasher(aut.algorithmName);\r\n password =CryptoApi.hmac(aut.saltValue, password, hasher);\r\n }\r\n else{\r\n password = CryptoApi.hash(aut.algorithmName, password);\r\n }\r\n }\r\n\r\n if(password==aut.password){\r\n restoreProtectionConfig(validationAuthority);\r\n $validation.hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-protection\").show();\r\n luckysheetsizeauto();\r\n firstInputSheetProtectionPassword = false;\r\n }\r\n else{\r\n alert(local_protection.checkPasswordWrongalert);\r\n }\r\n \r\n });\r\n\r\n $(\"#luckysheet-protection-check-selectLockedCells\").change(function() { \r\n let $selectLockedCells = $(\"#luckysheet-protection-check-selectLockedCells\"), $selectunLockedCells = $(\"#luckysheet-protection-check-selectunLockedCells\");\r\n\r\n let selectLockedCellsChecked = $selectLockedCells.is(\":checked\"), selectunLockedCellsChecked = $selectunLockedCells.is(\":checked\");\r\n\r\n if(selectLockedCellsChecked){\r\n $selectunLockedCells.prop('checked', true);\r\n }\r\n });\r\n\r\n $(\"#luckysheet-protection-check-selectunLockedCells\").change(function() { \r\n let $selectLockedCells = $(\"#luckysheet-protection-check-selectLockedCells\"), $selectunLockedCells = $(\"#luckysheet-protection-check-selectunLockedCells\");\r\n\r\n let selectLockedCellsChecked = $selectLockedCells.is(\":checked\"), selectunLockedCellsChecked = $selectunLockedCells.is(\":checked\");\r\n\r\n if(!selectunLockedCellsChecked){\r\n $selectLockedCells.prop('checked', false);\r\n }\r\n });\r\n\r\n\r\n //Cell range select controll\r\n $(document).off(\"click.luckysheetProtection.dvRange\").on(\"click.luckysheetProtection.dvRange\", \"#protection-allowRangeAdd-range .fa-table\", function(e) {\r\n $(\"#luckysheet-protection-rangeItem-dialog\").hide();\r\n\r\n let dataSource = \"0\";\r\n let txt = $(this).siblings(\"input\").val().trim(); \r\n\r\n dataVerificationCtrl.rangeDialog(dataSource, txt);\r\n\r\n dataVerificationCtrl.selectRange = [];\r\n\r\n let range = dataVerificationCtrl.getRangeByTxt(txt);\r\n if(range.length > 0){\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n dataVerificationCtrl.selectRange.push({ \r\n \"left\": col_pre, \r\n \"width\": col - col_pre - 1, \r\n \"top\": row_pre, \r\n \"height\": row - row_pre - 1, \r\n \"left_move\": col_pre, \r\n \"width_move\": col - col_pre - 1, \r\n \"top_move\": row_pre, \r\n \"height_move\": row - row_pre - 1, \r\n \"row\": [r1, r2], \r\n \"column\": [c1, c2], \r\n \"row_focus\": r1, \r\n \"column_focus\": c1 \r\n });\r\n }\r\n }\r\n \r\n selectionCopyShow(dataVerificationCtrl.selectRange);\r\n }); \r\n $(document).off(\"click.luckysheetProtection.dvRange2\").on(\"click.luckysheetProtection.dvRange2\", \"#luckysheet-protection-rangeItem-dialog .show-box-item-dropdown .range .fa-table\", function(e) {\r\n $(\"#luckysheet-protection-rangeItem-dialog\").hide();\r\n\r\n let dataSource = \"1\";\r\n let txt = $(this).siblings(\"input\").val().trim(); \r\n\r\n dataVerificationCtrl.rangeDialog(dataSource, txt);\r\n\r\n dataVerificationCtrl.selectRange = [];\r\n\r\n let range = dataVerificationCtrl.getRangeByTxt(txt);\r\n if(range.length > 0){\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n dataVerificationCtrl.selectRange.push({ \r\n \"left\": col_pre, \r\n \"width\": col - col_pre - 1, \r\n \"top\": row_pre, \r\n \"height\": row - row_pre - 1, \r\n \"left_move\": col_pre, \r\n \"width_move\": col - col_pre - 1, \r\n \"top_move\": row_pre, \r\n \"height_move\": row - row_pre - 1, \r\n \"row\": [r1, r2], \r\n \"column\": [c1, c2], \r\n \"row_focus\": r1, \r\n \"column_focus\": c1 \r\n });\r\n }\r\n }\r\n \r\n selectionCopyShow(dataVerificationCtrl.selectRange);\r\n });\r\n $(document).off(\"click.luckysheetProtection.dvRangeConfirm\").on(\"click.luckysheetProtection.dvRangeConfirm\", \"#luckysheet-dataVerificationRange-dialog-confirm\", function(e) {\r\n let txt = $(this).parents(\"#luckysheet-dataVerificationRange-dialog\").find(\"input\").val();\r\n\r\n let $input = $(\"#protection-allowRangeAdd-range input\"), inputValue = $input.val();\r\n if(inputValue.substr(inputValue.length-1, 1)==\",\"){\r\n $input.val(inputValue + txt);\r\n }\r\n else{\r\n $input.val(txt);\r\n }\r\n $(\"#luckysheet-dataVerificationRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-protection-rangeItem-dialog\").show();\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n $(document).off(\"click.luckysheetProtection.dvRangeClose\").on(\"click.dvRangeClose\", \"#luckysheet-dataVerificationRange-dialog-close\", function(e) {\r\n $(\"#luckysheet-dataVerificationRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-protection-rangeItem-dialog\").show();\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n $(document).on(\"click.luckysheetProtection.luckysheetProtection\", \"#luckysheet-dataVerificationRange-dialog .luckysheet-modal-dialog-title-close\", function(e) {\r\n $(\"#luckysheet-dataVerificationRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-protection-rangeItem-dialog\").show();\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n}\r\n\r\n//protect range config\r\nfunction initialProtectionRangeModal(file){\r\n if(isInitialProtectionAddRang){\r\n return;\r\n }\r\n isInitialProtectionAddRang = true;\r\n let _locale = locale();\r\n let local_protection = _locale.protection;\r\n const locale_button = _locale.button;\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-protection-rangeItem-dialog\", \r\n \"addclass\": \"luckysheet-protection-rangeItem-dialog\", \r\n \"title\": local_protection.allowRangeTitle, \r\n \"content\": `\r\n
\r\n
\r\n
\r\n ${local_protection.allowRangeAddTitle}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n ${local_protection.allowRangeAddSqrf}\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${local_protection.allowRangeAddTitlePassword}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n ${local_protection.allowRangeAddTitleHint}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n `, \r\n \"botton\": `\r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n}\r\n\r\n\r\n//Protect sheet initial\r\nfunction initialProtectionRIghtBar(file){\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n const locale_button = _locale.button;\r\n\r\n let authorityItemHtml = \"\";\r\n for(let i=0;i\r\n
\r\n \r\n
\r\n
\r\n `;\r\n }\r\n\r\n const protectionModalHtml = `\r\n
\r\n
${local_protection.protectiontTitle}
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${local_protection.authorityTitle}\r\n
\r\n ${authorityItemHtml}\r\n
\r\n
\r\n
\r\n
\r\n ${local_protection.allowRangeTitle}\r\n
\r\n
\r\n
\r\n ${local_protection.allowRangeAdd}\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n ${locale_button.confirm}\r\n
\r\n
\r\n
\r\n
\r\n ${locale_button.cancel}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n `;\r\n\r\n $(\"body\").append(protectionModalHtml);\r\n\r\n\r\n //Password input initial for sheet Protection\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-protection-sheet-validation\", \r\n \"addclass\": \"luckysheet-protection-sheet-validation\", \r\n \"title\": local_protection.validationTitle, \r\n \"content\": `\r\n
\r\n
\r\n ${local_protection.validationTips}\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n `, \r\n \"botton\": `\r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n\r\n}\r\n\r\n\r\nfunction restoreProtectionConfig(aut){\r\n if(aut==null){\r\n aut = {};\r\n }\r\n for(let i=0;i0){\r\n if(aut.algorithmName==\"None\" || aut.algorithmName==null){\r\n $(\"#protection-password\").val(aut.password);\r\n }\r\n else{\r\n $(\"#protection-password\").val(\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\");\r\n }\r\n }\r\n else{\r\n $(\"#protection-password\").val(\"\");\r\n }\r\n\r\n let sheet = aut.sheet;\r\n if(aut.sheet==null){\r\n sheet = 0;\r\n }\r\n $(\"#protection-swichProtectionState\").prop('checked',sheet==1?true:false);\r\n\r\n let hintText = aut.hintText;\r\n if(hintText==null){\r\n hintText = \"\";\r\n }\r\n $(\"#protection-hint\").val(hintText);\r\n\r\n\r\n rangeItemListCache = [];\r\n $(\"#luckysheet-protection-rangeItem-container\").empty();\r\n let allowRangeList = aut.allowRangeList;\r\n if(allowRangeList!=null && allowRangeList.length>0){\r\n for(let i=0;i0){\r\n validationAuthority = aut;\r\n $(\"#luckysheet-protection-sheet-validation input\").val(\"\");\r\n openSelfModel(\"luckysheet-protection-sheet-validation\");\r\n return;\r\n }\r\n else{//retore protection config\r\n restoreProtectionConfig(aut);\r\n }\r\n }\r\n else{//protection initial config //\u6CA1\u6709\u8BBE\u7F6E\u53EF\u7F16\u8F91\u533A\u57DF\r\n //\u9ED8\u8BA4\u5168\u9009\r\n $(\"#protection-swichProtectionState\").prop('checked', true);//\u4FDD\u62A4\u5DE5\u4F5C\u8868\u53CA\u5176\u5355\u5143\u683C\r\n $(\"#luckysheet-protection-check-selectLockedCells\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-selectunLockedCells\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-formatCells\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-formatColumns\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-formatRows\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-insertColumns\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-insertRows\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-deleteColumns\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-insertHyperlinks\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-deleteRows\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-sort\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-filter\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-usePivotTablereports\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-editObjects\").prop('checked', true);\r\n $(\"#luckysheet-protection-check-editScenarios\").prop('checked', true);\r\n //\u8BBE\u7F6E\u5141\u8BB8\u7528\u6237\u7F16\u8F91\u533A\u57DF\u7684\u533A\u57DF\u7684\u6570\u636E\u4E3A\u7A7A\uFF0C\u5E76\u5C06\u7F13\u5B58\u533A\u7F6E\u7A7A\u3002\r\n clearProtectionModalEditContent();\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-slider-protection\").show();\r\n luckysheetsizeauto();\r\n\r\n}\r\nexport function clearProtectionModalEditContent() {\r\n //\u6E05\u9664\u7528\u6237\u53EF\u7F16\u8F91\u533A\u57DF\u7684\u5185\u5BB9\r\n rangeItemListCache = [];\r\n $(\"#luckysheet-protection-rangeItem-container\").empty();\r\n}\r\nexport function closeProtectionModal(){\r\n $(\"#luckysheet-protection-rangeItem-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-slider-protection\").hide();\r\n luckysheetsizeauto();\r\n}\r\n\r\n\r\n\r\n\r\nfunction checkProtectionLockedSqref(r, c, aut, local_protection, isOpenAlert=true, isLock=true){\r\n let isPass = false;\r\n let rangeAut = aut.allowRangeList;\r\n if(rangeAut!=null && rangeAut.length>0){\r\n let isExists = false;\r\n for(let i=0;i 0){\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n if(r>=r1 && r<=r2 && c>=c1 && c<=c2){\r\n isExists = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if(isExists){\r\n\r\n let password = ra.password;\r\n if(password!=null && password.length>0 && !(sqref in inputRangeProtectionPassword)){\r\n if(isOpenAlert){\r\n openRangePasswordModal(ra);\r\n $(\"#luckysheet-selection-copy .luckysheet-selection-copy\").hide();\r\n }\r\n return false;\r\n }\r\n else{\r\n isPass = true;\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n if (!isPass && !isLock) isPass = true\r\n if(!isPass && isOpenAlert){\r\n let ht;\r\n if(aut.hintText != null && aut.hintText.length>0){\r\n ht = aut.hintText;\r\n }\r\n else{\r\n ht = local_protection.defaultSheetHintText;\r\n }\r\n tooltip.info(\"\", ht);\r\n $(\"#luckysheet-selection-copy .luckysheet-selection-copy\").hide();\r\n }\r\n \r\n return isPass;\r\n}\r\n\r\n\r\nfunction openRangePasswordModal(rangeAut) {\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n const locale_button = _locale.button;\r\n \r\n if(!initialRangePasswordHtml){\r\n //Password input initial for range\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-protection-range-validation\", \r\n \"addclass\": \"luckysheet-protection-sheet-validation\", \r\n \"title\": local_protection.validationTitle, \r\n \"content\": `\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n `, \r\n \"botton\": `\r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n }\r\n\r\n initialRangePasswordHtml = true;\r\n\r\n\r\n \r\n openSelfModel(\"luckysheet-protection-range-validation\");\r\n\r\n let $hint = $(\"#luckysheet-protection-range-validation-hint\");\r\n if(rangeAut.hintText != null && rangeAut.hintText.length>0){\r\n $hint.html(rangeAut.hintText);\r\n }\r\n else{\r\n $hint.html(local_protection.defaultRangeHintText);\r\n }\r\n let $rangeV = $(\"#luckysheet-protection-range-validation\");\r\n let $input = $rangeV.find(\"input\");\r\n $input.val(\"\");\r\n\r\n $(\"#luckysheet-protection-range-validation-confirm\").off(\"click\").on(\"click\", function(){\r\n let password = $input.val();\r\n\r\n if(password==null || password.length==0){\r\n alert(local_protection.checkPasswordNullalert);\r\n return;\r\n }\r\n\r\n if(rangeAut.algorithmName!=null && rangeAut.algorithmName!=\"None\"){\r\n // password = CryptoApi.hash(rangeAut.algorithmName, password);\r\n if(rangeAut.saltValue!=null && rangeAut.saltValue.length>0){\r\n var hasher = CryptoApi.getHasher(rangeAut.algorithmName);\r\n password =CryptoApi.hmac(rangeAut.saltValue, password, hasher);\r\n }\r\n else{\r\n password = CryptoApi.hash(rangeAut.algorithmName, password);\r\n }\r\n }\r\n\r\n if(password==rangeAut.password){\r\n inputRangeProtectionPassword[rangeAut.sqref] = 1;\r\n $rangeV.hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n alert(local_protection.checkPasswordSucceedalert);\r\n }\r\n else{\r\n alert(local_protection.checkPasswordWrongalert);\r\n }\r\n\r\n });\r\n \r\n}\r\n\r\n//protection state\r\nexport function checkProtectionNotEnable(sheetIndex){\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n\r\n let ht;\r\n if(aut.hintText != null && aut.hintText.length>0){\r\n ht = aut.hintText;\r\n }\r\n else{\r\n ht = local_protection.defaultSheetHintText;\r\n }\r\n tooltip.info(\"\", ht);\r\n\r\n return false;\r\n}\r\n\r\n//cell locked state\r\nexport function checkProtectionLocked(r, c, sheetIndex, isOpenAlert=true, isLock=true){\r\n\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let data=sheetFile.data, cell=data[r][c], aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n if(cell && cell.lo === 0){ // lo\u4E3A0\u7684\u65F6\u5019\u624D\u662F\u53EF\u7F16\u8F91\r\n return true;\r\n }\r\n\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n\r\n return checkProtectionLockedSqref(r, c , aut, local_protection, isOpenAlert, isLock);\r\n}\r\n\r\n//cell hidden state\r\nexport function checkProtectionCellHidden(r, c, sheetIndex){\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(!sheetFile || (sheetFile.data && !sheetFile.data[r]) || (sheetFile.data && !sheetFile.data[r][c])){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let data=sheetFile.data, cell=data[r][c], aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n if(cell==null || cell.hi==null || cell.hi==0){\r\n return true;\r\n }\r\n\r\n return false;\r\n}\r\n\r\n//cell range locked state\r\nexport function checkProtectionLockedRangeList(rangeList, sheetIndex){\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n if(rangeList==null || rangeList.length==0){\r\n return true;\r\n }\r\n\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n\r\n for(let s = 0; s < rangeList.length; s++){\r\n let r1 = rangeList[s].row[0], r2 = rangeList[s].row[1];\r\n let c1 = rangeList[s].column[0], c2 = rangeList[s].column[1];\r\n\r\n for(let r=r1;r<=r2;r++){\r\n for(let c=c1;c<=c2;c++){\r\n const cell = sheetFile.data[r][c] || {}\r\n let isLock = cell.lo === undefined || cell.lo === 1, // \u5355\u5143\u683C\u662F\u5426\u9501\u5B9A\r\n isPass = checkProtectionLockedSqref(r, c , aut, local_protection, true, isLock);\r\n if(!isPass){\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n\r\n//selectLockedCells , selectunLockedCells and cell state\r\nexport function checkProtectionSelectLockedOrUnLockedCells(r, c, sheetIndex){\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let data=sheetFile.data, cell=data[r][c], aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n if(cell && cell.lo === 0){ // lo\u4E3A0\u7684\u65F6\u5019\u624D\u662F\u53EF\u7F16\u8F91\r\n if(aut.selectunLockedCells==1 || aut.selectunLockedCells==null){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else{//locked??\r\n let isAllEdit = checkProtectionLockedSqref(r, c , aut, local_protection, false);//dont alert password model\r\n if(isAllEdit){//unlocked\r\n if(aut.selectunLockedCells==1 || aut.selectunLockedCells==null){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else{//locked\r\n if(aut.selectLockedCells==1 || aut.selectLockedCells==null){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n \r\n}\r\n\r\n\r\n\r\n//selectLockedCells or selectunLockedCells authority, highlight cell \r\nexport function checkProtectionAllSelected(sheetIndex){\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n let selectunLockedCells = false;\r\n if(aut.selectunLockedCells==1 || aut.selectunLockedCells==null){\r\n selectunLockedCells = true;\r\n }\r\n\r\n let selectLockedCells = false;\r\n if(aut.selectLockedCells==1 || aut.selectLockedCells==null){\r\n selectLockedCells = true;\r\n }\r\n\r\n if(selectunLockedCells && selectLockedCells){\r\n return true;\r\n }\r\n\r\n return false;\r\n}\r\n\r\n//formatCells authority, bl cl fc fz ff ct border etc.\r\nexport function checkProtectionFormatCells(sheetIndex){\r\n\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n if(aut.formatCells==1 || aut.formatCells==null){\r\n return true;\r\n }\r\n\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n\r\n let ht;\r\n if(aut.hintText != null && aut.hintText.length>0){\r\n ht = aut.hintText;\r\n }\r\n else{\r\n ht = local_protection.defaultSheetHintText;\r\n }\r\n tooltip.info(\"\", ht);\r\n\r\n return false;\r\n}\r\n\r\n//formatColumns authority: controll column hidden and width\r\n//formatRows authority: controll row hidden and height\r\n//insertColumns authority\r\n//insertRows authority\r\n//insertHyperlinks authority:Hyperlinks is not incomplete\r\n//deleteColumns authority\r\n//deleteRows authority\r\n//sort authority\r\n//filter authority\r\n//usePivotTablereports authority\r\n//editObjects authority: insert,delete,update for image, chart, comment,shape etc. \r\n//editScenarios authority: Scenarios features is uncompleted\r\n\r\nexport function checkProtectionAuthorityNormal(sheetIndex, type=\"formatColumns\", isAlert=true){\r\n\r\n let sheetFile = sheetmanage.getSheetByIndex(sheetIndex);\r\n if(sheetFile==null){\r\n return true;\r\n }\r\n\r\n if(sheetFile.config==null || sheetFile.config.authority==null){\r\n return true;\r\n }\r\n\r\n let aut = sheetFile.config.authority;\r\n\r\n if(aut==null || aut.sheet==null || aut.sheet==0 ){\r\n return true;\r\n }\r\n\r\n if(aut[type]==1 || aut[type]==null){\r\n return true;\r\n }\r\n\r\n if(isAlert){\r\n const _locale = locale();\r\n const local_protection = _locale.protection;\r\n \r\n let ht;\r\n if(aut.hintText != null && aut.hintText.length>0){\r\n ht = aut.hintText;\r\n }\r\n else{\r\n ht = local_protection.defaultSheetHintText;\r\n }\r\n tooltip.info(\"\", ht);\r\n }\r\n\r\n return false;\r\n}\r\n", "import { getObjType } from '../utils/util';\r\nimport { isRealNull, isRealNum, isEditMode } from './validate';\r\nimport { isdatetime, diff } from './datecontroll';\r\nimport tooltip from './tooltip';\r\nimport editor from './editor';\r\nimport { rowlenByRange } from './getRowlen';\r\nimport { jfrefreshgrid } from './refresh';\r\nimport {checkProtectionAuthorityNormal} from '../controllers/protection';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport numeral from 'numeral';\r\n\r\n//\u6570\u636E\u6392\u5E8F\u65B9\u6CD5\r\nfunction orderbydata(data, index, isAsc) {\r\n if (isAsc == null) {\r\n isAsc = true;\r\n }\r\n\r\n let a = function (x, y) {\r\n let x1 = x[index] , y1 = y[index];\r\n\r\n if(getObjType(x[index]) == \"object\"){\r\n x1 = x[index].v;\r\n }\r\n\r\n if(getObjType(y[index]) == \"object\"){\r\n y1 = y[index].v;\r\n }\r\n\r\n if(isRealNull(x1)){\r\n return 1;\r\n }\r\n\r\n if(isRealNull(y1)){\r\n return -1;\r\n }\r\n\r\n if (isdatetime(x1) && isdatetime(y1)) {\r\n return diff(x1, y1);\r\n }\r\n else if (isRealNum(x1) && isRealNum(y1)) {\r\n return numeral(x1).value() - numeral(y1).value();\r\n }\r\n else if (!isRealNum(x1) && !isRealNum(y1)) {\r\n return x1.localeCompare(y1, \"zh\");\r\n }\r\n else if (!isRealNum(x1)) {\r\n return 1;\r\n }\r\n else if (!isRealNum(y1)) {\r\n return -1;\r\n }\r\n }\r\n\r\n let d = function (x, y) {\r\n let x1 = x[index] , y1 = y[index];\r\n\r\n if(getObjType(x[index]) == \"object\"){\r\n x1 = x[index].v;\r\n }\r\n\r\n if(getObjType(y[index]) == \"object\"){\r\n y1 = y[index].v;\r\n }\r\n\r\n if(isRealNull(x1)){\r\n return 1;\r\n }\r\n\r\n if(isRealNull(y1)){\r\n return -1;\r\n }\r\n\r\n if (isdatetime(x1) && isdatetime(y1)) {\r\n return diff(y1, x1);\r\n }\r\n else if (isRealNum(x1) && isRealNum(y1)) {\r\n return numeral(y1).value() - numeral(x1).value();\r\n }\r\n else if (!isRealNum(x1) && !isRealNum(y1)) {\r\n return y1.localeCompare(x1, \"zh\");\r\n }\r\n else if (!isRealNum(x1)) {\r\n return -1;\r\n }\r\n else if (!isRealNum(y1)) {\r\n return 1;\r\n }\r\n }\r\n\r\n if (isAsc) {\r\n return data.sort(a);\r\n }\r\n else {\r\n return data.sort(d);\r\n }\r\n}\r\n\r\nfunction orderbydata1D(data, isAsc) {\r\n if (isAsc == null) {\r\n isAsc = true;\r\n }\r\n\r\n let a = function (x, y) {\r\n let x1 = x, y1 = y;\r\n\r\n if(getObjType(x) == \"object\"){\r\n x1 = x.v;\r\n }\r\n\r\n if(getObjType(y) == \"object\"){\r\n y1 = y.v;\r\n }\r\n\r\n if(x1 == null){\r\n x1 = \"\";\r\n }\r\n\r\n if(y1 == null){\r\n y1 = \"\";\r\n }\r\n\r\n if (isdatetime(x1) && isdatetime(y1)) {\r\n return diff(x1, y1);\r\n }\r\n else if (isRealNum(x1) && isRealNum(y1)) {\r\n return numeral(x1).value() - numeral(y1).value();\r\n }\r\n else if (!isRealNum(x1) && !isRealNum(y1)) {\r\n return x1.localeCompare(y1, \"zh\");\r\n }\r\n else if (!isRealNum(x1)) {\r\n return 1;\r\n }\r\n else if (!isRealNum(y1)) {\r\n return -1;\r\n }\r\n }\r\n\r\n let d = function (x, y) {\r\n let x1 = x, y1 = y;\r\n\r\n if(getObjType(x) == \"object\"){\r\n x1 = x.v;\r\n }\r\n\r\n if(getObjType(y) == \"object\"){\r\n y1 = y.v;\r\n }\r\n\r\n if(x1 == null){\r\n x1 = \"\";\r\n }\r\n\r\n if(y1 == null){\r\n y1 = \"\";\r\n }\r\n\r\n if (isdatetime(x1) && isdatetime(y1)) {\r\n return diff(y1, x1);\r\n }\r\n else if (isRealNum(x1) && isRealNum(y1)) {\r\n return numeral(y1).value() - numeral(x1).value();\r\n }\r\n else if (!isRealNum(x1) && !isRealNum(y1)) {\r\n return y1.localeCompare(x1, \"zh\");\r\n }\r\n else if (!isRealNum(x1)) {\r\n return -1;\r\n }\r\n else if (!isRealNum(y1)) {\r\n return 1;\r\n }\r\n }\r\n\r\n if (isAsc) {\r\n return data.sort(a);\r\n }\r\n else {\r\n return data.sort(d);\r\n }\r\n}\r\n\r\n//\u6392\u5E8F\u9009\u533A\u6570\u636E\r\nfunction sortSelection(isAsc) {\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"sort\")){\r\n return;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_sort = _locale.sort;\r\n\r\n if(Store.luckysheet_select_save.length > 1){\r\n if(isEditMode()){\r\n alert(locale_sort.noRangeError);\r\n }\r\n else{\r\n tooltip.info(locale_sort.noRangeError, \"\");\r\n }\r\n\r\n return;\r\n }\r\n\r\n if(isAsc == null){\r\n isAsc = true;\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n\r\n let r1 = Store.luckysheet_select_save[0].row[0], \r\n r2 = Store.luckysheet_select_save[0].row[1];\r\n let c1 = Store.luckysheet_select_save[0].column[0], \r\n c2 = Store.luckysheet_select_save[0].column[1];\r\n\r\n let str, edr;\r\n\r\n for(let r = r1; r <= r2; r++){\r\n if(d[r] != null && d[r][c1] != null){\r\n let cell = d[r][c1];\r\n\r\n if(cell.mc != null || isRealNull(cell.v)){\r\n continue;\r\n }\r\n\r\n if(str == null && /[\\u4e00-\\u9fa5]+/g.test(cell.v)){\r\n str = r + 1;\r\n edr = r + 1;\r\n continue;\r\n }\r\n \r\n if(str == null){\r\n str = r; \r\n }\r\n\r\n edr = r;\r\n }\r\n }\r\n\r\n if(str == null || str > r2){\r\n return;\r\n }\r\n\r\n let hasMc = false; //\u6392\u5E8F\u9009\u533A\u662F\u5426\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let data = [];\r\n\r\n for(let r = str; r <= edr; r++){\r\n let data_row = [];\r\n\r\n for(let c = c1; c <= c2; c++){\r\n if(d[r][c] != null && d[r][c].mc != null){\r\n hasMc = true;\r\n break;\r\n }\r\n\r\n data_row.push(d[r][c]);\r\n }\r\n\r\n data.push(data_row);\r\n }\r\n\r\n if(hasMc){\r\n if(isEditMode()){\r\n alert(locale_sort.mergeError);\r\n }\r\n else{\r\n tooltip.info(locale_sort.mergeError, \"\");\r\n }\r\n\r\n return;\r\n }\r\n\r\n data = orderbydata(data, 0, isAsc);\r\n\r\n for(let r = str; r <= edr; r++){\r\n for(let c = c1; c <= c2; c++){\r\n d[r][c] = data[r - str][c - c1];\r\n }\r\n }\r\n\r\n let allParam = {};\r\n if(Store.config[\"rowlen\"] != null){\r\n let cfg = $.extend(true, {}, Store.config);\r\n cfg = rowlenByRange(d, str, edr, cfg);\r\n\r\n allParam = {\r\n \"cfg\": cfg,\r\n \"RowlChange\": true\r\n }\r\n }\r\n\r\n jfrefreshgrid(d, [{ \"row\": [str, edr], \"column\": [c1, c2] }], allParam);\r\n}\r\n\r\n//\u6392\u5E8F\u4E00\u5217\u6570\u636E\r\nfunction sortColumnSeletion(colIndex, isAsc) {\r\n if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"sort\")){\r\n return;\r\n }\r\n if(isAsc == null){\r\n isAsc = true;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_sort = _locale.sort;\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n\r\n let r1 = 0, r2 = d.length - 1;\r\n let c1 = 0, c2 = d[0].length - 1;\r\n\r\n let str, edr;\r\n\r\n for(let r = r1; r <= r2; r++){\r\n if(d[r][colIndex] != null && d[r][colIndex].mc != null){\r\n continue;\r\n }\r\n\r\n if(d[r][colIndex] != null && !isRealNull(d[r][colIndex].v) && /[\\u4e00-\\u9fa5]+/g.test(d[r][colIndex].v) && str == null){\r\n str = r + 1;\r\n edr = r + 1;\r\n continue;\r\n }\r\n\r\n if(str == null){\r\n str = r; \r\n }\r\n\r\n if(d[r][colIndex] != null && !isRealNull(d[r][colIndex].v)){\r\n edr = r;\r\n }\r\n }\r\n\r\n if(str == null || str > r2){\r\n return;\r\n }\r\n\r\n let hasMc = false; //\u6392\u5E8F\u9009\u533A\u662F\u5426\u6709\u5408\u5E76\u5355\u5143\u683C\r\n let data = [];\r\n\r\n for(let r = str; r <= edr; r++){\r\n let data_row = [];\r\n\r\n for(let c = c1; c <= c2; c++){\r\n if(d[r][c] != null && d[r][c].mc != null){\r\n hasMc = true;\r\n break;\r\n }\r\n\r\n data_row.push(d[r][c]);\r\n }\r\n\r\n data.push(data_row);\r\n }\r\n\r\n if(hasMc){\r\n if(isEditMode()){\r\n alert(locale_sort.columnSortMergeError);\r\n }\r\n else{\r\n tooltip.info(locale_sort.columnSortMergeError, \"\");\r\n }\r\n\r\n return;\r\n }\r\n\r\n data = orderbydata(data, colIndex, isAsc);\r\n\r\n for(let r = str; r <= edr; r++){\r\n for(let c = c1; c <= c2; c++){\r\n d[r][c] = data[r - str][c - c1];\r\n }\r\n }\r\n\r\n let allParam = {};\r\n if(Store.config[\"rowlen\"] != null){\r\n let cfg = $.extend(true, {}, Store.config);\r\n cfg = rowlenByRange(d, str, edr, cfg);\r\n\r\n allParam = {\r\n \"cfg\": cfg,\r\n \"RowlChange\": true\r\n }\r\n }\r\n\r\n jfrefreshgrid(d, [{ \"row\": [str, edr], \"column\": [c1, c2] }], allParam);\r\n}\r\n\r\nexport {\r\n orderbydata,\r\n orderbydata1D,\r\n sortSelection,\r\n sortColumnSeletion,\r\n}", "import { getcellvalue } from './getdata';\r\n\r\nconst luckysheetArray = {\r\n transpose: function (getdata, useGetcellValue=true) {\r\n let arr = [];\r\n if (getdata.length == 0) {\r\n return [];\r\n }\r\n\r\n if (getdata[0].length == 0) {\r\n return [];\r\n }\r\n\r\n for (let c = 0; c < getdata[0].length; c++) {\r\n let a = [];\r\n for (let r = 0; r < getdata.length; r++) {\r\n let value = \"\";\r\n if (getdata[r] != null && getdata[r][c] != null) {\r\n if(useGetcellValue){\r\n value = getcellvalue(r, c, getdata);\r\n }\r\n else{\r\n value = getdata[r][c];\r\n }\r\n }\r\n a.push(value);\r\n }\r\n arr.push(a);\r\n }\r\n\r\n return arr;\r\n },\r\n minusClear: function(p, m){\r\n if(m.row[0] > p.row[1] || m.row[1] < p.row[0] || m.column[0] > p.column[1] || m.column[1] < p.column[0]){\r\n return null;\r\n }\r\n\r\n if(m.row[0] == p.row[0] && m.row[1] < p.row[1] && m.column[0] > p.column[0] && m.column[1] < p.column[1]){\r\n return [];\r\n }\r\n\r\n let ret = [], range = {row:[], column:[]};\r\n\r\n let row1 = null, column1 = [p.column[0], p.column[1]];\r\n if(m.row[1] > p.row[0] && m.row[1] < p.row[1]){\r\n row1 = [m.row[1] + 1, p.row[1]];\r\n }\r\n else if(m.row[0] > p.row[0] && m.row[0] < p.row[1]){\r\n row1 = [p.row[0], m.row[0] - 1];\r\n }\r\n\r\n if(row1 != null){\r\n ret.push({\"row\": row1, \"column\": column1});\r\n }\r\n\r\n let row2 = [p.row[0], p.row[1]], column2 = null;\r\n if(m.column[1] > p.column[0] && m.column[1] < p.column[1]){\r\n column2 = [m.column[1] + 1, p.column[1]];\r\n }\r\n else if(m.column[0] > p.column[0] && m.column[0] < p.column[1]){\r\n column2 = [p.column[0], m.column[0] - 1];\r\n }\r\n\r\n if(column2 != null){\r\n ret.push({\"row\": row2, \"column\": column2});\r\n }\r\n\r\n return ret;\r\n }\r\n}\r\n\r\nexport default luckysheetArray;", "import { numFormat } from '../utils/util';\r\n\r\nconst analysis = {\r\n \"STDEVP\": function (mean, array1d) {\r\n let cov = 0;\r\n for (let i = 0; i < array1d.length; i++) {\r\n let xi = array1d[i];\r\n cov += Math.pow(xi - mean, 2);\r\n }\r\n return numFormat(Math.sqrt(cov / array1d.length));\r\n },\r\n \"STDEV\": function (mean, array1d) {\r\n let cov = 0;\r\n for (let i = 0; i < array1d.length; i++) {\r\n let xi = array1d[i];\r\n cov += Math.pow(xi - mean, 2);\r\n }\r\n return numFormat(Math.sqrt(cov / (array1d.length - 1)));\r\n },\r\n \"VARP\": function (mean, array1d) {\r\n let cov = 0;\r\n for (let i = 0; i < array1d.length; i++) {\r\n let xi = array1d[i];\r\n cov += Math.pow(xi - mean, 2);\r\n }\r\n return numFormat(cov / array1d.length);\r\n },\r\n \"let\": function (mean, array1d) {\r\n let cov = 0;\r\n for (let i = 0; i < array1d.length; i++) {\r\n let xi = array1d[i];\r\n cov += Math.pow(xi - mean, 2);\r\n }\r\n return numFormat(cov / (array1d.length - 1));\r\n },\r\n};\r\n\r\nexport default analysis;", "import { getSheetIndex, getRangetxt } from \"../methods/get\";\r\nimport {\r\n replaceHtml,\r\n getObjType,\r\n ABCatNum,\r\n numFormat,\r\n numfloatlen,\r\n showrightclickmenu,\r\n mouseclickposition,\r\n} from \"../utils/util\";\r\nimport { getdatabyselectionD, getcellvalue, datagridgrowth } from \"../global/getdata\";\r\nimport { isdatetime, diff, isdatatypemulti, isdatatype } from \"../global/datecontroll\";\r\nimport { genarate, update } from \"../global/format\";\r\nimport { isRealNull, isEditMode } from \"../global/validate\";\r\nimport { orderbydata1D } from \"../global/sort\";\r\nimport { jfrefreshgrid, jfrefreshgridall } from \"../global/refresh\";\r\nimport tooltip from \"../global/tooltip\";\r\nimport editor from \"../global/editor\";\r\nimport cleargridelement from \"../global/cleargridelement\";\r\nimport luckysheetArray from \"../global/array\";\r\nimport analysis from \"../global/analysis\";\r\nimport { selectHightlightShow } from \"./select\";\r\nimport { luckysheet_searcharray } from \"./sheetSearch\";\r\nimport {\r\n modelHTML,\r\n filtermenuHTML,\r\n filtersubmenuHTML,\r\n pivottableconfigHTML,\r\n pivottablesumHTML,\r\n luckysheetPivotTableHTML,\r\n} from \"./constant\";\r\nimport sheetmanage from \"./sheetmanage\";\r\nimport luckysheetsizeauto from \"./resize\";\r\nimport server from \"./server\";\r\nimport { checkProtectionAuthorityNormal } from \"./protection\";\r\nimport Store from \"../store\";\r\nimport locale from \"../locale/locale\";\r\nimport numeral from \"numeral\";\r\nimport { luckysheetlodingHTML } from \"../controllers/constant\";\r\n\r\nconst pivotTable = {\r\n pivotDatas: null,\r\n pivotSheetIndex: 0,\r\n pivotDataSheetIndex: 0,\r\n celldata: null,\r\n origindata: null,\r\n getCellData: function(cursheetindex, datasheetindex, data_select_save) {\r\n let _this = this;\r\n\r\n let sheetIndex;\r\n if (cursheetindex != null) {\r\n sheetIndex = cursheetindex;\r\n } else {\r\n sheetIndex = Store.currentSheetIndex;\r\n }\r\n\r\n let realIndex = getSheetIndex(sheetIndex);\r\n\r\n if (getObjType(Store.luckysheetfile[realIndex].pivotTable) != \"object\") {\r\n Store.luckysheetfile[realIndex].pivotTable = new Function(\r\n \"return \" + Store.luckysheetfile[realIndex].pivotTable,\r\n )();\r\n }\r\n\r\n if (Store.luckysheetfile[realIndex].pivotTable != null) {\r\n _this.column = Store.luckysheetfile[realIndex].pivotTable.column;\r\n _this.row = Store.luckysheetfile[realIndex].pivotTable.row;\r\n _this.values = Store.luckysheetfile[realIndex].pivotTable.values;\r\n _this.filter = Store.luckysheetfile[realIndex].pivotTable.filter;\r\n _this.showType = Store.luckysheetfile[realIndex].pivotTable.showType;\r\n\r\n _this.filterparm = Store.luckysheetfile[realIndex].pivotTable.filterparm;\r\n\r\n if (Store.luckysheetfile[realIndex].pivotTable.drawPivotTable != null) {\r\n _this.drawPivotTable = Store.luckysheetfile[realIndex].pivotTable.drawPivotTable;\r\n } else {\r\n _this.drawPivotTable = true;\r\n }\r\n\r\n if (Store.luckysheetfile[realIndex].pivotTable.pivotTableBoundary != null) {\r\n _this.pivotTableBoundary = Store.luckysheetfile[realIndex].pivotTable.pivotTableBoundary;\r\n } else {\r\n _this.pivotTableBoundary = [12, 6];\r\n }\r\n\r\n if (data_select_save != null) {\r\n _this.pivot_select_save = data_select_save;\r\n } else {\r\n _this.pivot_select_save = Store.luckysheetfile[realIndex].pivotTable.pivot_select_save;\r\n }\r\n\r\n if (datasheetindex != null) {\r\n _this.pivotDataSheetIndex = datasheetindex;\r\n } else {\r\n _this.pivotDataSheetIndex = Store.luckysheetfile[realIndex].pivotTable.pivotDataSheetIndex;\r\n }\r\n } else {\r\n _this.column = null;\r\n _this.row = null;\r\n _this.values = null;\r\n _this.filter = null;\r\n _this.showType = null;\r\n\r\n _this.filterparm = null;\r\n\r\n _this.drawPivotTable = true;\r\n _this.pivotTableBoundary = [12, 6];\r\n\r\n if (data_select_save != null) {\r\n _this.pivot_select_save = data_select_save;\r\n } else {\r\n _this.pivot_select_save = Store.luckysheet_select_save;\r\n }\r\n\r\n if (datasheetindex != null) {\r\n _this.pivotDataSheetIndex = datasheetindex;\r\n } else {\r\n _this.pivotDataSheetIndex = sheetIndex;\r\n }\r\n }\r\n\r\n let pivotrealIndex = getSheetIndex(_this.pivotDataSheetIndex);\r\n\r\n let otherfile = Store.luckysheetfile[pivotrealIndex];\r\n if (otherfile[\"data\"] == null) {\r\n otherfile[\"data\"] = sheetmanage.buildGridData(otherfile);\r\n }\r\n _this.origindata = getdatabyselectionD(otherfile.data, _this.pivot_select_save);\r\n\r\n let rowhidden = {};\r\n if (_this.filterparm != null) {\r\n for (let f in _this.filterparm) {\r\n // \u76EE\u7684\u662F\u53D6\u51FArowhidden\r\n for (let h in _this.filterparm[f]) {\r\n if (h === \"rowhidden\" && _this.filterparm[f][h] != null) {\r\n rowhidden = $.extend(true, rowhidden, _this.filterparm[f][h]);\r\n }\r\n }\r\n }\r\n }\r\n _this.rowhidden = rowhidden;\r\n\r\n _this.pivotSheetIndex = sheetIndex;\r\n\r\n let newdata = [];\r\n for (let i = 0; i < _this.origindata.length; i++) {\r\n if (_this.rowhidden != null && _this.rowhidden[i] != null) {\r\n continue;\r\n }\r\n newdata.push([].concat(_this.origindata[i]));\r\n }\r\n _this.celldata = newdata;\r\n\r\n _this.pivot_data_type = {};\r\n for (let c = 0; c < _this.celldata[1].length; c++) {\r\n let type = isdatatype(_this.celldata[1][c]);\r\n _this.pivot_data_type[c.toString()] = type;\r\n }\r\n },\r\n pivot_data_type: {},\r\n pivot_select_save: null,\r\n column: null,\r\n row: null,\r\n values: null,\r\n filter: null,\r\n showType: null,\r\n rowhidden: null,\r\n selected: null,\r\n caljs: null,\r\n initial: true,\r\n filterparm: null,\r\n luckysheet_pivotTable_select_state: false,\r\n jgridCurrentPivotInput: null,\r\n movestate: false,\r\n moveitemposition: [],\r\n movesave: {},\r\n showvaluecolrow: function() {\r\n let _this = this;\r\n\r\n if ($(\"#luckysheet-modal-dialog-config-value .luckysheet-modal-dialog-slider-config-item\").length >= 2) {\r\n $(\"#luckysheetpivottablevaluecolrowshow\").show();\r\n\r\n if (_this.showType == \"column\") {\r\n $(\"#luckysheetpivottablevaluecolrow\").prop(\"checked\", true);\r\n $(\"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow']\").addClass(\r\n \"ui-state-active\",\r\n );\r\n\r\n $(\"#luckysheetpivottablevaluecolrow1\").prop(\"checked\", false);\r\n $(\"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow1']\").removeClass(\r\n \"ui-state-active\",\r\n );\r\n } else {\r\n $(\"#luckysheetpivottablevaluecolrow1\").prop(\"checked\", true);\r\n $(\"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow1']\").addClass(\r\n \"ui-state-active\",\r\n );\r\n\r\n $(\"#luckysheetpivottablevaluecolrow\").prop(\"checked\", false);\r\n $(\"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow']\").removeClass(\r\n \"ui-state-active\",\r\n );\r\n }\r\n } else {\r\n $(\"#luckysheetpivottablevaluecolrowshow\").hide();\r\n }\r\n },\r\n resetOrderby: function(obj) {\r\n let orderby = $(\"#luckysheet-modal-dialog-config-value .luckysheet-modal-dialog-slider-config-item\").index(obj);\r\n $(\"#luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column\")\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function() {\r\n if ($(this).data(\"orderby\") == orderby) {\r\n $(this).data(\"orderby\", \"self\");\r\n }\r\n });\r\n },\r\n luckysheetsliderlistclearfilter: function($filter) {\r\n let _this = this;\r\n\r\n let $t = $filter.parent();\r\n let cindex = $t.data(\"index\");\r\n\r\n let rowhidden = {},\r\n selected = {},\r\n d = _this.origindata,\r\n filterdata = {};\r\n\r\n $t.data(\"rowhidden\", \"\")\r\n .find(\".luckysheet-slider-list-item-filtered\")\r\n .hide();\r\n _this.setDatatojsfile(\"selected\", {}, cindex);\r\n _this.setDatatojsfile(\"rowhidden\", null, cindex);\r\n\r\n let newdata = [];\r\n for (let i = 0; i < d.length; i++) {\r\n if (rowhidden[i] != null) {\r\n continue;\r\n }\r\n newdata.push([].concat(d[i]));\r\n }\r\n\r\n _this.celldata = newdata;\r\n _this.refreshPivotTable();\r\n $(\"#luckysheet-pivotTableFilter-menu, #luckysheet-pivotTableFilter-submenu\").hide();\r\n },\r\n luckysheetsliderlistitemfilter: function($filter) {\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n\r\n let $t = $filter.parent(),\r\n toffset = $t.offset(),\r\n $menu = $(\"#luckysheet-pivotTableFilter-menu\"),\r\n winH = $(window).height(),\r\n winW = $(window).width();\r\n\r\n let cindex = $t.data(\"index\");\r\n\r\n let rowhidden = $t.data(\"rowhidden\");\r\n if (rowhidden == null || rowhidden == \"\") {\r\n rowhidden = {};\r\n } else if (getObjType(rowhidden) == \"string\") {\r\n rowhidden = JSON.parse(rowhidden);\r\n }\r\n\r\n $(\"body .luckysheet-cols-menu\").hide();\r\n $(\"#luckysheet-pivotTableFilter-menu, #luckysheet-pivotTableFilter-submenu\").hide();\r\n $(\"#luckysheet-pivotTableFilter-byvalue-input\").val(\"\");\r\n $(\"#luckysheet-pivotTableFilter-bycondition\")\r\n .next()\r\n .hide();\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .show();\r\n\r\n $menu.data(\"index\", cindex);\r\n\r\n $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input\")\r\n .hide()\r\n .find(\"input\")\r\n .val();\r\n $(\"#luckysheet-pivotTableFilter-selected span\")\r\n .data(\"type\", \"0\")\r\n .data(\"type\", null)\r\n .text(locale_filter.filiterInputNone);\r\n\r\n let byconditiontype = $t.data(\"byconditiontype\");\r\n $(\"#luckysheet-pivotTableFilter-selected span\")\r\n .data(\"value\", $t.data(\"byconditionvalue\"))\r\n .data(\"type\", byconditiontype)\r\n .text($t.data(\"byconditiontext\"));\r\n\r\n if (byconditiontype == \"2\") {\r\n let $input = $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input2\")\r\n .show()\r\n .find(\"input\");\r\n $input.eq(0).val($t.data(\"byconditionvalue1\"));\r\n $input.eq(1).val($t.data(\"byconditionvalue2\"));\r\n } else if (byconditiontype == \"1\") {\r\n $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input\")\r\n .eq(0)\r\n .show()\r\n .find(\"input\")\r\n .val($t.data(\"byconditionvalue1\"));\r\n }\r\n const loadingObj = luckysheetlodingHTML(\"#luckysheet-pivotTableFilter-byvalue-select\", {\r\n text: locale_filter.filiterMoreDataTip,\r\n });\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select\")\r\n .empty()\r\n .append(loadingObj.el);\r\n\r\n let rowhiddenother = {}; //\u5176\u5B83\u7B5B\u9009\u5217\u7684\u9690\u85CF\u884C\r\n $(\"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\")\r\n .not($t.get(0))\r\n .each(function() {\r\n let $t = $(this),\r\n rh = $t.data(\"rowhidden\");\r\n\r\n if (rh == null || rh == \"\") {\r\n return true;\r\n }\r\n\r\n if (getObjType(rh) == \"string\") {\r\n rh = JSON.parse(rh);\r\n }\r\n\r\n for (let r in rh) {\r\n rowhiddenother[r] = 0;\r\n }\r\n });\r\n\r\n let data = _this.origindata;\r\n\r\n setTimeout(function() {\r\n //\u65E5\u671F\u503C\r\n let dvmap = {};\r\n let dvmap_uncheck = {};\r\n\r\n //\u9664\u65E5\u671F\u4EE5\u5916\u7684\u503C\r\n let vmap = {};\r\n let vmap_uncheck = {};\r\n\r\n for (let r = 1; r < data.length; r++) {\r\n if (r in rowhiddenother) {\r\n continue;\r\n }\r\n\r\n if (data[r] == null) {\r\n continue;\r\n }\r\n\r\n let cell = data[r][cindex];\r\n\r\n if (cell != null && cell.ct != null && cell.ct.t == \"d\") {\r\n //\u5355\u5143\u683C\u662F\u65E5\u671F\r\n let v = update(\"YYYY-MM-DD\", cell.v);\r\n\r\n let y = v.split(\"-\")[0];\r\n let m = v.split(\"-\")[1];\r\n let d = v.split(\"-\")[2];\r\n\r\n if (!(y in dvmap)) {\r\n dvmap[y] = {};\r\n }\r\n\r\n if (!(m in dvmap[y])) {\r\n dvmap[y][m] = {};\r\n }\r\n\r\n if (!(d in dvmap[y][m])) {\r\n dvmap[y][m][d] = 0;\r\n }\r\n\r\n dvmap[y][m][d]++;\r\n\r\n if (r in rowhidden) {\r\n dvmap_uncheck[y] = 0;\r\n dvmap_uncheck[m] = 0;\r\n dvmap_uncheck[d] = 0;\r\n }\r\n } else {\r\n let v, m;\r\n if (cell == null || isRealNull(cell.v)) {\r\n v = null;\r\n m = null;\r\n } else {\r\n v = cell.v;\r\n m = cell.m;\r\n }\r\n\r\n if (!(v in vmap)) {\r\n vmap[v] = {};\r\n }\r\n\r\n if (!(m in vmap[v])) {\r\n vmap[v][m] = 0;\r\n }\r\n\r\n vmap[v][m]++;\r\n\r\n if (r in rowhidden) {\r\n vmap_uncheck[v + \"#$$$#\" + m] = 0;\r\n }\r\n }\r\n }\r\n\r\n //\u904D\u5386\u6570\u636E\u52A0\u5230\u9875\u9762\r\n let item = [];\r\n\r\n if (JSON.stringify(dvmap).length > 2) {\r\n for (let y in dvmap) {\r\n let ysum = 0;\r\n let monthHtml = \"\";\r\n\r\n for (let m in dvmap[y]) {\r\n let msum = 0;\r\n let dayHtml = \"\";\r\n\r\n for (let d in dvmap[y][m]) {\r\n let dayL = dvmap[y][m][d];\r\n msum += dayL;\r\n\r\n //\u6708 \u5C0F\u4E8E 10\r\n let mT;\r\n if (Number(m) < 10) {\r\n mT = \"0\" + Number(m);\r\n } else {\r\n mT = m;\r\n }\r\n\r\n //\u65E5 \u5C0F\u4E8E 10\r\n let dT;\r\n if (Number(d) < 10) {\r\n dT = \"0\" + Number(d);\r\n } else {\r\n dT = d;\r\n }\r\n\r\n //\u65E5\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n if (y in dvmap_uncheck && m in dvmap_uncheck && d in dvmap_uncheck) {\r\n dayHtml +=\r\n '
' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n dayL +\r\n \" )\" +\r\n \"
\";\r\n } else {\r\n dayHtml +=\r\n '
' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n dayL +\r\n \" )\" +\r\n \"
\";\r\n }\r\n }\r\n\r\n ysum += msum;\r\n\r\n //\u6708 \u5C0F\u4E8E 10\r\n let mT2;\r\n if (Number(m) < 10) {\r\n mT2 = \"0\" + Number(m);\r\n } else {\r\n mT2 = m;\r\n }\r\n\r\n //\u6708\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n if (y in dvmap_uncheck && m in dvmap_uncheck) {\r\n monthHtml +=\r\n '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n msum +\r\n \" )\" +\r\n \"
\" +\r\n '
' +\r\n dayHtml +\r\n \"
\" +\r\n \"
\";\r\n } else {\r\n monthHtml +=\r\n '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n msum +\r\n \" )\" +\r\n \"
\" +\r\n '
' +\r\n dayHtml +\r\n \"
\" +\r\n \"
\";\r\n }\r\n }\r\n\r\n //\u5E74\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n let yearHtml;\r\n if (y in dvmap_uncheck) {\r\n yearHtml =\r\n '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n ysum +\r\n \" )\" +\r\n \"
\" +\r\n '
' +\r\n monthHtml +\r\n \"
\" +\r\n \"
\";\r\n } else {\r\n yearHtml =\r\n '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n ysum +\r\n \" )\" +\r\n \"
\" +\r\n '
' +\r\n monthHtml +\r\n \"
\" +\r\n \"
\";\r\n }\r\n\r\n item.unshift(yearHtml);\r\n }\r\n }\r\n\r\n if (JSON.stringify(vmap).length > 2) {\r\n let vmapKeys = Object.keys(vmap);\r\n vmapKeys = orderbydata1D(vmapKeys, true);\r\n\r\n for (let i = 0; i < vmapKeys.length; i++) {\r\n let v = vmapKeys[i];\r\n\r\n for (let x in vmap[v]) {\r\n let text;\r\n if (v + \"#$$$#\" + x == \"null#$$$#null\") {\r\n text = locale_filter.valueBlank;\r\n } else {\r\n text = x;\r\n }\r\n\r\n //\u662F\u5426\u9009\u4E2D\u72B6\u6001\r\n let dataHtml;\r\n if (v + \"#$$$#\" + x in vmap_uncheck) {\r\n dataHtml =\r\n '
' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n vmap[v][x] +\r\n \" )\" +\r\n \"
\";\r\n } else {\r\n dataHtml =\r\n '
' +\r\n '' +\r\n '\" +\r\n '( ' +\r\n vmap[v][x] +\r\n \" )\" +\r\n \"
\";\r\n }\r\n\r\n item.push(dataHtml);\r\n }\r\n }\r\n }\r\n\r\n // \u9002\u914D\u5C0F\u5C4F\u8BBE\u5907\r\n let containerH = winH - toffset.top - 350;\r\n if (containerH < 0) containerH = 100;\r\n //$(\"#luckysheet-pivotTableFilter-byvalue-select\").html(\"
\" + item.join(\"\") + \"
\");\r\n\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select\").append(\r\n \"
\" +\r\n item.join(\"\") +\r\n \"
\",\r\n );\r\n loadingObj.close();\r\n }, 1);\r\n\r\n showrightclickmenu($menu, toffset.left - 250, toffset.top);\r\n },\r\n getSumTypeName: function(type) {\r\n let name = \"\";\r\n\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n if (type == \"SUM\") {\r\n name = locale_pivotTable.valueStatisticsSUM;\r\n } else if (type == \"COUNT\") {\r\n name = locale_pivotTable.valueStatisticsCOUNT;\r\n } else if (type == \"COUNTA\") {\r\n name = locale_pivotTable.valueStatisticsCOUNTA;\r\n } else if (type == \"COUNTUNIQUE\") {\r\n name = locale_pivotTable.valueStatisticsCOUNTUNIQUE;\r\n } else if (type == \"AVERAGE\") {\r\n name = locale_pivotTable.valueStatisticsAVERAGE;\r\n } else if (type == \"MAX\") {\r\n name = locale_pivotTable.valueStatisticsMAX;\r\n } else if (type == \"MIN\") {\r\n name = locale_pivotTable.valueStatisticsMIN;\r\n } else if (type == \"MEDIAN\") {\r\n name = locale_pivotTable.valueStatisticsMEDIAN;\r\n } else if (type == \"PRODUCT\") {\r\n name = locale_pivotTable.valueStatisticsPRODUCT;\r\n } else if (type == \"STDEV\") {\r\n name = locale_pivotTable.valueStatisticsSTDEV;\r\n } else if (type == \"STDEVP\") {\r\n name = locale_pivotTable.valueStatisticsSTDEVP;\r\n } else if (type == \"let\") {\r\n name = locale_pivotTable.valueStatisticslet;\r\n } else if (type == \"VARP\") {\r\n name = locale_pivotTable.valueStatisticsVARP;\r\n }\r\n\r\n return name;\r\n },\r\n setDatatojsfile: function(attr, value, cindex) {\r\n let _this = this;\r\n\r\n let index = getSheetIndex(_this.pivotSheetIndex);\r\n if (Store.luckysheetfile[index][\"pivotTable\"] == null) {\r\n Store.luckysheetfile[index][\"pivotTable\"] = {};\r\n }\r\n\r\n if (cindex == null) {\r\n Store.luckysheetfile[index][\"pivotTable\"][attr] = value;\r\n _this[attr] = value;\r\n } else {\r\n if (Store.luckysheetfile[index][\"pivotTable\"][\"filterparm\"] == null) {\r\n Store.luckysheetfile[index][\"pivotTable\"][\"filterparm\"] = {};\r\n }\r\n\r\n if (Store.luckysheetfile[index][\"pivotTable\"][\"filterparm\"][cindex.toString()] == null) {\r\n Store.luckysheetfile[index][\"pivotTable\"][\"filterparm\"][cindex.toString()] = {};\r\n }\r\n Store.luckysheetfile[index][\"pivotTable\"][\"filterparm\"][cindex.toString()][attr] = value;\r\n\r\n if (_this[\"filterparm\"] == null) {\r\n _this[\"filterparm\"] = {};\r\n }\r\n\r\n if (_this[\"filterparm\"][cindex.toString()] == null) {\r\n _this[\"filterparm\"][cindex.toString()] = {};\r\n }\r\n\r\n _this[\"filterparm\"][cindex.toString()][attr] = value;\r\n }\r\n },\r\n createPivotTable: function(e) {\r\n if (isEditMode() || Store.allowEdit === false) {\r\n return;\r\n }\r\n let _this = this;\r\n\r\n let datasheetindex = Store.currentSheetIndex;\r\n\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n if (isEditMode()) {\r\n alert(locale_pivotTable.errorNotAllowEdit);\r\n return;\r\n }\r\n\r\n if (Store.luckysheet_select_save.length > 1) {\r\n tooltip.info(\"\", locale_pivotTable.errorNotAllowMulti);\r\n return;\r\n }\r\n\r\n if (\r\n Store.luckysheet_select_save.length == 0 ||\r\n Store.luckysheet_select_save[0].row[0] == Store.luckysheet_select_save[0].row[1] ||\r\n Store.luckysheet_select_save[0].column[0] == Store.luckysheet_select_save[0].column[1]\r\n ) {\r\n tooltip.info(\"\", locale_pivotTable.errorSelectRange);\r\n return;\r\n }\r\n\r\n let select_save = $.extend(true, {}, Store.luckysheet_select_save[0]);\r\n sheetmanage.addNewSheet(e, true);\r\n\r\n _this.getCellData(Store.currentSheetIndex, datasheetindex, select_save);\r\n\r\n _this.setDatatojsfile(\"pivot_select_save\", select_save);\r\n _this.setDatatojsfile(\"pivotDataSheetIndex\", datasheetindex);\r\n\r\n _this.initialPivotManage();\r\n },\r\n changePivotTable: function(index) {\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n let pivotDataSheetIndex = Store.luckysheetfile[getSheetIndex(index)].pivotTable.pivotDataSheetIndex;\r\n let real_pivotDataSheetIndex = getSheetIndex(pivotDataSheetIndex);\r\n\r\n if (real_pivotDataSheetIndex == null) {\r\n tooltip.info(locale_pivotTable.errorIsDamage, \"\");\r\n return;\r\n }\r\n\r\n _this.getCellData(index);\r\n _this.initialPivotManage(true);\r\n _this.refreshPivotTable(); //\u521D\u59CB\u5316\u5728\u4E00\u4E2A\u666E\u901Asheet\u9875\uFF0C\u4ECE\u6B64\u666E\u901Asheet\u9875\u5207\u6362\u5230\u6570\u636E\u900F\u89C6\u8868\u9875\u65F6\uFF0C\u9700\u8981\u5237\u65B0\u4E0B\u6570\u636E\uFF0C\u5426\u5219\u8FD8\u662F\u65E7\u6570\u636E\r\n },\r\n refreshPivotTable: function(isRefreshCanvas = true) {\r\n let _this = this;\r\n\r\n let redo = {};\r\n redo[\"pivotTable\"] = pivotTable;\r\n redo[\"data\"] = editor.deepCopyFlowData(Store.flowdata); //\u53D6\u6570\u636E\r\n\r\n _this.storePivotTableParam();\r\n let ret = _this.dataHandler(_this.column, _this.row, _this.values, _this.showType, _this.celldata);\r\n _this.setDatatojsfile(\"pivotDatas\", ret);\r\n\r\n let d = $.extend(true, [], sheetmanage.nulldata);\r\n let data = d;\r\n\r\n let addr = 0,\r\n addc = 0;\r\n\r\n if (ret.length == 0) {\r\n _this.setDatatojsfile(\"drawPivotTable\", true);\r\n _this.setDatatojsfile(\"pivotTableBoundary\", [12, 6]);\r\n } else {\r\n _this.setDatatojsfile(\"drawPivotTable\", false);\r\n _this.setDatatojsfile(\"pivotTableBoundary\", [ret.length, ret[0].length]);\r\n\r\n let rlen = ret.length,\r\n clen = ret[0].length;\r\n\r\n addr = rlen - d.length;\r\n addc = clen - d[0].length;\r\n\r\n data = datagridgrowth(d, addr + 20, addc + 10, true);\r\n\r\n for (let r = 0; r < rlen; r++) {\r\n let x = [].concat(data[r]);\r\n for (let c = 0; c < clen; c++) {\r\n let value = \"\";\r\n if (ret[r] != null && ret[r][c] != null) {\r\n value = getcellvalue(r, c, ret);\r\n }\r\n x[c] = value;\r\n }\r\n data[r] = x;\r\n }\r\n }\r\n\r\n redo[\"type\"] = \"pivotTable_change\";\r\n redo[\"curdata\"] = $.extend(true, [], data);\r\n redo[\"sheetIndex\"] = Store.currentSheetIndex;\r\n redo[\"pivotTablecur\"] = _this.getPivotTableData();\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n Store.jfredo.push(redo);\r\n }\r\n\r\n cleargridelement();\r\n Store.clearjfundo = false;\r\n\r\n if (addr > 0 || addc > 0) {\r\n jfrefreshgridall(\r\n data[0].length,\r\n data.length,\r\n data,\r\n null,\r\n Store.luckysheet_select_save,\r\n \"datachangeAll\",\r\n undefined,\r\n undefined,\r\n isRefreshCanvas,\r\n );\r\n } else {\r\n jfrefreshgrid(data, Store.luckysheet_select_save, {}, null, isRefreshCanvas);\r\n selectHightlightShow();\r\n }\r\n\r\n Store.clearjfundo = true;\r\n },\r\n drawPivotTable: true,\r\n pivotTableBoundary: [12, 6],\r\n pivotclick: function(row_index, col_index, index) {\r\n if (index == null) {\r\n index = Store.currentSheetIndex;\r\n }\r\n\r\n let file = Store.luckysheetfile[getSheetIndex(index)];\r\n\r\n if (!file.isPivotTable) {\r\n return;\r\n }\r\n\r\n let pivotDataSheetIndex = file.pivotTable.pivotDataSheetIndex;\r\n let real_pivotDataSheetIndex = getSheetIndex(pivotDataSheetIndex);\r\n\r\n if (real_pivotDataSheetIndex == null) {\r\n return;\r\n }\r\n\r\n let slider = $(\"#luckysheet-modal-dialog-slider-pivot\");\r\n\r\n let isRangeClick = this.isPivotRange(row_index, col_index);\r\n if (isRangeClick && slider.is(\":hidden\")) {\r\n if (!checkProtectionAuthorityNormal(index, \"usePivotTablereports\", false)) {\r\n // Store.luckysheet_select_status = false;\r\n return;\r\n }\r\n slider.show();\r\n luckysheetsizeauto();\r\n $(\"#luckysheet-sta-content\").css(\"padding-right\", 260);\r\n } else if (!isRangeClick && slider.is(\":visible\")) {\r\n slider.hide();\r\n luckysheetsizeauto();\r\n $(\"#luckysheet-sta-content\").css(\"padding-right\", 10);\r\n }\r\n },\r\n isPivotRange: function(row_index, col_index) {\r\n let _this = this;\r\n\r\n if (!!Store.luckysheetcurrentisPivotTable) {\r\n if (row_index < _this.pivotTableBoundary[0] && col_index < _this.pivotTableBoundary[1]) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n },\r\n storePivotTableParam: function() {\r\n let _this = this;\r\n let columnarr = [],\r\n rowarr = [],\r\n filterarr = [],\r\n valuesarr = [];\r\n\r\n $(\"#luckysheet-modal-dialog-config-filter .luckysheet-modal-dialog-slider-config-item\").each(function() {\r\n let item = {};\r\n item[\"index\"] = $(this).data(\"index\");\r\n item[\"name\"] = $(this).data(\"name\");\r\n item[\"fullname\"] = $(this)\r\n .find(\".luckysheet-modal-dialog-slider-config-item-txt\")\r\n .text();\r\n filterarr.push(item);\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-config-row .luckysheet-modal-dialog-slider-config-item\").each(function() {\r\n let item = {};\r\n item[\"index\"] = $(this).data(\"index\");\r\n item[\"name\"] = $(this).data(\"name\");\r\n item[\"fullname\"] = $(this)\r\n .find(\".luckysheet-modal-dialog-slider-config-item-txt\")\r\n .text();\r\n item[\"order\"] = $(this).data(\"order\");\r\n item[\"orderby\"] = $(this).data(\"orderby\");\r\n item[\"stastic\"] = $(this).data(\"stastic\");\r\n rowarr.push(item);\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-config-column .luckysheet-modal-dialog-slider-config-item\").each(function() {\r\n let item = {};\r\n item[\"index\"] = $(this).data(\"index\");\r\n item[\"name\"] = $(this).data(\"name\");\r\n item[\"fullname\"] = $(this)\r\n .find(\".luckysheet-modal-dialog-slider-config-item-txt\")\r\n .text();\r\n item[\"order\"] = $(this).data(\"order\");\r\n item[\"orderby\"] = $(this).data(\"orderby\");\r\n item[\"stastic\"] = $(this).data(\"stastic\");\r\n columnarr.push(item);\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-config-value .luckysheet-modal-dialog-slider-config-item\").each(function() {\r\n let item = {};\r\n item[\"index\"] = $(this).data(\"index\");\r\n item[\"name\"] = $(this).data(\"name\");\r\n item[\"fullname\"] = $(this)\r\n .find(\".luckysheet-modal-dialog-slider-config-item-txt\")\r\n .text();\r\n item[\"sumtype\"] = $(this).data(\"sumtype\");\r\n item[\"nameindex\"] = $(this).data(\"nameindex\");\r\n valuesarr.push(item);\r\n });\r\n\r\n _this.setDatatojsfile(\"column\", columnarr);\r\n _this.setDatatojsfile(\"row\", rowarr);\r\n _this.setDatatojsfile(\"filter\", filterarr);\r\n _this.setDatatojsfile(\"values\", valuesarr);\r\n let showtype = $(\"#luckysheetpivottablevaluecolrow:checked, #luckysheetpivottablevaluecolrow1:checked\").val();\r\n _this.setDatatojsfile(\"showType\", showtype == \"0\" ? \"row\" : \"column\");\r\n\r\n let pivotTable = _this.getPivotTableData();\r\n delete pivotTable.pivotDatas;\r\n server.saveParam(\"all\", _this.pivotSheetIndex, pivotTable, { k: \"pivotTable\" });\r\n },\r\n getPivotTableData: function(dataindex) {\r\n if (dataindex == null) {\r\n dataindex = this.pivotSheetIndex;\r\n }\r\n\r\n let index = getSheetIndex(dataindex);\r\n let pivotTable = Store.luckysheetfile[index][\"pivotTable\"];\r\n\r\n if (getObjType(pivotTable) == \"object\") {\r\n pivotTable = $.extend(true, {}, Store.luckysheetfile[index][\"pivotTable\"]);\r\n } else {\r\n pivotTable = new Function(\"return \" + pivotTable)();\r\n }\r\n\r\n return pivotTable;\r\n },\r\n addValuesToTitle: function(titles, values) {\r\n let rowLen = titles.length * values.length,\r\n colLen = titles[0].length + 1;\r\n\r\n let retdata = [];\r\n if (titles.length == 0 && values.length > 0) {\r\n for (let v = 0; v < values.length; v++) {\r\n retdata.push(values[v].fullname);\r\n }\r\n\r\n return retdata;\r\n }\r\n\r\n if (values.length == 0 && titles.length > 0) {\r\n return titles;\r\n }\r\n\r\n for (let r = 0; r < rowLen; r++) {\r\n retdata[r] = new Array(colLen);\r\n\r\n for (let c = 0; c < colLen - 1; c++) {\r\n retdata[r][c] = titles[Math.floor(r / values.length)][c];\r\n }\r\n\r\n retdata[r][colLen - 1] = values[r % values.length].fullname;\r\n }\r\n\r\n return retdata;\r\n },\r\n initialPivotManage: function(restore) {\r\n let _this = this;\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n const locale_button = _locale.button;\r\n const locale_filter = _locale.filter;\r\n\r\n if (_this.initial) {\r\n _this.initial = false;\r\n\r\n $(\"body\").append(luckysheetPivotTableHTML());\r\n $(\"#luckysheet-modal-dialog-slider-close\").click(function() {\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").hide();\r\n luckysheetsizeauto();\r\n });\r\n\r\n $(\"body\").append(\r\n replaceHtml(modelHTML, {\r\n id: \"luckysheet-data-pivotTable-selection\",\r\n addclass: \"luckysheet-data-pivotTable-selection\",\r\n title: locale_pivotTable.titleSelectionDataRange,\r\n content:\r\n '',\r\n botton:\r\n '\",\r\n }),\r\n );\r\n\r\n $(\"body\").append(replaceHtml(filtermenuHTML(), { menuid: \"pivotTableFilter\" }));\r\n $(\"body\").append(replaceHtml(filtersubmenuHTML(), { menuid: \"pivotTableFilter\" }));\r\n $(\"body\").append(pivottableconfigHTML());\r\n $(\"body\").append(pivottablesumHTML());\r\n\r\n $(\"#luckysheet-pivotTableFilter-orderby-asc\").remove();\r\n $(\"#luckysheet-pivotTableFilter-orderby-desc\")\r\n .next()\r\n .remove();\r\n $(\"#luckysheet-pivotTableFilter-orderby-desc\").remove();\r\n $(\"#luckysheet-pivotTableFilter-orderby-color\")\r\n .next()\r\n .remove();\r\n $(\"#luckysheet-pivotTableFilter-orderby-color\").remove();\r\n\r\n $(\"#luckysheetpivottablevaluecolrow, #luckysheetpivottablevaluecolrow1\")\r\n .checkboxradio({\r\n icon: false,\r\n })\r\n .change(function() {\r\n _this.refreshPivotTable();\r\n });\r\n\r\n let hidefilersubmenu = null;\r\n $(\"#luckysheet-pivotTableFilter-menu\").mouseover(function() {\r\n clearTimeout(hidefilersubmenu);\r\n hidefilersubmenu = setTimeout(function() {\r\n $(\"#luckysheet-pivotTableFilter-submenu\").hide();\r\n }, 500);\r\n });\r\n\r\n //\u70B9\u51FB\u590D\u9009\u6846\r\n $(document)\r\n .off(\"click.ptFilterCheckbox1\")\r\n .on(\"click.ptFilterCheckbox1\", \"#luckysheet-pivotTableFilter-byvalue-select .textBox\", function() {\r\n if ($(this).attr(\"data-check\") == \"true\") {\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this)\r\n .find(\"input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n } else {\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this)\r\n .find(\"input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n }\r\n });\r\n $(document)\r\n .off(\"click.ptFilterCheckbox2\")\r\n .on(\"click.ptFilterCheckbox2\", \"#luckysheet-pivotTableFilter-byvalue-select .year\", function() {\r\n if ($(this).attr(\"data-check\") == \"true\") {\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".month\")\r\n .attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".day\")\r\n .attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\"input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n } else {\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".month\")\r\n .attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".day\")\r\n .attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\"input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n }\r\n });\r\n $(document)\r\n .off(\"click.ptFilterCheckbox3\")\r\n .on(\"click.ptFilterCheckbox3\", \"#luckysheet-pivotTableFilter-byvalue-select .month\", function() {\r\n //\u6708\u4EFD \u5BF9\u5E94\u7684 \u5929\r\n if ($(this).attr(\"data-check\") == \"true\") {\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".day\")\r\n .attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\"input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n } else {\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".day\")\r\n .attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\"input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n }\r\n //\u6708\u4EFD \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let yearDayAllCheck = true;\r\n let $yearDay = $(this)\r\n .parents(\".yearBox\")\r\n .find(\".day\");\r\n $yearDay.each(function(i, e) {\r\n if ($(e).attr(\"data-check\") == \"true\") {\r\n } else {\r\n yearDayAllCheck = false;\r\n }\r\n });\r\n if (yearDayAllCheck) {\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year\")\r\n .attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n } else {\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year\")\r\n .attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n }\r\n });\r\n $(document)\r\n .off(\"click.ptFilterCheckbox4\")\r\n .on(\"click.ptFilterCheckbox4\", \"#luckysheet-pivotTableFilter-byvalue-select .day\", function() {\r\n if ($(this).attr(\"data-check\") == \"true\") {\r\n $(this).attr(\"data-check\", \"false\");\r\n $(this)\r\n .find(\"input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n } else {\r\n $(this).attr(\"data-check\", \"true\");\r\n $(this)\r\n .find(\"input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n }\r\n //\u5929 \u5BF9\u5E94\u7684 \u6708\u4EFD\r\n let monthDayAllCheck = true;\r\n let $monthDay = $(this)\r\n .parents(\".monthBox\")\r\n .find(\".day\");\r\n $monthDay.each(function(i, e) {\r\n if ($(e).attr(\"data-check\") == \"true\") {\r\n } else {\r\n monthDayAllCheck = false;\r\n }\r\n });\r\n if (monthDayAllCheck) {\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".month\")\r\n .attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".month input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n } else {\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".month\")\r\n .attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".month input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n }\r\n //\u5929 \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let yearDayAllCheck = true;\r\n let $yearDay = $(this)\r\n .parents(\".yearBox\")\r\n .find(\".day\");\r\n $yearDay.each(function(i, e) {\r\n if ($(e).attr(\"data-check\") == \"true\") {\r\n } else {\r\n yearDayAllCheck = false;\r\n }\r\n });\r\n if (yearDayAllCheck) {\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year\")\r\n .attr(\"data-check\", \"true\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n } else {\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year\")\r\n .attr(\"data-check\", \"false\");\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".year input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n }\r\n });\r\n\r\n //\u65E5\u671F \u4E09\u7EA7\u4E0B\u62C9\u663E\u793A\r\n $(document)\r\n .off(\"click.ptFilterYearDropdown\")\r\n .on(\r\n \"click.ptFilterYearDropdown\",\r\n \"#luckysheet-pivotTableFilter-byvalue-select .yearBox .fa-caret-right\",\r\n function() {\r\n let $p = $(this).parents(\".luckysheet-mousedown-cancel\");\r\n if ($p.hasClass(\"year\")) {\r\n $(this)\r\n .parents(\".yearBox\")\r\n .find(\".monthList\")\r\n .slideToggle();\r\n }\r\n if ($p.hasClass(\"month\")) {\r\n $(this)\r\n .parents(\".monthBox\")\r\n .find(\".dayList\")\r\n .slideToggle();\r\n }\r\n },\r\n );\r\n\r\n //\u5168\u9009\r\n $(\"#luckysheet-pivotTableFilter-byvalue-btn-all\").click(function() {\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\").prop(\"checked\", true);\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\")\r\n .parents(\".luckysheet-mousedown-cancel\")\r\n .attr(\"data-check\", \"true\");\r\n });\r\n\r\n //\u53CD\u9009\r\n $(\"#luckysheet-pivotTableFilter-byvalue-btn-contra\").click(function() {\r\n let $input = $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\");\r\n $input.each(function(i, e) {\r\n if ($(e).is(\":checked\")) {\r\n $(e).removeAttr(\"checked\");\r\n $(e)\r\n .parents(\".luckysheet-mousedown-cancel\")\r\n .attr(\"data-check\", \"false\");\r\n } else {\r\n $(e).prop(\"checked\", true);\r\n $(e)\r\n .parents(\".luckysheet-mousedown-cancel\")\r\n .attr(\"data-check\", \"true\");\r\n }\r\n });\r\n //\u5929 \u5BF9\u5E94\u7684 \u6708\u4EFD\r\n let $month = $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox .monthBox\");\r\n $month.each(function(index, event) {\r\n let monthDayAllCheck = true;\r\n let $monthDay = $(event).find(\".day input[type='checkbox']\");\r\n $monthDay.each(function(i, e) {\r\n if ($(e).is(\":checked\")) {\r\n } else {\r\n monthDayAllCheck = false;\r\n }\r\n });\r\n if (monthDayAllCheck) {\r\n $(event)\r\n .find(\".month input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n $(event).attr(\"data-check\", \"true\");\r\n } else {\r\n $(event)\r\n .find(\".month input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n $(event).attr(\"data-check\", \"false\");\r\n }\r\n });\r\n //\u5929 \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let $year = $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox .yearBox\");\r\n $year.each(function(index, event) {\r\n let yearDayAllCheck = true;\r\n let $yearDay = $(event).find(\".day input[type='checkbox']\");\r\n $yearDay.each(function(i, e) {\r\n if ($(e).is(\":checked\")) {\r\n } else {\r\n yearDayAllCheck = false;\r\n }\r\n });\r\n if (yearDayAllCheck) {\r\n $(event)\r\n .find(\".year input[type='checkbox']\")\r\n .prop(\"checked\", true);\r\n $(event).attr(\"data-check\", \"true\");\r\n } else {\r\n $(event)\r\n .find(\".year input[type='checkbox']\")\r\n .removeAttr(\"checked\");\r\n $(event).attr(\"data-check\", \"false\");\r\n }\r\n });\r\n });\r\n\r\n //\u6E05\u9664\r\n $(\"#luckysheet-pivotTableFilter-byvalue-btn-clear\").click(function() {\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\").removeAttr(\"checked\");\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\")\r\n .parents(\".luckysheet-mousedown-cancel\")\r\n .attr(\"data-check\", \"false\");\r\n });\r\n\r\n //\u6309\u7167\u503C\u8FDB\u884C\u7B5B\u9009\r\n $(\"#luckysheet-pivotTableFilter-byvalue-input\").on(\"input propertychange\", function() {\r\n let v = $(this)\r\n .val()\r\n .toString();\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox .luckysheet-mousedown-cancel\").show();\r\n if (v != \"\") {\r\n let $check = $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\");\r\n $check.each(function(i, e) {\r\n let $p = $(e).parents(\".luckysheet-mousedown-cancel\");\r\n if ($p.hasClass(\"day\")) {\r\n //\u65E5\u671F\r\n let day = $(e)\r\n .siblings(\"label\")\r\n .text()\r\n .toString();\r\n let month = $(e)\r\n .parents(\".monthBox\")\r\n .find(\".month label\")\r\n .text()\r\n .toString();\r\n let year = $(e)\r\n .parents(\".yearBox\")\r\n .find(\".year label\")\r\n .text()\r\n .toString();\r\n let itemV = year + \"-\" + month + \"-\" + day;\r\n\r\n if (itemV.indexOf(v) == -1) {\r\n $(e)\r\n .parents(\".day\")\r\n .hide();\r\n //\u5929 \u5BF9\u5E94\u7684 \u6708\u4EFD\r\n let $monthDay = $(e)\r\n .parents(\".dayList\")\r\n .find(\".day:visible\");\r\n if ($monthDay.length == 0) {\r\n $(e)\r\n .parents(\".monthBox\")\r\n .find(\".month\")\r\n .hide();\r\n }\r\n //\u5929 \u5BF9\u5E94\u7684 \u5E74\u4EFD\r\n let $yearDay = $(e)\r\n .parents(\".monthList\")\r\n .find(\".day:visible\");\r\n if ($yearDay.length == 0) {\r\n $(e)\r\n .parents(\".yearBox\")\r\n .find(\".year\")\r\n .hide();\r\n }\r\n }\r\n }\r\n if ($p.hasClass(\"textBox\")) {\r\n //\u5176\u5B83\r\n let itemV = $(e)\r\n .siblings(\"label\")\r\n .text()\r\n .toString();\r\n\r\n if (itemV.indexOf(v) == -1) {\r\n $(e)\r\n .parents(\".textBox\")\r\n .hide();\r\n }\r\n }\r\n });\r\n }\r\n });\r\n\r\n $(\"#luckysheet-pivotTableFilter-bycondition, #luckysheet-pivotTableFilter-byvalue\").click(function() {\r\n let $t = $(this);\r\n $t.next().slideToggle(200);\r\n setTimeout(function() {\r\n if (\r\n $t.attr(\"id\") == \"luckysheet-pivotTableFilter-bycondition\" &&\r\n $(\"#luckysheet-pivotTableFilter-bycondition\")\r\n .next()\r\n .is(\":visible\")\r\n ) {\r\n if ($(\"#luckysheet-pivotTableFilter-selected span\").text() != locale_filter.filiterInputNone) {\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .slideUp(200);\r\n }\r\n }\r\n\r\n if ($t.is($(\"#luckysheet-pivotTableFilter-bycondition\"))) {\r\n if (\r\n $(\"#luckysheet-pivotTableFilter-bycondition\")\r\n .next()\r\n .is(\":hidden\") &&\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .is(\":hidden\")\r\n ) {\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .slideDown(200);\r\n }\r\n }\r\n }, 300);\r\n });\r\n\r\n //\u53D6\u6D88\u6309\u94AE\r\n $(\"#luckysheet-pivotTableFilter-cancel\").click(function() {\r\n $(\"#luckysheet-pivotTableFilter-menu, #luckysheet-pivotTableFilter-submenu\").hide();\r\n });\r\n\r\n $(\"#luckysheet-pivotTableFilter-selected\").click(function() {\r\n let $t = $(this),\r\n toffset = $t.offset(),\r\n $menu = $(\"#luckysheet-pivotTableFilter-submenu\");\r\n $menu.hide();\r\n let winH = $(window).height(),\r\n winW = $(window).width();\r\n let menuW = $menu.width(),\r\n menuH = $menu.height();\r\n let top = toffset.top,\r\n left = toffset.left,\r\n mheight = winH - toffset.top - 20;\r\n if (toffset.left + menuW > winW) {\r\n left = toffset.left - menuW;\r\n }\r\n\r\n if (toffset.top > winH / 2) {\r\n top = winH - toffset.top;\r\n if (top < 0) {\r\n top = 0;\r\n }\r\n\r\n mheight = toffset.top - 20;\r\n }\r\n\r\n $menu.css({ top: top, left: left, height: mheight }).show();\r\n clearTimeout(hidefilersubmenu);\r\n });\r\n\r\n //\u6309\u6761\u4EF6\u8FC7\u6EE4\r\n $(\"#luckysheet-pivotTableFilter-submenu\")\r\n .mouseover(function() {\r\n clearTimeout(hidefilersubmenu);\r\n })\r\n .find(\".luckysheet-cols-menuitem\")\r\n .click(function(e) {\r\n $(\"#luckysheet-pivotTableFilter-selected span\")\r\n .html(\r\n $(this)\r\n .find(\".luckysheet-cols-menuitem-content\")\r\n .text(),\r\n )\r\n .data(\"value\", $(this).data(\"value\"));\r\n $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input\").hide();\r\n if ($(this).data(\"type\") == \"2\") {\r\n $(\"#luckysheet-pivotTableFilter-selected span\").data(\"type\", \"2\");\r\n $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input2\").show();\r\n } else if ($(this).data(\"type\") == \"0\") {\r\n $(\"#luckysheet-pivotTableFilter-selected span\").data(\"type\", \"0\");\r\n } else {\r\n $(\"#luckysheet-pivotTableFilter-selected span\").data(\"type\", \"1\");\r\n $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input\")\r\n .eq(0)\r\n .show();\r\n //\u82E5\u662F\u65E5\u671F \u6539\u53D8input type\u7C7B\u578B\u4E3Adate\r\n if (\r\n $(this).attr(\"data-value\") == \"dateequal\" ||\r\n $(this).attr(\"data-value\") == \"datelessthan\" ||\r\n $(this).attr(\"data-value\") == \"datemorethan\"\r\n ) {\r\n $(\r\n \"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input input\",\r\n ).prop(\"type\", \"date\");\r\n } else {\r\n $(\r\n \"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input input\",\r\n ).prop(\"type\", \"text\");\r\n }\r\n }\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .slideUp();\r\n $(\"#luckysheet-pivotTableFilter-submenu\").hide();\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-pivotTable-list\").on(\"click\", \" .luckysheet-slider-list-item-filter\", function(\r\n e,\r\n ) {\r\n _this.luckysheetsliderlistitemfilter($(this));\r\n e.stopPropagation();\r\n return false;\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-pivotTable-list\").on(\r\n \"click\",\r\n \" .luckysheet-slider-list-item-filtered\",\r\n function(e) {\r\n _this.luckysheetsliderlistclearfilter($(this).next());\r\n e.stopPropagation();\r\n return false;\r\n },\r\n );\r\n\r\n $(\"#luckysheet-dialog-pivotTable-range-seleted\").click(function() {\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").hide();\r\n luckysheetsizeauto();\r\n let $t = $(\"#luckysheet-data-pivotTable-selection\"),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(),\r\n winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(),\r\n scrollTop = $(document).scrollTop();\r\n\r\n $(\"#luckysheet-data-pivotTable-selection\")\r\n .css({ left: (winw + scrollLeft - myw) / 2, top: (winh + scrollTop - myh) / 4 })\r\n .show();\r\n\r\n _this.jgridCurrentPivotInput = $(\"#luckysheet-dialog-pivotTable-range\").html();\r\n $(\"#luckysheet-pivotTable-range-selection-input\").val(_this.jgridCurrentPivotInput);\r\n _this.luckysheet_pivotTable_select_state = true;\r\n });\r\n\r\n //\u6E05\u9664\u7B5B\u9009\u6309\u94AE\r\n $(\"#luckysheet-pivotTableFilter-initial\").click(function() {\r\n $(\"#luckysheet-modal-dialog-pivotTable-list .luckysheet-slider-list-item-filtered\").hide();\r\n $(\"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\").data(\r\n \"rowhidden\",\r\n \"\",\r\n );\r\n $(\"#luckysheet-pivotTableFilter-menu, #luckysheet-pivotTableFilter-submenu\").hide();\r\n $(\"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input\")\r\n .hide()\r\n .find(\"input\")\r\n .val();\r\n $(\"#luckysheet-pivotTableFilter-selected span\")\r\n .data(\"type\", \"0\")\r\n .data(\"type\", null)\r\n .text(locale_filter.filiterInputNone);\r\n\r\n _this.setDatatojsfile(\"filterparm\", null);\r\n _this.celldata = _this.origindata;\r\n\r\n _this.refreshPivotTable();\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column\").on(\r\n \"click\",\r\n \".luckysheet-modal-dialog-slider-config-item-icon\",\r\n function(e) {\r\n let $t = $(e.target),\r\n $item = $t.closest(\".luckysheet-modal-dialog-slider-config-item\"),\r\n cindex = $item.data(\"index\"),\r\n toffset = $item.offset();\r\n let order = $item.data(\"order\"),\r\n orderby = $item.data(\"orderby\"),\r\n stastic = $item.data(\"stastic\");\r\n\r\n if (order == null) {\r\n order = \"default\";\r\n }\r\n\r\n let option =\r\n '\";\r\n\r\n $(\"#luckysheet-modal-dialog-config-value .luckysheet-modal-dialog-slider-config-item\").each(\r\n function(i) {\r\n option +=\r\n '\";\r\n },\r\n );\r\n $(\"#luckysheet-pivotTable-config-option-orderby\")\r\n .empty()\r\n .html(option);\r\n\r\n if (orderby == null) {\r\n orderby = \"self\";\r\n }\r\n\r\n if (stastic == null) {\r\n stastic = \"1\";\r\n }\r\n\r\n $(\"#luckysheet-pivotTable-config-option-order\")\r\n .val(order)\r\n .data(\"index\", cindex);\r\n $(\"#luckysheet-pivotTable-config-option-orderby\")\r\n .val(orderby)\r\n .data(\"index\", cindex);\r\n $(\"#luckysheet-pivotTable-config-option-stastic\")\r\n .val(stastic)\r\n .data(\"index\", cindex);\r\n\r\n mouseclickposition(\r\n $(\"#luckysheet-pivotTable-config-option\"),\r\n toffset.left + $item.outerWidth(),\r\n toffset.top - 13,\r\n \"rightbottom\",\r\n );\r\n e.stopPropagation();\r\n return false;\r\n },\r\n );\r\n\r\n $(\r\n \"#luckysheet-pivotTable-config-option-order,#luckysheet-pivotTable-config-option-orderby,#luckysheet-pivotTable-config-option-stastic\",\r\n ).change(function() {\r\n let $t = $(this),\r\n cindex = $t.data(\"index\");\r\n\r\n $(\"#luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column\")\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function() {\r\n if ($(this).data(\"index\") == cindex) {\r\n $(this).data($t.attr(\"id\").replace(\"luckysheet-pivotTable-config-option-\", \"\"), $t.val());\r\n }\r\n });\r\n\r\n _this.refreshPivotTable();\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-config-value\").on(\r\n \"click\",\r\n \".luckysheet-modal-dialog-slider-config-item-icon\",\r\n function(e) {\r\n let $t = $(e.target),\r\n $item = $t.closest(\".luckysheet-modal-dialog-slider-config-item\"),\r\n cindex = $item.data(\"index\"),\r\n toffset = $item.offset(),\r\n sumtype = $item.data(\"sumtype\");\r\n\r\n let type = _this.pivot_data_type[cindex.toString()];\r\n if (sumtype == null) {\r\n if (type == \"num\") {\r\n sumtype = \"SUM\";\r\n } else {\r\n sumtype = \"COUNTA\";\r\n }\r\n }\r\n\r\n let $menu = $(\"#luckysheet-pivotTable-config-option-sumtype\");\r\n $menu.find(\".luckysheet-submenu-arrow\").hide();\r\n $menu\r\n .find(\".luckysheet-cols-menuitem[sumtype='\" + sumtype + \"'] .luckysheet-submenu-arrow\")\r\n .css(\"display\", \"inline\");\r\n $menu.data(\"item\", $item);\r\n\r\n mouseclickposition($menu, toffset.left + $item.outerWidth(), toffset.top - 13, \"rightbottom\");\r\n e.stopPropagation();\r\n return false;\r\n },\r\n );\r\n\r\n $(\"#luckysheet-pivotTable-config-option-sumtype .luckysheet-cols-menuitem\").click(function() {\r\n let $item = $(\"#luckysheet-pivotTable-config-option-sumtype\").data(\"item\");\r\n let sumtype = $(this).attr(\"sumtype\");\r\n $item.data(\"sumtype\", $(this).attr(\"sumtype\"));\r\n let name = _this.getSumTypeName(sumtype) + \":\" + $item.data(\"name\");\r\n $item\r\n .attr(\"title\", name)\r\n .find(\".luckysheet-modal-dialog-slider-config-item-txt\")\r\n .html(name);\r\n $(\"#luckysheet-pivotTable-config-option-sumtype\").hide();\r\n _this.refreshPivotTable();\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-config-filter\").on(\r\n \"click\",\r\n \".luckysheet-modal-dialog-slider-config-item-icon\",\r\n function(e) {\r\n let $t = $(e.target),\r\n cindex = $t.closest(\".luckysheet-modal-dialog-slider-config-item\").data(\"index\");\r\n _this.luckysheetsliderlistitemfilter(\r\n $(\"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\")\r\n .eq(cindex)\r\n .find(\".luckysheet-slider-list-item-filter\"),\r\n );\r\n e.stopPropagation();\r\n return false;\r\n },\r\n );\r\n\r\n //\u786E\u8BA4\u6309\u94AE\r\n $(\"#luckysheet-pivotTableFilter-confirm\").click(function() {\r\n let $menu = $(\"#luckysheet-pivotTableFilter-menu\");\r\n let cindex = $menu.data(\"index\");\r\n\r\n let rowhiddenother = {}; //\u5176\u5B83\u7B5B\u9009\u5217\u7684\u9690\u85CF\u884C\r\n $(\"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\").each(\r\n function() {\r\n let $t = $(this),\r\n rh = $t.data(\"rowhidden\");\r\n\r\n if ($t.data(\"index\") != cindex) {\r\n if (rh == null || rh == \"\") {\r\n return true;\r\n }\r\n\r\n if (getObjType(rh) == \"string\") {\r\n rh = JSON.parse(rh);\r\n }\r\n\r\n for (let r in rh) {\r\n rowhiddenother[r] = 0;\r\n }\r\n }\r\n },\r\n );\r\n\r\n let d = _this.origindata;\r\n\r\n let filterdata = {};\r\n let rowhidden = {};\r\n let caljs = {};\r\n\r\n if (\r\n $(\"#luckysheet-pivotTableFilter-bycondition\")\r\n .next()\r\n .is(\":visible\") &&\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .is(\":hidden\") &&\r\n $(\"#luckysheet-pivotTableFilter-selected span\").data(\"value\") != \"null\"\r\n ) {\r\n let $t = $(\"#luckysheet-pivotTableFilter-selected span\");\r\n let type = $t.data(\"type\"),\r\n value = $t.data(\"value\");\r\n\r\n caljs[\"value\"] = value;\r\n caljs[\"text\"] = $t.text();\r\n\r\n if (type == \"0\") {\r\n caljs[\"type\"] = \"0\";\r\n } else if (type == \"2\") {\r\n let $input = $(\r\n \"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input2 input\",\r\n );\r\n caljs[\"type\"] = \"2\";\r\n caljs[\"value1\"] = $input.eq(0).val();\r\n caljs[\"value2\"] = $input.eq(1).val();\r\n } else {\r\n caljs[\"type\"] = \"1\";\r\n caljs[\"value1\"] = $(\r\n \"#luckysheet-pivotTableFilter-menu .luckysheet-pivotTableFilter-selected-input\",\r\n )\r\n .eq(0)\r\n .find(\"input\")\r\n .val();\r\n }\r\n\r\n for (let r = 1; r < d.length; r++) {\r\n if (r in rowhiddenother) {\r\n continue;\r\n }\r\n\r\n if (d[r] == null) {\r\n continue;\r\n }\r\n\r\n let cell = d[r][cindex];\r\n\r\n if (value == \"cellnull\") {\r\n //\u5355\u5143\u683C\u4E3A\u7A7A\r\n if (cell != null && !isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"cellnonull\") {\r\n //\u5355\u5143\u683C\u6709\u6570\u636E\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"textinclude\") {\r\n //\u6587\u672C\u5305\u542B\r\n let value1 = caljs[\"value1\"];\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else {\r\n if (cell.m.indexOf(value1) == -1) {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n } else if (value == \"textnotinclude\") {\r\n //\u6587\u672C\u4E0D\u5305\u542B\r\n let value1 = caljs[\"value1\"];\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n } else {\r\n if (cell.m.indexOf(value1) > -1) {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n } else if (value == \"textstart\") {\r\n //\u6587\u672C\u5F00\u5934\u4E3A\r\n let value1 = caljs[\"value1\"],\r\n valuelen = value1.length;\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else {\r\n if (cell.m.substr(0, valuelen) != value1) {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n } else if (value == \"textend\") {\r\n //\u6587\u672C\u7ED3\u5C3E\u4E3A\r\n let value1 = caljs[\"value1\"],\r\n valuelen = value1.length;\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else {\r\n if (\r\n valuelen > cell.m.length ||\r\n cell.m.substr(cell.m.length - valuelen, valuelen) != value1\r\n ) {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n } else if (value == \"textequal\") {\r\n //\u6587\u672C\u7B49\u4E8E\r\n let value1 = caljs[\"value1\"];\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else {\r\n if (cell.m != value1) {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n } else if (value == \"dateequal\") {\r\n //\u65E5\u671F\u7B49\u4E8E\r\n let value1 = genarate(caljs[\"value1\"])[2];\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"d\") {\r\n if (parseInt(cell.v) != value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"datelessthan\") {\r\n //\u65E5\u671F\u65E9\u4E8E\r\n let value1 = genarate(caljs[\"value1\"])[2];\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"d\") {\r\n if (parseInt(cell.v) >= value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"datemorethan\") {\r\n //\u65E5\u671F\u665A\u4E8E\r\n let value1 = genarate(caljs[\"value1\"])[2];\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"d\") {\r\n if (parseInt(cell.v) <= value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"morethan\") {\r\n //\u5927\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v <= value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"moreequalthan\") {\r\n //\u5927\u4E8E\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v < value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"lessthan\") {\r\n //\u5C0F\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v >= value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"lessequalthan\") {\r\n //\u5C0F\u4E8E\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v > value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"equal\") {\r\n //\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v != value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"noequal\") {\r\n //\u4E0D\u7B49\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]);\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v == value1) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"include\") {\r\n //\u4ECB\u4E8E\r\n let value1 = parseFloat(caljs[\"value1\"]),\r\n value2 = parseFloat(caljs[\"value2\"]);\r\n\r\n let min, max;\r\n if (value1 < value2) {\r\n min = value1;\r\n max = value2;\r\n } else {\r\n max = value1;\r\n min = value2;\r\n }\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v < min || cell.v > max) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n } else if (value == \"noinclude\") {\r\n //\u4E0D\u5728\u5176\u4E2D\r\n let value1 = parseFloat(caljs[\"value1\"]),\r\n value2 = parseFloat(caljs[\"value2\"]);\r\n\r\n let min, max;\r\n if (value1 < value2) {\r\n min = value1;\r\n max = value2;\r\n } else {\r\n max = value1;\r\n min = value2;\r\n }\r\n\r\n if (cell == null || isRealNull(cell.v)) {\r\n rowhidden[r] = 0;\r\n } else if (cell.ct != null && cell.ct.t == \"n\") {\r\n if (cell.v >= min && cell.v <= max) {\r\n rowhidden[r] = 0;\r\n }\r\n } else {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n } else {\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']\").each(function(\r\n i,\r\n e,\r\n ) {\r\n if ($(e).is(\":visible\") && $(e).is(\":checked\")) {\r\n return true;\r\n }\r\n\r\n if ($(e).closest(\".day\").length > 0) {\r\n let day = $(e)\r\n .siblings(\"label\")\r\n .text();\r\n if (Number(day) < 10) {\r\n day = \"0\" + day;\r\n }\r\n\r\n let month = $(e)\r\n .closest(\".monthBox\")\r\n .find(\".month label\")\r\n .text()\r\n .replace(locale_filter.filiterMonthText, \"\");\r\n if (Number(month) < 10) {\r\n month = \"0\" + month;\r\n }\r\n\r\n let year = $(e)\r\n .closest(\".yearBox\")\r\n .find(\".year label\")\r\n .text()\r\n .replace(locale_filter.filiterYearText, \"\");\r\n\r\n let itemV = locale_filter.filterDateFormatTip + \"#$$$#\" + year + \"-\" + month + \"-\" + day;\r\n\r\n filterdata[itemV] = \"1\";\r\n }\r\n\r\n if ($(e).closest(\".textBox\").length > 0) {\r\n let itemV = $(e)\r\n .closest(\".textBox\")\r\n .data(\"filter\");\r\n\r\n filterdata[itemV] = \"1\";\r\n }\r\n });\r\n\r\n for (let r = 1; r < d.length; r++) {\r\n if (r in rowhiddenother) {\r\n continue;\r\n }\r\n\r\n if (d[r] == null) {\r\n continue;\r\n }\r\n\r\n let cell = d[r][cindex];\r\n\r\n let value;\r\n if (cell == null || isRealNull(cell.v)) {\r\n value = \"null#$$$#null\";\r\n } else if (cell.ct != null && cell.ct.t == \"d\") {\r\n let fmt = update(\"YYYY-MM-DD\", cell.v);\r\n value = locale_filter.filterDateFormatTip + \"#$$$#\" + fmt;\r\n } else {\r\n value = cell.v + \"#$$$#\" + cell.m;\r\n }\r\n\r\n if (value in filterdata) {\r\n rowhidden[r] = 0;\r\n }\r\n }\r\n }\r\n\r\n let $top = $(\"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\").eq(\r\n cindex,\r\n );\r\n if (\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']:visible:checked\")\r\n .length <\r\n $(\"#luckysheet-pivotTableFilter-byvalue-select .ListBox input[type='checkbox']:visible\")\r\n .length ||\r\n $(\"#luckysheet-pivotTableFilter-byvalue-input\").val().length > 0 ||\r\n ($(\"#luckysheet-pivotTableFilter-bycondition\")\r\n .next()\r\n .is(\":visible\") &&\r\n $(\"#luckysheet-pivotTableFilter-byvalue\")\r\n .next()\r\n .is(\":hidden\") &&\r\n $(\"#luckysheet-pivotTableFilter-selected span\").data(\"value\") != \"null\")\r\n ) {\r\n $top.data(\"rowhidden\", JSON.stringify(rowhidden))\r\n .find(\".luckysheet-slider-list-item-filtered\")\r\n .show();\r\n _this.setDatatojsfile(\"rowhidden\", rowhidden, cindex);\r\n\r\n if (caljs != null) {\r\n $top.data(\"byconditionvalue\", caljs[\"value\"])\r\n .data(\"byconditiontype\", caljs[\"type\"])\r\n .data(\"byconditiontext\", caljs[\"text\"]);\r\n\r\n if (caljs[\"value1\"] != null) {\r\n $top.data(\"byconditionvalue1\", caljs[\"value1\"]);\r\n }\r\n\r\n if (caljs[\"value2\"] != null) {\r\n $top.data(\"byconditionvalue2\", caljs[\"value2\"]);\r\n }\r\n\r\n _this.setDatatojsfile(\"caljs\", caljs, cindex);\r\n }\r\n } else {\r\n $top.data(\"rowhidden\", \"\")\r\n .find(\".luckysheet-slider-list-item-filtered\")\r\n .hide();\r\n _this.setDatatojsfile(\"rowhidden\", null, cindex);\r\n }\r\n\r\n let newdata = [];\r\n for (let i = 0; i < d.length; i++) {\r\n if (i in rowhidden || i in rowhiddenother) {\r\n continue;\r\n }\r\n\r\n newdata.push([].concat(d[i]));\r\n }\r\n\r\n _this.celldata = newdata;\r\n _this.refreshPivotTable();\r\n $(\"#luckysheet-pivotTableFilter-menu, #luckysheet-pivotTableFilter-submenu\").hide();\r\n\r\n cleargridelement();\r\n });\r\n\r\n $(\r\n \"#luckysheet-data-pivotTable-selection .luckysheet-model-close-btn, #luckysheet-data-pivotTable-selection .luckysheet-modal-dialog-title-close\",\r\n ).click(function() {\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").show();\r\n luckysheetsizeauto();\r\n $(\"#luckysheet-cell-main .luckysheet-pivotTable-selection-set div\").show();\r\n\r\n $(\"#luckysheet-data-pivotTable-selection\").hide();\r\n\r\n sheetmanage.changeSheetExec(_this.pivotSheetIndex);\r\n\r\n _this.luckysheet_pivotTable_select_state = false;\r\n\r\n cleargridelement();\r\n });\r\n\r\n $(\"#luckysheet-pivotTable-selection-confirm\").click(function() {\r\n let $input = $(\"#luckysheet-pivotTable-range-selection-input\"),\r\n val = $input.val();\r\n\r\n if (\r\n $.trim(val).length == 0 ||\r\n $.trim(val).toUpperCase() == _this.jgridCurrentPivotInput.toUpperCase()\r\n ) {\r\n $input.val(_this.jgridCurrentPivotInput);\r\n $(\"#luckysheet-data-pivotTable-selection .luckysheet-model-close-btn\").click();\r\n return;\r\n } else {\r\n let val1 = val.split(\"!\");\r\n let sheettxt = \"\",\r\n rangetxt = \"\",\r\n sheetIndex = -1;\r\n\r\n if (val1.length > 1) {\r\n sheettxt = val1[0];\r\n rangetxt = val1[1];\r\n\r\n for (let i in Store.luckysheetfile) {\r\n if (sheettxt == Store.luckysheetfile[i].name) {\r\n sheetIndex = Store.luckysheetfile[i].index;\r\n break;\r\n }\r\n }\r\n\r\n if (sheetIndex == -1) {\r\n sheetIndex = 0;\r\n }\r\n } else {\r\n let index = getSheetIndex(Store.currentSheetIndex);\r\n sheettxt = Store.luckysheetfile[index].name;\r\n sheetIndex = Store.luckysheetfile[index].index;\r\n rangetxt = val1[0];\r\n }\r\n\r\n if (Store.luckysheetfile[getSheetIndex(sheetIndex)].isPivotTable) {\r\n if (isEditMode()) {\r\n alert(locale_pivotTable.errorNotAllowPivotData);\r\n } else {\r\n tooltip.info(\"\", locale_pivotTable.errorNotAllowPivotData);\r\n }\r\n $input.val(_this.jgridCurrentPivotInput);\r\n return;\r\n }\r\n\r\n if (rangetxt.indexOf(\":\") == -1) {\r\n if (isEditMode()) {\r\n alert(locale_pivotTable.errorSelectionRange);\r\n } else {\r\n tooltip.info(\"\", locale_pivotTable.errorSelectionRange);\r\n }\r\n $input.val(_this.jgridCurrentPivotInput);\r\n return;\r\n }\r\n\r\n rangetxt = rangetxt.split(\":\");\r\n let row = [],\r\n col = [];\r\n\r\n row[0] = parseInt(rangetxt[0].replace(/[^0-9]/g, \"\")) - 1;\r\n row[1] = parseInt(rangetxt[1].replace(/[^0-9]/g, \"\")) - 1;\r\n\r\n if (row[0] > row[1]) {\r\n if (isEditMode()) {\r\n alert(locale_pivotTable.errorSelectionRange);\r\n } else {\r\n tooltip.info(\"\", locale_pivotTable.errorSelectionRange);\r\n }\r\n $input.val(_this.jgridCurrentPivotInput);\r\n return;\r\n }\r\n\r\n col[0] = ABCatNum(rangetxt[0].replace(/[^A-Za-z]/g, \"\"));\r\n col[1] = ABCatNum(rangetxt[1].replace(/[^A-Za-z]/g, \"\"));\r\n\r\n if (col[0] > col[1]) {\r\n if (isEditMode()) {\r\n alert(locale_pivotTable.errorSelectionRange);\r\n } else {\r\n tooltip.info(locale_pivotTable.errorSelectionRange);\r\n }\r\n $input.val(_this.jgridCurrentPivotInput);\r\n return;\r\n }\r\n sheetmanage.changeSheetExec(_this.pivotSheetIndex);\r\n\r\n _this.setDatatojsfile(\"pivot_select_save\", { row: row, column: col });\r\n _this.setDatatojsfile(\"pivotDataSheetIndex\", sheetIndex);\r\n\r\n _this.getCellData(_this.pivotSheetIndex, sheetIndex, { row: row, column: col });\r\n\r\n _this.initialPivotManage();\r\n\r\n $(\"#luckysheet-dialog-pivotTable-range\").html(val);\r\n\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").show();\r\n\r\n $(\"#luckysheet-data-pivotTable-selection\").hide();\r\n\r\n _this.luckysheet_pivotTable_select_state = false;\r\n\r\n _this.refreshPivotTable();\r\n\r\n luckysheetsizeauto();\r\n\r\n cleargridelement();\r\n }\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").on(\r\n \"mousedown\",\r\n \".luckysheet-slider-list-item-name, .luckysheet-modal-dialog-slider-config-item-txt\",\r\n function(e) {\r\n let $cur = $(e.target);\r\n _this.movestate = true;\r\n _this.movesave.obj = $cur.parent();\r\n _this.movesave.name = $cur.data(\"name\");\r\n _this.movesave.containerid = $cur\r\n .parent()\r\n .parent()\r\n .attr(\"id\");\r\n _this.movesave.index = $cur.data(\"index\");\r\n\r\n if ($(\"#luckysheet-modal-dialog-slider-pivot-move\").length == 0) {\r\n $(\"body\").append(\r\n '
' + _this.movesave.name + \"
\",\r\n );\r\n }\r\n\r\n _this.movesave.width = $(\"#luckysheet-modal-dialog-slider-pivot-move\").outerWidth();\r\n _this.movesave.height = $(\"#luckysheet-modal-dialog-slider-pivot-move\").outerHeight();\r\n\r\n $(\r\n \"#luckysheet-modal-dialog-pivotTable-list, #luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column, #luckysheet-modal-dialog-config-value\",\r\n ).css(\"cursor\", \"default\");\r\n },\r\n );\r\n\r\n $(\r\n \"#luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column, #luckysheet-modal-dialog-config-value\",\r\n )\r\n .mousemove(function(e) {\r\n if (_this.movestate) {\r\n if (_this.moveitemposition.length == 0) {\r\n _this.moveitemposition = [0];\r\n\r\n $(this)\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function(i) {\r\n let $t = $(this),\r\n h = $t.outerHeight();\r\n _this.moveitemposition.push(_this.moveitemposition[i] + h + 2);\r\n });\r\n $(this).append(\r\n '
',\r\n );\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-slider-pivot-move\").css({\r\n background: \"#FD8585\",\r\n color: \"#fff\",\r\n border: \"1px solid #FD7070\",\r\n });\r\n let x = event.pageX,\r\n y = event.pageY,\r\n $container = $(this);\r\n let curtop = y - $container.offset().top + $container.scrollTop();\r\n let position = _this.moveitemposition;\r\n let row_index = luckysheet_searcharray(position, curtop);\r\n\r\n if (row_index == -1) {\r\n $(\"#luckysheet-modal-dialog-config-order-help\").css({ top: position[position.length - 1] });\r\n } else if (\r\n curtop - position[row_index - 1] >\r\n (position[row_index] - position[row_index - 1]) / 2\r\n ) {\r\n $(\"#luckysheet-modal-dialog-config-order-help\").css({ top: position[row_index] });\r\n } else {\r\n $(\"#luckysheet-modal-dialog-config-order-help\").css({ top: position[row_index - 1] });\r\n }\r\n }\r\n })\r\n .mouseleave(function() {\r\n if (_this.movestate) {\r\n $(\"#luckysheet-modal-dialog-slider-pivot-move\").css({\r\n background: \"#fff\",\r\n color: \"#000\",\r\n border: \"1px dotted #000\",\r\n });\r\n _this.moveitemposition = [];\r\n $(\"#luckysheet-modal-dialog-config-order-help\").remove();\r\n }\r\n })\r\n .mouseup(function(e) {\r\n if (_this.movestate) {\r\n let $t = $(this);\r\n let itemHTML;\r\n\r\n if (_this.movesave.containerid == $t.attr(\"id\")) {\r\n itemHTML = _this.movesave.obj.clone();\r\n } else {\r\n let name = _this.movesave.name,\r\n sumtype = \"\",\r\n nameindex = \"\";\r\n\r\n if ($t.attr(\"id\") == \"luckysheet-modal-dialog-config-value\") {\r\n let type = _this.pivot_data_type[_this.movesave.index.toString()];\r\n\r\n if (type == \"num\") {\r\n name = locale_pivotTable.valueStatisticsSUM + \":\" + name;\r\n sumtype = \"data-sumtype='SUM'\";\r\n nameindex = \"data-nameindex='0'\";\r\n } else {\r\n name = locale_pivotTable.valueStatisticsCOUNTA + \":\" + name;\r\n sumtype = \"data-sumtype='COUNTA'\";\r\n nameindex = \"data-nameindex='0'\";\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-config-value\")\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function() {\r\n if (\r\n $(this)\r\n .find(\".luckysheet-modal-dialog-slider-config-item-txt\")\r\n .text() == name\r\n ) {\r\n let ni = parseFloat($(this).data(\"nameindex\")) + 1;\r\n name = name + ni.toString();\r\n $(this).data(\"nameindex\", ni);\r\n return false;\r\n }\r\n });\r\n }\r\n\r\n itemHTML =\r\n '
' +\r\n name +\r\n '
';\r\n }\r\n\r\n let x = event.pageX,\r\n y = event.pageY,\r\n $container = $(this);\r\n let curtop = y - $container.offset().top + $container.scrollTop();\r\n let position = _this.moveitemposition;\r\n let row_index = luckysheet_searcharray(position, curtop);\r\n\r\n if (\r\n _this.movesave.containerid == \"luckysheet-modal-dialog-pivotTable-list\" ||\r\n (_this.movesave.containerid == \"luckysheet-modal-dialog-config-value\" &&\r\n _this.movesave.containerid != $t.attr(\"id\"))\r\n ) {\r\n $(\r\n \"#luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column\",\r\n )\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function() {\r\n if ($(this).data(\"index\") == _this.movesave.index) {\r\n $(this).remove();\r\n }\r\n });\r\n }\r\n\r\n if (row_index == -1) {\r\n if ($t.find(\".luckysheet-modal-dialog-slider-config-item\").length == 0) {\r\n $t.append(itemHTML);\r\n } else {\r\n $t.find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .last()\r\n .after(itemHTML);\r\n }\r\n } else if (\r\n curtop - position[row_index - 1] >\r\n (position[row_index] - position[row_index - 1]) / 2\r\n ) {\r\n $t.find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .eq(row_index - 1)\r\n .after(itemHTML);\r\n } else {\r\n $t.find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .eq(row_index - 1)\r\n .before(itemHTML);\r\n }\r\n\r\n if (_this.movesave.containerid == \"luckysheet-modal-dialog-pivotTable-list\") {\r\n } else if (\r\n _this.movesave.containerid == \"luckysheet-modal-dialog-config-value\" &&\r\n _this.movesave.containerid != $t.attr(\"id\")\r\n ) {\r\n } else {\r\n _this.movesave.obj.remove();\r\n }\r\n\r\n $(\"#luckysheet-modal-dialog-pivotTable-list\")\r\n .find(\".luckysheet-modal-dialog-slider-list-item\")\r\n .each(function() {\r\n let $seleted = $(this).find(\".luckysheet-slider-list-item-selected\");\r\n if ($(this).data(\"index\") == _this.movesave.index && $seleted.find(\"i\").length == 0) {\r\n $seleted.append('');\r\n }\r\n });\r\n\r\n _this.refreshPivotTable();\r\n\r\n $(\"#luckysheet-modal-dialog-slider-pivot-move\").remove();\r\n _this.movestate = false;\r\n $(\r\n \"#luckysheet-modal-dialog-pivotTable-list, #luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column, #luckysheet-modal-dialog-config-value\",\r\n ).css(\"cursor\", \"default\");\r\n _this.moveitemposition = [];\r\n $(\"#luckysheet-modal-dialog-config-order-help\").remove();\r\n _this.showvaluecolrow();\r\n e.stopPropagation();\r\n }\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-pivotTable-list\").on(\r\n \"click\",\r\n \".luckysheet-slider-list-item-selected\",\r\n function() {\r\n let $t = $(this),\r\n $item = $t.parent(),\r\n index = $item.data(\"index\"),\r\n name = $item.data(\"name\");\r\n\r\n if ($t.find(\"i\").length == 0) {\r\n $t.append('');\r\n\r\n let type = _this.pivot_data_type[index.toString()],\r\n itemHTML;\r\n\r\n if (type == \"num\") {\r\n itemHTML =\r\n '
\u6C42\u548C:' +\r\n name +\r\n '
';\r\n $(\"#luckysheet-modal-dialog-config-value\").append(itemHTML);\r\n } else {\r\n itemHTML =\r\n '
' +\r\n name +\r\n '
';\r\n\r\n let $column = $(\"#luckysheet-modal-dialog-config-column\"),\r\n $row = $(\"#luckysheet-modal-dialog-config-row\");\r\n let columnitem = $column.find(\".luckysheet-modal-dialog-slider-config-item\"),\r\n rowitem = $row.find(\".luckysheet-modal-dialog-slider-config-item\");\r\n\r\n if (columnitem.length < 2) {\r\n $column.append(itemHTML);\r\n } else if (rowitem.length < 2) {\r\n $row.append(itemHTML);\r\n } else {\r\n $column.append(itemHTML);\r\n }\r\n }\r\n } else {\r\n $t.find(\"i\").remove();\r\n $(\r\n \"#luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column, #luckysheet-modal-dialog-config-value\",\r\n )\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function() {\r\n if ($(this).data(\"index\") == index) {\r\n if (\r\n $(this)\r\n .parent()\r\n .attr(\"id\") == \"luckysheet-modal-dialog-config-value\"\r\n ) {\r\n _this.resetOrderby($(this));\r\n }\r\n $(this).remove();\r\n }\r\n });\r\n }\r\n\r\n _this.refreshPivotTable();\r\n _this.showvaluecolrow();\r\n },\r\n );\r\n\r\n $(\"#luckysheet-dialog-pivotTable-clearitem\").click(function() {\r\n $(\r\n \"#luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column, #luckysheet-modal-dialog-config-value\",\r\n )\r\n .find(\".luckysheet-modal-dialog-slider-config-item\")\r\n .each(function() {\r\n $(this).remove();\r\n });\r\n\r\n $(\"#luckysheet-modal-dialog-pivotTable-list\")\r\n .find(\".luckysheet-modal-dialog-slider-list-item\")\r\n .each(function() {\r\n $(this)\r\n .find(\".luckysheet-slider-list-item-selected\")\r\n .find(\"i\")\r\n .remove();\r\n });\r\n\r\n _this.refreshPivotTable();\r\n _this.showvaluecolrow();\r\n });\r\n }\r\n\r\n if (restore == null) {\r\n restore = false;\r\n }\r\n\r\n if (_this.celldata.length <= 1 && _this.celldata[0].length <= 1) {\r\n if (isEditMode()) {\r\n alert(locale_pivotTable.errorIncreaseRange);\r\n } else {\r\n tooltip.info(\"\", locale_pivotTable.errorIncreaseRange);\r\n }\r\n }\r\n\r\n let selecteditem = \"\",\r\n selecteditemIndex = 1,\r\n selecteditemtest = {},\r\n selecteditemNullIndex = 1;\r\n\r\n for (let i = 0; i < _this.celldata[0].length; i++) {\r\n let name;\r\n if (!!_this.celldata[0][i] && !!_this.celldata[0][i][\"m\"]) {\r\n name = _this.celldata[0][i][\"m\"];\r\n } else {\r\n name = getcellvalue(0, i, _this.celldata);\r\n }\r\n\r\n if (name != null) {\r\n name = name.toString();\r\n }\r\n\r\n if (name == null || $.trim(name.toString()).length == 0) {\r\n name = locale_pivotTable.titleColumn + \" \" + selecteditemNullIndex;\r\n }\r\n selecteditemNullIndex++;\r\n\r\n if (name in selecteditemtest) {\r\n name = name + selecteditemIndex++;\r\n if (name in selecteditemtest) {\r\n name = name + selecteditemIndex++;\r\n if (name in selecteditemtest) {\r\n name = name + selecteditemIndex++;\r\n }\r\n }\r\n }\r\n selecteditemtest[name] = 1;\r\n\r\n let dataother = \"\",\r\n style = \"\";\r\n\r\n if (restore && _this.filterparm != null) {\r\n if (_this.filterparm[i.toString()] != null) {\r\n let itemset = _this.filterparm[i.toString()];\r\n if (itemset.rowhidden != null) {\r\n dataother += \"data-rowhidden='\" + JSON.stringify(itemset.rowhidden) + \"'\";\r\n }\r\n\r\n if (itemset.selected != null) {\r\n dataother += \"data-selected='\" + JSON.stringify(itemset.selected) + \"'\";\r\n }\r\n\r\n if (itemset.caljs != null) {\r\n let caljsset = itemset.caljs;\r\n if (caljsset.value != null) {\r\n dataother += \"data-byconditionvalue='\" + caljsset.value + \"'\";\r\n }\r\n\r\n if (caljsset.type != null) {\r\n dataother += \"data-byconditiontype='\" + caljsset.type + \"'\";\r\n }\r\n\r\n if (caljsset.text != null) {\r\n dataother += \"data-byconditiontext='\" + caljsset.text + \"'\";\r\n }\r\n\r\n if (caljsset.value1 != null) {\r\n dataother += \"data-byconditionvalue1='\" + caljsset.value1 + \"'\";\r\n }\r\n\r\n if (caljsset.value2 != null) {\r\n dataother += \"data-byconditionvalue2='\" + caljsset.value2 + \"'\";\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (dataother.length > 0) {\r\n style = \"display:block;\";\r\n }\r\n\r\n selecteditem +=\r\n '
' +\r\n name +\r\n '
';\r\n }\r\n $(\"#luckysheet-modal-dialog-pivotTable-list\").html(selecteditem);\r\n\r\n $(\"#luckysheetpivottablevaluecolrowshow\").hide();\r\n $(\"#luckysheetpivottablevaluecolrow\").prop(\"checked\", true);\r\n $(\"#luckysheetpivottablevaluecolrow1\").prop(\"checked\", false);\r\n\r\n $(\r\n \"#luckysheet-modal-dialog-config-filter, #luckysheet-modal-dialog-config-row, #luckysheet-modal-dialog-config-column, #luckysheet-modal-dialog-config-value\",\r\n ).empty();\r\n\r\n if (restore) {\r\n if (_this.filter != null && _this.filter.length > 0) {\r\n for (let i = 0; i < _this.filter.length; i++) {\r\n let item = _this.filter[i];\r\n\r\n let itemHTML =\r\n '
' +\r\n item.name +\r\n '
';\r\n\r\n $(\"#luckysheet-modal-dialog-config-filter\").append(itemHTML);\r\n\r\n let $seleted = $(\r\n \"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\",\r\n )\r\n .eq(item.index)\r\n .find(\".luckysheet-slider-list-item-selected\");\r\n if ($seleted.find(\"i\").length == 0) {\r\n $seleted.append('');\r\n }\r\n }\r\n }\r\n\r\n if (_this.row != null && _this.row.length > 0) {\r\n for (let i = 0; i < _this.row.length; i++) {\r\n let item = _this.row[i];\r\n let otherset = \"\";\r\n\r\n if (item.order != null) {\r\n otherset += \"data-order = '\" + item.order + \"'\";\r\n }\r\n\r\n if (item.orderby != null) {\r\n otherset += \"data-orderby = '\" + item.orderby + \"'\";\r\n }\r\n\r\n if (item.order != null) {\r\n otherset += \"data-stastic = '\" + item.stastic + \"'\";\r\n }\r\n\r\n let itemHTML =\r\n '
' +\r\n item.name +\r\n '
';\r\n\r\n $(\"#luckysheet-modal-dialog-config-row\").append(itemHTML);\r\n\r\n let $seleted = $(\r\n \"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\",\r\n )\r\n .eq(item.index)\r\n .find(\".luckysheet-slider-list-item-selected\");\r\n if ($seleted.find(\"i\").length == 0) {\r\n $seleted.append('');\r\n }\r\n }\r\n }\r\n\r\n if (_this.column != null && _this.column.length > 0) {\r\n for (let i = 0; i < _this.column.length; i++) {\r\n let item = _this.column[i];\r\n let otherset = \"\";\r\n\r\n if (item.order != null) {\r\n otherset += \"data-order = '\" + item.order + \"'\";\r\n }\r\n\r\n if (item.orderby != null) {\r\n otherset += \"data-orderby = '\" + item.orderby + \"'\";\r\n }\r\n\r\n if (item.order != null) {\r\n otherset += \"data-stastic = '\" + item.stastic + \"'\";\r\n }\r\n\r\n let itemHTML =\r\n '
' +\r\n item.name +\r\n '
';\r\n\r\n $(\"#luckysheet-modal-dialog-config-column\").append(itemHTML);\r\n\r\n let $seleted = $(\r\n \"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\",\r\n )\r\n .eq(item.index)\r\n .find(\".luckysheet-slider-list-item-selected\");\r\n if ($seleted.find(\"i\").length == 0) {\r\n $seleted.append('');\r\n }\r\n }\r\n }\r\n\r\n if (_this.values != null && _this.values.length > 0) {\r\n for (let i = 0; i < _this.values.length; i++) {\r\n let item = _this.values[i];\r\n let otherset = \"\";\r\n\r\n if (item.sumtype != null) {\r\n otherset += \"data-sumtype = '\" + item.sumtype + \"'\";\r\n }\r\n\r\n if (item.nameindex != null) {\r\n otherset += \"data-nameindex = '\" + item.nameindex + \"'\";\r\n }\r\n\r\n let itemHTML =\r\n '
' +\r\n _this.getSumTypeName(item.sumtype) +\r\n \":\" +\r\n item.name +\r\n '
';\r\n\r\n $(\"#luckysheet-modal-dialog-config-value\").append(itemHTML);\r\n\r\n let $seleted = $(\r\n \"#luckysheet-modal-dialog-pivotTable-list .luckysheet-modal-dialog-slider-list-item\",\r\n )\r\n .eq(item.index)\r\n .find(\".luckysheet-slider-list-item-selected\");\r\n if ($seleted.find(\"i\").length == 0) {\r\n $seleted.append('');\r\n }\r\n }\r\n\r\n if (_this.values.length >= 2) {\r\n $(\"#luckysheetpivottablevaluecolrowshow\").show();\r\n if (_this.showType == \"column\") {\r\n $(\"#luckysheetpivottablevaluecolrow\").prop(\"checked\", true);\r\n $(\"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow']\").addClass(\r\n \"ui-state-active\",\r\n );\r\n\r\n $(\"#luckysheetpivottablevaluecolrow1\").prop(\"checked\", false);\r\n $(\r\n \"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow1']\",\r\n ).removeClass(\"ui-state-active\");\r\n } else {\r\n $(\"#luckysheetpivottablevaluecolrow1\").prop(\"checked\", true);\r\n $(\r\n \"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow1']\",\r\n ).addClass(\"ui-state-active\");\r\n\r\n $(\"#luckysheetpivottablevaluecolrow\").prop(\"checked\", false);\r\n $(\r\n \"#luckysheetpivottablevaluecolrowshow label[for='luckysheetpivottablevaluecolrow']\",\r\n ).removeClass(\"ui-state-active\");\r\n }\r\n }\r\n }\r\n }\r\n\r\n $(\"#luckysheet-dialog-pivotTable-range\").html(getRangetxt(_this.pivotDataSheetIndex, _this.pivot_select_save));\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").show();\r\n\r\n luckysheetsizeauto(false);\r\n },\r\n getComposeArray: function(data) {\r\n if (data.length == 0) {\r\n return [];\r\n }\r\n\r\n let ret = [];\r\n for (let i = 0; i < data.length; i++) {\r\n let name = \"\";\r\n for (let x = 0; x <= i; x++) {\r\n if (!!data[x] && !!data[x][\"m\"]) {\r\n name += data[x][\"m\"];\r\n } else {\r\n name += getcellvalue(x, null, data);\r\n }\r\n }\r\n\r\n ret.push(name);\r\n }\r\n\r\n return ret;\r\n },\r\n getnameArray: function(data, field) {\r\n if (data.length == 0) {\r\n return [];\r\n }\r\n\r\n if (field.length == 0) {\r\n return [];\r\n }\r\n\r\n let ret = [];\r\n for (let i = 0; i < field.length; i++) {\r\n let c_value;\r\n if (!!data[field[i].index] && !!data[field[i].index][\"m\"]) {\r\n c_value = data[field[i].index][\"m\"];\r\n } else {\r\n c_value = getcellvalue(field[i].index, null, data);\r\n }\r\n\r\n ret.push(c_value);\r\n }\r\n\r\n return ret;\r\n },\r\n getTitleFromGroup: function(group, config, dataposition) {\r\n let _this = this;\r\n let orderbygroup = _this.orderbygroup(group, config, dataposition);\r\n\r\n return _this.generategrouparraymain(orderbygroup, config);\r\n },\r\n orderbygroup: function(group, config, dataposition) {\r\n let _this = this;\r\n\r\n let stackset = [];\r\n if (group.length == 0) {\r\n return [];\r\n }\r\n stackset = group;\r\n\r\n let d = null,\r\n alllength = stackset.length,\r\n alllengthInital = stackset.length,\r\n a = 0;\r\n\r\n while (alllength != 0) {\r\n d = stackset[a++];\r\n alllength--;\r\n\r\n if (d.children != null && d.children.length > 0) {\r\n d.children = _this.orderbygroupchildren(\r\n d.children,\r\n config[d.index].orderby,\r\n config[d.index].order,\r\n dataposition,\r\n );\r\n\r\n for (let i = 0; i < d.children.length; i++) {\r\n stackset.push(d.children[i]);\r\n alllength++;\r\n }\r\n }\r\n }\r\n\r\n return group.splice(0, alllengthInital);\r\n },\r\n orderbygroupchildren: function(childrens, orderby, order, dataposition) {\r\n if (childrens.length == 0) {\r\n return [];\r\n }\r\n\r\n let isAsc = false;\r\n if (order == null || order == \"asc\") {\r\n isAsc = true;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n\r\n let a = function(x, y) {\r\n let f = null,\r\n s = null;\r\n\r\n if (orderby == \"self\" || orderby == null) {\r\n if (x.name == null) {\r\n f = locale_filter.valueBlank;\r\n } else {\r\n f = x.name.toString();\r\n }\r\n\r\n if (y.name == null) {\r\n s = locale_filter.valueBlank;\r\n } else {\r\n s = y.name.toString();\r\n }\r\n\r\n if (isdatetime(f) && isdatetime(s)) {\r\n return diff(f, s);\r\n }\r\n } else {\r\n f = parseFloat(dataposition[x.orderby].result);\r\n s = parseFloat(dataposition[y.orderby].result);\r\n }\r\n\r\n if (!isNaN(f) && !isNaN(s)) {\r\n return numeral(f).value() - numeral(s).value();\r\n } else if (isNaN(f) && isNaN(s)) {\r\n return f.localeCompare(s);\r\n } else if (isNaN(f)) {\r\n return 1;\r\n } else if (isNaN(s)) {\r\n return -1;\r\n }\r\n };\r\n\r\n let d = function(x, y) {\r\n let f = null,\r\n s = null;\r\n\r\n if (orderby == \"self\" || orderby == null) {\r\n if (x.name == null) {\r\n f = locale_filter.valueBlank;\r\n } else {\r\n f = x.name.toString();\r\n }\r\n\r\n if (y.name == null) {\r\n s = locale_filter.valueBlank;\r\n } else {\r\n s = y.name.toString();\r\n }\r\n\r\n if (isdatetime(f) && isdatetime(s)) {\r\n return diff(f, s);\r\n }\r\n } else {\r\n f = parseFloat(dataposition[x.orderby].result);\r\n s = parseFloat(dataposition[y.orderby].result);\r\n }\r\n\r\n if (!isNaN(f) && !isNaN(s)) {\r\n return numeral(s).value() - numeral(f).value();\r\n } else if (isNaN(f) && isNaN(s)) {\r\n return s.localeCompare(f);\r\n } else if (isNaN(f)) {\r\n return -1;\r\n } else if (isNaN(s)) {\r\n return 1;\r\n }\r\n };\r\n\r\n if (isAsc) {\r\n return childrens.sort(a);\r\n } else {\r\n return childrens.sort(d);\r\n }\r\n },\r\n generategroupaddstatic: function(arr, name) {\r\n let stasticarr = [];\r\n const _locale = locale();\r\n const locale_pivotTable = _locale.pivotTable;\r\n for (let a = 0; a < arr[0].length; a++) {\r\n if (a == 0) {\r\n if (name == locale_pivotTable.valueSum) {\r\n stasticarr.push(name);\r\n } else {\r\n stasticarr.push({ name: name, issum: true });\r\n }\r\n } else {\r\n stasticarr.push(\"\");\r\n }\r\n }\r\n\r\n return stasticarr;\r\n },\r\n generategrouparraymain: function(group, config) {\r\n let _this = this;\r\n\r\n //\u751F\u6210\u6570\u7EC4\r\n let ret = [];\r\n for (let i = 0; i < group.length; i++) {\r\n let name = group[i].name;\r\n let arr = _this.generategrouparray(group[i].children, config, 1);\r\n\r\n if (config[0].stastic == \"1\" || config[0].stastic == null) {\r\n arr.push(_this.generategroupaddstatic(arr, name));\r\n }\r\n\r\n ret = ret.concat(arr);\r\n }\r\n\r\n return ret;\r\n },\r\n generategrouparray: function(group, config, level) {\r\n let _this = this;\r\n\r\n let ret = [];\r\n for (let i = 0; i < group.length; i++) {\r\n let name = group[i].name;\r\n let arr;\r\n\r\n if (group[i].children == 0 || group[i].children.length == 0) {\r\n arr = [name];\r\n ret.push(arr);\r\n } else {\r\n arr = _this.generategrouparray(group[i].children, config, level + 1);\r\n\r\n for (let a = 0; a < arr.length; a++) {\r\n arr[a].unshift(name);\r\n }\r\n\r\n if (config[level].stastic == \"1\" || config[level].stastic == null) {\r\n arr.push(_this.generategroupaddstatic(arr, name));\r\n }\r\n\r\n ret = ret.concat(arr);\r\n }\r\n }\r\n\r\n return ret;\r\n },\r\n addStatisticsData: function(dataposition, valueobj, indicator, d_value) {\r\n if (dataposition[indicator] == null) {\r\n dataposition[indicator] = {\r\n data: [],\r\n count: 0,\r\n max: -Infinity,\r\n min: Infinity,\r\n counta: 0,\r\n countunique: 0,\r\n countuniquedata: {},\r\n sum: 0,\r\n digitaldata: [],\r\n sumtype: valueobj.sumtype,\r\n index: valueobj.index,\r\n name: valueobj.fullname,\r\n acc: 0,\r\n };\r\n }\r\n\r\n if (isdatatypemulti(d_value)[\"num\"] === true) {\r\n //fix issue 265\r\n let num = numFormat(d_value, 6);\r\n dataposition[indicator][\"digitaldata\"].push(num);\r\n dataposition[indicator][\"count\"] += 1;\r\n dataposition[indicator][\"sum\"] += num;\r\n\r\n if (num > dataposition[indicator][\"max\"]) {\r\n dataposition[indicator][\"max\"] = num;\r\n }\r\n\r\n if (num < dataposition[indicator][\"min\"]) {\r\n dataposition[indicator][\"min\"] = num;\r\n }\r\n\r\n let newAcc = numfloatlen(num);\r\n\r\n if (newAcc > dataposition[indicator][\"acc\"]) {\r\n dataposition[indicator][\"acc\"] = newAcc;\r\n }\r\n }\r\n\r\n if (d_value != \"\") {\r\n dataposition[indicator][\"data\"].push(d_value);\r\n dataposition[indicator][\"counta\"] += 1;\r\n if (!(d_value in dataposition[indicator][\"countuniquedata\"])) {\r\n dataposition[indicator][\"countuniquedata\"][d_value] = 1;\r\n dataposition[indicator][\"countunique\"] += 1;\r\n }\r\n }\r\n },\r\n dataHandler: function(column, row, values, showType, celldata) {\r\n //column:[{\"index\":1, name:\"\u52171\", \"order\":\"asc\", \"orderby\":\"self/0/1/2\", \"stastic\":\"0/1\"}]\r\n //row:[{\"index\":1, name:\"\u52173\", \"order\":\"asc\", \"orderby\":\"self/0/1/2\", \"stastic\":\"0/1\"}]\r\n //values:[{\"index\":1, \"sumtype\":\"SUM/COUNT/COUNTA/COUNTUNIQUE/AVERAGE/MAX/MIN/MEDIAN/PRODUCT/STDEV/STDEVP/let/VARP\", \"name\":\"\u6C42\u548C:fyc\"}]\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n if (showType == null) {\r\n showType = \"column\";\r\n }\r\n\r\n if ((column.length == 0 && row.length == 0 && values.length == 0) || celldata.length == 0) {\r\n _this.pivotDatas = [];\r\n return [];\r\n }\r\n\r\n //\u751F\u6210\u900F\u89C6\u8868\u503C\u53CA\u5B9A\u4F4D\r\n let dataposition = {},\r\n data = celldata,\r\n datarowtitle = [],\r\n datarowtitlegroup = [],\r\n datarowposition = {},\r\n datarowposition_i = 0,\r\n datacoltitle = [],\r\n datacoltitlegroup = [],\r\n datacolposition = {},\r\n datacolposition_i = 0;\r\n\r\n for (let i = 1; i < data.length; i++) {\r\n let d = data[i];\r\n let groupbyrowtxt = \"\",\r\n groupbycoltxt = \"\",\r\n rowtxt = \"\",\r\n rowtitle = [],\r\n rowtitlename = [],\r\n coltxt = \"\",\r\n coltitle = [],\r\n coltitlename = [];\r\n\r\n //[\"\u56DB\u5DDD\", \"\u6210\u90FD\", \"\u909B\u5D03\"] \u8F6C\u6362\u4E3A [\"\u56DB\u5DDD\", \"\u56DB\u5DDD\u6210\u90FD\", \"\u56DB\u5DDD\u6210\u90FD\u909B\u5D03\"]\r\n rowtitlename = _this.getnameArray(d, row);\r\n coltitlename = _this.getnameArray(d, column);\r\n\r\n rowtitle = _this.getComposeArray(rowtitlename);\r\n coltitle = _this.getComposeArray(coltitlename);\r\n\r\n if (rowtitle.length > 0) {\r\n rowtitle.unshift(locale_pivotTable.valueSum);\r\n }\r\n\r\n if (coltitle.length > 0) {\r\n coltitle.unshift(locale_pivotTable.valueSum);\r\n }\r\n\r\n let curentLevelobj_row = datarowposition,\r\n curentLevelarr_row = datarowtitlegroup;\r\n\r\n for (let r = 0; r < rowtitle.length; r++) {\r\n let item = rowtitle[r],\r\n name = r == 0 ? locale_pivotTable.valueSum : rowtitlename[r - 1]; //\u4FEE\u6539\r\n\r\n if (curentLevelobj_row[r.toString()] != null && curentLevelobj_row[r.toString()][item] != null) {\r\n //\u4FEE\u6539\r\n curentLevelarr_row = curentLevelarr_row[curentLevelobj_row[r.toString()][item]].children;\r\n } else {\r\n let orderby =\r\n r == 0\r\n ? \"self\"\r\n : row[r - 1].orderby == \"self\" || row[r - 1].orderby == null\r\n ? item\r\n : showType == \"column\"\r\n ? item + values[parseInt(row[r - 1].orderby)].fullname\r\n : item + locale_pivotTable.valueSum;\r\n\r\n if (name == null) {\r\n name = locale_filter.valueBlank;\r\n }\r\n\r\n curentLevelarr_row.push({ name: name, fullname: item, index: r, orderby: orderby, children: [] });\r\n\r\n if (curentLevelobj_row[r.toString()] == null) {\r\n curentLevelobj_row[r.toString()] = {};\r\n }\r\n\r\n if (curentLevelobj_row[r.toString()][item] == null) {\r\n curentLevelobj_row[r.toString()][item] = curentLevelarr_row.length - 1;\r\n }\r\n\r\n curentLevelarr_row = curentLevelarr_row[curentLevelarr_row.length - 1].children;\r\n }\r\n }\r\n\r\n let curentLevelobj_col = datacolposition,\r\n curentLevelarr_col = datacoltitlegroup;\r\n\r\n for (let r = 0; r < coltitle.length; r++) {\r\n let item = coltitle[r],\r\n name = r == 0 ? locale_pivotTable.valueSum : coltitlename[r - 1];\r\n\r\n if (curentLevelobj_col[r.toString()] != null && curentLevelobj_col[r.toString()][item] != null) {\r\n curentLevelarr_col = curentLevelarr_col[curentLevelobj_col[r.toString()][item]].children;\r\n } else {\r\n let orderby =\r\n r == 0\r\n ? \"self\"\r\n : column[r - 1].orderby == \"self\" || column[r - 1].orderby == null\r\n ? item\r\n : showType == \"column\"\r\n ? locale_pivotTable.valueSum + item\r\n : values[parseInt(column[r - 1].orderby)].fullname + item;\r\n\r\n if (name == null) {\r\n name = locale_filter.valueBlank;\r\n }\r\n\r\n curentLevelarr_col.push({ name: name, fullname: item, index: r, orderby: orderby, children: [] });\r\n\r\n if (curentLevelobj_col[r.toString()] == null) {\r\n curentLevelobj_col[r.toString()] = {};\r\n }\r\n\r\n if (curentLevelobj_col[r.toString()][item] == null) {\r\n curentLevelobj_col[r.toString()][item] = curentLevelarr_col.length - 1;\r\n }\r\n\r\n curentLevelarr_col = curentLevelarr_col[curentLevelarr_col.length - 1].children;\r\n }\r\n }\r\n\r\n let v_str = \"\";\r\n for (let v = 0; v < values.length; v++) {\r\n let d_value = getcellvalue(values[v].index, null, d);\r\n\r\n let coltitle_c = [].concat(coltitle),\r\n rowtitle_c = [].concat(rowtitle);\r\n if (showType == \"column\") {\r\n if (coltitle_c.length > 0) {\r\n coltitle_c.push(\"\");\r\n coltitle_c = coltitle_c\r\n .join(values[v].fullname + \"|||\")\r\n .split(\"|||\")\r\n .slice(0, coltitle_c.length - 1);\r\n } else {\r\n coltitle_c.push(values[v].fullname);\r\n }\r\n } else {\r\n if (rowtitle_c.length > 0) {\r\n rowtitle_c.push(\"\");\r\n rowtitle_c = rowtitle_c\r\n .join(values[v].fullname + \"|||\")\r\n .split(\"|||\")\r\n .slice(0, rowtitle_c.length - 1);\r\n } else {\r\n rowtitle_c.push(values[v].fullname);\r\n }\r\n }\r\n\r\n if (coltitle_c.length == 0) {\r\n coltitle_c.push(\"\");\r\n }\r\n\r\n if (rowtitle_c.length == 0) {\r\n rowtitle_c.push(\"\");\r\n }\r\n\r\n for (let r = 0; r < rowtitle_c.length; r++) {\r\n for (let c = 0; c < coltitle_c.length; c++) {\r\n let indicator = rowtitle_c[r] + coltitle_c[c];\r\n _this.addStatisticsData(dataposition, values[v], indicator, d_value);\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u8BA1\u7B97\u503C\u5217\r\n //SUM/COUNT/COUNTA/COUNTUNIQUE/AVERAGE/MAX/MIN/MEDIAN/PRODUCT/STDEV/STDEVP/let/VARP\r\n for (let indicator in dataposition) {\r\n let json = dataposition[indicator];\r\n\r\n if (json.sumtype == \"SUM\") {\r\n json.result = json.sum;\r\n } else if (json.sumtype == \"COUNT\") {\r\n json.result = json.count;\r\n } else if (json.sumtype == \"COUNTA\") {\r\n json.result = json.counta;\r\n } else if (json.sumtype == \"COUNTUNIQUE\") {\r\n json.result = json.countunique;\r\n } else if (json.sumtype == \"AVERAGE\") {\r\n json.result = numFormat(json.sum / json.count);\r\n } else if (json.sumtype == \"MAX\") {\r\n json.result = json.max;\r\n } else if (json.sumtype == \"MIN\") {\r\n json.result = json.min;\r\n } else if (json.sumtype == \"MEDIAN\") {\r\n let numArr = json.digitaldata.sort(function(a, b) {\r\n return a - b;\r\n });\r\n let numLen = numArr.length;\r\n let numindex = parseInt(numLen / 2);\r\n\r\n if (numLen % 2 == 0) {\r\n json.result = (numArr[numindex - 1] + numArr[numindex]) / 2;\r\n } else {\r\n json.result = numArr[numindex];\r\n }\r\n } else if (json.sumtype == \"PRODUCT\") {\r\n json.result = new Function(\"return \" + json.digitaldata.join(\"*\"))();\r\n } else if (json.sumtype == \"STDEV\") {\r\n let mean = json.sum / json.count;\r\n json.result = analysis.STDEV(mean, json.digitaldata);\r\n } else if (json.sumtype == \"STDEVP\") {\r\n let mean = json.sum / json.count;\r\n json.result = analysis.STDEVP(mean, json.digitaldata);\r\n } else if (json.sumtype == \"let\") {\r\n let mean = json.sum / json.count;\r\n json.result = analysis.let(mean, json.digitaldata);\r\n } else if (json.sumtype == \"VARP\") {\r\n let mean = json.sum / json.count;\r\n json.result = analysis.VARP(mean, json.digitaldata);\r\n }\r\n\r\n let newAcc = numfloatlen(json.result);\r\n if (newAcc > json.acc) {\r\n json.acc = newAcc;\r\n }\r\n\r\n json.result = numFormat(json.result, json.acc);\r\n }\r\n\r\n datarowtitle = _this.getTitleFromGroup(datarowtitlegroup, row, dataposition);\r\n datacoltitle = _this.getTitleFromGroup(datacoltitlegroup, column, dataposition);\r\n\r\n //\u52A0\u5165\u503C\u5230\u5217/\u884C\u5F62\u6210\u65B0\u7684\u8868\u5934\r\n if (showType == \"column\") {\r\n if (datacoltitle.length > 0 && datacoltitle[0].length > 0) {\r\n datacoltitle = _this.addValuesToTitle(datacoltitle, values);\r\n } else {\r\n for (let v = 0; v < values.length; v++) {\r\n datacoltitle.push([values[v].fullname]);\r\n }\r\n }\r\n } else {\r\n if (datarowtitle.length > 0 && datarowtitle[0].length > 0) {\r\n datarowtitle = _this.addValuesToTitle(datarowtitle, values);\r\n } else {\r\n for (let v = 0; v < values.length; v++) {\r\n datarowtitle.push([values[v].fullname]);\r\n }\r\n }\r\n }\r\n\r\n let datacoltitle_index = datacoltitle;\r\n datacoltitle = luckysheetArray.transpose(datacoltitle, false);\r\n\r\n let valuenslen = values.length == 0 ? 0 : 1;\r\n let rowLen =\r\n (datacoltitle.length == 0 ? valuenslen : datacoltitle.length) +\r\n (datarowtitle.length == 0 ? valuenslen : datarowtitle.length),\r\n colLen =\r\n (datacoltitle.length == 0 ? valuenslen : datacoltitle[0].length) +\r\n (datarowtitle.length == 0 ? valuenslen : datarowtitle[0].length);\r\n\r\n let rowOver = datacoltitle.length,\r\n colOver = datarowtitle.length == 0 ? 0 : datarowtitle[0].length;\r\n\r\n let retdata = [];\r\n for (let r = 0; r < rowLen; r++) {\r\n retdata[r] = new Array(colLen);\r\n\r\n for (let c = 0; c < colLen; c++) {\r\n let drt = datarowtitle[r - rowOver];\r\n\r\n if (r < rowOver && c < colOver) {\r\n //\u7A7A\u767D\u5217\u5934\r\n retdata[r][c] = \"\";\r\n } else if (r < rowOver && c >= colOver) {\r\n //\u5217\u6807\u9898\r\n if (datacoltitle[r] != null) {\r\n if (getObjType(datacoltitle[r][c - colOver]) == \"object\") {\r\n retdata[r][c] = datacoltitle[r][c - colOver].name + locale_pivotTable.valueSum;\r\n } else {\r\n retdata[r][c] = datacoltitle[r][c - colOver];\r\n }\r\n } else {\r\n retdata[r][c] = \"\";\r\n }\r\n } else if (r >= rowOver && c < colOver) {\r\n //\u884C\u6807\u9898\r\n if (drt != null) {\r\n if (getObjType(drt[c]) == \"object\") {\r\n retdata[r][c] = drt[c].name + locale_pivotTable.valueSum;\r\n } else {\r\n retdata[r][c] = drt[c];\r\n }\r\n } else {\r\n retdata[r][c] = \"\";\r\n }\r\n } else {\r\n //\u5355\u5143\u683C\u5185\u5BB9\r\n let prefix = \"\";\r\n if (drt != null) {\r\n if (!(drt instanceof Array) || drt.length == 1) {\r\n if (drt instanceof Array) {\r\n prefix = drt[0];\r\n } else {\r\n prefix = drt;\r\n }\r\n } else {\r\n for (let x = 0; x < drt.length; x++) {\r\n if (getObjType(drt[x]) == \"object\") {\r\n prefix += drt[x].name;\r\n } else {\r\n prefix += drt[x];\r\n }\r\n }\r\n }\r\n }\r\n\r\n let suffix = \"\";\r\n let dct = datacoltitle_index[c - colOver];\r\n if (dct != null) {\r\n if (!(dct instanceof Array) || dct.length == 1) {\r\n if (dct instanceof Array) {\r\n suffix = dct[0];\r\n } else {\r\n suffix = dct;\r\n }\r\n } else {\r\n for (let x = 0; x < dct.length; x++) {\r\n if (getObjType(dct[x]) == \"object\") {\r\n suffix += dct[x].name;\r\n } else {\r\n suffix += dct[x];\r\n }\r\n }\r\n }\r\n }\r\n\r\n let indicator = prefix;\r\n\r\n if (prefix != \"\" && suffix != \"\") {\r\n indicator = prefix + suffix;\r\n } else if (prefix == \"\") {\r\n indicator = suffix;\r\n }\r\n\r\n if (dataposition[indicator] == null) {\r\n retdata[r][c] = \"\";\r\n } else {\r\n retdata[r][c] = dataposition[indicator].result;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (values.length == 1 && column.length > 0 && row.length > 0) {\r\n retdata[0][0] = values[0].fullname;\r\n retdata.splice(column.length, 1);\r\n } else if (values.length == 1 && column.length > 0) {\r\n // 0: (6) [\"English\", \"foreign language\", \"mathematics\", \"science\", \"Sum\", undefined]\r\n // 1: (6) [\"CountA:score\", \"CountA:score\", \"CountA:score\", \"CountA:score\", \"CountA:score\", undefined]\r\n // 2: (6) [3, 3, 3, 3, 12, \"\"]\r\n //The above format does not meet viewing habits,Process retdata into the correct format\r\n let titleRow = retdata.splice(column.length, 1);\r\n let newRetdata = [];\r\n for (let r = 0; r < retdata.length; r++) {\r\n let row = [];\r\n if (r == retdata.length - 1) {\r\n row.push(titleRow[0][0]);\r\n } else {\r\n row.push(\"\");\r\n }\r\n for (let c = 0; c < retdata[r].length - 1; c++) {\r\n row.push(retdata[r][c]);\r\n }\r\n newRetdata.push(row);\r\n }\r\n retdata = newRetdata;\r\n }\r\n\r\n _this.pivotDatas = retdata;\r\n\r\n return retdata;\r\n },\r\n drillDown: function(row_index, col_index) {\r\n if (!checkProtectionAuthorityNormal(Store.currentSheetIndex, \"usePivotTablereports\")) {\r\n return;\r\n }\r\n let _this = this;\r\n\r\n let cell = _this.pivotDatas[row_index][col_index];\r\n let d = $.extend(true, [], sheetmanage.nulldata);\r\n\r\n const _locale = locale();\r\n const locale_filter = _locale.filter;\r\n const locale_pivotTable = _locale.pivotTable;\r\n\r\n let selecteditemNullIndex = 1;\r\n for (let i = 0; i < _this.celldata[0].length; i++) {\r\n let name;\r\n if (!!_this.celldata[0][i] && !!_this.celldata[0][i][\"m\"]) {\r\n name = _this.celldata[0][i][\"m\"];\r\n } else {\r\n name = getcellvalue(0, i, _this.celldata);\r\n }\r\n\r\n if (name != null) {\r\n name = name.toString();\r\n }\r\n\r\n if (name == null || $.trim(name.toString()).length == 0) {\r\n name = locale_pivotTable.titleColumn + \" \" + selecteditemNullIndex;\r\n }\r\n selecteditemNullIndex++;\r\n\r\n d[0][i] = name;\r\n }\r\n\r\n let obj = {};\r\n\r\n //\u884C\r\n if (_this.row != null && _this.row.length > 0) {\r\n for (let a = 0; a < _this.row.length; a++) {\r\n obj[_this.row[a][\"index\"]] = _this.pivotDatas[row_index][a];\r\n }\r\n }\r\n\r\n //\u5217\r\n if (_this.column != null && _this.column.length > 0) {\r\n for (let b = 0; b < _this.column.length; b++) {\r\n obj[_this.column[b][\"index\"]] = _this.pivotDatas[b][col_index];\r\n }\r\n }\r\n\r\n let rowArr = [];\r\n for (let j = 1; j < _this.celldata.length; j++) {\r\n let isEqual = true;\r\n\r\n for (let x in obj) {\r\n let value;\r\n if (!!_this.celldata[j][x] && !!_this.celldata[j][x][\"m\"]) {\r\n value = _this.celldata[j][x][\"m\"];\r\n } else {\r\n value = getcellvalue(j, x, _this.celldata);\r\n }\r\n\r\n if (value != null) {\r\n value = value.toString();\r\n } else {\r\n value = locale_filter.valueBlank;\r\n }\r\n\r\n if (value != obj[x]) {\r\n isEqual = false;\r\n break;\r\n }\r\n }\r\n\r\n if (isEqual) {\r\n rowArr.push(j);\r\n }\r\n }\r\n\r\n for (let r = 0; r < rowArr.length; r++) {\r\n for (let c = 0; c < _this.celldata[0].length; c++) {\r\n let value;\r\n if (!!_this.celldata[rowArr[r]][c] && !!_this.celldata[rowArr[r]][c][\"m\"]) {\r\n value = _this.celldata[rowArr[r]][c][\"m\"];\r\n } else {\r\n value = getcellvalue(rowArr[r], c, _this.celldata);\r\n }\r\n\r\n if (value != null) {\r\n value = value.toString();\r\n } else {\r\n value = \"\";\r\n }\r\n\r\n d[r + 1][c] = value;\r\n }\r\n }\r\n\r\n Store.luckysheet_select_save = [{ row: [0, rowArr.length], column: [0, _this.celldata[0].length - 1] }];\r\n\r\n Store.clearjfundo = false;\r\n jfrefreshgrid(d, Store.luckysheet_select_save);\r\n selectHightlightShow();\r\n Store.clearjfundo = true;\r\n },\r\n};\r\n\r\nexport default pivotTable;\r\n", "import Store from \"../store\";\r\n\r\n//sparkline\u8BBE\u7F6E\r\nlet createClass = function (/* [baseclass, [mixin, ...]], definition */) {\r\n let Class, args;\r\n Class = function () {\r\n this.init.apply(this, arguments);\r\n };\r\n if (arguments.length > 1) {\r\n if (arguments[0]) {\r\n Class.prototype = $.extend(new arguments[0](), arguments[arguments.length - 1]);\r\n Class._super = arguments[0].prototype;\r\n } else {\r\n Class.prototype = arguments[arguments.length - 1];\r\n }\r\n if (arguments.length > 2) {\r\n args = Array.prototype.slice.call(arguments, 1, -1);\r\n args.unshift(Class.prototype);\r\n $.extend.apply($, args);\r\n }\r\n } else {\r\n Class.prototype = arguments[0];\r\n }\r\n Class.prototype.cls = Class;\r\n return Class;\r\n};\r\n\r\n/**\r\n * Wraps a format string for tooltips\r\n * {{x}}\r\n * {{x.2}\r\n * {{x:months}}\r\n */\r\nlet SPFormat = createClass({\r\n fre: /\\{\\{([\\w.]+?)(:(.+?))?\\}\\}/g,\r\n precre: /(\\w+)\\.(\\d+)/,\r\n\r\n init: function (format, fclass) {\r\n this.format = format;\r\n this.fclass = fclass;\r\n },\r\n\r\n render: function (fieldset, lookups, options) {\r\n let self = this,\r\n fields = fieldset,\r\n match, token, lookupkey, fieldvalue, prec;\r\n return this.format.replace(this.fre, function () {\r\n let lookup;\r\n token = arguments[1];\r\n lookupkey = arguments[3];\r\n match = self.precre.exec(token);\r\n if (match) {\r\n prec = match[2];\r\n token = match[1];\r\n } else {\r\n prec = false;\r\n }\r\n fieldvalue = fields[token];\r\n if (fieldvalue === undefined) {\r\n return '';\r\n }\r\n if (lookupkey && lookups && lookups[lookupkey]) {\r\n lookup = lookups[lookupkey];\r\n if (lookup.get) { // RangeMap\r\n return lookups[lookupkey].get(fieldvalue) || fieldvalue;\r\n } else {\r\n return lookups[lookupkey][fieldvalue] || fieldvalue;\r\n }\r\n }\r\n if (isNumber(fieldvalue)) {\r\n if (options.get('numberFormatter')) {\r\n fieldvalue = options.get('numberFormatter')(fieldvalue);\r\n } else {\r\n fieldvalue = formatNumber(fieldvalue, prec,\r\n options.get('numberDigitGroupCount'),\r\n options.get('numberDigitGroupSep'),\r\n options.get('numberDecimalMark'));\r\n }\r\n }\r\n return fieldvalue;\r\n });\r\n }\r\n});\r\n\r\n// convience method to avoid needing the new operator\r\n$.spformat = function(format, fclass) {\r\n return new SPFormat(format, fclass);\r\n};\r\n\r\nlet clipval = function (val, min, max) {\r\n if (val < min) {\r\n return min;\r\n }\r\n if (val > max) {\r\n return max;\r\n }\r\n return val;\r\n};\r\n\r\nlet quartile = function (values, q) {\r\n let vl;\r\n if (q === 2) {\r\n vl = Math.floor(values.length / 2);\r\n return values.length % 2 ? values[vl] : (values[vl-1] + values[vl]) / 2;\r\n } else {\r\n if (values.length % 2 ) { // odd\r\n vl = (values.length * q + q) / 4;\r\n return vl % 1 ? (values[Math.floor(vl)] + values[Math.floor(vl) - 1]) / 2 : values[vl-1];\r\n } else { //even\r\n vl = (values.length * q + 2) / 4;\r\n return vl % 1 ? (values[Math.floor(vl)] + values[Math.floor(vl) - 1]) / 2 : values[vl-1];\r\n\r\n }\r\n }\r\n};\r\n\r\nlet normalizeValue = function (val) {\r\n let nf;\r\n switch (val) {\r\n case 'undefined':\r\n val = undefined;\r\n break;\r\n case 'null':\r\n val = null;\r\n break;\r\n case 'true':\r\n val = true;\r\n break;\r\n case 'false':\r\n val = false;\r\n break;\r\n default:\r\n nf = parseFloat(val);\r\n if (val == nf) {\r\n val = nf;\r\n }\r\n }\r\n return val;\r\n};\r\n\r\nlet normalizeValues = function (vals) {\r\n let i, result = [];\r\n for (i = vals.length; i--;) {\r\n result[i] = normalizeValue(vals[i]);\r\n }\r\n return result;\r\n};\r\n\r\n\r\nlet all = function (val, arr, ignoreNull) {\r\n let i;\r\n for (i = arr.length; i--; ) {\r\n if (ignoreNull && arr[i] === null) continue;\r\n if (arr[i] !== val) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n};\r\n\r\n// sums the numeric values in an array, ignoring other values\r\nlet sum = function (vals) {\r\n let total = 0, i;\r\n for (i = vals.length; i--;) {\r\n total += typeof vals[i] === 'number' ? vals[i] : 0;\r\n }\r\n return total;\r\n};\r\n\r\nlet remove = function (vals, filter) {\r\n let i, vl, result = [];\r\n for (i = 0, vl = vals.length; i < vl; i++) {\r\n if (vals[i] !== filter) {\r\n result.push(vals[i]);\r\n }\r\n }\r\n return result;\r\n};\r\n\r\nlet isNumber = function (num) {\r\n return !isNaN(parseFloat(num)) && isFinite(num);\r\n};\r\n\r\nlet formatNumber = function (num, prec, groupsize, groupsep, decsep) {\r\n let p, i;\r\n num = (prec === false ? parseFloat(num).toString() : num.toFixed(prec)).split('');\r\n p = (p = $.inArray('.', num)) < 0 ? num.length : p;\r\n if (p < num.length) {\r\n num[p] = decsep;\r\n }\r\n for (i = p - groupsize; i > 0; i -= groupsize) {\r\n num.splice(i, 0, groupsep);\r\n }\r\n return num.join('');\r\n};\r\n\r\n\r\nlet RangeMap = createClass({\r\n init: function (map) {\r\n let key, range, rangelist = [];\r\n for (key in map) {\r\n if (map.hasOwnProperty(key) && typeof key === 'string' && key.indexOf(':') > -1) {\r\n range = key.split(':');\r\n range[0] = range[0].length === 0 ? -Infinity : parseFloat(range[0]);\r\n range[1] = range[1].length === 0 ? Infinity : parseFloat(range[1]);\r\n range[2] = map[key];\r\n rangelist.push(range);\r\n }\r\n }\r\n this.map = map;\r\n this.rangelist = rangelist || false;\r\n },\r\n\r\n get: function (value) {\r\n let rangelist = this.rangelist,\r\n i, range, result;\r\n if ((result = this.map[value]) !== undefined) {\r\n return result;\r\n }\r\n if (rangelist) {\r\n for (i = rangelist.length; i--;) {\r\n range = rangelist[i];\r\n if (range[0] <= value && range[1] >= value) {\r\n return range[2];\r\n }\r\n }\r\n }\r\n return undefined;\r\n }\r\n});\r\n\r\n// Convenience function\r\n$.range_map = function(map) {\r\n return new RangeMap(map);\r\n};\r\n\r\nconst luckysheetSparkline = {\r\n defaultOption:{\r\n // Settings common to most/all chart types\r\n common: {\r\n type: 'line',\r\n lineColor: '#2ec7c9',\r\n fillColor: '#CCF3F4',\r\n defaultPixelsPerValue: 3,\r\n width: 'auto',\r\n height: 'auto',\r\n composite: false,\r\n tagValuesAttribute: 'values',\r\n tagOptionsPrefix: 'spark',\r\n enableTagOptions: false,\r\n enableHighlight: true,\r\n highlightLighten: 1.4,\r\n tooltipSkipNull: true,\r\n tooltipPrefix: '',\r\n tooltipSuffix: '',\r\n disableHiddenCheck: false,\r\n numberFormatter: false,\r\n numberDigitGroupCount: 3,\r\n numberDigitGroupSep: ',',\r\n numberDecimalMark: '.',\r\n disableTooltips: true,\r\n disableInteraction: true,\r\n offsetX:0,\r\n offsetY:0\r\n },\r\n // Defaults for line charts\r\n //=LINESPL\r\n line: {\r\n spotColor: 0,\r\n highlightSpotColor: '#5f5',\r\n highlightLineColor: '#f22',\r\n spotRadius: 1.5,\r\n minSpotColor: 0,\r\n maxSpotColor: 0,\r\n lineWidth: 1,\r\n normalRangeMin: undefined,\r\n normalRangeMax: undefined,\r\n normalRangeColor: '#ccc',\r\n drawNormalOnTop: true,\r\n chartRangeMin: undefined,\r\n chartRangeMax: undefined,\r\n chartRangeMinX: undefined,\r\n chartRangeMaxX: undefined,\r\n // tooltipFormat: new SPFormat(' {{prefix}}{{y}}{{suffix}}')\r\n },\r\n // Defaults for bar charts\r\n bar: {\r\n barColor: '#fc5c5c',\r\n negBarColor: '#97b552',\r\n stackedBarColor: [\"#2ec7c9\", \"#fc5c5c\", \"#5ab1ef\", \"#ffb980\", \"#d87a80\", \"#8d98b3\", \"#e5cf0d\", \"#97b552\", \"#95706d\",\"#dc69aa\",\"#07a2a4\",\"#9a7fd1\",\"#588dd5\",\"#f5994e\",\"#c05050\",\"#59678c\",\"#c9ab00\",\"#7eb00a\",\"#6f5553\",\"#c14089\"],\r\n zeroColor: undefined,\r\n nullColor: undefined,\r\n zeroAxis: true,\r\n barWidth: 4,\r\n barSpacing: 1,\r\n chartRangeMax: undefined,\r\n chartRangeMin: undefined,\r\n chartRangeClip: false,\r\n colorMap: undefined,\r\n // tooltipFormat: new SPFormat(' {{prefix}}{{value}}{{suffix}}')\r\n },\r\n column: {\r\n barColor: '#fc5c5c',\r\n negBarColor: '#97b552',\r\n stackedBarColor: [\"#2ec7c9\", \"#fc5c5c\", \"#5ab1ef\", \"#ffb980\", \"#d87a80\", \"#8d98b3\", \"#e5cf0d\", \"#97b552\", \"#95706d\",\"#dc69aa\",\"#07a2a4\",\"#9a7fd1\",\"#588dd5\",\"#f5994e\",\"#c05050\",\"#59678c\",\"#c9ab00\",\"#7eb00a\",\"#6f5553\",\"#c14089\"],\r\n zeroColor: undefined,\r\n nullColor: undefined,\r\n zeroAxis: true,\r\n barWidth: 4,\r\n barSpacing: 1,\r\n chartRangeMax: undefined,\r\n chartRangeMin: undefined,\r\n chartRangeClip: false,\r\n colorMap: undefined,\r\n // tooltipFormat: new SPFormat(' {{prefix}}{{value}}{{suffix}}')\r\n },\r\n // Defaults for tristate charts\r\n tristate: {\r\n barWidth: 4,\r\n barSpacing: 1,\r\n posBarColor: '#fc5c5c',\r\n negBarColor: '#97b552',\r\n zeroBarColor: '#999',\r\n colorMap: {},\r\n // tooltipFormat: new SPFormat(' {{value:map}}'),\r\n // tooltipValueLookups: { map: { '-1': 'Loss', '0': 'Draw', '1': 'Win' } }\r\n },\r\n // Defaults for discrete charts\r\n discrete: {\r\n lineHeight: 'auto',\r\n thresholdColor: \"#fc5c5c\",\r\n thresholdValue: 0,\r\n chartRangeMax: undefined,\r\n chartRangeMin: undefined,\r\n chartRangeClip: false,\r\n // tooltipFormat: new SPFormat('{{prefix}}{{value}}{{suffix}}')\r\n },\r\n // Defaults for bullet charts\r\n bullet: {\r\n targetColor: '#f33',\r\n targetWidth: 3, // width of the target bar in pixels\r\n performanceColor: '#33f',\r\n rangeColors: ['#d3dafe', '#a8b6ff', '#7f94ff','#6D87FF','#5876FF','#4465FF','#2F54FF','#1A43FF','#0532FF'],\r\n base: undefined, // set this to a number to change the base start number\r\n // tooltipFormat: new SPFormat('{{fieldkey:fields}} - {{value}}'),\r\n // tooltipValueLookups: { fields: {r: 'Range', p: 'Performance', t: 'Target'} }\r\n },\r\n // Defaults for pie charts\r\n pie: {\r\n offset: 0,\r\n sliceColors: [\"#2ec7c9\", \"#fc5c5c\", \"#5ab1ef\", \"#ffb980\", \"#d87a80\", \"#8d98b3\", \"#e5cf0d\", \"#97b552\", \"#95706d\",\"#dc69aa\",\"#07a2a4\",\"#9a7fd1\",\"#588dd5\",\"#f5994e\",\"#c05050\",\"#59678c\",\"#c9ab00\",\"#7eb00a\",\"#6f5553\",\"#c14089\"],\r\n borderWidth: 0,\r\n borderColor: '#000',\r\n // tooltipFormat: new SPFormat(' {{value}} ({{percent.1}}%)')\r\n },\r\n // Defaults for box plots\r\n box: {\r\n raw: false,\r\n boxLineColor: '#000',\r\n boxFillColor: '#cdf',\r\n whiskerColor: '#000',\r\n outlierLineColor: '#5E5E5E',\r\n outlierFillColor: '#fff',\r\n medianColor: '#f00',\r\n showOutliers: true,\r\n outlierIQR: 1.5,\r\n spotRadius: 1.5,\r\n target: undefined,\r\n targetColor: '#4a2',\r\n chartRangeMax: undefined,\r\n chartRangeMin: undefined,\r\n // tooltipFormat: new SPFormat('{{field:fields}}: {{value}}'),\r\n // tooltipFormatFieldlistKey: 'field',\r\n // tooltipValueLookups: { fields: { lq: 'Lower Quartile', med: 'Median',\r\n // uq: 'Upper Quartile', lo: 'Left Outlier', ro: 'Right Outlier',\r\n // lw: 'Left Whisker', rw: 'Right Whisker'} }\r\n }\r\n },\r\n line:{\r\n type: 'line',\r\n init: function (el, values, options, width, height) {\r\n //line._super.init.call(this, el, values, options, width, height);\r\n this.vertices = [];\r\n this.regionMap = [];\r\n this.xvalues = [];\r\n this.yvalues = [];\r\n this.yminmax = [];\r\n this.hightlightSpotId = null;\r\n this.lastShapeId = null;\r\n //this.initTarget();\r\n },\r\n getRegion: function (el, x, y) {\r\n let i,\r\n regionMap = this.regionMap; // maps regions to value positions\r\n for (i = regionMap.length; i--;) {\r\n if (regionMap[i] !== null && x >= regionMap[i][0] && x <= regionMap[i][1]) {\r\n return regionMap[i][2];\r\n }\r\n }\r\n return undefined;\r\n },\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion;\r\n return {\r\n isNull: this.yvalues[currentRegion] === null,\r\n x: this.xvalues[currentRegion],\r\n y: this.yvalues[currentRegion],\r\n color: this.options.get('lineColor'),\r\n fillColor: this.options.get('fillColor'),\r\n offset: currentRegion\r\n };\r\n },\r\n renderHighlight: function () {\r\n let currentRegion = this.currentRegion,\r\n target = this.target,\r\n vertex = this.vertices[currentRegion],\r\n options = this.options,\r\n spotRadius = options.get('spotRadius'),\r\n highlightSpotColor = options.get('highlightSpotColor'),\r\n highlightLineColor = options.get('highlightLineColor'),\r\n highlightSpot, highlightLine;\r\n\r\n if (!vertex) {\r\n return;\r\n }\r\n if (spotRadius && highlightSpotColor) {\r\n highlightSpot = target.drawCircle(vertex[0], vertex[1],\r\n spotRadius, undefined, highlightSpotColor);\r\n this.highlightSpotId = highlightSpot.id;\r\n target.insertAfterShape(this.lastShapeId, highlightSpot);\r\n }\r\n if (highlightLineColor) {\r\n highlightLine = target.drawLine(vertex[0], this.canvasTop, vertex[0],\r\n this.canvasTop + this.canvasHeight, highlightLineColor);\r\n this.highlightLineId = highlightLine.id;\r\n target.insertAfterShape(this.lastShapeId, highlightLine);\r\n }\r\n },\r\n removeHighlight: function () {\r\n let target = this.target;\r\n if (this.highlightSpotId) {\r\n target.removeShapeId(this.highlightSpotId);\r\n this.highlightSpotId = null;\r\n }\r\n if (this.highlightLineId) {\r\n target.removeShapeId(this.highlightLineId);\r\n this.highlightLineId = null;\r\n }\r\n },\r\n scanValues: function () {\r\n let values = this.values,\r\n valcount = values.length,\r\n xvalues = this.xvalues,\r\n yvalues = this.yvalues,\r\n yminmax = this.yminmax,\r\n i, val, isStr, isArray, sp;\r\n for (i = 0; i < valcount; i++) {\r\n val = values[i];\r\n isStr = typeof(values[i]) === 'string';\r\n isArray = typeof(values[i]) === 'object' && values[i] instanceof Array;\r\n sp = isStr && values[i].split(':');\r\n if (isStr && sp.length === 2) { // x:y\r\n xvalues.push(Number(sp[0]));\r\n yvalues.push(Number(sp[1]));\r\n yminmax.push(Number(sp[1]));\r\n } else if (isArray) {\r\n xvalues.push(val[0]);\r\n yvalues.push(val[1]);\r\n yminmax.push(val[1]);\r\n } else {\r\n xvalues.push(i);\r\n if (values[i] === null || values[i] === 'null') {\r\n yvalues.push(null);\r\n } else {\r\n yvalues.push(Number(val));\r\n yminmax.push(Number(val));\r\n }\r\n }\r\n }\r\n if (this.options.get('xvalues')) {\r\n xvalues = this.options.get('xvalues');\r\n }\r\n\r\n this.maxy = this.maxyorg = Math.max.apply(Math, yminmax);\r\n this.miny = this.minyorg = Math.min.apply(Math, yminmax);\r\n\r\n this.maxx = Math.max.apply(Math, xvalues);\r\n this.minx = Math.min.apply(Math, xvalues);\r\n\r\n this.xvalues = xvalues;\r\n this.yvalues = yvalues;\r\n this.yminmax = yminmax;\r\n\r\n },\r\n processRangeOptions: function () {\r\n let options = this.options,\r\n normalRangeMin = options.get('normalRangeMin'),\r\n normalRangeMax = options.get('normalRangeMax');\r\n\r\n if (normalRangeMin !== undefined) {\r\n if (normalRangeMin < this.miny) {\r\n this.miny = normalRangeMin;\r\n }\r\n if (normalRangeMax > this.maxy) {\r\n this.maxy = normalRangeMax;\r\n }\r\n }\r\n if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < this.miny)) {\r\n this.miny = options.get('chartRangeMin');\r\n }\r\n if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > this.maxy)) {\r\n this.maxy = options.get('chartRangeMax');\r\n }\r\n if (options.get('chartRangeMinX') !== undefined && (options.get('chartRangeClipX') || options.get('chartRangeMinX') < this.minx)) {\r\n this.minx = options.get('chartRangeMinX');\r\n }\r\n if (options.get('chartRangeMaxX') !== undefined && (options.get('chartRangeClipX') || options.get('chartRangeMaxX') > this.maxx)) {\r\n this.maxx = options.get('chartRangeMaxX');\r\n }\r\n\r\n },\r\n drawNormalRange: function (canvasLeft, canvasTop, canvasHeight, canvasWidth, rangey) {\r\n let normalRangeMin = this.options.get('normalRangeMin'),\r\n normalRangeMax = this.options.get('normalRangeMax'),\r\n ytop = canvasTop + Math.round(canvasHeight - (canvasHeight * ((normalRangeMax - this.miny) / rangey))),\r\n height = Math.round((canvasHeight * (normalRangeMax - normalRangeMin)) / rangey);\r\n //(x1, y1, x2, y2, lineColor, lineWidth)\r\n if(height==0 && normalRangeMin==normalRangeMax){\r\n height=1;\r\n }\r\n this.target.drawRect(canvasLeft, ytop, canvasWidth, height, undefined, this.options.get('normalRangeColor')).append();\r\n },\r\n render: function (el,userValues) {\r\n this.vertices = [];\r\n this.regionMap = [];\r\n this.xvalues = [];\r\n this.yvalues = [];\r\n this.yminmax = [];\r\n this.hightlightSpotId = null;\r\n this.lastShapeId = null;\r\n\r\n this.values = userValues;\r\n\r\n let options = this.options,\r\n target = this.target,\r\n\r\n canvasWidth = el.mergedOptions.width,\r\n canvasHeight = el.mergedOptions.height,\r\n\r\n vertices = this.vertices,\r\n spotRadius = options.get('spotRadius'),\r\n regionMap = this.regionMap,\r\n rangex, rangey, yvallast,\r\n canvasTop, canvasLeft,\r\n vertex, path, paths, x, y, xnext, xpos, xposnext,\r\n last, next, yvalcount, lineShapes, fillShapes, plen,\r\n valueSpots, hlSpotsEnabled, color, xvalues, yvalues, i;\r\n\r\n // if (!line._super.render.call(this)) {\r\n // return;\r\n // }\r\n\r\n this.scanValues();\r\n this.processRangeOptions();\r\n\r\n xvalues = this.xvalues;\r\n yvalues = this.yvalues;\r\n\r\n if (!this.yminmax.length || this.yvalues.length < 2) {\r\n // empty or all null valuess\r\n return;\r\n }\r\n\r\n canvasTop = canvasLeft = 0;\r\n\r\n rangex = this.maxx - this.minx === 0 ? 1 : this.maxx - this.minx;\r\n rangey = this.maxy - this.miny === 0 ? 1 : this.maxy - this.miny;\r\n yvallast = this.yvalues.length - 1;\r\n\r\n if (spotRadius && (canvasWidth < (spotRadius * 4) || canvasHeight < (spotRadius * 4))) {\r\n spotRadius = 0;\r\n }\r\n if (spotRadius) {\r\n // adjust the canvas size as required so that spots will fit\r\n hlSpotsEnabled = options.get('highlightSpotColor') && !options.get('disableInteraction');\r\n if (hlSpotsEnabled || options.get('minSpotColor') || (options.get('spotColor') && yvalues[yvallast] === this.miny)) {\r\n canvasHeight -= Math.ceil(spotRadius);\r\n }\r\n if (hlSpotsEnabled || options.get('maxSpotColor') || (options.get('spotColor') && yvalues[yvallast] === this.maxy)) {\r\n canvasHeight -= Math.ceil(spotRadius);\r\n canvasTop += Math.ceil(spotRadius);\r\n }\r\n if (hlSpotsEnabled ||\r\n ((options.get('minSpotColor') || options.get('maxSpotColor')) && (yvalues[0] === this.miny || yvalues[0] === this.maxy))) {\r\n canvasLeft += Math.ceil(spotRadius);\r\n canvasWidth -= Math.ceil(spotRadius);\r\n }\r\n if (hlSpotsEnabled || options.get('spotColor') ||\r\n (options.get('minSpotColor') || options.get('maxSpotColor') &&\r\n (yvalues[yvallast] === this.miny || yvalues[yvallast] === this.maxy))) {\r\n canvasWidth -= Math.ceil(spotRadius);\r\n }\r\n }\r\n\r\n\r\n canvasHeight--;\r\n\r\n if (options.get('normalRangeMin') !== undefined && !options.get('drawNormalOnTop')) {\r\n this.drawNormalRange(canvasLeft, canvasTop, canvasHeight, canvasWidth, rangey);\r\n }\r\n\r\n path = [];\r\n paths = [path];\r\n last = next = null;\r\n yvalcount = yvalues.length;\r\n for (i = 0; i < yvalcount; i++) {\r\n x = xvalues[i];\r\n xnext = xvalues[i + 1];\r\n y = yvalues[i];\r\n xpos = canvasLeft + Math.round((x - this.minx) * (canvasWidth / rangex));\r\n xposnext = i < yvalcount - 1 ? canvasLeft + Math.round((xnext - this.minx) * (canvasWidth / rangex)) : canvasWidth;\r\n next = xpos + ((xposnext - xpos) / 2);\r\n regionMap[i] = [last || 0, next, i];\r\n last = next;\r\n if (y === null) {\r\n if (i) {\r\n if (yvalues[i - 1] !== null) {\r\n path = [];\r\n paths.push(path);\r\n }\r\n vertices.push(null);\r\n }\r\n } else {\r\n if (y < this.miny) {\r\n y = this.miny;\r\n }\r\n if (y > this.maxy) {\r\n y = this.maxy;\r\n }\r\n if (!path.length) {\r\n // previous value was null\r\n path.push([xpos, canvasTop + canvasHeight]);\r\n }\r\n vertex = [xpos, canvasTop + Math.round(canvasHeight - (canvasHeight * ((y - this.miny) / rangey)))];\r\n path.push(vertex);\r\n vertices.push(vertex);\r\n }\r\n }\r\n\r\n lineShapes = [];\r\n fillShapes = [];\r\n plen = paths.length;\r\n for (i = 0; i < plen; i++) {\r\n path = paths[i];\r\n if (path.length) {\r\n if (options.get('fillColor')) {\r\n path.push([path[path.length - 1][0], (canvasTop + canvasHeight)]);\r\n fillShapes.push(path.slice(0));\r\n path.pop();\r\n }\r\n // if there's only a single point in this path, then we want to display it\r\n // as a vertical line which means we keep path[0] as is\r\n if (path.length > 2) {\r\n // else we want the first value\r\n path[0] = [path[0][0], path[1][1]];\r\n }\r\n lineShapes.push(path);\r\n }\r\n }\r\n\r\n // draw the fill first, then optionally the normal range, then the line on top of that\r\n plen = fillShapes.length;\r\n for (i = 0; i < plen; i++) {\r\n target.drawShape(fillShapes[i],\r\n options.get('fillColor'), options.get('fillColor')).append();\r\n }\r\n\r\n\r\n\r\n plen = lineShapes.length;\r\n for (i = 0; i < plen; i++) {\r\n target.drawShape(lineShapes[i], options.get('lineColor'), undefined,\r\n options.get('lineWidth')).append();\r\n }\r\n\r\n if (options.get('normalRangeMin') !== undefined && options.get('drawNormalOnTop')) {\r\n this.drawNormalRange(canvasLeft, canvasTop, canvasHeight, canvasWidth, rangey);\r\n }\r\n \r\n if (spotRadius && options.get('valueSpots')) {\r\n valueSpots = options.get('valueSpots');\r\n if (valueSpots.get === undefined) {\r\n valueSpots = new RangeMap(valueSpots);\r\n }\r\n for (i = 0; i < yvalcount; i++) {\r\n color = valueSpots.get(yvalues[i]);\r\n if (color) {\r\n target.drawCircle(canvasLeft + Math.round((xvalues[i] - this.minx) * (canvasWidth / rangex)),\r\n canvasTop + Math.round(canvasHeight - (canvasHeight * ((yvalues[i] - this.miny) / rangey))),\r\n spotRadius, undefined,\r\n color).append();\r\n }\r\n }\r\n\r\n }\r\n if (spotRadius && options.get('spotColor') && yvalues[yvallast] !== null) {\r\n target.drawCircle(canvasLeft + Math.round((xvalues[xvalues.length - 1] - this.minx) * (canvasWidth / rangex)),\r\n canvasTop + Math.round(canvasHeight - (canvasHeight * ((yvalues[yvallast] - this.miny) / rangey))),\r\n spotRadius, undefined,\r\n options.get('spotColor')).append();\r\n }\r\n if (this.maxy !== this.minyorg) {\r\n if (spotRadius && options.get('minSpotColor')) {\r\n x = xvalues[$.inArray(this.minyorg, yvalues)];\r\n target.drawCircle(canvasLeft + Math.round((x - this.minx) * (canvasWidth / rangex)),\r\n canvasTop + Math.round(canvasHeight - (canvasHeight * ((this.minyorg - this.miny) / rangey))),\r\n spotRadius, undefined,\r\n options.get('minSpotColor')).append();\r\n }\r\n if (spotRadius && options.get('maxSpotColor')) {\r\n x = xvalues[$.inArray(this.maxyorg, yvalues)];\r\n target.drawCircle(canvasLeft + Math.round((x - this.minx) * (canvasWidth / rangex)),\r\n canvasTop + Math.round(canvasHeight - (canvasHeight * ((this.maxyorg - this.miny) / rangey))),\r\n spotRadius, undefined,\r\n options.get('maxSpotColor')).append();\r\n }\r\n }\r\n\r\n // this.lastShapeId = target.getLastShapeId();\r\n // this.canvasTop = canvasTop;\r\n // target.render();\r\n\r\n }\r\n },\r\n bar:{\r\n type: 'bar',\r\n\r\n init: function (el, values) {\r\n let options = this.options;\r\n let width = el.mergedOptions.height;\r\n let height = el.mergedOptions.width;\r\n\r\n this.canvasWidth = el.mergedOptions.height;\r\n this.canvasHeight = el.mergedOptions.width;\r\n\r\n let barWidth = parseInt(options.get('barWidth'), 10),\r\n barSpacing = parseInt(options.get('barSpacing'), 10),\r\n chartRangeMin = options.get('chartRangeMin'),\r\n chartRangeMax = options.get('chartRangeMax'),\r\n chartRangeClip = options.get('chartRangeClip'),\r\n stackMin = Infinity,\r\n stackMax = -Infinity,\r\n isStackString, groupMin, groupMax, stackRanges,\r\n numValues, i, vlen, range, zeroAxis, xaxisOffset, min, max, clipMin, clipMax,\r\n stacked, vlist, j, slen, svals, val, yoffset, yMaxCalc, canvasHeightEf;\r\n //bar._super.init.call(this, el, values, options, width, height);\r\n\r\n this.values = values;\r\n\r\n // scan values to determine whether to stack bars\r\n for (i = 0, vlen = values.length; i < vlen; i++) {\r\n val = values[i];\r\n isStackString = typeof(val) === 'string' && val.indexOf(':') > -1;\r\n if (isStackString || $.isArray(val)) {\r\n stacked = true;\r\n if (isStackString) {\r\n val = values[i] = normalizeValues(val.split(':'));\r\n }\r\n val = remove(val, null); // min/max will treat null as zero\r\n groupMin = Math.min.apply(Math, val);\r\n groupMax = Math.max.apply(Math, val);\r\n if (groupMin < stackMin) {\r\n stackMin = groupMin;\r\n }\r\n if (groupMax > stackMax) {\r\n stackMax = groupMax;\r\n }\r\n }\r\n }\r\n\r\n this.stacked = stacked;\r\n this.regionShapes = {};\r\n this.barWidth = Math.floor(width/values.length)-barSpacing;\r\n this.barSpacing = barSpacing;\r\n this.totalBarWidth = this.barWidth + barSpacing;\r\n //this.width = width = (values.length * barWidth) + ((values.length - 1) * barSpacing);\r\n this.width = width;\r\n //this.initTarget();\r\n\r\n if (chartRangeClip) {\r\n clipMin = chartRangeMin === undefined ? -Infinity : chartRangeMin;\r\n clipMax = chartRangeMax === undefined ? Infinity : chartRangeMax;\r\n }\r\n\r\n numValues = [];\r\n stackRanges = stacked ? [] : numValues;\r\n let stackTotals = [];\r\n let stackRangesNeg = [];\r\n for (i = 0, vlen = values.length; i < vlen; i++) {\r\n if (stacked) {\r\n vlist = values[i];\r\n values[i] = svals = [];\r\n stackTotals[i] = 0;\r\n stackRanges[i] = stackRangesNeg[i] = 0;\r\n for (j = 0, slen = vlist.length; j < slen; j++) {\r\n val = svals[j] = chartRangeClip ? clipval(vlist[j], clipMin, clipMax) : vlist[j];\r\n if (val !== null) {\r\n if (val > 0) {\r\n stackTotals[i] += val;\r\n }\r\n if (stackMin < 0 && stackMax > 0) {\r\n if (val < 0) {\r\n stackRangesNeg[i] += Math.abs(val);\r\n } else {\r\n stackRanges[i] += val;\r\n }\r\n } else {\r\n stackRanges[i] += Math.abs(val);\r\n // stackRanges[i] += Math.abs(val - (val < 0 ? stackMax : stackMin));\r\n }\r\n numValues.push(val);\r\n }\r\n }\r\n } else {\r\n val = chartRangeClip ? clipval(values[i], clipMin, clipMax) : values[i];\r\n val = values[i] = normalizeValue(val);\r\n if (val !== null) {\r\n numValues.push(val);\r\n }\r\n }\r\n }\r\n this.max = max = Math.max.apply(Math, numValues);\r\n this.min = min = Math.min.apply(Math, numValues);\r\n this.stackMax = stackMax = stacked ? Math.max.apply(Math, stackTotals) : max;\r\n this.stackMin = stackMin = stacked ? Math.min.apply(Math, numValues) : min;\r\n\r\n if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < min)) {\r\n min = options.get('chartRangeMin');\r\n }\r\n if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > max)) {\r\n max = options.get('chartRangeMax');\r\n }\r\n\r\n this.zeroAxis = zeroAxis = options.get('zeroAxis', true);\r\n if (min <= 0 && max >= 0 && zeroAxis) {\r\n xaxisOffset = 0;\r\n } else if (zeroAxis == false) {\r\n xaxisOffset = min;\r\n } else if (min > 0) {\r\n xaxisOffset = 0;\r\n } else {\r\n xaxisOffset = max;\r\n }\r\n this.xaxisOffset = xaxisOffset;\r\n\r\n range = stacked ? (Math.max.apply(Math, stackRanges) + Math.max.apply(Math, stackRangesNeg)) : max - xaxisOffset;\r\n\r\n // as we plot zero/min values a single pixel line, we add a pixel to all other\r\n // values - Reduce the effective canvas size to suit\r\n this.canvasHeightEf = (zeroAxis && min < 0) ? this.canvasHeight - 2 : this.canvasHeight - 1;\r\n this.isNeg = false;\r\n if (min < xaxisOffset) {\r\n // yMaxCalc = (stacked && max >= 0) ? stackMax : max;\r\n // yoffset = (yMaxCalc - xaxisOffset) / range * this.canvasHeight;\r\n yoffset = Math.floor(this.canvasHeight/2);\r\n this.isNeg = true;\r\n if (yoffset !== Math.ceil(yoffset)) {\r\n this.canvasHeightEf -= 2;\r\n yoffset = Math.ceil(yoffset);\r\n }\r\n } else {\r\n yoffset = 0;\r\n }\r\n this.yoffset = yoffset;\r\n\r\n if ($.isArray(options.get('colorMap'))) {\r\n this.colorMapByIndex = options.get('colorMap');\r\n this.colorMapByValue = null;\r\n } else {\r\n this.colorMapByIndex = null;\r\n this.colorMapByValue = options.get('colorMap');\r\n if (this.colorMapByValue && this.colorMapByValue.get === undefined) {\r\n this.colorMapByValue = new RangeMap(this.colorMapByValue);\r\n }\r\n }\r\n\r\n this.range = range;\r\n },\r\n\r\n getRegion: function (el, x, y) {\r\n let result = Math.floor(x / this.totalBarWidth);\r\n return (result < 0 || result >= this.values.length) ? undefined : result;\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion,\r\n values = ensureArray(this.values[currentRegion]),\r\n result = [],\r\n value, i;\r\n for (i = values.length; i--;) {\r\n value = values[i];\r\n result.push({\r\n isNull: value === null,\r\n value: value,\r\n color: this.calcColor(i, value, currentRegion),\r\n offset: currentRegion\r\n });\r\n }\r\n return result;\r\n },\r\n\r\n calcColor: function (stacknum, value, valuenum) {\r\n let colorMapByIndex = this.colorMapByIndex,\r\n colorMapByValue = this.colorMapByValue,\r\n options = this.options,\r\n color, newColor;\r\n if (this.stacked) {\r\n color = options.get('stackedBarColor');\r\n } else {\r\n color = (value < 0) ? options.get('negBarColor') : options.get('barColor');\r\n }\r\n if (value === 0 && options.get('zeroColor') !== undefined) {\r\n color = options.get('zeroColor');\r\n }\r\n if (colorMapByValue && (newColor = colorMapByValue.get(value))) {\r\n color = newColor;\r\n } else if (colorMapByIndex && colorMapByIndex.length > valuenum) {\r\n color = colorMapByIndex[valuenum];\r\n }\r\n return $.isArray(color) ? color[stacknum % color.length] : color;\r\n },\r\n\r\n /**\r\n * Render bar(s) for a region\r\n */\r\n renderRegion: function (valuenum, highlight) {\r\n let vals = this.values[valuenum],\r\n options = this.options,\r\n xaxisOffset = this.xaxisOffset,\r\n result = [],\r\n range = this.range,\r\n stacked = this.stacked,\r\n target = this.target,\r\n x = valuenum * this.totalBarWidth,\r\n canvasHeightEf = this.canvasHeightEf,\r\n yoffset = this.yoffset,\r\n y, height, color, isNull, yoffsetNeg, i, valcount, val, minPlotted, allMin;\r\n\r\n vals = $.isArray(vals) ? vals : [vals];\r\n valcount = vals.length;\r\n val = vals[0];\r\n isNull = all(null, vals);\r\n allMin = all(xaxisOffset, vals, true);\r\n\r\n if (isNull) {\r\n if (options.get('nullColor')) {\r\n color = highlight ? options.get('nullColor') : this.calcHighlightColor(options.get('nullColor'), options);\r\n y = (yoffset > 0) ? yoffset - 1 : yoffset;\r\n return target.drawRect(y, x, 0, this.barWidth - 1, color, color);\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n yoffsetNeg = yoffset;\r\n if(this.isNeg){\r\n canvasHeightEf = Math.floor(canvasHeightEf/2);\r\n }\r\n for (i = 0; i < valcount; i++) {\r\n val = vals[i];\r\n\r\n if (stacked && val === xaxisOffset) {\r\n if (!allMin || minPlotted) {\r\n continue;\r\n }\r\n minPlotted = true;\r\n }\r\n\r\n if (range > 0) {\r\n height = Math.floor(canvasHeightEf * ((Math.abs(val - xaxisOffset) / range)));\r\n } else {\r\n height = canvasHeightEf;\r\n }\r\n\r\n if (val < xaxisOffset || (val === xaxisOffset && yoffset === 0)) {\r\n y = yoffsetNeg - height;\r\n yoffsetNeg += height;\r\n } else {\r\n if(stacked){\r\n y = yoffset;\r\n yoffset += height;\r\n }\r\n else{\r\n y = yoffset;\r\n yoffset -= height;\r\n }\r\n \r\n }\r\n color = this.calcColor(i, val, valuenum);\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, options);\r\n }\r\n result.push(target.drawRect(y, x, height - 1, this.barWidth - 1,color, color));\r\n }\r\n if (result.length === 1) {\r\n return result[0];\r\n }\r\n return result;\r\n }\r\n },\r\n column:{\r\n type: 'column',\r\n\r\n init: function (el, values) {\r\n let options = this.options;\r\n let width = el.mergedOptions.width;\r\n let height = el.mergedOptions.height;\r\n\r\n this.canvasWidth = el.mergedOptions.width;\r\n this.canvasHeight = el.mergedOptions.height;\r\n\r\n let barWidth = parseInt(options.get('barWidth'), 10),\r\n barSpacing = parseInt(options.get('barSpacing'), 10),\r\n chartRangeMin = options.get('chartRangeMin'),\r\n chartRangeMax = options.get('chartRangeMax'),\r\n chartRangeClip = options.get('chartRangeClip'),\r\n stackMin = Infinity,\r\n stackMax = -Infinity,\r\n isStackString, groupMin, groupMax, stackRanges,\r\n numValues, i, vlen, range, zeroAxis, xaxisOffset, min, max, clipMin, clipMax,\r\n stacked, vlist, j, slen, svals, val, yoffset, yMaxCalc, canvasHeightEf;\r\n //bar._super.init.call(this, el, values, options, width, height);\r\n\r\n this.values = values;\r\n\r\n // scan values to determine whether to stack bars\r\n for (i = 0, vlen = values.length; i < vlen; i++) {\r\n val = values[i];\r\n isStackString = typeof(val) === 'string' && val.indexOf(':') > -1;\r\n if (isStackString || $.isArray(val)) {\r\n stacked = true;\r\n if (isStackString) {\r\n val = values[i] = normalizeValues(val.split(':'));\r\n }\r\n val = remove(val, null); // min/max will treat null as zero\r\n groupMin = Math.min.apply(Math, val);\r\n groupMax = Math.max.apply(Math, val);\r\n if (groupMin < stackMin) {\r\n stackMin = groupMin;\r\n }\r\n if (groupMax > stackMax) {\r\n stackMax = groupMax;\r\n }\r\n }\r\n }\r\n\r\n this.stacked = stacked;\r\n this.regionShapes = {};\r\n this.barWidth = Math.floor(width/values.length)-barSpacing;\r\n this.barSpacing = barSpacing;\r\n this.totalBarWidth = this.barWidth + barSpacing;\r\n //this.width = width = (values.length * barWidth) + ((values.length - 1) * barSpacing);\r\n this.width = width;\r\n //this.initTarget();\r\n\r\n if (chartRangeClip) {\r\n clipMin = chartRangeMin === undefined ? -Infinity : chartRangeMin;\r\n clipMax = chartRangeMax === undefined ? Infinity : chartRangeMax;\r\n }\r\n\r\n numValues = [];\r\n stackRanges = stacked ? [] : numValues;\r\n let stackTotals = [];\r\n let stackRangesNeg = [];\r\n for (i = 0, vlen = values.length; i < vlen; i++) {\r\n if (stacked) {\r\n vlist = values[i];\r\n values[i] = svals = [];\r\n stackTotals[i] = 0;\r\n stackRanges[i] = stackRangesNeg[i] = 0;\r\n for (j = 0, slen = vlist.length; j < slen; j++) {\r\n val = svals[j] = chartRangeClip ? clipval(vlist[j], clipMin, clipMax) : vlist[j];\r\n if (val !== null) {\r\n if (val > 0) {\r\n stackTotals[i] += val;\r\n }\r\n if (stackMin < 0 && stackMax > 0) {\r\n if (val < 0) {\r\n stackRangesNeg[i] += Math.abs(val);\r\n } else {\r\n stackRanges[i] += val;\r\n }\r\n } else {\r\n stackRanges[i] += Math.abs(val);\r\n // stackRanges[i] += Math.abs(val - (val < 0 ? stackMax : stackMin));\r\n }\r\n numValues.push(val);\r\n }\r\n }\r\n } else {\r\n val = chartRangeClip ? clipval(values[i], clipMin, clipMax) : values[i];\r\n val = values[i] = normalizeValue(val);\r\n if (val !== null) {\r\n numValues.push(val);\r\n }\r\n }\r\n }\r\n this.max = max = Math.max.apply(Math, numValues);\r\n this.min = min = Math.min.apply(Math, numValues);\r\n this.stackMax = stackMax = stacked ? Math.max.apply(Math, stackTotals) : max;\r\n this.stackMin = stackMin = stacked ? Math.min.apply(Math, numValues) : min;\r\n\r\n if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < min)) {\r\n min = options.get('chartRangeMin');\r\n }\r\n if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > max)) {\r\n max = options.get('chartRangeMax');\r\n }\r\n\r\n this.zeroAxis = zeroAxis = options.get('zeroAxis', true);\r\n if (min <= 0 && max >= 0 && zeroAxis) {\r\n xaxisOffset = 0;\r\n } else if (zeroAxis == false) {\r\n xaxisOffset = min;\r\n } else if (min > 0) {\r\n xaxisOffset = 0;\r\n } else {\r\n xaxisOffset = max;\r\n }\r\n this.xaxisOffset = xaxisOffset;\r\n\r\n range = stacked ? (Math.max.apply(Math, stackRanges) + Math.max.apply(Math, stackRangesNeg)) : max - xaxisOffset;\r\n\r\n // as we plot zero/min values a single pixel line, we add a pixel to all other\r\n // values - Reduce the effective canvas size to suit\r\n this.canvasHeightEf = (zeroAxis && min < 0) ? this.canvasHeight - 2 : this.canvasHeight - 1;\r\n this.isNeg = false;\r\n if (min < xaxisOffset) {\r\n // yMaxCalc = (stacked && max >= 0) ? stackMax : max;\r\n // yoffset = (yMaxCalc - xaxisOffset) / range * this.canvasHeight;\r\n yoffset = Math.floor(this.canvasHeight/2);\r\n this.isNeg = true;\r\n if (yoffset !== Math.ceil(yoffset)) {\r\n this.canvasHeightEf -= 2;\r\n yoffset = Math.ceil(yoffset);\r\n }\r\n } else {\r\n yoffset = this.canvasHeight;\r\n }\r\n this.yoffset = yoffset;\r\n\r\n if ($.isArray(options.get('colorMap'))) {\r\n this.colorMapByIndex = options.get('colorMap');\r\n this.colorMapByValue = null;\r\n } else {\r\n this.colorMapByIndex = null;\r\n this.colorMapByValue = options.get('colorMap');\r\n if (this.colorMapByValue && this.colorMapByValue.get === undefined) {\r\n this.colorMapByValue = new RangeMap(this.colorMapByValue);\r\n }\r\n }\r\n\r\n this.range = range;\r\n },\r\n\r\n getRegion: function (el, x, y) {\r\n let result = Math.floor(x / this.totalBarWidth);\r\n return (result < 0 || result >= this.values.length) ? undefined : result;\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion,\r\n values = ensureArray(this.values[currentRegion]),\r\n result = [],\r\n value, i;\r\n for (i = values.length; i--;) {\r\n value = values[i];\r\n result.push({\r\n isNull: value === null,\r\n value: value,\r\n color: this.calcColor(i, value, currentRegion),\r\n offset: currentRegion\r\n });\r\n }\r\n return result;\r\n },\r\n\r\n calcColor: function (stacknum, value, valuenum) {\r\n let colorMapByIndex = this.colorMapByIndex,\r\n colorMapByValue = this.colorMapByValue,\r\n options = this.options,\r\n color, newColor;\r\n if (this.stacked) {\r\n color = options.get('stackedBarColor');\r\n } else {\r\n color = (value < 0) ? options.get('negBarColor') : options.get('barColor');\r\n }\r\n if (value === 0 && options.get('zeroColor') !== undefined) {\r\n color = options.get('zeroColor');\r\n }\r\n if (colorMapByValue && (newColor = colorMapByValue.get(value))) {\r\n color = newColor;\r\n } else if (colorMapByIndex && colorMapByIndex.length > valuenum) {\r\n color = colorMapByIndex[valuenum];\r\n }\r\n return $.isArray(color) ? color[stacknum % color.length] : color;\r\n },\r\n\r\n /**\r\n * Render bar(s) for a region\r\n */\r\n renderRegion: function (valuenum, highlight) {\r\n let vals = this.values[valuenum],\r\n options = this.options,\r\n xaxisOffset = this.xaxisOffset,\r\n result = [],\r\n range = this.range,\r\n stacked = this.stacked,\r\n target = this.target,\r\n x = valuenum * this.totalBarWidth,\r\n canvasHeightEf = this.canvasHeightEf,\r\n yoffset = this.yoffset,\r\n y, height, color, isNull, yoffsetNeg, i, valcount, val, minPlotted, allMin;\r\n\r\n vals = $.isArray(vals) ? vals : [vals];\r\n valcount = vals.length;\r\n val = vals[0];\r\n isNull = all(null, vals);\r\n allMin = all(xaxisOffset, vals, true);\r\n\r\n if (isNull) {\r\n if (options.get('nullColor')) {\r\n color = highlight ? options.get('nullColor') : this.calcHighlightColor(options.get('nullColor'), options);\r\n y = (yoffset > 0) ? yoffset - 1 : yoffset;\r\n return target.drawRect(x, y, this.barWidth - 1, 0, color, color);\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n yoffsetNeg = yoffset;\r\n if(this.isNeg){\r\n canvasHeightEf = Math.floor(canvasHeightEf/2);\r\n }\r\n for (i = 0; i < valcount; i++) {\r\n val = vals[i];\r\n\r\n if (stacked && val === xaxisOffset) {\r\n if (!allMin || minPlotted) {\r\n continue;\r\n }\r\n minPlotted = true;\r\n }\r\n\r\n if (range > 0) {\r\n height = Math.floor(canvasHeightEf * ((Math.abs(val - xaxisOffset) / range)));\r\n } else {\r\n height = canvasHeightEf;\r\n }\r\n\r\n if (val < xaxisOffset || (val === xaxisOffset && yoffset === 0)) {\r\n y = yoffsetNeg;\r\n yoffsetNeg += height;\r\n } else {\r\n y = yoffset - height;\r\n yoffset -= height;\r\n }\r\n color = this.calcColor(i, val, valuenum);\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, options);\r\n }\r\n result.push(target.drawRect(x, y, this.barWidth - 1, height - 1, color, color));\r\n }\r\n if (result.length === 1) {\r\n return result[0];\r\n }\r\n return result;\r\n }\r\n },\r\n tristate:{\r\n type: 'tristate',\r\n init: function(el, values) {\r\n let options = this.options;\r\n let width = el.mergedOptions.width;\r\n let height = el.mergedOptions.height;\r\n\r\n this.canvasWidth = el.mergedOptions.width;\r\n this.canvasHeight = el.mergedOptions.height;\r\n\r\n let barWidth = parseInt(options.get('barWidth'), 10),\r\n barSpacing = parseInt(options.get('barSpacing'), 10);\r\n //tristate._super.init.call(this, el, values, options, width, height);\r\n\r\n this.regionShapes = {};\r\n this.barWidth = barWidth;\r\n this.barSpacing = barSpacing;\r\n this.totalBarWidth = barWidth + barSpacing;\r\n this.values = $.map(values, Number);\r\n this.width = width = (values.length * barWidth) + ((values.length - 1) * barSpacing);\r\n\r\n if ($.isArray(options.get('colorMap'))) {\r\n this.colorMapByIndex = options.get('colorMap');\r\n this.colorMapByValue = null;\r\n } else {\r\n this.colorMapByIndex = null;\r\n this.colorMapByValue = options.get('colorMap');\r\n if (this.colorMapByValue && this.colorMapByValue.get === undefined) {\r\n this.colorMapByValue = new RangeMap(this.colorMapByValue);\r\n }\r\n }\r\n //this.initTarget();\r\n },\r\n\r\n getRegion: function (el, x, y) {\r\n return Math.floor(x / this.totalBarWidth);\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion;\r\n return {\r\n isNull: this.values[currentRegion] === undefined,\r\n value: this.values[currentRegion],\r\n color: this.calcColor(this.values[currentRegion], currentRegion),\r\n offset: currentRegion\r\n };\r\n },\r\n\r\n calcColor: function (value, valuenum) {\r\n let values = this.values,\r\n options = this.options,\r\n colorMapByIndex = this.colorMapByIndex,\r\n colorMapByValue = this.colorMapByValue,\r\n color, newColor;\r\n\r\n if (colorMapByValue && (newColor = colorMapByValue.get(value))) {\r\n color = newColor;\r\n } else if (colorMapByIndex && colorMapByIndex.length > valuenum) {\r\n color = colorMapByIndex[valuenum];\r\n } else if (values[valuenum] < 0) {\r\n color = options.get('negBarColor');\r\n } else if (values[valuenum] > 0) {\r\n color = options.get('posBarColor');\r\n } else {\r\n color = options.get('zeroBarColor');\r\n }\r\n return color;\r\n },\r\n\r\n renderRegion: function (valuenum, highlight) {\r\n let values = this.values,\r\n options = this.options,\r\n target = this.target,\r\n canvasHeight, height, halfHeight,\r\n x, y, color;\r\n\r\n canvasHeight = this.canvasHeight;\r\n halfHeight = Math.round(canvasHeight / 2);\r\n\r\n x = valuenum * this.totalBarWidth;\r\n if (values[valuenum] < 0) {\r\n y = halfHeight;\r\n height = halfHeight - 1;\r\n } else if (values[valuenum] > 0) {\r\n y = 0;\r\n height = halfHeight - 1;\r\n } else {\r\n y = halfHeight - 1;\r\n height = 2;\r\n }\r\n color = this.calcColor(values[valuenum], valuenum);\r\n if (color === null) {\r\n return;\r\n }\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, options);\r\n }\r\n return target.drawRect(x, y, this.barWidth - 1, height - 1, color, color);\r\n }\r\n },\r\n discrete:{\r\n type: 'discrete',\r\n\r\n init: function(el, values) {\r\n let options = this.options;\r\n let width = el.mergedOptions.width;\r\n let height = el.mergedOptions.height;\r\n\r\n this.canvasWidth = el.mergedOptions.width;\r\n this.canvasHeight = el.mergedOptions.height;\r\n\r\n this.regionShapes = {};\r\n this.values = values = $.map(values, Number);\r\n this.min = Math.min.apply(Math, values);\r\n this.max = Math.max.apply(Math, values);\r\n this.range = this.max - this.min;\r\n this.width = width;\r\n this.interval = Math.floor(width / values.length);\r\n this.itemWidth = width / values.length;\r\n if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < this.min)) {\r\n this.min = options.get('chartRangeMin');\r\n }\r\n if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > this.max)) {\r\n this.max = options.get('chartRangeMax');\r\n }\r\n //this.initTarget();\r\n if (this.target) {\r\n this.lineHeight = options.get('lineHeight') === 'auto' ? Math.round(this.canvasHeight * 0.3) : options.get('lineHeight');\r\n }\r\n },\r\n\r\n getRegion: function (el, x, y) {\r\n return Math.floor(x / this.itemWidth);\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion;\r\n return {\r\n isNull: this.values[currentRegion] === undefined,\r\n value: this.values[currentRegion],\r\n offset: currentRegion\r\n };\r\n },\r\n\r\n renderRegion: function (valuenum, highlight) {\r\n let values = this.values,\r\n options = this.options,\r\n min = this.min,\r\n max = this.max,\r\n range = this.range,\r\n interval = this.interval,\r\n target = this.target,\r\n canvasHeight = this.canvasHeight,\r\n lineHeight = this.lineHeight,\r\n pheight = canvasHeight - lineHeight,\r\n ytop, val, color, x;\r\n\r\n val = clipval(values[valuenum], min, max);\r\n x = valuenum * interval;\r\n ytop = Math.round(pheight - pheight * ((val - min) / range));\r\n color = (options.get('thresholdColor') && val < options.get('thresholdValue')) ? options.get('thresholdColor') : options.get('lineColor');\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, options);\r\n }\r\n //return target.drawLine(x, ytop, x, ytop + lineHeight, color);\r\n\r\n return this.target.drawRect(x, ytop, interval<=2?1:interval-2, lineHeight, color, color);\r\n }\r\n },\r\n bullet:{\r\n type: 'bullet',\r\n init: function(el, values) {\r\n\r\n let options = this.options;\r\n let width = el.mergedOptions.width;\r\n let height = el.mergedOptions.height;\r\n\r\n this.canvasWidth = el.mergedOptions.width;\r\n this.canvasHeight = el.mergedOptions.height;\r\n\r\n let min, max, vals;\r\n //bullet._super.init.call(this, el, values, options, width, height);\r\n\r\n // values: target, performance, range1, range2, range3\r\n this.values = values = normalizeValues(values);\r\n // target or performance could be null\r\n vals = values.slice();\r\n vals[0] = vals[0] === null ? vals[2] : vals[0];\r\n vals[1] = values[1] === null ? vals[2] : vals[1];\r\n min = Math.min.apply(Math, values);\r\n max = Math.max.apply(Math, values);\r\n if (options.get('base') === undefined) {\r\n min = min < 0 ? min : 0;\r\n } else {\r\n min = options.get('base');\r\n }\r\n this.min = min;\r\n this.max = max;\r\n this.range = max - min;\r\n this.shapes = {};\r\n this.valueShapes = {};\r\n this.regiondata = {};\r\n this.width = width;\r\n //this.target = this.$el.simpledraw(width, height, options.get('composite'));\r\n if (!values.length) {\r\n this.disabled = true;\r\n }\r\n //this.initTarget();\r\n },\r\n\r\n getRegion: function (el, x, y) {\r\n let shapeid = this.target.getShapeAt(el, x, y);\r\n return (shapeid !== undefined && this.shapes[shapeid] !== undefined) ? this.shapes[shapeid] : undefined;\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion;\r\n return {\r\n fieldkey: currentRegion.substr(0, 1),\r\n value: this.values[currentRegion.substr(1)],\r\n region: currentRegion\r\n };\r\n },\r\n\r\n changeHighlight: function (highlight) {\r\n let currentRegion = this.currentRegion,\r\n shapeid = this.valueShapes[currentRegion],\r\n shape;\r\n delete this.shapes[shapeid];\r\n switch (currentRegion.substr(0, 1)) {\r\n case 'r':\r\n shape = this.renderRange(currentRegion.substr(1), highlight);\r\n break;\r\n case 'p':\r\n shape = this.renderPerformance(highlight);\r\n break;\r\n case 't':\r\n shape = this.renderTarget(highlight);\r\n break;\r\n }\r\n this.valueShapes[currentRegion] = shape.id;\r\n this.shapes[shape.id] = currentRegion;\r\n this.target.replaceWithShape(shapeid, shape);\r\n },\r\n\r\n renderRange: function (rn, highlight) {\r\n let rangeval = this.values[rn],\r\n rangewidth = Math.round(this.canvasWidth * ((rangeval - this.min) / this.range)),\r\n color = this.options.get('rangeColors')[rn - 2];\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, this.options);\r\n }\r\n return this.target.drawRect(0, 0, rangewidth - 1, this.canvasHeight - 1, color, color);\r\n },\r\n\r\n renderPerformance: function (highlight) {\r\n let perfval = this.values[1],\r\n perfwidth = Math.round(this.canvasWidth * ((perfval - this.min) / this.range)),\r\n color = this.options.get('performanceColor');\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, this.options);\r\n }\r\n return this.target.drawRect(0, Math.round(this.canvasHeight * 0.3), perfwidth - 1,\r\n Math.round(this.canvasHeight * 0.4) - 1, color, color);\r\n },\r\n\r\n renderTarget: function (highlight) {\r\n let targetval = this.values[0],\r\n x = Math.round(this.canvasWidth * ((targetval - this.min) / this.range) - (this.options.get('targetWidth') / 2)),\r\n targettop = Math.round(this.canvasHeight * 0.10),\r\n targetheight = this.canvasHeight - (targettop * 2),\r\n color = this.options.get('targetColor');\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, this.options);\r\n }\r\n return this.target.drawRect(x, targettop, this.options.get('targetWidth') - 1, targetheight - 1, color, color);\r\n },\r\n\r\n render: function (el,userValues) {\r\n this.init(el,userValues);\r\n let vlen = this.values.length,\r\n target = this.target,\r\n i, shape;\r\n // if (!bullet._super.render.call(this)) {\r\n // return;\r\n // }\r\n for (i = 2; i < vlen; i++) {\r\n shape = this.renderRange(i).append();\r\n this.shapes[shape.id] = 'r' + i;\r\n this.valueShapes['r' + i] = shape.id;\r\n }\r\n if (this.values[1] !== null) {\r\n shape = this.renderPerformance().append();\r\n this.shapes[shape.id] = 'p1';\r\n this.valueShapes.p1 = shape.id;\r\n }\r\n if (this.values[0] !== null) {\r\n shape = this.renderTarget().append();\r\n this.shapes[shape.id] = 't0';\r\n this.valueShapes.t0 = shape.id;\r\n }\r\n //target.render();\r\n }\r\n },\r\n pie:{\r\n type: 'pie',\r\n\r\n init: function(el, values) {\r\n\r\n let options = this.options;\r\n let width = el.mergedOptions.width;\r\n let height = el.mergedOptions.height;\r\n\r\n this.canvasWidth = el.mergedOptions.width;\r\n this.canvasHeight = el.mergedOptions.height;\r\n\r\n let total = 0, i;\r\n\r\n //pie._super.init.call(this, el, values, options, width, height);\r\n\r\n this.shapes = {}; // map shape ids to value offsets\r\n this.valueShapes = {}; // maps value offsets to shape ids\r\n this.values = values = $.map(values, Number);\r\n\r\n if (options.get('width') === 'auto') {\r\n this.width = this.height;\r\n }\r\n\r\n if (values.length > 0) {\r\n for (i = values.length; i--;) {\r\n total += values[i];\r\n }\r\n }\r\n this.total = total;\r\n //this.initTarget();\r\n this.radius = Math.floor(Math.min(this.canvasWidth, this.canvasHeight) / 2);\r\n },\r\n\r\n getRegion: function (el, x, y) {\r\n let shapeid = this.target.getShapeAt(el, x, y);\r\n return (shapeid !== undefined && this.shapes[shapeid] !== undefined) ? this.shapes[shapeid] : undefined;\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let currentRegion = this.currentRegion;\r\n return {\r\n isNull: this.values[currentRegion] === undefined,\r\n value: this.values[currentRegion],\r\n percent: this.values[currentRegion] / this.total * 100,\r\n color: this.options.get('sliceColors')[currentRegion % this.options.get('sliceColors').length],\r\n offset: currentRegion\r\n };\r\n },\r\n\r\n changeHighlight: function (highlight) {\r\n let currentRegion = this.currentRegion,\r\n newslice = this.renderSlice(currentRegion, highlight),\r\n shapeid = this.valueShapes[currentRegion];\r\n delete this.shapes[shapeid];\r\n this.target.replaceWithShape(shapeid, newslice);\r\n this.valueShapes[currentRegion] = newslice.id;\r\n this.shapes[newslice.id] = currentRegion;\r\n },\r\n\r\n renderSlice: function (valuenum, highlight) {\r\n let target = this.target,\r\n options = this.options,\r\n radius = this.radius,\r\n borderWidth = options.get('borderWidth'),\r\n offset = options.get('offset'),\r\n circle = 2 * Math.PI,\r\n values = this.values,\r\n total = this.total,\r\n next = offset ? (2*Math.PI)*(offset/360) : 0,\r\n start, end, i, vlen, color;\r\n\r\n vlen = values.length;\r\n for (i = 0; i < vlen; i++) {\r\n start = next;\r\n end = next;\r\n if (total > 0) { // avoid divide by zero\r\n end = next + (circle * (values[i] / total));\r\n }\r\n if (valuenum === i) {\r\n color = options.get('sliceColors')[i % options.get('sliceColors').length];\r\n if (highlight) {\r\n color = this.calcHighlightColor(color, options);\r\n }\r\n\r\n return target.drawPieSlice(radius, radius, radius - borderWidth, start, end, undefined, color);\r\n }\r\n next = end;\r\n }\r\n },\r\n\r\n render: function (el,userValues) {\r\n this.init(el,userValues);\r\n let target = this.target,\r\n values = this.values,\r\n options = this.options,\r\n radius = this.radius,\r\n borderWidth = options.get('borderWidth'),\r\n shape, i;\r\n\r\n // if (!pie._super.render.call(this)) {\r\n // return;\r\n // }\r\n if (borderWidth) {\r\n target.drawCircle(radius, radius, Math.floor(radius - (borderWidth / 2)),\r\n options.get('borderColor'), undefined, borderWidth).append();\r\n }\r\n for (i = values.length; i--;) {\r\n if (values[i]) { // don't render zero values\r\n shape = this.renderSlice(i).append();\r\n this.valueShapes[i] = shape.id; // store just the shapeid\r\n this.shapes[shape.id] = i;\r\n }\r\n }\r\n //target.render();\r\n }\r\n },\r\n box:{\r\n type: 'box',\r\n\r\n init: function(el, values) {\r\n\r\n let options = this.options;\r\n let width = el.mergedOptions.width;\r\n let height = el.mergedOptions.height;\r\n\r\n this.canvasWidth = el.mergedOptions.width;\r\n this.canvasHeight = el.mergedOptions.height;\r\n\r\n //box._super.init.call(this, el, values, options, width, height);\r\n this.values = $.map(values, Number);\r\n this.width = options.get('width') === 'auto' ? '4.0em' : width;\r\n //this.initTarget();\r\n if (!this.values.length) {\r\n this.disabled = 1;\r\n }\r\n },\r\n\r\n /**\r\n * Simulate a single region\r\n */\r\n getRegion: function () {\r\n return 1;\r\n },\r\n\r\n getCurrentRegionFields: function () {\r\n let result = [\r\n { field: 'lq', value: this.quartiles[0] },\r\n { field: 'med', value: this.quartiles[1] },\r\n { field: 'uq', value: this.quartiles[2] }\r\n ];\r\n if (this.loutlier !== undefined) {\r\n result.push({ field: 'lo', value: this.loutlier});\r\n }\r\n if (this.routlier !== undefined) {\r\n result.push({ field: 'ro', value: this.routlier});\r\n }\r\n if (this.lwhisker !== undefined) {\r\n result.push({ field: 'lw', value: this.lwhisker});\r\n }\r\n if (this.rwhisker !== undefined) {\r\n result.push({ field: 'rw', value: this.rwhisker});\r\n }\r\n return result;\r\n },\r\n\r\n render: function (el,userValues) {\r\n this.init(el,userValues);\r\n\r\n let target = this.target,\r\n values = this.values,\r\n vlen = values.length,\r\n options = this.options,\r\n canvasWidth = this.canvasWidth,\r\n canvasHeight = this.canvasHeight,\r\n minValue = options.get('chartRangeMin') === undefined ? Math.min.apply(Math, values) : options.get('chartRangeMin'),\r\n maxValue = options.get('chartRangeMax') === undefined ? Math.max.apply(Math, values) : options.get('chartRangeMax'),\r\n canvasLeft = 0,\r\n lwhisker, loutlier, iqr, q1, q2, q3, rwhisker, routlier, i,\r\n size, unitSize;\r\n\r\n // if (!box._super.render.call(this)) {\r\n // return;\r\n // }\r\n\r\n if (options.get('raw')) {\r\n if (options.get('showOutliers') && values.length > 5) {\r\n loutlier = values[0];\r\n lwhisker = values[1];\r\n q1 = values[2];\r\n q2 = values[3];\r\n q3 = values[4];\r\n rwhisker = values[5];\r\n routlier = values[6];\r\n } else {\r\n lwhisker = values[0];\r\n q1 = values[1];\r\n q2 = values[2];\r\n q3 = values[3];\r\n rwhisker = values[4];\r\n }\r\n } else {\r\n values.sort(function (a, b) { return a - b; });\r\n q1 = quartile(values, 1);\r\n q2 = quartile(values, 2);\r\n q3 = quartile(values, 3);\r\n iqr = q3 - q1;\r\n if (options.get('showOutliers')) {\r\n lwhisker = rwhisker = undefined;\r\n for (i = 0; i < vlen; i++) {\r\n if (lwhisker === undefined && values[i] > q1 - (iqr * options.get('outlierIQR'))) {\r\n lwhisker = values[i];\r\n }\r\n if (values[i] < q3 + (iqr * options.get('outlierIQR'))) {\r\n rwhisker = values[i];\r\n }\r\n }\r\n loutlier = values[0];\r\n routlier = values[vlen - 1];\r\n } else {\r\n lwhisker = values[0];\r\n rwhisker = values[vlen - 1];\r\n }\r\n }\r\n this.quartiles = [q1, q2, q3];\r\n this.lwhisker = lwhisker;\r\n this.rwhisker = rwhisker;\r\n this.loutlier = loutlier;\r\n this.routlier = routlier;\r\n\r\n unitSize = canvasWidth / (maxValue - minValue + 1);\r\n if (options.get('showOutliers')) {\r\n canvasLeft = Math.ceil(options.get('spotRadius'));\r\n canvasWidth -= 2 * Math.ceil(options.get('spotRadius'));\r\n unitSize = canvasWidth / (maxValue - minValue + 1);\r\n if (loutlier < lwhisker) {\r\n target.drawCircle((loutlier - minValue) * unitSize + canvasLeft,\r\n canvasHeight / 2,\r\n options.get('spotRadius'),\r\n options.get('outlierLineColor'),\r\n options.get('outlierFillColor')).append();\r\n }\r\n if (routlier > rwhisker) {\r\n target.drawCircle((routlier - minValue) * unitSize + canvasLeft,\r\n canvasHeight / 2,\r\n options.get('spotRadius'),\r\n options.get('outlierLineColor'),\r\n options.get('outlierFillColor')).append();\r\n }\r\n }\r\n\r\n // box\r\n target.drawRect(\r\n Math.round((q1 - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight * 0.1),\r\n Math.round((q3 - q1) * unitSize),\r\n Math.round(canvasHeight * 0.8),\r\n options.get('boxLineColor'),\r\n options.get('boxFillColor')).append();\r\n // left whisker\r\n target.drawLine(\r\n Math.round((lwhisker - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight / 2),\r\n Math.round((q1 - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight / 2),\r\n options.get('lineColor')).append();\r\n target.drawLine(\r\n Math.round((lwhisker - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight / 4),\r\n Math.round((lwhisker - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight - canvasHeight / 4),\r\n options.get('whiskerColor')).append();\r\n // right whisker\r\n target.drawLine(Math.round((rwhisker - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight / 2),\r\n Math.round((q3 - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight / 2),\r\n options.get('lineColor')).append();\r\n target.drawLine(\r\n Math.round((rwhisker - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight / 4),\r\n Math.round((rwhisker - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight - canvasHeight / 4),\r\n options.get('whiskerColor')).append();\r\n // median line\r\n target.drawLine(\r\n Math.round((q2 - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight * 0.1),\r\n Math.round((q2 - minValue) * unitSize + canvasLeft),\r\n Math.round(canvasHeight * 0.9),\r\n options.get('medianColor')).append();\r\n if (options.get('target')) {\r\n size = Math.ceil(options.get('spotRadius'));\r\n target.drawLine(\r\n Math.round((options.get('target') - minValue) * unitSize + canvasLeft),\r\n Math.round((canvasHeight / 2) - size),\r\n Math.round((options.get('target') - minValue) * unitSize + canvasLeft),\r\n Math.round((canvasHeight / 2) + size),\r\n options.get('targetColor')).append();\r\n target.drawLine(\r\n Math.round((options.get('target') - minValue) * unitSize + canvasLeft - size),\r\n Math.round(canvasHeight / 2),\r\n Math.round((options.get('target') - minValue) * unitSize + canvasLeft + size),\r\n Math.round(canvasHeight / 2),\r\n options.get('targetColor')).append();\r\n }\r\n //target.render();\r\n }\r\n },\r\n shapeCount:0,\r\n shapes:{},\r\n shapeseq:[],\r\n lastShapeId:null,\r\n mergedOptions:null,\r\n init:function(userValues, userOptions){\r\n let extendedOptions, defaults, base;\r\n userOptions = userOptions || {};\r\n let _this = this;\r\n defaults = this.defaultOption;\r\n base = defaults.common;\r\n extendedOptions = defaults[userOptions.type || base.type];\r\n\r\n _this.shapeCount = 0;\r\n _this.shapes = {};\r\n _this.shapeseq = [];\r\n _this.lastShapeId = null;\r\n\r\n _this.mergedOptions = $.extend({}, base, extendedOptions, userOptions);\r\n _this.mergedOptions.width = _this.mergedOptions.width;\r\n _this.mergedOptions.height = _this.mergedOptions.height;\r\n _this[_this.mergedOptions.type].render(_this, userValues);\r\n\r\n return { shapes:_this.shapes, shapeseq:_this.shapeseq, offsetX:_this.mergedOptions.offsetX, offsetY:_this.mergedOptions.offsetY, pixelWidth:_this.mergedOptions.width, pixelHeight:_this.mergedOptions.height};\r\n\r\n },\r\n _getContext: function (lineColor, fillColor, lineWidth) {\r\n let context;\r\n if(this.ctx != null){\r\n context = this.ctx;\r\n }\r\n else{\r\n context = $(\"#\" + this._canvasID ).get(0).getContext('2d');\r\n }\r\n\r\n if (lineColor !== undefined) {\r\n context.strokeStyle = lineColor;\r\n }\r\n context.lineWidth = lineWidth === undefined ? 1 : lineWidth;\r\n if (fillColor !== undefined) {\r\n context.fillStyle = fillColor;\r\n }\r\n return context;\r\n },\r\n\r\n reset: function () {\r\n let context = this._getContext();\r\n context.clearRect(0, 0, this.pixelWidth, this.pixelHeight);\r\n this.shapes = {};\r\n this.shapeseq = [];\r\n this.currentTargetShapeId = undefined;\r\n },\r\n\r\n _drawShape: function (shapeid, path, lineColor, fillColor, lineWidth) {\r\n let context = this._getContext(lineColor, fillColor, lineWidth),\r\n i, plen;\r\n context.beginPath();\r\n context.moveTo(path[0][0] + 0.5 + this.offsetX, path[0][1] + 0.5 + this.offsetY);\r\n \r\n for (i = 1, plen = path.length; i < plen; i++) {\r\n context.lineTo(path[i][0] + 0.5 + this.offsetX, path[i][1] + 0.5 + this.offsetY); // the 0.5 offset gives us crisp pixel-width lines\r\n }\r\n if (lineColor !== undefined) {\r\n context.stroke();\r\n }\r\n if (fillColor !== undefined) {\r\n context.fill();\r\n }\r\n if (this.targetX !== undefined && this.targetY !== undefined &&\r\n context.isPointInPath(this.targetX + this.offsetX, this.targetY + this.offsetY)) {\r\n this.currentTargetShapeId = shapeid;\r\n }\r\n },\r\n\r\n _drawCircle: function (shapeid, x, y, radius, lineColor, fillColor, lineWidth) {\r\n let context = this._getContext(lineColor, fillColor, lineWidth);\r\n context.beginPath();\r\n x+=this.offsetX;\r\n y+=this.offsetY;\r\n context.arc(x, y, radius, 0, 2 * Math.PI, false);\r\n if (this.targetX !== undefined && this.targetY !== undefined &&\r\n context.isPointInPath(this.targetX+this.offsetX, this.targetY+this.offsetY)) {\r\n this.currentTargetShapeId = shapeid;\r\n }\r\n if (lineColor !== undefined) {\r\n context.stroke();\r\n }\r\n if (fillColor !== undefined) {\r\n context.fill();\r\n }\r\n },\r\n\r\n _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {\r\n let context = this._getContext(lineColor, fillColor);\r\n x+=this.offsetX;\r\n y+=this.offsetY;\r\n context.beginPath();\r\n context.moveTo(x, y);\r\n context.arc(x, y, radius, startAngle, endAngle, false);\r\n context.lineTo(x, y);\r\n context.closePath();\r\n if (lineColor !== undefined) {\r\n context.stroke();\r\n }\r\n if (fillColor) {\r\n context.fill();\r\n }\r\n if (this.targetX !== undefined && this.targetY !== undefined &&\r\n context.isPointInPath(this.targetX+this.offsetX, this.targetY+this.offsetY)) {\r\n this.currentTargetShapeId = shapeid;\r\n }\r\n },\r\n\r\n _drawRect: function (shapeid, x, y, width, height, lineColor, fillColor) {\r\n // x+=this.offsetX;\r\n // y+=this.offsetY;\r\n return this._drawShape(shapeid, [[x, y], [x + width, y], [x + width, y + height], [x, y + height], [x, y]], lineColor, fillColor);\r\n },\r\n\r\n appendShape: function (shape) {\r\n this.shapes[shape.id] = shape;\r\n this.shapeseq.push(shape.id);\r\n this.lastShapeId = shape.id;\r\n return shape.id;\r\n },\r\n\r\n replaceWithShape: function (shapeid, shape) {\r\n let shapeseq = this.shapeseq,\r\n i;\r\n this.shapes[shape.id] = shape;\r\n for (i = shapeseq.length; i--;) {\r\n if (shapeseq[i] == shapeid) {\r\n shapeseq[i] = shape.id;\r\n }\r\n }\r\n delete this.shapes[shapeid];\r\n },\r\n\r\n replaceWithShapes: function (shapeids, shapes) {\r\n let shapeseq = this.shapeseq,\r\n shapemap = {},\r\n sid, i, first;\r\n\r\n for (i = shapeids.length; i--;) {\r\n shapemap[shapeids[i]] = true;\r\n }\r\n for (i = shapeseq.length; i--;) {\r\n sid = shapeseq[i];\r\n if (shapemap[sid]) {\r\n shapeseq.splice(i, 1);\r\n delete this.shapes[sid];\r\n first = i;\r\n }\r\n }\r\n for (i = shapes.length; i--;) {\r\n shapeseq.splice(first, 0, shapes[i].id);\r\n this.shapes[shapes[i].id] = shapes[i];\r\n }\r\n\r\n },\r\n\r\n insertAfterShape: function (shapeid, shape) {\r\n let shapeseq = this.shapeseq,\r\n i;\r\n for (i = shapeseq.length; i--;) {\r\n if (shapeseq[i] === shapeid) {\r\n shapeseq.splice(i + 1, 0, shape.id);\r\n this.shapes[shape.id] = shape;\r\n return;\r\n }\r\n }\r\n },\r\n\r\n removeShapeId: function (shapeid) {\r\n let shapeseq = this.shapeseq,\r\n i;\r\n for (i = shapeseq.length; i--;) {\r\n if (shapeseq[i] === shapeid) {\r\n shapeseq.splice(i, 1);\r\n break;\r\n }\r\n }\r\n delete this.shapes[shapeid];\r\n },\r\n\r\n getShapeAt: function (el, x, y) {\r\n this.targetX = x;\r\n this.targetY = y;\r\n this.render();\r\n return this.currentTargetShapeId;\r\n },\r\n _canvasID:\"luckysheetTableContent\",\r\n render: function (shapeseq, shapes, offsetX, offsetY, pixelWidth, pixelHeight,canvasid,ctx) {\r\n if(canvasid==null){\r\n canvasid = \"luckysheetTableContent\";\r\n }\r\n this._canvasID = canvasid;\r\n\r\n if(ctx != null){\r\n this.ctx = ctx;\r\n }\r\n\r\n let shapeCount = shapeseq.length,\r\n context = this._getContext(),\r\n shapeid, shape, i;\r\n this.offsetX = offsetX;\r\n this.offsetY = offsetY;\r\n this.pixelWidth = pixelWidth;\r\n this.pixelHeight = pixelHeight;\r\n //context.clearRect(this.offsetX, this.offsetY, this.pixelWidth, this.pixelHeight);\r\n\r\n // qkSparkSetting.currentSparkVlaue = {\r\n // shapeseq : shapeseq,\r\n // shapes:shapes,\r\n // shapeCount:shapeCount,\r\n // el:this\r\n // }\r\n\r\n for (i = 0; i < shapeCount; i++) {\r\n shapeid = shapeseq[i];\r\n shape = shapes[shapeid];\r\n this['_draw' + shape.type].apply(this, shape.args);\r\n }\r\n // if (!this.interact) {\r\n // // not interactive so no need to keep the shapes array\r\n // this.shapes = {};\r\n // this.shapeseq = [];\r\n // }\r\n },\r\n drawLine: function (x1, y1, x2, y2, lineColor, lineWidth) {\r\n return this.drawShape([[x1, y1], [x2, y2]], lineColor, lineWidth);\r\n },\r\n\r\n drawShape: function (path, lineColor, fillColor, lineWidth) {\r\n return this._genShape('Shape', [path, lineColor, fillColor, lineWidth]);\r\n },\r\n\r\n drawCircle: function (x, y, radius, lineColor, fillColor, lineWidth) {\r\n return this._genShape('Circle', [x, y, radius, lineColor, fillColor, lineWidth]);\r\n },\r\n\r\n drawPieSlice: function (x, y, radius, startAngle, endAngle, lineColor, fillColor) {\r\n return this._genShape('PieSlice', [x, y, radius, startAngle, endAngle, lineColor, fillColor]);\r\n },\r\n\r\n drawRect: function (x, y, width, height, lineColor, fillColor) {\r\n return this._genShape('Rect', [x, y, width, height, lineColor, fillColor]);\r\n },\r\n _genShape: function (shapetype, shapeargs) {\r\n let id = this.shapeCount++;\r\n shapeargs.unshift(id);\r\n // return new VShape(this, id, shapetype, shapeargs);\r\n // this.target = target;\r\n // this.id = id;\r\n // this.type = type;\r\n // this.args = args;\r\n let shape = { id:id, type:shapetype, args:shapeargs };\r\n this.shapes[id] = shape;\r\n this.shapeseq.push(id);\r\n this.lastShapeId = id;\r\n return {\r\n append:function(){\r\n return shape;\r\n },\r\n get:function(){\r\n return id;\r\n }\r\n };\r\n }\r\n\r\n}\r\n\r\nlet barHighlightMixin = {\r\n changeHighlight: function (highlight) {\r\n let currentRegion = this.currentRegion,\r\n target = this.target,\r\n shapeids = this.regionShapes[currentRegion],\r\n newShapes;\r\n // will be null if the region value was null\r\n if (shapeids) {\r\n newShapes = this.renderRegion(currentRegion, highlight);\r\n if ($.isArray(newShapes) || $.isArray(shapeids)) {\r\n target.replaceWithShapes(shapeids, newShapes);\r\n this.regionShapes[currentRegion] = $.map(newShapes, function (newShape) {\r\n return newShape.id;\r\n });\r\n } else {\r\n target.replaceWithShape(shapeids, newShapes);\r\n this.regionShapes[currentRegion] = newShapes.id;\r\n }\r\n }\r\n },\r\n render: function (el,userValues) {\r\n this.init(el, userValues);\r\n let values = this.values,\r\n target = this.target,\r\n regionShapes = this.regionShapes,\r\n shapes, ids, i, j;\r\n\r\n // if (!this.cls._super.render.call(this)) {\r\n // return;\r\n // }\r\n for (i = values.length; i--;) {\r\n shapes = this.renderRegion(i);\r\n if (shapes) {\r\n if ($.isArray(shapes)) {\r\n ids = [];\r\n for (j = shapes.length; j--;) {\r\n shapes[j].append();\r\n ids.push(shapes[j].id);\r\n }\r\n regionShapes[i] = ids;\r\n } else {\r\n shapes.append();\r\n regionShapes[i] = shapes.id; // store just the shapeid\r\n }\r\n } else {\r\n // null value\r\n regionShapes[i] = null;\r\n }\r\n }\r\n //target.render();\r\n }\r\n};\r\n\r\nlet _luckysheetSparkLineOptions = {\r\n get:function(type){\r\n return luckysheetSparkline.mergedOptions[type];\r\n }\r\n}\r\n\r\nlet _luckysheetSparkLineTarget = {\r\n drawLine:function(x1, y1, x2, y2, lineColor, lineWidth){\r\n return luckysheetSparkline.drawLine(x1, y1, x2, y2, lineColor, lineWidth);\r\n },\r\n\r\n drawShape:function(path, lineColor, fillColor, lineWidth){\r\n return luckysheetSparkline.drawShape(path, lineColor, fillColor, lineWidth);\r\n },\r\n\r\n drawCircle:function(x, y, radius, lineColor, fillColor, lineWidth){\r\n return luckysheetSparkline.drawCircle(x, y, radius, lineColor, fillColor, lineWidth);\r\n },\r\n\r\n drawPieSlice:function(x, y, radius, startAngle, endAngle, lineColor, fillColor){\r\n return luckysheetSparkline.drawPieSlice(x, y, radius, startAngle, endAngle, lineColor, fillColor);\r\n },\r\n\r\n drawRect:function(x, y, width, height, lineColor, fillColor){\r\n return luckysheetSparkline.drawRect(x, y, width, height, lineColor, fillColor);\r\n }\r\n}\r\n\r\nfor(let item in luckysheetSparkline){\r\n if(item in {\"line\":null, \"bar\":null, \"column\":null, \"tristate\":null, \"discrete\":null, \"bullet\":null, \"pie\":null, \"box\":null}){\r\n luckysheetSparkline[item].options = _luckysheetSparkLineOptions;\r\n luckysheetSparkline[item].target = _luckysheetSparkLineTarget;\r\n }\r\n\r\n if(item in {\"bar\":null, \"column\":null, \"tristate\":null, \"discrete\":null}){\r\n luckysheetSparkline[item].changeHighlight = barHighlightMixin.changeHighlight;\r\n luckysheetSparkline[item].render = barHighlightMixin.render;\r\n }\r\n}\r\n\r\nexport default luckysheetSparkline;\r\n", "import pivotTable from \"../controllers/pivotTable\";\r\nimport conditionformat from \"../controllers/conditionformat\";\r\nimport alternateformat from \"../controllers/alternateformat\";\r\nimport luckysheetSparkline from \"../controllers/sparkline\";\r\nimport menuButton from \"../controllers/menuButton\";\r\nimport dataVerificationCtrl from \"../controllers/dataVerificationCtrl\";\r\nimport { luckysheetdefaultstyle, luckysheet_CFiconsImg, luckysheetdefaultFont } from \"../controllers/constant\";\r\nimport { luckysheet_searcharray } from \"../controllers/sheetSearch\";\r\nimport { dynamicArrayCompute } from \"./dynamicArray\";\r\nimport browser from \"./browser\";\r\nimport { isRealNull, isRealNum } from \"./validate\";\r\nimport { getMeasureText, getCellTextInfo } from \"./getRowlen\";\r\nimport { getRealCellValue } from \"./getdata\";\r\nimport { getBorderInfoComputeRange } from \"./border\";\r\nimport { getSheetIndex } from \"../methods/get\";\r\nimport { getObjType, chatatABC, luckysheetfontformat } from \"../utils/util\";\r\nimport { isInlineStringCell } from \"../controllers/inlineString\";\r\nimport method from \"./method\";\r\nimport Store from \"../store\";\r\nimport locale from \"../locale/locale\";\r\nimport sheetmanage from \"../controllers/sheetmanage\";\r\n\r\nfunction luckysheetDrawgridRowTitle(scrollHeight, drawHeight, offsetTop) {\r\n if (scrollHeight == null) {\r\n scrollHeight = $(\"#luckysheet-cell-main\").scrollTop();\r\n }\r\n\r\n if (drawHeight == null) {\r\n drawHeight = Store.luckysheetTableContentHW[1];\r\n }\r\n\r\n if (offsetTop == null) {\r\n offsetTop = Store.columnHeaderHeight;\r\n }\r\n\r\n let luckysheetTableContent = $(\"#luckysheetTableContent\")\r\n .get(0)\r\n .getContext(\"2d\");\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.scale(Store.devicePixelRatio, Store.devicePixelRatio);\r\n\r\n luckysheetTableContent.clearRect(0, offsetTop, Store.rowHeaderWidth - 1, drawHeight);\r\n\r\n luckysheetTableContent.font = luckysheetdefaultFont();\r\n luckysheetTableContent.textBaseline = luckysheetdefaultstyle.textBaseline; //\u57FA\u51C6\u7EBF \u5782\u76F4\u5C45\u4E2D\r\n luckysheetTableContent.fillStyle = luckysheetdefaultstyle.fillStyle;\r\n\r\n let dataset_row_st, dataset_row_ed;\r\n dataset_row_st = luckysheet_searcharray(Store.visibledatarow, scrollHeight);\r\n dataset_row_ed = luckysheet_searcharray(Store.visibledatarow, scrollHeight + drawHeight);\r\n\r\n if (dataset_row_st == -1) {\r\n dataset_row_st = 0;\r\n }\r\n if (dataset_row_ed == -1) {\r\n dataset_row_ed = Store.visibledatarow.length - 1;\r\n }\r\n\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.rect(0, offsetTop - 1, Store.rowHeaderWidth - 1, drawHeight - 2);\r\n luckysheetTableContent.clip();\r\n\r\n let end_r, start_r;\r\n let bodrder05 = 0.5; //Default 0.5\r\n let preEndR;\r\n for (let r = dataset_row_st; r <= dataset_row_ed; r++) {\r\n if (r == 0) {\r\n start_r = -scrollHeight - 1;\r\n } else {\r\n start_r = Store.visibledatarow[r - 1] - scrollHeight - 1;\r\n }\r\n end_r = Store.visibledatarow[r] - scrollHeight;\r\n\r\n //\u82E5\u8D85\u51FA\u7ED8\u5236\u533A\u57DF\u7EC8\u6B62\r\n // if(end_r > scrollHeight + drawHeight){\r\n // break;\r\n // }\r\n let firstOffset = dataset_row_st == r ? -2 : 0;\r\n let lastOffset = dataset_row_ed == r ? -2 : 0;\r\n //\u5217\u6807\u9898\u5355\u5143\u683C\u6E32\u67D3\u524D\u89E6\u53D1\uFF0Creturn false \u5219\u4E0D\u6E32\u67D3\u8BE5\u5355\u5143\u683C\r\n if (\r\n !method.createHookFunction(\r\n \"rowTitleCellRenderBefore\",\r\n r + 1,\r\n {\r\n r: r,\r\n top: start_r + offsetTop + firstOffset,\r\n width: Store.rowHeaderWidth - 1,\r\n height: end_r - start_r + 1 + lastOffset - firstOffset,\r\n },\r\n luckysheetTableContent,\r\n )\r\n ) {\r\n continue;\r\n }\r\n\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][r] != null) {\r\n } else {\r\n luckysheetTableContent.fillStyle = \"#ffffff\";\r\n luckysheetTableContent.fillRect(\r\n 0,\r\n start_r + offsetTop + firstOffset,\r\n Store.rowHeaderWidth - 1,\r\n end_r - start_r + 1 + lastOffset - firstOffset,\r\n );\r\n luckysheetTableContent.fillStyle = \"#000000\";\r\n\r\n //\u884C\u6807\u9898\u680F\u5E8F\u5217\u53F7\r\n luckysheetTableContent.save(); //save scale before draw text\r\n luckysheetTableContent.scale(Store.zoomRatio, Store.zoomRatio);\r\n let textMetrics = getMeasureText(r + 1, luckysheetTableContent);\r\n //luckysheetTableContent.measureText(r + 1);\r\n\r\n let horizonAlignPos = (Store.rowHeaderWidth - textMetrics.width) / 2;\r\n let verticalAlignPos = start_r + (end_r - start_r) / 2 + offsetTop;\r\n\r\n luckysheetTableContent.fillText(\r\n r + 1,\r\n horizonAlignPos / Store.zoomRatio,\r\n verticalAlignPos / Store.zoomRatio,\r\n );\r\n luckysheetTableContent.restore(); //restore scale after draw text\r\n }\r\n\r\n //vertical\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(Store.rowHeaderWidth - 2 + bodrder05, start_r + offsetTop - 2);\r\n luckysheetTableContent.lineTo(Store.rowHeaderWidth - 2 + bodrder05, end_r + offsetTop - 2);\r\n luckysheetTableContent.lineWidth = 1;\r\n\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n\r\n //\u884C\u6807\u9898\u680F\u6A2A\u7EBF,horizen\r\n if (\r\n Store.config[\"rowhidden\"] != null &&\r\n Store.config[\"rowhidden\"][r] == null &&\r\n Store.config[\"rowhidden\"][r + 1] != null\r\n ) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(-1, end_r + offsetTop - 4 + bodrder05);\r\n luckysheetTableContent.lineTo(Store.rowHeaderWidth - 1, end_r + offsetTop - 4 + bodrder05);\r\n // luckysheetTableContent.lineWidth = 1;\r\n // luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n } else if (Store.config[\"rowhidden\"] == null || Store.config[\"rowhidden\"][r] == null) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(-1, end_r + offsetTop - 2 + bodrder05);\r\n luckysheetTableContent.lineTo(Store.rowHeaderWidth - 1, end_r + offsetTop - 2 + bodrder05);\r\n\r\n // luckysheetTableContent.lineWidth = 1;\r\n // luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][r - 1] != null && preEndR != null) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(-1, preEndR + offsetTop + bodrder05);\r\n luckysheetTableContent.lineTo(Store.rowHeaderWidth - 1, preEndR + offsetTop + bodrder05);\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n\r\n preEndR = end_r;\r\n\r\n //\u5217\u6807\u9898\u5355\u5143\u683C\u6E32\u67D3\u524D\u89E6\u53D1\uFF0Creturn false \u5219\u4E0D\u6E32\u67D3\u8BE5\u5355\u5143\u683C\r\n method.createHookFunction(\r\n \"rowTitleCellRenderAfter\",\r\n r + 1,\r\n {\r\n r: r,\r\n top: start_r + offsetTop + firstOffset,\r\n width: Store.rowHeaderWidth - 1,\r\n height: end_r - start_r + 1 + lastOffset - firstOffset,\r\n },\r\n luckysheetTableContent,\r\n );\r\n }\r\n\r\n //\u884C\u6807\u9898\u680F\u7AD6\u7EBF\r\n // luckysheetTableContent.beginPath();\r\n // luckysheetTableContent.moveTo(\r\n // (Store.rowHeaderWidth - 2 + 0.5) ,\r\n // (offsetTop - 1)\r\n // );\r\n // luckysheetTableContent.lineTo(\r\n // (Store.rowHeaderWidth - 2 + 0.5) ,\r\n // (Store.rh_height + offsetTop)\r\n // );\r\n // luckysheetTableContent.lineWidth = 1;\r\n // luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n // luckysheetTableContent.closePath();\r\n // luckysheetTableContent.stroke();\r\n\r\n //\u6E05\u9664canvas\u5DE6\u4E0A\u89D2\u533A\u57DF \u9632\u6B62\u5217\u6807\u9898\u680F\u5E8F\u5217\u53F7\u6EA2\u51FA\u663E\u793A\r\n // luckysheetTableContent.clearRect(0, 0, Store.rowHeaderWidth , Store.columnHeaderHeight );\r\n\r\n // Must be restored twice, otherwise it will be enlarged under window.devicePixelRatio = 1.5\r\n luckysheetTableContent.restore();\r\n luckysheetTableContent.restore();\r\n}\r\n\r\nfunction luckysheetDrawgridColumnTitle(scrollWidth, drawWidth, offsetLeft) {\r\n if (scrollWidth == null) {\r\n scrollWidth = $(\"#luckysheet-cell-main\").scrollLeft();\r\n }\r\n\r\n if (drawWidth == null) {\r\n drawWidth = Store.luckysheetTableContentHW[0];\r\n }\r\n\r\n if (offsetLeft == null) {\r\n offsetLeft = Store.rowHeaderWidth;\r\n }\r\n\r\n let luckysheetTableContent = $(\"#luckysheetTableContent\")\r\n .get(0)\r\n .getContext(\"2d\");\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.scale(Store.devicePixelRatio, Store.devicePixelRatio);\r\n luckysheetTableContent.clearRect(offsetLeft, 0, drawWidth, Store.columnHeaderHeight - 1);\r\n\r\n luckysheetTableContent.font = luckysheetdefaultFont();\r\n luckysheetTableContent.textBaseline = luckysheetdefaultstyle.textBaseline; //\u57FA\u51C6\u7EBF \u5782\u76F4\u5C45\u4E2D\r\n luckysheetTableContent.fillStyle = luckysheetdefaultstyle.fillStyle;\r\n\r\n let dataset_col_st, dataset_col_ed;\r\n dataset_col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollWidth);\r\n dataset_col_ed = luckysheet_searcharray(Store.visibledatacolumn, scrollWidth + drawWidth);\r\n\r\n if (dataset_col_st == -1) {\r\n dataset_col_st = 0;\r\n }\r\n if (dataset_col_ed == -1) {\r\n dataset_col_ed = Store.visibledatacolumn.length - 1;\r\n }\r\n\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.rect(offsetLeft - 1, 0, drawWidth, Store.columnHeaderHeight - 1);\r\n luckysheetTableContent.clip();\r\n\r\n // console.log(offsetLeft, 0, drawWidth, Store.columnHeaderHeight -1);\r\n\r\n let end_c, start_c;\r\n let bodrder05 = 0.5; //Default 0.5\r\n let preEndC;\r\n for (let c = dataset_col_st; c <= dataset_col_ed; c++) {\r\n if (c == 0) {\r\n start_c = -scrollWidth;\r\n } else {\r\n start_c = Store.visibledatacolumn[c - 1] - scrollWidth;\r\n }\r\n end_c = Store.visibledatacolumn[c] - scrollWidth;\r\n\r\n //\u82E5\u8D85\u51FA\u7ED8\u5236\u533A\u57DF\u7EC8\u6B62\r\n // if(end_c > scrollWidth + drawWidth+1){\r\n // break;\r\n // }\r\n let abc = chatatABC(c);\r\n //\u5217\u6807\u9898\u5355\u5143\u683C\u6E32\u67D3\u524D\u89E6\u53D1\uFF0Creturn false \u5219\u4E0D\u6E32\u67D3\u8BE5\u5355\u5143\u683C\r\n if (\r\n !method.createHookFunction(\r\n \"columnTitleCellRenderBefore\",\r\n abc,\r\n {\r\n c: c,\r\n left: start_c + offsetLeft - 1,\r\n width: end_c - start_c,\r\n height: Store.columnHeaderHeight - 1,\r\n },\r\n luckysheetTableContent,\r\n )\r\n ) {\r\n continue;\r\n }\r\n\r\n if (Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c] != null) {\r\n } else {\r\n luckysheetTableContent.fillStyle = \"#ffffff\";\r\n luckysheetTableContent.fillRect(start_c + offsetLeft - 1, 0, end_c - start_c, Store.columnHeaderHeight - 1);\r\n luckysheetTableContent.fillStyle = \"#000000\";\r\n\r\n //\u5217\u6807\u9898\u680F\u5E8F\u5217\u53F7\r\n luckysheetTableContent.save(); //save scale before draw text\r\n luckysheetTableContent.scale(Store.zoomRatio, Store.zoomRatio);\r\n\r\n let textMetrics = getMeasureText(abc, luckysheetTableContent);\r\n //luckysheetTableContent.measureText(abc);\r\n\r\n let horizonAlignPos = Math.round(start_c + (end_c - start_c) / 2 + offsetLeft - textMetrics.width / 2);\r\n let verticalAlignPos = Math.round(Store.columnHeaderHeight / 2);\r\n\r\n luckysheetTableContent.fillText(abc, horizonAlignPos / Store.zoomRatio, verticalAlignPos / Store.zoomRatio);\r\n luckysheetTableContent.restore(); //restore scale after draw text\r\n }\r\n\r\n //\u5217\u6807\u9898\u680F\u7AD6\u7EBF vertical\r\n if (\r\n Store.config[\"colhidden\"] != null &&\r\n Store.config[\"colhidden\"][c] == null &&\r\n Store.config[\"colhidden\"][c + 1] != null\r\n ) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c + offsetLeft - 4 + bodrder05, 0);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 4 + bodrder05, Store.columnHeaderHeight - 2);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n } else if (Store.config[\"colhidden\"] == null || Store.config[\"colhidden\"][c] == null) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c + offsetLeft - 2 + bodrder05, 0);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 2 + bodrder05, Store.columnHeaderHeight - 2);\r\n\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n\r\n if (Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c - 1] != null && preEndC != null) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(preEndC + offsetLeft + bodrder05, 0);\r\n luckysheetTableContent.lineTo(preEndC + offsetLeft + bodrder05, Store.columnHeaderHeight - 2);\r\n // luckysheetTableContent.lineWidth = 1;\r\n // luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n\r\n //horizen\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c + offsetLeft - 1, Store.columnHeaderHeight - 2 + bodrder05);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 1, Store.columnHeaderHeight - 2 + bodrder05);\r\n // luckysheetTableContent.lineWidth = 1;\r\n\r\n // luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n\r\n preEndC = end_c;\r\n\r\n method.createHookFunction(\r\n \"columnTitleCellRenderAfter\",\r\n abc,\r\n {\r\n c: c,\r\n left: start_c + offsetLeft - 1,\r\n width: end_c - start_c,\r\n height: Store.columnHeaderHeight - 1,\r\n },\r\n luckysheetTableContent,\r\n );\r\n }\r\n\r\n //\u5217\u6807\u9898\u680F\u6A2A\u7EBF\r\n // luckysheetTableContent.beginPath();\r\n // luckysheetTableContent.moveTo(\r\n // (offsetLeft - 1) ,\r\n // (Store.columnHeaderHeight - 2 + 0.5)\r\n // );\r\n // luckysheetTableContent.lineTo(\r\n // (Store.ch_width + offsetLeft - 2) ,\r\n // (Store.columnHeaderHeight - 2 + 0.5)\r\n // );\r\n // luckysheetTableContent.lineWidth = 1;\r\n // luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n // luckysheetTableContent.closePath();\r\n // luckysheetTableContent.stroke();\r\n\r\n //\u6E05\u9664canvas\u5DE6\u4E0A\u89D2\u533A\u57DF \u9632\u6B62\u5217\u6807\u9898\u680F\u5E8F\u5217\u53F7\u6EA2\u51FA\u663E\u793A\r\n // luckysheetTableContent.clearRect(0, 0, Store.rowHeaderWidth , Store.columnHeaderHeight );\r\n\r\n // Must be restored twice, otherwise it will be enlarged under window.devicePixelRatio = 1.5\r\n luckysheetTableContent.restore();\r\n luckysheetTableContent.restore();\r\n}\r\n\r\nfunction luckysheetDrawMain(\r\n scrollWidth,\r\n scrollHeight,\r\n drawWidth,\r\n drawHeight,\r\n offsetLeft,\r\n offsetTop,\r\n columnOffsetCell,\r\n rowOffsetCell,\r\n mycanvas,\r\n) {\r\n if (Store.flowdata == null) {\r\n return;\r\n }\r\n\r\n let sheetFile = sheetmanage.getSheetByIndex();\r\n\r\n // console.trace();\r\n clearTimeout(Store.measureTextCacheTimeOut);\r\n\r\n //\u53C2\u6570\u672A\u5B9A\u4E49\u5904\u7406\r\n if (scrollWidth == null) {\r\n scrollWidth = $(\"#luckysheet-cell-main\").scrollLeft();\r\n }\r\n if (scrollHeight == null) {\r\n scrollHeight = $(\"#luckysheet-cell-main\").scrollTop();\r\n }\r\n\r\n if (drawWidth == null) {\r\n drawWidth = Store.luckysheetTableContentHW[0];\r\n }\r\n if (drawHeight == null) {\r\n drawHeight = Store.luckysheetTableContentHW[1];\r\n }\r\n\r\n if (offsetLeft == null) {\r\n offsetLeft = Store.rowHeaderWidth;\r\n }\r\n if (offsetTop == null) {\r\n offsetTop = Store.columnHeaderHeight;\r\n }\r\n\r\n if (columnOffsetCell == null) {\r\n columnOffsetCell = 0;\r\n }\r\n if (rowOffsetCell == null) {\r\n rowOffsetCell = 0;\r\n }\r\n\r\n //\u8868\u683Ccanvas\r\n let luckysheetTableContent = null;\r\n if (mycanvas == null) {\r\n luckysheetTableContent = $(\"#luckysheetTableContent\")\r\n .get(0)\r\n .getContext(\"2d\");\r\n } else {\r\n if (getObjType(mycanvas) == \"object\") {\r\n try {\r\n luckysheetTableContent = mycanvas.get(0).getContext(\"2d\");\r\n } catch (err) {\r\n luckysheetTableContent = mycanvas;\r\n }\r\n } else {\r\n luckysheetTableContent = $(\"#\" + mycanvas)\r\n .get(0)\r\n .getContext(\"2d\");\r\n }\r\n }\r\n\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.scale(Store.devicePixelRatio, Store.devicePixelRatio);\r\n\r\n luckysheetTableContent.clearRect(0, 0, Store.luckysheetTableContentHW[0], Store.luckysheetTableContentHW[1]);\r\n\r\n //\u8868\u683C\u6E32\u67D3\u533A\u57DF \u8D77\u6B62\u884C\u5217\u4E0B\u6807\r\n let dataset_row_st, dataset_row_ed, dataset_col_st, dataset_col_ed;\r\n\r\n dataset_row_st = luckysheet_searcharray(Store.visibledatarow, scrollHeight);\r\n dataset_row_ed = luckysheet_searcharray(Store.visibledatarow, scrollHeight + drawHeight);\r\n\r\n if (dataset_row_st == -1) {\r\n dataset_row_st = 0;\r\n }\r\n\r\n dataset_row_st += rowOffsetCell;\r\n\r\n if (dataset_row_ed == -1) {\r\n dataset_row_ed = Store.visibledatarow.length - 1;\r\n }\r\n\r\n dataset_row_ed += rowOffsetCell;\r\n\r\n if (dataset_row_ed >= Store.visibledatarow.length) {\r\n dataset_row_ed = Store.visibledatarow.length - 1;\r\n }\r\n\r\n dataset_col_st = luckysheet_searcharray(Store.visibledatacolumn, scrollWidth);\r\n dataset_col_ed = luckysheet_searcharray(Store.visibledatacolumn, scrollWidth + drawWidth);\r\n\r\n if (dataset_col_st == -1) {\r\n dataset_col_st = 0;\r\n }\r\n\r\n dataset_col_st += columnOffsetCell;\r\n\r\n if (dataset_col_ed == -1) {\r\n dataset_col_ed = Store.visibledatacolumn.length - 1;\r\n }\r\n\r\n dataset_col_ed += columnOffsetCell;\r\n\r\n if (dataset_col_ed >= Store.visibledatacolumn.length) {\r\n dataset_col_ed = Store.visibledatacolumn.length - 1;\r\n }\r\n\r\n //\u8868\u683C\u6E32\u67D3\u533A\u57DF \u8D77\u6B62\u884C\u5217\u5750\u6807\r\n let fill_row_st, fill_row_ed, fill_col_st, fill_col_ed;\r\n\r\n if (dataset_row_st == 0) {\r\n fill_row_st = 0;\r\n } else {\r\n fill_row_st = Store.visibledatarow[dataset_row_st - 1];\r\n }\r\n\r\n fill_row_ed = Store.visibledatarow[dataset_row_ed];\r\n\r\n if (dataset_col_st == 0) {\r\n fill_col_st = 0;\r\n } else {\r\n fill_col_st = Store.visibledatacolumn[dataset_col_st - 1];\r\n }\r\n\r\n fill_col_ed = Store.visibledatacolumn[dataset_col_ed];\r\n\r\n //\u8868\u683Ccanvas \u521D\u59CB\u5316\u5904\u7406\r\n luckysheetTableContent.fillStyle = \"#ffffff\";\r\n luckysheetTableContent.fillRect(\r\n offsetLeft - 1,\r\n offsetTop - 1,\r\n fill_col_ed - scrollWidth,\r\n fill_row_ed - scrollHeight,\r\n );\r\n luckysheetTableContent.font = luckysheetdefaultFont();\r\n // luckysheetTableContent.textBaseline = \"top\";\r\n luckysheetTableContent.fillStyle = luckysheetdefaultstyle.fillStyle;\r\n\r\n //\u8868\u683C\u6E32\u67D3\u533A\u57DF \u975E\u7A7A\u5355\u5143\u683C\u884C\u5217 \u8D77\u6B62\u5750\u6807\r\n let cellupdate = [];\r\n let mergeCache = {};\r\n let borderOffset = {};\r\n\r\n let bodrder05 = 0.5; //Default 0.5\r\n\r\n // \u94A9\u5B50\u51FD\u6570\r\n method.createHookFunction(\"cellAllRenderBefore\", Store.flowdata, sheetFile, luckysheetTableContent);\r\n\r\n for (let r = dataset_row_st; r <= dataset_row_ed; r++) {\r\n let start_r;\r\n if (r == 0) {\r\n start_r = -scrollHeight - 1;\r\n } else {\r\n start_r = Store.visibledatarow[r - 1] - scrollHeight - 1;\r\n }\r\n\r\n let end_r = Store.visibledatarow[r] - scrollHeight;\r\n\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][r] != null) {\r\n continue;\r\n }\r\n\r\n for (let c = dataset_col_st; c <= dataset_col_ed; c++) {\r\n let start_c;\r\n if (c == 0) {\r\n start_c = -scrollWidth;\r\n } else {\r\n start_c = Store.visibledatacolumn[c - 1] - scrollWidth;\r\n }\r\n\r\n let end_c = Store.visibledatacolumn[c] - scrollWidth;\r\n\r\n if (Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c] != null) {\r\n continue;\r\n }\r\n\r\n let firstcolumnlen = Store.defaultcollen;\r\n if (Store.config[\"columnlen\"] != null && Store.config[\"columnlen\"][c] != null) {\r\n firstcolumnlen = Store.config[\"columnlen\"][c];\r\n }\r\n\r\n if (Store.flowdata[r] != null && Store.flowdata[r][c] != null) {\r\n let value = Store.flowdata[r][c];\r\n\r\n if (getObjType(value) == \"object\" && \"mc\" in value) {\r\n borderOffset[r + \"_\" + c] = {\r\n start_r: start_r,\r\n start_c: start_c,\r\n end_r: end_r,\r\n end_c: end_c,\r\n };\r\n\r\n if (\"rs\" in value[\"mc\"]) {\r\n let key = \"r\" + r + \"c\" + c;\r\n mergeCache[key] = cellupdate.length;\r\n } else {\r\n let key = \"r\" + value[\"mc\"].r + \"c\" + value[\"mc\"].c;\r\n let margeMain = cellupdate[mergeCache[key]];\r\n\r\n if (margeMain == null) {\r\n mergeCache[key] = cellupdate.length;\r\n cellupdate.push({\r\n r: r,\r\n c: c,\r\n start_c: start_c,\r\n start_r: start_r,\r\n end_r: end_r,\r\n end_c: end_c,\r\n firstcolumnlen: firstcolumnlen,\r\n });\r\n } else {\r\n if (margeMain.c == c) {\r\n margeMain.end_r += end_r - start_r - 1;\r\n }\r\n\r\n if (margeMain.r == r) {\r\n margeMain.end_c += end_c - start_c;\r\n margeMain.firstcolumnlen += firstcolumnlen;\r\n }\r\n }\r\n\r\n continue;\r\n }\r\n }\r\n } else {\r\n //\u7A7A\u5355\u5143\u683C\u6E32\u67D3\u524D\r\n // if(!method.createHookFunction(\"cellRenderBefore\", Store.flowdata[r][c], {\r\n // r:r,\r\n // c:c,\r\n // \"start_r\": cellsize[1],\r\n // \"start_c\":cellsize[0],\r\n // \"end_r\": cellsize[3],\r\n // \"end_c\": cellsize[2]\r\n // }, sheetFile,luckysheetTableContent)){ continue; }\r\n }\r\n\r\n cellupdate.push({\r\n r: r,\r\n c: c,\r\n start_r: start_r,\r\n start_c: start_c,\r\n end_r: end_r,\r\n end_c: end_c,\r\n firstcolumnlen: firstcolumnlen,\r\n });\r\n borderOffset[r + \"_\" + c] = {\r\n start_r: start_r,\r\n start_c: start_c,\r\n end_r: end_r,\r\n end_c: end_c,\r\n };\r\n }\r\n }\r\n\r\n //\u52A8\u6001\u6570\u7EC4\u516C\u5F0F\u8BA1\u7B97\r\n let dynamicArray_compute = dynamicArrayCompute(\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dynamicArray\"],\r\n );\r\n\r\n //\u4EA4\u66FF\u989C\u8272\u8BA1\u7B97\r\n let af_compute = alternateformat.getComputeMap();\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u8BA1\u7B97\r\n let cf_compute = conditionformat.getComputeMap();\r\n\r\n //\u8868\u683C\u6E32\u67D3\u533A\u57DF \u6EA2\u51FA\u5355\u5143\u683C\u914D\u7F6E\u4FDD\u5B58\r\n let cellOverflowMap = getCellOverflowMap(\r\n luckysheetTableContent,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n dataset_row_st,\r\n dataset_row_ed,\r\n );\r\n\r\n let mcArr = [];\r\n\r\n for (let cud = 0; cud < cellupdate.length; cud++) {\r\n let item = cellupdate[cud];\r\n let r = item.r,\r\n c = item.c,\r\n start_r = item.start_r,\r\n start_c = item.start_c,\r\n end_r = item.end_r,\r\n end_c = item.end_c;\r\n let firstcolumnlen = item.firstcolumnlen;\r\n\r\n if (Store.flowdata[r] == null) {\r\n continue;\r\n }\r\n\r\n // //\u6709\u503C\u5355\u5143\u683C\u6E32\u67D3\u524D\r\n // if(!method.createHookFunction(\"cellRenderBefore\", Store.flowdata[r][c], {\r\n // r:r,\r\n // c:c,\r\n // \"start_r\": cellsize[1],\r\n // \"start_c\":cellsize[0],\r\n // \"end_r\": cellsize[3],\r\n // \"end_c\": cellsize[2]\r\n // }, sheetFile,luckysheetTableContent)){ continue; }\r\n\r\n if (Store.flowdata[r][c] == null) {\r\n //\u7A7A\u5355\u5143\u683C\r\n nullCellRender(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n );\r\n } else {\r\n let cell = Store.flowdata[r][c];\r\n let value = null;\r\n\r\n if (typeof cell == \"object\" && \"mc\" in cell) {\r\n mcArr.push(cellupdate[cud]);\r\n // continue;\r\n } else {\r\n value = getRealCellValue(r, c);\r\n }\r\n\r\n if (value == null || value.toString().length == 0) {\r\n nullCellRender(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n );\r\n\r\n //sparklines\u6E32\u67D3\r\n let borderfix = menuButton.borderfix(Store.flowdata, r, c);\r\n let cellsize = [\r\n start_c + offsetLeft + borderfix[0],\r\n start_r + offsetTop + borderfix[1],\r\n end_c - start_c - 3 + borderfix[2],\r\n end_r - start_r - 3 - 1 + borderfix[3],\r\n ];\r\n sparklinesRender(r, c, cellsize[0], cellsize[1], \"luckysheetTableContent\", luckysheetTableContent);\r\n } else {\r\n if (r + \"_\" + c in dynamicArray_compute) {\r\n //\u52A8\u6001\u6570\u7EC4\u516C\u5F0F\r\n value = dynamicArray_compute[r + \"_\" + c].v;\r\n }\r\n\r\n cellRender(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n value,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n );\r\n }\r\n }\r\n\r\n // method.createHookFunction(\"cellRenderAfter\", Store.flowdata[r][c], {\r\n // r:r,\r\n // c:c,\r\n // \"start_r\": start_r,\r\n // \"start_c\": start_c,\r\n // \"end_r\": end_r,\r\n // \"end_c\": end_c\r\n // }, sheetFile,luckysheetTableContent)\r\n }\r\n\r\n //\u5408\u5E76\u5355\u5143\u683C\u518D\u5904\u7406\r\n for (let m = 0; m < mcArr.length; m++) {\r\n let item = mcArr[m];\r\n let r = item.r,\r\n c = item.c,\r\n start_r = item.start_r,\r\n start_c = item.start_c,\r\n end_r = item.end_r - 1,\r\n end_c = item.end_c - 1;\r\n let firstcolumnlen = item.firstcolumnlen;\r\n\r\n let cell = Store.flowdata[r][c];\r\n let value = null;\r\n\r\n let margeMaindata = cell[\"mc\"];\r\n\r\n value = getRealCellValue(margeMaindata.r, margeMaindata.c);\r\n\r\n r = margeMaindata.r;\r\n c = margeMaindata.c;\r\n\r\n let mainCell = Store.flowdata[r][c];\r\n\r\n if (c == 0) {\r\n start_c = -scrollWidth;\r\n } else {\r\n start_c = Store.visibledatacolumn[c - 1] - scrollWidth;\r\n }\r\n\r\n if (r == 0) {\r\n start_r = -scrollHeight - 1;\r\n } else {\r\n start_r = Store.visibledatarow[r - 1] - scrollHeight - 1;\r\n }\r\n\r\n end_r = Store.visibledatarow[r + mainCell[\"mc\"].rs - 1] - scrollHeight;\r\n end_c = Store.visibledatacolumn[c + mainCell[\"mc\"].cs - 1] - scrollWidth;\r\n\r\n if (value == null || value.toString().length == 0) {\r\n nullCellRender(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n true,\r\n );\r\n\r\n //sparklines\u6E32\u67D3\r\n let borderfix = menuButton.borderfix(Store.flowdata, r, c);\r\n let cellsize = [\r\n start_c + offsetLeft + borderfix[0],\r\n start_r + offsetTop + borderfix[1],\r\n end_c - start_c - 3 + borderfix[2],\r\n end_r - start_r - 3 - 1 + borderfix[3],\r\n ];\r\n sparklinesRender(r, c, cellsize[0], cellsize[1], \"luckysheetTableContent\", luckysheetTableContent);\r\n } else {\r\n if (r + \"_\" + c in dynamicArray_compute) {\r\n //\u52A8\u6001\u6570\u7EC4\u516C\u5F0F\r\n value = dynamicArray_compute[r + \"_\" + c].v;\r\n }\r\n cellRender(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n value,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n true,\r\n );\r\n }\r\n }\r\n\r\n //\u6570\u636E\u900F\u89C6\u8868\u8FB9\u6846\u6E32\u67D3\r\n for (let r = dataset_row_st; r <= dataset_row_ed; r++) {\r\n let start_r;\r\n if (r == 0) {\r\n start_r = -scrollHeight - 1;\r\n } else {\r\n start_r = Store.visibledatarow[r - 1] - scrollHeight - 1;\r\n }\r\n\r\n let end_r = Store.visibledatarow[r] - scrollHeight;\r\n\r\n for (let c = dataset_col_st; c <= dataset_col_ed; c++) {\r\n let start_c;\r\n if (c == 0) {\r\n start_c = -scrollWidth;\r\n } else {\r\n start_c = Store.visibledatacolumn[c - 1] - scrollWidth;\r\n }\r\n\r\n let end_c = Store.visibledatacolumn[c] - scrollWidth;\r\n\r\n //\u6570\u636E\u900F\u89C6\u8868\r\n if (!!Store.luckysheetcurrentisPivotTable && pivotTable.drawPivotTable) {\r\n if ((c == 0 || c == 5) && r <= 11) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c - 2 + bodrder05 + offsetLeft, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(\r\n end_c - 2 + bodrder05 + offsetLeft,\r\n end_r - 2 + bodrder05 + offsetTop,\r\n );\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = \"#000000\";\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n\r\n if ((r == 2 || r == 11) && c <= 5) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c - 1 + offsetLeft, end_r - 2 + bodrder05 + offsetTop);\r\n luckysheetTableContent.lineTo(\r\n end_c - 2 + bodrder05 + offsetLeft,\r\n end_r - 2 + bodrder05 + offsetTop,\r\n );\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = \"#000000\";\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n\r\n if (r == 6 && c == 3) {\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.font = \"bold 30px Arial\";\r\n luckysheetTableContent.fillStyle = \"#626675\";\r\n luckysheetTableContent.textAlign = \"center\";\r\n luckysheetTableContent.fillText(\r\n locale().pivotTable.title,\r\n start_c + (end_c - start_c) / 2 + 4 + offsetLeft,\r\n start_r + (end_r - start_r) / 2 - 1 + offsetTop,\r\n );\r\n luckysheetTableContent.restore();\r\n }\r\n } else if (!!Store.luckysheetcurrentisPivotTable) {\r\n if (c < pivotTable.pivotTableBoundary[1] && r < pivotTable.pivotTableBoundary[0]) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c - 2 + bodrder05 + offsetLeft, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(\r\n end_c - 2 + bodrder05 + offsetLeft,\r\n end_r - 2 + bodrder05 + offsetTop,\r\n );\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = \"#000000\";\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c - 1 + offsetLeft, end_r - 2 + bodrder05 + offsetTop);\r\n luckysheetTableContent.lineTo(end_c - 2 + offsetLeft, end_r - 2 + bodrder05 + offsetTop);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = \"#000000\";\r\n luckysheetTableContent.closePath();\r\n luckysheetTableContent.stroke();\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u8FB9\u6846\u5355\u72EC\u6E32\u67D3\r\n if (Store.config[\"borderInfo\"] != null && Store.config[\"borderInfo\"].length > 0) {\r\n //\u8FB9\u6846\u6E32\u67D3\r\n let borderLeftRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas) {\r\n let linetype = style;\r\n\r\n let m_st = start_c - 2 + bodrder05 + offsetLeft;\r\n let m_ed = start_r + offsetTop - 1;\r\n let line_st = start_c - 2 + bodrder05 + offsetLeft;\r\n let line_ed = end_r - 2 + bodrder05 + offsetTop;\r\n canvas.save();\r\n menuButton.setLineDash(canvas, linetype, \"v\", m_st, m_ed, line_st, line_ed);\r\n\r\n canvas.strokeStyle = color;\r\n\r\n canvas.stroke();\r\n canvas.closePath();\r\n canvas.restore();\r\n };\r\n\r\n let borderRightRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas) {\r\n let linetype = style;\r\n\r\n let m_st = end_c - 2 + bodrder05 + offsetLeft;\r\n let m_ed = start_r + offsetTop - 1;\r\n let line_st = end_c - 2 + bodrder05 + offsetLeft;\r\n let line_ed = end_r - 2 + bodrder05 + offsetTop;\r\n canvas.save();\r\n menuButton.setLineDash(canvas, linetype, \"v\", m_st, m_ed, line_st, line_ed);\r\n\r\n canvas.strokeStyle = color;\r\n\r\n canvas.stroke();\r\n canvas.closePath();\r\n canvas.restore();\r\n };\r\n\r\n let borderBottomRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas) {\r\n let linetype = style;\r\n\r\n let m_st = start_c - 2 + bodrder05 + offsetLeft;\r\n let m_ed = end_r - 2 + bodrder05 + offsetTop;\r\n let line_st = end_c - 2 + bodrder05 + offsetLeft;\r\n let line_ed = end_r - 2 + bodrder05 + offsetTop;\r\n canvas.save();\r\n menuButton.setLineDash(canvas, linetype, \"h\", m_st, m_ed, line_st, line_ed);\r\n\r\n canvas.strokeStyle = color;\r\n\r\n canvas.stroke();\r\n canvas.closePath();\r\n canvas.restore();\r\n };\r\n\r\n let borderTopRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas) {\r\n let linetype = style;\r\n\r\n let m_st = start_c - 2 + bodrder05 + offsetLeft;\r\n let m_ed = start_r - 1 + bodrder05 + offsetTop;\r\n let line_st = end_c - 2 + bodrder05 + offsetLeft;\r\n let line_ed = start_r - 1 + bodrder05 + offsetTop;\r\n canvas.save();\r\n menuButton.setLineDash(canvas, linetype, \"h\", m_st, m_ed, line_st, line_ed);\r\n\r\n canvas.strokeStyle = color;\r\n\r\n canvas.stroke();\r\n canvas.closePath();\r\n canvas.restore();\r\n };\r\n\r\n let borderInfoCompute = getBorderInfoComputeRange(\r\n dataset_row_st,\r\n dataset_row_ed,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n );\r\n\r\n for (let x in borderInfoCompute) {\r\n //let bd_r = x.split(\"_\")[0], bd_c = x.split(\"_\")[1];\r\n\r\n let bd_r = x.substr(0, x.indexOf(\"_\"));\r\n let bd_c = x.substr(x.indexOf(\"_\") + 1);\r\n\r\n // if(bd_r < dataset_row_st || bd_r > dataset_row_ed || bd_c < dataset_col_st || bd_c > dataset_col_ed){\r\n // continue;\r\n // }\r\n\r\n if (borderOffset[bd_r + \"_\" + bd_c]) {\r\n let start_r = borderOffset[bd_r + \"_\" + bd_c].start_r;\r\n let start_c = borderOffset[bd_r + \"_\" + bd_c].start_c;\r\n let end_r = borderOffset[bd_r + \"_\" + bd_c].end_r;\r\n let end_c = borderOffset[bd_r + \"_\" + bd_c].end_c;\r\n\r\n let cellOverflow_colInObj = cellOverflow_colIn(\r\n cellOverflowMap,\r\n bd_r,\r\n bd_c,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n );\r\n\r\n let borderLeft = borderInfoCompute[x].l;\r\n if (borderLeft != null && (!cellOverflow_colInObj.colIn || cellOverflow_colInObj.stc == bd_c)) {\r\n borderLeftRender(\r\n borderLeft.style,\r\n borderLeft.color,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n offsetLeft,\r\n offsetTop,\r\n luckysheetTableContent,\r\n );\r\n }\r\n\r\n let borderRight = borderInfoCompute[x].r;\r\n if (borderRight != null && (!cellOverflow_colInObj.colIn || cellOverflow_colInObj.colLast)) {\r\n borderRightRender(\r\n borderRight.style,\r\n borderRight.color,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n offsetLeft,\r\n offsetTop,\r\n luckysheetTableContent,\r\n );\r\n }\r\n\r\n let borderTop = borderInfoCompute[x].t;\r\n if (borderTop != null) {\r\n borderTopRender(\r\n borderTop.style,\r\n borderTop.color,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n offsetLeft,\r\n offsetTop,\r\n luckysheetTableContent,\r\n );\r\n }\r\n\r\n let borderBottom = borderInfoCompute[x].b;\r\n if (borderBottom != null) {\r\n borderBottomRender(\r\n borderBottom.style,\r\n borderBottom.color,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n offsetLeft,\r\n offsetTop,\r\n luckysheetTableContent,\r\n );\r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u6E32\u67D3\u8868\u683C\u65F6\u6709\u5C3E\u5217\u65F6\uFF0C\u6E05\u9664\u53F3\u8FB9\u7070\u8272\u533A\u57DF\uFF0C\u9632\u6B62\u8868\u683C\u6709\u503C\u6EA2\u51FA\r\n if (dataset_col_ed == Store.visibledatacolumn.length - 1) {\r\n luckysheetTableContent.clearRect(\r\n fill_col_ed - scrollWidth + offsetLeft - 1,\r\n offsetTop - 1,\r\n Store.ch_width - Store.visibledatacolumn[dataset_col_ed],\r\n fill_row_ed - scrollHeight,\r\n );\r\n }\r\n\r\n luckysheetTableContent.restore();\r\n\r\n Store.measureTextCacheTimeOut = setTimeout(() => {\r\n Store.measureTextCache = {};\r\n Store.measureTextCellInfoCache = {};\r\n Store.cellOverflowMapCache = {};\r\n }, 100);\r\n}\r\n\r\n//sparklines\u6E32\u67D3\r\nlet sparklinesRender = function(r, c, offsetX, offsetY, canvasid, ctx) {\r\n if (Store.flowdata[r] == null || Store.flowdata[r][c] == null) {\r\n return;\r\n }\r\n\r\n let sparklines = Store.flowdata[r][c].spl;\r\n if (sparklines != null) {\r\n if (typeof sparklines == \"string\") {\r\n sparklines = new Function(\"return \" + sparklines)();\r\n }\r\n\r\n if (getObjType(sparklines) == \"object\") {\r\n let temp1 = sparklines;\r\n let x = temp1.offsetX;\r\n let y = temp1.offsetY;\r\n x = x == null ? 0 : x;\r\n y = y == null ? 0 : y;\r\n luckysheetSparkline.render(\r\n temp1.shapeseq,\r\n temp1.shapes,\r\n offsetX + x,\r\n offsetY + y,\r\n temp1.pixelWidth,\r\n temp1.pixelHeight,\r\n canvasid,\r\n ctx,\r\n );\r\n } else if (getObjType(sparklines) == \"array\" && getObjType(sparklines[0]) == \"object\") {\r\n for (let i = 0; i < sparklines.length; i++) {\r\n let temp1 = sparklines[i];\r\n let x = temp1.offsetX;\r\n let y = temp1.offsetY;\r\n x = x == null ? 0 : x;\r\n y = y == null ? 0 : y;\r\n luckysheetSparkline.render(\r\n temp1.shapeseq,\r\n temp1.shapes,\r\n offsetX + x,\r\n offsetY + y,\r\n temp1.pixelWidth,\r\n temp1.pixelHeight,\r\n canvasid,\r\n ctx,\r\n );\r\n }\r\n }\r\n }\r\n};\r\n\r\n//\u7A7A\u767D\u5355\u5143\u683C\u6E32\u67D3\r\nlet nullCellRender = function(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n isMerge,\r\n) {\r\n let checksAF = alternateformat.checksAF(r, c, af_compute); //\u4EA4\u66FF\u989C\u8272\r\n let checksCF = conditionformat.checksCF(r, c, cf_compute); //\u6761\u4EF6\u683C\u5F0F\r\n\r\n let borderfix = menuButton.borderfix(Store.flowdata, r, c);\r\n\r\n //\u80CC\u666F\u8272\r\n let fillStyle = menuButton.checkstatus(Store.flowdata, r, c, \"bg\");\r\n\r\n if (checksAF != null && checksAF[1] != null) {\r\n //\u4EA4\u66FF\u989C\u8272\r\n fillStyle = checksAF[1];\r\n }\r\n\r\n if (checksCF != null && checksCF[\"cellColor\"] != null) {\r\n //\u6761\u4EF6\u683C\u5F0F\r\n fillStyle = checksCF[\"cellColor\"];\r\n }\r\n\r\n if (Store.flowdata[r][c] != null && Store.flowdata[r][c].tc != null) {\r\n //\u6807\u9898\u8272\r\n fillStyle = Store.flowdata[r][c].tc;\r\n }\r\n\r\n if (fillStyle == null) {\r\n luckysheetTableContent.fillStyle = \"#FFFFFF\";\r\n } else {\r\n luckysheetTableContent.fillStyle = fillStyle;\r\n }\r\n\r\n // \u8FD9\u91CC\u8BA1\u7B97canvas\u9700\u8981\u7ED8\u5236\u7684\u77E9\u5F62\u8303\u56F4\u65F6,\u9700\u8981\u7559\u4E0B\u539F\u672C\u5355\u5143\u683C\u8FB9\u6846\u7684\u4F4D\u7F6E\r\n // \u8BA9 fillRect \u7ED8\u5236\u77E9\u5F62\u7684\u8D77\u59CBxy\u5750\u6807\u589E\u52A01,\u7ED8\u5236\u957F\u5BBD\u51CF\u5C111\r\n\r\n let cellsize = [\r\n start_c + offsetLeft + borderfix[0] + 1,\r\n start_r + offsetTop + borderfix[1] + 1,\r\n end_c - start_c + borderfix[2] - (!!isMerge ? 1 : 0) - 1,\r\n end_r - start_r + borderfix[3] - 1,\r\n ];\r\n\r\n //\u5355\u5143\u683C\u6E32\u67D3\u524D\uFF0C\u8003\u8651\u5230\u5408\u5E76\u5355\u5143\u683C\u4F1A\u518D\u6B21\u6E32\u67D3\u4E00\u904D\uFF0C\u7EDF\u4E00\u653E\u5230\u8FD9\u91CC\r\n if (\r\n !method.createHookFunction(\r\n \"cellRenderBefore\",\r\n Store.flowdata[r][c],\r\n {\r\n r: r,\r\n c: c,\r\n start_r: cellsize[1],\r\n start_c: cellsize[0],\r\n end_r: cellsize[3] + cellsize[1],\r\n end_c: cellsize[2] + cellsize[0],\r\n },\r\n sheetmanage.getSheetByIndex(),\r\n luckysheetTableContent,\r\n )\r\n ) {\r\n return;\r\n }\r\n\r\n luckysheetTableContent.fillRect(cellsize[0], cellsize[1], cellsize[2], cellsize[3]);\r\n\r\n if (r + \"_\" + c in dynamicArray_compute) {\r\n let value = dynamicArray_compute[r + \"_\" + c].v;\r\n\r\n luckysheetTableContent.fillStyle = \"#000000\";\r\n //\u6587\u672C\u5BBD\u5EA6\u548C\u9AD8\u5EA6\r\n let fontset = luckysheetdefaultFont();\r\n luckysheetTableContent.font = fontset;\r\n\r\n //\u6C34\u5E73\u5BF9\u9F50 (\u9ED8\u8BA4\u4E3A1\uFF0C\u5DE6\u5BF9\u9F50)\r\n let horizonAlignPos = start_c + 4 + offsetLeft;\r\n\r\n //\u5782\u76F4\u5BF9\u9F50 (\u9ED8\u8BA4\u4E3A2\uFF0C\u4E0B\u5BF9\u9F50)\r\n let verticalFixed = browser.luckysheetrefreshfixed();\r\n let verticalAlignPos = end_r + offsetTop - 2;\r\n luckysheetTableContent.textBaseline = \"bottom\";\r\n\r\n luckysheetTableContent.fillText(value == null ? \"\" : value, horizonAlignPos, verticalAlignPos);\r\n }\r\n\r\n //\u82E5\u5355\u5143\u683C\u6709\u6279\u6CE8\r\n if (Store.flowdata[r][c] != null && Store.flowdata[r][c].ps != null) {\r\n let ps_w = 8 * Store.zoomRatio,\r\n ps_h = 8 * Store.zoomRatio;\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c + offsetLeft - 1 - ps_w, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 1, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 1, start_r + offsetTop + ps_h);\r\n luckysheetTableContent.fillStyle = \"#FC6666\";\r\n luckysheetTableContent.fill();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n //\u6B64\u5355\u5143\u683C \u4E0E \u6EA2\u51FA\u5355\u5143\u683C\u5173\u7CFB\r\n let cellOverflow_colInObj = cellOverflow_colIn(cellOverflowMap, r, c, dataset_col_st, dataset_col_ed);\r\n\r\n //\u6B64\u5355\u5143\u683C \u4E3A \u6EA2\u51FA\u5355\u5143\u683C\u6E32\u67D3\u8303\u56F4\u6700\u540E\u4E00\u5217\uFF0C\u7ED8\u5236\u6EA2\u51FA\u5355\u5143\u683C\u5185\u5BB9\r\n if (cellOverflow_colInObj.colLast) {\r\n cellOverflowRender(\r\n cellOverflow_colInObj.rowIndex,\r\n cellOverflow_colInObj.colIndex,\r\n cellOverflow_colInObj.stc,\r\n cellOverflow_colInObj.edc,\r\n luckysheetTableContent,\r\n scrollHeight,\r\n scrollWidth,\r\n offsetLeft,\r\n offsetTop,\r\n af_compute,\r\n cf_compute,\r\n );\r\n }\r\n\r\n //\u5373\u6EA2\u51FA\u5355\u5143\u683C\u8DE8\u6B64\u5355\u5143\u683C\uFF0C\u6B64\u5355\u5143\u683C\u4E0D\u7ED8\u5236\u53F3\u8FB9\u6846\r\n if (!cellOverflow_colInObj.colIn || cellOverflow_colInObj.colLast) {\r\n // \u53F3\u8FB9\u6846\r\n // \u65E0\u8BBA\u662F\u5426\u6709\u80CC\u666F\u8272\uFF0C\u90FD\u9ED8\u8BA4\u7ED8\u5236\u53F3\u8FB9\u6846\r\n if (!Store.luckysheetcurrentisPivotTable && Store.showGridLines) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c + offsetLeft - 2 + bodrder05, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 2 + bodrder05, end_r + offsetTop);\r\n luckysheetTableContent.lineWidth = 1;\r\n\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n }\r\n }\r\n\r\n // \u4E0B\u8FB9\u6846\r\n // \u65E0\u8BBA\u662F\u5426\u6709\u80CC\u666F\u8272\uFF0C\u90FD\u9ED8\u8BA4\u7ED8\u5236\u4E0B\u8FB9\u6846\r\n if (!Store.luckysheetcurrentisPivotTable && Store.showGridLines) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c + offsetLeft - 1, end_r + offsetTop - 2 + bodrder05);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 1, end_r + offsetTop - 2 + bodrder05);\r\n luckysheetTableContent.lineWidth = 1;\r\n\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n // \u5355\u5143\u683C\u6E32\u67D3\u540E\r\n method.createHookFunction(\r\n \"cellRenderAfter\",\r\n Store.flowdata[r][c],\r\n {\r\n r: r,\r\n c: c,\r\n start_r: cellsize[1],\r\n start_c: cellsize[0],\r\n end_r: cellsize[3] + cellsize[1],\r\n end_c: cellsize[2] + cellsize[0],\r\n },\r\n sheetmanage.getSheetByIndex(),\r\n luckysheetTableContent,\r\n );\r\n};\r\n\r\nlet cellRender = function(\r\n r,\r\n c,\r\n start_r,\r\n start_c,\r\n end_r,\r\n end_c,\r\n value,\r\n luckysheetTableContent,\r\n af_compute,\r\n cf_compute,\r\n offsetLeft,\r\n offsetTop,\r\n dynamicArray_compute,\r\n cellOverflowMap,\r\n dataset_col_st,\r\n dataset_col_ed,\r\n scrollHeight,\r\n scrollWidth,\r\n bodrder05,\r\n isMerge,\r\n) {\r\n let cell = Store.flowdata[r][c];\r\n let cellWidth = end_c - start_c - 2;\r\n let cellHeight = end_r - start_r - 2;\r\n let space_width = 2,\r\n space_height = 2; //\u5BBD\u9AD8\u65B9\u5411 \u95F4\u9699\r\n\r\n //\u6C34\u5E73\u5BF9\u9F50\r\n let horizonAlign = menuButton.checkstatus(Store.flowdata, r, c, \"ht\");\r\n //\u5782\u76F4\u5BF9\u9F50\r\n let verticalAlign = menuButton.checkstatus(Store.flowdata, r, c, \"vt\");\r\n\r\n //\u4EA4\u66FF\u989C\u8272\r\n let checksAF = alternateformat.checksAF(r, c, af_compute);\r\n //\u6761\u4EF6\u683C\u5F0F\r\n let checksCF = conditionformat.checksCF(r, c, cf_compute);\r\n\r\n //\u5355\u5143\u683C \u80CC\u666F\u989C\u8272\r\n let fillStyle = menuButton.checkstatus(Store.flowdata, r, c, \"bg\");\r\n if (checksAF != null && checksAF[1] != null) {\r\n //\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272 \u80CC\u666F\u989C\u8272\r\n fillStyle = checksAF[1];\r\n }\r\n if (checksCF != null && checksCF[\"cellColor\"] != null) {\r\n //\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F \u80CC\u666F\u989C\u8272\r\n fillStyle = checksCF[\"cellColor\"];\r\n }\r\n // luckysheetTableContent.textBaseline = 'top';\r\n if (fillStyle == null) {\r\n luckysheetTableContent.fillStyle = \"#FFFFFF\";\r\n } else {\r\n luckysheetTableContent.fillStyle = fillStyle;\r\n }\r\n\r\n let borderfix = menuButton.borderfix(Store.flowdata, r, c);\r\n\r\n // \u8FD9\u91CC\u8BA1\u7B97canvas\u9700\u8981\u7ED8\u5236\u7684\u77E9\u5F62\u8303\u56F4\u65F6,\u9700\u8981\u7559\u4E0B\u539F\u672C\u5355\u5143\u683C\u8FB9\u6846\u7684\u4F4D\u7F6E\r\n // \u8BA9 fillRect \u7ED8\u5236\u77E9\u5F62\u7684\u8D77\u59CBxy\u5750\u6807\u589E\u52A01,\u7ED8\u5236\u957F\u5BBD\u51CF\u5C111\r\n\r\n let cellsize = [\r\n start_c + offsetLeft + borderfix[0] + 1,\r\n start_r + offsetTop + borderfix[1] + 1,\r\n end_c - start_c + borderfix[2] - (!!isMerge ? 1 : 0) - 1,\r\n end_r - start_r + borderfix[3] + 1,\r\n ];\r\n\r\n //\u5355\u5143\u683C\u6E32\u67D3\u524D\uFF0C\u8003\u8651\u5230\u5408\u5E76\u5355\u5143\u683C\u4F1A\u518D\u6B21\u6E32\u67D3\u4E00\u904D\uFF0C\u7EDF\u4E00\u653E\u5230\u8FD9\u91CC\r\n if (\r\n !method.createHookFunction(\r\n \"cellRenderBefore\",\r\n Store.flowdata[r][c],\r\n {\r\n r: r,\r\n c: c,\r\n start_r: cellsize[1],\r\n start_c: cellsize[0],\r\n end_r: cellsize[3] + cellsize[1],\r\n end_c: cellsize[2] + cellsize[0],\r\n },\r\n sheetmanage.getSheetByIndex(),\r\n luckysheetTableContent,\r\n )\r\n ) {\r\n return;\r\n }\r\n\r\n luckysheetTableContent.fillRect(cellsize[0], cellsize[1], cellsize[2], cellsize[3]);\r\n\r\n let dataVerification = dataVerificationCtrl.dataVerification;\r\n\r\n if (\r\n dataVerification != null &&\r\n dataVerification[r + \"_\" + c] != null &&\r\n !dataVerificationCtrl.validateCellData(value, dataVerification[r + \"_\" + c])\r\n ) {\r\n //\u5355\u5143\u683C\u5DE6\u4E0A\u89D2\u7EA2\u8272\u5C0F\u4E09\u89D2\u6807\u793A\r\n let dv_w = 5 * Store.zoomRatio,\r\n dv_h = 5 * Store.zoomRatio; //\u7EA2\u8272\u5C0F\u4E09\u89D2\u5BBD\u9AD8\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c + offsetLeft, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(start_c + offsetLeft + dv_w, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(start_c + offsetLeft, start_r + offsetTop + dv_h);\r\n luckysheetTableContent.fillStyle = \"#FC6666\";\r\n luckysheetTableContent.fill();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n //\u82E5\u5355\u5143\u683C\u6709\u6279\u6CE8\uFF08\u5355\u5143\u683C\u53F3\u4E0A\u89D2\u7EA2\u8272\u5C0F\u4E09\u89D2\u6807\u793A\uFF09\r\n if (cell.ps != null) {\r\n let ps_w = 8 * Store.zoomRatio,\r\n ps_h = 8 * Store.zoomRatio; //\u7EA2\u8272\u5C0F\u4E09\u89D2\u5BBD\u9AD8\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c + offsetLeft - ps_w, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft, start_r + offsetTop + ps_h);\r\n luckysheetTableContent.fillStyle = \"#FC6666\";\r\n luckysheetTableContent.fill();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n //\u82E5\u5355\u5143\u683C\u5F3A\u5236\u4E3A\u5B57\u7B26\u4E32\uFF0C\u5219\u663E\u793A\u7EFF\u8272\u5C0F\u4E09\u89D2\r\n if (cell.qp == 1 && isRealNum(cell.v)) {\r\n let ps_w = 6 * Store.zoomRatio,\r\n ps_h = 6 * Store.zoomRatio; //\u7EA2\u8272\u5C0F\u4E09\u89D2\u5BBD\u9AD8\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c + offsetLeft + ps_w - 1, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(start_c + offsetLeft - 1, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(start_c + offsetLeft - 1, start_r + offsetTop + ps_h);\r\n luckysheetTableContent.fillStyle = \"#487f1e\";\r\n luckysheetTableContent.fill();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n //\u6EA2\u51FA\u5355\u5143\u683C\r\n let cellOverflow_bd_r_render = true; //\u6EA2\u51FA\u5355\u5143\u683C\u53F3\u8FB9\u6846\u662F\u5426\u9700\u8981\u7ED8\u5236\r\n let cellOverflow_colInObj = cellOverflow_colIn(cellOverflowMap, r, c, dataset_col_st, dataset_col_ed);\r\n\r\n if (cell.tb == \"1\" && cellOverflow_colInObj.colIn) {\r\n //\u6B64\u5355\u5143\u683C \u4E3A \u6EA2\u51FA\u5355\u5143\u683C\u6E32\u67D3\u8303\u56F4\u6700\u540E\u4E00\u5217\uFF0C\u7ED8\u5236\u6EA2\u51FA\u5355\u5143\u683C\u5185\u5BB9\r\n if (cellOverflow_colInObj.colLast) {\r\n cellOverflowRender(\r\n cellOverflow_colInObj.rowIndex,\r\n cellOverflow_colInObj.colIndex,\r\n cellOverflow_colInObj.stc,\r\n cellOverflow_colInObj.edc,\r\n luckysheetTableContent,\r\n scrollHeight,\r\n scrollWidth,\r\n offsetLeft,\r\n offsetTop,\r\n af_compute,\r\n cf_compute,\r\n );\r\n } else {\r\n cellOverflow_bd_r_render = false;\r\n }\r\n }\r\n //\u6570\u636E\u9A8C\u8BC1 \u590D\u9009\u6846\r\n else if (\r\n dataVerification != null &&\r\n dataVerification[r + \"_\" + c] != null &&\r\n dataVerification[r + \"_\" + c].type == \"checkbox\"\r\n ) {\r\n let pos_x = start_c + offsetLeft;\r\n let pos_y = start_r + offsetTop + 1;\r\n\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.rect(pos_x, pos_y, cellWidth, cellHeight);\r\n luckysheetTableContent.clip();\r\n luckysheetTableContent.scale(Store.zoomRatio, Store.zoomRatio);\r\n\r\n let measureText = getMeasureText(value, luckysheetTableContent);\r\n let textMetrics = measureText.width + 14;\r\n let oneLineTextHeight = measureText.actualBoundingBoxDescent + measureText.actualBoundingBoxAscent;\r\n\r\n let horizonAlignPos = pos_x + space_width; //\u9ED8\u8BA4\u4E3A1\uFF0C\u5DE6\u5BF9\u9F50\r\n if (horizonAlign == \"0\") {\r\n //\u5C45\u4E2D\u5BF9\u9F50\r\n horizonAlignPos = pos_x + cellWidth / 2 - textMetrics / 2;\r\n } else if (horizonAlign == \"2\") {\r\n //\u53F3\u5BF9\u9F50\r\n horizonAlignPos = pos_x + cellWidth - space_width - textMetrics;\r\n }\r\n\r\n let verticalCellHeight = cellHeight > oneLineTextHeight ? cellHeight : oneLineTextHeight;\r\n\r\n let verticalAlignPos_text = pos_y + verticalCellHeight - space_height; //\u6587\u672C\u5782\u76F4\u65B9\u5411\u57FA\u51C6\u7EBF\r\n luckysheetTableContent.textBaseline = \"bottom\";\r\n let verticalAlignPos_checkbox = verticalAlignPos_text - 13 * Store.zoomRatio;\r\n\r\n if (verticalAlign == \"0\") {\r\n //\u5C45\u4E2D\u5BF9\u9F50\r\n verticalAlignPos_text = pos_y + verticalCellHeight / 2;\r\n luckysheetTableContent.textBaseline = \"middle\";\r\n verticalAlignPos_checkbox = verticalAlignPos_text - 6 * Store.zoomRatio;\r\n } else if (verticalAlign == \"1\") {\r\n //\u4E0A\u5BF9\u9F50\r\n verticalAlignPos_text = pos_y + space_height;\r\n luckysheetTableContent.textBaseline = \"top\";\r\n verticalAlignPos_checkbox = verticalAlignPos_text + 1 * Store.zoomRatio;\r\n }\r\n\r\n horizonAlignPos = horizonAlignPos / Store.zoomRatio;\r\n verticalAlignPos_text = verticalAlignPos_text / Store.zoomRatio;\r\n verticalAlignPos_checkbox = verticalAlignPos_checkbox / Store.zoomRatio;\r\n\r\n //\u590D\u9009\u6846\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = \"#000\";\r\n luckysheetTableContent.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 10, 10);\r\n\r\n if (dataVerification[r + \"_\" + c].checked) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);\r\n luckysheetTableContent.lineTo(horizonAlignPos + 4, verticalAlignPos_checkbox + 9);\r\n luckysheetTableContent.lineTo(horizonAlignPos + 9, verticalAlignPos_checkbox + 2);\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n //\u6587\u672C\r\n luckysheetTableContent.fillStyle = menuButton.checkstatus(Store.flowdata, r, c, \"fc\");\r\n luckysheetTableContent.fillText(value == null ? \"\" : value, horizonAlignPos + 14, verticalAlignPos_text);\r\n\r\n luckysheetTableContent.restore();\r\n } else {\r\n //\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F\u6570\u636E\u6761\r\n if (\r\n checksCF != null &&\r\n checksCF[\"dataBar\"] != null &&\r\n checksCF[\"dataBar\"][\"valueLen\"] &&\r\n checksCF[\"dataBar\"][\"valueLen\"].toString() !== \"NaN\"\r\n ) {\r\n let x = start_c + offsetLeft + space_width;\r\n let y = start_r + offsetTop + space_height;\r\n let w = cellWidth - space_width * 2;\r\n let h = cellHeight - space_height * 2;\r\n\r\n let valueType = checksCF[\"dataBar\"][\"valueType\"];\r\n let valueLen = checksCF[\"dataBar\"][\"valueLen\"];\r\n let format = checksCF[\"dataBar\"][\"format\"];\r\n\r\n if (valueType == \"minus\") {\r\n //\u8D1F\u6570\r\n let minusLen = checksCF[\"dataBar\"][\"minusLen\"];\r\n\r\n if (format.length > 1) {\r\n //\u6E10\u53D8\r\n let my_gradient = luckysheetTableContent.createLinearGradient(\r\n x + w * minusLen * (1 - valueLen),\r\n y,\r\n x + w * minusLen,\r\n y,\r\n );\r\n my_gradient.addColorStop(0, \"#ffffff\");\r\n my_gradient.addColorStop(1, \"#ff0000\");\r\n\r\n luckysheetTableContent.fillStyle = my_gradient;\r\n } else {\r\n //\u5355\u8272\r\n luckysheetTableContent.fillStyle = \"#ff0000\";\r\n }\r\n\r\n luckysheetTableContent.fillRect(x + w * minusLen * (1 - valueLen), y, w * minusLen * valueLen, h);\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(x + w * minusLen * (1 - valueLen), y);\r\n luckysheetTableContent.lineTo(x + w * minusLen * (1 - valueLen), y + h);\r\n luckysheetTableContent.lineTo(x + w * minusLen, y + h);\r\n luckysheetTableContent.lineTo(x + w * minusLen, y);\r\n luckysheetTableContent.lineTo(x + w * minusLen * (1 - valueLen), y);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = \"#ff0000\";\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n } else if (valueType == \"plus\") {\r\n //\u6B63\u6570\r\n let plusLen = checksCF[\"dataBar\"][\"plusLen\"];\r\n\r\n if (plusLen == 1) {\r\n if (format.length > 1) {\r\n //\u6E10\u53D8\r\n let my_gradient = luckysheetTableContent.createLinearGradient(x, y, x + w * valueLen, y);\r\n my_gradient.addColorStop(0, format[0]);\r\n my_gradient.addColorStop(1, format[1]);\r\n\r\n luckysheetTableContent.fillStyle = my_gradient;\r\n } else {\r\n //\u5355\u8272\r\n luckysheetTableContent.fillStyle = format[0];\r\n }\r\n\r\n luckysheetTableContent.fillRect(x, y, w * valueLen, h);\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(x, y);\r\n luckysheetTableContent.lineTo(x, y + h);\r\n luckysheetTableContent.lineTo(x + w * valueLen, y + h);\r\n luckysheetTableContent.lineTo(x + w * valueLen, y);\r\n luckysheetTableContent.lineTo(x, y);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = format[0];\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n } else {\r\n let minusLen = checksCF[\"dataBar\"][\"minusLen\"];\r\n\r\n if (format.length > 1) {\r\n //\u6E10\u53D8\r\n let my_gradient = luckysheetTableContent.createLinearGradient(\r\n x + w * minusLen,\r\n y,\r\n x + w * minusLen + w * plusLen * valueLen,\r\n y,\r\n );\r\n my_gradient.addColorStop(0, format[0]);\r\n my_gradient.addColorStop(1, format[1]);\r\n\r\n luckysheetTableContent.fillStyle = my_gradient;\r\n } else {\r\n //\u5355\u8272\r\n luckysheetTableContent.fillStyle = format[0];\r\n }\r\n\r\n luckysheetTableContent.fillRect(x + w * minusLen, y, w * plusLen * valueLen, h);\r\n\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(x + w * minusLen, y);\r\n luckysheetTableContent.lineTo(x + w * minusLen, y + h);\r\n luckysheetTableContent.lineTo(x + w * minusLen + w * plusLen * valueLen, y + h);\r\n luckysheetTableContent.lineTo(x + w * minusLen + w * plusLen * valueLen, y);\r\n luckysheetTableContent.lineTo(x + w * minusLen, y);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = format[0];\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n }\r\n }\r\n }\r\n\r\n let pos_x = start_c + offsetLeft;\r\n let pos_y = start_r + offsetTop + 1;\r\n\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.rect(pos_x, pos_y, cellWidth, cellHeight);\r\n luckysheetTableContent.clip();\r\n luckysheetTableContent.scale(Store.zoomRatio, Store.zoomRatio);\r\n\r\n let textInfo = getCellTextInfo(cell, luckysheetTableContent, {\r\n cellWidth: cellWidth,\r\n cellHeight: cellHeight,\r\n space_width: space_width,\r\n space_height: space_height,\r\n r: r,\r\n c: c,\r\n });\r\n\r\n //\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F\u56FE\u6807\u96C6\r\n if (checksCF != null && checksCF[\"icons\"] != null && textInfo.type == \"plain\") {\r\n let l = checksCF[\"icons\"][\"left\"];\r\n let t = checksCF[\"icons\"][\"top\"];\r\n\r\n let value = textInfo.values[0];\r\n let horizonAlignPos = pos_x + value.left;\r\n let verticalAlignPos = pos_y + value.top - textInfo.textHeightAll;\r\n\r\n if (verticalAlign == \"0\") {\r\n //\u5C45\u4E2D\u5BF9\u9F50\r\n verticalAlignPos = pos_y + cellHeight / 2 - textInfo.textHeightAll / 2;\r\n } else if (verticalAlign == \"1\") {\r\n //\u4E0A\u5BF9\u9F50\r\n verticalAlignPos = pos_y;\r\n } else if (verticalAlign == \"2\") {\r\n //\u4E0B\u5BF9\u9F50\r\n verticalAlignPos = verticalAlignPos - textInfo.desc;\r\n }\r\n\r\n verticalAlignPos = verticalAlignPos / Store.zoomRatio;\r\n horizonAlignPos = horizonAlignPos / Store.zoomRatio;\r\n\r\n luckysheetTableContent.drawImage(\r\n luckysheet_CFiconsImg,\r\n l * 42,\r\n t * 32,\r\n 32,\r\n 32,\r\n pos_x / Store.zoomRatio,\r\n verticalAlignPos,\r\n textInfo.textHeightAll / Store.zoomRatio,\r\n textInfo.textHeightAll / Store.zoomRatio,\r\n );\r\n\r\n if (horizonAlign != \"0\" && horizonAlign != \"2\") {\r\n //\u5DE6\u5BF9\u9F50\u65F6 \u6587\u672C\u6E32\u67D3\u7A7A\u51FA\u4E00\u4E2A\u56FE\u6807\u7684\u8DDD\u79BB\r\n horizonAlignPos = horizonAlignPos + textInfo.textHeightAll / Store.zoomRatio;\r\n }\r\n }\r\n\r\n //\u5355\u5143\u683C \u6587\u672C\u989C\u8272\r\n luckysheetTableContent.fillStyle = menuButton.checkstatus(Store.flowdata, r, c, \"fc\");\r\n\r\n //\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272 \u6587\u672C\u989C\u8272\r\n if (checksAF != null && checksAF[0] != null) {\r\n luckysheetTableContent.fillStyle = checksAF[0];\r\n }\r\n //\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F \u6587\u672C\u989C\u8272\r\n if (checksCF != null && checksCF[\"textColor\"] != null) {\r\n luckysheetTableContent.fillStyle = checksCF[\"textColor\"];\r\n }\r\n\r\n //\u82E5\u5355\u5143\u683C\u683C\u5F0F\u4E3A\u81EA\u5B9A\u4E49\u6570\u5B57\u683C\u5F0F\uFF08[red]\uFF09 \u6587\u672C\u989C\u8272\u4E3A\u7EA2\u8272\r\n if (cell.ct && cell.ct.fa && cell.ct.fa.indexOf(\"[Red]\") > -1 && cell.ct.t == \"n\" && cell.v < 0) {\r\n luckysheetTableContent.fillStyle = \"#ff0000\";\r\n }\r\n\r\n cellTextRender(textInfo, luckysheetTableContent, {\r\n pos_x: pos_x,\r\n pos_y: pos_y,\r\n });\r\n\r\n luckysheetTableContent.restore();\r\n }\r\n\r\n if (cellOverflow_bd_r_render) {\r\n // \u53F3\u8FB9\u6846\r\n // \u65E0\u8BBA\u662F\u5426\u6709\u80CC\u666F\u8272\uFF0C\u90FD\u9ED8\u8BA4\u7ED8\u5236\u53F3\u8FB9\u6846\r\n if (!Store.luckysheetcurrentisPivotTable && Store.showGridLines) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(end_c + offsetLeft - 2 + bodrder05, start_r + offsetTop);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 2 + bodrder05, end_r + offsetTop);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n }\r\n }\r\n\r\n // \u4E0B\u8FB9\u6846\r\n // \u65E0\u8BBA\u662F\u5426\u6709\u80CC\u666F\u8272\uFF0C\u90FD\u9ED8\u8BA4\u7ED8\u5236\u4E0B\u8FB9\u6846\r\n if (!Store.luckysheetcurrentisPivotTable && Store.showGridLines) {\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.moveTo(start_c + offsetLeft - 1, end_r + offsetTop - 2 + bodrder05);\r\n luckysheetTableContent.lineTo(end_c + offsetLeft - 1, end_r + offsetTop - 2 + bodrder05);\r\n luckysheetTableContent.lineWidth = 1;\r\n luckysheetTableContent.strokeStyle = luckysheetdefaultstyle.strokeStyle;\r\n luckysheetTableContent.stroke();\r\n luckysheetTableContent.closePath();\r\n }\r\n\r\n // \u5355\u5143\u683C\u6E32\u67D3\u540E\r\n method.createHookFunction(\r\n \"cellRenderAfter\",\r\n Store.flowdata[r][c],\r\n {\r\n r: r,\r\n c: c,\r\n start_r: cellsize[1],\r\n start_c: cellsize[0],\r\n end_r: cellsize[3] + cellsize[1],\r\n end_c: cellsize[2] + cellsize[0],\r\n },\r\n sheetmanage.getSheetByIndex(),\r\n luckysheetTableContent,\r\n );\r\n};\r\n\r\n//\u6EA2\u51FA\u5355\u5143\u683C\u6E32\u67D3\r\nlet cellOverflowRender = function(\r\n r,\r\n c,\r\n stc,\r\n edc,\r\n luckysheetTableContent,\r\n scrollHeight,\r\n scrollWidth,\r\n offsetLeft,\r\n offsetTop,\r\n af_compute,\r\n cf_compute,\r\n) {\r\n //\u6EA2\u51FA\u5355\u5143\u683C \u8D77\u6B62\u884C\u5217\u5750\u6807\r\n let start_r;\r\n if (r == 0) {\r\n start_r = -scrollHeight - 1;\r\n } else {\r\n start_r = Store.visibledatarow[r - 1] - scrollHeight - 1;\r\n }\r\n\r\n let end_r = Store.visibledatarow[r] - scrollHeight;\r\n\r\n let start_c;\r\n if (stc == 0) {\r\n start_c = -scrollWidth;\r\n } else {\r\n start_c = Store.visibledatacolumn[stc - 1] - scrollWidth;\r\n }\r\n\r\n let end_c = Store.visibledatacolumn[edc] - scrollWidth;\r\n\r\n //\r\n let cell = Store.flowdata[r][c];\r\n let cellWidth = end_c - start_c - 2;\r\n let cellHeight = end_r - start_r - 2;\r\n let space_width = 2,\r\n space_height = 2; //\u5BBD\u9AD8\u65B9\u5411 \u95F4\u9699\r\n\r\n let pos_x = start_c + offsetLeft;\r\n let pos_y = start_r + offsetTop + 1;\r\n\r\n let fontset = luckysheetfontformat(cell);\r\n luckysheetTableContent.font = fontset;\r\n\r\n luckysheetTableContent.save();\r\n luckysheetTableContent.beginPath();\r\n luckysheetTableContent.rect(pos_x, pos_y, cellWidth, cellHeight);\r\n luckysheetTableContent.clip();\r\n luckysheetTableContent.scale(Store.zoomRatio, Store.zoomRatio);\r\n\r\n let textInfo = getCellTextInfo(cell, luckysheetTableContent, {\r\n cellWidth: cellWidth,\r\n cellHeight: cellHeight,\r\n space_width: space_width,\r\n space_height: space_height,\r\n r: r,\r\n c: c,\r\n });\r\n\r\n //\u4EA4\u66FF\u989C\u8272\r\n let checksAF = alternateformat.checksAF(r, c, af_compute);\r\n //\u6761\u4EF6\u683C\u5F0F\r\n let checksCF = conditionformat.checksCF(r, c, cf_compute);\r\n\r\n //\u5355\u5143\u683C \u6587\u672C\u989C\u8272\r\n luckysheetTableContent.fillStyle = menuButton.checkstatus(Store.flowdata, r, c, \"fc\");\r\n\r\n //\u82E5\u5355\u5143\u683C\u6709\u4EA4\u66FF\u989C\u8272 \u6587\u672C\u989C\u8272\r\n if (checksAF != null && checksAF[0] != null) {\r\n luckysheetTableContent.fillStyle = checksAF[0];\r\n }\r\n //\u82E5\u5355\u5143\u683C\u6709\u6761\u4EF6\u683C\u5F0F \u6587\u672C\u989C\u8272\r\n if (checksCF != null && checksCF[\"textColor\"] != null) {\r\n luckysheetTableContent.fillStyle = checksCF[\"textColor\"];\r\n }\r\n\r\n cellTextRender(textInfo, luckysheetTableContent, {\r\n pos_x: pos_x,\r\n pos_y: pos_y,\r\n });\r\n\r\n luckysheetTableContent.restore();\r\n};\r\n\r\n//\u83B7\u53D6\u8868\u683C\u6E32\u67D3\u8303\u56F4 \u6EA2\u51FA\u5355\u5143\u683C\r\nfunction getCellOverflowMap(canvas, col_st, col_ed, row_st, row_end) {\r\n let map = {};\r\n\r\n let data = Store.flowdata;\r\n\r\n for (let r = row_st; r <= row_end; r++) {\r\n if (data[r] == null) {\r\n continue;\r\n }\r\n\r\n if (Store.cellOverflowMapCache[r] != null) {\r\n map[r] = Store.cellOverflowMapCache[r];\r\n continue;\r\n }\r\n\r\n let hasCellOver = false;\r\n\r\n for (let c = 0; c < data[r].length; c++) {\r\n let cell = data[r][c];\r\n\r\n // if(Store.cellOverflowMapCache[r + '_' + c]!=null){\r\n // map[r + '_' + c] = Store.cellOverflowMapCache[r + '_' + c];\r\n // continue;\r\n // }\r\n\r\n if (Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c] != null) {\r\n continue;\r\n }\r\n\r\n if (\r\n cell != null &&\r\n (!isRealNull(cell.v) || isInlineStringCell(cell)) &&\r\n cell.mc == null &&\r\n cell.tb == \"1\"\r\n ) {\r\n //\u6C34\u5E73\u5BF9\u9F50\r\n let horizonAlign = menuButton.checkstatus(data, r, c, \"ht\");\r\n\r\n let textMetricsObj = getCellTextInfo(cell, canvas, {\r\n r: r,\r\n c: c,\r\n });\r\n let textMetrics = 0;\r\n if (textMetricsObj != null) {\r\n textMetrics = textMetricsObj.textWidthAll;\r\n }\r\n\r\n //canvas.measureText(value).width;\r\n\r\n let start_c = c - 1 < 0 ? 0 : Store.visibledatacolumn[c - 1];\r\n let end_c = Store.visibledatacolumn[c];\r\n\r\n let stc, edc;\r\n\r\n if (end_c - start_c < textMetrics) {\r\n if (horizonAlign == \"0\") {\r\n //\u5C45\u4E2D\u5BF9\u9F50\r\n let trace_forward = cellOverflow_trace(r, c, c - 1, \"forward\", horizonAlign, textMetrics);\r\n let trace_backward = cellOverflow_trace(r, c, c + 1, \"backward\", horizonAlign, textMetrics);\r\n\r\n if (trace_forward.success) {\r\n stc = trace_forward.c;\r\n } else {\r\n stc = trace_forward.c + 1;\r\n }\r\n\r\n if (trace_backward.success) {\r\n edc = trace_backward.c;\r\n } else {\r\n edc = trace_backward.c - 1;\r\n }\r\n } else if (horizonAlign == \"1\") {\r\n //\u5DE6\u5BF9\u9F50\r\n let trace = cellOverflow_trace(r, c, c + 1, \"backward\", horizonAlign, textMetrics);\r\n stc = c;\r\n\r\n if (trace.success) {\r\n edc = trace.c;\r\n } else {\r\n edc = trace.c - 1;\r\n }\r\n } else if (horizonAlign == \"2\") {\r\n //\u53F3\u5BF9\u9F50\r\n let trace = cellOverflow_trace(r, c, c - 1, \"forward\", horizonAlign, textMetrics);\r\n edc = c;\r\n\r\n if (trace.success) {\r\n stc = trace.c;\r\n } else {\r\n stc = trace.c + 1;\r\n }\r\n }\r\n } else {\r\n stc = c;\r\n edc = c;\r\n }\r\n\r\n // if(((stc >= col_st && stc <= col_ed) || (edc >= col_st && edc <= col_ed)) && stc < edc){\r\n if ((stc <= col_ed || edc >= col_st) && stc < edc) {\r\n let item = {\r\n r: r,\r\n stc: stc,\r\n edc: edc,\r\n };\r\n\r\n if (map[r] == null) {\r\n map[r] = {};\r\n }\r\n\r\n map[r][c] = item;\r\n\r\n // Store.cellOverflowMapCache[r + '_' + c] = item;\r\n\r\n hasCellOver = true;\r\n }\r\n }\r\n }\r\n\r\n if (hasCellOver) {\r\n Store.cellOverflowMapCache[r] = map[r];\r\n }\r\n }\r\n\r\n return map;\r\n}\r\n\r\nfunction cellOverflow_trace(r, curC, traceC, traceDir, horizonAlign, textMetrics) {\r\n let data = Store.flowdata;\r\n\r\n //\u8FFD\u6EAF\u5355\u5143\u683C\u5217\u8D85\u51FA\u6570\u7EC4\u8303\u56F4 \u5219\u8FFD\u6EAF\u7EC8\u6B62\r\n if (traceDir == \"forward\" && traceC < 0) {\r\n return {\r\n success: false,\r\n r: r,\r\n c: traceC,\r\n };\r\n }\r\n\r\n if (traceDir == \"backward\" && traceC > data[r].length - 1) {\r\n return {\r\n success: false,\r\n r: r,\r\n c: traceC,\r\n };\r\n }\r\n\r\n //\u8FFD\u6EAF\u5355\u5143\u683C\u662F \u975E\u7A7A\u5355\u5143\u683C\u6216\u5408\u5E76\u5355\u5143\u683C \u5219\u8FFD\u6EAF\u7EC8\u6B62\r\n let cell = data[r][traceC];\r\n if (cell != null && (!isRealNull(cell.v) || cell.mc != null)) {\r\n return {\r\n success: false,\r\n r: r,\r\n c: traceC,\r\n };\r\n }\r\n\r\n let start_curC = curC - 1 < 0 ? 0 : Store.visibledatacolumn[curC - 1];\r\n let end_curC = Store.visibledatacolumn[curC];\r\n\r\n let w = textMetrics - (end_curC - start_curC);\r\n\r\n if (horizonAlign == \"0\") {\r\n //\u5C45\u4E2D\u5BF9\u9F50\r\n start_curC -= w / 2;\r\n end_curC += w / 2;\r\n } else if (horizonAlign == \"1\") {\r\n //\u5DE6\u5BF9\u9F50\r\n end_curC += w;\r\n } else if (horizonAlign == \"2\") {\r\n //\u53F3\u5BF9\u9F50\r\n start_curC -= w;\r\n }\r\n\r\n let start_traceC = traceC - 1 < 0 ? 0 : Store.visibledatacolumn[traceC - 1];\r\n let end_traceC = Store.visibledatacolumn[traceC];\r\n\r\n if (traceDir == \"forward\") {\r\n if (start_curC < start_traceC) {\r\n return cellOverflow_trace(r, curC, traceC - 1, traceDir, horizonAlign, textMetrics);\r\n } else if (start_curC < end_traceC) {\r\n return {\r\n success: true,\r\n r: r,\r\n c: traceC,\r\n };\r\n } else {\r\n return {\r\n success: false,\r\n r: r,\r\n c: traceC,\r\n };\r\n }\r\n }\r\n\r\n if (traceDir == \"backward\") {\r\n if (end_curC > end_traceC) {\r\n return cellOverflow_trace(r, curC, traceC + 1, traceDir, horizonAlign, textMetrics);\r\n } else if (end_curC > start_traceC) {\r\n return {\r\n success: true,\r\n r: r,\r\n c: traceC,\r\n };\r\n } else {\r\n return {\r\n success: false,\r\n r: r,\r\n c: traceC,\r\n };\r\n }\r\n }\r\n}\r\n\r\nfunction cellOverflow_colIn(map, r, c, col_st, col_ed) {\r\n let colIn = false, //\u6B64\u5355\u5143\u683C \u662F\u5426\u5728 \u67D0\u4E2A\u6EA2\u51FA\u5355\u5143\u683C\u7684\u6E32\u67D3\u8303\u56F4\r\n colLast = false, //\u6B64\u5355\u5143\u683C \u662F\u5426\u662F \u67D0\u4E2A\u6EA2\u51FA\u5355\u5143\u683C\u7684\u6E32\u67D3\u8303\u56F4\u7684\u6700\u540E\u4E00\u5217\r\n rowIndex, //\u6EA2\u51FA\u5355\u5143\u683C \u884C\u4E0B\u6807\r\n colIndex, //\u6EA2\u51FA\u5355\u5143\u683C \u5217\u4E0B\u6807\r\n stc,\r\n edc;\r\n\r\n for (let rkey in map) {\r\n for (let ckey in map[rkey]) {\r\n rowIndex = rkey;\r\n colIndex = ckey;\r\n // rowIndex = key.substr(0, key.indexOf('_'));\r\n // colIndex = key.substr(key.indexOf('_') + 1);\r\n let mapItem = map[rkey][ckey];\r\n stc = mapItem.stc;\r\n edc = mapItem.edc;\r\n\r\n if (rowIndex == r) {\r\n if (c >= stc && c <= edc) {\r\n colIn = true;\r\n\r\n if (c == edc || c == col_ed) {\r\n colLast = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (colLast) {\r\n break;\r\n }\r\n }\r\n\r\n return {\r\n colIn: colIn,\r\n colLast: colLast,\r\n rowIndex: rowIndex,\r\n colIndex: colIndex,\r\n stc: stc,\r\n edc: edc,\r\n };\r\n}\r\n\r\nfunction cellTextRender(textInfo, ctx, option) {\r\n if (textInfo == null) {\r\n return;\r\n }\r\n let values = textInfo.values;\r\n let pos_x = option.pos_x,\r\n pos_y = option.pos_y;\r\n if (values == null) {\r\n return;\r\n }\r\n // console.log(textInfo, pos_x, pos_y, values[0].width, values[0].left, ctx);\r\n\r\n // for(let i=0;i {\r\n sheetListOption += ``;\r\n })\r\n\r\n let content = `
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
`;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-insertLink-dialog\", \r\n \"addclass\": \"luckysheet-insertLink-dialog\", \r\n \"title\": toolbarText.insertLink, \r\n \"content\": content, \r\n \"botton\": `\r\n `, \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-insertLink-dialog\").find(\".luckysheet-modal-dialog-content\").css(\"min-width\", 350).end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), \r\n winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), \r\n scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-insertLink-dialog\").css({ \r\n \"left\": (winw + scrollLeft - myw) / 2, \r\n \"top\": (winh + scrollTop - myh) / 3 \r\n }).show();\r\n\r\n _this.dataAllocation();\r\n },\r\n init: function (){\r\n let _this = this;\r\n\r\n const _locale = locale();\r\n const hyperlinkText = _locale.insertLink;\r\n\r\n //\u94FE\u63A5\u7C7B\u578B\r\n $(document).off(\"change.linkType\").on(\"change.linkType\", \"#luckysheet-insertLink-dialog-linkType\", function(e){\r\n let value = this.value;\r\n\r\n $(\"#luckysheet-insertLink-dialog .show-box\").hide();\r\n $(\"#luckysheet-insertLink-dialog .show-box-\" + value).show();\r\n })\r\n\r\n //\u786E\u8BA4\u6309\u94AE\r\n $(document).off(\"click.confirm\").on(\"click.confirm\", \"#luckysheet-insertLink-dialog-confirm\", function(e){\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rowIndex = last.row_focus || last.row[0];\r\n let colIndex = last.column_focus || last.column[0];\r\n\r\n //\u6587\u672C\r\n let linkText = $(\"#luckysheet-insertLink-dialog-linkText\").val();\r\n\r\n let linkType = $(\"#luckysheet-insertLink-dialog-linkType\").val();\r\n let linkAddress = $(\"#luckysheet-insertLink-dialog-linkAddress\").val();\r\n let linkSheet = $(\"#luckysheet-insertLink-dialog-linkSheet\").val();\r\n let linkCell = $(\"#luckysheet-insertLink-dialog-linkCell\").val();\r\n let linkTooltip = $(\"#luckysheet-insertLink-dialog-linkTooltip\").val();\r\n\r\n if(linkType == 'external'){\r\n if(!/^http[s]?:\\/\\//.test(linkAddress)){\r\n linkAddress = 'https://' + linkAddress;\r\n }\r\n\r\n if(!/^http[s]?:\\/\\/([\\w\\-\\.]+)+[\\w-]*([\\w\\-\\.\\/\\?%&=]+)?$/ig.test(linkAddress)){\r\n tooltip.info('', hyperlinkText.tooltipInfo1);\r\n return;\r\n }\r\n }\r\n else{\r\n if(!formula.iscelldata(linkCell)){\r\n tooltip.info('', hyperlinkText.tooltipInfo2);\r\n return;\r\n }\r\n\r\n linkAddress = linkSheet + \"!\" + linkCell;\r\n }\r\n\r\n if(linkText == null || linkText.replace(/\\s/g, '') == ''){\r\n linkText = linkAddress;\r\n }\r\n\r\n let item = {\r\n linkType: linkType,\r\n linkAddress: linkAddress,\r\n linkTooltip: linkTooltip,\r\n }\r\n\r\n let historyHyperlink = $.extend(true, {}, _this.hyperlink);\r\n let currentHyperlink = $.extend(true, {}, _this.hyperlink);\r\n\r\n currentHyperlink[rowIndex + \"_\" + colIndex] = item;\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata);\r\n let cell = d[rowIndex][colIndex];\r\n\r\n if(cell == null){\r\n cell = {};\r\n }\r\n\r\n cell.fc = 'rgb(0, 0, 255)';\r\n cell.un = 1;\r\n cell.v = cell.m = linkText;\r\n\r\n d[rowIndex][colIndex] = cell;\r\n\r\n _this.ref(\r\n historyHyperlink, \r\n currentHyperlink, \r\n Store.currentSheetIndex, \r\n d, \r\n [{ row: [rowIndex, rowIndex], column: [colIndex, colIndex] }]\r\n );\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-insertLink-dialog\").hide();\r\n })\r\n },\r\n dataAllocation: function(){\r\n let _this = this;\r\n\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let rowIndex = last.row_focus || last.row[0];\r\n let colIndex = last.column_focus || last.column[0];\r\n\r\n let hyperlink = _this.hyperlink || {};\r\n let item = hyperlink[rowIndex + \"_\" + colIndex] || {};\r\n\r\n //\u6587\u672C\r\n let text = getcellvalue(rowIndex, colIndex, null, 'm');\r\n $(\"#luckysheet-insertLink-dialog-linkText\").val(text);\r\n\r\n //\u94FE\u63A5\u7C7B\u578B\r\n let linkType = item.linkType || 'external';\r\n $(\"#luckysheet-insertLink-dialog-linkType\").val(linkType);\r\n\r\n $(\"#luckysheet-insertLink-dialog .show-box\").hide();\r\n $(\"#luckysheet-insertLink-dialog .show-box-\" + linkType).show();\r\n\r\n //\u94FE\u63A5\u5730\u5740\r\n let linkAddress = item.linkAddress || '';\r\n\r\n if(linkType == 'external'){\r\n $(\"#luckysheet-insertLink-dialog-linkAddress\").val(linkAddress);\r\n }\r\n else{\r\n if(formula.iscelldata(linkAddress)){\r\n let sheettxt = linkAddress.split(\"!\")[0];\r\n let rangetxt = linkAddress.split(\"!\")[1];\r\n\r\n $(\"#luckysheet-insertLink-dialog-linkSheet\").val(sheettxt);\r\n $(\"#luckysheet-insertLink-dialog-linkCell\").val(rangetxt);\r\n }\r\n }\r\n\r\n //\u63D0\u793A\r\n let linkTooltip = item.linkTooltip || '';\r\n $(\"#luckysheet-insertLink-dialog-linkTooltip\").val(linkTooltip);\r\n },\r\n cellFocus: function(r, c){\r\n let _this = this;\r\n\r\n if(_this.hyperlink == null || _this.hyperlink[r + '_' + c] == null){\r\n return;\r\n }\r\n\r\n let item = _this.hyperlink[r + '_' + c];\r\n\r\n if(item.linkType == 'external'){\r\n window.open(item.linkAddress);\r\n }\r\n else{\r\n let cellrange = formula.getcellrange(item.linkAddress);\r\n let sheetIndex = cellrange.sheetIndex;\r\n let range = [{\r\n row: cellrange.row,\r\n column: cellrange.column\r\n }];\r\n\r\n if(sheetIndex != Store.currentSheetIndex){\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-sheets-item\" + sheetIndex).addClass(\"luckysheet-sheets-item-active\");\r\n\r\n sheetmanage.changeSheet(sheetIndex);\r\n }\r\n\r\n Store.luckysheet_select_save = range;\r\n selectHightlightShow(true);\r\n\r\n let row_pre = cellrange.row[0] - 1 == -1 ? 0 : Store.visibledatarow[cellrange.row[0] - 1];\r\n let col_pre = cellrange.column[0] - 1 == -1 ? 0 : Store.visibledatacolumn[cellrange.column[0] - 1];\r\n\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(col_pre);\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(row_pre);\r\n }\r\n },\r\n overshow: function(event){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-hyperlink-overshow\").remove();\r\n\r\n if($(event.target).closest(\"#luckysheet-cell-main\").length == 0){\r\n return;\r\n }\r\n\r\n let mouse = mouseposition(event.pageX, event.pageY);\r\n let scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n let scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n let x = mouse[0] + scrollLeft;\r\n let y = mouse[1] + scrollTop;\r\n\r\n if(luckysheetFreezen.freezenverticaldata != null && mouse[0] < (luckysheetFreezen.freezenverticaldata[0] - luckysheetFreezen.freezenverticaldata[2])){\r\n return;\r\n }\r\n\r\n if(luckysheetFreezen.freezenhorizontaldata != null && mouse[1] < (luckysheetFreezen.freezenhorizontaldata[0] - luckysheetFreezen.freezenhorizontaldata[2])){\r\n return;\r\n }\r\n\r\n let row_index = rowLocation(y)[2];\r\n let col_index = colLocation(x)[2];\r\n\r\n let margeset = menuButton.mergeborer(Store.flowdata, row_index, col_index);\r\n if(!!margeset){\r\n row_index = margeset.row[2];\r\n col_index = margeset.column[2];\r\n }\r\n\r\n if(_this.hyperlink == null || _this.hyperlink[row_index + \"_\" + col_index] == null){\r\n return;\r\n }\r\n\r\n let item = _this.hyperlink[row_index + \"_\" + col_index];\r\n let linkTooltip = item.linkTooltip;\r\n\r\n if(linkTooltip == null || linkTooltip.replace(/\\s/g, '') == ''){\r\n linkTooltip = item.linkAddress;\r\n }\r\n\r\n let row = Store.visibledatarow[row_index], \r\n row_pre = row_index - 1 == -1 ? 0 : Store.visibledatarow[row_index - 1];\r\n let col = Store.visibledatacolumn[col_index], \r\n col_pre = col_index - 1 == -1 ? 0 : Store.visibledatacolumn[col_index - 1];\r\n\r\n if(!!margeset){\r\n row = margeset.row[1];\r\n row_pre = margeset.row[0];\r\n \r\n col = margeset.column[1];\r\n col_pre = margeset.column[0];\r\n }\r\n\r\n let html = ``;\r\n\r\n $(html).appendTo($(\"#luckysheet-cell-main\"));\r\n },\r\n ref: function(historyHyperlink, currentHyperlink, sheetIndex, d, range){\r\n let _this = this;\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n let redo = {};\r\n redo[\"type\"] = \"updateHyperlink\";\r\n redo[\"sheetIndex\"] = sheetIndex;\r\n redo[\"historyHyperlink\"] = historyHyperlink;\r\n redo[\"currentHyperlink\"] = currentHyperlink;\r\n redo[\"data\"] = Store.flowdata; \r\n redo[\"curData\"] = d;\r\n redo[\"range\"] = range; \r\n Store.jfredo.push(redo); \r\n }\r\n\r\n _this.hyperlink = currentHyperlink;\r\n Store.luckysheetfile[getSheetIndex(sheetIndex)].hyperlink = currentHyperlink;\r\n\r\n Store.flowdata = d;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n Store.luckysheetfile[getSheetIndex(sheetIndex)].data = Store.flowdata;\r\n\r\n //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n if(server.allowUpdate){ \r\n server.saveParam(\"all\", sheetIndex, currentHyperlink, { \"k\": \"hyperlink\" });\r\n server.historyParam(Store.flowdata, sheetIndex, range[0]);\r\n }\r\n\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n}\r\n\r\nexport default hyperlinkCtrl;", "import rhchInit from './rhchInit';\r\nimport formula from './formula';\r\nimport editor from './editor';\r\nimport { setcellvalue } from './setdata';\r\nimport { getcellFormula } from './getdata';\r\nimport { computeRowlenArr } from './getRowlen';\r\nimport { \r\n luckysheetDrawMain, \r\n luckysheetDrawgridRowTitle, \r\n luckysheetDrawgridColumnTitle \r\n} from './draw';\r\nimport luckysheetFreezen from '../controllers/freezen';\r\nimport server from '../controllers/server';\r\nimport sheetmanage from '../controllers/sheetmanage';\r\nimport luckysheetPostil from '../controllers/postil';\r\nimport dataVerificationCtrl from '../controllers/dataVerificationCtrl';\r\nimport hyperlinkCtrl from '../controllers/hyperlinkCtrl';\r\nimport { selectHightlightShow, selectionCopyShow, collaborativeEditBox } from '../controllers/select';\r\nimport { createFilterOptions } from '../controllers/filter';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport Store from '../store';\r\n\r\nlet refreshCanvasTimeOut = null;\r\n\r\nfunction runExecFunction(range, index, data){\r\n formula.execFunctionExist = [];\r\n for(let s = 0; s < range.length; s++){\r\n for(let r = range[s].row[0]; r <= range[s].row[1]; r++){\r\n for(let c = range[s].column[0]; c <= range[s].column[1]; c++){\r\n formula.execFunctionExist.push({ \"r\": r, \"c\": c, \"i\": index });\r\n }\r\n }\r\n }\r\n formula.execFunctionExist.reverse();\r\n formula.execFunctionGroup(null, null, null, null, data);\r\n formula.execFunctionGlobalData = null;\r\n}\r\n\r\nfunction jfrefreshgrid(data, range, allParam, isRunExecFunction = true, isRefreshCanvas = true) {\r\n if(data == null){\r\n data = Store.flowdata;\r\n }\r\n\r\n if(range == null){\r\n range = Store.luckysheet_select_save;\r\n }\r\n range = JSON.parse(JSON.stringify(range));\r\n\r\n clearTimeout(refreshCanvasTimeOut);\r\n\r\n //\u5173\u8054\u53C2\u6570\r\n if(allParam == null){\r\n allParam = {};\r\n }\r\n\r\n let cfg = allParam[\"cfg\"]; //config\r\n let calc = allParam[\"calc\"];\r\n let RowlChange = allParam[\"RowlChange\"]; //\u884C\u9AD8\u6539\u53D8\r\n let cdformat = allParam[\"cdformat\"]; //\u6761\u4EF6\u683C\u5F0F\r\n let dataVerification = allParam[\"dataVerification\"]; //\u6570\u636E\u9A8C\u8BC1\r\n let dynamicArray = allParam[\"dynamicArray\"]; //\u52A8\u6001\u6570\u7EC4\r\n let hyperlink = allParam[\"hyperlink\"];\r\n\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n let curConfig;\r\n if(cfg == null){\r\n curConfig = $.extend(true, {}, Store.config);\r\n }\r\n else{\r\n curConfig = $.extend(true, {}, cfg);\r\n }\r\n\r\n let curCdformat;\r\n if(cdformat == null){\r\n curCdformat = $.extend(true, [], file[\"luckysheet_conditionformat_save\"]);\r\n }\r\n else{\r\n curCdformat = cdformat;\r\n }\r\n\r\n let curDataVerification;\r\n if(dataVerification == null){\r\n curDataVerification = $.extend(true, {}, file[\"dataVerification\"])\r\n }\r\n else{\r\n curDataVerification = dataVerification;\r\n }\r\n\r\n let curDynamicArray;\r\n if(dynamicArray == null){\r\n curDynamicArray = $.extend(true, [], file[\"dynamicArray\"]);\r\n }\r\n else{\r\n curDynamicArray = dynamicArray;\r\n }\r\n \r\n Store.jfredo.push({ \r\n \"type\": \"datachange\", \r\n \"data\": Store.flowdata, \r\n \"curdata\": data,\r\n \"sheetIndex\": Store.currentSheetIndex, \r\n \"config\": $.extend(true, {}, Store.config), \r\n \"curConfig\": curConfig,\r\n \"calc\": $.extend(true, [], file.calcChain),\r\n \"curCalc\": calc,\r\n \"cdformat\": $.extend(true, [], file[\"luckysheet_conditionformat_save\"]),\r\n \"curCdformat\": curCdformat,\r\n \"RowlChange\": RowlChange,\r\n \"dataVerification\": $.extend(true, [], file[\"dataVerification\"]),\r\n \"curDataVerification\": curDataVerification,\r\n \"dynamicArray\": $.extend(true, [], file[\"dynamicArray\"]),\r\n \"curDynamicArray\": curDynamicArray,\r\n \"hyperlink\": hyperlink && $.extend(true, {}, file.hyperlink),\r\n \"curHyperlink\": hyperlink,\r\n \"range\": range,\r\n \"dataRange\": [...file.luckysheet_select_save]// \u4FDD\u7559\u64CD\u4F5C\u65F6\u7684\u9009\u533A\r\n });\r\n }\r\n\r\n //Store.flowdata\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n file.data = Store.flowdata;\r\n\r\n // \u5FC5\u987B\u8981\u5904\u7406\uFF0C\u53EF\u80FD\u4E4B\u524D\u7684config\u4E3A\u7A7A\uFF0C\u5219\u4E5F\u9700\u8981\u6E05\u7A7A\r\n if(cfg != null){\r\n Store.config = cfg;\r\n file.config = Store.config;\r\n\r\n server.saveParam(\"all\", Store.currentSheetIndex, cfg, { \"k\": \"config\" });\r\n\r\n if(RowlChange != null){\r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n }\r\n }\r\n\r\n if(calc != null){\r\n file.calcChain = calc;\r\n server.saveParam(\"all\", Store.currentSheetIndex, calc, { \"k\": \"calcChain\" });\r\n }\r\n\r\n //condition format, null or empty array are not processed\r\n if(cdformat != null && cdformat.length !== 0){\r\n file[\"luckysheet_conditionformat_save\"] = cdformat;\r\n\r\n server.saveParam(\"all\", Store.currentSheetIndex, cdformat, { \"k\": \"luckysheet_conditionformat_save\" });\r\n }\r\n\r\n //data Verification, null or empty object are not processed\r\n if(dataVerification != null && Object.keys(dataVerification).length !== 0){\r\n dataVerificationCtrl.dataVerification = dataVerification;\r\n file[\"dataVerification\"] = dataVerification;\r\n server.saveParam(\"all\", Store.currentSheetIndex, dataVerification, { \"k\": \"dataVerification\" });\r\n }\r\n\r\n //\u52A8\u6001\u6570\u7EC4\r\n if(dynamicArray != null){\r\n file[\"dynamicArray\"] = dynamicArray;\r\n\r\n server.saveParam(\"all\", Store.currentSheetIndex, dynamicArray, { \"k\": \"dynamicArray\" });\r\n }\r\n\r\n if(hyperlink != null){\r\n file[\"hyperlink\"] = hyperlink;\r\n hyperlinkCtrl.hyperlink = hyperlink;\r\n server.saveParam(\"all\", Store.currentSheetIndex, hyperlink, { \"k\": \"hyperlink\" });\r\n }\r\n\r\n //\u66F4\u65B0\u6570\u636E\u7684\u8303\u56F4\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0];\r\n let c1 = range[s].column[0];\r\n\r\n if(Store.flowdata[r1][c1] != null && Store.flowdata[r1][c1].spl != null){\r\n window.luckysheetCurrentRow = r1;\r\n window.luckysheetCurrentColumn = c1;\r\n window.luckysheetCurrentFunction = Store.flowdata[r1][c1].f;\r\n\r\n let fp = $.trim(formula.functionParserExe(Store.flowdata[r1][c1].f));\r\n let sparklines = new Function(\"return \" +fp)();\r\n Store.flowdata[r1][c1].spl = sparklines;\r\n }\r\n\r\n if(server.allowUpdate){ //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n server.historyParam(Store.flowdata, Store.currentSheetIndex, range[s]);\r\n }\r\n // \u5237\u65B0\u56FE\u8868\r\n if(typeof(Store.chartparam.jfrefreshchartall)==\"function\"){\r\n Store.chartparam.jfrefreshchartall(Store.flowdata,range[s].row[0],range[s].row[1],range[s].column[0],range[s].column[1]);\r\n }\r\n }\r\n //\u5355\u5143\u683C\u6570\u636E\u66F4\u65B0\u8054\u52A8\r\n if (isRunExecFunction) {\r\n runExecFunction(range, Store.currentSheetIndex, data);\r\n }\r\n //\u5237\u65B0\u8868\u683C\r\n if(isRefreshCanvas){\r\n refreshCanvasTimeOut = setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n\r\n /* \u9009\u533A\u540C\u6B65 */\r\n selectHightlightShow();\r\n window.luckysheet_getcelldata_cache = null;\r\n}\r\n\r\nfunction jfrefreshgridall(colwidth, rowheight, data, cfg, range, ctrlType, ctrlValue, cdformat, isRefreshCanvas=true) {\r\n let redo = {}, isRunExecFunction=false;\r\n clearTimeout(refreshCanvasTimeOut);\r\n if (ctrlType == \"cellRowChange\") {\r\n redo[\"type\"] = \"cellRowChange\";\r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n redo[\"curconfig\"] = $.extend(true, {}, cfg);\r\n\r\n redo[\"range\"] = $.extend(true, [], Store.luckysheet_select_save);\r\n redo[\"currange\"] = range;\r\n\r\n redo[\"ctrlType\"] = ctrlType;\r\n redo[\"ctrlValue\"] = ctrlValue;\r\n\r\n let setfield = cfg[\"rowlen\"];\r\n\r\n if(setfield == null){\r\n setfield = {};\r\n }\r\n\r\n server.saveParam(\"cg\", Store.currentSheetIndex, setfield, { \"k\": \"rowlen\" });\r\n }\r\n else if (ctrlType == \"resizeC\") {\r\n redo[\"type\"] = \"resize\";\r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n redo[\"curconfig\"] = $.extend(true, {}, cfg);\r\n\r\n redo[\"range\"] = $.extend(true, [], Store.luckysheet_select_save);\r\n redo[\"currange\"] = range;\r\n\r\n redo[\"ctrlType\"] = ctrlType;\r\n redo[\"ctrlValue\"] = ctrlValue;\r\n\r\n let setfield = cfg[\"columnlen\"];\r\n\r\n if(setfield == null){\r\n setfield = {};\r\n }\r\n\r\n server.saveParam(\"cg\", Store.currentSheetIndex, setfield, { \"k\": \"columnlen\" });\r\n }\r\n else if (ctrlType.indexOf(\"extend\")>-1) {\r\n redo[\"type\"] = \"extend\";\r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n redo[\"curconfig\"] = $.extend(true, {}, cfg);\r\n\r\n redo[\"range\"] = $.extend(true, [], Store.luckysheet_select_save);\r\n redo[\"currange\"] = range;\r\n\r\n redo[\"ctrlType\"] = ctrlType;\r\n redo[\"ctrlValue\"] = ctrlValue;\r\n\r\n server.saveParam(\"arc\", Store.currentSheetIndex, {\"index\": ctrlValue.index, \"len\": ctrlValue.len, \"direction\": ctrlValue.direction, \"mc\": cfg.merge }, { \"rc\": ctrlValue.type });\r\n }\r\n else if (ctrlType.indexOf(\"dele\")>-1) {\r\n redo[\"type\"] = \"dele\";\r\n redo[\"config\"] = $.extend(true, {}, Store.config);\r\n redo[\"curconfig\"] = $.extend(true, {}, cfg);\r\n\r\n redo[\"range\"] = $.extend(true, [], Store.luckysheet_select_save);\r\n redo[\"currange\"] = range;\r\n\r\n redo[\"ctrlType\"] = ctrlType;\r\n redo[\"ctrlValue\"] = ctrlValue;\r\n\r\n server.saveParam(\"drc\", Store.currentSheetIndex, {\"index\": ctrlValue.index, \"len\":ctrlValue.len, \"mc\": cfg.merge, \"borderInfo\": cfg.borderInfo }, { \"rc\": ctrlValue.type});\r\n }\r\n else {\r\n redo[\"type\"] = \"datachangeAll\";\r\n\r\n redo[\"range\"] = $.extend(true, [], Store.luckysheet_select_save);\r\n redo[\"currange\"] = range;\r\n\r\n redo[\"ctrlType\"] = ctrlType;\r\n redo[\"ctrlValue\"] = ctrlValue;\r\n\r\n isRunExecFunction = true;\r\n\r\n for(let s = 0; s < range.length; s++){\r\n server.historyParam(data, Store.currentSheetIndex, range[s]); \r\n }\r\n }\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n redo[\"data\"] = Store.flowdata;\r\n redo[\"curdata\"] = data;\r\n redo[\"sheetIndex\"] = Store.currentSheetIndex;\r\n redo[\"cdformat\"] = $.extend(true, [], Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"]);\r\n redo[\"curCdformat\"] = cdformat;\r\n\r\n Store.jfredo.push(redo);\r\n }\r\n\r\n //Store.flowdata\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(data);//worker\u5B58\u6570\u636E\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].data = Store.flowdata;\r\n\r\n //config\r\n if (cfg != null) {\r\n Store.config = cfg;\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].config = Store.config;\r\n\r\n server.saveParam(\"all\", Store.currentSheetIndex, cfg, { \"k\": \"config\" });\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\r\n if(cdformat != null){\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] = cdformat;\r\n \r\n server.saveParam(\"all\", Store.currentSheetIndex, cdformat, { \"k\": \"luckysheet_conditionformat_save\" });\r\n }\r\n\r\n //\u9009\u533A\r\n Store.luckysheet_select_save = $.extend(true, [], range);\r\n if(Store.luckysheet_select_save.length > 0){\r\n //\u6709\u9009\u533A\u65F6\uFF0C\u5237\u65B0\u4E00\u4E0B\u9009\u533A\r\n selectHightlightShow();\r\n }\r\n\r\n\r\n if(isRunExecFunction){\r\n //\u5355\u5143\u683C\u6570\u636E\u66F4\u65B0\u8054\u52A8\r\n runExecFunction(range, Store.currentSheetIndex, data);\r\n }\r\n\r\n //\u884C\u9AD8\u3001\u5217\u5BBD \u5237\u65B0 \r\n jfrefreshgrid_rhcw(rowheight, colwidth);\r\n\r\n if(isRefreshCanvas){\r\n refreshCanvasTimeOut = setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n \r\n\r\n sheetmanage.storeSheetParamALL();\r\n \r\n window.luckysheet_getcelldata_cache = null;\r\n}\r\n\r\nfunction jfrefreshrange(data, range, cdformat) {\r\n clearTimeout(refreshCanvasTimeOut);\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n Store.jfredo.push({ \r\n \"type\": \"rangechange\", \r\n \"data\": Store.flowdata, \r\n \"curdata\": data,\r\n \"range\": range, \r\n \"sheetIndex\": Store.currentSheetIndex,\r\n \"cdformat\": $.extend(true, [], Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"]),\r\n \"curCdformat\": cdformat \r\n });\r\n }\r\n\r\n //flowdata\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].data = Store.flowdata;\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\r\n if(cdformat != null){\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] = cdformat;\r\n }\r\n\r\n //\u5355\u5143\u683C\u6570\u636E\u66F4\u65B0\u8054\u52A8\r\n runExecFunction(range, Store.currentSheetIndex, data);\r\n\r\n //\u5237\u65B0\u8868\u683C\r\n refreshCanvasTimeOut = setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n\r\n //\u53D1\u9001\u7ED9\u540E\u53F0\r\n for(let s = 0; s < range.length; s++){\r\n server.historyParam(Store.flowdata, Store.currentSheetIndex, range[s]);\r\n }\r\n}\r\n\r\n//\u5220\u9664\u3001\u589E\u52A0\u884C\u5217 \u5237\u65B0\u8868\u683C\r\nfunction jfrefreshgrid_adRC(data, cfg, ctrlType, ctrlValue, calc, filterObj, cf, af, freezen, dataVerification, hyperlink){\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n collaborativeEditBox();\r\n //merge\u6539\u53D8\u5BF9\u5E94\u7684\u5355\u5143\u683C\u503C\u6539\u53D8\r\n let mcData = [];\r\n for(let m in cfg[\"merge\"]){\r\n let mc = cfg[\"merge\"][m];\r\n\r\n for(let r = mc.r; r <= mc.r + mc.rs - 1; r++){\r\n for(let c = mc.c; c <= mc.c + mc.cs - 1; c++){\r\n if(data[r][c] == null){\r\n data[r][c] = {};\r\n }\r\n\r\n if(r == mc.r && c == mc.c){\r\n data[r][c].mc = mc;\r\n }\r\n else{\r\n data[r][c].mc = { \"r\": mc.r, \"c\": mc.c };\r\n }\r\n\r\n mcData.push({ \"r\": r, \"c\": c }); \r\n }\r\n }\r\n }\r\n\r\n //\u516C\u5F0F\u94FE\u4E2D\u516C\u5F0F\u8303\u56F4\u6539\u53D8\u5BF9\u5E94\u5355\u5143\u683C\u503C\u7684\u6539\u53D8\r\n let funcData = [];\r\n // if(calc.length > 0){\r\n // // \u53D6\u6D88execFunctionGroupData\uFF0C\u6539\u7528execFunctionGlobalData\r\n // // formula.execFunctionGroupData = data;\r\n\r\n // for(let i = 0; i < calc.length; i++){\r\n // let clc = calc[i];\r\n // let clc_r = clc.r, clc_c = clc.c, clc_i = clc.index, clc_funcStr = getcellFormula(clc_r, clc_c, clc_i, data);\r\n \r\n // let clc_result = formula.execfunction(clc_funcStr, clc_r, clc_c, clc_i,null, true);\r\n // clc.func = clc_result;\r\n\r\n // if(data[clc_r][clc_c].f == clc_funcStr){\r\n // setcellvalue(clc_r, clc_c, data, clc_result[1]);\r\n // // funcData\u5B58\u50A8\u5F53\u524D\u7ED3\u679C\u6CA1\u6709\u7528\u5904\uFF0C\u6BCF\u6B21\u8FD8\u662F\u9700\u8981\u4ECEcalc\u516C\u5F0F\u94FE\u5B9E\u65F6\u4ECE\u5F53\u524D\u6570\u636E\u4E2D\u8BA1\u7B97\u6BD4\u8F83\u9760\u8C31\r\n // // funcData.push({ \"r\": clc_r, \"c\": clc_c });\r\n // }\r\n // }\r\n // }\r\n\r\n if(Store.clearjfundo){\r\n Store.jfundo.length = 0;\r\n\r\n Store.jfredo.push({\r\n \"type\": ctrlType,\r\n \"sheetIndex\": Store.currentSheetIndex,\r\n \"data\": Store.flowdata,\r\n \"curData\": data,\r\n \"config\": $.extend(true, {}, Store.config),\r\n \"curConfig\": cfg,\r\n \"ctrlValue\": ctrlValue,\r\n \"mcData\": mcData,\r\n \"calc\": $.extend(true, [], file.calcChain),\r\n \"curCalc\": calc,\r\n \"funcData\": funcData,\r\n \"filterObj\": { \"filter_select\": $.extend(true, {}, file.filter_select), \"filter\": $.extend(true, {}, file.filter) },\r\n \"curFilterObj\": filterObj,\r\n \"cf\": $.extend(true, [], file.luckysheet_conditionformat_save),\r\n \"curCf\": cf,\r\n \"af\": $.extend(true, [], file.luckysheet_alternateformat_save),\r\n \"curAf\": af,\r\n \"freezen\": { \"freezenhorizontaldata\": luckysheetFreezen.freezenhorizontaldata, \"freezenverticaldata\": luckysheetFreezen.freezenverticaldata },\r\n \"curFreezen\": freezen,\r\n \"dataVerification\": $.extend(true, {}, file.dataVerification),\r\n \"curDataVerification\": dataVerification,\r\n \"hyperlink\": $.extend(true, {}, file.hyperlink),\r\n \"curHyperlink\": hyperlink,\r\n \"range\": file.luckysheet_select_save,\r\n \"dataRange\": [...file.luckysheet_select_save]// \u4FDD\u7559\u64CD\u4F5C\u65F6\u7684\u9009\u533A\r\n });\r\n }\r\n\r\n let index = ctrlValue.index,\r\n len = ctrlValue.len,\r\n rc = ctrlValue.rc;\r\n\r\n if(ctrlType == \"addRC\"){\r\n let direction = ctrlValue.direction,\r\n restore = ctrlValue.restore;\r\n\r\n let addData = [];\r\n if(restore){\r\n if(rc == \"r\"){\r\n let st_r;\r\n if(direction == \"lefttop\"){\r\n st_r = index;\r\n }\r\n else if(direction == \"rightbottom\"){\r\n st_r = index + 1;\r\n }\r\n let ed_r = st_r + len - 1;\r\n\r\n for(let r = st_r; r <= ed_r; r++){\r\n let row = [];\r\n for(let c = 0; c < data[0].length; c++){\r\n let cell = data[r][c];\r\n row.push(cell);\r\n }\r\n addData.push(row);\r\n }\r\n }\r\n else if(rc == \"c\"){\r\n let st_c;\r\n if(direction == \"lefttop\"){\r\n st_c = index;\r\n }\r\n else if(direction == \"rightbottom\"){\r\n st_c = index + 1;\r\n }\r\n let ed_c = st_c + len - 1;\r\n\r\n for(let r = 0; r < data.length; r++){\r\n let row = [];\r\n for(let c = st_c; c <= ed_c; c++){\r\n let cell = data[r][c];\r\n row.push(cell);\r\n }\r\n addData.push(row);\r\n }\r\n }\r\n }\r\n\r\n server.saveParam(\"arc\", Store.currentSheetIndex, {\"index\": index, \"len\": len, \"direction\": direction, \"data\": addData }, { \"rc\": rc });\r\n }\r\n else if(ctrlType == \"delRC\"){\r\n server.saveParam(\"drc\", Store.currentSheetIndex, {\"index\": index, \"len\": len }, { \"rc\": rc });\r\n }\r\n\r\n //Store.flowdata\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n file.data = data;\r\n\r\n //config\r\n Store.config = cfg;\r\n file.config = Store.config;\r\n server.saveParam(\"all\", Store.currentSheetIndex, cfg, { \"k\": \"config\" });\r\n\r\n //mcData\r\n for(let i = 0; i < mcData.length; i++){\r\n let mcData_r = mcData[i].r,\r\n mcData_c = mcData[i].c;\r\n\r\n server.saveParam(\"v\", Store.currentSheetIndex, Store.flowdata[mcData_r][mcData_c], { \"r\": mcData_r, \"c\": mcData_c });\r\n }\r\n\r\n //\u516C\u5F0F\u94FE\u4E2D\u516C\u5F0F\u8303\u56F4\u6539\u53D8\u5BF9\u5E94\u5355\u5143\u683C\u503C\u7684\u6539\u53D8\r\n if(calc.length > 0){\r\n // \u53D6\u6D88execFunctionGroupData\uFF0C\u6539\u7528execFunctionGlobalData\r\n // formula.execFunctionGroupData = data;\r\n\r\n for(let i = 0; i < calc.length; i++){\r\n let clc = calc[i];\r\n let clc_r = clc.r, clc_c = clc.c, clc_i = clc.index, clc_funcStr = getcellFormula(clc_r, clc_c, clc_i, data);\r\n \r\n let clc_result = formula.execfunction(clc_funcStr, clc_r, clc_c, clc_i,null, true);\r\n clc.func = clc_result;\r\n\r\n if(data[clc_r][clc_c].f == clc_funcStr){\r\n setcellvalue(clc_r, clc_c, data, clc_result[1]);\r\n // funcData\u5B58\u50A8\u5F53\u524D\u7ED3\u679C\u6CA1\u6709\u7528\u5904\uFF0C\u6BCF\u6B21\u8FD8\u662F\u9700\u8981\u4ECEcalc\u516C\u5F0F\u94FE\u5B9E\u65F6\u4ECE\u5F53\u524D\u6570\u636E\u4E2D\u8BA1\u7B97\u6BD4\u8F83\u9760\u8C31\r\n // funcData.push({ \"r\": clc_r, \"c\": clc_c });\r\n }\r\n }\r\n }\r\n\r\n //calc\u51FD\u6570\u94FE\r\n file.calcChain = calc;\r\n server.saveParam(\"all\", Store.currentSheetIndex, calc, { \"k\": \"calcChain\" });\r\n for(let i = 0; i < funcData.length; i++){\r\n let funcData_r = funcData[i].r,\r\n funcData_c = funcData[i].c;\r\n\r\n server.saveParam(\"v\", Store.currentSheetIndex, Store.flowdata[funcData_r][funcData_c], { \"r\": funcData_r, \"c\": funcData_c });\r\n }\r\n\r\n //\u7B5B\u9009\u914D\u7F6E\r\n if(filterObj != null){\r\n file.filter_select = filterObj.filter_select;\r\n file.filter = filterObj.filter;\r\n }\r\n else{\r\n file.filter_select = null;\r\n file.filter = null;\r\n }\r\n createFilterOptions(file.filter_select, file.filter);\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.filter_select, { \"k\": \"filter_select\" });\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.filter, { \"k\": \"filter\" });\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u914D\u7F6E\r\n file.luckysheet_conditionformat_save = cf;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.luckysheet_conditionformat_save, { \"k\": \"luckysheet_conditionformat_save\" });\r\n\r\n //\u4EA4\u66FF\u989C\u8272\u914D\u7F6E\r\n file.luckysheet_alternateformat_save = af;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.luckysheet_alternateformat_save, { \"k\": \"luckysheet_alternateformat_save\" });\r\n\r\n //\u51BB\u7ED3\u914D\u7F6E\r\n if(freezen != null){\r\n luckysheetFreezen.freezenhorizontaldata = freezen.freezenhorizontaldata;\r\n luckysheetFreezen.freezenverticaldata = freezen.freezenverticaldata;\r\n }\r\n else{\r\n luckysheetFreezen.freezenhorizontaldata = null;\r\n luckysheetFreezen.freezenverticaldata = null;\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n dataVerificationCtrl.dataVerification = dataVerification;\r\n file.dataVerification = dataVerification;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.dataVerification, { \"k\": \"dataVerification\" });\r\n\r\n //\u8D85\u94FE\u63A5\r\n hyperlinkCtrl.hyperlink = hyperlink;\r\n file.hyperlink = hyperlink;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.hyperlink, { \"k\": \"hyperlink\" });\r\n\r\n //\u884C\u9AD8\u3001\u5217\u5BBD\u5237\u65B0\r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n}\r\n\r\n//\u5220\u9664\u5355\u5143\u683C \u5237\u65B0\u8868\u683C\r\nfunction jfrefreshgrid_deleteCell(data, cfg, ctrl, calc, filterObj, cf, dataVerification, hyperlink){\r\n let file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n clearTimeout(refreshCanvasTimeOut);\r\n collaborativeEditBox();\r\n //merge\u6539\u53D8\u5BF9\u5E94\u7684\u5355\u5143\u683C\u503C\u6539\u53D8\r\n let mcData = [];\r\n if(JSON.stringify(cfg[\"merge\"]) == \"{}\"){\r\n for(let r = 0; r < data.length; r++){\r\n for(let c = 0; c < data[0].length; c++){\r\n let cell = data[r][c];\r\n \r\n if(cell != null && cell.mc != null){\r\n delete cell.mc;\r\n mcData.push({ \"r\": r, \"c\": c });\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n for(let m in cfg[\"merge\"]){\r\n let mc = cfg[\"merge\"][m];\r\n \r\n for(let r = mc.r; r <= mc.r + mc.rs - 1; r++){\r\n for(let c = mc.c; c <= mc.c + mc.cs - 1; c++){\r\n if(data[r][c] == null){\r\n data[r][c] = {};\r\n }\r\n \r\n // if(r == mc.r && c == mc.c){\r\n // data[r][c].mc = mc;\r\n // }\r\n // else{\r\n // data[r][c].mc = { \"r\": mc.r, \"c\": mc.c };\r\n // }\r\n \r\n // mcData.push({ \"r\": r, \"c\": c }); \r\n \r\n\r\n if(r == mc.r && c == mc.c){\r\n if(JSON.stringify(data[r][c].mc) !=JSON.stringify(mc)){\r\n data[r][c].mc = mc;\r\n mcData.push({ \"r\": r, \"c\": c }); \r\n }\r\n }\r\n else{\r\n let tempMc = { \"r\": mc.r, \"c\": mc.c };\r\n if(JSON.stringify(data[r][c].mc) != JSON.stringify(tempMc)){\r\n data[r][c].mc = tempMc;\r\n mcData.push({ \"r\": r, \"c\": c }); \r\n }\r\n } \r\n }\r\n }\r\n }\r\n }\r\n\r\n //\u516C\u5F0F\u94FE\u4E2D\u516C\u5F0F\u8303\u56F4\u6539\u53D8\u5BF9\u5E94\u5355\u5143\u683C\u503C\u7684\u6539\u53D8\r\n let funcData = [];\r\n // if(calc.length > 0){\r\n // // formula.execFunctionGroupData = data;\r\n\r\n // for(let i = 0; i < calc.length; i++){\r\n // let clc = calc[i];\r\n // let clc_r = clc.r, clc_c = clc.c, clc_i = clc.index, clc_funcStr = getcellFormula(clc_r, clc_c, clc_i, data);\r\n // let clc_result = formula.execfunction(clc_funcStr, clc_r, clc_c, clc_i,null, true);\r\n // clc.func = clc_result;\r\n\r\n // if(data[clc_r][clc_c].f == clc_funcStr){\r\n // setcellvalue(clc_r, clc_c, data, clc_result[1]);\r\n // funcData.push({ \"r\": clc_r, \"c\": clc_c });\r\n // }\r\n // }\r\n // }\r\n\r\n if(Store.clearjfundo){\r\n Store.jfundo.length = 0;\r\n\r\n Store.jfredo.push({\r\n \"type\": \"deleteCell\",\r\n \"sheetIndex\": Store.currentSheetIndex,\r\n \"ctrl\": ctrl,\r\n \"data\": Store.flowdata,\r\n \"curData\": data,\r\n \"config\": $.extend(true, {}, Store.config),\r\n \"curConfig\": cfg,\r\n \"mcData\": mcData,\r\n \"calc\": $.extend(true, [], file.calcChain),\r\n \"curCalc\": calc,\r\n \"funcData\": funcData,\r\n \"filterObj\": { \"filter_select\": $.extend(true, {}, file.filter_select), \"filter\": $.extend(true, {}, file.filter) },\r\n \"curFilterObj\": filterObj,\r\n \"cf\": $.extend(true, [], file.luckysheet_conditionformat_save),\r\n \"curCf\": cf,\r\n \"dataVerification\": $.extend(true, {}, file.dataVerification),\r\n \"curDataVerification\": dataVerification,\r\n \"hyperlink\": $.extend(true, {}, file.hyperlink),\r\n \"curHyperlink\": hyperlink,\r\n \"range\": file.luckysheet_select_save,\r\n \"dataRange\": [...file.luckysheet_select_save] // \u4FDD\u7559\u64CD\u4F5C\u65F6\u7684\u9009\u533A\r\n });\r\n }\r\n\r\n //Store.flowdata\r\n Store.flowdata = data;\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n file.data = data;\r\n\r\n //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n if(server.allowUpdate){\r\n let type = ctrl.type,\r\n str = ctrl.str,\r\n edr = ctrl.edr,\r\n stc = ctrl.stc,\r\n edc = ctrl.edc;\r\n\r\n let range;\r\n if(type == 'moveUp'){\r\n range = {\r\n \"row\": [str, data.length - 1],\r\n \"column\": [stc, edc]\r\n }\r\n }\r\n else if(type == 'moveLeft'){\r\n range = {\r\n \"row\": [str, edr],\r\n \"column\": [stc, data[0].length - 1]\r\n };\r\n }\r\n\r\n server.historyParam(Store.flowdata, Store.currentSheetIndex, range);\r\n }\r\n\r\n //config\r\n Store.config = cfg;\r\n file.config = Store.config;\r\n server.saveParam(\"all\", Store.currentSheetIndex, cfg, { \"k\": \"config\" });\r\n\r\n //mcData\r\n for(let i = 0; i < mcData.length; i++){\r\n let mcData_r = mcData[i].r,\r\n mcData_c = mcData[i].c;\r\n\r\n server.saveParam(\"v\", Store.currentSheetIndex, Store.flowdata[mcData_r][mcData_c], { \"r\": mcData_r, \"c\": mcData_c });\r\n }\r\n\r\n //\u516C\u5F0F\u94FE\u4E2D\u516C\u5F0F\u8303\u56F4\u6539\u53D8\u5BF9\u5E94\u5355\u5143\u683C\u503C\u7684\u6539\u53D8\r\n if(calc.length > 0){\r\n // formula.execFunctionGroupData = data;\r\n\r\n for(let i = 0; i < calc.length; i++){\r\n let clc = calc[i];\r\n let clc_r = clc.r, clc_c = clc.c, clc_i = clc.index, clc_funcStr = getcellFormula(clc_r, clc_c, clc_i, data);\r\n let clc_result = formula.execfunction(clc_funcStr, clc_r, clc_c, clc_i,null, true);\r\n clc.func = clc_result;\r\n\r\n if(data[clc_r][clc_c].f == clc_funcStr){\r\n setcellvalue(clc_r, clc_c, data, clc_result[1]);\r\n // funcData.push({ \"r\": clc_r, \"c\": clc_c });\r\n }\r\n }\r\n }\r\n\r\n //calc\u51FD\u6570\u94FE\r\n file.calcChain = calc;\r\n server.saveParam(\"all\", Store.currentSheetIndex, calc, { \"k\": \"calcChain\" });\r\n for(let i = 0; i < funcData.length; i++){\r\n let funcData_r = funcData[i].r,\r\n funcData_c = funcData[i].c;\r\n\r\n server.saveParam(\"v\", Store.currentSheetIndex, Store.flowdata[funcData_r][funcData_c], { \"r\": funcData_r, \"c\": funcData_c });\r\n }\r\n\r\n //\u7B5B\u9009\u914D\u7F6E\r\n if(filterObj != null){\r\n file.filter_select = filterObj.filter_select;\r\n file.filter = filterObj.filter;\r\n }\r\n else{\r\n file.filter_select = null;\r\n file.filter = null;\r\n }\r\n createFilterOptions(file.filter_select, file.filter);\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.filter_select, { \"k\": \"filter_select\" });\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.filter, { \"k\": \"filter\" });\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u914D\u7F6E\r\n file.luckysheet_conditionformat_save = cf;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.luckysheet_conditionformat_save, { \"k\": \"luckysheet_conditionformat_save\" });\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n dataVerificationCtrl.dataVerification = dataVerification;\r\n file.dataVerification = dataVerification;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.dataVerification, { \"k\": \"dataVerification\" });\r\n\r\n //\u8D85\u94FE\u63A5\r\n hyperlinkCtrl.hyperlink = hyperlink;\r\n file.hyperlink = hyperlink;\r\n server.saveParam(\"all\", Store.currentSheetIndex, file.hyperlink, { \"k\": \"hyperlink\" });\r\n\r\n refreshCanvasTimeOut = setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n}\r\n\r\n//\u590D\u5236\u526A\u5207 \u5237\u65B0\u8868\u683C\r\nfunction jfrefreshgrid_pastcut(source, target, RowlChange){\r\n //\u5355\u5143\u683C\u6570\u636E\u66F4\u65B0\u8054\u52A8\r\n let execF_rc = {};\r\n formula.execFunctionExist = [];\r\n clearTimeout(refreshCanvasTimeOut);\r\n for(let r = source[\"range\"].row[0]; r <= source[\"range\"].row[1]; r++){\r\n for(let c = source[\"range\"].column[0]; c <= source[\"range\"].column[1]; c++){\r\n if((r + \"_\" + c + \"_\" + source[\"sheetIndex\"]) in execF_rc){\r\n continue;\r\n }\r\n\r\n execF_rc[r + \"_\" + c + \"_\" + source[\"sheetIndex\"]] = 0;\r\n formula.execFunctionExist.push({ \"r\": r, \"c\": c, \"i\": source[\"sheetIndex\"] });\r\n }\r\n }\r\n\r\n for(let r = target[\"range\"].row[0]; r <= target[\"range\"].row[1]; r++){\r\n for(let c = target[\"range\"].column[0]; c <= target[\"range\"].column[1]; c++){\r\n if((r + \"_\" + c + \"_\" + target[\"sheetIndex\"]) in execF_rc){\r\n continue;\r\n }\r\n\r\n execF_rc[r + \"_\" + c + \"_\" + target[\"sheetIndex\"]] = 0;\r\n formula.execFunctionExist.push({ \"r\": r, \"c\": c, \"i\": target[\"sheetIndex\"] });\r\n }\r\n }\r\n\r\n\r\n\r\n if(Store.clearjfundo){\r\n Store.jfundo.length = 0;\r\n\r\n Store.jfredo.push({\r\n \"type\": \"pasteCut\",\r\n \"source\": source,\r\n \"target\": target,\r\n \"RowlChange\": RowlChange\r\n })\r\n }\r\n\r\n //config\r\n let rowHeight;\r\n if(Store.currentSheetIndex == source[\"sheetIndex\"]){\r\n Store.config = source[\"curConfig\"];\r\n rowHeight = source[\"curData\"].length;\r\n Store.luckysheetfile[getSheetIndex(target[\"sheetIndex\"])][\"config\"] = target[\"curConfig\"];\r\n }\r\n else if(Store.currentSheetIndex == target[\"sheetIndex\"]){\r\n Store.config = target[\"curConfig\"];\r\n rowHeight = target[\"curData\"].length;\r\n Store.luckysheetfile[getSheetIndex(source[\"sheetIndex\"])][\"config\"] = source[\"curConfig\"];\r\n }\r\n\r\n if(RowlChange){\r\n Store.visibledatarow = [];\r\n Store.rh_height = 0;\r\n \r\n for (let i = 0; i < rowHeight; i++) {\r\n let rowlen = Store.defaultrowlen;\r\n \r\n if (Store.config[\"rowlen\"] != null && Store.config[\"rowlen\"][i] != null) {\r\n rowlen = Store.config[\"rowlen\"][i];\r\n }\r\n\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][i] != null) {\r\n rowlen = Store.config[\"rowhidden\"][i];\r\n Store.visibledatarow.push(Store.rh_height);\r\n continue;\r\n }\r\n else {\r\n Store.rh_height += rowlen + 1;\r\n }\r\n\r\n Store.visibledatarow.push(Store.rh_height);//\u884C\u7684\u4E34\u65F6\u957F\u5EA6\u5206\u5E03\r\n }\r\n Store.rh_height += 80;\r\n // sheetmanage.showSheet();\r\n\r\n if(Store.currentSheetIndex == source[\"sheetIndex\"]){\r\n let rowlenArr = computeRowlenArr(target[\"curData\"].length, target[\"curConfig\"]);\r\n Store.luckysheetfile[getSheetIndex(target[\"sheetIndex\"])][\"visibledatarow\"] = rowlenArr;\r\n }\r\n else if(Store.currentSheetIndex == target[\"sheetIndex\"]){\r\n let rowlenArr = computeRowlenArr(source[\"curData\"].length, source[\"curConfig\"]);\r\n Store.luckysheetfile[getSheetIndex(source[\"sheetIndex\"])][\"visibledatarow\"] = rowlenArr;\r\n }\r\n }\r\n\r\n //Store.flowdata\r\n if(Store.currentSheetIndex == source[\"sheetIndex\"]){\r\n Store.flowdata = source[\"curData\"];\r\n Store.luckysheetfile[getSheetIndex(target[\"sheetIndex\"])][\"data\"] = target[\"curData\"];\r\n }\r\n else if(Store.currentSheetIndex == target[\"sheetIndex\"]){\r\n Store.flowdata = target[\"curData\"];\r\n Store.luckysheetfile[getSheetIndex(source[\"sheetIndex\"])][\"data\"] = source[\"curData\"];\r\n }\r\n editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].data = Store.flowdata;\r\n \r\n //luckysheet_select_save\r\n if(Store.currentSheetIndex == target[\"sheetIndex\"]){\r\n Store.luckysheet_select_save = [{\"row\": target[\"range\"].row, \"column\": target[\"range\"].column}];\r\n }\r\n else{\r\n Store.luckysheet_select_save = [{\"row\": source[\"range\"].row, \"column\": source[\"range\"].column}];\r\n }\r\n if(Store.luckysheet_select_save.length > 0){\r\n //\u6709\u9009\u533A\u65F6\uFF0C\u5237\u65B0\u4E00\u4E0B\u9009\u533A\r\n selectHightlightShow();\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\r\n Store.luckysheetfile[getSheetIndex(source[\"sheetIndex\"])].luckysheet_conditionformat_save = source[\"curCdformat\"];\r\n Store.luckysheetfile[getSheetIndex(target[\"sheetIndex\"])].luckysheet_conditionformat_save = target[\"curCdformat\"];\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n if(Store.currentSheetIndex == source[\"sheetIndex\"]){\r\n dataVerificationCtrl.dataVerification = source[\"curDataVerification\"];\r\n }\r\n else if(Store.currentSheetIndex == target[\"sheetIndex\"]){\r\n dataVerificationCtrl.dataVerification = target[\"curDataVerification\"]\r\n }\r\n Store.luckysheetfile[getSheetIndex(source[\"sheetIndex\"])].dataVerification = source[\"curDataVerification\"];\r\n Store.luckysheetfile[getSheetIndex(target[\"sheetIndex\"])].dataVerification = target[\"curDataVerification\"];\r\n \r\n \r\n formula.execFunctionExist.reverse();\r\n formula.execFunctionGroup(null, null, null, null, target[\"curData\"]);\r\n formula.execFunctionGlobalData = null;\r\n\r\n let index = getSheetIndex(Store.currentSheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n file.scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n file.scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft()\r\n \r\n sheetmanage.showSheet();\r\n\r\n refreshCanvasTimeOut = setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n\r\n sheetmanage.storeSheetParamALL();\r\n\r\n //saveparam\r\n //\u6765\u6E90\u8868\r\n server.saveParam(\"all\", source[\"sheetIndex\"], source[\"curConfig\"], { \"k\": \"config\" });\r\n //\u76EE\u7684\u8868\r\n server.saveParam(\"all\", target[\"sheetIndex\"], target[\"curConfig\"], { \"k\": \"config\" });\r\n \r\n //\u6765\u6E90\u8868\r\n server.historyParam(source[\"curData\"], source[\"sheetIndex\"], {\"row\": source[\"range\"][\"row\"], \"column\": source[\"range\"][\"column\"]});\r\n //\u76EE\u7684\u8868\r\n server.historyParam(target[\"curData\"], target[\"sheetIndex\"], {\"row\": target[\"range\"][\"row\"], \"column\": target[\"range\"][\"column\"]});\r\n\r\n //\u6765\u6E90\u8868\r\n server.saveParam(\"all\", source[\"sheetIndex\"], source[\"curCdformat\"], { \"k\": \"luckysheet_conditionformat_save\" });\r\n //\u76EE\u7684\u8868\r\n server.saveParam(\"all\", target[\"sheetIndex\"], target[\"curCdformat\"], { \"k\": \"luckysheet_conditionformat_save\" });\r\n\r\n //\u6765\u6E90\u8868\r\n server.saveParam(\"all\", source[\"sheetIndex\"], source[\"curDataVerification\"], { \"k\": \"dataVerification\" });\r\n //\u76EE\u7684\u8868\r\n server.saveParam(\"all\", target[\"sheetIndex\"], target[\"curDataVerification\"], { \"k\": \"dataVerification\" });\r\n}\r\n\r\n//\u884C\u9AD8\u3001\u5217\u5BBD\u6539\u53D8 \u5237\u65B0\u8868\u683C\r\nfunction jfrefreshgrid_rhcw(rowheight, colwidth, isRefreshCanvas=true){\r\n rhchInit(rowheight, colwidth);\r\n clearTimeout(refreshCanvasTimeOut);\r\n sheetmanage.storeSheetParam();\r\n\r\n //\u884C\u9AD8\u5217\u5BBD\u6539\u53D8\u65F6 \u91CD\u65B0\u8BA1\u7B97sparklines\r\n let calcChain = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].calcChain;\r\n \r\n if(calcChain != null && calcChain.length > 0){\r\n if(Store.config[\"rowlen\"] == null){\r\n Store.config[\"rowlen\"] = {};\r\n }\r\n\r\n if(Store.config[\"columnlen\"] == null){\r\n Store.config[\"columnlen\"] = {};\r\n } \r\n\r\n for(let i = 0; i < calcChain.length; i++){\r\n let r = calcChain[i].r, c = calcChain[i].c, index = calcChain[i].index;\r\n\r\n if(index == Store.currentSheetIndex && Store.flowdata[r][c] != null && Store.flowdata[r][c].spl != null && ((r in Store.config[\"rowlen\"]) || (c in Store.config[\"columnlen\"]))){\r\n window.luckysheetCurrentRow = r;\r\n window.luckysheetCurrentColumn = c;\r\n window.luckysheetCurrentFunction = Store.flowdata[r][c].f;\r\n\r\n let fp = $.trim(formula.functionParserExe(Store.flowdata[r][c].f));\r\n let sparklines = new Function(\"return \" + fp)();\r\n Store.flowdata[r][c].spl = sparklines;\r\n\r\n server.saveParam(\"v\", Store.currentSheetIndex, Store.flowdata[r][c], { \"r\": r, \"c\": c });\r\n }\r\n }\r\n\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].data = Store.flowdata;\r\n }\r\n \r\n //\u6279\u6CE8\u6846\u540C\u6B65\r\n luckysheetPostil.positionSync();\r\n //\u9009\u533A\u540C\u6B65\r\n selectHightlightShow();\r\n // \u534F\u540C\u63D0\u793A\u6846\u540C\u6B65\r\n collaborativeEditBox();\r\n //\u6539\u53D8\u5355\u5143\u683C\u884C\u9AD8\uFF0C\u590D\u5236\u865A\u7EBF\u6846\u540C\u6B65\r\n if($(\".luckysheet-selection-copy\").is(\":visible\")){\r\n selectionCopyShow();\r\n }\r\n\r\n //\u6539\u53D8\u5355\u5143\u683C\u884C\u9AD8\uFF0C\u9009\u533A\u4E0B\u62C9icon\u9690\u85CF\r\n if($(\"#luckysheet-dropCell-icon\").is(\":visible\")){\r\n $(\"#luckysheet-dropCell-icon\").remove();\r\n }\r\n\r\n //\u6709\u51BB\u7ED3\u72B6\u6001\u65F6\uFF0C\u540C\u6B65\u884C\u9AD8\u3001\u5217\u5BBD\r\n if(luckysheetFreezen.freezenhorizontaldata != null && luckysheetFreezen.freezenverticaldata != null){\r\n let row_st = luckysheetFreezen.freezenhorizontaldata[1] - 1;\r\n let col_st = luckysheetFreezen.freezenverticaldata[1] - 1;\r\n\r\n let scrollTop = luckysheetFreezen.freezenhorizontaldata[2];\r\n let scrollLeft = luckysheetFreezen.freezenverticaldata[2];\r\n\r\n let top = Store.visibledatarow[row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n let freezenhorizontaldata = [\r\n Store.visibledatarow[row_st], \r\n row_st + 1, \r\n scrollTop, \r\n luckysheetFreezen.cutVolumn(Store.visibledatarow, row_st + 1), \r\n top\r\n ];\r\n let left = Store.visibledatacolumn[col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n let freezenverticaldata = [\r\n Store.visibledatacolumn[col_st], \r\n col_st + 1, \r\n scrollLeft, \r\n luckysheetFreezen.cutVolumn(Store.visibledatacolumn, col_st + 1), \r\n left\r\n ];\r\n\r\n luckysheetFreezen.saveFreezen(freezenhorizontaldata, top, freezenverticaldata, left);\r\n luckysheetFreezen.createFreezenHorizontal(freezenhorizontaldata, top);\r\n luckysheetFreezen.createFreezenVertical(freezenverticaldata, left);\r\n luckysheetFreezen.createAssistCanvas();\r\n }\r\n else if(luckysheetFreezen.freezenhorizontaldata != null){\r\n let row_st = luckysheetFreezen.freezenhorizontaldata[1] - 1;\r\n let scrollTop = luckysheetFreezen.freezenhorizontaldata[2];\r\n\r\n let top = Store.visibledatarow[row_st] - 2 - scrollTop + Store.columnHeaderHeight;\r\n let freezenhorizontaldata = [\r\n Store.visibledatarow[row_st], \r\n row_st + 1, \r\n scrollTop, \r\n luckysheetFreezen.cutVolumn(Store.visibledatarow, row_st + 1), \r\n top\r\n ];\r\n\r\n luckysheetFreezen.saveFreezen(freezenhorizontaldata, top, null, null);\r\n luckysheetFreezen.createFreezenHorizontal(freezenhorizontaldata, top);\r\n luckysheetFreezen.createAssistCanvas();\r\n }\r\n else if(luckysheetFreezen.freezenverticaldata != null){\r\n let col_st = luckysheetFreezen.freezenverticaldata[1] - 1;\r\n let scrollLeft = luckysheetFreezen.freezenverticaldata[2];\r\n\r\n let left = Store.visibledatacolumn[col_st] - 2 - scrollLeft + Store.rowHeaderWidth;\r\n let freezenverticaldata = [\r\n Store.visibledatacolumn[col_st], \r\n col_st + 1, \r\n scrollLeft, \r\n luckysheetFreezen.cutVolumn(Store.visibledatacolumn, col_st + 1), \r\n left\r\n ];\r\n\r\n luckysheetFreezen.saveFreezen(null, null, freezenverticaldata, left);\r\n luckysheetFreezen.createFreezenVertical(freezenverticaldata, left);\r\n luckysheetFreezen.createAssistCanvas();\r\n }\r\n else{\r\n //\u6709\u7B5B\u9009\u6807\u5FD7\u65F6\uFF0C\u540C\u6B65\u7B5B\u9009\u6309\u94AE\u548C\u7B5B\u9009\u8303\u56F4\u4F4D\u7F6E\r\n if($(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").length > 0){\r\n $(\"#luckysheet-filter-options-sheet\" + Store.currentSheetIndex + \" .luckysheet-filter-options\").each(function(i, e){\r\n let str = $(e).data(\"str\"), cindex = $(e).data(\"cindex\");\r\n\r\n let left = Store.visibledatacolumn[cindex] - 20;\r\n let top = str - 1 == -1 ? 0 : Store.visibledatarow[str - 1];\r\n\r\n $(e).css({ \"left\": left, \"top\": top });\r\n });\r\n }\r\n }\r\n\r\n if($(\"#luckysheet-filter-selected-sheet\" + Store.currentSheetIndex).length > 0){\r\n let luckysheet_filter_save = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].filter_select;\r\n\r\n let r1 = luckysheet_filter_save.row[0], \r\n r2 = luckysheet_filter_save.row[1];\r\n let c1 = luckysheet_filter_save.column[0], \r\n c2 = luckysheet_filter_save.column[1];\r\n\r\n let row = Store.visibledatarow[r2], \r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2], \r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n $(\"#luckysheet-filter-selected-sheet\" + Store.currentSheetIndex).css({\r\n \"left\": col_pre,\r\n \"width\": col - col_pre - 1,\r\n \"top\": row_pre,\r\n \"height\": row - row_pre - 1\r\n });\r\n }\r\n\r\n sheetmanage.showSheet();\r\n\r\n if(isRefreshCanvas){\r\n refreshCanvasTimeOut = setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n \r\n}\r\n\r\n//Refresh the canvas display data according to scrollHeight and scrollWidth\r\nfunction luckysheetrefreshgrid(scrollWidth, scrollHeight) {\r\n formula.groupValuesRefresh();\r\n \r\n if (scrollWidth == null) {\r\n scrollWidth = $(\"#luckysheet-cell-main\").scrollLeft();\r\n }\r\n if (scrollHeight == null) {\r\n scrollHeight = $(\"#luckysheet-cell-main\").scrollTop();\r\n }\r\n\r\n if (luckysheetFreezen.freezenverticaldata != null || luckysheetFreezen.freezenhorizontaldata != null) {\r\n let freezen_horizon_px, freezen_horizon_ed, freezen_horizon_scrollTop;\r\n let freezen_vertical_px, freezen_vertical_ed, freezen_vertical_scrollTop;\r\n let drawWidth = Store.luckysheetTableContentHW[0], drawHeight = Store.luckysheetTableContentHW[1];\r\n \r\n if (luckysheetFreezen.freezenverticaldata != null && luckysheetFreezen.freezenhorizontaldata != null) {\r\n freezen_horizon_px = luckysheetFreezen.freezenhorizontaldata[0];\r\n freezen_horizon_ed = luckysheetFreezen.freezenhorizontaldata[1];\r\n freezen_horizon_scrollTop = luckysheetFreezen.freezenhorizontaldata[2];\r\n\r\n freezen_vertical_px = luckysheetFreezen.freezenverticaldata[0];\r\n freezen_vertical_ed = luckysheetFreezen.freezenverticaldata[1];\r\n freezen_vertical_scrollTop = luckysheetFreezen.freezenverticaldata[2];\r\n\r\n //\u5DE6\u4E0Acanvas freezen_3\r\n luckysheetDrawMain(\r\n freezen_vertical_scrollTop, \r\n freezen_horizon_scrollTop, \r\n freezen_vertical_px, \r\n freezen_horizon_px, \r\n 1, \r\n 1, \r\n null, \r\n null, \r\n \"freezen_3\"\r\n );\r\n\r\n //\u4E0A\u53F3canvas freezen_4\r\n luckysheetDrawMain(\r\n scrollWidth + freezen_vertical_px - freezen_vertical_scrollTop, \r\n freezen_horizon_scrollTop, \r\n drawWidth - freezen_vertical_px + freezen_vertical_scrollTop, \r\n freezen_horizon_px, \r\n 1, \r\n 1, \r\n null, \r\n null, \r\n \"freezen_4\"\r\n );\r\n\r\n //\u5DE6\u4E0Bcanvas freezen_7\r\n luckysheetDrawMain(\r\n freezen_vertical_scrollTop, \r\n scrollHeight + freezen_horizon_px - freezen_horizon_scrollTop, \r\n freezen_vertical_px, \r\n drawHeight - freezen_horizon_px + freezen_horizon_scrollTop, \r\n 1, \r\n 1, \r\n null, \r\n null, \r\n \"freezen_7\"\r\n );\r\n\r\n //\u53F3\u4E0Bcanvas luckysheetTableContent\r\n luckysheetDrawMain(\r\n scrollWidth + freezen_vertical_px - freezen_vertical_scrollTop, \r\n scrollHeight + freezen_horizon_px - freezen_horizon_scrollTop, \r\n drawWidth - freezen_vertical_px + freezen_vertical_scrollTop, \r\n drawHeight - freezen_horizon_px + freezen_horizon_scrollTop, \r\n freezen_vertical_px - freezen_vertical_scrollTop + Store.rowHeaderWidth, \r\n freezen_horizon_px - freezen_horizon_scrollTop + Store.columnHeaderHeight\r\n );\r\n\r\n //\u6807\u9898\r\n luckysheetDrawgridColumnTitle(freezen_vertical_scrollTop, freezen_vertical_px, Store.rowHeaderWidth);\r\n luckysheetDrawgridColumnTitle(\r\n scrollWidth + freezen_vertical_px - freezen_vertical_scrollTop, \r\n drawWidth - freezen_vertical_px + freezen_vertical_scrollTop, \r\n freezen_vertical_px - freezen_vertical_scrollTop + Store.rowHeaderWidth\r\n );\r\n \r\n luckysheetDrawgridRowTitle(freezen_horizon_scrollTop, freezen_horizon_px, Store.columnHeaderHeight);\r\n luckysheetDrawgridRowTitle(\r\n scrollHeight + freezen_horizon_px - freezen_horizon_scrollTop, \r\n drawHeight - freezen_horizon_px + freezen_horizon_scrollTop, \r\n freezen_horizon_px - freezen_horizon_scrollTop + Store.columnHeaderHeight\r\n );\r\n \r\n }\r\n else if (luckysheetFreezen.freezenhorizontaldata != null) {\r\n freezen_horizon_px = luckysheetFreezen.freezenhorizontaldata[0];\r\n freezen_horizon_ed = luckysheetFreezen.freezenhorizontaldata[1];\r\n freezen_horizon_scrollTop = luckysheetFreezen.freezenhorizontaldata[2];\r\n\r\n luckysheetDrawMain(\r\n scrollWidth, \r\n freezen_horizon_scrollTop, \r\n drawWidth, \r\n freezen_horizon_px, \r\n 1, \r\n 1, \r\n null, \r\n null, \r\n \"freezen_h\"\r\n );\r\n luckysheetDrawMain(\r\n scrollWidth, \r\n scrollHeight + freezen_horizon_px - freezen_horizon_scrollTop, \r\n drawWidth, \r\n drawHeight - freezen_horizon_px + freezen_horizon_scrollTop, \r\n null, \r\n freezen_horizon_px - freezen_horizon_scrollTop + Store.columnHeaderHeight\r\n );\r\n \r\n luckysheetDrawgridColumnTitle(scrollWidth, drawWidth, null);\r\n \r\n luckysheetDrawgridRowTitle(freezen_horizon_scrollTop, freezen_horizon_px, Store.columnHeaderHeight);\r\n luckysheetDrawgridRowTitle(\r\n scrollHeight + freezen_horizon_px - freezen_horizon_scrollTop, \r\n drawHeight - freezen_horizon_px + freezen_horizon_scrollTop, \r\n freezen_horizon_px - freezen_horizon_scrollTop + Store.columnHeaderHeight\r\n );\r\n \r\n }\r\n else if (luckysheetFreezen.freezenverticaldata != null) {\r\n freezen_vertical_px = luckysheetFreezen.freezenverticaldata[0];\r\n freezen_vertical_ed = luckysheetFreezen.freezenverticaldata[1];\r\n freezen_vertical_scrollTop = luckysheetFreezen.freezenverticaldata[2];\r\n \r\n luckysheetDrawMain(\r\n freezen_vertical_scrollTop, \r\n scrollHeight, \r\n freezen_vertical_px, \r\n drawHeight, \r\n 1, \r\n 1, \r\n null, \r\n null, \r\n \"freezen_v\"\r\n );\r\n luckysheetDrawMain(\r\n scrollWidth + freezen_vertical_px - freezen_vertical_scrollTop, \r\n scrollHeight, \r\n drawWidth - freezen_vertical_px + freezen_vertical_scrollTop, \r\n drawHeight, \r\n freezen_vertical_px - freezen_vertical_scrollTop + Store.rowHeaderWidth, \r\n null\r\n );\r\n \r\n luckysheetDrawgridRowTitle(scrollHeight, drawHeight, null);\r\n \r\n luckysheetDrawgridColumnTitle(freezen_vertical_scrollTop, freezen_vertical_px, Store.rowHeaderWidth);\r\n luckysheetDrawgridColumnTitle(\r\n scrollWidth + freezen_vertical_px - freezen_vertical_scrollTop, \r\n drawWidth - freezen_vertical_px + freezen_vertical_scrollTop, \r\n freezen_vertical_px - freezen_vertical_scrollTop + Store.rowHeaderWidth\r\n );\r\n \r\n }\r\n }\r\n else {\r\n if($(\"#luckysheetTableContent\").length == 0){\r\n return;\r\n }\r\n let luckysheetTableContent = $(\"#luckysheetTableContent\").get(0).getContext(\"2d\");\r\n luckysheetDrawMain(scrollWidth, scrollHeight);\r\n \r\n // luckysheetTableContent.clearRect(0, 0, 46, 20);\r\n \r\n luckysheetDrawgridColumnTitle(scrollWidth);\r\n luckysheetDrawgridRowTitle(scrollHeight);\r\n\r\n //\u6E05\u9664canvas\u5DE6\u4E0A\u89D2\u533A\u57DF \u9632\u6B62\u5217\u6807\u9898\u680F\u5E8F\u5217\u53F7\u6EA2\u51FA\u663E\u793A\r\n \r\n luckysheetTableContent.clearRect(0, 0, (Store.rowHeaderWidth* Store.devicePixelRatio-1) , (Store.columnHeaderHeight* Store.devicePixelRatio-1) );\r\n }\r\n}\r\n\r\nexport {\r\n jfrefreshgrid,\r\n jfrefreshgridall,\r\n jfrefreshrange,\r\n jfrefreshgrid_adRC,\r\n jfrefreshgrid_deleteCell,\r\n jfrefreshgrid_pastcut,\r\n jfrefreshgrid_rhcw,\r\n luckysheetrefreshgrid,\r\n}", "// \u81EA\u5B9A\u4E49\u56FE\u7247\u7684\u66F4\u65B0\u65B9\u6CD5\u4F8B\u5982: customImageUpdate(\"POST\", \"http://127.0.0.1:8000/luckysheetimageprocess/\", d)\r\nfunction customImageUpdate(method, url, obj) {\r\n return new Promise((resolve, reject) => {\r\n const xhr = new XMLHttpRequest() || new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n xhr.open(method, url);\r\n xhr.send(JSON.stringify(obj)); // \u53D1\u9001 POST/GET \u6570\u636E\r\n xhr.onreadystatechange = function () {\r\n if (xhr.readyState == 4) {\r\n if (xhr.status == 200) {\r\n resolve(xhr.responseText);\r\n } else {\r\n reject(\"error\");\r\n }\r\n }\r\n };\r\n });\r\n}\r\n\r\nexport {\r\n customImageUpdate\r\n}", "import pako from 'pako'\r\nimport { showloading, hideloading } from '../global/loading';\r\nimport { luckysheetrefreshgrid, jfrefreshgrid_rhcw } from '../global/refresh';\r\nimport editor from '../global/editor'\r\nimport { sheetHTML, luckyColor } from './constant';\r\nimport sheetmanage from './sheetmanage';\r\nimport menuButton from './menuButton';\r\nimport { createFilterOptions } from './filter';\r\nimport luckysheetFreezen from './freezen';\r\nimport luckysheetPostil from './postil';\r\nimport imageCtrl from './imageCtrl';\r\nimport dataVerificationCtrl from './dataVerificationCtrl';\r\nimport hyperlinkCtrl from './hyperlinkCtrl';\r\nimport { getObjType, replaceHtml, getByteLen } from '../utils/util';\r\nimport { getSheetIndex } from '../methods/get';\r\nimport Store from '../store';\r\nimport { collaborativeEditBox } from './select'\r\nimport locale from '../locale/locale';\r\nimport dayjs from \"dayjs\";\r\nimport json from '../global/json';\r\nimport luckysheetConfigsetting from './luckysheetConfigsetting';\r\nimport {customImageUpdate} from './imageUpdateCtrl';\r\nimport method from '../global/method';\r\n\r\nconst server = {\r\n gridKey: null,\r\n loadUrl: null,\r\n updateUrl: null,\r\n updateImageUrl: null,\r\n title: null,\r\n\t\tloadSheetUrl: null,\r\n\t\tretryTimer:null,\r\n allowUpdate: false, //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\r\n historyParam: function(data, sheetIndex, range) {\r\n \tlet _this = this;\r\n\r\n\t let r1 = range.row[0], r2 = range.row[1];\r\n\t let c1 = range.column[0], c2 = range.column[1];\r\n\r\n\t if(r1 == r2 && c1 == c2){ //\u5355\u4E2A\u5355\u5143\u683C\u66F4\u65B0\r\n\t let v = data[r1][c1];\r\n\t _this.saveParam(\"v\", sheetIndex, v, { \"r\": r1, \"c\": c1 });\r\n\t }\r\n\t else{ //\u8303\u56F4\u5355\u5143\u683C\u66F4\u65B0\r\n\t let rowlen = r2 - r1 + 1;\r\n\t let collen = c2 - c1 + 1;\r\n\r\n\t let timeR = Math.floor(1000 / collen);\r\n\t let n = Math.ceil(rowlen / timeR); //\u5206\u6279\u6B21\u66F4\u65B0\uFF0C\u4E00\u6B21\u6700\u591A1000\u4E2A\u5355\u5143\u683C\r\n\r\n\t for(let i = 0; i < n; i++){\r\n\t let str = r1 + timeR * i;\r\n\r\n\t\t\t\tlet edr;\r\n\t if(i == n - 1){\r\n\t edr = r2;\r\n\t }\r\n\t else{\r\n\t edr = r1 + timeR * (i + 1) - 1;\r\n\t }\r\n\r\n\t let v = [];\r\n\r\n\t for(let r = str; r <= edr; r++){\r\n\t let v_row = [];\r\n\r\n\t for(let c = c1; c <= c2; c++){\r\n\t\t\t\t\t\tif(data[r]==null){\r\n\t\t\t\t\t\t\tv_row.push(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tv_row.push(data[r][c]);\r\n\t\t\t\t\t\t}\r\n\t }\r\n\r\n\t v.push(v_row);\r\n\t }\r\n\r\n\t _this.saveParam(\"rv\", sheetIndex, v, { \"range\": { \"row\": [str, edr], \"column\": [c1, c2] } });\r\n\r\n\t if(i == n - 1){\r\n\t _this.saveParam(\"rv_end\", sheetIndex, null);\r\n\t }\r\n\t }\r\n\t }\r\n\t},\r\n saveParam: function (type, index, value, params) {\r\n \tlet _this = this;\r\n\r\n\t if(!_this.allowUpdate){\r\n\t return;\r\n\t }\r\n\r\n\t if(value == undefined){\r\n\t value = null;\r\n\t }\r\n\r\n\t let d = {};\r\n\t d.t = type;\r\n\t d.i = index;\r\n\t d.v = value;\r\n\r\n\t\t//\u5207\u6362sheet\u9875\u4E0D\u53D1\u540E\u53F0\uFF0CTODO\uFF1A\u6539\u4E3A\u53D1\u540E\u53F0+\u540E\u53F0\u4E0D\u5E7F\u64AD\r\n\t\tif(type === 'shs'){\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t if (type == \"rv\") { //\u5355\u5143\u683C\u6279\u91CF\u66F4\u65B0\r\n\t d.range = params.range;\r\n\t }\r\n\t else if (type == \"v\" || type == \"fu\" || type == \"fm\") {\r\n\t d.r = params.r;\r\n\t d.c = params.c;\r\n\t }\r\n\t else if (type == \"fc\") {\r\n\t d.op = params.op;\r\n\t d.pos = params.pos;\r\n\t }\r\n\t else if (type == \"drc\" || type == \"arc\" || type == \"h\" || type == \"wh\") {\r\n\t d.rc = params.rc;\r\n\t }\r\n\t else if (type == \"c\") {\r\n\t d.cid = params.cid;\r\n\t d.op = params.op;\r\n\t }\r\n\t else if (type == \"f\") {\r\n\t d.op = params.op;\r\n\t d.pos = params.pos;\r\n\t }\r\n\t else if (type == \"s\") {\r\n\r\n\t }\r\n\t else if (type == \"sh\") {\r\n\t d.op = params.op;\r\n\t if(params.cur != null){\r\n\t d.cur = params.cur;\r\n\t }\r\n\t }\r\n\t else if (type == \"cg\") {\r\n\t d.k = params.k;\r\n\t }\r\n\t else if (type == \"all\") {\r\n\t d.k = params.k;\r\n\t // d.s = params.s;\r\n\t }\r\n\r\n\t // TODO \u914D\u7F6E\u81EA\u5B9A\u4E49\u65B9\u5F0F\u540C\u6B65\u56FE\u7247\r\n const customImageUpdateMethodConfig = luckysheetConfigsetting.imageUpdateMethodConfig\r\n\t\tif (JSON.stringify(customImageUpdateMethodConfig) !== \"{}\") {\r\n if (\"images\" != d.k) {\r\n let msg = pako.gzip(encodeURIComponent(JSON.stringify(d)), {to: \"string\"});\r\n\r\n if (_this.websocket != null) {\r\n _this.websocket.send(msg);\r\n }\r\n } else {\r\n customImageUpdate(customImageUpdateMethodConfig.method, customImageUpdateMethodConfig.url, d)\r\n .then((data) => {\r\n console.log(data);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n\r\n }\r\n } else {\r\n let msg = pako.gzip(encodeURIComponent(JSON.stringify(d)), {to: \"string\"});\r\n if (_this.websocket != null) {\r\n _this.websocket.send(msg);\r\n }\r\n }\r\n\r\n\t},\r\n websocket: null,\r\n wxErrorCount: 0,\r\n openWebSocket: function(){\r\n let _this = this;\r\n\r\n if('WebSocket' in window){\r\n\t\t\tlet wxUrl = _this.updateUrl + \"?t=111&g=\" + encodeURIComponent(_this.gridKey);\r\n\t\t\tif(_this.updateUrl.indexOf('?') > -1){\r\n\t\t\t\twxUrl = _this.updateUrl + \"&t=111&g=\" + encodeURIComponent(_this.gridKey);\r\n\t\t\t}\r\n\r\n\t _this.websocket = new WebSocket(wxUrl);\r\n\r\n\t //\u8FDE\u63A5\u5EFA\u7ACB\u65F6\u89E6\u53D1\r\n\t _this.websocket.onopen = function() {\r\n\t \tconsole.info(locale().websocket.success);\r\n\t \thideloading();\r\n\t\t\t\t_this.wxErrorCount = 0;\r\n\r\n\t //\u9632\u6B62websocket\u957F\u65F6\u95F4\u4E0D\u53D1\u9001\u6D88\u606F\u5BFC\u81F4\u65AD\u8FDE\r\n\t\t\t\t_this.retryTimer = setInterval(function(){\r\n\t _this.websocket.send(\"rub\");\r\n\t }, 60000);\r\n\t }\r\n\r\n\t //\u5BA2\u6237\u7AEF\u63A5\u6536\u670D\u52A1\u7AEF\u6570\u636E\u65F6\u89E6\u53D1\r\n\t _this.websocket.onmessage = function(result){\r\n\t\t\t\tStore.result = result\r\n\t\t\t\tlet data = new Function(\"return \" + result.data)();\r\n method.createHookFunction('cooperativeMessage', data)\r\n\t\t\t\tconsole.info(data);\r\n\t\t\t\tlet type = data.type;\r\n\t\t\t\tlet {message,id} = data;\r\n\t\t\t\t// \u7528\u6237\u9000\u51FA\u65F6\uFF0C\u5173\u95ED\u534F\u540C\u7F16\u8F91\u65F6\u5176\u63D0\u793A\u6846\r\n\t\t\t\tif(message === '\u7528\u6237\u9000\u51FA') {\r\n\t\t\t\t\t$(\"#luckysheet-multipleRange-show-\" + id).hide();\r\n\t\t\t\t\tStore.cooperativeEdit.changeCollaborationSize = Store.cooperativeEdit.changeCollaborationSize.filter(value => {\r\n\t\t\t\t\t\treturn value.id != id\r\n\t\t\t\t\t})\r\n\t\t\t\t\tStore.cooperativeEdit.checkoutData = Store.cooperativeEdit.checkoutData.filter(value => {\r\n\t\t\t\t\t\treturn value.id != id\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t if(type == 1){ //send \u6210\u529F\u6216\u5931\u8D25\r\n const oldIndex = data.data.v.index;\r\n const sheetToUpdate = Store.luckysheetfile.filter((sheet)=> sheet.index === oldIndex)[0];\r\n if (sheetToUpdate !== null) {\r\n setTimeout(() => {\r\n const index = data.data.i;\r\n sheetToUpdate.index = index;\r\n Store.currentSheetIndex = index;\r\n\r\n $(`#luckysheet-sheets-item${oldIndex}`).attr('data-index', index);\r\n $(`#luckysheet-sheets-item${oldIndex}`).prop('id', `luckysheet-sheets-item${index}`);\r\n $(`#luckysheet-datavisual-selection-set-${oldIndex}`).prop('id', `luckysheet-datavisual-selection-set-${index}`);\r\n }, 1);\r\n }\r\n\t }\r\n\t else if(type == 2){ //\u66F4\u65B0\u6570\u636E\r\n\t let item = JSON.parse(data.data);\r\n\t\t\t\t\t_this.wsUpdateMsg(item);\r\n\t\t\t\t\tlet chang_data = JSON.parse(data.data)\r\n\t\t\t\t\tif(chang_data.k == 'columnlen') {\r\n\t\t\t\t\t\tcollaborativeEditBox(chang_data.v,null)\r\n\t\t\t\t\t} else if(chang_data.k == 'rowlen') {\r\n\t\t\t\t\t\tcollaborativeEditBox(null,chang_data.v)\r\n\t\t\t\t\t}\r\n\t }\r\n\t else if(type == 3){ //\u591A\u4EBA\u64CD\u4F5C\u4E0D\u540C\u9009\u533A(\"t\": \"mv\")\uFF08\u7528\u4E0D\u540C\u989C\u8272\u663E\u793A\u5176\u4ED6\u4EBA\u6240\u64CD\u4F5C\u7684\u9009\u533A\uFF09\r\n\t let id = data.id;\r\n\t let username = data.username;\r\n\t let item = JSON.parse(data.data);\r\n\t let type = item.t,\r\n\t index = item.i,\r\n\t value = item.v;\r\n\t\t\t\t\tif(Store.cooperativeEdit.changeCollaborationSize.length === 0) {\r\n\t\t\t\t\t\tStore.cooperativeEdit.changeCollaborationSize.push({id:id,v:item.v[0],i:index})\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlet flag = Store.cooperativeEdit.changeCollaborationSize.some(value1 => {\r\n\t\t\t\t\t\treturn value1.id == id\r\n\t\t\t\t\t})\r\n\t\t\t\t\tif(flag) {\r\n\t\t\t\t\t\tStore.cooperativeEdit.changeCollaborationSize.forEach(val => {\r\n\t\t\t\t\t\t\tif(val.id == id) {\r\n\t\t\t\t\t\t\t\tval.v = item.v[0] || item.range[0]\r\n\t\t\t\t\t\t\t\tval.i = index\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tStore.cooperativeEdit.changeCollaborationSize.push({id:id,v:item.v[0],i:index})\r\n\t\t\t\t\t}\r\n\t if(getObjType(value) != \"array\" && getObjType(value) !== \"object\"){\r\n\t value = JSON.parse(value);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlet r = 0\r\n\t\t\t\t\tlet c = 0\r\n\t\t\t\t\tif(index == Store.currentSheetIndex){//\u53D1\u9001\u6D88\u606F\u8005\u5728\u5F53\u524D\u9875\u9762\r\n\r\n\t\t\t\t\t\tif(getObjType(value) === \"object\" && value.op === 'enterEdit'){\r\n\t\t\t\t\t\t\tr = value.range[value.range.length - 1].row[0];\r\n\t\t\t\t\t\t\tc = value.range[value.range.length - 1].column[0];\r\n\t\t\t\t\t\t\t_this.multipleRangeShow(id, username, r, c, value.op);\r\n\r\n\t\t\t\t\t\t}else {\r\n\r\n\t\t\t\t\t\t\tr = value[value.length - 1].row[0];\r\n\t\t\t\t\t\t\tc = value[value.length - 1].column[0];\r\n\r\n\t\t\t\t\t\t\t_this.multipleRangeShow(id, username, r, c);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif(getObjType(value) === \"object\" && value.op === 'enterEdit'){\r\n\t\t\t\t\t\t\tr = value.range[value.range.length - 1].row[0];\r\n\t\t\t\t\t\t\tc = value.range[value.range.length - 1].column[0];\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tr = value[value.length - 1].row[0];\r\n\t\t\t\t\t\t\tc = value[value.length - 1].column[0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(Store.cooperativeEdit.checkoutData.length === 0) {\r\n\t\t\t\t\t\tif(value.op) {\r\n\t\t\t\t\t\t\tStore.cooperativeEdit.checkoutData.push({id,username,r,c,op:value.op,index})\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tStore.cooperativeEdit.checkoutData.push({id,username,r,c,index})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlet checkoutFlag = Store.cooperativeEdit.checkoutData.some(item => {\r\n\t\t\t\t\t\treturn item.id == id\r\n\t\t\t\t\t})\r\n\t\t\t\t\tif(checkoutFlag) {\r\n\t\t\t\t\t\tStore.cooperativeEdit.checkoutData.forEach(item => {\r\n\t\t\t\t\t\t\tif(item.id == id) {\r\n\t\t\t\t\t\t\t\titem.username = username\r\n\t\t\t\t\t\t\t\titem.r = r\r\n\t\t\t\t\t\t\t\titem.c = c\r\n\t\t\t\t\t\t\t\titem.index = index\r\n\t\t\t\t\t\t\t\tif (value.op === 'enterEdit') {\r\n\t\t\t\t\t\t\t\t\titem.op = value.op\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif(value.op === 'enterEdit') {\r\n\t\t\t\t\t\t\tStore.cooperativeEdit.checkoutData.push({id,username,r,c,op:value.op,index})\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tStore.cooperativeEdit.checkoutData.push({id,username,r,c,index})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//\u5176\u4ED6\u5BA2\u6237\u7AEF\u5207\u6362\u9875\u9762\u65F6\r\n\t\t\t\t\tStore.cooperativeEdit.checkoutData.forEach(item => {\r\n\t\t\t\t\t\tif(item.index != Store.currentSheetIndex) {\r\n\t\t\t\t\t\t\t$(\"#luckysheet-multipleRange-show-\" + item.id).hide();\r\n\t\t\t\t\t\t\titem.op == ''\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\tif($(\"#luckysheet-multipleRange-show-\" + id)[0]) {\r\n\t\t\t\t\t\tlet change_bottom = $(\"#luckysheet-multipleRange-show-\" + id)[0].offsetHeight - 1\r\n\t\t\t\t\t\t$(\"#luckysheet-multipleRange-show-\" + id + \">.username\").css({\"bottom\":change_bottom + 'px'})\r\n\t\t\t\t\t}\r\n\t }\r\n\t else if(type == 4){ //\u6279\u91CF\u6307\u4EE4\u66F4\u65B0\r\n\t\t\t\t\t// let items = JSON.parse(data.data);\r\n\r\n\t\t\t\t\t// After editing by multiple people, data.data may appear as an empty string\r\n\t\t\t\t\tlet items = data.data === \"\" ? data.data : JSON.parse(data.data);\r\n\r\n\t for(let i = 0; i < items.length; i++){\r\n\t _this.wsUpdateMsg(item[i]);\r\n\t }\r\n\t } else if (type == 5) {\r\n showloading(data.data);\r\n } else if (type == 6) {\r\n hideloading();\r\n }\r\n\t }\r\n\r\n\t //\u901A\u4FE1\u53D1\u751F\u9519\u8BEF\u65F6\u89E6\u53D1\r\n\t _this.websocket.onerror = function(){\r\n\t _this.wxErrorCount++;\r\n\r\n\t if(_this.wxErrorCount > 3){\r\n\t showloading(locale().websocket.refresh);\r\n\t }\r\n\t else{\r\n\t showloading(locale().websocket.wait);\r\n\t _this.openWebSocket();\r\n\t }\r\n\t }\r\n\r\n\t //\u8FDE\u63A5\u5173\u95ED\u65F6\u89E6\u53D1\r\n\t _this.websocket.onclose = function(e){\r\n\t\t\t\tconsole.info(locale().websocket.close);\r\n\t\t\t\tif(e.code === 1000){\r\n\t\t\t\t\tclearInterval(_this.retryTimer)\r\n\t\t\t\t\t_this.retryTimer = null\r\n\t\t\t\t}else{\r\n\t\t\t\t\talert(locale().websocket.contact);\r\n\t\t\t\t}\r\n\t }\r\n\t }\r\n\t else{\r\n\t alert(locale().websocket.support);\r\n\t }\r\n },\r\n wsUpdateMsg: function(item) {\r\n\t let type = item.t,\r\n\t index = item.i,\r\n\t value = item.v;\r\n\r\n\t let file = Store.luckysheetfile[getSheetIndex(index)];\r\n\r\n\t if([\"v\",\"rv\",\"cg\",\"all\",\"fc\",\"drc\",\"arc\",\"f\",\"fsc\",\"fsr\",\"sh\",\"c\"].includes(type) && file == null){\r\n\t return;\r\n\t }\r\n\r\n\t if(type == \"v\"){ //\u5355\u4E2A\u5355\u5143\u683C\u6570\u636E\u66F4\u65B0\r\n\t if(file.data == null || file.data.length == 0){\r\n\t return;\r\n\t }\r\n\r\n\t let r = item.r, c = item.c;\r\n\t file.data[r][c] = value;\r\n\r\n\t if(index == Store.currentSheetIndex){//\u66F4\u65B0\u6570\u636E\u4E3A\u5F53\u524D\u8868\u683C\u6570\u636E\r\n\t\t\t\tStore.flowdata = file.data;\r\n\t\t\t\teditor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n\t //\u5982\u679C\u66F4\u65B0\u7684\u5355\u5143\u683C\u6709\u6279\u6CE8\r\n\t if(value != null && value.ps != null){\r\n\t luckysheetPostil.buildPs(r, c, value.ps);\r\n\t }\r\n\t else{\r\n\t luckysheetPostil.buildPs(r, c, null);\r\n\t }\r\n\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t }\r\n\t\telse if(type == \"rv\"){ //\u8303\u56F4\u5355\u5143\u683C\u6570\u636E\u66F4\u65B0\r\n\t\t\tif(Object.keys(item.range).length > 0) {\r\n\t\t\t\tStore.cooperativeEdit.merge_range = item.range\r\n\t\t\t\tStore.cooperativeEdit.merge_range.v = item.v\r\n\t\t\t\tcollaborativeEditBox();\r\n\t\t\t}\r\n\t if(file.data == null || file.data.length == 0){\r\n\t return;\r\n\t }\r\n\r\n\t let r1 = item.range.row[0], r2 = item.range.row[1];\r\n\t let c1 = item.range.column[0], c2 = item.range.column[1];\r\n\r\n\t for(let r = r1; r <= r2; r++){\r\n\t for(let c = c1; c <= c2; c++){\r\n\t file.data[r][c] = value[r - r1][c - c1];\r\n\t }\r\n\t }\r\n\r\n\t if(index == Store.currentSheetIndex){//\u66F4\u65B0\u6570\u636E\u4E3A\u5F53\u524D\u8868\u683C\u6570\u636E\r\n\t\t\t\tStore.flowdata = file.data;\r\n\t\t\t\teditor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n\t //\u5982\u679C\u66F4\u65B0\u7684\u5355\u5143\u683C\u6709\u6279\u6CE8\r\n\t for(let r = r1; r <= r2; r++){\r\n\t for(let c = c1; c <= c2; c++){\r\n\t if(value[r - r1][c - c1] != null && value[r - r1][c - c1].ps != null){\r\n\t luckysheetPostil.buildPs(r, c, value[r - r1][c - c1].ps);\r\n\t }\r\n\t else{\r\n\t luckysheetPostil.buildPs(r, c, null);\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t\t\t}\r\n\t }\r\n\t else if(type == \"cg\"){ //config\u66F4\u65B0\uFF08rowhidden\uFF0Crowlen\uFF0Ccolumnlen\uFF0Cmerge\uFF0CborderInfo\uFF09\r\n\t let k = item.k;\r\n\r\n\t if(k == \"borderInfo\"){\r\n\t\t\t\tfile[\"config\"][\"borderInfo\"] = value;\r\n\t }\r\n\t else{\r\n\t if(!(k in file[\"config\"])){\r\n\t file[\"config\"][k] = {};\r\n\t }\r\n\r\n\t // for(let key in value){\r\n\t // file[\"config\"][k][key] = value[key];\r\n\t\t\t\t// }\r\n\r\n\t\t\t\t// \u26A0\uFE0F \u4E0A\u9762\u7684\u5904\u7406\u65B9\u5F0F\u4F1A\u5BFC\u81F4\u90E8\u5206\u914D\u7F6E\u9879\u88AB\u9057\u6F0F\uFF0C\u4EE5\u81F4\u534F\u540C\u7F16\u8F91\u7684\u65F6\u5019\u591A\u89C6\u56FE\u51FA\u73B0\u4E0D\u4E00\u81F4\u7684\u60C5\u51B5\uFF0C\u8C03\u6574\u5904\u7406\u7684\u7B56\u7565\u4E3A\u76F4\u63A5\u66FF\u6362\u914D\u7F6E\u9879\uFF1A\r\n\t\t\t\t// \u53EF\u80FD\u7684\u914D\u7F6E\u9879\u4E3A\uFF1A\r\n\t\t\t\t// columnlen: {0: 65, 1: 186, 2: 52}\r\n\t\t\t\t// customHeight: {0: 1, 5: 1, 6: 1}\r\n\t\t\t\t// customWidth: {0: 1, 1: 1, 2: 1}\r\n\t\t\t\t// merge: {2_1: {\u2026}, 4_2: {\u2026}, 6_2: {\u2026}}\r\n\t\t\t\t// rowlen: {0: 19, 5: 93, 6: 117}\r\n\t\t\t\tif(value && (typeof value == \"object\")){\r\n\t\t\t\t\tfile[\"config\"][k] = value;\r\n\t\t\t\t}\r\n\r\n\t }\r\n\r\n\t if(index == Store.currentSheetIndex){//\u66F4\u65B0\u6570\u636E\u4E3A\u5F53\u524D\u8868\u683C\u6570\u636E\r\n\t Store.config = file[\"config\"];\r\n\r\n\t if(k == \"rowlen\" || k == \"columnlen\" || k == \"rowhidden\"){\r\n\t jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n\t }\r\n\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t }\r\n\t else if(type == \"all\"){ //\u901A\u7528\u4FDD\u5B58\u66F4\u65B0\r\n\t let k = item.k;\r\n\t file[k] = value;\r\n\r\n\t if(k == \"name\"){ //\u5DE5\u4F5C\u8868\u540D\r\n\t $(\"#luckysheet-sheet-container-c #luckysheet-sheets-item\" + index).find(\"span.luckysheet-sheets-item-name\").html(value);\r\n\t }\r\n\t else if(k == \"color\"){ //\u5DE5\u4F5C\u8868\u989C\u8272\r\n\t let currentSheetItem = $(\"#luckysheet-sheet-container-c #luckysheet-sheets-item\" + index);\r\n\t currentSheetItem.find(\".luckysheet-sheets-item-color\").remove();\r\n\r\n\t if(value != null || value != \"\"){\r\n\t currentSheetItem.append('
');\r\n\t }\r\n\t }\r\n\t else if(k == \"pivotTable\"){ //PivotTable\r\n\t // luckysheet.pivotTable.changePivotTable(index);\r\n\t }\r\n\t\t\telse if(k == \"frozen\"){ //freezen row and column\r\n\r\n\t\t\t\t// tranform frozen\r\n\t\t\t\tluckysheetFreezen.frozenTofreezen();\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t\t\t\t\tconst _locale = locale();\r\n\t\t\t\t\tconst locale_freezen = _locale.freezen;\r\n\t if(file[\"freezen\"].horizontal == null){\r\n\t $(\"#luckysheet-freezen-btn-horizontal\").html(' '+locale_freezen.freezenRow);\r\n\t luckysheetFreezen.freezenhorizontaldata = null;\r\n\t $(\"#luckysheet-freezebar-horizontal\").hide();\r\n\t }\r\n\t else{\r\n\t luckysheetFreezen.createFreezenHorizontal(file[\"freezen\"].horizontal.freezenhorizontaldata, file[\"freezen\"].horizontal.top);\r\n\t }\r\n\r\n\t if(file[\"freezen\"].vertical == null){\r\n\t $(\"#luckysheet-freezen-btn-vertical\").html(' '+locale_freezen.freezenColumn);\r\n\t luckysheetFreezen.freezenverticaldata = null;\r\n\t $(\"#luckysheet-freezebar-vertical\").hide();\r\n\t }\r\n\t else{\r\n\t luckysheetFreezen.createFreezenVertical(file[\"freezen\"].vertical.freezenverticaldata, file[\"freezen\"].vertical.left);\r\n\t }\r\n\r\n luckysheetFreezen.createAssistCanvas();\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n\t }\r\n\t }\r\n\t else if(k == \"filter_select\"){ //\u7B5B\u9009\u8303\u56F4\r\n\t if(index == Store.currentSheetIndex){\r\n\t createFilterOptions(value);\r\n\t }\r\n\t }\r\n\t else if(k == \"filter\"){ //\u7B5B\u9009\u4FDD\u5B58\r\n\t if(index == Store.currentSheetIndex){\r\n\t createFilterOptions(file.filter_select, value);\r\n\t }\r\n\t }\r\n\t else if(k == \"luckysheet_conditionformat_save\"){ //\u6761\u4EF6\u683C\u5F0F\r\n\t if(index == Store.currentSheetIndex){\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t }\r\n\t else if(k == \"luckysheet_alternateformat_save\"){ //\u4EA4\u66FF\u989C\u8272\r\n\t if(index == Store.currentSheetIndex){\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t }\r\n\t else if(k == \"config\"){ //config\r\n\t if(index == Store.currentSheetIndex){\r\n\t Store.config = value;\r\n\t jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n\t }\r\n\t }\r\n\t else if(k == \"dynamicArray\"){ //\u52A8\u6001\u6570\u7EC4\r\n\t if(index == Store.currentSheetIndex){\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t\t\t}\r\n\t\t\telse if(k == \"images\"){ //\u56FE\u7247\r\n\t\t\t\tif(index == Store.currentSheetIndex){\r\n\t\t\t\t\timageCtrl.images = value;\r\n\t\t\t\t\timageCtrl.allImagesShow();\r\n\t\t\t\t\timageCtrl.init();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(k == \"dataVerification\"){ //\u6570\u636E\u9A8C\u8BC1\r\n\t\t\t\tif(index == Store.currentSheetIndex){\r\n\t\t\t\t\tdataVerificationCtrl.dataVerification = value;\r\n \t\t\tdataVerificationCtrl.init();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(k == \"hyperlink\"){ //\u94FE\u63A5\r\n\t\t\t\tif(index == Store.currentSheetIndex){\r\n\t\t\t\t\thyperlinkCtrl.hyperlink = value;\r\n \t\t\thyperlinkCtrl.init();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t }\r\n\t else if(type == \"fc\"){ //\u51FD\u6570\u94FEcalc\r\n\t let op = item.op, pos = item.pos;\r\n\r\n\t if(getObjType(value) != \"object\"){\r\n\t\t\t\tvalue = new Function(\"return \" + value)();\r\n\t }\r\n\r\n\t let r = value.r, c = value.c;\r\n\r\n\t let calcChain = file[\"calcChain\"] == null ? [] : file[\"calcChain\"];\r\n\r\n\t if(op == \"add\"){\r\n\t calcChain.push(value);\r\n\t }\r\n\t else if(op == \"del\"){\r\n\t for(let a = 0; a < calcChain.length; a++){\r\n\t if(r == calcChain[a].r && c == calcChain[a].c && index == calcChain[a].index){\r\n\t calcChain.splice(a, 1);\r\n\t }\r\n\t }\r\n\t }\r\n\t // else if(op == \"update\"){\r\n\t // for(let a = 0; a < calcChain.length; a++){\r\n\t // if(r == calcChain[a].r && c == calcChain[a].c && index == calcChain[a].index){\r\n\t // calcChain[a].func = func;\r\n\t // }\r\n\t // }\r\n\t // }\r\n\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t else if(type == \"drc\"){ //\u5220\u9664\u884C\u5217\r\n\t if(file.data == null || file.data.length == 0){\r\n\t return;\r\n\t }\r\n\r\n\t let rc = item.rc,\r\n\t \tst_i = value.index,\r\n\t \tlen = value.len,\r\n\t \tmc = value.mc,\r\n\t \tborderInfo = value.borderInfo;\r\n\t let data = file.data;\r\n\r\n\t if(rc == \"r\"){\r\n\t file[\"row\"] -= len;\r\n\r\n\t data.splice(st_i, len);\r\n\r\n\t //\u7A7A\u767D\u884C\u6A21\u677F\r\n\t let row = [];\r\n\t for (let c = 0; c < data[0].length; c++) {\r\n\t row.push(null);\r\n\t }\r\n\r\n\t //\u5220\u9664\u591A\u5C11\u884C\uFF0C\u589E\u52A0\u591A\u5C11\u884C\u7A7A\u767D\u884C\r\n\t for (let r = 0; r < len; r++) {\r\n\t data.push(row);\r\n\t }\r\n\t }\r\n\t else{\r\n\t file[\"column\"] -= len;\r\n\r\n\t //\u7A7A\u767D\u5217\u6A21\u677F\r\n\t let addcol = [];\r\n\t for (let r = 0; r < len; r++) {\r\n\t addcol.push(null);\r\n\t }\r\n\r\n\t for(let i = 0; i < data.length; i++){\r\n\t data[i].splice(st_i, len);\r\n\r\n\t data[i] = data[i].concat(addcol);\r\n\t }\r\n\t }\r\n\r\n\t for(let x in mc){\r\n\t let r = mc[x].r, c = mc[x].c;\r\n\t data[r][c].mc = mc[x];\r\n\t }\r\n\r\n\t file[\"config\"].merge = mc;\r\n\t file[\"config\"].borderInfo = borderInfo;\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t\t\t\tStore.flowdata = data;\r\n\t\t\t\teditor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n\t Store.config[\"merge\"] = mc;\r\n\t Store.config[\"borderInfo\"] = borderInfo;\r\n\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t }\r\n\t else if(type == \"arc\"){ //\u589E\u52A0\u884C\u5217\r\n\t if(file.data == null || file.data.length == 0){\r\n\t return;\r\n\t }\r\n\r\n\t let rc = item.rc,\r\n\t \tst_i = value.index,\r\n\t \tlen = value.len,\r\n\t\t\t\taddData = value.data,\r\n\t\t\t\tdirection = value.direction,\r\n\t \tmc = value.mc,\r\n\t \tborderInfo = value.borderInfo;\r\n\t let data = $.extend(true, [], file.data);\r\n\r\n\t if(rc == \"r\"){\r\n\t\t\t\tfile[\"row\"] += len;\r\n\r\n\t\t\t\t//\u7A7A\u884C\u6A21\u677F\r\n\t\t\t\tlet row = [];\r\n\t\t\t\tfor(let c = 0; c < data[0].length; c++){\r\n\t\t\t\t\trow.push(null);\r\n\t\t\t\t}\r\n\r\n\t let arr = [];\r\n\t for(let i = 0; i < len; i++){\r\n\t\t\t\t\tif(addData[i] == null){\r\n\t\t\t\t\t\tarr.push(JSON.stringify(row));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tarr.push(JSON.stringify(addData[i]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(direction == \"lefttop\"){\r\n\t\t\t\t\tif(st_i == 0){\r\n\t\t\t\t\t\tnew Function(\"data\",\"return \" + 'data.unshift(' + arr.join(\",\") + ')')(data);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tnew Function(\"data\",\"return \" + 'data.splice(' + st_i + ', 0, ' + arr.join(\",\") + ')')(data);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tnew Function(\"data\",\"return \" + 'data.splice(' + (st_i + 1) + ', 0, ' + arr.join(\",\") + ')')(data);\r\n\t\t\t\t}\r\n\t }\r\n\t else{\r\n\t\t\t\tfile[\"column\"] += len;\r\n\r\n\t for(let i = 0; i < data.length; i++){\r\n\t\t\t\t\t/* \u5728\u6BCF\u4E00\u884C\u7684\u6307\u5B9A\u4F4D\u7F6E\u90FD\u63D2\u5165\u4E00\u5217 */\r\n\t\t\t\t\tfor (let j = 0; j < len; j++) {\r\n\t\t\t\t\t\tif(direction == \"lefttop\"){\r\n\t\t\t\t\t\t\tdata[i].splice(st_i, 0, addData[j]);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tdata[i].splice(st_i + 1, 0, addData[j]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t }\r\n\t }\r\n\r\n\t for(let x in mc){\r\n\t let r = mc[x].r, c = mc[x].c;\r\n\t data[r][c].mc = mc[x];\r\n\t }\r\n\r\n\t\t\tfile.data = data;\r\n\t file[\"config\"].merge = mc;\r\n\t file[\"config\"].borderInfo = borderInfo;\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t\t\t\tStore.flowdata = data;\r\n\t\t\t\teditor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n\r\n\t Store.config[\"merge\"] = mc;\r\n\t Store.config[\"borderInfo\"] = borderInfo;\r\n\r\n\t setTimeout(function () {\r\n\t luckysheetrefreshgrid();\r\n\t }, 1);\r\n\t }\r\n\t }\r\n\t else if(type == \"f\"){ //\u7B5B\u9009\r\n\t let op = item.op, pos = item.pos;\r\n\r\n\t let filter = file.filter;\r\n\r\n\t if(filter == null){\r\n\t filter = {};\r\n\t }\r\n\r\n\t if(op == \"upOrAdd\"){\r\n\t filter[pos] = value;\r\n\t }\r\n\t else if(op == \"del\"){\r\n\t delete filter[pos];\r\n\t }\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t createFilterOptions(file.filter_select, filter);\r\n\t }\r\n\t }\r\n\t else if(type == \"fsc\"){ //\u6E05\u9664\u7B5B\u9009\r\n\t file.filter = null;\r\n\t file.filter_select = null;\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t $('#luckysheet-filter-selected-sheet' + Store.currentSheetIndex + ', #luckysheet-filter-options-sheet' + Store.currentSheetIndex).remove();\r\n\t $(\"#luckysheet-filter-menu, #luckysheet-filter-submenu\").hide();\r\n\t }\r\n\t }\r\n\t else if(type == \"fsr\"){ //\u6062\u590D\u7B5B\u9009\r\n\t file.filter = value.filter;\r\n\t file.filter_select = value.filter_select;\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t createFilterOptions(file.filter_select, file.filter);\r\n\t }\r\n\t }\r\n\t else if(type == \"sha\"){ //\u65B0\u5EFAsheet\r\n\t Store.luckysheetfile.push(value);\r\n\r\n\t let colorset = '';\r\n\t if(value.color != null){\r\n\t colorset = '
';\r\n\t }\r\n\r\n\t $(\"#luckysheet-sheet-container-c\").append(replaceHtml(sheetHTML, { \"index\": value.index, \"active\": \"\", \"name\": value.name, \"style\": \"\", \"colorset\": colorset }));\r\n\t $(\"#luckysheet-cell-main\").append('
');\r\n\r\n\t\t\t\t\t// *\u6DFB\u52A0sheet\u4E4B\u540E,\u8981\u5224\u65AD\u662F\u5426\u9700\u8981\u663E\u793Asheet\u6EDA\u52A8\u6309\u94AE\r\n\t\t\t\t\tsheetmanage.locationSheet()\r\n\t }\r\n\t else if(type == \"shc\"){ //\u590D\u5236sheet\r\n\t let copyindex = value.copyindex, name = value.name;\r\n\r\n\t let copyarrindex = getSheetIndex(copyindex);\r\n\t let copyjson = $.extend(true, {}, Store.luckysheetfile[copyarrindex]);\r\n\r\n\t copyjson.index = index;\r\n\t copyjson.name = name;\r\n\r\n\t Store.luckysheetfile.splice(copyarrindex + 1, 0, copyjson);\r\n\r\n\t let copyobject = $(\"#luckysheet-sheets-item\" + copyindex);\r\n\t $(\"#luckysheet-sheet-container-c\").append(replaceHtml(sheetHTML, { \"index\": copyjson.index, \"active\": \"\", \"name\": copyjson.name, \"style\": \"\", \"colorset\": \"\" }));\r\n\t $(\"#luckysheet-sheets-item\" + copyjson.index).insertAfter(copyobject);\r\n\t $(\"#luckysheet-cell-main\").append('
');\r\n\t }\r\n\t else if(type == \"shd\"){ //\u5220\u9664sheet\r\n\t for(let i = 0; i < Store.luckysheetfile.length; i++){\r\n\t if(Store.luckysheetfile[i].index == value.deleIndex){\r\n\r\n\t\t\t\t\t// \u5982\u679C\u5220\u9664\u7684\u662F\u5F53\u524Dsheet\uFF0C\u5219\u5207\u6362\u5230\u524D\u4E00\u4E2Asheet\u9875\r\n\t\t\t\t\tif(Store.currentSheetIndex === value.deleIndex){\r\n\t\t\t\t\t\tconst index = value.deleIndex;\r\n\r\n\t\t\t\t\t\tStore.luckysheetfile[sheetmanage.getSheetIndex(index)].hide = 1;\r\n\r\n\t\t\t\t\t\tlet luckysheetcurrentSheetitem = $(\"#luckysheet-sheets-item\" + index);\r\n\t\t\t\t\t\tluckysheetcurrentSheetitem.hide();\r\n\r\n\t\t\t\t\t\t$(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n\r\n\t\t\t\t\t\tlet indicator = luckysheetcurrentSheetitem.nextAll(\":visible\");\r\n\t\t\t\t\t\tif (luckysheetcurrentSheetitem.nextAll(\":visible\").length > 0) {\r\n\t\t\t\t\t\t\tindicator = indicator.eq(0).data(\"index\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tindicator = luckysheetcurrentSheetitem.prevAll(\":visible\").eq(0).data(\"index\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$(\"#luckysheet-sheets-item\" + indicator).addClass(\"luckysheet-sheets-item-active\");\r\n\r\n\t\t\t\t\t\tsheetmanage.changeSheetExec(indicator);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tserver.sheetDeleSave.push(Store.luckysheetfile[i]);\r\n\r\n\t\t\t\t\tStore.luckysheetfile.splice(i, 1);\r\n\r\n\t break;\r\n\t }\r\n\t }\r\n\r\n\t $(\"#luckysheet-sheets-item\" + value.deleIndex).remove();\r\n\t\t\t$(\"#luckysheet-datavisual-selection-set-\" + value.deleIndex).remove();\r\n\t\t\tsheetmanage.locationSheet()\r\n\r\n\t }\r\n\t else if(type == \"shr\"){ //sheet\u4F4D\u7F6E\r\n\t for(let x in value){\r\n\t Store.luckysheetfile[getSheetIndex(x)].order = value[x];\r\n\t }\r\n\t }\r\n\t else if(type == \"shre\"){ //\u5220\u9664sheet\u6062\u590D\u64CD\u4F5C\r\n\t for(let i = 0; i < server.sheetDeleSave.length; i++){\r\n\t if(server.sheetDeleSave[i].index == value.reIndex){\r\n\t let datav = server.sheetDeleSave[i];\r\n\r\n\t Store.luckysheetfile.push(datav);\r\n\r\n\t let colorset = '';\r\n\t if(value.color != null){\r\n\t colorset = '
';\r\n\t }\r\n\r\n\t $(\"#luckysheet-sheet-container-c\").append(replaceHtml(sheetHTML, { \"index\": datav.index, \"active\": \"\", \"name\": datav.name, \"style\": \"\", \"colorset\": colorset }));\r\n\t $(\"#luckysheet-cell-main\").append('
');\r\n\t break;\r\n\t }\r\n\t }\r\n\t }\r\n\t else if(type == \"sh\"){ //\u9690\u85CFsheet\r\n\t let op = item.op, cur = item.cur;\r\n\r\n\t if(op == \"hide\"){\r\n\t file.hide = 1;\r\n\t $(\"#luckysheet-sheets-item\" + index).hide();\r\n\r\n\t if(index == Store.currentSheetIndex){\r\n\t $(\"#luckysheet-sheets-item\" + cur).addClass(\"luckysheet-sheets-item-active\");\r\n\t sheetmanage.changeSheetExec(cur);\r\n\t }\r\n\t }\r\n\t else if(op == \"show\"){\r\n\t file.hide = 0;\r\n\t $(\"#luckysheet-sheets-item\" + index).show();\r\n\t }\r\n\t\t\t\tsheetmanage.locationSheet()\r\n\t }\r\n\t else if(type == \"c\"){ //\u56FE\u8868\u64CD\u4F5C TODO\r\n\t let op = item.op, cid = item.cid;\r\n\r\n\t if(op == \"add\"){ //\u63D2\u5165\r\n\t file.chart.push(value);\r\n\r\n\t luckysheet.insertChartTosheet(value.sheetIndex, value.dataSheetIndex, value.option, value.chartType, value.selfOption, value.defaultOption, value.row, value.column, value.chart_selection_color, value.chart_id, value.chart_selection_id, value.chartStyle, value.rangeConfigCheck, value.rangeRowCheck, value.rangeColCheck, value.chartMarkConfig, value.chartTitleConfig, value.winWidth, value.winHeight, value.scrollLeft1, value.scrollTop1, value.chartTheme, value.myWidth, value.myHeight, value.myLeft, value.myTop, value.myindexrank1, true);\r\n\t }\r\n\t else if(op == \"xy\" || op == \"wh\" || op == \"update\"){ //\u79FB\u52A8 \u7F29\u653E \u66F4\u65B0\r\n\t for(let i = 0; i < file.chart.length; i++){\r\n\t let chartjson = file.chart[i];\r\n\r\n\t if(chartjson.chart_id == cid){\r\n\t for(let item in chartjson){\r\n\t for(let vitem in value){\r\n\t if(item == vitem){\r\n\t chartjson[item] = value[vitem];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t sheetmanage.saveChart(chartjson);\r\n\r\n\t return;\r\n\t }\r\n\t }\r\n\t }\r\n\t else if(op == \"del\"){ //\u5220\u9664\r\n\t for(let i = 0; i < file.chart.length; i++){\r\n\t let chartjson = file.chart[i];\r\n\r\n\t if(chartjson.chart_id == cid){\r\n\t file.chart.splice(i, 1);\r\n\r\n\t $(\"#\" + cid).remove();\r\n\t sheetmanage.delChart($(\"#\" + cid).attr(\"chart_id\"), $(\"#\" + cid).attr(\"sheetIndex\"));\r\n\r\n\t return;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\t else if(type == \"na\"){ //\u8868\u683C\u540D\u79F0\r\n\t $(\"#luckysheet_info_detail_input\").val(value).css(\"width\", getByteLen(value) * 10);\r\n\t }\r\n\t},\r\n multipleIndex: 0,\r\n multipleRangeShow: function(id, name, r, c, value) {\r\n \tlet _this = this;\r\n\t\t\tconst fullName = name;\r\n\r\n\t let row = Store.visibledatarow[r],\r\n\t row_pre = r - 1 == -1 ? 0 : Store.visibledatarow[r - 1],\r\n\t col = Store.visibledatacolumn[c],\r\n\t col_pre = c - 1 == -1 ? 0 : Store.visibledatacolumn[c - 1];\r\n\r\n\t let margeset = menuButton.mergeborer(Store.flowdata, r, c);\r\n\t if(!!margeset){\r\n\t row = margeset.row[1];\r\n\t row_pre = margeset.row[0];\r\n\r\n\t col = margeset.column[1];\r\n\t col_pre = margeset.column[0];\r\n\t\t\t}\r\n\r\n\t\t\t// *\u5904\u7406\u5149\u6807\u5728\u9760\u5DE6\u6216\u8005\u9760\u4E0A\u9876\u7740\u7684\u65F6\u5019\uFF0C\u5149\u6807\u663E\u793A\u4E0D\u5168\u7684\u95EE\u9898\r\n\t\t\tif(col_pre <= 0){\r\n\t\t\t\tcol_pre += 1\r\n\t\t\t}\r\n\r\n\t\t\tif(row_pre <= 0){\r\n\t\t\t\trow_pre +=1\r\n\t\t\t}\r\n\r\n\t\t\t// \u8D85\u51FA16\u4E2A\u5B57\u7B26\u5C31\u663E\u793A...\r\n\t\t\tif(getByteLen(name) > 16){\r\n\t\t\t\tname = getByteLen(name,16) + \"...\";\r\n\t\t\t}\r\n\r\n\t\t\t// \u5982\u679C\u6B63\u5728\u7F16\u8F91\uFF0C\u5C31\u663E\u793A\u201C\u6B63\u5728\u8F93\u5165\u201D\r\n\t\t\tif(value === 'enterEdit'){\r\n\t\t\t\tname += \" \" + locale().edit.typing;\r\n\t\t\t}\r\n\r\n\t if($(\"#luckysheet-multipleRange-show-\" + id).length > 0){\r\n\t\t\t$(\"#luckysheet-multipleRange-show-\" + id).css({ \"position\": \"absolute\", \"left\": col_pre - 1, \"width\": col - col_pre - 1, \"top\": row_pre - 1, \"height\": row - row_pre - 1 });\r\n\r\n\t\t\t$(\"#luckysheet-multipleRange-show-\" + id + \" .username\").text(name);\r\n\t\t\t$(\"#luckysheet-multipleRange-show-\" + id + \" .username\").show();\r\n\r\n\t\t\tif(Store.cooperativeEdit.usernameTimeout['user' + id] != null){\r\n\t\t\t\tclearTimeout(Store.cooperativeEdit.usernameTimeout['user' + id])\r\n\t\t\t}\r\n\t\t\tStore.cooperativeEdit.usernameTimeout['user' + id] = setTimeout(()=>{\r\n\t\t\t\tclearTimeout(Store.cooperativeEdit.usernameTimeout['user' + id]);\r\n\t\t\t\tStore.cooperativeEdit.usernameTimeout['user' + id] = null;\r\n\t\t\t},10 * 1000)\r\n\r\n\r\n\r\n\t }\r\n\t else{\r\n\t // let itemHtml = '
'+\r\n\t // '
'+\r\n\t\t\t// '
';\r\n\r\n\t\t\tlet itemHtml = `\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t${name}\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
`;\r\n\t\t\t\t\t\t\t// \u6B63\u5728\u8F93\u5165\r\n\r\n\t $(itemHtml).appendTo($(\"#luckysheet-cell-main #luckysheet-multipleRange-show\"));\r\n\r\n\t\t\t_this.multipleIndex++;\r\n\r\n\t\t\t// \u8BBE\u5B9A\u5141\u8BB8\u7528\u6237\u540D\u6D88\u5931\u7684\u5B9A\u65F6\u5668\uFF0C10\u79D2\u540E\u7528\u6237\u540D\u53EF\u9690\u85CF\r\n\t\t\t// 10\u79D2\u4E4B\u7C7B\uFF0C\u7528\u6237\u64CD\u4F5C\u754C\u9762\u4E0D\u4F1A\u9690\u85CF\u7528\u6237\u540D\uFF1B10\u79D2\u4E4B\u540E\u5982\u679C\u7528\u6237\u64CD\u4F5C\u4E86\u754C\u9762\uFF0C\u5219\u9690\u85CF\u7528\u6237\u540D\uFF0C\u6CA1\u64CD\u4F5C\u5C31\u4E0D\u9690\u85CF\r\n\t\t\tif(Store.cooperativeEdit.usernameTimeout['user' + id] != null){\r\n\t\t\t\tclearTimeout(Store.cooperativeEdit.usernameTimeout['user' + id])\r\n\t\t\t}\r\n\t\t\tStore.cooperativeEdit.usernameTimeout['user' + id] = setTimeout(()=>{\r\n\t\t\t\tclearTimeout(Store.cooperativeEdit.usernameTimeout['user' + id]);\r\n\t\t\t\tStore.cooperativeEdit.usernameTimeout['user' + id] = null;\r\n\t\t\t},10 * 1000)\r\n\t }\r\n\t},\r\n sheetDeleSave: [], //\u5171\u4EAB\u7F16\u8F91\u6A21\u5F0F\u4E0B \u5220\u9664\u7684sheet\u4FDD\u5B58\u4E0B\u6765\uFF0C\u65B9\u4FBF\u6062\u590D\u65F6\u53D6\u503C\r\n submitInterval: 1000,\r\n imagesubmitInterval: 5000,\r\n submitdatalimit: 50,\r\n submitcompresslimit: 1000,\r\n checksubmit: function(data){\r\n let _this = this;\r\n //clearTimeout(_this.requestTimeOut);\r\n\r\n _this.submitTimeout();\r\n\r\n clearTimeout(_this.imageRequestTimeout);\r\n _this.imageRequestTimeout = setTimeout(function(){\r\n _this.imageRequest();\r\n }, _this.imagesubmitInterval);\r\n },\r\n submitTimeout: function(){\r\n let _this = this;\r\n clearTimeout(_this.requestTimeOut);\r\n\r\n //console.log(_this.requestlast, dayjs(), (_this.requestlast!=null && _this.requestlast.add(10, 'seconds').isBefore(dayjs()) ) );\r\n if(!_this.requestLock && (_this.requestlast!=null && _this.requestlast.clone().add(1, 'seconds').isBefore(dayjs()) ) ){\r\n _this.request();\r\n }\r\n\r\n // if(!_this.imageRequestLock && (_this.imageRequestLast==null || _this.imageRequestLast.clone().add(30, 'seconds').isBefore(dayjs()) ) ){\r\n\r\n // }\r\n\r\n _this.requestTimeOut = setTimeout(function(){\r\n _this.submitTimeout();\r\n }, _this.submitInterval);\r\n },\r\n requestLock: false,\r\n requestlast: null,\r\n firstchange: true,\r\n requestTimeOut: null,\r\n request: function () {\r\n let _this = this;\r\n let key = this.gridKey;\r\n let cahce_key = key + \"__qkcache\";\r\n\r\n _this.cachelocaldata(function(cahce_key, params){\r\n if(params.length==0){\r\n return;\r\n }\r\n\r\n params = encodeURIComponent(JSON.stringify(params));\r\n let compressBeginLen = params.length;\r\n let iscommpress = false;\r\n // if (compressBeginLen > _this.submitcompresslimit) {\r\n // params = pako.gzip(params, { to: \"string\" });\r\n // iscommpress = true;\r\n // }\r\n _this.requestLock = true;\r\n //console.log(params);\r\n // console.log(\"request\");\r\n if(_this.updateUrl != \"\"){\r\n $.post(_this.updateUrl, { compress: iscommpress, gridKey: _this.gridKey, data: params }, function (data) {\r\n\t\t\t\t\tlet re = new Function(\"return \" + data)();\r\n if(re.status){\r\n $(\"#luckysheet_info_detail_update\").html(\"\u6700\u8FD1\u5B58\u6863\u65F6\u95F4:\"+ dayjs().format(\"M-D H:m:s\"));\r\n $(\"#luckysheet_info_detail_save\").html(\"\u540C\u6B65\u6210\u529F\");\r\n _this.clearcachelocaldata();\r\n }\r\n else{\r\n $(\"#luckysheet_info_detail_save\").html(\"\u540C\u6B65\u5931\u8D25\");\r\n _this.restorecachelocaldata();\r\n }\r\n _this.requestlast = dayjs();\r\n _this.requestLock = false;\r\n });\r\n }\r\n });\r\n },\r\n imageRequestLast: null,\r\n imageRequestLock: false,\r\n imageRequestTimeout: null,\r\n imageRequest: function(){\r\n let _this = this;\r\n\r\n html2canvas($(\"#\" + container).find(\".luckysheet-grid-window\").get(0), {\r\n onrendered: function(canvas) {\r\n //let imgcut = $(\"#luckysheet-cell-main\").find(\".luckysheet-grid-window\");\r\n //document.body.appendChild(canvas);\r\n let old = $(canvas).appendTo(\"body\");\r\n old.hide();\r\n let newwidth = old.width();\r\n let newheight = old.height();\r\n let imageData = old.get(0).getContext(\"2d\").getImageData(0, 0, newwidth, newheight);\r\n\r\n let cutW = newwidth, cutH = newheight;\r\n if(cutW*0.54 > cutH){\r\n cutW = cutH / 0.54;\r\n }\r\n else{\r\n cutH = cutW * 0.54;\r\n }\r\n let newCanvas = $(\"\").attr(\"width\", cutW).attr(\"height\", cutH)[0];\r\n\r\n newCanvas.getContext(\"2d\").putImageData(imageData, 0, 0);\r\n\r\n old.attr(\"width\", 350);\r\n old.attr(\"height\", 189);\r\n old.get(0).getContext(\"2d\").drawImage(newCanvas, 0, 0, 350, 189);\r\n let base64 = old.get(0).toDataURL('image/jpeg', 0.9);\r\n\r\n //console.log(base64);\r\n //console.log(\"\u538B\u7F29\uFF1A\", pako.gzip(base64, { to: \"string\" }));\r\n //console.log(\"imageRequest\");\r\n let curindex = luckysheet.sheetmanage.getCurSheetnoset();\r\n _this.imageRequestLock =true;\r\n // let data1 = pako.gzip(encodeURIComponent(JSON.stringify({\"t\":\"thumb\", \"img\": base64, \"curindex\":curindex })), { to: \"string\" });\r\n let data1 = encodeURIComponent(JSON.stringify({\"t\":\"thumb\", \"img\": base64, \"curindex\":curindex }));\r\n old.remove();\r\n //console.log(\"\u7F29\u7565\u56FE\", _this.imageRequestLast,base64);\r\n if(_this.updateImageUrl != \"\"){\r\n // $.post(_this.updateImageUrl, { compress: true, gridKey: _this.gridKey, data:data1 }, function (data) {\r\n $.post(_this.updateImageUrl, { compress: false, gridKey: _this.gridKey, data:data1 }, function (data) {\r\n\t\t\t\t\tlet re = new Function(\"return \" + data)();\r\n if(re.status){\r\n imageRequestLast = dayjs();\r\n }\r\n else{\r\n $(\"#luckysheet_info_detail_save\").html(\"\u7F51\u7EDC\u4E0D\u7A33\u5B9A\");\r\n }\r\n _this.imageRequestLock =true;\r\n });\r\n }\r\n\r\n }\r\n });\r\n },\r\n localdata: [],\r\n matchOpt: function(v, d){\r\n for(let vitem in v){\r\n if(vitem == \"t\" && v[\"t\"] in {\"drc\":1, \"arc\":1,\"sha\":1,\"shc\":1,\"shd\":1 } ){\r\n return false;\r\n }\r\n\r\n if(vitem==\"v\"){\r\n continue;\r\n }\r\n\r\n if(!(vitem in d)){\r\n return false;\r\n }\r\n\r\n if(d[vitem] != v[vitem]){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n },\r\n deleteRepeatOpt: function(data, value){\r\n //let d = $.extend(true, [], data); //\u539F\u6765\r\n let d = data;\r\n let _this = this;\r\n\r\n if(value instanceof Array){\r\n for(let i = 0; i < value.length; i++){\r\n let vitem = value[i];\r\n\r\n for(let a = 0; a < d.length; a++){\r\n let ditem = data[i]; //let ditem = data[a];?\r\n\r\n if(_this.matchOpt(vitem, ditem)){\r\n delete d[a];\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n for(let a = 0; a < d.length; a++){\r\n let ditem = d[a];\r\n\r\n if(_this.matchOpt(value, ditem)){\r\n delete d[a];\r\n }\r\n }\r\n }\r\n\r\n let ret = [];\r\n for(let i = 0; i < d.length; i++){\r\n if(d[i] != null){\r\n ret.push(d[i]);\r\n }\r\n }\r\n\r\n return ret;\r\n },\r\n setlocaldata: function (value, func) {\r\n let key = this.gridKey;\r\n //store.push(key, data);\r\n let _this = this;\r\n _this.getlocaldata(function(data){\r\n if(data==null){\r\n data = [];\r\n }\r\n\r\n //\u6B64\u5904\u4E0D\u53BB\u91CD\uFF0C\u5728request\u540C\u6B65\u540E\u53F0\u65F6\u7EDF\u4E00\u5FAA\u73AF\u4E00\u6B21\u53BB\u91CD\r\n //let data = _this.deleteRepeatOpt(data, value);\r\n\r\n if(value instanceof Array){\r\n data = data.concat(value);\r\n }\r\n else{\r\n data.push(value);\r\n }\r\n\r\n _this.localdata = data;\r\n func(_this.localdata);\r\n\r\n //console.log(value);\r\n // localforage.setItem(key, data).then(function () {\r\n // console.log(data);\r\n // func(data);\r\n // }).catch(function (err) {\r\n\r\n // });\r\n });\r\n },\r\n getlocaldata: function (func) {\r\n let key = this.gridKey;\r\n //return store.get(key);\r\n func(this.localdata);\r\n // localforage.getItem(key).then(function(readValue) {\r\n // func(readValue);\r\n // });\r\n },\r\n clearlocaldata: function (func) {\r\n let key = this.gridKey;\r\n //store.remove(key);\r\n this.localdata = [];\r\n func();\r\n // localforage.removeItem(key, function(err,value) {\r\n // func();\r\n // });\r\n },\r\n cachelocaldata: function (func) {\r\n let key = this.gridKey;\r\n let _this = this;\r\n let cahce_key = key + \"__qkcache\";\r\n //store.remove(key);\r\n //console.log(key, cahce_key);\r\n\r\n\r\n //\u5904\u7406localdata\u53BB\u91CD\r\n let updatedata = _this.localdata;\r\n let uLen = updatedata.length;\r\n if(uLen > 1){\r\n let prevData = [];\r\n prevData[0] = updatedata[0];\r\n for(let i = 1; i < uLen; i++){\r\n let value = updatedata[i];\r\n let flag = true;\r\n for(let a=0;a {\r\n if(value.index == Store.currentSheetIndex) {\r\n if(value.op === 'enterEdit') {\r\n server.multipleRangeShow(value.id, value.username, value.r, value.c, value.op);\r\n } else {\r\n server.multipleRangeShow(value.id, value.username, value.r, value.c);\r\n }\r\n }\r\n })\r\n }\r\n}\r\n\r\nexport default server;\r\n", "import { modelHTML, luckysheetchartpointconfigHTML, luckysheetToolHTML } from '../controllers/constant';\r\nimport browser from './browser';\r\nimport { replaceHtml } from '../utils/util';\r\nimport locale from '../locale/locale';\r\nimport server from '../controllers/server';\r\n\r\nconst tooltip = {\r\n info: function (title, content) {\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-info\").remove();\r\n\r\n let _locale = locale();\r\n let locale_button = _locale.button;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-info\", \r\n \"addclass\": \"\", \r\n \"title\": title, \r\n \"content\": content, \r\n \"botton\": '', \r\n \"style\": \"z-index:100003\" \r\n }));\r\n let $t = $(\"#luckysheet-info\").find(\".luckysheet-modal-dialog-content\").css(\"min-width\", 300).end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-info\").css({ \"left\": (winw + scrollLeft - myw) / 2, \"top\": (winh + scrollTop - myh) / 3 }).show();\r\n },\r\n confirm: function (title, content, func1, func2, name1, name2) {\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-confirm\").remove();\r\n\r\n const _locale = locale();\r\n const locale_button = _locale.button;\r\n \r\n if(name1 == null){\r\n name1 = locale_button.confirm;\r\n }\r\n if(name2 == null){\r\n name2 = locale_button.cancel;\r\n }\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-confirm\", \r\n \"addclass\": \"\", \r\n \"style\": \"z-index:100003\", \r\n \"title\": title, \r\n \"content\": content, \r\n \"botton\": '' \r\n }));\r\n let $t = $(\"#luckysheet-confirm\").find(\".luckysheet-modal-dialog-content\").css(\"min-width\", 300).end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-confirm\").css({ \"left\": (winw + scrollLeft - myw) / 2, \"top\": (winh + scrollTop - myh) / 3 }).show();\r\n $t.find(\".luckysheet-model-conform-btn\").click(function () {\r\n if (typeof func1 == 'function') {\r\n func1();\r\n }\r\n server.keepHighLightBox();\r\n $(\"#luckysheet-confirm\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide(); \r\n });\r\n $t.find(\".luckysheet-model-cancel-btn\").click(function () {\r\n if (typeof func2 == 'function') {\r\n func2();\r\n }\r\n $(\"#luckysheet-confirm\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n });\r\n },\r\n screenshot: function (title, content, imgurl) {\r\n\r\n const _locale = locale();\r\n const locale_screenshot = _locale.screenshot;\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-confirm\").remove();\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": \"luckysheet-confirm\", \r\n \"addclass\": \"\", \r\n \"style\": \"z-index:100003\", \r\n \"title\": title, \r\n \"content\": content, \r\n \"botton\": '  '+ locale_screenshot.downLoadBtn +'    ' \r\n }));\r\n let $t = $(\"#luckysheet-confirm\").find(\".luckysheet-modal-dialog-content\").css(\"min-width\", 300).end(), \r\n myh = $t.outerHeight(), \r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-confirm\").css({ \"left\": (winw + scrollLeft - myw) / 2, \"top\": (winh + scrollTop - myh) / 3 }).show();\r\n $t.find(\".luckysheet-model-conform-btn\").click(function () {\r\n if(browser.isIE() == \"1\"){\r\n alert(locale_screenshot.browserNotTip);\r\n }\r\n else{\r\n if (!!window.ActiveXObject || \"ActiveXObject\" in window){\r\n if ($(\"#IframeReportImg\").length === 0){\r\n $('').appendTo(\"body\");\r\n }\r\n if ($('#IframeReportImg').attr(\"src\") != imgurl) {\r\n $('#IframeReportImg').attr(\"src\",imgurl);\r\n } else {\r\n if ($('#IframeReportImg').src != \"about:blank\") {\r\n window.frames[\"IframeReportImg\"].document.execCommand(\"SaveAs\");\r\n }\r\n }\r\n } \r\n }\r\n });\r\n $t.find(\".luckysheet-model-cancel-btn\").click(function () {\r\n $(\"#luckysheet-confirm\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n });\r\n\r\n $('#luckysheet-confirm .luckysheet-model-copy-btn').click(function(){\r\n let dt = new clipboard.DT();\r\n dt.setData(\"text/html\", \"\");\r\n if(browser.isIE() == \"1\"){\r\n alert(locale_screenshot.rightclickTip);\r\n }\r\n else{\r\n clipboard.write(dt);\r\n alert(locale_screenshot.successTip); \r\n }\r\n });\r\n },\r\n chartPointConfig: function (id, savefunc1, closefunc2) {\r\n $(\"body\").append(replaceHtml(modelHTML, { \r\n \"id\": id, \r\n \"addclass\": \"luckysheet-chart-point-config-c\", \r\n \"title\": \"\u6570\u636E\u70B9\u6279\u91CF\u8BBE\u7F6E\", \r\n \"content\": luckysheetchartpointconfigHTML, \r\n \"botton\": '', \r\n \"style\": \"z-index:100003;height:80%;width:80%;top:10%;left:10%;\" \r\n }));\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n let winw = $(window).width(), winh = $(window).height();\r\n $(\"#\" + id).find(\".luckysheet-chart-point-config\").css(\"height\", winh - 160);\r\n $(\"#\" + id).css({ \r\n \"height\": winh - 90, \r\n \"width\": winw - 100, \r\n \"left\": 7, \r\n \"top\": 14 \r\n }).show().find(\".luckysheet-model-save-btn\").click(function () {\r\n if (typeof savefunc1 == 'function') {\r\n savefunc1();\r\n }\r\n\r\n $(\"#\" + id).hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n });\r\n\r\n $(\"#\" + id).find(\".luckysheet-model-save-btn\").click(function () {\r\n if (typeof closefunc2 == 'function') {\r\n closefunc2();\r\n }\r\n\r\n $(\"#\" + id).hide();\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n });\r\n },\r\n sheetConfig: function () {\r\n\r\n },\r\n hoverTipshowState: false,\r\n hoverTipshowTimeOut: null,\r\n createHoverTip: function (obj, to) {\r\n let _this = this;\r\n\r\n $(obj).on(\"mouseover\", to, function (e) {\r\n if (_this.hoverTipshowState) {\r\n return;\r\n }\r\n\r\n clearTimeout(_this.hoverTipshowTimeOut);\r\n _this.hoverTipshowTimeOut = setTimeout(function(){\r\n let $t = $(e.currentTarget), \r\n toffset = $t.offset(), \r\n $toolup = $(\"#luckysheet-tooltip-up\");\r\n \r\n let tips = $t.data(\"tips\");\r\n if (tips == null || tips.length == 0) {\r\n tips = $t.prev().data(\"tips\");\r\n\r\n if (tips == null || tips.length == 0) {\r\n return;\r\n }\r\n }\r\n\r\n if ($toolup.length == 0) {\r\n $(\"body\").append(luckysheetToolHTML);\r\n $toolup = $(\"#luckysheet-tooltip-up\");\r\n }\r\n\r\n $toolup.removeClass(\"jfk-tooltip-hide\").find(\"div.jfk-tooltip-contentId\").html(tips);\r\n let toolwidth = $toolup.outerWidth();\r\n $toolup.find(\"div.jfk-tooltip-arrow\").css(\"left\", (toolwidth) / 2);\r\n\r\n let toolleft = toffset.left + ($t.outerWidth() - toolwidth) / 2;\r\n if(toolleft < 2){\r\n toolleft = 2;\r\n $toolup.find(\"div.jfk-tooltip-arrow\").css(\"left\", $t.outerWidth() / 2);\r\n }\r\n\r\n $toolup.css({ \"top\": toffset.top + $t.outerHeight() + 1, \"left\": toolleft });\r\n }, 300);\r\n\r\n }).on(\"mouseout\", to, function (e) {\r\n _this.hoverTipshowState = false;\r\n clearTimeout(_this.hoverTipshowTimeOut);\r\n $(\"#luckysheet-tooltip-up\").addClass(\"jfk-tooltip-hide\");\r\n }).on(\"click\", to, function (e) {\r\n _this.hoverTipshowState = true;\r\n clearTimeout(_this.hoverTipshowTimeOut);\r\n $(\"#luckysheet-tooltip-up\").addClass(\"jfk-tooltip-hide\");\r\n });\r\n },\r\n popover: function(content, position, close, style, btntxt, exitsFuc){\r\n let _locale = locale();\r\n let locale_button = _locale.button;\r\n let locale_paint = _locale.paint;\r\n\r\n if(btntxt == null){\r\n btntxt = locale_button.close;\r\n }\r\n\r\n let htmldiv = '
'+locale_paint.start+'
'+ btntxt +'
';\r\n $(\"#luckysheetpopover\").remove();\r\n $(\"body\").append(htmldiv);\r\n $(\"#luckysheetpopover .luckysheetpopover-content\").html(content);\r\n\r\n let w = $(\"#luckysheetpopover\").outerWidth(),\r\n h = $(\"#luckysheetpopover\").outerHeight();\r\n let pcss = {};\r\n\r\n if(position == 'topLeft'){\r\n pcss.top = \"20px\";\r\n pcss.left = \"20px\";\r\n }\r\n else if(position == 'topCenter'){\r\n pcss.top = \"20px\";\r\n pcss.left = \"50%\";\r\n pcss[\"margin-left\"] = -w/2;\r\n }\r\n else if(position == 'topRight'){\r\n pcss.top = \"20px\";\r\n pcss.right = \"20px\";\r\n }\r\n else if(position == 'midLeft'){\r\n pcss.top = \"50%\";\r\n pcss[\"margin-top\"] = -h/2;\r\n pcss.left = \"20px\";\r\n }\r\n else if(position == 'center'){\r\n pcss.top = \"50%\";\r\n pcss[\"margin-top\"] = -h/2;\r\n pcss.left = \"50%\";\r\n pcss[\"margin-left\"] = -w/2;\r\n }\r\n else if(position == 'midRight'){\r\n pcss.top = \"50%\";\r\n pcss[\"margin-top\"] = -h/2;\r\n pcss.right = \"20px\";\r\n }\r\n else if(position == 'bottomLeft'){\r\n pcss.bottom = \"20px\";\r\n pcss.left = \"20px\";\r\n }\r\n else if(position == 'bottomCenter'){\r\n pcss.bottom = \"20px\";\r\n pcss.left = \"50%\";\r\n pcss[\"margin-left\"] = -w/2;\r\n }\r\n else if(position == 'bottomRight'){\r\n pcss.bottom = \"20px\";\r\n pcss.right = \"20px\";\r\n }\r\n else{\r\n pcss.top = \"20px\";\r\n pcss.left = \"50%\";\r\n pcss[\"margin-left\"] = -w/2;\r\n }\r\n\r\n if(style == \"white\"){\r\n pcss.background = \"rgba(255, 255, 255, 0.65)\";\r\n pcss.color = \"#000\";\r\n $(\"#luckysheetpopover .luckysheetpopover-btn\").css({\"border\": \"1px solid #000\"});\r\n }\r\n\r\n setTimeout(function(){\r\n $(\"#luckysheetpopover .luckysheetpopover-content\").css({\"margin-left\": -$(\"#luckysheetpopover .luckysheetpopover-btn\").outerWidth()/2});\r\n }, 1);\r\n $(\"#luckysheetpopover\").css(pcss).fadeIn();\r\n $(\"#luckysheetpopover .luckysheetpopover-btn\").click(function(){\r\n if(typeof(exitsFuc) == \"function\"){\r\n exitsFuc();\r\n }\r\n });\r\n\r\n if(close != null && typeof(close) == \"number\"){\r\n setTimeout(function(){\r\n $(\"#luckysheetpopover\").fadeOut().remove();\r\n if(typeof(exitsFuc) == \"function\"){\r\n exitsFuc();\r\n }\r\n }, close);\r\n }\r\n }\r\n}\r\n\r\nexport default tooltip;", "import { getSheetIndex, getRangetxt } from '../methods/get';\r\nimport { replaceHtml, getObjType, chatatABC } from '../utils/util';\r\nimport formula from '../global/formula';\r\nimport { isRealNull, isEditMode } from '../global/validate';\r\nimport tooltip from '../global/tooltip';\r\nimport { luckysheetrefreshgrid } from '../global/refresh';\r\nimport { getcellvalue } from '../global/getdata';\r\nimport { genarate } from '../global/format';\r\nimport { modelHTML, luckysheet_CFiconsImg } from './constant';\r\nimport server from './server';\r\nimport { selectionCopyShow } from './select';\r\nimport sheetmanage from './sheetmanage';\r\nimport locale from '../locale/locale';\r\nimport {checkProtectionFormatCells} from './protection';\r\nimport Store from '../store';\r\nimport dayjs from 'dayjs'\r\n\r\n//\u6761\u4EF6\u683C\u5F0F\r\nconst conditionformat = {\r\n fileClone: [],\r\n editorRule: null, //{\"sheetIndex\": sheetIndex,\"itemIndex\": itemIndex,\"data\": luckysheetfile[sheetIndex].luckysheet_conditionformat_save[itemIndex]}\r\n ruleTypeHtml: function(){\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n return `
\r\n
\r\n \r\n ${conditionformat_Text.ruleTypeItem1}\r\n
\r\n
\r\n \r\n ${conditionformat_Text.ruleTypeItem2}\r\n
\r\n
\r\n \r\n ${conditionformat_Text.ruleTypeItem3}\r\n
\r\n
\r\n \r\n ${conditionformat_Text.ruleTypeItem4}\r\n
\r\n
\r\n \r\n ${conditionformat_Text.ruleTypeItem5}\r\n
\r\n
\r\n \r\n ${conditionformat_Text.ruleTypeItem6}\r\n
\r\n
`;\r\n },\r\n textCellColorHtml: function(){\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n return `
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
`;\r\n },\r\n selectRange: [],\r\n selectStatus: false,\r\n dataBarList: [\r\n { \"format\": [\"#638ec6\", \"#ffffff\"] }, //\u84DD-\u767D\u6E10\u53D8 \u6570\u636E\u6761\r\n { \"format\": [\"#63c384\", \"#ffffff\"] }, //\u7EFF-\u767D\u6E10\u53D8 \u6570\u636E\u6761\r\n { \"format\": [\"#ff555a\", \"#ffffff\"] }, //\u7EA2-\u767D\u6E10\u53D8 \u6570\u636E\u6761\r\n { \"format\": [\"#ffb628\", \"#ffffff\"] }, //\u6A59-\u767D\u6E10\u53D8 \u6570\u636E\u6761\r\n { \"format\": [\"#008aef\", \"#ffffff\"] }, //\u6D45\u84DD-\u767D\u6E10\u53D8 \u6570\u636E\u6761\r\n { \"format\": [\"#d6007b\", \"#ffffff\"] }, //\u7D2B-\u767D\u6E10\u53D8 \u6570\u636E\u6761\r\n\r\n { \"format\": [\"#638ec6\"] }, //\u84DD\u8272 \u6570\u636E\u6761\r\n { \"format\": [\"#63c384\"] }, //\u7EFF\u8272 \u6570\u636E\u6761\r\n { \"format\": [\"#ff555a\"] }, //\u7EA2\u8272 \u6570\u636E\u6761\r\n { \"format\": [\"#ffb628\"] }, //\u6A59\u8272 \u6570\u636E\u6761\r\n { \"format\": [\"#008aef\"] }, //\u6D45\u84DD\u8272 \u6570\u636E\u6761\r\n { \"format\": [\"#d6007b\"] } //\u7D2B\u8272 \u6570\u636E\u6761\r\n ],\r\n colorGradationList: [\r\n { \"format\": [\"rgb(99, 190, 123)\", \"rgb(255, 235, 132)\", \"rgb(248, 105, 107)\"] }, //\u7EFF-\u9EC4-\u7EA2\u8272\u9636\r\n { \"format\": [\"rgb(248, 105, 107)\", \"rgb(255, 235, 132)\", \"rgb(99, 190, 123)\"] }, //\u7EA2-\u9EC4-\u7EFF\u8272\u9636\r\n\r\n { \"format\": [\"rgb(99, 190, 123)\", \"rgb(252, 252, 255)\", \"rgb(248, 105, 107)\"] }, //\u7EFF-\u767D-\u7EA2\u8272\u9636\r\n { \"format\": [\"rgb(248, 105, 107)\", \"rgb(252, 252, 255)\", \"rgb(99, 190, 123)\"] }, //\u7EA2-\u767D-\u7EFF\u8272\u9636\r\n\r\n { \"format\": [\"rgb(90, 138, 198)\", \"rgb(252, 252, 255)\", \"rgb(248, 105, 107)\"] }, //\u84DD-\u767D-\u7EA2\u8272\u9636\r\n { \"format\": [\"rgb(248, 105, 107)\", \"rgb(252, 252, 255)\", \"rgb(90, 138, 198)\"] }, //\u7EA2-\u767D-\u84DD\u8272\u9636\r\n\r\n { \"format\": [\"rgb(252, 252, 255)\", \"rgb(248, 105, 107)\"] }, //\u767D-\u7EA2\u8272\u9636\r\n { \"format\": [\"rgb(248, 105, 107)\", \"rgb(252, 252, 255)\"] }, //\u7EA2-\u767D\u8272\u9636\r\n\r\n { \"format\": [\"rgb(99, 190, 123)\", \"rgb(252, 252, 255)\"] }, //\u7EFF-\u767D\u8272\u9636\r\n { \"format\": [\"rgb(252, 252, 255)\", \"rgb(99, 190, 123)\"] }, //\u767D-\u7EFF\u8272\u9636\r\n\r\n { \"format\": [\"rgb(99, 190, 123)\", \"rgb(255, 235, 132)\"] }, //\u7EFF-\u9EC4\u8272\u9636\r\n { \"format\": [\"rgb(255, 235, 132)\", \"rgb(99, 190, 123)\"] } //\u9EC4-\u7EFF\u8272\u9636\r\n ],\r\n init: function(){\r\n let _this = this;\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n // \u7BA1\u7406\u89C4\u5219\r\n $(document).off(\"change.CFchooseSheet\").on(\"change.CFchooseSheet\", \"#luckysheet-administerRule-dialog .chooseSheet\", function(){\r\n let index = $(\"#luckysheet-administerRule-dialog .chooseSheet option:selected\").val();\r\n _this.getConditionRuleList(index);\r\n });\r\n $(document).off(\"click.CFadministerRuleItem\").on(\"click.CFadministerRuleItem\", \"#luckysheet-administerRule-dialog .ruleList .listBox .item\", function(){\r\n $(this).addClass(\"on\").siblings().removeClass(\"on\");\r\n });\r\n\r\n $(document).off(\"click.CFadministerRuleConfirm\").on(\"click.CFadministerRuleConfirm\", \"#luckysheet-administerRule-dialog-confirm\", function(){\r\n if(!checkProtectionFormatCells(Store.currentSheetIndex)){\r\n return;\r\n }\r\n\r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let fileH = $.extend(true, [], Store.luckysheetfile);\r\n let historyRules = _this.getHistoryRules(fileH);\r\n\r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n let fileClone = $.extend(true, [], _this.fileClone);\r\n for(let c = 0; c < fileClone.length; c++){\r\n let sheetIndex = fileClone[c][\"index\"];\r\n Store.luckysheetfile[getSheetIndex(sheetIndex)][\"luckysheet_conditionformat_save\"] = fileClone[getSheetIndex(sheetIndex)][\"luckysheet_conditionformat_save\"];\r\n }\r\n\r\n let fileC = $.extend(true, [], Store.luckysheetfile);\r\n let currentRules = _this.getCurrentRules(fileC);\r\n\r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n //\u9690\u85CF\u4E00\u4E9Bdom\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-administerRule-dialog\").hide();\r\n\r\n //\u53D1\u9001\u7ED9\u540E\u53F0\r\n if(server.allowUpdate){\r\n let files = $.extend(true, [], Store.luckysheetfile);\r\n for(let i = 0; i < files.length; i++){\r\n server.saveParam(\"all\", files[i][\"index\"], files[i][\"luckysheet_conditionformat_save\"], { \"k\": \"luckysheet_conditionformat_save\" });\r\n }\r\n }\r\n });\r\n\r\n $(document).off(\"click.CFadministerRuleClose\").on(\"click.CFadministerRuleClose\", \"#luckysheet-administerRule-dialog-close\", function(){\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-administerRule-dialog\").hide();\r\n _this.fileClone = [];\r\n });\r\n $(document).off(\"click.CFadministerRuleFa\").on(\"click.CFadministerRuleFa\", \"#luckysheet-administerRule-dialog .item .fa-table\", function(){\r\n $(this).parents(\"#luckysheet-administerRule-dialog\").hide();\r\n\r\n let sheetIndex = $(\"#luckysheet-administerRule-dialog .chooseSheet select option:selected\").val();\r\n if(sheetIndex != Store.currentSheetIndex){\r\n sheetmanage.changeSheetExec(sheetIndex);\r\n }\r\n\r\n let txt = $(this).siblings(\"input\").val().trim();\r\n let dataItem = $(this).parents(\".item\").attr(\"data-item\");\r\n\r\n _this.multiRangeDialog(dataItem, txt);\r\n\r\n _this.selectRange = [];\r\n\r\n let range = _this.getRangeByTxt(txt);\r\n if(range.length > 0){\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n let row = Store.visibledatarow[r2],\r\n row_pre = r1 - 1 == -1 ? 0 : Store.visibledatarow[r1 - 1];\r\n let col = Store.visibledatacolumn[c2],\r\n col_pre = c1 - 1 == -1 ? 0 : Store.visibledatacolumn[c1 - 1];\r\n\r\n _this.selectRange.push({\r\n \"left\": col_pre,\r\n \"width\": col - col_pre - 1,\r\n \"top\": row_pre,\r\n \"height\": row - row_pre - 1,\r\n \"left_move\": col_pre,\r\n \"width_move\": col - col_pre - 1,\r\n \"top_move\": row_pre,\r\n \"height_move\": row - row_pre - 1,\r\n \"row\": [r1, r2],\r\n \"column\": [c1, c2],\r\n \"row_focus\": r1,\r\n \"column_focus\": c1\r\n });\r\n }\r\n }\r\n\r\n selectionCopyShow(_this.selectRange);\r\n });\r\n $(document).off(\"click.CFmultiRangeConfirm\").on(\"click.CFmultiRangeConfirm\", \"#luckysheet-multiRange-dialog-confirm\", function(){\r\n $(this).parents(\"#luckysheet-multiRange-dialog\").hide();\r\n\r\n let dataItem = $(this).attr(\"data-item\");\r\n let v = $(this).parents(\"#luckysheet-multiRange-dialog\").find(\"input\").val();\r\n $(\"#luckysheet-administerRule-dialog .item[data-item=\"+dataItem+\"] input\").val(v);\r\n\r\n let sheetIndex = $(\"#luckysheet-administerRule-dialog .chooseSheet option:selected\").val();\r\n _this.fileClone[getSheetIndex(sheetIndex)][\"luckysheet_conditionformat_save\"][dataItem].cellrange = _this.getRangeByTxt(v);\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n $(document).off(\"click.CFmultiRangeClose\").on(\"click.CFmultiRangeClose\", \"#luckysheet-multiRange-dialog-close\", function(){\r\n $(this).parents(\"#luckysheet-multiRange-dialog\").hide();\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n\r\n $(\"#luckysheet-formula-functionrange-select\").hide();\r\n $(\"#luckysheet-row-count-show\").hide();\r\n $(\"#luckysheet-column-count-show\").hide();\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n\r\n // \u65B0\u5EFA\u89C4\u5219\r\n $(document).off(\"click.CFnewConditionRule\").on(\"click.CFnewConditionRule\", \"#newConditionRule\", function(){\r\n let sheetIndex = $(\"#luckysheet-administerRule-dialog .chooseSheet option:selected\").val();\r\n if(!checkProtectionFormatCells(sheetIndex)){\r\n return;\r\n }\r\n\r\n if(Store.luckysheet_select_save.length == 0){\r\n if(isEditMode()){\r\n alert(conditionformat_Text.pleaseSelectRange);\r\n }\r\n else{\r\n tooltip.info(conditionformat_Text.pleaseSelectRange, \"\");\r\n }\r\n return;\r\n }\r\n\r\n _this.newConditionRuleDialog(1);\r\n });\r\n $(document).off(\"click.CFnewConditionRuleConfirm\").on(\"click.CFnewConditionRuleConfirm\", \"#luckysheet-newConditionRule-dialog-confirm\", function(){\r\n\r\n if(!checkProtectionFormatCells(Store.currentSheetIndex)){\r\n return;\r\n }\r\n\r\n let index = $(\"#luckysheet-newConditionRule-dialog .ruleTypeItem.on\").index();\r\n let type1 = $(\"#luckysheet-newConditionRule-dialog #type1 option:selected\").val();\r\n let type2 = $(\"#luckysheet-newConditionRule-dialog .\" + type1 + \"Box #type2 option:selected\").val();\r\n\r\n let format, rule;\r\n if(index == 0){\r\n if(type1 == \"dataBar\"){ //\u6570\u636E\u6761\r\n let color = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".dataBarBox .luckysheet-conditionformat-config-color\").spectrum(\"get\").toHexString();\r\n\r\n if(type2 == \"gradient\"){ //\u6E10\u53D8\u586B\u5145\r\n format = [color, \"#ffffff\"];\r\n }\r\n else if(type2 == \"solid\"){ //\u5B9E\u5FC3\u586B\u5145\r\n format = [color];\r\n }\r\n\r\n rule = {\r\n \"type\": \"dataBar\",\r\n \"cellrange\": $.extend(true, [], Store.luckysheet_select_save),\r\n \"format\": format\r\n };\r\n }\r\n else if(type1 == \"colorGradation\"){ //\u8272\u9636\r\n let maxcolor = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".colorGradationBox .maxVal .luckysheet-conditionformat-config-color\").spectrum(\"get\").toRgbString();\r\n let midcolor = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".colorGradationBox .midVal .luckysheet-conditionformat-config-color\").spectrum(\"get\").toRgbString();\r\n let mincolor = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".colorGradationBox .minVal .luckysheet-conditionformat-config-color\").spectrum(\"get\").toRgbString();\r\n\r\n if(type2 == \"threeColor\"){ //\u4E09\u8272\r\n format = [maxcolor, midcolor, mincolor];\r\n }\r\n else if(type2 == \"twoColor\"){ //\u53CC\u8272\r\n format = [maxcolor, mincolor];\r\n }\r\n\r\n rule = {\r\n \"type\": \"colorGradation\",\r\n \"cellrange\": $.extend(true, [], Store.luckysheet_select_save),\r\n \"format\": format\r\n };\r\n }\r\n else if(type1 == \"icons\"){ //\u56FE\u6807\u96C6\r\n let len = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".iconsBox .model\").attr(\"data-len\");\r\n let leftMin = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".iconsBox .model\").attr(\"data-leftmin\");\r\n let top = $(this).parents(\"#luckysheet-newConditionRule-dialog\").find(\".iconsBox .model\").attr(\"data-top\");\r\n\r\n format = {\r\n \"len\": len,\r\n \"leftMin\": leftMin,\r\n \"top\": top\r\n };\r\n\r\n rule = {\r\n \"type\": \"icons\",\r\n \"cellrange\": $.extend(true, [], Store.luckysheet_select_save),\r\n \"format\": format\r\n };\r\n }\r\n }\r\n else{\r\n let conditionName = \"\", conditionRange = [], conditionValue = [];\r\n\r\n if(index == 1){\r\n if(type1 == \"number\"){ //\u5355\u5143\u683C\u503C\r\n conditionName = type2;\r\n\r\n if(type2 == \"betweenness\"){\r\n let v1 = $(\"#luckysheet-newConditionRule-dialog #conditionVal input\").val().trim();\r\n let v2 = $(\"#luckysheet-newConditionRule-dialog #conditionVal2 input\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr1 = _this.getRangeByTxt(v1);\r\n if(rangeArr1.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr1.length == 1){\r\n let r1 = rangeArr1[0].row[0], r2 = rangeArr1[0].row[1];\r\n let c1 = rangeArr1[0].column[0], c2 = rangeArr1[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v1 = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n // conditionRange.push({ \"row\": rangeArr1[0].row, \"column\": rangeArr1[0].column });\r\n conditionRange[0] = { \"row\": rangeArr1[0].row, \"column\": rangeArr1[0].column };\r\n conditionValue.push(v1);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr1.length == 0){\r\n if(isNaN(v1) || v1 == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v1);\r\n }\r\n }\r\n\r\n let rangeArr2 = _this.getRangeByTxt(v2);\r\n if(rangeArr2.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr2.length == 1){\r\n let r1 = rangeArr2[0].row[0], r2 = rangeArr2[0].row[1];\r\n let c1 = rangeArr2[0].column[0], c2 = rangeArr2[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v2 = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n // conditionRange.push({ \"row\": rangeArr2[0].row, \"column\": rangeArr2[0].column });\r\n\r\n // If the first value is a custom value, and the cell range selected by the second value, push will cause the position to be wrong\r\n conditionRange[1] = { \"row\": rangeArr2[0].row, \"column\": rangeArr2[0].column };\r\n conditionValue.push(v2);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr2.length == 0){\r\n if(isNaN(v2) || v2 == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v2);\r\n }\r\n }\r\n }\r\n else{\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-newConditionRule-dialog #conditionVal input\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr = _this.getRangeByTxt(v);\r\n if(rangeArr.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr.length == 1){\r\n let r1 = rangeArr[0].row[0], r2 = rangeArr[0].row[1];\r\n let c1 = rangeArr[0].column[0], c2 = rangeArr[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n conditionRange.push({ \"row\": rangeArr[0].row, \"column\": rangeArr[0].column });\r\n conditionValue.push(v);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr.length == 0){\r\n if(isNaN(v) || v == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v);\r\n }\r\n }\r\n }\r\n }\r\n else if(type1 == \"text\"){ //\u7279\u5B9A\u6587\u672C\r\n conditionName = \"textContains\";\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-newConditionRule-dialog #conditionVal input\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr = _this.getRangeByTxt(v);\r\n if(rangeArr.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr.length == 1){\r\n let r1 = rangeArr[0].row[0], r2 = rangeArr[0].row[1];\r\n let c1 = rangeArr[0].column[0], c2 = rangeArr[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n conditionRange.push({ \"row\": rangeArr[0].row, \"column\": rangeArr[0].column });\r\n conditionValue.push(v);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr.length == 0){\r\n if(v == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v);\r\n }\r\n }\r\n }\r\n else if(type1 == \"date\"){ //\u53D1\u751F\u65E5\u671F\r\n conditionName = \"occurrenceDate\";\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-newConditionRule-dialog #daterange-btn\").val();\r\n\r\n if(v == \"\" || v == null){\r\n _this.infoDialog(conditionformat_Text.pleaseSelectADate, \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n }\r\n else if(index == 2){ //\u6392\u540D\u9760\u524D\u9760\u540E\r\n //\u6761\u4EF6\u540D\u79F0\r\n if(type1 == \"top\"){\r\n if($(\"#luckysheet-newConditionRule-dialog #isPercent\").is(\":selected\")){\r\n conditionName = \"top10%\";\r\n }\r\n else{\r\n conditionName = \"top10\";\r\n }\r\n }\r\n else if(type1 == \"last\"){\r\n if($(\"#luckysheet-newConditionRule-dialog #isPercent\").is(\":selected\")){\r\n conditionName = \"last10%\";\r\n }\r\n else{\r\n conditionName = \"last10\";\r\n }\r\n }\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-newConditionRule-dialog #conditionVal input\").val().trim();\r\n\r\n if(parseInt(v) != v || parseInt(v) < 1 || parseInt(v) > 1000){\r\n _this.infoDialog(conditionformat_Text.pleaseEnterInteger, \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(parseInt(v));\r\n }\r\n else if(index == 3){ //\u5E73\u5747\u503C\r\n if(type1 == \"AboveAverage\"){\r\n conditionName = \"AboveAverage\";\r\n conditionValue.push(\"AboveAverage\");\r\n }\r\n else if(type1 == \"SubAverage\"){\r\n conditionName = \"SubAverage\";\r\n conditionValue.push(\"SubAverage\");\r\n }\r\n }\r\n else if(index == 4){ //\u91CD\u590D\u503C\r\n conditionName = \"duplicateValue\";\r\n conditionValue.push(type1);\r\n }\r\n else if(index == 5){ //\u516C\u5F0F\r\n conditionName = \"formula\";\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-newConditionRule-dialog #formulaConditionVal input\").val().trim(); \r\n\r\n if(v == \"\"){\r\n _this.infoDialog(\"Condition value cannot be empty!\", \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n\r\n //\u683C\u5F0F\u989C\u8272\r\n let textcolor;\r\n if($(\"#luckysheet-newConditionRule-dialog #checkTextColor\").is(\":checked\")){\r\n textcolor = $(\"#luckysheet-newConditionRule-dialog #textcolorshow\").spectrum(\"get\").toHexString();\r\n }\r\n else{\r\n textcolor = null;\r\n }\r\n\r\n let cellcolor;\r\n if($(\"#luckysheet-newConditionRule-dialog #checkCellColor\").is(\":checked\")){\r\n cellcolor = $(\"#luckysheet-newConditionRule-dialog #cellcolorshow\").spectrum(\"get\").toHexString();\r\n }\r\n else{\r\n cellcolor = null;\r\n }\r\n\r\n format = {\r\n \"textColor\": textcolor,\r\n \"cellColor\": cellcolor\r\n };\r\n\r\n rule = {\r\n \"type\": \"default\",\r\n \"cellrange\": $.extend(true, [], Store.luckysheet_select_save),\r\n \"format\": format,\r\n \"conditionName\": conditionName,\r\n \"conditionRange\": conditionRange,\r\n \"conditionValue\": conditionValue\r\n };\r\n }\r\n\r\n $(\"#luckysheet-newConditionRule-dialog\").hide();\r\n\r\n //\u65B0\u5EFA\u89C4\u5219\u7684\u5165\u53E3\r\n let source = $(this).attr(\"data-source\");\r\n\r\n if(source == 0){\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n\r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let fileH = $.extend(true, [], Store.luckysheetfile);\r\n let historyRules = _this.getHistoryRules(fileH);\r\n\r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n let ruleArr = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] == undefined ? [] : Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"];\r\n ruleArr.push(rule);\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] = ruleArr;\r\n\r\n let fileC = $.extend(true, [], Store.luckysheetfile);\r\n let currentRules = _this.getCurrentRules(fileC);\r\n\r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n //\u53D1\u9001\u7ED9\u540E\u53F0\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, ruleArr, { \"k\": \"luckysheet_conditionformat_save\" });\r\n }\r\n }\r\n else if(source == 1){\r\n //\u4E34\u65F6\u5B58\u50A8\u65B0\u89C4\u5219\r\n let ruleArr = !!_this.fileClone[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] ? _this.fileClone[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] : [];\r\n ruleArr.push(rule);\r\n _this.fileClone[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] = ruleArr;\r\n\r\n //\u65B0\u5EFA\u89C4\u5219\u9690\u85CF\uFF0C\u7BA1\u7406\u89C4\u5219\u663E\u793A\r\n _this.administerRuleDialog();\r\n }\r\n });\r\n $(document).off(\"click.CFnewConditionRuleClose\").on(\"click.CFnewConditionRuleClose\", \"#luckysheet-newConditionRule-dialog-close\", function(){\r\n //\u65B0\u5EFA\u89C4\u5219\u7684\u5165\u53E3\r\n let source = $(this).attr(\"data-source\");\r\n if(source == 0){\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n }\r\n if(source == 1){\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n }\r\n\r\n //\u65B0\u5EFA\u89C4\u5219\u9690\u85CF\r\n $(\"#luckysheet-newConditionRule-dialog\").hide();\r\n\r\n //\u9690\u85CF\u865A\u7EBF\u6846\r\n $(\"#luckysheet-formula-functionrange-select\").hide();\r\n $(\"#luckysheet-row-count-show\").hide();\r\n $(\"#luckysheet-column-count-show\").hide();\r\n });\r\n\r\n // \u7F16\u8F91\u89C4\u5219\r\n $(document).off(\"click.CFeditorConditionRule\").on(\"click.CFeditorConditionRule\", \"#editorConditionRule\", function(){\r\n\r\n let sheetIndex = $(\"#luckysheet-administerRule-dialog .chooseSheet option:selected\").val();\r\n\r\n if(!checkProtectionFormatCells(sheetIndex)){\r\n return;\r\n }\r\n\r\n\r\n let itemIndex = $(\"#luckysheet-administerRule-dialog .ruleList .listBox .item.on\").attr(\"data-item\");\r\n let rule = {\r\n \"sheetIndex\": sheetIndex,\r\n \"itemIndex\": itemIndex,\r\n \"data\": _this.fileClone[getSheetIndex(sheetIndex)][\"luckysheet_conditionformat_save\"][itemIndex]\r\n };\r\n _this.editorRule = rule;\r\n _this.editorConditionRuleDialog();\r\n });\r\n $(document).off(\"click.CFeditorConditionRuleConfirm\").on(\"click.CFeditorConditionRuleConfirm\", \"#luckysheet-editorConditionRule-dialog-confirm\",function(){\r\n let index = $(\"#luckysheet-editorConditionRule-dialog .ruleTypeItem.on\").index();\r\n let type1 = $(\"#luckysheet-editorConditionRule-dialog #type1 option:selected\").val();\r\n let type2 = $(\"#luckysheet-editorConditionRule-dialog .\" + type1 + \"Box #type2 option:selected\").val();\r\n\r\n let cellrange = _this.editorRule[\"data\"].cellrange;\r\n\r\n let format, rule;\r\n if(index == 0){\r\n if(type1 == \"dataBar\"){ //\u6570\u636E\u6761\r\n let color = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".dataBarBox .luckysheet-conditionformat-config-color\").spectrum(\"get\").toHexString();\r\n\r\n if(type2 == \"gradient\"){ //\u6E10\u53D8\u586B\u5145\r\n format = [color, \"#ffffff\"];\r\n }\r\n else if(type2 == \"solid\"){ //\u5B9E\u5FC3\u586B\u5145\r\n format = [color];\r\n }\r\n\r\n rule = {\r\n \"type\": \"dataBar\",\r\n \"cellrange\": cellrange,\r\n \"format\": format\r\n };\r\n }\r\n else if(type1 == \"colorGradation\"){ //\u8272\u9636\r\n let maxcolor = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".colorGradationBox .maxVal .luckysheet-conditionformat-config-color\").spectrum(\"get\").toRgbString();\r\n let midcolor = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".colorGradationBox .midVal .luckysheet-conditionformat-config-color\").spectrum(\"get\").toRgbString();\r\n let mincolor = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".colorGradationBox .minVal .luckysheet-conditionformat-config-color\").spectrum(\"get\").toRgbString();\r\n\r\n if(type2 == \"threeColor\"){ //\u4E09\u8272\r\n format = [maxcolor, midcolor, mincolor];\r\n }\r\n else if(type2 == \"twoColor\"){ //\u53CC\u8272\r\n format = [maxcolor, mincolor];\r\n }\r\n\r\n rule = {\r\n \"type\": \"colorGradation\",\r\n \"cellrange\": cellrange,\r\n \"format\": format\r\n };\r\n }\r\n else if(type1 == \"icons\"){ //\u56FE\u6807\u96C6\r\n let len = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".iconsBox .model\").attr(\"data-len\");\r\n let leftMin = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".iconsBox .model\").attr(\"data-leftmin\");\r\n let top = $(this).parents(\"#luckysheet-editorConditionRule-dialog\").find(\".iconsBox .model\").attr(\"data-top\");\r\n\r\n format = {\r\n \"len\": len,\r\n \"leftMin\": leftMin,\r\n \"top\": top\r\n };\r\n\r\n rule = {\r\n \"type\": \"icons\",\r\n \"cellrange\": cellrange,\r\n \"format\": format\r\n };\r\n }\r\n }\r\n else{\r\n let conditionName = \"\", conditionRange = [], conditionValue = [];\r\n\r\n if(index == 1){\r\n if(type1 == \"number\"){ //\u5355\u5143\u683C\u503C\r\n conditionName = type2;\r\n\r\n if(type2 == \"betweenness\"){\r\n let v1 = $(\"#luckysheet-editorConditionRule-dialog #conditionVal input\").val().trim();\r\n let v2 = $(\"#luckysheet-editorConditionRule-dialog #conditionVal2 input\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr1 = _this.getRangeByTxt(v1);\r\n if(rangeArr1.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr1.length == 1){\r\n let r1 = rangeArr1[0].row[0], r2 = rangeArr1[0].row[1];\r\n let c1 = rangeArr1[0].column[0], c2 = rangeArr1[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v1 = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n // conditionRange.push({ \"row\": rangeArr1[0].row, \"column\": rangeArr1[0].column });\r\n conditionRange[0] = { \"row\": rangeArr1[0].row, \"column\": rangeArr1[0].column };\r\n conditionValue.push(v1);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr1.length == 0){\r\n if(isNaN(v1) || v1 == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v1);\r\n }\r\n }\r\n\r\n let rangeArr2 = _this.getRangeByTxt(v2);\r\n if(rangeArr2.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr2.length == 1){\r\n let r1 = rangeArr2[0].row[0], r2 = rangeArr2[0].row[1];\r\n let c1 = rangeArr2[0].column[0], c2 = rangeArr2[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v2 = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n // conditionRange.push({ \"row\": rangeArr2[0].row, \"column\": rangeArr2[0].column });\r\n conditionRange[1] = { \"row\": rangeArr2[0].row, \"column\": rangeArr2[0].column };\r\n conditionValue.push(v2);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr2.length == 0){\r\n if(isNaN(v2) || v2 == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v2);\r\n }\r\n }\r\n }\r\n else{\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-editorConditionRule-dialog #conditionVal input\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr = _this.getRangeByTxt(v);\r\n if(rangeArr.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr.length == 1){\r\n let r1 = rangeArr[0].row[0], r2 = rangeArr[0].row[1];\r\n let c1 = rangeArr[0].column[0], c2 = rangeArr[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n conditionRange.push({ \"row\": rangeArr[0].row, \"column\": rangeArr[0].column });\r\n conditionValue.push(v);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr.length == 0){\r\n if(isNaN(v) || v == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v);\r\n }\r\n }\r\n }\r\n }\r\n else if(type1 == \"text\"){ //\u7279\u5B9A\u6587\u672C\r\n conditionName = \"textContains\";\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-editorConditionRule-dialog #conditionVal input\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr = _this.getRangeByTxt(v);\r\n if(rangeArr.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr.length == 1){\r\n let r1 = rangeArr[0].row[0], r2 = rangeArr[0].row[1];\r\n let c1 = rangeArr[0].column[0], c2 = rangeArr[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n conditionRange.push({ \"row\": rangeArr[0].row, \"column\": rangeArr[0].column });\r\n conditionValue.push(v);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr.length == 0){\r\n if(isNaN(v) || v == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v);\r\n }\r\n }\r\n }\r\n else if(type1 == \"date\"){ //\u53D1\u751F\u65E5\u671F\r\n conditionName = \"occurrenceDate\";\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-editorConditionRule-dialog #daterange-btn\").val();\r\n\r\n if(v == \"\" || v == null){\r\n _this.infoDialog(conditionformat_Text.pleaseSelectADate, \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n }\r\n else if(index == 2){ //\u6392\u540D\u9760\u524D\u9760\u540E\r\n //\u6761\u4EF6\u540D\u79F0\r\n if(type1 == \"top\"){\r\n if($(\"#luckysheet-editorConditionRule-dialog #isPercent\").is(\":selected\")){\r\n conditionName = \"top10%\";\r\n }\r\n else{\r\n conditionName = \"top10\";\r\n }\r\n }\r\n else if(type1 == \"last\"){\r\n if($(\"#luckysheet-editorConditionRule-dialog #isPercent\").is(\":selected\")){\r\n conditionName = \"last10%\";\r\n }\r\n else{\r\n conditionName = \"last10\";\r\n }\r\n }\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-editorConditionRule-dialog #conditionVal input\").val().trim();\r\n\r\n if(parseInt(v) != v || parseInt(v) < 1 || parseInt(v) > 1000){\r\n _this.infoDialog(conditionformat_Text.pleaseEnterInteger, \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n else if(index == 3){ //\u5E73\u5747\u503C\r\n if(type1 == \"AboveAverage\"){\r\n conditionName = \"AboveAverage\";\r\n conditionValue.push(\"AboveAverage\");\r\n }\r\n else if(type1 == \"SubAverage\"){\r\n conditionName = \"SubAverage\";\r\n conditionValue.push(\"SubAverage\");\r\n }\r\n }\r\n else if(index == 4){ //\u91CD\u590D\u503C\r\n conditionName = \"duplicateValue\";\r\n conditionValue.push(type1);\r\n }\r\n else if(index == 5){ //\u516C\u5F0F\r\n conditionName = \"formula\";\r\n\r\n //\u6761\u4EF6\u503C\r\n let v = $(\"#luckysheet-editorConditionRule-dialog #formulaConditionVal input\").val().trim(); \r\n console.log(v)\r\n if(v == \"\"){\r\n _this.infoDialog(\"Condition value cannot be empty!\", \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n\r\n //\u683C\u5F0F\u989C\u8272\r\n let textcolor;\r\n if($(\"#luckysheet-editorConditionRule-dialog #checkTextColor\").is(\":checked\")){\r\n textcolor = $(\"#luckysheet-editorConditionRule-dialog #textcolorshow\").spectrum(\"get\").toHexString();\r\n }\r\n else{\r\n textcolor = null;\r\n }\r\n\r\n let cellcolor;\r\n if($(\"#luckysheet-editorConditionRule-dialog #checkCellColor\").is(\":checked\")){\r\n cellcolor = $(\"#luckysheet-editorConditionRule-dialog #cellcolorshow\").spectrum(\"get\").toHexString();\r\n }\r\n else{\r\n cellcolor = null;\r\n }\r\n\r\n format = {\r\n \"textColor\": textcolor,\r\n \"cellColor\": cellcolor\r\n };\r\n\r\n rule = {\r\n \"type\": \"default\",\r\n \"cellrange\": cellrange,\r\n \"format\": format,\r\n \"conditionName\": conditionName,\r\n \"conditionRange\": conditionRange,\r\n \"conditionValue\": conditionValue\r\n };\r\n }\r\n\r\n //\u4FEE\u6539\u7F16\u8F91\u7684\u89C4\u5219\r\n let sheetIndex = _this.editorRule[\"sheetIndex\"];\r\n let itemIndex = _this.editorRule[\"itemIndex\"];\r\n _this.fileClone[getSheetIndex(sheetIndex)][\"luckysheet_conditionformat_save\"][itemIndex] = rule;\r\n\r\n //\u7F16\u8F91\u89C4\u5219\u9690\u85CF\uFF0C\u7BA1\u7406\u89C4\u5219\u663E\u793A\r\n $(\"#luckysheet-editorConditionRule-dialog\").hide();\r\n _this.administerRuleDialog();\r\n });\r\n $(document).off(\"click.CFeditorConditionRuleClose\").on(\"click.CFeditorConditionRuleClose\", \"#luckysheet-editorConditionRule-dialog-close\",function(){\r\n //\u7F16\u8F91\u89C4\u5219\u9690\u85CF\uFF0C\u7BA1\u7406\u89C4\u5219\u663E\u793A\r\n $(\"#luckysheet-editorConditionRule-dialog\").hide();\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n //\u9690\u85CF\u865A\u7EBF\u6846\r\n $(\"#luckysheet-formula-functionrange-select\").hide();\r\n $(\"#luckysheet-row-count-show\").hide();\r\n $(\"#luckysheet-column-count-show\").hide();\r\n });\r\n\r\n // \u65B0\u5EFA\u89C4\u5219\u3001\u7F16\u8F91\u89C4\u5219 \u7C7B\u578B\u5207\u6362\r\n $(document).off(\"click.CFnewEditorRuleItem\").on(\"click.CFnewEditorRuleItem\", \".luckysheet-newEditorRule-dialog .ruleTypeItem\", function(){\r\n $(this).addClass(\"on\").siblings().removeClass(\"on\");\r\n\r\n let index = $(this).index();\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\".ruleExplainBox\").html(_this.getRuleExplain(index));\r\n\r\n _this.colorSelectInit();\r\n });\r\n $(document).off(\"change.CFnewEditorRuleType1\").on(\"change.CFnewEditorRuleType1\", \".luckysheet-newEditorRule-dialog #type1\", function(){\r\n let optionVal = $(this).find(\"option:selected\").val();\r\n\r\n if(optionVal == \"dataBar\" || optionVal == \"colorGradation\" || optionVal == \"icons\" || optionVal == \"number\" || optionVal == \"text\" || optionVal == \"date\"){\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\".\" + optionVal + \"Box\").show().siblings().hide();\r\n }\r\n\r\n if(optionVal == \"date\"){\r\n _this.daterangeInit($(this).parents(\".luckysheet-newEditorRule-dialog\").attr(\"id\"));\r\n }\r\n });\r\n $(document).off(\"change.CFnewEditorRuleType2\").on(\"change.CFnewEditorRuleType2\", \".luckysheet-newEditorRule-dialog #type2\", function(){\r\n let type1 = $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\"#type1 option:selected\").val();\r\n\r\n if(type1 == \"colorGradation\"){\r\n let type2 = $(this).find(\"option:selected\").val();\r\n\r\n if(type2 == \"threeColor\"){\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\".midVal\").show();\r\n }\r\n else{\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\".midVal\").hide();\r\n }\r\n }\r\n else if(type1 == \"number\"){\r\n let type2 = $(this).find(\"option:selected\").val();\r\n\r\n if(type2 == \"betweenness\"){\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\".txt\").show();\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\"#conditionVal2\").show();\r\n }\r\n else{\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\".txt\").hide();\r\n $(this).parents(\".luckysheet-newEditorRule-dialog\").find(\"#conditionVal2\").hide();\r\n }\r\n }\r\n });\r\n $(document).off(\"click.CFiconsShowbox\").on(\"click.CFiconsShowbox\", \".luckysheet-newEditorRule-dialog .iconsBox .showbox\", function(){\r\n $(this).parents(\".iconsBox\").find(\"ul\").toggle();\r\n });\r\n $(document).off(\"click.CFiconsLi\").on(\"click.CFiconsLi\", \".luckysheet-newEditorRule-dialog .iconsBox li\", function(){\r\n let len = $(this).find(\"div\").attr(\"data-len\");\r\n let leftmin = $(this).find(\"div\").attr(\"data-leftmin\");\r\n let top = $(this).find(\"div\").attr(\"data-top\");\r\n let title = $(this).find(\"div\").attr(\"title\");\r\n let position = $(this).find(\"div\").css(\"background-position\");\r\n\r\n $(this).parents(\".iconsBox\").find(\".showbox .model\").css(\"background-position\", position);\r\n $(this).parents(\".iconsBox\").find(\".showbox .model\").attr(\"data-len\", len);\r\n $(this).parents(\".iconsBox\").find(\".showbox .model\").attr(\"data-leftmin\", leftmin);\r\n $(this).parents(\".iconsBox\").find(\".showbox .model\").attr(\"data-top\", top);\r\n $(this).parents(\".iconsBox\").find(\".showbox .model\").attr(\"title\", title);\r\n\r\n $(this).parents(\"ul\").hide();\r\n });\r\n\r\n // \u5220\u9664\u89C4\u5219\r\n $(document).off(\"click.CFdeleteConditionRule\").on(\"click.CFdeleteConditionRule\", \"#deleteConditionRule\", function(){\r\n let sheetIndex = $(\"#luckysheet-administerRule-dialog .chooseSheet option:selected\").val();\r\n\r\n if(!checkProtectionFormatCells(sheetIndex)){\r\n return;\r\n }\r\n\r\n let itemIndex = $(\"#luckysheet-administerRule-dialog .ruleList .listBox .item.on\").attr(\"data-item\");\r\n _this.fileClone[getSheetIndex(sheetIndex)][\"luckysheet_conditionformat_save\"].splice(itemIndex, 1);\r\n _this.administerRuleDialog();\r\n });\r\n\r\n // \u89C4\u5219\u5B50\u83DC\u5355\u5F39\u51FA\u5C42 \u70B9\u51FB\u786E\u5B9A\u4FEE\u6539\u6837\u5F0F\r\n $(document).off(\"click.CFdefault\").on(\"click.CFdefault\", \"#luckysheet-conditionformat-dialog-confirm\", function(){\r\n\r\n if(!checkProtectionFormatCells(Store.currentSheetIndex)){\r\n return;\r\n }\r\n\r\n //\u6761\u4EF6\u540D\u79F0\r\n let conditionName = $(\"#luckysheet-conditionformat-dialog .box\").attr(\"data-itemvalue\");\r\n\r\n //\u6761\u4EF6\u5355\u5143\u683C\r\n let conditionRange = [];\r\n\r\n //\u6761\u4EF6\u503C\r\n let conditionValue = [];\r\n if(conditionName == \"greaterThan\" || conditionName == \"lessThan\" || conditionName == \"equal\" || conditionName == \"textContains\"){\r\n let v = $(\"#luckysheet-conditionformat-dialog #conditionVal\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr = _this.getRangeByTxt(v);\r\n if(rangeArr.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr.length == 1){\r\n let r1 = rangeArr[0].row[0], r2 = rangeArr[0].row[1];\r\n let c1 = rangeArr[0].column[0], c2 = rangeArr[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n conditionRange.push({ \"row\": rangeArr[0].row, \"column\": rangeArr[0].column });\r\n conditionValue.push(v);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr.length == 0){\r\n if(isNaN(v) || v == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v);\r\n }\r\n }\r\n }\r\n else if(conditionName == \"betweenness\"){//\u4ECB\u4E8E\r\n let v1 = $(\"#luckysheet-conditionformat-dialog #conditionVal\").val().trim();\r\n let v2 = $(\"#luckysheet-conditionformat-dialog #conditionVal2\").val().trim();\r\n\r\n //\u6761\u4EF6\u503C\u662F\u5426\u662F\u9009\u533A\r\n let rangeArr1 = _this.getRangeByTxt(v1);\r\n if(rangeArr1.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr1.length == 1){\r\n let r1 = rangeArr1[0].row[0], r2 = rangeArr1[0].row[1];\r\n let c1 = rangeArr1[0].column[0], c2 = rangeArr1[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v1 = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n // conditionRange.push({ \"row\": rangeArr1[0].row, \"column\": rangeArr1[0].column });\r\n conditionRange[0] = { \"row\": rangeArr1[0].row, \"column\": rangeArr1[0].column };\r\n conditionValue.push(v1);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr1.length == 0){\r\n if(isNaN(v1) || v1 == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v1);\r\n }\r\n }\r\n\r\n let rangeArr2 = _this.getRangeByTxt(v2);\r\n if(rangeArr2.length > 1){\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n else if(rangeArr2.length == 1){\r\n let r1 = rangeArr2[0].row[0], r2 = rangeArr2[0].row[1];\r\n let c1 = rangeArr2[0].column[0], c2 = rangeArr2[0].column[1];\r\n\r\n if(r1 == r2 && c1 == c2){\r\n v2 = getcellvalue(r1, c1, Store.flowdata);\r\n\r\n // conditionRange.push({ \"row\": rangeArr2[0].row, \"column\": rangeArr2[0].column });\r\n conditionRange[1] = { \"row\": rangeArr2[0].row, \"column\": rangeArr2[0].column };\r\n conditionValue.push(v2);\r\n }\r\n else{\r\n _this.infoDialog(conditionformat_Text.onlySingleCell, \"\");\r\n return;\r\n }\r\n }\r\n else if(rangeArr2.length == 0){\r\n if(isNaN(v2) || v2 == \"\"){\r\n _this.infoDialog(conditionformat_Text.conditionValueCanOnly, \"\");\r\n return;\r\n }\r\n else{\r\n conditionValue.push(v2);\r\n }\r\n }\r\n }\r\n else if(conditionName == \"occurrenceDate\"){//\u65E5\u671F\r\n let v = $(\"#luckysheet-conditionformat-dialog #daterange-btn\").val();\r\n\r\n if(v == \"\" || v == null){\r\n _this.infoDialog(conditionformat_Text.pleaseSelectADate, \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n else if(conditionName == \"duplicateValue\"){//\u91CD\u590D\u503C\r\n conditionValue.push($(\"#luckysheet-conditionformat-dialog #conditionVal option:selected\").val());\r\n }\r\n else if(conditionName == \"top10\" || conditionName == \"top10%\" || conditionName == \"last10\" || conditionName == \"last10%\"){\r\n let v = $(\"#luckysheet-conditionformat-dialog #conditionVal\").val().trim();\r\n\r\n if(parseInt(v) != v || parseInt(v) < 1 || parseInt(v) > 1000){\r\n _this.infoDialog(conditionformat_Text.pleaseEnterInteger, \"\");\r\n return;\r\n }\r\n\r\n conditionValue.push(v);\r\n }\r\n else if(conditionName == \"AboveAverage\"){ //\u9AD8\u4E8E\u5E73\u5747\u503C\r\n conditionValue.push(\"AboveAverage\");\r\n }\r\n else if(conditionName == \"SubAverage\"){ //\u4F4E\u4E8E\u5E73\u5747\u503C\r\n conditionValue.push(\"SubAverage\");\r\n }\r\n\r\n //\u683C\u5F0F\u989C\u8272\r\n let textcolor;\r\n if($(\"#checkTextColor\").is(\":checked\")){\r\n textcolor = $(\"#textcolorshow\").spectrum(\"get\").toHexString();\r\n }\r\n else{\r\n textcolor = null;\r\n }\r\n\r\n let cellcolor;\r\n if($(\"#checkCellColor\").is(\":checked\")){\r\n cellcolor = $(\"#cellcolorshow\").spectrum(\"get\").toHexString();\r\n }\r\n else{\r\n cellcolor = null;\r\n }\r\n\r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let fileH = $.extend(true, [], Store.luckysheetfile);\r\n let historyRules = _this.getHistoryRules(fileH);\r\n\r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n let rule = {\r\n \"type\": \"default\",\r\n \"cellrange\": $.extend(true, [], Store.luckysheet_select_save),\r\n \"format\": {\r\n \"textColor\": textcolor,\r\n \"cellColor\": cellcolor\r\n },\r\n \"conditionName\": conditionName,\r\n \"conditionRange\": conditionRange,\r\n \"conditionValue\": conditionValue\r\n };\r\n let ruleArr = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] == undefined ? [] : Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"];\r\n ruleArr.push(rule);\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"] = ruleArr;\r\n\r\n let fileC = $.extend(true, [], Store.luckysheetfile);\r\n let currentRules = _this.getCurrentRules(fileC);\r\n\r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n //\u9690\u85CF\u4E00\u4E9Bdom\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-conditionformat-dialog\").hide();\r\n\r\n //\u53D1\u9001\u7ED9\u540E\u53F0\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, ruleArr, { \"k\": \"luckysheet_conditionformat_save\" });\r\n }\r\n });\r\n\r\n // \u56FE\u6807\u96C6\u5F39\u51FA\u5C42 \u9009\u62E9\r\n $(document).off(\"click.CFicons\").on(\"click.CFicons\", \"#luckysheet-CFicons-dialog .item\", function(){\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-CFicons-dialog\").hide();\r\n\r\n if(Store.luckysheet_select_save.length > 0){\r\n let cellrange = $.extend(true, [], Store.luckysheet_select_save);\r\n let format = {\r\n \"len\": $(this).attr(\"data-len\"),\r\n \"leftMin\": $(this).attr(\"data-leftMin\"),\r\n \"top\": $(this).attr(\"data-top\")\r\n }\r\n\r\n _this.updateItem(\"icons\", cellrange, format);\r\n }\r\n });\r\n\r\n // \u9009\u62E9\u5355\u5143\u683C\r\n $(document).on(\"click\", \".range .fa-table\", function(){\r\n let id = $(this).parents(\".luckysheet-modal-dialog\").attr(\"id\");\r\n $(\"#\" + id).hide();\r\n //\u5165\u53E3\r\n let source;\r\n \r\n if(id == \"luckysheet-conditionformat-dialog\"){\r\n let $id = $(this).siblings(\"input\").attr(\"id\");\r\n \r\n if($id == \"conditionVal\"){\r\n source = \"0_1\";\r\n }\r\n else{\r\n source = \"0_2\";\r\n }\r\n }\r\n else if(id == \"luckysheet-newConditionRule-dialog\"){\r\n let $id = $(this).parents(\".range\").attr(\"id\");\r\n\r\n if($id == \"formulaConditionVal\"){\r\n source = \"1_0\";\r\n }\r\n else if($id == \"conditionVal\"){\r\n source = \"1_1\";\r\n }\r\n else{\r\n source = \"1_2\";\r\n }\r\n }\r\n else if(id == \"luckysheet-editorConditionRule-dialog\"){\r\n let $id = $(this).parents(\".range\").attr(\"id\");\r\n\r\n if($id == \"formulaConditionVal\"){\r\n source = \"2_0\";\r\n }\r\n else if($id == \"conditionVal\"){\r\n source = \"2_1\";\r\n }\r\n else{\r\n source = \"2_2\";\r\n }\r\n }\r\n //input\u503C\r\n let v = $(this).siblings(\"input\").val();\r\n\r\n _this.singleRangeDialog(source, v);\r\n selectionCopyShow(_this.getRangeByTxt(v));\r\n });\r\n $(document).on(\"click\", \"#luckysheet-singleRange-dialog-confirm\", function(){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(this).parents(\"#luckysheet-singleRange-dialog\").hide();\r\n\r\n let source = $(this).attr(\"data-source\");\r\n let v = $(this).parents(\"#luckysheet-singleRange-dialog\").find(\"input\").val();\r\n\r\n if(source == \"0_1\"){\r\n $(\"#luckysheet-conditionformat-dialog\").show();\r\n $(\"#luckysheet-conditionformat-dialog #conditionVal\").val(v);\r\n }\r\n else if(source == \"0_2\"){\r\n $(\"#luckysheet-conditionformat-dialog\").show();\r\n $(\"#luckysheet-conditionformat-dialog #conditionVal2\").val(v);\r\n }\r\n else if(source == \"1_0\"){\r\n $(\"#luckysheet-newConditionRule-dialog\").show();\r\n $(\"#luckysheet-newConditionRule-dialog #formulaConditionVal input\").val(v);\r\n }\r\n else if(source == \"1_1\"){\r\n $(\"#luckysheet-newConditionRule-dialog\").show();\r\n $(\"#luckysheet-newConditionRule-dialog #conditionVal input\").val(v);\r\n }\r\n else if(source == \"1_2\"){\r\n $(\"#luckysheet-newConditionRule-dialog\").show();\r\n $(\"#luckysheet-newConditionRule-dialog #conditionVal2 input\").val(v);\r\n }\r\n else if(source == \"2_0\"){\r\n $(\"#luckysheet-editorConditionRule-dialog\").show();\r\n $(\"#luckysheet-editorConditionRule-dialog #formulaConditionVal input\").val(v);\r\n }\r\n else if(source == \"2_1\"){\r\n $(\"#luckysheet-editorConditionRule-dialog\").show();\r\n $(\"#luckysheet-editorConditionRule-dialog #conditionVal input\").val(v);\r\n }\r\n else if(source == \"2_2\"){\r\n $(\"#luckysheet-editorConditionRule-dialog\").show();\r\n $(\"#luckysheet-editorConditionRule-dialog #conditionVal2 input\").val(v);\r\n }\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n $(document).on(\"click\", \"#luckysheet-singleRange-dialog-close\", function(){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(this).parents(\"#luckysheet-singleRange-dialog\").hide();\r\n\r\n let source = $(this).attr(\"data-source\");\r\n if(source == \"0_1\" || source == \"0_2\"){\r\n $(\"#luckysheet-conditionformat-dialog\").show();\r\n }\r\n else if(source == \"1_0\" || source == \"1_1\" || source == \"1_2\"){\r\n $(\"#luckysheet-newConditionRule-dialog\").show();\r\n }\r\n else if(source == \"2_0\" || source == \"2_1\" || source == \"2_2\"){\r\n $(\"#luckysheet-editorConditionRule-dialog\").show();\r\n }\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n });\r\n\r\n // \u5F39\u51FA\u5C42\u53F3\u4E0A\u89D2\u5173\u95ED\u6309\u94AE\r\n $(document).on(\"click\", \".luckysheet-modal-dialog-title-close\", function(){\r\n let id = $(this).parents(\".luckysheet-modal-dialog\").attr(\"id\");\r\n\r\n //\u65B0\u5EFA\u89C4\u5219\u5F39\u51FA\u5C42\r\n if(id == \"luckysheet-newConditionRule-dialog\"){\r\n let source = $(\"#\" + id).find(\"#luckysheet-newConditionRule-dialog-close\").attr(\"data-source\");\r\n //\u65B0\u5EFA\u89C4\u5219\u5165\u53E3\r\n if(source == 1){\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n }\r\n }\r\n\r\n //\u7F16\u8F91\u89C4\u5219\u5F39\u51FA\u5C42\r\n if(id == \"luckysheet-editorConditionRule-dialog\"){\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n }\r\n\r\n //\u9009\u62E9\u5355\u5143\u683C\u5F39\u51FA\u5C42\r\n if(id == \"luckysheet-singleRange-dialog\"){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n\r\n let source = $(this).parents(\"#luckysheet-singleRange-dialog\").find(\"#luckysheet-singleRange-dialog-confirm\").attr(\"data-source\");\r\n if(source == \"0_1\" || source == \"0_2\"){\r\n $(\"#luckysheet-conditionformat-dialog\").show();\r\n }\r\n else if(source == \"1_1\" || source == \"1_2\"){\r\n $(\"#luckysheet-newConditionRule-dialog\").show();\r\n }\r\n else if(source == \"2_1\" || source == \"2_2\"){\r\n $(\"#luckysheet-editorConditionRule-dialog\").show();\r\n }\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n }\r\n\r\n //\u9009\u62E9\u5E94\u7528\u8303\u56F4\u5F39\u51FA\u5C42\r\n if(id == \"luckysheet-multiRange-dialog\"){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n\r\n $(\"#luckysheet-administerRule-dialog\").show();\r\n\r\n let range = [];\r\n selectionCopyShow(range);\r\n }\r\n\r\n //\u63D0\u793A\u6846\r\n if(id == \"luckysheet-conditionformat-info-dialog\"){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n }\r\n });\r\n\r\n //\u63D0\u793A\u6846\r\n $(document).on(\"click\", \"#luckysheet-conditionformat-info-dialog-close\", function(){\r\n $(this).parents(\"#luckysheet-conditionformat-info-dialog\").hide();\r\n });\r\n },\r\n singleRangeDialog: function(source, value){\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-singleRange-dialog\").remove();\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-singleRange-dialog\",\r\n \"addclass\": \"luckysheet-singleRange-dialog\",\r\n \"title\": conditionformat_Text.selectCell,\r\n \"content\": ``,\r\n \"botton\": `\r\n `,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-singleRange-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-singleRange-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n },\r\n multiRangeDialog: function(dataItem, value){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").hide();\r\n $(\"#luckysheet-multiRange-dialog\").remove();\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-multiRange-dialog\",\r\n \"addclass\": \"luckysheet-multiRange-dialog\",\r\n \"title\": conditionformat_Text.selectRange,\r\n \"content\": ``,\r\n \"botton\": `\r\n `,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-multiRange-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-multiRange-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n\r\n selectionCopyShow(_this.getRangeByTxt(value));\r\n },\r\n getTxtByRange: function(range){\r\n if(range.length > 0){\r\n let txt = [];\r\n\r\n for(let s = 0; s < range.length; s++){\r\n let r1 = range[s].row[0], r2 = range[s].row[1];\r\n let c1 = range[s].column[0], c2 = range[s].column[1];\r\n\r\n txt.push(getRangetxt(Store.currentSheetIndex, { \"row\": [r1, r2], \"column\": [c1, c2] }, Store.currentSheetIndex));\r\n }\r\n\r\n return txt.join(\",\");\r\n }\r\n },\r\n getRangeByTxt: function(txt){\r\n let range = [];\r\n\r\n txt = txt.toString();\r\n\r\n if(txt.indexOf(\",\") != -1){\r\n let arr = txt.split(\",\");\r\n for(let i = 0; i < arr.length; i++){\r\n if(formula.iscelldata(arr[i])){\r\n range.push(formula.getcellrange(arr[i]));\r\n }\r\n else{\r\n range = [];\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n if(formula.iscelldata(txt)){\r\n range.push(formula.getcellrange(txt));\r\n }\r\n }\r\n return range;\r\n },\r\n colorSelectInit: function(){\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n $(\".luckysheet-conditionformat-config-color\").spectrum({\r\n showPalette: true,\r\n showPaletteOnly:true,\r\n preferredFormat: \"hex\",\r\n clickoutFiresChange: false,\r\n showInitial: true,\r\n showInput: true,\r\n // flat: true,\r\n hideAfterPaletteSelect: true,\r\n showSelectionPalette: true,\r\n // showButtons: false,//\u9690\u85CF\u9009\u62E9\u53D6\u6D88\u6309\u94AE\r\n maxPaletteSize: 8,\r\n maxSelectionSize: 8,\r\n // color: currenColor,\r\n cancelText: conditionformat_Text.cancel,\r\n chooseText: conditionformat_Text.confirmColor,\r\n togglePaletteMoreText: \"\u81EA\u5B9A\u4E49\",\r\n togglePaletteLessText: \"\u6536\u8D77\",\r\n togglePaletteOnly: true,\r\n clearText: conditionformat_Text.clearColorSelect,\r\n noColorSelectedText: \"\u6CA1\u6709\u989C\u8272\u88AB\u9009\u62E9\",\r\n localStorageKey: \"spectrum.textcolor\" + server.gridKey,\r\n palette: [[\"#000\",\"#444\",\"#666\",\"#999\",\"#ccc\",\"#eee\",\"#f3f3f3\",\"#fff\"],\r\n [\"#f00\",\"#f90\",\"#ff0\",\"#0f0\",\"#0ff\",\"#00f\",\"#90f\",\"#f0f\"],\r\n [\"#f4cccc\",\"#fce5cd\",\"#fff2cc\",\"#d9ead3\",\"#d0e0e3\",\"#cfe2f3\",\"#d9d2e9\",\"#ead1dc\"],\r\n [\"#ea9999\",\"#f9cb9c\",\"#ffe599\",\"#b6d7a8\",\"#a2c4c9\",\"#9fc5e8\",\"#b4a7d6\",\"#d5a6bd\"],\r\n [\"#e06666\",\"#f6b26b\",\"#ffd966\",\"#93c47d\",\"#76a5af\",\"#6fa8dc\",\"#8e7cc3\",\"#c27ba0\"],\r\n [\"#c00\",\"#e69138\",\"#f1c232\",\"#6aa84f\",\"#45818e\",\"#3d85c6\",\"#674ea7\",\"#a64d79\"],\r\n [\"#900\",\"#b45f06\",\"#bf9000\",\"#38761d\",\"#134f5c\",\"#0b5394\",\"#351c75\",\"#741b47\"],\r\n [\"#600\",\"#783f04\",\"#7f6000\",\"#274e13\",\"#0c343d\",\"#073763\",\"#20124d\",\"#4c1130\"]],\r\n change: function(color){\r\n if (color != null) {\r\n color = color.toHexString();\r\n }\r\n }\r\n });\r\n },\r\n conditionformatDialog: function(title, content){\r\n let _this = this;\r\n\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-conditionformat-dialog\").remove();\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-conditionformat-dialog\",\r\n \"addclass\": \"luckysheet-conditionformat-dialog\",\r\n \"title\": title,\r\n \"content\": content,\r\n \"botton\": `\r\n `,\r\n \"style\": \"z-index:9999\"\r\n }));\r\n let $t = $(\"#luckysheet-conditionformat-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-conditionformat-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n\r\n _this.init();\r\n _this.colorSelectInit();\r\n\r\n if(title == locale().conditionformat.conditionformat_occurrenceDate){\r\n _this.daterangeInit(\"luckysheet-conditionformat-dialog\");\r\n }\r\n },\r\n CFiconsDialog: function(){\u3000\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-CFicons-dialog\").remove();\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n let content = `
\r\n
${conditionformat_Text.pleaseSelectIcon}
\r\n
${conditionformat_Text.direction}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
${conditionformat_Text.shape}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
${conditionformat_Text.mark}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
${conditionformat_Text.grade}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
`;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-CFicons-dialog\",\r\n \"addclass\": \"luckysheet-CFicons-dialog\",\r\n \"title\": conditionformat_Text.icons,\r\n \"content\": content,\r\n \"botton\": ``,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-CFicons-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 400)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-CFicons-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n },\r\n administerRuleDialog: function(){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-administerRule-dialog\").remove();\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n //\u5DE5\u4F5C\u8868\r\n let opHtml = '';\r\n for(let j = 0; j < Store.luckysheetfile.length; j++){\r\n if(Store.luckysheetfile[j].status == \"1\"){\r\n opHtml += ``;\r\n }\r\n else{\r\n opHtml += ``;\r\n }\r\n }\r\n\r\n let content = `
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n ${conditionformat_Text.rule}\r\n ${conditionformat_Text.format}\r\n ${conditionformat_Text.applyRange}\r\n
\r\n
\r\n
\r\n
`;\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-administerRule-dialog\",\r\n \"addclass\": \"luckysheet-administerRule-dialog\",\r\n \"title\": conditionformat_Text.conditionformatManageRules,\r\n \"content\": content,\r\n \"botton\": `\r\n `,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-administerRule-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 400)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-administerRule-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n\r\n //\u5F53\u524D\u5DE5\u4F5C\u8868\u7684\u89C4\u5219\u5217\u8868\r\n let index = $(\"#luckysheet-administerRule-dialog .chooseSheet option:selected\").val();\r\n this.getConditionRuleList(index);\r\n },\r\n getConditionRuleList: function(index){\r\n\r\n let _this = this;\r\n\r\n $(\"#luckysheet-administerRule-dialog .ruleList .listBox\").empty();\r\n\r\n let ruleArr = _this.fileClone[getSheetIndex(index)].luckysheet_conditionformat_save; //\u6761\u4EF6\u683C\u5F0F\u89C4\u5219\u96C6\u5408\r\n if(ruleArr != null && ruleArr.length > 0){\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n for(let i = 0; i < ruleArr.length; i++){\r\n let type = ruleArr[i][\"type\"]; //\u89C4\u5219\u7C7B\u578B\r\n let format = ruleArr[i][\"format\"]; //\u89C4\u5219\u6837\u5F0F\r\n let cellrange = ruleArr[i][\"cellrange\"]; //\u89C4\u5219\u5E94\u7528\u8303\u56F4\r\n\r\n let ruleName; //\u89C4\u5219\u540D\u79F0\r\n let formatHtml = ''; //\u6837\u5F0Fdom\r\n if(type == \"dataBar\"){\r\n ruleName = conditionformat_Text.dataBar;\r\n\r\n formatHtml = '';\r\n }\r\n else if(type == \"colorGradation\"){\r\n ruleName = conditionformat_Text.colorGradation;\r\n\r\n formatHtml = '';\r\n }\r\n else if(type == \"icons\"){\r\n ruleName = conditionformat_Text.icons;\r\n\r\n formatHtml = '';\r\n }\r\n else{\r\n ruleName = _this.getConditionRuleName(ruleArr[i].conditionName, ruleArr[i].conditionRange, ruleArr[i].conditionValue);\r\n\r\n if(format[\"textColor\"] != null){\r\n formatHtml += '';\r\n }\r\n\r\n if(format[\"cellColor\"] != null){\r\n formatHtml += '';\r\n }\r\n }\r\n\r\n //\u5E94\u7528\u8303\u56F4dom\r\n let rangeTxtArr = [];\r\n for(let s = 0; s < cellrange.length; s++){\r\n let r1 = cellrange[s].row[0], r2 = cellrange[s].row[1];\r\n let c1 = cellrange[s].column[0], c2 = cellrange[s].column[1];\r\n\r\n rangeTxtArr.push(chatatABC(c1) + (r1 + 1) + \":\" + chatatABC(c2) + (r2 + 1));\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\u89C4\u5219\u5217\u8868dom\r\n let itemHtml = '
' +\r\n '
' + ruleName + '
' +\r\n '
' + formatHtml + '
' +\r\n '
' +\r\n '' +\r\n '' +\r\n '
' +\r\n '
';\r\n\r\n $(\"#luckysheet-administerRule-dialog .ruleList .listBox\").prepend(itemHtml);\r\n }\r\n\r\n $(\"#luckysheet-administerRule-dialog .ruleList .listBox .item canvas\").each(function(i){\r\n let x = $(this).closest(\".item\").attr(\"data-item\");\r\n\r\n let type = ruleArr[x][\"type\"];\r\n let format = ruleArr[x][\"format\"];\r\n\r\n let can = $(this).get(0).getContext(\"2d\");\r\n if(type == \"dataBar\"){\r\n if(format.length == 2){\r\n let my_gradient = can.createLinearGradient(0, 0, 46, 0);\r\n my_gradient.addColorStop(0, format[0]);\r\n my_gradient.addColorStop(1, format[1]);\r\n can.fillStyle = my_gradient;\r\n can.fillRect(0, 0, 46, 18);\r\n\r\n can.beginPath();\r\n can.moveTo(0, 0);\r\n can.lineTo(0, 18);\r\n can.lineTo(46, 18);\r\n can.lineTo(46, 0);\r\n can.lineTo(0, 0);\r\n can.lineWidth = Store.devicePixelRatio;\r\n can.strokeStyle = format[0];\r\n can.stroke();\r\n can.closePath();\r\n }\r\n else if(format.length == 1){\r\n can.fillStyle = format[0];\r\n can.fillRect(0, 0, 46, 18);\r\n\r\n can.beginPath();\r\n can.moveTo(0, 0);\r\n can.lineTo(0, 18);\r\n can.lineTo(46, 18);\r\n can.lineTo(46, 0);\r\n can.lineTo(0, 0);\r\n can.lineWidth = Store.devicePixelRatio;\r\n can.strokeStyle = format[0];\r\n can.stroke();\r\n can.closePath();\r\n }\r\n }\r\n else if(type == \"colorGradation\"){\r\n let my_gradient = can.createLinearGradient(0, 0, 46, 0);\r\n\r\n if(format.length == 3){\r\n my_gradient.addColorStop(0, format[0]);\r\n my_gradient.addColorStop(0.5, format[1]);\r\n my_gradient.addColorStop(1, format[2]);\r\n }\r\n else if(format.length == 2){\r\n my_gradient.addColorStop(0, format[0]);\r\n my_gradient.addColorStop(1, format[1]);\r\n }\r\n\r\n can.fillStyle = my_gradient;\r\n can.fillRect(0, 0, 46, 18);\r\n }\r\n else if(type == \"icons\"){\r\n let len = format[\"len\"];\r\n let l = format[\"leftMin\"];\r\n let t = format[\"top\"];\r\n\r\n let w1 = 32 * len + 10 * (len - 1);\r\n let h1 = 32;\r\n let w2 = 46;\r\n let h2 = 46 * 32 / w1;\r\n\r\n if(l == \"0\"){\r\n can.drawImage(luckysheet_CFiconsImg, 0, t * 32, w1, h1, 0, (18 - h2) / 2, w2, h2);\r\n }\r\n else if(l == \"5\"){\r\n can.drawImage(luckysheet_CFiconsImg, 210, t * 32, w1, h1, 0, (18 - h2) / 2, w2, h2);\r\n }\r\n }\r\n })\r\n\r\n $(\"#luckysheet-administerRule-dialog .ruleList .listBox .item\").eq(0).addClass(\"on\");\r\n }\r\n },\r\n getConditionRuleName: function(conditionName, conditionRange, conditionValue){\r\n //v \u6709\u6761\u4EF6\u5355\u5143\u683C\u53D6\u6761\u4EF6\u5355\u5143\u683C\uFF0C\u82E5\u65E0\u53D6\u6761\u4EF6\u503C\r\n let v\r\n if(conditionRange[0]!=null){\r\n v = chatatABC(conditionRange[0][\"column\"][0]) + (conditionRange[0][\"row\"][0] + 1);\r\n }\r\n else{\r\n v = conditionValue[0];\r\n }\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n //\u8FD4\u56DE\u6761\u4EF6\u683C\u5F0F\u89C4\u5219\u540D\u79F0\r\n if(conditionName == \"greaterThan\"){\r\n return conditionformat_Text.cellValue + \" > \" + v;\r\n }\r\n else if(conditionName == \"lessThan\"){\r\n return conditionformat_Text.cellValue + \" < \" + v;\r\n }\r\n else if(conditionName == \"betweenness\"){\r\n let v2;\r\n if(conditionRange[1] != null){\r\n v2 = chatatABC(conditionRange[1][\"column\"][0]) + (conditionRange[1][\"row\"][0] + 1);\r\n }\r\n else{\r\n v2 = conditionValue[1];\r\n }\r\n return conditionformat_Text.cellValue + \" \" + conditionformat_Text.between + \" \" + v + \" \" + conditionformat_Text.in + \" \" + v2 + \" \" + conditionformat_Text.between2;\r\n }\r\n else if(conditionName == \"equal\"){\r\n return conditionformat_Text.cellValue + \" = \" + v;\r\n }\r\n else if(conditionName == \"textContains\"){\r\n return conditionformat_Text.cellValue + conditionformat_Text.contain + \" =\" + v;\r\n }\r\n else if(conditionName == \"occurrenceDate\"){\r\n return conditionValue;\r\n }\r\n else if(conditionName == \"duplicateValue\"){\r\n if(conditionValue == \"0\"){\r\n return conditionformat_Text.duplicateValue;\r\n }\r\n if(conditionValue == \"1\"){\r\n return conditionformat_Text.uniqueValue;\r\n }\r\n }\r\n else if(conditionName == \"top10\"){\r\n return conditionformat_Text.top + \" \" + v + \" \" + conditionformat_Text.oneself;\r\n }\r\n else if(conditionName == \"top10%\"){\r\n return conditionformat_Text.top + \" \" + v + \"% \" + conditionformat_Text.oneself;\r\n }\r\n else if(conditionName == \"last10\"){\r\n return conditionformat_Text.last + \" \" + v + \" \" + conditionformat_Text.oneself;\r\n }\r\n else if(conditionName == \"last10%\"){\r\n return conditionformat_Text.last + \" \" + v + \"% \" + conditionformat_Text.oneself;\r\n }\r\n else if(conditionName == \"AboveAverage\"){\r\n return conditionformat_Text.aboveAverage;\r\n }\r\n else if(conditionName == \"SubAverage\"){\r\n return conditionformat_Text.belowAverage;\r\n }\r\n else if(conditionName == \"formula\"){\r\n if(v.slice(0, 1) != '='){\r\n v = '=' + v;\r\n }\r\n\r\n return conditionformat_Text.formula + ': ' + v;\r\n }\r\n },\r\n newConditionRuleDialog: function(source){\r\n let _this = this;\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n //\u89C4\u5219\u8BF4\u660E\r\n let ruleExplainHtml = _this.getRuleExplain(0);\r\n\r\n //\u5F39\u51FA\u5C42\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-administerRule-dialog\").hide();\r\n $(\"#luckysheet-newConditionRule-dialog\").remove();\r\n\r\n let content = '
' +\r\n '
' + conditionformat_Text.chooseRuleType + '\uFF1A
' +\r\n _this.ruleTypeHtml() +\r\n '
' + conditionformat_Text.editRuleDescription + '\uFF1A
' +\r\n '
' +\r\n ruleExplainHtml +\r\n '
' +\r\n '
';\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-newConditionRule-dialog\",\r\n \"addclass\": \"luckysheet-newEditorRule-dialog\",\r\n \"title\": conditionformat_Text.newFormatRule,\r\n \"content\": content,\r\n \"botton\": `\r\n `,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-newConditionRule-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 400)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-newConditionRule-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n\r\n //index\u7684\u89C4\u5219\u7C7B\u578Bfocus\r\n $(\"#luckysheet-newConditionRule-dialog .ruleTypeBox .ruleTypeItem:eq(0)\").addClass(\"on\").siblings().removeClass(\"on\");\r\n\r\n _this.colorSelectInit();\r\n },\r\n editorConditionRuleDialog: function(){\r\n let _this = this;\r\n\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n let rule = _this.editorRule.data;\r\n\r\n if(rule == null){\r\n return;\r\n }\r\n\r\n let ruleType = rule[\"type\"],\r\n ruleFormat = rule[\"format\"],\r\n conditionName = rule[\"conditionName\"];\r\n\r\n let index, type1;\r\n if(ruleType == \"dataBar\" || ruleType == \"colorGradation\" || ruleType == \"icons\"){\r\n index = 0;\r\n type1 = ruleType;\r\n }\r\n else{\r\n if(conditionName == \"greaterThan\" || conditionName == \"lessThan\" || conditionName == \"betweenness\" || conditionName == \"equal\" || conditionName == \"textContains\" || conditionName == \"occurrenceDate\"){\r\n index = 1;\r\n\r\n if(conditionName == \"greaterThan\" || conditionName == \"lessThan\" || conditionName == \"betweenness\" || conditionName == \"equal\"){\r\n type1 = \"number\";\r\n }\r\n else if(conditionName == \"textContains\"){\r\n type1 = \"text\";\r\n }\r\n else if(conditionName == \"occurrenceDate\"){\r\n type1 = \"date\";\r\n }\r\n }\r\n else if(conditionName == \"top10\" || conditionName == \"top10%\" || conditionName == \"last10\" || conditionName == \"last10%\"){\r\n index = 2;\r\n\r\n if(conditionName == \"top10\" || conditionName == \"top10%\"){\r\n type1 = \"top\";\r\n }\r\n else if(conditionName == \"last10\" || conditionName == \"last10%\"){\r\n type1 = \"last\";\r\n }\r\n }\r\n else if(conditionName == \"AboveAverage\" || conditionName == \"SubAverage\"){\r\n index = 3;\r\n type1 = conditionName;\r\n }\r\n else if(conditionName == \"duplicateValue\"){\r\n index = 4;\r\n type1 = rule[\"conditionValue\"];\r\n }\r\n else if(conditionName == \"formula\"){\r\n index = 5;\r\n }\r\n }\r\n\r\n //\u89C4\u5219\u8BF4\u660E\r\n let ruleExplainHtml = _this.getRuleExplain(index);\r\n\r\n //\u5F39\u51FA\u5C42\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-administerRule-dialog\").hide();\r\n $(\"#luckysheet-editorConditionRule-dialog\").remove();\r\n\r\n let content = '
' +\r\n '
'+ conditionformat_Text.chooseRuleType +'\uFF1A
' +\r\n _this.ruleTypeHtml() +\r\n '
'+ conditionformat_Text.editRuleDescription +'\uFF1A
' +\r\n '
' +\r\n ruleExplainHtml +\r\n '
' +\r\n '
';\r\n\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-editorConditionRule-dialog\",\r\n \"addclass\": \"luckysheet-newEditorRule-dialog\",\r\n \"title\": conditionformat_Text.editFormatRule,\r\n \"content\": content,\r\n \"botton\": `\r\n `,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-editorConditionRule-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 400)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-editorConditionRule-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n\r\n _this.colorSelectInit();\r\n\r\n //\u89C4\u5219\u7C7B\u578Bfocus\r\n $(\"#luckysheet-editorConditionRule-dialog .ruleTypeBox .ruleTypeItem:eq(\" + index + \")\").addClass(\"on\").siblings().removeClass(\"on\");\r\n\r\n //type1\r\n $(\"#luckysheet-editorConditionRule-dialog #type1\").val(type1);\r\n if(type1 == \"dataBar\" || type1 == \"colorGradation\" || type1 == \"icons\" || type1 == \"number\" || type1 == \"text\" || type1 == \"date\"){\r\n $(\"#luckysheet-editorConditionRule-dialog .\" + type1 + \"Box\").show();\r\n $(\"#luckysheet-editorConditionRule-dialog .\" + type1 + \"Box\").siblings().hide();\r\n }\r\n\r\n if(type1 == \"date\"){\r\n _this.daterangeInit(\"luckysheet-editorConditionRule-dialog\");\r\n }\r\n\r\n //type2 format value\r\n if(ruleType == \"dataBar\" || ruleType == \"colorGradation\" || ruleType == \"icons\"){\r\n if(type1 == \"dataBar\"){\r\n if(ruleFormat.length == 2){\r\n $(\"#luckysheet-editorConditionRule-dialog .dataBarBox #type2\").val(\"gradient\");\r\n }\r\n else if(ruleFormat.length == 1){\r\n $(\"#luckysheet-editorConditionRule-dialog .dataBarBox #type2\").val(\"solid\");\r\n }\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .dataBarBox .luckysheet-conditionformat-config-color\").spectrum(\"set\", ruleFormat[0]);\r\n }\r\n else if(type1 == \"colorGradation\"){\r\n if(ruleFormat.length == 3){\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox #type2\").val(\"threeColor\");\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .midVal\").show();\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .maxVal .luckysheet-conditionformat-config-color\").spectrum(\"set\", ruleFormat[0]);\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .midVal .luckysheet-conditionformat-config-color\").spectrum(\"set\", ruleFormat[1]);\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .minVal .luckysheet-conditionformat-config-color\").spectrum(\"set\", ruleFormat[2]);\r\n }\r\n else if(ruleFormat.length == 2){\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox #type2\").val(\"twoColor\");\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .midVal\").hide();\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .maxVal .luckysheet-conditionformat-config-color\").spectrum(\"set\", ruleFormat[0]);\r\n $(\"#luckysheet-editorConditionRule-dialog .colorGradationBox .minVal .luckysheet-conditionformat-config-color\").spectrum(\"set\", ruleFormat[1]);\r\n }\r\n }\r\n else if(type1 == \"icons\"){\r\n let len = ruleFormat[\"len\"];\r\n let l = ruleFormat[\"leftMin\"];\r\n let t = ruleFormat[\"top\"];\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .iconsBox li\").each(function(i, e){\r\n if($(e).find(\"div\").attr(\"data-len\") == len && $(e).find(\"div\").attr(\"data-leftmin\") == l && $(e).find(\"div\").attr(\"data-top\") == t){\r\n $(\"#luckysheet-editorConditionRule-dialog .iconsBox .showbox .model\").css(\"background-position\", $(e).find(\"div\").css(\"background-position\"));\r\n $(\"#luckysheet-editorConditionRule-dialog .iconsBox .showbox .model\").attr(\"data-len\", $(e).find(\"div\").attr(\"data-len\"));\r\n $(\"#luckysheet-editorConditionRule-dialog .iconsBox .showbox .model\").attr(\"data-leftmin\", $(e).find(\"div\").attr(\"data-leftmin\"));\r\n $(\"#luckysheet-editorConditionRule-dialog .iconsBox .showbox .model\").attr(\"data-top\", $(e).find(\"div\").attr(\"data-leftmin\"));\r\n $(\"#luckysheet-editorConditionRule-dialog .iconsBox .showbox .model\").attr(\"title\", $(e).find(\"div\").attr(\"title\"));\r\n\r\n return true;\r\n }\r\n });\r\n }\r\n }\r\n else{\r\n if(type1 == \"number\"){\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox #type2\").val(conditionName);\r\n\r\n let val1;\r\n if(rule.conditionRange[0] != null){\r\n val1 = getRangetxt(Store.currentSheetIndex, { \"row\": rule.conditionRange[0][\"row\"], \"column\": rule.conditionRange[0][\"column\"] }, Store.currentSheetIndex);\r\n }\r\n else{\r\n val1 = rule.conditionValue[0];\r\n }\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox #conditionVal input\").val(val1);\r\n\r\n if(conditionName == \"betweenness\"){\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox .txt\").show();\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox #conditionVal2\").show();\r\n\r\n let val2;\r\n if(rule.conditionRange[1] != null){\r\n val2 = getRangetxt(Store.currentSheetIndex, { \"row\": rule.conditionRange[1][\"row\"], \"column\": rule.conditionRange[1][\"column\"] }, Store.currentSheetIndex);\r\n }\r\n else{\r\n val2 = rule.conditionValue[1];\r\n }\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox #conditionVal2 input\").val(val2);\r\n }\r\n else{\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox .txt\").hide();\r\n $(\"#luckysheet-editorConditionRule-dialog .numberBox #conditionVal2\").hide();\r\n }\r\n }\r\n else if(type1 == \"text\"){\r\n let val1;\r\n if(rule.conditionRange[0] != null){\r\n val1 = getRangetxt(Store.currentSheetIndex, { \"row\": rule.conditionRange[0][\"row\"], \"column\": rule.conditionRange[0][\"column\"] }, Store.currentSheetIndex);\r\n }\r\n else{\r\n val1 = rule.conditionValue[0];\r\n }\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog .textBox #conditionVal input\").val(val1);\r\n }\r\n else if(type1 == \"date\"){\r\n _this.daterangeInit(\"luckysheet-editorConditionRule-dialog\");\r\n\r\n let val1 = rule.conditionValue[0];\r\n $(\"#luckysheet-editorConditionRule-dialog .dateBox #daterange-btn\").val(val1);\r\n }\r\n else if(type1 == \"top\" || type1 == \"last\"){\r\n let val1 = rule.conditionValue[0];\r\n\r\n if(conditionName == \"top10%\" || conditionName == \"last10%\"){\r\n $(\"#luckysheet-editorConditionRule-dialog #isPercent\").attr(\"checked\", \"checked\");\r\n }\r\n }\r\n else{\r\n if(conditionName == \"formula\"){\r\n let val1 = rule.conditionValue[0];\r\n $(\"#luckysheet-editorConditionRule-dialog #formulaConditionVal input\").val(val1);\r\n }\r\n }\r\n\r\n $(\"#luckysheet-editorConditionRule-dialog #textcolorshow\").spectrum(\"set\", ruleFormat.textColor);\r\n $(\"#luckysheet-editorConditionRule-dialog #cellcolorshow\").spectrum(\"set\", ruleFormat.cellColor);\r\n }\r\n },\r\n infoDialog: function(title, content){\r\n $(\"#luckysheet-modal-dialog-mask\").show();\r\n $(\"#luckysheet-conditionformat-info-dialog\").remove();\r\n $(\"body\").append(replaceHtml(modelHTML, {\r\n \"id\": \"luckysheet-conditionformat-info-dialog\",\r\n \"addclass\": \"\",\r\n \"title\": title,\r\n \"content\": content,\r\n \"botton\": ``,\r\n \"style\": \"z-index:100003\"\r\n }));\r\n let $t = $(\"#luckysheet-conditionformat-info-dialog\")\r\n .find(\".luckysheet-modal-dialog-content\")\r\n .css(\"min-width\", 300)\r\n .end(),\r\n myh = $t.outerHeight(),\r\n myw = $t.outerWidth();\r\n let winw = $(window).width(), winh = $(window).height();\r\n let scrollLeft = $(document).scrollLeft(), scrollTop = $(document).scrollTop();\r\n $(\"#luckysheet-conditionformat-info-dialog\").css({\r\n \"left\": (winw + scrollLeft - myw) / 2,\r\n \"top\": (winh + scrollTop - myh) / 3\r\n }).show();\r\n },\r\n getRuleExplain: function(index){\r\n const conditionformat_Text = locale().conditionformat;\r\n\r\n let textCellColorHtml = this.textCellColorHtml();\r\n\r\n let ruleExplainHtml;\r\n switch(index){\r\n case 0: //\u57FA\u4E8E\u5404\u81EA\u503C\u8BBE\u7F6E\u6240\u6709\u5355\u5143\u683C\u7684\u683C\u5F0F\r\n ruleExplainHtml = `
${conditionformat_Text.ruleTypeItem1}\uFF1A
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
    \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
\r\n
\r\n
`;\r\n break;\r\n case 1: //\u53EA\u4E3A\u5305\u542B\u4EE5\u4E0B\u5185\u5BB9\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u683C\u5F0F\r\n ruleExplainHtml = `
${conditionformat_Text.ruleTypeItem2_title}\uFF1A
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n ${conditionformat_Text.in}\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
${conditionformat_Text.setFormat}:
${textCellColorHtml}`;\r\n break;\r\n case 2: //\u4EC5\u5BF9\u6392\u540D\u9760\u524D\u6216\u9760\u540E\u7684\u6570\u503C\u8BBE\u7F6E\u683C\u5F0F\r\n ruleExplainHtml = `
${conditionformat_Text.ruleTypeItem3_title}\uFF1A
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
${conditionformat_Text.setFormat}\uFF1A
${textCellColorHtml}`;\r\n break;\r\n case 3: //\u4EC5\u5BF9\u9AD8\u4E8E\u6216\u4F4E\u4E8E\u5E73\u5747\u503C\u7684\u6570\u503C\u8BBE\u7F6E\u683C\u5F0F\r\n ruleExplainHtml = `
${conditionformat_Text.ruleTypeItem4_title}\uFF1A
\r\n
\r\n \r\n ${conditionformat_Text.selectRange_average}\r\n
\r\n
${conditionformat_Text.setFormat}\uFF1A
${textCellColorHtml}`;\r\n break;\r\n case 4: //\u4EC5\u5BF9\u552F\u4E00\u503C\u6216\u91CD\u590D\u503C\u8BBE\u7F6E\u683C\u5F0F\r\n ruleExplainHtml = `
${conditionformat_Text.all}\uFF1A
\r\n
\r\n \r\n ${conditionformat_Text.selectRange_value}\r\n
\r\n
${conditionformat_Text.setFormat}\uFF1A
${textCellColorHtml}`;\r\n break;\r\n case 5: //\u4F7F\u7528\u516C\u5F0F\u786E\u5B9A\u8981\u8BBE\u7F6E\u683C\u5F0F\u7684\u5355\u5143\u683C\r\n ruleExplainHtml = `
${conditionformat_Text.ruleTypeItem2_title}\uFF1A
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
${conditionformat_Text.setFormat}:
${textCellColorHtml}`;\r\n break;\r\n }\r\n\r\n return ruleExplainHtml;\r\n },\r\n daterangeInit: function(id){\r\n const conditionformat_Text = locale().conditionformat;\r\n const regexSingleDate = /^\\d{4}-\\d{2}-\\d{2}$/; // \u5339\u914D \"YYYY-MM-DD\"\r\n const regexStartEndDate = /^\\d{4}-\\d{2}-\\d{2} to \\d{4}-\\d{2}-\\d{2}$/; // \u5339\u914D \"YYYY-MM-DD to YYYY-MM-DD\"\r\n // const regexStartEndDate = /^(\\d{4}-\\d{2}-\\d{2})( to (\\d{4}-\\d{2}-\\d{2}))?$/; // \r\n\r\n //\u65E5\u671F\u9009\u62E9\u63D2\u4EF6\r\n $('.ranges_1 ul').remove();\r\n const daterangeBtn = $('#' + id).find(\"#daterange-btn\")\r\n daterangeBtn.flatpickr({\r\n mode: \"range\",\r\n onChange: (data, label) => {\r\n const [start, end] = data\r\n //label:\u901A\u8FC7\u5B83\u6765\u77E5\u9053\u7528\u6237\u9009\u62E9\u7684\u662F\u4EC0\u4E48\uFF0C\u4F20\u7ED9\u540E\u53F0\u8FDB\u884C\u76F8\u5E94\u7684\u5C55\u793A\r\n let format1 = [\r\n conditionformat_Text.yesterday,\r\n conditionformat_Text.today\r\n ];\r\n\r\n let format2 = [\r\n conditionformat_Text.lastWeek,\r\n conditionformat_Text.thisWeek,\r\n conditionformat_Text.lastMonth,\r\n conditionformat_Text.thisMonth,\r\n conditionformat_Text.lastYear,\r\n conditionformat_Text.thisYear,\r\n conditionformat_Text.last7days,\r\n conditionformat_Text.last30days\r\n ]\r\n\r\n if (label == conditionformat_Text.all) {\r\n daterangeBtn.val('');\r\n } else if (format1.indexOf(label) > -1) {\r\n daterangeBtn.val(dayjs(start).format('YYYY/MM/DD'));\r\n } else if (format2.indexOf(label) > -1) {\r\n daterangeBtn.val(dayjs(start).format('YYYY/MM/DD') + '-' + dayjs(end).format('YYYY/MM/DD'));\r\n }\r\n\r\n // \u5339\u914D \"2023-05-17 to 2023-05-19\"\r\n const isValidSingleFormat = regexSingleDate.test(label);\r\n const isValidStartEndFormat = regexStartEndDate.test(label);\r\n if(isValidSingleFormat){\r\n daterangeBtn.val(dayjs(start).format('YYYY/MM/DD'));\r\n }else if(isValidStartEndFormat){\r\n daterangeBtn.val(dayjs(start).format('YYYY/MM/DD') + '-' + dayjs(end).format('YYYY/MM/DD'));\r\n\r\n }\r\n }\r\n });\r\n },\r\n CFSplitRange: function(range1, range2, range3, type){\r\n let range = [];\r\n\r\n let offset_r = range3[\"row\"][0] - range2[\"row\"][0];\r\n let offset_c = range3[\"column\"][0] - range2[\"column\"][0];\r\n\r\n let r1 = range1[\"row\"][0], r2 = range1[\"row\"][1];\r\n let c1 = range1[\"column\"][0], c2 = range1[\"column\"][1];\r\n\r\n if(r1 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u5168\u90E8\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 >= range2[\"row\"][0] && r1 <= range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u884C\u8D2F\u7A7F \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E0A\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r2 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u884C\u8D2F\u7A7F \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E0B\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 < range2[\"row\"][0] && r2 > range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u884C\u8D2F\u7A7F \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(c1 >= range2[\"column\"][0] && c1 <= range2[\"column\"][1] && r1 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1]){\r\n //\u9009\u533A \u5217\u8D2F\u7A7F \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u5DE6\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [range2[\"column\"][1] + 1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(c2 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1] && r1 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1]){\r\n //\u9009\u533A \u5217\u8D2F\u7A7F \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u53F3\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [c1, range2[\"column\"][0] - 1] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(c1 < range2[\"column\"][0] && c2 > range2[\"column\"][1] && r1 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1]){\r\n //\u9009\u533A \u5217\u8D2F\u7A7F \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [r1, r2], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [r1, r2], \"column\": [range2[\"column\"][1] + 1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 >= range2[\"row\"][0] && r1 <= range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c1 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u5DE6\u4E0A\u89D2\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 >= range2[\"row\"][0] && r1 <= range2[\"row\"][1] && c2 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u53F3\u4E0A\u89D2\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r2 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c1 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u5DE6\u4E0B\u89D2\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [range2[\"column\"][1] + 1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r2 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1] && c2 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u53F3\u4E0B\u89D2\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [c1, range2[\"column\"][0] - 1] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 < range2[\"row\"][0] && r2 > range2[\"row\"][1] && c1 >= range2[\"column\"][0] && c1 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u5DE6\u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [c1 + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 < range2[\"row\"][0] && r2 > range2[\"row\"][1] && c2 >= range2[\"column\"][0] && c2 <= range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u53F3\u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, c2 + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(c1 < range2[\"column\"][0] && c2 > range2[\"column\"][1] && r1 >= range2[\"row\"][0] && r1 <= range2[\"row\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E0A\u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [r1, range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [r1 + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(c1 < range2[\"column\"][0] && c2 > range2[\"column\"][1] && r2 >= range2[\"row\"][0] && r2 <= range2[\"row\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E0B\u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][0], r2], \"column\": [range2[\"column\"][1] + 1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, r2 + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else if(r1 < range2[\"row\"][0] && r2 > range2[\"row\"][1] && c1 < range2[\"column\"][0] && c2 > range2[\"column\"][1]){\r\n //\u9009\u533A \u5305\u542B \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u6B63\u4E2D\u95F4\u90E8\u5206\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, range2[\"row\"][0] - 1], \"column\": [c1, c2] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [c1, range2[\"column\"][0] - 1] },\r\n { \"row\": [range2[\"row\"][0], range2[\"row\"][1]], \"column\": [range2[\"column\"][1] + 1, c2] },\r\n { \"row\": [range2[\"row\"][1] + 1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [\r\n { \"row\": [range2[\"row\"][0] + offset_r, range2[\"row\"][1] + offset_r], \"column\": [range2[\"column\"][0] + offset_c, range2[\"column\"][1] + offset_c] }\r\n ];\r\n }\r\n }\r\n else{\r\n //\u9009\u533A \u5728 \u6761\u4EF6\u683C\u5F0F\u5E94\u7528\u8303\u56F4 \u4E4B\u5916\r\n\r\n if(type == \"allPart\"){ //\u6240\u6709\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"restPart\"){ //\u5269\u4F59\u90E8\u5206\r\n range = [\r\n { \"row\": [r1, r2], \"column\": [c1, c2] }\r\n ];\r\n }\r\n else if(type == \"operatePart\"){ //\u64CD\u4F5C\u90E8\u5206\r\n range = [];\r\n }\r\n }\r\n\r\n return range;\r\n },\r\n getcolorGradation: function(color1, color2, value1, value2, value){\r\n let rgb1 = color1.split(',');\r\n let r1 = parseInt(rgb1[0].split('(')[1]);\r\n let g1 = parseInt(rgb1[1]);\r\n let b1 = parseInt(rgb1[2].split(')')[0]);\r\n\r\n let rgb2 = color2.split(',');\r\n let r2 = parseInt(rgb2[0].split('(')[1]);\r\n let g2 = parseInt(rgb2[1]);\r\n let b2 = parseInt(rgb2[2].split(')')[0]);\r\n\r\n let r = Math.round(r1 - (r1 - r2) / (value1 - value2) * (value1 - value));\r\n let g = Math.round(g1 - (g1 - g2) / (value1 - value2) * (value1 - value));\r\n let b = Math.round(b1 - (b1 - b2) / (value1 - value2) * (value1 - value));\r\n\r\n return \"rgb(\"+ r +\", \"+ g +\", \"+ b +\")\";\r\n },\r\n getCFPartRange: function(sheetIndex, range1, range2){\r\n let ruleArr = [];\r\n\r\n let cf = Store.luckysheetfile[getSheetIndex(sheetIndex)].luckysheet_conditionformat_save;\r\n if(cf != null && cf.length > 0){\r\n label: for(let i = 0; i < cf.length; i++){\r\n let cellrange = cf[i].cellrange;\r\n\r\n for(let j = 0; j < cellrange.length; j++){\r\n let r1 = cellrange[j].row[0], r2 = cellrange[j].row[1];\r\n let c1 = cellrange[j].column[0], c2 = cellrange[j].column[1];\r\n\r\n for(let s = 0; s < range.length; s++){\r\n if((range[s].row[0] >= r1 && range[s].row[0] <= r2) || (range[s].row[1] >= r1 && range[s].row[1] <= r2) || (range[s].column[0] >= c1 && range[s].column[0] <= c2) || (range[s].column[1] >= c1 && range[s].column[1] <= c2)){\r\n ruleArr.push(cf[i]);\r\n\r\n continue label;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return ruleArr;\r\n },\r\n checksCF: function(r, c, computeMap){\r\n if(computeMap != null &&\u3000(r + \"_\" + c) in computeMap){\r\n return computeMap[r + \"_\" + c];\r\n }\r\n else{\r\n return null;\r\n }\r\n },\r\n getComputeMap: function(sheetIndex){\r\n let index = getSheetIndex(Store.currentSheetIndex);\r\n\r\n if(sheetIndex != null){\r\n index = getSheetIndex(sheetIndex);\r\n }\r\n\r\n let ruleArr = Store.luckysheetfile[index][\"luckysheet_conditionformat_save\"];\r\n let data = Store.luckysheetfile[index][\"data\"];\r\n\r\n if(data == null){\r\n return null;\r\n }\r\n\r\n let computeMap = this.compute(ruleArr, data);\r\n\r\n return computeMap;\r\n },\r\n compute: function(ruleArr, d){\r\n let _this = this;\r\n\r\n if(ruleArr == null){\r\n ruleArr = [];\r\n }\r\n\r\n //\u6761\u4EF6\u8BA1\u7B97\u5B58\u50A8\r\n let computeMap = {};\r\n\r\n if(ruleArr.length > 0){\r\n for(let i = 0; i < ruleArr.length; i++){\r\n let type = ruleArr[i][\"type\"];\r\n let cellrange = ruleArr[i][\"cellrange\"];\r\n let format = ruleArr[i][\"format\"];\r\n\r\n if(type == \"dataBar\"){ //\u6570\u636E\u6761\r\n let max = null, min = null;\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(max == null || parseInt(cell.v) > max){\r\n max = parseInt(cell.v);\r\n }\r\n\r\n if(min == null || parseInt(cell.v) < min){\r\n min = parseInt(cell.v);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if(max != null && min != null){\r\n if(min < 0){ //\u9009\u533A\u8303\u56F4\u5185\u6709\u8D1F\u6570\r\n let plusLen = Math.round(max / (max - min) * 10) / 10; //\u6B63\u6570\u6240\u5360\u6BD4\r\n let minusLen = Math.round(Math.abs(min) / (max - min) * 10) / 10; //\u8D1F\u6570\u6240\u5360\u6BD4\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(parseInt(cell.v) < 0){ //\u8D1F\u6570\r\n let valueLen = Math.round(Math.abs(parseInt(cell.v)) / Math.abs(min) * 100) / 100;\r\n\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"dataBar\"] = { \"valueType\": \"minus\", \"minusLen\": minusLen, \"valueLen\": valueLen, \"format\": format };\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"dataBar\": { \"valueType\": \"minus\", \"minusLen\": minusLen, \"valueLen\": valueLen, \"format\": format } };\r\n }\r\n }\r\n\r\n if(parseInt(cell.v) > 0){ //\u6B63\u6570\r\n let valueLen = Math.round(parseInt(cell.v) / max * 100) / 100;\r\n\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"dataBar\"] = { \"valueType\": \"plus\", \"plusLen\": plusLen, \"minusLen\": minusLen, \"valueLen\": valueLen, \"format\": format };\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"dataBar\": { \"valueType\": \"plus\", \"plusLen\": plusLen, \"minusLen\": minusLen, \"valueLen\": valueLen, \"format\": format } };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n let plusLen = 1;\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n let valueLen;\r\n if(max == 0){\r\n valueLen = 1;\r\n }\r\n else{\r\n valueLen = Math.round(parseInt(cell.v) / max * 100) / 100;\r\n }\r\n\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"dataBar\"] = { \"valueType\": \"plus\", \"plusLen\": plusLen, \"valueLen\": valueLen, \"format\": format };\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"dataBar\": { \"valueType\": \"plus\", \"plusLen\": plusLen, \"valueLen\": valueLen, \"format\": format } };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(type == \"colorGradation\"){ //\u8272\u9636\r\n let max = null, min = null, sum = 0, count = 0;\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n count++;\r\n sum += parseInt(cell.v);\r\n\r\n if(max == null || parseInt(cell.v) > max){\r\n max = parseInt(cell.v);\r\n }\r\n\r\n if(min == null || parseInt(cell.v) < min){\r\n min = parseInt(cell.v);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if(max != null && min != null){\r\n if(format.length == 3){ //\u4E09\u8272\u8272\u9636\r\n let avg = Math.floor(sum / count);\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(parseInt(cell.v) == min){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = format[2];\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": format[2] };\r\n }\r\n }\r\n else if(parseInt(cell.v) > min && parseInt(cell.v) < avg){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = _this.getcolorGradation(format[2], format[1], min, avg, parseInt(cell.v));\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": _this.getcolorGradation(format[2], format[1], min, avg, parseInt(cell.v)) };\r\n }\r\n }\r\n else if(parseInt(cell.v) == avg){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = format[1];\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": format[1] };\r\n }\r\n }\r\n else if(parseInt(cell.v) > avg && parseInt(cell.v) < max){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = _this.getcolorGradation(format[1], format[0], avg, max, parseInt(cell.v));\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": _this.getcolorGradation(format[1], format[0], avg, max, parseInt(cell.v)) };\r\n }\r\n }\r\n else if(parseInt(cell.v) == max){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = format[0];\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": format[0] };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(format.length == 2){ //\u4E24\u8272\u8272\u9636\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(parseInt(cell.v) == min){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = format[1];\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": format[1] };\r\n }\r\n }\r\n else if(parseInt(cell.v) > min && parseInt(cell.v) < max){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = _this.getcolorGradation(format[1], format[0], min, max, parseInt(cell.v));\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": _this.getcolorGradation(format[1], format[0], min, max, parseInt(cell.v)) };\r\n }\r\n }\r\n else if(parseInt(cell.v) == max){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"cellColor\"] = format[0];\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"cellColor\": format[0] };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(type == \"icons\"){ //\u56FE\u6807\u96C6\r\n let len = parseInt(format[\"len\"]);\r\n let leftMin = parseInt(format[\"leftMin\"]);\r\n let top = parseInt(format[\"top\"]);\r\n\r\n let max = null, min = null;\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(max == null || parseInt(cell.v) > max){\r\n max = parseInt(cell.v);\r\n }\r\n\r\n if(min == null || parseInt(cell.v) < min){\r\n min = parseInt(cell.v);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if(max != null && min != null){\r\n let a = Math.floor((max - min + 1) / len);\r\n let b = (max - min + 1) % len;\r\n\r\n if(len == 3){ //\u4E00\u7EC4\u56FE\u6807\u6709\u4E09\u4E2A\r\n let v1, v2, v3;\r\n if(b == 2){\r\n v1 = [min, min + a];\r\n v2 = [min + a + 1, min + a * 2];\r\n v3 = [min + a * 2 + 1, max];\r\n }\r\n else{\r\n v1 = [min, min + a - 1];\r\n v2 = [min + a, min + a * 2 - 1];\r\n v3 = [min + a * 2, max];\r\n }\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(parseInt(cell.v) >= v1[0] && parseInt(cell.v) <= v1[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 2, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 2, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v2[0] && parseInt(cell.v) <= v2[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 1, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 1, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v3[0] && parseInt(cell.v) <= v3[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin, \"top\": top} };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(len == 4){ //\u4E00\u7EC4\u56FE\u6807\u6709\u56DB\u4E2A\r\n let v1, v2, v3, v4;\r\n if(b == 2){\r\n v1 = [min, min + a];\r\n v2 = [min + a + 1, min + a * 2];\r\n v3 = [min + a * 2 + 1, min + a * 3];\r\n v4 = [min + a * 3 + 1, max];\r\n }\r\n else if(b == 3){\r\n v1 = [min, min + a];\r\n v2 = [min + a + 1, min + a * 2];\r\n v3 = [min + a * 2 + 1, min + a * 3 + 1];\r\n v4 = [min + a * 3 + 2, max];\r\n }\r\n else{\r\n v1 = [min, min + a - 1];\r\n v2 = [min + a, min + a * 2 - 1];\r\n v3 = [min + a * 2, min + a * 3 - 1];\r\n v4 = [min + a * 3, max];\r\n }\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(parseInt(cell.v) >= v1[0] && parseInt(cell.v) <= v1[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 3, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 3, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v2[0] && parseInt(cell.v) <= v2[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 2, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 2, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v3[0] && parseInt(cell.v) <= v3[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 1, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 1, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v4[0] && parseInt(cell.v) <= v4[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin, \"top\": top} };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(len == 5){ //\u4E00\u7EC4\u56FE\u6807\u6709\u4E94\u4E2A\r\n let v1, v2, v3, v4, v5;\r\n if(b == 2){\r\n v1 = [min, min + a];\r\n v2 = [min + a + 1, min + a * 2];\r\n v3 = [min + a * 2 + 1, min + a * 3];\r\n v4 = [min + a * 3 + 1, min + a * 4];\r\n v5 = [min + a * 4 + 1, max];\r\n }\r\n else if(b == 3){\r\n v1 = [min, min + a];\r\n v2 = [min + a + 1, min + a * 2];\r\n v3 = [min + a * 2 + 1, min + a * 3 + 1];\r\n v4 = [min + a * 3 + 2, min + a * 4 + 1];\r\n v5 = [min + a * 4 + 2, max];\r\n }\r\n else if(b == 4){\r\n v1 = [min, min + a];\r\n v2 = [min + a + 1, min + a * 2 + 1];\r\n v3 = [min + a * 2 + 2, min + a * 3 + 1];\r\n v4 = [min + a * 3 + 2, min + a * 4 + 2];\r\n v5 = [min + a * 4 + 3, max];\r\n }\r\n else{\r\n v1 = [min, min + a - 1];\r\n v2 = [min + a, min + a * 2 - 1];\r\n v3 = [min + a * 2, min + a * 3 - 1];\r\n v4 = [min + a * 3, min + a * 4 - 1];\r\n v5 = [min + a * 4, max];\r\n }\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) == \"object\" && cell[\"ct\"] != null && cell[\"ct\"].t == \"n\" && cell.v != null){\r\n if(parseInt(cell.v) >= v1[0] && parseInt(cell.v) <= v1[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 4, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 4, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v2[0] && parseInt(cell.v) <= v2[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 3, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 3, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v3[0] && parseInt(cell.v) <= v3[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 2, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 2, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v4[0] && parseInt(cell.v) <= v4[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin + 1, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin + 1, \"top\": top} };\r\n }\r\n }\r\n else if(parseInt(cell.v) >= v5[0] && parseInt(cell.v) <= v5[1]){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"icons\"] = {\"left\": leftMin, \"top\": top};\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"icons\": {\"left\": leftMin, \"top\": top} };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n //\u83B7\u53D6\u53D8\u91CF\u503C\r\n let conditionName = ruleArr[i].conditionName, //\u6761\u4EF6\u540D\u79F0\r\n conditionValue0 = ruleArr[i].conditionValue[0], //\u6761\u4EF6\u503C1\r\n conditionValue1 = ruleArr[i].conditionValue[1], //\u6761\u4EF6\u503C2\r\n textColor = format.textColor, //\u6761\u4EF6\u683C\u5F0F\u6587\u672C\u989C\u8272 fc\r\n cellColor = format.cellColor; //\u6761\u4EF6\u683C\u5F0F\u5355\u5143\u683C\u989C\u8272 bg\r\n\r\n for(let s = 0; s < cellrange.length; s++){\r\n //\u6761\u4EF6\u7C7B\u578B\u5224\u65AD\r\n if(conditionName == \"greaterThan\" || conditionName == \"lessThan\" || conditionName == \"equal\" || conditionName == \"textContains\"){\r\n //\u5FAA\u73AF\u5E94\u7528\u8303\u56F4\u8BA1\u7B97\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) != \"object\" || isRealNull(cell.v)){\r\n continue;\r\n }\r\n\r\n //\u7B26\u5408\u6761\u4EF6\r\n if(conditionName == \"greaterThan\" && cell.v > conditionValue0){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n else if(conditionName == \"lessThan\" && cell.v < conditionValue0){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n else if(conditionName == \"equal\" && cell.v == conditionValue0){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n else if(conditionName == \"textContains\" && cell.v.toString().indexOf(conditionValue0) != -1){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(conditionName == \"betweenness\"){\r\n //\u6BD4\u8F83\u6761\u4EF6\u503C1\u548C\u6761\u4EF6\u503C2\u7684\u5927\u5C0F\r\n let vBig, vSmall;\r\n if(conditionValue0 > conditionValue1){\r\n vBig = conditionValue0;\r\n vSmall = conditionValue1;\r\n }\r\n else{\r\n vBig = conditionValue1;\r\n vSmall = conditionValue0;\r\n }\r\n //\u5FAA\u73AF\u5E94\u7528\u8303\u56F4\u8BA1\u7B97\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\r\n let cell = d[r][c];\r\n\r\n if(getObjType(cell) != \"object\" || isRealNull(cell.v)){\r\n continue;\r\n }\r\n\r\n //\u7B26\u5408\u6761\u4EF6\r\n if(cell.v >= vSmall && cell.v <= vBig){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(conditionName == \"occurrenceDate\"){\r\n //\u83B7\u53D6\u65E5\u671F\u6240\u5BF9\u5E94\u7684\u6570\u503C\r\n let dBig, dSmall;\r\n if(conditionValue0.toString().indexOf(\"-\") == -1){\r\n dBig = genarate(conditionValue0)[2];\r\n dSmall = genarate(conditionValue0)[2];\r\n }\r\n else{\r\n let str = conditionValue0.toString().split(\"-\");\r\n dBig = genarate(str[1].trim())[2];\r\n dSmall = genarate(str[0].trim())[2];\r\n }\r\n //\u5FAA\u73AF\u5E94\u7528\u8303\u56F4\u8BA1\u7B97\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\u7C7B\u578B\u4E3A\u65E5\u671F\u7C7B\u578B\r\n if(d[r][c].ct != null && d[r][c].ct.t == \"d\"){\r\n //\u5355\u5143\u683C\u503C\r\n let cellVal = getcellvalue(r, c, d);\r\n //\u7B26\u5408\u6761\u4EF6\r\n if(cellVal >= dSmall && cellVal <= dBig){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(conditionName == \"duplicateValue\"){\r\n //\u5E94\u7528\u8303\u56F4\u5355\u5143\u683C\u503C\u5904\u7406\r\n let dmap = {};\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n let item = getcellvalue(r, c, d);\r\n if(!(item in dmap)){\r\n dmap[item] = [];\r\n }\r\n dmap[item].push({\"r\": r, \"c\": c});\r\n }\r\n }\r\n //\u5FAA\u73AF\u5E94\u7528\u8303\u56F4\u8BA1\u7B97\r\n if(conditionValue0 == \"0\"){//\u91CD\u590D\u503C\r\n for(let x in dmap){\r\n if(x != \"null\" && x != \"undefined\" && dmap[x].length > 1){\r\n for(let j = 0; j < dmap[x].length; j++){\r\n if((dmap[x][j].r + \"_\" + dmap[x][j].c) in computeMap){\r\n computeMap[dmap[x][j].r + \"_\" + dmap[x][j].c][\"textColor\"] = textColor;\r\n computeMap[dmap[x][j].r + \"_\" + dmap[x][j].c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[dmap[x][j].r + \"_\" + dmap[x][j].c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(conditionValue0 == \"1\"){//\u552F\u4E00\u503C\r\n for(let x in dmap){\r\n if(x != \"null\" && x != \"undefined\" && dmap[x].length == 1){\r\n if((dmap[x][0].r + \"_\" + dmap[x][0].c) in computeMap){\r\n computeMap[dmap[x][0].r + \"_\" + dmap[x][0].c][\"textColor\"] = textColor;\r\n computeMap[dmap[x][0].r + \"_\" + dmap[x][0].c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[dmap[x][0].r + \"_\" + dmap[x][0].c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(conditionName == \"top10\" || conditionName == \"top10%\" || conditionName == \"last10\" || conditionName == \"last10%\" || conditionName == \"AboveAverage\" || conditionName == \"SubAverage\"){\r\n //\u5E94\u7528\u8303\u56F4\u5355\u5143\u683C\u503C(\u6570\u503C\u578B)\r\n let dArr=[];\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\u7C7B\u578B\u4E3A\u6570\u5B57\u7C7B\u578B\r\n if(d[r][c].ct != null && d[r][c].ct.t == \"n\"){\r\n dArr.push(getcellvalue(r, c, d));\r\n }\r\n }\r\n }\r\n //\u6570\u7EC4\u5904\u7406\r\n if(conditionName == \"top10\" || conditionName == \"top10%\" || conditionName == \"last10\" || conditionName == \"last10%\"){\r\n //\u4ECE\u5927\u5230\u5C0F\u6392\u5E8F\r\n for(let j = 0; j < dArr.length; j++){\r\n for(let k = 0; k < dArr.length - 1 - j; k++){\r\n if(dArr[k] averageNum){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(conditionName == \"SubAverage\"){ //\u4F4E\u4E8E\u5E73\u5747\u503C\r\n for(let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++){\r\n for(let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++){\r\n if(d[r] == null || d[r][c] == null){\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\r\n let cellVal = getcellvalue(r, c, d);\r\n //\u7B26\u5408\u6761\u4EF6\r\n if(cellVal < averageNum){\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if (conditionName == 'regExp') { // \u652F\u6301\u6B63\u5219\r\n let re = new RegExp(conditionValue0); // \u5916\u90E8\u4F20\u9012\u8FC7\u6765\u7684\u6B63\u5219\u8868\u8FBE\u5F0F\r\n if (undefined == conditionValue1) { // \u5982\u679C\u6CA1\u6709\u7B2C\u4E8C\u4E2A\u53C2\u6570\uFF0C\u9ED8\u8BA4\u662F\u6B63\u5219\u8868\u8FBE\u5F0F\u76F4\u63A5\u751F\u6548\r\n conditionValue1 = 1;\r\n }\r\n\r\n for (let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++) {\r\n for (let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++) {\r\n if (d[r] == null || d[r][c] == null) {\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\r\n let cell = d[r][c];\r\n\r\n if (getObjType(cell) != \"object\" || isRealNull(cell.v)) {\r\n continue;\r\n }\r\n\r\n // \u7B26\u5408\u6761\u4EF6\r\n let ret = re.test(cell.v);\r\n if ((conditionValue1 == 1 && ret) || (conditionValue1 == 0 && !ret)) {\r\n if ((r + \"_\" + c) in computeMap) {\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n } else {\r\n computeMap[r + \"_\" + c] = {\"textColor\": textColor, \"cellColor\": cellColor};\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if (conditionName == 'sort') { // \u652F\u6301\u6570\u636E\u6709\u5E8F\r\n for (let r = cellrange[s].row[0]; r <= cellrange[s].row[1]; r++) {\r\n for (let c = cellrange[s].column[0]; c <= cellrange[s].column[1]; c++) {\r\n if (d[r] == null || d[r][c] == null) {\r\n continue;\r\n }\r\n\r\n //\u5355\u5143\u683C\u503C\r\n let cell = d[r][c];\r\n if (r<1) {\r\n continue;\r\n }\r\n let cellAbove = d[r-1][c];\r\n if (undefined == cellAbove) {\r\n continue;\r\n }\r\n\r\n if (getObjType(cell) != \"object\" || isRealNull(cell.v)) {\r\n continue;\r\n }\r\n\r\n // \u7B26\u5408\u6761\u4EF6\r\n if (($.inArray(conditionValue0, [0, 'asc', '0']) > -1 && cell.v > cellAbove.v) || ($.inArray(conditionValue0, [1, '1', 'desc']) > -1 && cell.v < cellAbove.v)) {\r\n if ((r + \"_\" + c) in computeMap) {\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n } else {\r\n computeMap[r + \"_\" + c] = {\"textColor\": textColor, \"cellColor\": cellColor};\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if(conditionName == \"formula\"){\r\n let str = cellrange[s].row[0],\r\n edr = cellrange[s].row[1],\r\n stc = cellrange[s].column[0],\r\n edc = cellrange[s].column[1];\r\n\r\n let formulaTxt = conditionValue0;\r\n if(conditionValue0.toString().slice(0, 1) != '='){\r\n formulaTxt = '=' + conditionValue0;\r\n }\r\n\r\n for(let r = str; r <= edr; r++){\r\n for(let c = stc; c <= edc; c++){\r\n let func = formulaTxt;\r\n let offsetRow = r - str;\r\n let offsetCol = c - stc;\r\n\r\n if(offsetRow > 0){\r\n func = \"=\" + formula.functionCopy(func, \"down\", offsetRow);\r\n }\r\n\r\n if(offsetCol > 0){\r\n func = \"=\" + formula.functionCopy(func, \"right\", offsetCol);\r\n }\r\n\r\n let funcV = formula.execfunction(func);\r\n let v = funcV[1];\r\n\r\n if(typeof v != 'boolean'){\r\n v = !!Number(v);\r\n }\r\n\r\n if(!v){\r\n continue;\r\n }\r\n\r\n if((r + \"_\" + c) in computeMap){\r\n computeMap[r + \"_\" + c][\"textColor\"] = textColor;\r\n computeMap[r + \"_\" + c][\"cellColor\"] = cellColor;\r\n }\r\n else{\r\n computeMap[r + \"_\" + c] = { \"textColor\": textColor, \"cellColor\": cellColor };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n Store.conditionFormatCells = computeMap;\r\n\r\n return computeMap;\r\n },\r\n updateItem: function(type, cellrange, format){\r\n if(!checkProtectionFormatCells(Store.currentSheetIndex)){\r\n return;\r\n }\r\n\r\n let _this = this;\r\n let index = getSheetIndex(Store.currentSheetIndex);\r\n\r\n //\u4FDD\u5B58\u4E4B\u524D\u7684\u89C4\u5219\r\n let fileH = $.extend(true, [], Store.luckysheetfile);\r\n let historyRules = _this.getHistoryRules(fileH);\r\n\r\n //\u4FDD\u5B58\u5F53\u524D\u7684\u89C4\u5219\r\n let ruleArr;\r\n if(type == \"delSheet\"){\r\n ruleArr = [];\r\n }\r\n else{\r\n let rule = {\r\n \"type\": type,\r\n \"cellrange\": cellrange,\r\n \"format\": format\r\n };\r\n ruleArr = Store.luckysheetfile[index][\"luckysheet_conditionformat_save\"] == null ? [] : Store.luckysheetfile[index][\"luckysheet_conditionformat_save\"];\r\n ruleArr.push(rule);\r\n }\r\n\r\n Store.luckysheetfile[index][\"luckysheet_conditionformat_save\"] = ruleArr;\r\n\r\n let fileC = $.extend(true, [], Store.luckysheetfile);\r\n let currentRules = _this.getCurrentRules(fileC);\r\n\r\n //\u5237\u65B0\u4E00\u6B21\u8868\u683C\r\n _this.ref(historyRules, currentRules);\r\n\r\n //\u53D1\u9001\u7ED9\u540E\u53F0\r\n if(server.allowUpdate){\r\n server.saveParam(\"all\", Store.currentSheetIndex, ruleArr, { \"k\": \"luckysheet_conditionformat_save\" });\r\n }\r\n },\r\n getHistoryRules: function(fileH){\r\n let historyRules = [];\r\n\r\n for(let h = 0; h < fileH.length; h++){\r\n historyRules.push({\"sheetIndex\": fileH[h][\"index\"], \"luckysheet_conditionformat_save\": fileH[h][\"luckysheet_conditionformat_save\"]});\r\n }\r\n\r\n return historyRules;\r\n },\r\n getCurrentRules: function(fileC){\r\n let currentRules = [];\r\n\r\n for(let c = 0; c < fileC.length; c++){\r\n currentRules.push({\"sheetIndex\": fileC[c][\"index\"], \"luckysheet_conditionformat_save\": fileC[c][\"luckysheet_conditionformat_save\"]});\r\n }\r\n\r\n return currentRules;\r\n },\r\n ref: function(historyRules, currentRules){\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n\r\n let redo = {};\r\n redo[\"type\"] = \"updateCF\";\r\n redo[\"data\"] = {\"historyRules\": historyRules, \"currentRules\": currentRules};\r\n Store.jfredo.push(redo);\r\n }\r\n\r\n setTimeout(function () {\r\n luckysheetrefreshgrid();\r\n }, 1);\r\n }\r\n}\r\n\r\nexport default conditionformat;\r\n", "import { selectHightlightShow, selectionCopyShow } from \"./select\";\r\nimport menuButton from \"./menuButton\";\r\nimport conditionformat from \"./conditionformat\";\r\nimport { checkProtectionLockedRangeList } from \"./protection\";\r\nimport editor from \"../global/editor\";\r\nimport tooltip from \"../global/tooltip\";\r\nimport formula from \"../global/formula\";\r\nimport { getBorderInfoCompute } from \"../global/border\";\r\nimport { getdatabyselection, getcellvalue, datagridgrowth } from \"../global/getdata\";\r\nimport { rowlenByRange } from \"../global/getRowlen\";\r\nimport { isEditMode, hasPartMC, isRealNum } from \"../global/validate\";\r\nimport { jfrefreshgrid, jfrefreshgrid_pastcut } from \"../global/refresh\";\r\nimport { genarate, update } from \"../global/format\";\r\nimport { getSheetIndex } from \"../methods/get\";\r\nimport { replaceHtml, getObjType, luckysheetfontformat } from \"../utils/util\";\r\nimport Store from \"../store\";\r\nimport locale from \"../locale/locale\";\r\nimport imageCtrl from \"./imageCtrl\";\r\n\r\nconst selection = {\r\n clearcopy: function(e) {\r\n let clipboardData = window.clipboardData; //for IE\r\n if (!clipboardData) {\r\n // for chrome\r\n if (!!e) {\r\n clipboardData = e.originalEvent.clipboardData;\r\n }\r\n }\r\n let cpdata = \" \";\r\n\r\n Store.luckysheet_selection_range = [];\r\n selectionCopyShow();\r\n // Store.luckysheet_copy_save = {};\r\n\r\n if (!clipboardData) {\r\n let textarea = $(\"#luckysheet-copy-content\").css(\"visibility\", \"hidden\");\r\n textarea.val(cpdata);\r\n textarea.focus();\r\n textarea.select();\r\n // \u7B4950\u6BEB\u79D2\uFF0CkeyPress\u4E8B\u4EF6\u53D1\u751F\u4E86\u518D\u53BB\u5904\u7406\u6570\u636E\r\n setTimeout(function() {\r\n textarea.blur().css(\"visibility\", \"visible\");\r\n }, 10);\r\n } else {\r\n clipboardData.setData(\"Text\", cpdata);\r\n return false; //\u5426\u5219\u8BBE\u4E0D\u751F\u6548\r\n }\r\n },\r\n getHtmlBorderStyle: function(type, color) {\r\n let style = \"\";\r\n let borderType = {\r\n 0: \"none\",\r\n 1: \"Thin\",\r\n 2: \"Hair\",\r\n 3: \"Dotted\",\r\n 4: \"Dashed\",\r\n 5: \"DashDot\",\r\n 6: \"DashDotDot\",\r\n 7: \"Double\",\r\n 8: \"Medium\",\r\n 9: \"MediumDashed\",\r\n 10: \"MediumDashDot\",\r\n 11: \"MediumDashDotDot\",\r\n 12: \"SlantedDashDot\",\r\n 13: \"Thick\",\r\n };\r\n type = borderType[type.toString()];\r\n\r\n if (type.indexOf(\"Medium\") > -1) {\r\n style += \"1pt \";\r\n } else if (type == \"Thick\") {\r\n style += \"1.5pt \";\r\n } else {\r\n style += \"0.5pt \";\r\n }\r\n\r\n if (type == \"Hair\") {\r\n style += \"double \";\r\n } else if (type.indexOf(\"DashDotDot\") > -1) {\r\n style += \"dotted \";\r\n } else if (type.indexOf(\"DashDot\") > -1) {\r\n style += \"dashed \";\r\n } else if (type.indexOf(\"Dotted\") > -1) {\r\n style += \"dotted \";\r\n } else if (type.indexOf(\"Dashed\") > -1) {\r\n style += \"dashed \";\r\n } else {\r\n style += \"solid \";\r\n }\r\n\r\n return style + color + \";\";\r\n },\r\n copy: function(e) {\r\n //copy\u4E8B\u4EF6\r\n let clipboardData = window.clipboardData; //for IE\r\n if (!clipboardData) {\r\n // for chrome\r\n clipboardData = e.originalEvent.clipboardData;\r\n }\r\n\r\n Store.luckysheet_selection_range = [];\r\n //copy\u8303\u56F4\r\n let rowIndexArr = [],\r\n colIndexArr = [];\r\n let copyRange = [],\r\n RowlChange = false,\r\n HasMC = false;\r\n\r\n for (let s = 0; s < Store.luckysheet_select_save.length; s++) {\r\n let range = Store.luckysheet_select_save[s];\r\n\r\n let r1 = range.row[0],\r\n r2 = range.row[1];\r\n let c1 = range.column[0],\r\n c2 = range.column[1];\r\n\r\n for (let copyR = r1; copyR <= r2; copyR++) {\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][copyR] != null) {\r\n continue;\r\n }\r\n\r\n if (!rowIndexArr.includes(copyR)) {\r\n rowIndexArr.push(copyR);\r\n }\r\n\r\n if (Store.config[\"rowlen\"] != null && copyR in Store.config[\"rowlen\"]) {\r\n RowlChange = true;\r\n }\r\n\r\n for (let copyC = c1; copyC <= c2; copyC++) {\r\n if (Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][copyC] != null) {\r\n continue;\r\n }\r\n\r\n if (!colIndexArr.includes(copyC)) {\r\n colIndexArr.push(copyC);\r\n }\r\n\r\n let cell = Store.flowdata[copyR][copyC];\r\n\r\n if (getObjType(cell) == \"object\" && \"mc\" in cell && cell.mc.rs != null) {\r\n HasMC = true;\r\n }\r\n }\r\n }\r\n\r\n Store.luckysheet_selection_range.push({ row: range.row, column: range.column });\r\n copyRange.push({ row: range.row, column: range.column });\r\n }\r\n\r\n selectionCopyShow();\r\n\r\n //luckysheet\u5185copy\u4FDD\u5B58\r\n Store.luckysheet_copy_save = {\r\n dataSheetIndex: Store.currentSheetIndex,\r\n copyRange: copyRange,\r\n RowlChange: RowlChange,\r\n HasMC: HasMC,\r\n };\r\n\r\n //copy\u8303\u56F4\u6570\u636E\u62FC\u63A5\u6210table \u8D4B\u7ED9\u526A\u8D34\u677F\r\n let _this = this;\r\n\r\n let borderInfoCompute;\r\n if (Store.config[\"borderInfo\"] && Store.config[\"borderInfo\"].length > 0) {\r\n //\u8FB9\u6846\r\n borderInfoCompute = getBorderInfoCompute();\r\n }\r\n\r\n let cpdata = \"\",\r\n d = editor.deepCopyFlowData(Store.flowdata);\r\n let colgroup = \"\";\r\n\r\n // rowIndexArr = rowIndexArr.sort();\r\n // colIndexArr = colIndexArr.sort();\r\n\r\n for (let i = 0; i < rowIndexArr.length; i++) {\r\n let r = rowIndexArr[i];\r\n\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][r] != null) {\r\n continue;\r\n }\r\n\r\n // \u5C06\u884C\u9AD8\u7ED1\u5B9A\u5230 \u6807\u7B7E\u4E0A\r\n if (\r\n Store.config == null ||\r\n Store.config[\"rowlen\"] == null ||\r\n Store.config[\"rowlen\"][r.toString()] == null\r\n ) {\r\n cpdata += '';\r\n } else {\r\n cpdata += ``;\r\n }\r\n\r\n for (let j = 0; j < colIndexArr.length; j++) {\r\n let c = colIndexArr[j];\r\n\r\n if (r == rowIndexArr[0]) {\r\n if (\r\n Store.config == null ||\r\n Store.config[\"columnlen\"] == null ||\r\n Store.config[\"columnlen\"][c.toString()] == null\r\n ) {\r\n colgroup += '';\r\n } else {\r\n colgroup += '';\r\n }\r\n }\r\n\r\n if (Store.config[\"colhidden\"] != null && Store.config[\"colhidden\"][c] != null) {\r\n continue;\r\n }\r\n\r\n let column = '';\r\n\r\n if (d[r] != null && d[r][c] != null) {\r\n let style = \"\",\r\n span = \"\";\r\n\r\n let reg = /^(w|W)((0?)|(0\\.0+))$/;\r\n let c_value;\r\n if (d[r][c].ct != null && d[r][c].ct.fa != null && d[r][c].ct.fa.match(reg)) {\r\n c_value = getcellvalue(r, c, d);\r\n } else {\r\n c_value = getcellvalue(r, c, d, \"m\");\r\n }\r\n\r\n style += menuButton.getStyleByCell(d, r, c);\r\n\r\n if (getObjType(d[r][c]) == \"object\" && \"mc\" in d[r][c]) {\r\n if (\"rs\" in d[r][c][\"mc\"]) {\r\n span = 'rowspan=\"' + d[r][c][\"mc\"].rs + '\" colspan=\"' + d[r][c][\"mc\"].cs + '\"';\r\n\r\n //\u8FB9\u6846\r\n if (borderInfoCompute && borderInfoCompute[r + \"_\" + c]) {\r\n let bl_obj = { color: {}, style: {} },\r\n br_obj = { color: {}, style: {} },\r\n bt_obj = { color: {}, style: {} },\r\n bb_obj = { color: {}, style: {} };\r\n\r\n for (let bd_r = r; bd_r < r + d[r][c][\"mc\"].rs; bd_r++) {\r\n for (let bd_c = c; bd_c < c + d[r][c][\"mc\"].cs; bd_c++) {\r\n if (\r\n bd_r == r &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c] &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c].t\r\n ) {\r\n let linetype = borderInfoCompute[bd_r + \"_\" + bd_c].t.style;\r\n let bcolor = borderInfoCompute[bd_r + \"_\" + bd_c].t.color;\r\n\r\n if (bt_obj[\"style\"][linetype] == null) {\r\n bt_obj[\"style\"][linetype] = 1;\r\n } else {\r\n bt_obj[\"style\"][linetype] = bt_obj[\"style\"][linetype] + 1;\r\n }\r\n\r\n if (bt_obj[\"color\"][bcolor] == null) {\r\n bt_obj[\"color\"][bcolor] = 1;\r\n } else {\r\n bt_obj[\"color\"][bcolor] = bt_obj[\"color\"][bcolor] + 1;\r\n }\r\n }\r\n\r\n if (\r\n bd_r == r + d[r][c][\"mc\"].rs - 1 &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c] &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c].b\r\n ) {\r\n let linetype = borderInfoCompute[bd_r + \"_\" + bd_c].b.style;\r\n let bcolor = borderInfoCompute[bd_r + \"_\" + bd_c].b.color;\r\n\r\n if (bb_obj[\"style\"][linetype] == null) {\r\n bb_obj[\"style\"][linetype] = 1;\r\n } else {\r\n bb_obj[\"style\"][linetype] = bb_obj[\"style\"][linetype] + 1;\r\n }\r\n\r\n if (bb_obj[\"color\"][bcolor] == null) {\r\n bb_obj[\"color\"][bcolor] = 1;\r\n } else {\r\n bb_obj[\"color\"][bcolor] = bb_obj[\"color\"][bcolor] + 1;\r\n }\r\n }\r\n\r\n if (\r\n bd_c == c &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c] &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c].l\r\n ) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].l.style;\r\n let bcolor = borderInfoCompute[bd_r + \"_\" + bd_c].l.color;\r\n\r\n if (bl_obj[\"style\"][linetype] == null) {\r\n bl_obj[\"style\"][linetype] = 1;\r\n } else {\r\n bl_obj[\"style\"][linetype] = bl_obj[\"style\"][linetype] + 1;\r\n }\r\n\r\n if (bl_obj[\"color\"][bcolor] == null) {\r\n bl_obj[\"color\"][bcolor] = 1;\r\n } else {\r\n bl_obj[\"color\"][bcolor] = bl_obj[\"color\"][bcolor] + 1;\r\n }\r\n }\r\n\r\n if (\r\n bd_c == c + d[r][c][\"mc\"].cs - 1 &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c] &&\r\n borderInfoCompute[bd_r + \"_\" + bd_c].r\r\n ) {\r\n let linetype = borderInfoCompute[bd_r + \"_\" + bd_c].r.style;\r\n let bcolor = borderInfoCompute[bd_r + \"_\" + bd_c].r.color;\r\n\r\n if (br_obj[\"style\"][linetype] == null) {\r\n br_obj[\"style\"][linetype] = 1;\r\n } else {\r\n br_obj[\"style\"][linetype] = br_obj[\"style\"][linetype] + 1;\r\n }\r\n\r\n if (br_obj[\"color\"][bcolor] == null) {\r\n br_obj[\"color\"][bcolor] = 1;\r\n } else {\r\n br_obj[\"color\"][bcolor] = br_obj[\"color\"][bcolor] + 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n let rowlen = d[r][c][\"mc\"].rs,\r\n collen = d[r][c][\"mc\"].cs;\r\n\r\n if (JSON.stringify(bl_obj).length > 23) {\r\n let bl_color = null,\r\n bl_style = null;\r\n\r\n for (let x in bl_obj.color) {\r\n if (bl_obj.color[x] >= rowlen / 2) {\r\n bl_color = x;\r\n }\r\n }\r\n\r\n for (let x in bl_obj.style) {\r\n if (bl_obj.style[x] >= rowlen / 2) {\r\n bl_style = x;\r\n }\r\n }\r\n\r\n if (bl_color != null && bl_style != null) {\r\n style += \"border-left:\" + _this.getHtmlBorderStyle(bl_style, bl_color);\r\n }\r\n }\r\n\r\n if (JSON.stringify(br_obj).length > 23) {\r\n let br_color = null,\r\n br_style = null;\r\n\r\n for (let x in br_obj.color) {\r\n if (br_obj.color[x] >= rowlen / 2) {\r\n br_color = x;\r\n }\r\n }\r\n\r\n for (let x in br_obj.style) {\r\n if (br_obj.style[x] >= rowlen / 2) {\r\n br_style = x;\r\n }\r\n }\r\n\r\n if (br_color != null && br_style != null) {\r\n style += \"border-right:\" + _this.getHtmlBorderStyle(br_style, br_color);\r\n }\r\n }\r\n\r\n if (JSON.stringify(bt_obj).length > 23) {\r\n let bt_color = null,\r\n bt_style = null;\r\n\r\n for (let x in bt_obj.color) {\r\n if (bt_obj.color[x] >= collen / 2) {\r\n bt_color = x;\r\n }\r\n }\r\n\r\n for (let x in bt_obj.style) {\r\n if (bt_obj.style[x] >= collen / 2) {\r\n bt_style = x;\r\n }\r\n }\r\n\r\n if (bt_color != null && bt_style != null) {\r\n style += \"border-top:\" + _this.getHtmlBorderStyle(bt_style, bt_color);\r\n }\r\n }\r\n\r\n if (JSON.stringify(bb_obj).length > 23) {\r\n let bb_color = null,\r\n bb_style = null;\r\n\r\n for (let x in bb_obj.color) {\r\n if (bb_obj.color[x] >= collen / 2) {\r\n bb_color = x;\r\n }\r\n }\r\n\r\n for (let x in bb_obj.style) {\r\n if (bb_obj.style[x] >= collen / 2) {\r\n bb_style = x;\r\n }\r\n }\r\n\r\n if (bb_color != null && bb_style != null) {\r\n style += \"border-bottom:\" + _this.getHtmlBorderStyle(bb_style, bb_color);\r\n }\r\n }\r\n }\r\n } else {\r\n continue;\r\n }\r\n } else {\r\n //\u8FB9\u6846\r\n if (borderInfoCompute && borderInfoCompute[r + \"_\" + c]) {\r\n //\u5DE6\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].l) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].l.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].l.color;\r\n style += \"border-left:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n\r\n //\u53F3\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].r) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].r.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].r.color;\r\n style += \"border-right:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n\r\n //\u4E0B\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].b) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].b.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].b.color;\r\n style += \"border-bottom:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n\r\n //\u4E0A\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].t) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].t.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].t.color;\r\n style += \"border-top:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n }\r\n }\r\n\r\n column = replaceHtml(column, { style: style, span: span });\r\n\r\n if (c_value == null) {\r\n c_value = getcellvalue(r, c, d);\r\n }\r\n if (c_value == null && d[r][c] && d[r][c].ct && d[r][c].ct.t == \"inlineStr\") {\r\n c_value = d[r][c].ct.s\r\n .map((val) => {\r\n const brDom = $('
');\r\n const splitValue = val.v.split(\"\\r\\n\");\r\n return splitValue\r\n .map((item) => {\r\n if (!item) {\r\n return \"\";\r\n }\r\n const font = $(\"\");\r\n val.fs && font.css(\"font-size\", `${val.fs}pt`); // \u5B57\u53F7\r\n val.bl && font.css(\"font-weight\", \"bold\"); // \u52A0\u7C97\r\n val.it && font.css(\"font-style\", \"italic\"); // \u659C\u4F53\r\n val.un && font.css(\"text-decoration\", \"underline\"); // \u4E0B\u5212\u7EBF\r\n val.fc && font.css(\"color\", val.fc); // \u5B57\u4F53\u989C\u8272\r\n if (val.cl) {\r\n // \u5224\u65AD\u5220\u9664\u7EBF\r\n font.append(`${item}`);\r\n } else {\r\n font.text(item);\r\n }\r\n return font[0].outerHTML;\r\n })\r\n .join(brDom[0].outerHTML);\r\n })\r\n .join(\"\");\r\n }\r\n\r\n if (c_value == null) {\r\n c_value = \"\";\r\n }\r\n\r\n // c_value = formula.ltGtSignDeal(c_value)\r\n\r\n column += c_value;\r\n } else {\r\n let style = \"\";\r\n\r\n //\u8FB9\u6846\r\n if (borderInfoCompute && borderInfoCompute[r + \"_\" + c]) {\r\n //\u5DE6\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].l) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].l.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].l.color;\r\n style += \"border-left:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n\r\n //\u53F3\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].r) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].r.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].r.color;\r\n style += \"border-right:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n\r\n //\u4E0B\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].b) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].b.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].b.color;\r\n style += \"border-bottom:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n\r\n //\u4E0A\u8FB9\u6846\r\n if (borderInfoCompute[r + \"_\" + c].t) {\r\n let linetype = borderInfoCompute[r + \"_\" + c].t.style;\r\n let bcolor = borderInfoCompute[r + \"_\" + c].t.color;\r\n style += \"border-top:\" + _this.getHtmlBorderStyle(linetype, bcolor);\r\n }\r\n }\r\n\r\n column += \"\";\r\n\r\n column = replaceHtml(column, { style: style, span: \"\" });\r\n column += \"\";\r\n }\r\n\r\n column += \"\";\r\n cpdata += column;\r\n }\r\n\r\n cpdata += \"\";\r\n }\r\n cpdata =\r\n '' +\r\n `${colgroup}` +\r\n cpdata +\r\n \"
\";\r\n\r\n Store.iscopyself = true;\r\n\r\n if (!clipboardData) {\r\n let textarea = $(\"#luckysheet-copy-content\");\r\n textarea.html(cpdata);\r\n textarea.focus();\r\n textarea.select();\r\n document.execCommand(\"selectAll\");\r\n document.execCommand(\"Copy\");\r\n\r\n // \u7B4950\u6BEB\u79D2\uFF0CkeyPress\u4E8B\u4EF6\u53D1\u751F\u4E86\u518D\u53BB\u5904\u7406\u6570\u636E\r\n setTimeout(function() {\r\n $(\"#luckysheet-copy-content\").blur();\r\n }, 10);\r\n\r\n // var oInput = document.createElement('input');\r\n // oInput.setAttribute('readonly', 'readonly');\r\n // oInput.value = cpdata;\r\n // document.body.appendChild(oInput);\r\n // oInput.select(); // \u9009\u62E9\u5BF9\u8C61\r\n // document.execCommand(\"Copy\");\r\n // oInput.style.display='none';\r\n // document.body.removeChild(oInput);\r\n } else {\r\n clipboardData.setData(\"Text\", cpdata);\r\n return false; //\u5426\u5219\u8BBE\u4E0D\u751F\u6548\r\n }\r\n },\r\n copybyformat: function(e, txt) {\r\n //copy\u4E8B\u4EF6\r\n let clipboardData = window.clipboardData; //for IE\r\n if (!clipboardData) {\r\n // for chrome\r\n clipboardData = e.originalEvent && e.originalEvent.clipboardData;\r\n }\r\n\r\n Store.luckysheet_selection_range = [\r\n { row: Store.luckysheet_select_save[0].row, column: Store.luckysheet_select_save[0].column },\r\n ];\r\n selectionCopyShow();\r\n\r\n let cpdata = txt;\r\n Store.iscopyself = true;\r\n\r\n if (!clipboardData) {\r\n let textarea = $(\"#luckysheet-copy-content\");\r\n textarea.text(cpdata);\r\n textarea.focus();\r\n textarea.select();\r\n document.execCommand(\"selectAll\");\r\n document.execCommand(\"Copy\");\r\n // \u7B4950\u6BEB\u79D2\uFF0CkeyPress\u4E8B\u4EF6\u53D1\u751F\u4E86\u518D\u53BB\u5904\u7406\u6570\u636E\r\n setTimeout(function() {\r\n textarea.blur();\r\n }, 10);\r\n } else {\r\n clipboardData.setData(\"Text\", cpdata);\r\n return false; //\u5426\u5219\u8BBE\u4E0D\u751F\u6548\r\n }\r\n },\r\n isPasteAction: false,\r\n paste: function(e, triggerType) {\r\n //paste\u4E8B\u4EF6\r\n let _this = this;\r\n\r\n if (Store.allowEdit === false) {\r\n return;\r\n }\r\n\r\n const _locale = locale();\r\n const local_drag = _locale.drag;\r\n\r\n let textarea = $(\"#luckysheet-copy-content\");\r\n textarea.focus();\r\n textarea.select();\r\n\r\n // \u7B4950\u6BEB\u79D2\uFF0CkeyPress\u4E8B\u4EF6\u53D1\u751F\u4E86\u518D\u53BB\u5904\u7406\u6570\u636E\r\n setTimeout(function() {\r\n let data = textarea.html();\r\n\r\n if (\r\n data.indexOf(\"luckysheet_copy_action_table\") > -1 &&\r\n Store.luckysheet_copy_save[\"copyRange\"] != null &&\r\n Store.luckysheet_copy_save[\"copyRange\"].length > 0\r\n ) {\r\n if (Store.luckysheet_paste_iscut) {\r\n Store.luckysheet_paste_iscut = false;\r\n _this.pasteHandlerOfCutPaste(Store.luckysheet_copy_save);\r\n _this.clearcopy(e);\r\n } else {\r\n _this.pasteHandlerOfCopyPaste(Store.luckysheet_copy_save);\r\n }\r\n } else if (data.indexOf(\"luckysheet_copy_action_image\") > -1) {\r\n imageCtrl.pasteImgItem();\r\n } else if (triggerType != \"btn\") {\r\n _this.pasteHandler(data);\r\n } else {\r\n if (isEditMode()) {\r\n alert(local_drag.pasteMustKeybordAlert);\r\n } else {\r\n tooltip.info(local_drag.pasteMustKeybordAlertHTMLTitle, local_drag.pasteMustKeybordAlertHTML);\r\n }\r\n }\r\n }, 10);\r\n },\r\n pasteHandler: function(data, borderInfo) {\r\n if (!checkProtectionLockedRangeList(Store.luckysheet_select_save, Store.currentSheetIndex)) {\r\n return;\r\n }\r\n\r\n if (Store.allowEdit === false) {\r\n return;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_paste = _locale.paste;\r\n\r\n if (Store.luckysheet_select_save.length > 1) {\r\n if (isEditMode()) {\r\n alert(locale_paste.errorNotAllowMulti);\r\n } else {\r\n tooltip.info(\r\n `${locale_paste.warning}`,\r\n locale_paste.errorNotAllowMulti,\r\n );\r\n }\r\n }\r\n\r\n if (typeof data == \"object\") {\r\n if (data.length == 0) {\r\n return;\r\n }\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n if (JSON.stringify(borderInfo).length > 2 && cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n let copyh = data.length,\r\n copyc = data[0].length;\r\n\r\n let minh = Store.luckysheet_select_save[0].row[0], //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u884C\r\n maxh = minh + copyh - 1;\r\n let minc = Store.luckysheet_select_save[0].column[0], //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u5217\r\n maxc = minc + copyc - 1;\r\n\r\n //\u5E94\u7528\u8303\u56F4\u5305\u542B\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\uFF0C\u5219return\u63D0\u793A\r\n let has_PartMC = false;\r\n if (cfg[\"merge\"] != null) {\r\n has_PartMC = hasPartMC(cfg, minh, maxh, minc, maxc);\r\n }\r\n\r\n if (has_PartMC) {\r\n if (isEditMode()) {\r\n alert(locale_paste.errorNotAllowMerged);\r\n } else {\r\n tooltip.info(\r\n `${locale_paste.warning}`,\r\n locale_paste.errorNotAllowMerged,\r\n );\r\n }\r\n\r\n return;\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata); //\u53D6\u6570\u636E\r\n let rowMaxLength = d.length;\r\n let cellMaxLength = d[0].length;\r\n\r\n //\u82E5\u5E94\u7528\u8303\u56F4\u8D85\u8FC7\u6700\u5927\u884C\u6216\u6700\u5927\u5217\uFF0C\u589E\u52A0\u884C\u5217\r\n let addr = maxh - rowMaxLength + 1,\r\n addc = maxc - cellMaxLength + 1;\r\n if (addr > 0 || addc > 0) {\r\n d = datagridgrowth([].concat(d), addr, addc, true);\r\n }\r\n\r\n if (cfg[\"rowlen\"] == null) {\r\n cfg[\"rowlen\"] = {};\r\n }\r\n\r\n let RowlChange = false;\r\n let offsetMC = {};\r\n for (let h = minh; h <= maxh; h++) {\r\n let x = [].concat(d[h]);\r\n\r\n let currentRowLen = Store.defaultrowlen;\r\n if (cfg[\"rowlen\"][h] != null) {\r\n currentRowLen = cfg[\"rowlen\"][h];\r\n }\r\n\r\n for (let c = minc; c <= maxc; c++) {\r\n if (getObjType(x[c]) == \"object\" && \"mc\" in x[c]) {\r\n if (\"rs\" in x[c].mc) {\r\n delete cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c];\r\n }\r\n\r\n delete x[c].mc;\r\n }\r\n\r\n let value = null;\r\n if (data[h - minh] != null && data[h - minh][c - minc] != null) {\r\n value = data[h - minh][c - minc];\r\n }\r\n\r\n x[c] = $.extend(true, {}, value);\r\n\r\n if (value != null && \"mc\" in x[c]) {\r\n if (x[c][\"mc\"].rs != null) {\r\n x[c][\"mc\"].r = h;\r\n x[c][\"mc\"].c = c;\r\n\r\n cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c] = x[c][\"mc\"];\r\n\r\n offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c] = [x[c][\"mc\"].r, x[c][\"mc\"].c];\r\n } else {\r\n x[c] = {\r\n mc: {\r\n r: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][0],\r\n c: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][1],\r\n },\r\n };\r\n }\r\n }\r\n\r\n if (borderInfo[h - minh + \"_\" + (c - minc)]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: borderInfo[h - minh + \"_\" + (c - minc)].l,\r\n r: borderInfo[h - minh + \"_\" + (c - minc)].r,\r\n t: borderInfo[h - minh + \"_\" + (c - minc)].t,\r\n b: borderInfo[h - minh + \"_\" + (c - minc)].b,\r\n },\r\n };\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n let fontset = luckysheetfontformat(x[c]);\r\n let oneLineTextHeight = menuButton.getTextSize(\"\u7530\", fontset)[1];\r\n //\u6BD4\u8F83\u8BA1\u7B97\u9AD8\u5EA6\u548C\u5F53\u524D\u9AD8\u5EA6\u53D6\u6700\u5927\u9AD8\u5EA6\r\n if (oneLineTextHeight > currentRowLen) {\r\n currentRowLen = oneLineTextHeight;\r\n RowlChange = true;\r\n }\r\n }\r\n d[h] = x;\r\n\r\n if (currentRowLen != Store.defaultrowlen) {\r\n cfg[\"rowlen\"][h] = currentRowLen;\r\n }\r\n }\r\n\r\n Store.luckysheet_select_save = [{ row: [minh, maxh], column: [minc, maxc] }];\r\n\r\n if (addr > 0 || addc > 0 || RowlChange) {\r\n let allParam = {\r\n cfg: cfg,\r\n RowlChange: true,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n } else {\r\n let allParam = {\r\n cfg: cfg,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n selectHightlightShow();\r\n }\r\n } else {\r\n data = data.replace(/\\r/g, \"\");\r\n let dataChe = [];\r\n let che = data.split(\"\\n\"),\r\n colchelen = che[0].split(\"\\t\").length;\r\n\r\n for (let i = 0; i < che.length; i++) {\r\n if (che[i].split(\"\\t\").length < colchelen) {\r\n continue;\r\n }\r\n\r\n dataChe.push(che[i].split(\"\\t\"));\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata); //\u53D6\u6570\u636E\r\n\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let curR = last[\"row\"] == null ? 0 : last[\"row\"][0];\r\n let curC = last[\"column\"] == null ? 0 : last[\"column\"][0];\r\n let rlen = dataChe.length,\r\n clen = dataChe[0].length;\r\n\r\n //\u5E94\u7528\u8303\u56F4\u5305\u542B\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\uFF0C\u5219return\u63D0\u793A\r\n let has_PartMC = false;\r\n if (Store.config[\"merge\"] != null) {\r\n has_PartMC = hasPartMC(Store.config, curR, curR + rlen - 1, curC, curC + clen - 1);\r\n }\r\n\r\n if (has_PartMC) {\r\n if (isEditMode()) {\r\n alert(locale_paste.errorNotAllowMerged);\r\n } else {\r\n tooltip.info(\r\n `${locale_paste.warning}`,\r\n locale_paste.errorNotAllowMerged,\r\n );\r\n }\r\n return;\r\n }\r\n\r\n let addr = curR + rlen - d.length,\r\n addc = curC + clen - d[0].length;\r\n if (addr > 0 || addc > 0) {\r\n d = datagridgrowth([].concat(d), addr, addc, true);\r\n }\r\n\r\n for (let r = 0; r < rlen; r++) {\r\n let x = [].concat(d[r + curR]);\r\n for (let c = 0; c < clen; c++) {\r\n let originCell = x[c + curC];\r\n let value = dataChe[r][c];\r\n if (isRealNum(value)) {\r\n // \u5982\u679C\u5355\u5143\u683C\u8BBE\u7F6E\u4E86\u7EAF\u6587\u672C\u683C\u5F0F\uFF0C\u90A3\u4E48\u5C31\u4E0D\u8981\u8F6C\u6210\u6570\u503C\u7C7B\u578B\u4E86\uFF0C\u9632\u6B62\u6570\u503C\u8FC7\u5927\u81EA\u52A8\u8F6C\u6210\u79D1\u5B66\u8BA1\u6570\u6CD5\r\n if (originCell && originCell.ct && originCell.ct.fa === \"@\") {\r\n value = String(value);\r\n } else {\r\n value = parseFloat(value);\r\n }\r\n }\r\n if (originCell instanceof Object) {\r\n originCell.v = value;\r\n if (originCell.ct != null && originCell.ct.fa != null) {\r\n originCell.m = update(originCell[\"ct\"][\"fa\"], value);\r\n } else {\r\n originCell.m = value;\r\n }\r\n\r\n if (originCell.f != null && originCell.f.length > 0) {\r\n originCell.f = \"\";\r\n formula.delFunctionGroup(r + curR, c + curC, Store.currentSheetIndex);\r\n }\r\n } else {\r\n let cell = {};\r\n let mask = genarate(value);\r\n cell.v = mask[2];\r\n cell.ct = mask[1];\r\n cell.m = mask[0];\r\n\r\n x[c + curC] = cell;\r\n }\r\n }\r\n d[r + curR] = x;\r\n }\r\n\r\n last[\"row\"] = [curR, curR + rlen - 1];\r\n last[\"column\"] = [curC, curC + clen - 1];\r\n\r\n if (addr > 0 || addc > 0) {\r\n let allParam = {\r\n RowlChange: true,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n } else {\r\n jfrefreshgrid(d, Store.luckysheet_select_save);\r\n selectHightlightShow();\r\n }\r\n }\r\n },\r\n pasteHandlerOfCutPaste: function(copyRange) {\r\n if (!checkProtectionLockedRangeList(Store.luckysheet_select_save, Store.currentSheetIndex)) {\r\n return;\r\n }\r\n if (Store.allowEdit === false) {\r\n return;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_paste = _locale.paste;\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n //\u590D\u5236\u8303\u56F4\r\n let copyHasMC = copyRange[\"HasMC\"];\r\n let copyRowlChange = copyRange[\"RowlChange\"];\r\n let copySheetIndex = copyRange[\"dataSheetIndex\"];\r\n\r\n let c_r1 = copyRange[\"copyRange\"][0].row[0],\r\n c_r2 = copyRange[\"copyRange\"][0].row[1],\r\n c_c1 = copyRange[\"copyRange\"][0].column[0],\r\n c_c2 = copyRange[\"copyRange\"][0].column[1];\r\n\r\n let copyData = $.extend(\r\n true,\r\n [],\r\n getdatabyselection({ row: [c_r1, c_r2], column: [c_c1, c_c2] }, copySheetIndex),\r\n );\r\n\r\n let copyh = copyData.length,\r\n copyc = copyData[0].length;\r\n\r\n //\u5E94\u7528\u8303\u56F4\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let minh = last[\"row_focus\"],\r\n maxh = minh + copyh - 1; //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u884C\r\n let minc = last[\"column_focus\"],\r\n maxc = minc + copyc - 1; //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u5217\r\n\r\n //\u5E94\u7528\u8303\u56F4\u5305\u542B\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\uFF0C\u5219\u63D0\u793A\r\n let has_PartMC = false;\r\n if (cfg[\"merge\"] != null) {\r\n has_PartMC = hasPartMC(cfg, minh, maxh, minc, maxc);\r\n }\r\n\r\n if (has_PartMC) {\r\n if (isEditMode()) {\r\n alert(locale_paste.errorNotAllowMerged);\r\n } else {\r\n tooltip.info(\r\n `${locale_paste.warning}`,\r\n locale_paste.errorNotAllowMerged,\r\n );\r\n }\r\n return;\r\n }\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata); //\u53D6\u6570\u636E\r\n let rowMaxLength = d.length;\r\n let cellMaxLength = d[0].length;\r\n\r\n let addr = copyh + minh - rowMaxLength,\r\n addc = copyc + minc - cellMaxLength;\r\n if (addr > 0 || addc > 0) {\r\n d = datagridgrowth([].concat(d), addr, addc, true);\r\n }\r\n\r\n let borderInfoCompute = getBorderInfoCompute(copySheetIndex);\r\n let c_dataVerification = $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(copySheetIndex)][\"dataVerification\"],\r\n );\r\n let dataVerification = $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dataVerification\"],\r\n );\r\n\r\n //\u526A\u5207\u7C98\u8D34\u5728\u5F53\u524D\u8868\u64CD\u4F5C\uFF0C\u5220\u9664\u526A\u5207\u8303\u56F4\u5185\u6570\u636E\u3001\u5408\u5E76\u5355\u5143\u683C\u548C\u6570\u636E\u9A8C\u8BC1\r\n if (Store.currentSheetIndex == copySheetIndex) {\r\n for (let i = c_r1; i <= c_r2; i++) {\r\n for (let j = c_c1; j <= c_c2; j++) {\r\n let cell = d[i][j];\r\n\r\n if (getObjType(cell) == \"object\" && \"mc\" in cell) {\r\n if (\"rs\" in cell[\"mc\"]) {\r\n delete cfg[\"merge\"][cell[\"mc\"].r + \"_\" + cell[\"mc\"].c];\r\n }\r\n delete cell[\"mc\"];\r\n }\r\n\r\n d[i][j] = null;\r\n\r\n delete dataVerification[i + \"_\" + j];\r\n }\r\n }\r\n\r\n //\u8FB9\u6846\r\n if (cfg[\"borderInfo\"] && cfg[\"borderInfo\"].length > 0) {\r\n let source_borderInfo = [];\r\n\r\n for (let i = 0; i < cfg[\"borderInfo\"].length; i++) {\r\n let bd_rangeType = cfg[\"borderInfo\"][i].rangeType;\r\n\r\n if (bd_rangeType == \"range\") {\r\n let bd_range = cfg[\"borderInfo\"][i].range;\r\n let bd_emptyRange = [];\r\n\r\n for (let j = 0; j < bd_range.length; j++) {\r\n bd_emptyRange = bd_emptyRange.concat(\r\n conditionformat.CFSplitRange(\r\n bd_range[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [minh, maxh], column: [minc, maxc] },\r\n \"restPart\",\r\n ),\r\n );\r\n }\r\n\r\n cfg[\"borderInfo\"][i].range = bd_emptyRange;\r\n\r\n source_borderInfo.push(cfg[\"borderInfo\"][i]);\r\n } else if (bd_rangeType == \"cell\") {\r\n let bd_r = cfg[\"borderInfo\"][i].value.row_index;\r\n let bd_c = cfg[\"borderInfo\"][i].value.col_index;\r\n\r\n if (!(bd_r >= c_r1 && bd_r <= c_r2 && bd_c >= c_c1 && bd_c <= c_c2)) {\r\n source_borderInfo.push(cfg[\"borderInfo\"][i]);\r\n }\r\n }\r\n }\r\n\r\n cfg[\"borderInfo\"] = source_borderInfo;\r\n }\r\n }\r\n\r\n let offsetMC = {};\r\n for (let h = minh; h <= maxh; h++) {\r\n let x = [].concat(d[h]);\r\n\r\n for (let c = minc; c <= maxc; c++) {\r\n if (borderInfoCompute[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: borderInfoCompute[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)].l,\r\n r: borderInfoCompute[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)].r,\r\n t: borderInfoCompute[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)].t,\r\n b: borderInfoCompute[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)].b,\r\n },\r\n };\r\n\r\n if (cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n } else if (borderInfoCompute[h + \"_\" + c]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: null,\r\n r: null,\r\n t: null,\r\n b: null,\r\n },\r\n };\r\n\r\n if (cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1 \u526A\u5207\r\n if (c_dataVerification[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)]) {\r\n dataVerification[h + \"_\" + c] = c_dataVerification[c_r1 + h - minh + \"_\" + (c_c1 + c - minc)];\r\n }\r\n\r\n if (getObjType(x[c]) == \"object\" && \"mc\" in x[c]) {\r\n if (\"rs\" in x[c].mc) {\r\n delete cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c];\r\n }\r\n delete x[c].mc;\r\n }\r\n\r\n let value = null;\r\n if (copyData[h - minh] != null && copyData[h - minh][c - minc] != null) {\r\n value = copyData[h - minh][c - minc];\r\n }\r\n\r\n x[c] = $.extend(true, {}, value);\r\n\r\n if (value != null && copyHasMC && \"mc\" in x[c]) {\r\n if (x[c][\"mc\"].rs != null) {\r\n x[c][\"mc\"].r = h;\r\n x[c][\"mc\"].c = c;\r\n\r\n cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c] = x[c][\"mc\"];\r\n\r\n offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c] = [x[c][\"mc\"].r, x[c][\"mc\"].c];\r\n } else {\r\n x[c] = {\r\n mc: {\r\n r: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][0],\r\n c: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][1],\r\n },\r\n };\r\n }\r\n }\r\n }\r\n\r\n d[h] = x;\r\n }\r\n\r\n last[\"row\"] = [minh, maxh];\r\n last[\"column\"] = [minc, maxc];\r\n\r\n //\u82E5\u6709\u884C\u9AD8\u6539\u53D8\uFF0C\u91CD\u65B0\u8BA1\u7B97\u884C\u9AD8\u6539\u53D8\r\n if (copyRowlChange) {\r\n if (Store.currentSheetIndex != copySheetIndex) {\r\n cfg = rowlenByRange(d, minh, maxh, cfg);\r\n } else {\r\n cfg = rowlenByRange(d, c_r1, c_r2, cfg);\r\n cfg = rowlenByRange(d, minh, maxh, cfg);\r\n }\r\n }\r\n\r\n let source, target;\r\n if (Store.currentSheetIndex != copySheetIndex) {\r\n //\u8DE8\u8868\u64CD\u4F5C\r\n let sourceData = $.extend(true, [], Store.luckysheetfile[getSheetIndex(copySheetIndex)][\"data\"]);\r\n let sourceConfig = $.extend(true, {}, Store.luckysheetfile[getSheetIndex(copySheetIndex)][\"config\"]);\r\n\r\n let sourceCurData = $.extend(true, [], sourceData);\r\n let sourceCurConfig = $.extend(true, {}, sourceConfig);\r\n if (sourceCurConfig[\"merge\"] == null) {\r\n sourceCurConfig[\"merge\"] = {};\r\n }\r\n\r\n for (let source_r = c_r1; source_r <= c_r2; source_r++) {\r\n for (let source_c = c_c1; source_c <= c_c2; source_c++) {\r\n let cell = sourceCurData[source_r][source_c];\r\n\r\n if (getObjType(cell) == \"object\" && \"mc\" in cell) {\r\n if (\"rs\" in cell[\"mc\"]) {\r\n delete sourceCurConfig[\"merge\"][cell[\"mc\"].r + \"_\" + cell[\"mc\"].c];\r\n }\r\n delete cell[\"mc\"];\r\n }\r\n sourceCurData[source_r][source_c] = null;\r\n }\r\n }\r\n\r\n if (copyRowlChange) {\r\n sourceCurConfig = rowlenByRange(sourceCurData, c_r1, c_r2, sourceCurConfig);\r\n }\r\n\r\n //\u8FB9\u6846\r\n if (sourceCurConfig[\"borderInfo\"] && sourceCurConfig[\"borderInfo\"].length > 0) {\r\n let source_borderInfo = [];\r\n\r\n for (let i = 0; i < sourceCurConfig[\"borderInfo\"].length; i++) {\r\n let bd_rangeType = sourceCurConfig[\"borderInfo\"][i].rangeType;\r\n\r\n if (bd_rangeType == \"range\") {\r\n let bd_range = sourceCurConfig[\"borderInfo\"][i].range;\r\n let bd_emptyRange = [];\r\n\r\n for (let j = 0; j < bd_range.length; j++) {\r\n bd_emptyRange = bd_emptyRange.concat(\r\n conditionformat.CFSplitRange(\r\n bd_range[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [minh, maxh], column: [minc, maxc] },\r\n \"restPart\",\r\n ),\r\n );\r\n }\r\n\r\n sourceCurConfig[\"borderInfo\"][i].range = bd_emptyRange;\r\n\r\n source_borderInfo.push(sourceCurConfig[\"borderInfo\"][i]);\r\n } else if (bd_rangeType == \"cell\") {\r\n let bd_r = sourceCurConfig[\"borderInfo\"][i].value.row_index;\r\n let bd_c = sourceCurConfig[\"borderInfo\"][i].value.col_index;\r\n\r\n if (!(bd_r >= c_r1 && bd_r <= c_r2 && bd_c >= c_c1 && bd_c <= c_c2)) {\r\n source_borderInfo.push(sourceCurConfig[\"borderInfo\"][i]);\r\n }\r\n }\r\n }\r\n\r\n sourceCurConfig[\"borderInfo\"] = source_borderInfo;\r\n }\r\n\r\n //\u6761\u4EF6\u683C\u5F0F\r\n let source_cdformat = $.extend(\r\n true,\r\n [],\r\n Store.luckysheetfile[getSheetIndex(copySheetIndex)][\"luckysheet_conditionformat_save\"],\r\n );\r\n let source_curCdformat = $.extend(true, [], source_cdformat);\r\n let ruleArr = [];\r\n if (source_curCdformat != null && source_curCdformat.length > 0) {\r\n for (let i = 0; i < source_curCdformat.length; i++) {\r\n let source_curCdformat_cellrange = source_curCdformat[i].cellrange;\r\n let emptyRange = [];\r\n let emptyRange2 = [];\r\n\r\n for (let j = 0; j < source_curCdformat_cellrange.length; j++) {\r\n let range = conditionformat.CFSplitRange(\r\n source_curCdformat_cellrange[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [minh, maxh], column: [minc, maxc] },\r\n \"restPart\",\r\n );\r\n\r\n emptyRange = emptyRange.concat(range);\r\n\r\n let range2 = conditionformat.CFSplitRange(\r\n source_curCdformat_cellrange[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [minh, maxh], column: [minc, maxc] },\r\n \"operatePart\",\r\n );\r\n\r\n if (range2.length > 0) {\r\n emptyRange2 = emptyRange2.concat(range2);\r\n }\r\n }\r\n\r\n source_curCdformat[i].cellrange = emptyRange;\r\n\r\n if (emptyRange2.length > 0) {\r\n let ruleObj = $.extend(true, {}, source_curCdformat[i]);\r\n ruleObj.cellrange = emptyRange2;\r\n ruleArr.push(ruleObj);\r\n }\r\n }\r\n }\r\n\r\n let target_cdformat = $.extend(\r\n true,\r\n [],\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"],\r\n );\r\n let target_curCdformat = $.extend(true, [], target_cdformat);\r\n if (ruleArr.length > 0) {\r\n target_curCdformat = target_curCdformat.concat(ruleArr);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n for (let i = c_r1; i <= c_r2; i++) {\r\n for (let j = c_c1; j <= c_c2; j++) {\r\n delete c_dataVerification[i + \"_\" + j];\r\n }\r\n }\r\n\r\n source = {\r\n sheetIndex: copySheetIndex,\r\n data: sourceData,\r\n curData: sourceCurData,\r\n config: sourceConfig,\r\n curConfig: sourceCurConfig,\r\n cdformat: source_cdformat,\r\n curCdformat: source_curCdformat,\r\n dataVerification: $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(copySheetIndex)][\"dataVerification\"],\r\n ),\r\n curDataVerification: c_dataVerification,\r\n range: {\r\n row: [c_r1, c_r2],\r\n column: [c_c1, c_c2],\r\n },\r\n };\r\n target = {\r\n sheetIndex: Store.currentSheetIndex,\r\n data: Store.flowdata,\r\n curData: d,\r\n config: $.extend(true, {}, Store.config),\r\n curConfig: cfg,\r\n cdformat: target_cdformat,\r\n curCdformat: target_curCdformat,\r\n dataVerification: $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dataVerification\"],\r\n ),\r\n curDataVerification: dataVerification,\r\n range: {\r\n row: [minh, maxh],\r\n column: [minc, maxc],\r\n },\r\n };\r\n } else {\r\n //\u6761\u4EF6\u683C\u5F0F\r\n let cdformat = $.extend(\r\n true,\r\n [],\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"],\r\n );\r\n let curCdformat = $.extend(true, [], cdformat);\r\n if (curCdformat != null && curCdformat.length > 0) {\r\n for (let i = 0; i < curCdformat.length; i++) {\r\n let cellrange = curCdformat[i].cellrange;\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < cellrange.length; j++) {\r\n let range = conditionformat.CFSplitRange(\r\n cellrange[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [minh, maxh], column: [minc, maxc] },\r\n \"allPart\",\r\n );\r\n\r\n emptyRange = emptyRange.concat(range);\r\n }\r\n\r\n curCdformat[i].cellrange = emptyRange;\r\n }\r\n }\r\n\r\n //\u5F53\u524D\u8868\u64CD\u4F5C\r\n source = {\r\n sheetIndex: Store.currentSheetIndex,\r\n data: Store.flowdata,\r\n curData: d,\r\n config: $.extend(true, {}, Store.config),\r\n curConfig: cfg,\r\n cdformat: cdformat,\r\n curCdformat: curCdformat,\r\n dataVerification: $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dataVerification\"],\r\n ),\r\n curDataVerification: dataVerification,\r\n range: {\r\n row: [c_r1, c_r2],\r\n column: [c_c1, c_c2],\r\n },\r\n };\r\n target = {\r\n sheetIndex: Store.currentSheetIndex,\r\n data: Store.flowdata,\r\n curData: d,\r\n config: $.extend(true, {}, Store.config),\r\n curConfig: cfg,\r\n cdformat: cdformat,\r\n curCdformat: curCdformat,\r\n dataVerification: $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"dataVerification\"],\r\n ),\r\n curDataVerification: dataVerification,\r\n range: {\r\n row: [minh, maxh],\r\n column: [minc, maxc],\r\n },\r\n };\r\n }\r\n\r\n if (addr > 0 || addc > 0) {\r\n jfrefreshgrid_pastcut(source, target, true);\r\n } else {\r\n jfrefreshgrid_pastcut(source, target, copyRowlChange);\r\n }\r\n },\r\n pasteHandlerOfCopyPaste: function(copyRange) {\r\n if (!checkProtectionLockedRangeList(Store.luckysheet_select_save, Store.currentSheetIndex)) {\r\n return;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_paste = _locale.paste;\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n //\u590D\u5236\u8303\u56F4\r\n let copyHasMC = copyRange[\"HasMC\"];\r\n let copyRowlChange = copyRange[\"RowlChange\"];\r\n let copySheetIndex = copyRange[\"dataSheetIndex\"];\r\n\r\n let c_r1 = copyRange[\"copyRange\"][0].row[0],\r\n c_r2 = copyRange[\"copyRange\"][0].row[1],\r\n c_c1 = copyRange[\"copyRange\"][0].column[0],\r\n c_c2 = copyRange[\"copyRange\"][0].column[1];\r\n\r\n let arr = [],\r\n isSameRow = false;\r\n for (let i = 0; i < copyRange[\"copyRange\"].length; i++) {\r\n let arrData = getdatabyselection(\r\n { row: copyRange[\"copyRange\"][i].row, column: copyRange[\"copyRange\"][i].column },\r\n copySheetIndex,\r\n );\r\n if (copyRange[\"copyRange\"].length > 1) {\r\n if (c_r1 == copyRange[\"copyRange\"][1].row[0] && c_r2 == copyRange[\"copyRange\"][1].row[1]) {\r\n arrData = arrData[0].map(function(col, a) {\r\n return arrData.map(function(row) {\r\n return row[a];\r\n });\r\n });\r\n\r\n arr = arr.concat(arrData);\r\n\r\n isSameRow = true;\r\n } else if (c_c1 == copyRange[\"copyRange\"][1].column[0] && c_c2 == copyRange[\"copyRange\"][1].column[1]) {\r\n arr = arr.concat(arrData);\r\n }\r\n } else {\r\n arr = arrData;\r\n }\r\n }\r\n\r\n if (isSameRow) {\r\n arr = arr[0].map(function(col, b) {\r\n return arr.map(function(row) {\r\n return row[b];\r\n });\r\n });\r\n }\r\n\r\n let copyData = $.extend(true, [], arr);\r\n\r\n //\u591A\u91CD\u9009\u62E9\u9009\u62E9\u533A\u57DF \u5355\u5143\u683C\u5982\u679C\u6709\u51FD\u6570 \u5219\u53EA\u53D6\u503C \u4E0D\u53D6\u51FD\u6570\r\n if (copyRange[\"copyRange\"].length > 1) {\r\n for (let i = 0; i < copyData.length; i++) {\r\n for (let j = 0; j < copyData[i].length; j++) {\r\n if (copyData[i][j] != null && copyData[i][j].f != null) {\r\n delete copyData[i][j].f;\r\n delete copyData[i][j].spl;\r\n }\r\n }\r\n }\r\n }\r\n\r\n let copyh = copyData.length,\r\n copyc = copyData[0].length;\r\n\r\n //\u5E94\u7528\u8303\u56F4\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let minh = last[\"row\"][0],\r\n maxh = last[\"row\"][1]; //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u884C\r\n let minc = last[\"column\"][0],\r\n maxc = last[\"column\"][1]; //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u5217\r\n\r\n let mh = (maxh - minh + 1) % copyh;\r\n let mc = (maxc - minc + 1) % copyc;\r\n\r\n if (mh != 0 || mc != 0) {\r\n //\u82E5\u5E94\u7528\u8303\u56F4\u4E0D\u662Fcopydata\u884C\u5217\u6570\u7684\u6574\u6570\u500D\uFF0C\u5219\u53D6copydata\u7684\u884C\u5217\u6570\r\n maxh = minh + copyh - 1;\r\n maxc = minc + copyc - 1;\r\n }\r\n\r\n //\u5E94\u7528\u8303\u56F4\u5305\u542B\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\uFF0C\u5219\u63D0\u793A\r\n let has_PartMC = false;\r\n if (cfg[\"merge\"] != null) {\r\n has_PartMC = hasPartMC(cfg, minh, maxh, minc, maxc);\r\n }\r\n\r\n if (has_PartMC) {\r\n if (isEditMode()) {\r\n alert(locale_paste.errorNotAllowMerged);\r\n } else {\r\n tooltip.info(\r\n `${locale_paste.warning}`,\r\n locale_paste.errorNotAllowMerged,\r\n );\r\n }\r\n return;\r\n }\r\n\r\n let timesH = (maxh - minh + 1) / copyh;\r\n let timesC = (maxc - minc + 1) / copyc;\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata); //\u53D6\u6570\u636E\r\n let rowMaxLength = d.length;\r\n let cellMaxLength = d[0].length;\r\n\r\n //\u82E5\u5E94\u7528\u8303\u56F4\u8D85\u8FC7\u6700\u5927\u884C\u6216\u6700\u5927\u5217\uFF0C\u589E\u52A0\u884C\u5217\r\n let addr = copyh + minh - rowMaxLength,\r\n addc = copyc + minc - cellMaxLength;\r\n if (addr > 0 || addc > 0) {\r\n d = datagridgrowth([].concat(d), addr, addc, true);\r\n }\r\n\r\n let borderInfoCompute = getBorderInfoCompute(copySheetIndex);\r\n let c_dataVerification = $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(copySheetIndex)].dataVerification,\r\n );\r\n let dataVerification = null;\r\n\r\n let mth = 0,\r\n mtc = 0,\r\n maxcellCahe = 0,\r\n maxrowCache = 0;\r\n for (let th = 1; th <= timesH; th++) {\r\n for (let tc = 1; tc <= timesC; tc++) {\r\n mth = minh + (th - 1) * copyh;\r\n mtc = minc + (tc - 1) * copyc;\r\n maxrowCache = minh + th * copyh;\r\n maxcellCahe = minc + tc * copyc;\r\n\r\n //\u884C\u5217\u4F4D\u79FB\u503C \u7528\u4E8E\u5355\u5143\u683C\u6709\u51FD\u6570\r\n let offsetRow = mth - c_r1;\r\n let offsetCol = mtc - c_c1;\r\n\r\n let offsetMC = {};\r\n for (let h = mth; h < maxrowCache; h++) {\r\n let x = [].concat(d[h]);\r\n\r\n for (let c = mtc; c < maxcellCahe; c++) {\r\n if (borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].l,\r\n r: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].r,\r\n t: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].t,\r\n b: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].b,\r\n },\r\n };\r\n\r\n if (cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n } else if (borderInfoCompute[h + \"_\" + c]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: null,\r\n r: null,\r\n t: null,\r\n b: null,\r\n },\r\n };\r\n\r\n if (cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1 \u590D\u5236\r\n if (c_dataVerification[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)]) {\r\n if (dataVerification == null) {\r\n dataVerification = $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].dataVerification,\r\n );\r\n }\r\n\r\n dataVerification[h + \"_\" + c] = c_dataVerification[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)];\r\n }\r\n\r\n if (getObjType(x[c]) == \"object\" && \"mc\" in x[c]) {\r\n if (\"rs\" in x[c].mc) {\r\n delete cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c];\r\n }\r\n delete x[c].mc;\r\n }\r\n\r\n let value = null;\r\n if (copyData[h - mth] != null && copyData[h - mth][c - mtc] != null) {\r\n value = $.extend(true, {}, copyData[h - mth][c - mtc]);\r\n }\r\n\r\n if (value != null && value.f != null) {\r\n let func = value.f;\r\n\r\n if (offsetRow > 0) {\r\n func = \"=\" + formula.functionCopy(func, \"down\", offsetRow);\r\n }\r\n\r\n if (offsetRow < 0) {\r\n func = \"=\" + formula.functionCopy(func, \"up\", Math.abs(offsetRow));\r\n }\r\n\r\n if (offsetCol > 0) {\r\n func = \"=\" + formula.functionCopy(func, \"right\", offsetCol);\r\n }\r\n\r\n if (offsetCol < 0) {\r\n func = \"=\" + formula.functionCopy(func, \"left\", Math.abs(offsetCol));\r\n }\r\n\r\n let funcV = formula.execfunction(func, h, c, undefined, true);\r\n\r\n if (value.spl != null) {\r\n value.f = funcV[2];\r\n value.v = funcV[1];\r\n value.spl = funcV[3].data;\r\n } else {\r\n value.f = funcV[2];\r\n value.v = funcV[1];\r\n\r\n if (value.ct != null && value.ct[\"fa\"] != null) {\r\n value.m = update(value.ct[\"fa\"], funcV[1]);\r\n }\r\n }\r\n }\r\n\r\n x[c] = $.extend(true, {}, value);\r\n\r\n if (value != null && copyHasMC && \"mc\" in x[c]) {\r\n if (x[c][\"mc\"].rs != null) {\r\n x[c][\"mc\"].r = h;\r\n x[c][\"mc\"].c = c;\r\n\r\n cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c] = x[c][\"mc\"];\r\n\r\n offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c] = [x[c][\"mc\"].r, x[c][\"mc\"].c];\r\n } else {\r\n x[c] = {\r\n mc: {\r\n r: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][0],\r\n c: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][1],\r\n },\r\n };\r\n }\r\n }\r\n }\r\n\r\n d[h] = x;\r\n }\r\n }\r\n }\r\n\r\n //\u590D\u5236\u8303\u56F4 \u662F\u5426\u6709 \u6761\u4EF6\u683C\u5F0F\u548C\u6570\u636E\u9A8C\u8BC1\r\n let cdformat = null;\r\n if (copyRange[\"copyRange\"].length == 1) {\r\n let c_file = Store.luckysheetfile[getSheetIndex(copySheetIndex)];\r\n let a_file = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)];\r\n\r\n let ruleArr_cf = $.extend(true, [], c_file[\"luckysheet_conditionformat_save\"]);\r\n\r\n if (ruleArr_cf != null && ruleArr_cf.length > 0) {\r\n cdformat = $.extend(true, [], a_file[\"luckysheet_conditionformat_save\"]);\r\n\r\n for (let i = 0; i < ruleArr_cf.length; i++) {\r\n let cf_range = ruleArr_cf[i].cellrange;\r\n\r\n let emptyRange = [];\r\n\r\n for (let th = 1; th <= timesH; th++) {\r\n for (let tc = 1; tc <= timesC; tc++) {\r\n mth = minh + (th - 1) * copyh;\r\n mtc = minc + (tc - 1) * copyc;\r\n maxrowCache = minh + th * copyh;\r\n maxcellCahe = minc + tc * copyc;\r\n\r\n for (let j = 0; j < cf_range.length; j++) {\r\n let range = conditionformat.CFSplitRange(\r\n cf_range[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [mth, maxrowCache - 1], column: [mtc, maxcellCahe - 1] },\r\n \"operatePart\",\r\n );\r\n\r\n if (range.length > 0) {\r\n emptyRange = emptyRange.concat(range);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n ruleArr_cf[i].cellrange = emptyRange;\r\n cdformat.push(ruleArr_cf[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n last[\"row\"] = [minh, maxh];\r\n last[\"column\"] = [minc, maxc];\r\n\r\n if (copyRowlChange || addr > 0 || addc > 0) {\r\n cfg = rowlenByRange(d, minh, maxh, cfg);\r\n\r\n let allParam = {\r\n cfg: cfg,\r\n RowlChange: true,\r\n cdformat: cdformat,\r\n dataVerification: dataVerification,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n } else {\r\n let allParam = {\r\n cfg: cfg,\r\n cdformat: cdformat,\r\n dataVerification: dataVerification,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n\r\n selectHightlightShow();\r\n }\r\n },\r\n pasteHandlerOfPaintModel: function(copyRange) {\r\n if (!checkProtectionLockedRangeList(Store.luckysheet_select_save, Store.currentSheetIndex)) {\r\n return;\r\n }\r\n\r\n const _locale = locale();\r\n const locale_paste = _locale.paste;\r\n\r\n let cfg = $.extend(true, {}, Store.config);\r\n if (cfg[\"merge\"] == null) {\r\n cfg[\"merge\"] = {};\r\n }\r\n\r\n //\u590D\u5236\u8303\u56F4\r\n let copyHasMC = copyRange[\"HasMC\"];\r\n let copyRowlChange = copyRange[\"RowlChange\"];\r\n let copySheetIndex = copyRange[\"dataSheetIndex\"];\r\n\r\n let c_r1 = copyRange[\"copyRange\"][0].row[0],\r\n c_r2 = copyRange[\"copyRange\"][0].row[1],\r\n c_c1 = copyRange[\"copyRange\"][0].column[0],\r\n c_c2 = copyRange[\"copyRange\"][0].column[1];\r\n\r\n let copyData = $.extend(\r\n true,\r\n [],\r\n getdatabyselection({ row: [c_r1, c_r2], column: [c_c1, c_c2] }, copySheetIndex),\r\n );\r\n\r\n //\u5E94\u7528\u8303\u56F4\r\n let last = Store.luckysheet_select_save[Store.luckysheet_select_save.length - 1];\r\n let minh = last[\"row\"][0],\r\n maxh = last[\"row\"][1]; //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u884C\r\n let minc = last[\"column\"][0],\r\n maxc = last[\"column\"][1]; //\u5E94\u7528\u8303\u56F4\u9996\u5C3E\u5217\r\n\r\n let copyh = copyData.length,\r\n copyc = copyData[0].length;\r\n\r\n if (minh == maxh && minc == maxc) {\r\n //\u5E94\u7528\u8303\u56F4\u662F\u4E00\u4E2A\u5355\u5143\u683C\uFF0C\u81EA\u52A8\u589E\u52A0\u5230\u590D\u5236\u8303\u56F4\u5927\u5C0F (\u82E5\u81EA\u52A8\u589E\u52A0\u7684\u8303\u56F4\u5305\u542B\u90E8\u5206\u5408\u5E76\u5355\u5143\u683C\uFF0C\u5219\u63D0\u793A)\r\n let has_PartMC = false;\r\n if (cfg[\"merge\"] != null) {\r\n has_PartMC = hasPartMC(cfg, minh, minh + copyh - 1, minc, minc + copyc - 1);\r\n }\r\n\r\n if (has_PartMC) {\r\n if (isEditMode()) {\r\n alert(locale_paste.errorNotAllowMerged);\r\n } else {\r\n tooltip.info(\r\n `${locale_paste.warning}`,\r\n locale_paste.errorNotAllowMerged,\r\n );\r\n }\r\n return;\r\n }\r\n\r\n maxh = minh + copyh - 1;\r\n maxc = minc + copyc - 1;\r\n }\r\n\r\n let timesH = Math.ceil((maxh - minh + 1) / copyh); //\u590D\u5236\u884C \u7EC4\u6570\r\n let timesC = Math.ceil((maxc - minc + 1) / copyc); //\u590D\u5236\u5217 \u7EC4\u6570\r\n\r\n let d = editor.deepCopyFlowData(Store.flowdata); //\u53D6\u6570\u636E\r\n let cellMaxLength = d[0].length;\r\n let rowMaxLength = d.length;\r\n\r\n let borderInfoCompute = getBorderInfoCompute(copySheetIndex);\r\n let c_dataVerification = $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(copySheetIndex)].dataVerification,\r\n );\r\n let dataVerification = null;\r\n\r\n let mth = 0,\r\n mtc = 0,\r\n maxcellCahe = 0,\r\n maxrowCache = 0;\r\n for (let th = 1; th <= timesH; th++) {\r\n for (let tc = 1; tc <= timesC; tc++) {\r\n mth = minh + (th - 1) * copyh;\r\n mtc = minc + (tc - 1) * copyc;\r\n\r\n maxrowCache = minh + th * copyh > rowMaxLength ? rowMaxLength : minh + th * copyh;\r\n if (maxrowCache > maxh + 1) {\r\n maxrowCache = maxh + 1;\r\n }\r\n\r\n maxcellCahe = minc + tc * copyc > cellMaxLength ? cellMaxLength : minc + tc * copyc;\r\n if (maxcellCahe > maxc + 1) {\r\n maxcellCahe = maxc + 1;\r\n }\r\n\r\n let offsetMC = {};\r\n for (let h = mth; h < maxrowCache; h++) {\r\n let x = [].concat(d[h]);\r\n\r\n for (let c = mtc; c < maxcellCahe; c++) {\r\n if (borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].l,\r\n r: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].r,\r\n t: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].t,\r\n b: borderInfoCompute[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)].b,\r\n },\r\n };\r\n\r\n if (cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n } else if (borderInfoCompute[h + \"_\" + c]) {\r\n let bd_obj = {\r\n rangeType: \"cell\",\r\n value: {\r\n row_index: h,\r\n col_index: c,\r\n l: null,\r\n r: null,\r\n t: null,\r\n b: null,\r\n },\r\n };\r\n\r\n if (cfg[\"borderInfo\"] == null) {\r\n cfg[\"borderInfo\"] = [];\r\n }\r\n\r\n cfg[\"borderInfo\"].push(bd_obj);\r\n }\r\n\r\n //\u6570\u636E\u9A8C\u8BC1 \u590D\u5236\r\n if (c_dataVerification[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)]) {\r\n if (dataVerification == null) {\r\n dataVerification = $.extend(\r\n true,\r\n {},\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].dataVerification,\r\n );\r\n }\r\n\r\n dataVerification[h + \"_\" + c] = c_dataVerification[c_r1 + h - mth + \"_\" + (c_c1 + c - mtc)];\r\n }\r\n\r\n if (getObjType(x[c]) == \"object\" && \"mc\" in x[c]) {\r\n if (\"rs\" in x[c].mc) {\r\n delete cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c];\r\n }\r\n delete x[c].mc;\r\n }\r\n\r\n let value = null;\r\n if (copyData[h - mth] != null && copyData[h - mth][c - mtc] != null) {\r\n value = copyData[h - mth][c - mtc];\r\n }\r\n\r\n if (value != null) {\r\n delete value[\"v\"];\r\n delete value[\"m\"];\r\n delete value[\"f\"];\r\n delete value[\"spl\"];\r\n\r\n if (value.ct && value.ct.t == \"inlineStr\") {\r\n delete value.ct;\r\n }\r\n\r\n if (getObjType(x[c]) == \"object\") {\r\n if (x[c].ct && x[c].ct.t === \"inlineStr\") {\r\n delete value[\"ct\"];\r\n } else {\r\n let format = [\r\n \"bg\",\r\n \"fc\",\r\n \"ct\",\r\n \"ht\",\r\n \"vt\",\r\n \"bl\",\r\n \"it\",\r\n \"cl\",\r\n \"un\",\r\n \"fs\",\r\n \"ff\",\r\n \"tb\",\r\n ];\r\n format.forEach((item) => {\r\n Reflect.deleteProperty(x[c], item);\r\n });\r\n }\r\n } else {\r\n x[c] = { v: x[c] };\r\n }\r\n\r\n x[c] = $.extend(true, x[c], value);\r\n if (x[c].ct && x[c].ct.t === \"inlineStr\") {\r\n x[c].ct.s.forEach((item) => (item = $.extend(true, item, value)));\r\n }\r\n\r\n if (copyHasMC && \"mc\" in x[c]) {\r\n if (x[c][\"mc\"].rs != null) {\r\n x[c][\"mc\"].r = h;\r\n if (x[c][\"mc\"].rs + h >= maxrowCache) {\r\n x[c][\"mc\"].rs = maxrowCache - h;\r\n }\r\n\r\n x[c][\"mc\"].c = c;\r\n if (x[c][\"mc\"].cs + c >= maxcellCahe) {\r\n x[c][\"mc\"].cs = maxcellCahe - c;\r\n }\r\n\r\n cfg[\"merge\"][x[c][\"mc\"].r + \"_\" + x[c][\"mc\"].c] = x[c][\"mc\"];\r\n\r\n offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c] = [x[c][\"mc\"].r, x[c][\"mc\"].c];\r\n } else {\r\n x[c] = {\r\n mc: {\r\n r: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][0],\r\n c: offsetMC[value[\"mc\"].r + \"_\" + value[\"mc\"].c][1],\r\n },\r\n };\r\n }\r\n }\r\n\r\n if (x[c].v != null) {\r\n if (value[\"ct\"] != null && value[\"ct\"][\"fa\"] != null) {\r\n let mask = update(value[\"ct\"][\"fa\"], x[c].v);\r\n x[c].m = mask;\r\n }\r\n }\r\n }\r\n }\r\n\r\n d[h] = x;\r\n }\r\n }\r\n }\r\n\r\n //\u590D\u5236\u8303\u56F4 \u662F\u5426\u6709 \u6761\u4EF6\u683C\u5F0F\r\n let cdformat = null;\r\n let ruleArr = $.extend(\r\n true,\r\n [],\r\n Store.luckysheetfile[getSheetIndex(copySheetIndex)][\"luckysheet_conditionformat_save\"],\r\n );\r\n\r\n if (ruleArr != null && ruleArr.length > 0) {\r\n cdformat = $.extend(\r\n true,\r\n [],\r\n Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)][\"luckysheet_conditionformat_save\"],\r\n );\r\n\r\n for (let i = 0; i < ruleArr.length; i++) {\r\n let cdformat_cellrange = ruleArr[i].cellrange;\r\n let emptyRange = [];\r\n\r\n for (let j = 0; j < cdformat_cellrange.length; j++) {\r\n let range = conditionformat.CFSplitRange(\r\n cdformat_cellrange[j],\r\n { row: [c_r1, c_r2], column: [c_c1, c_c2] },\r\n { row: [minh, maxh], column: [minc, maxc] },\r\n \"operatePart\",\r\n );\r\n\r\n if (range.length > 0) {\r\n emptyRange = emptyRange.concat(range);\r\n }\r\n }\r\n\r\n if (emptyRange.length > 0) {\r\n ruleArr[i].cellrange = [{ row: [minh, maxh], column: [minc, maxc] }];\r\n cdformat.push(ruleArr[i]);\r\n }\r\n }\r\n }\r\n\r\n last[\"row\"] = [minh, maxh];\r\n last[\"column\"] = [minc, maxc];\r\n\r\n if (copyRowlChange) {\r\n cfg = rowlenByRange(d, minh, maxh, cfg);\r\n\r\n let allParam = {\r\n cfg: cfg,\r\n RowlChange: true,\r\n cdformat: cdformat,\r\n dataVerification: dataVerification,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n } else {\r\n // \u9009\u533A\u683C\u5F0F\u5237\u5B58\u5728\u8D85\u51FA\u8FB9\u754C\u7684\u60C5\u51B5\r\n if (maxh >= d.length) {\r\n maxh = d.length - 1;\r\n }\r\n cfg = rowlenByRange(d, minh, maxh, cfg); //\u66F4\u65B0\u884C\u9AD8\r\n let allParam = {\r\n cfg: cfg,\r\n RowlChange: true,\r\n cdformat: cdformat,\r\n dataVerification: dataVerification,\r\n };\r\n jfrefreshgrid(d, Store.luckysheet_select_save, allParam);\r\n\r\n selectHightlightShow();\r\n }\r\n },\r\n matchcopy: function(data1, data2) {\r\n let data1cache = [],\r\n data2cache = [],\r\n data1len,\r\n data2len;\r\n if (typeof data1 == \"object\") {\r\n data1cache = data1;\r\n } else {\r\n data1cache = data1.split(\"\\n\");\r\n for (let i = 0; i < data1cache.length; i++) {\r\n data1cache[i] = data1cache[i].split(\"\\t\");\r\n }\r\n }\r\n\r\n data1len = data1cache.length;\r\n\r\n if (typeof data2 == \"object\") {\r\n data2cache = data2;\r\n } else {\r\n data2cache = data2.split(\"\\n\");\r\n for (let i = 0; i < data2cache.length; i++) {\r\n data2cache[i] = data2cache[i].split(\"\\t\");\r\n }\r\n }\r\n\r\n data2len = data2cache.length;\r\n\r\n if (data1len != data2len) {\r\n return false;\r\n }\r\n\r\n for (let r1 = 0; r1 < data1len; r1++) {\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][r1] != null) {\r\n continue;\r\n }\r\n\r\n for (let r2 = 0; r2 < data2len; r2++) {\r\n if (data1cache[r1].length != data2cache[r2].length) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n for (let r = 0; r < data1len; r++) {\r\n if (Store.config[\"rowhidden\"] != null && Store.config[\"rowhidden\"][r] != null) {\r\n continue;\r\n }\r\n\r\n for (let c = 0; c < data1cache[0].length; c++) {\r\n if (getcellvalue(r, c, data1cache) != getcellvalue(r, c, data2cache)) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n },\r\n};\r\n\r\nexport default selection;\r\n", "import selection from '../controllers/selection';\r\nimport menuButton from '../controllers/menuButton';\r\n\r\nexport default function cleargridelement(event) {\r\n $(\"#luckysheet-cols-h-hover\").hide();\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n\r\n $(\"#luckysheet-cell-selected-boxs .luckysheet-cell-selected\").hide();\r\n $(\"#luckysheet-cols-h-selected .luckysheet-cols-h-selected\").hide();\r\n $(\"#luckysheet-rows-h-selected .luckysheet-rows-h-selected\").hide();\r\n\r\n $(\"#luckysheet-cell-selected-focus\").hide();\r\n $(\"#luckysheet-rows-h-hover\").hide();\r\n $(\"#luckysheet-selection-copy .luckysheet-selection-copy\").hide();\r\n $(\"#luckysheet-cols-menu-btn\").hide();\r\n $(\"#luckysheet-row-count-show, #luckysheet-column-count-show\").hide();\r\n if (!event) {\r\n selection.clearcopy(event);\r\n }\r\n //else{\r\n //\tselection.clearcopy();\r\n //}\r\n\r\n //\u9009\u533A\u4E0B\u62C9icon\u9690\u85CF\r\n if($(\"#luckysheet-dropCell-icon\").is(\":visible\")){\r\n if(event){\r\n $(\"#luckysheet-dropCell-icon\").remove();\r\n }\r\n }\r\n //\u683C\u5F0F\u5237\r\n if(menuButton.luckysheetPaintModelOn && !event){\r\n menuButton.cancelPaintModel();\r\n }\r\n}", "import { \r\n gridHTML, \r\n menuToolBar, \r\n flow, \r\n columnHeaderHTML,\r\n maskHTML,\r\n colsmenuHTML,\r\n rightclickHTML,\r\n inputHTML,\r\n filtermenuHTML,\r\n filtersubmenuHTML,\r\n sheetconfigHTML,\r\n} from '../controllers/constant';\r\nimport luckysheetConfigsetting from '../controllers/luckysheetConfigsetting';\r\nimport luckysheetPostil from '../controllers/postil';\r\nimport { datagridgrowth } from './getdata';\r\nimport editor from './editor';\r\nimport rhchInit from './rhchInit';\r\nimport { replaceHtml } from '../utils/util';\r\nimport Store from '../store';\r\nimport locale from '../locale/locale';\r\n\r\nexport default function luckysheetcreatedom(colwidth, rowheight, data, menu, title) {\r\n // //\u6700\u5C1130\u884C\r\n // if(rowheight < 30){\r\n // rowheight = 30;\r\n // }\r\n\r\n // //\u6700\u5C1122\u5217\r\n // if(colwidth < 22){\r\n // colwidth = 22;\r\n // }\r\n\r\n let gh = gridHTML();\r\n gh = replaceHtml(gh, { \"logotitle\": title });//\u8BBE\u7F6Etitle\r\n gh = replaceHtml(gh, { \"menu\": menuToolBar() });//\u8BBE\u7F6E\u9700\u8981\u663E\u793A\u7684\u83DC\u5355\r\n\r\n // if (data.length == 0) {\r\n // Store.flowdata = datagridgrowth(data, rowheight, colwidth);\r\n // }\r\n // else if (data.length < rowheight && data[0].length < colwidth) {\r\n // Store.flowdata = datagridgrowth(data, rowheight - data.length, colwidth - data[0].length);\r\n // }\r\n // else if (data.length < rowheight) {\r\n // Store.flowdata = datagridgrowth(data, rowheight - data.length, 0);\r\n // }\r\n // else if (data[0].length < colwidth) {\r\n // Store.flowdata = datagridgrowth(data, 0, colwidth - data[0].length);\r\n // }\r\n // else {\r\n // Store.flowdata = data;\r\n // }\r\n \r\n let flowHTML = flow;\r\n if(Store.config == null){\r\n Store.config = {};\r\n }\r\n\r\n rhchInit(rowheight, colwidth);\r\n\r\n const _locale = locale();\r\n const locale_info = _locale.info;\r\n\r\n let addControll = ''+ locale_info.row +'('+locale_info.addLast+')';\r\n let backControll = ' ';\r\n // let pageControll = ' \u5171'+ luckysheetConfigsetting.pageInfo.totalPage +'\u9875\uFF0C\u5F53\u524D\u5DF2\u663E\u793A'+ (luckysheetConfigsetting.pageInfo.currentPage) +'\u9875\uFF0C\u6BCF\u9875'+ luckysheetConfigsetting.pageInfo.pageSize +'\u6761 ';\r\n let pageInfo = replaceHtml(locale_info.pageInfo,{\r\n total:luckysheetConfigsetting.total?luckysheetConfigsetting.total:\"\",\r\n totalPage:luckysheetConfigsetting.pageInfo.totalPage?luckysheetConfigsetting.pageInfo.totalPage:\"\",\r\n currentPage:luckysheetConfigsetting.pageInfo.currentPage?luckysheetConfigsetting.pageInfo.currentPage:\"\",\r\n });\r\n let pageControll = ' '+ pageInfo +' ';\r\n let pageControll2 = ' '+pageInfo+'';\r\n\r\n let bottomControll = \"\";\r\n if(luckysheetConfigsetting.enableAddRow){\r\n bottomControll += addControll;\r\n }\r\n\r\n if(luckysheetConfigsetting.enablePage){\r\n if(parseInt(luckysheetConfigsetting.pageInfo.totalPage) == 1){\r\n bottomControll += pageControll2;\r\n }\r\n else{\r\n bottomControll += pageControll;\r\n }\r\n }\r\n\r\n if(luckysheetConfigsetting.enableAddBackTop){\r\n bottomControll += backControll;\r\n }\r\n\r\n let flowstr = replaceHtml('
'+ bottomControll +'
', { \"height\": Store.rh_height, \"width\": Store.ch_width - 1 });\r\n\r\n let colsheader = replaceHtml(columnHeaderHTML, { \"width\": Store.ch_width, \"index\": 0, \"column\": \"\" });\r\n\r\n flowHTML = replaceHtml(flowHTML, { \"width\": Store.ch_width, \"flow\": flowstr, \"index\": 0 });\r\n\r\n gh = replaceHtml(gh, { \"flow\": flowHTML, \"rowHeader\": \"
\", \"columnHeader\": colsheader, \"functionButton\": luckysheetConfigsetting.functionButton });//\u8BBE\u7F6E\u9700\u8981\u663E\u793A\u7684\u83DC\u5355\r\n\r\n $(\"#\" + Store.container).append(gh);\r\n\r\n $(\"#luckysheet-scrollbar-x div\").width(Store.ch_width);\r\n $(\"#luckysheet-scrollbar-y div\").height(Store.rh_height + Store.columnHeaderHeight - Store.cellMainSrollBarSize - 3);\r\n\r\n //\u65B0\u5EFA\u884C\u83DC\u5355\r\n $(\"body\").append(maskHTML);\r\n $(\"body\").append(colsmenuHTML);\r\n $(\"body\").append(rightclickHTML());\r\n $(\"body\").append(inputHTML);\r\n $(\"body\").append(replaceHtml(filtermenuHTML(), { \"menuid\": \"filter\" }));\r\n $(\"body\").append(replaceHtml(filtersubmenuHTML(), { \"menuid\": \"filter\" }));\r\n $(\"body\").append(sheetconfigHTML());\r\n\r\n $(\"#luckysheet-rows-h\").width((Store.rowHeaderWidth-1.5));\r\n $(\"#luckysheet-cols-h-c\").height((Store.columnHeaderHeight-1.5));\r\n $(\"#luckysheet-left-top\").css({width:Store.rowHeaderWidth-1.5, height:Store.columnHeaderHeight-1.5});\r\n\r\n // //\u6279\u6CE8\r\n // luckysheetPostil.buildAllPs(Store.flowdata);\r\n\r\n $(\"#luckysheet_info_detail_input\").val(luckysheetConfigsetting.title);\r\n}", "/**\r\n * \u751F\u6210\u968F\u673A\u56FE\u8868id\r\n */\r\nfunction generateRandomKey(prefix) {\r\n if (prefix == null) {\r\n prefix = 'chart'\r\n }\r\n\r\n var userAgent = window.navigator.userAgent\r\n .replace(/[^a-zA-Z0-9]/g, '')\r\n .split('')\r\n var mid = ''\r\n for (var i = 0; i < 12; i++) {\r\n mid += userAgent[Math.round(Math.random() * (userAgent.length - 1))]\r\n }\r\n var time = new Date().getTime()\r\n\r\n return prefix + '_' + mid + '_' + time\r\n}\r\n/**\r\n * \u6DF1\u5EA6\u514B\u9686\u6570\u636E,\u5305\u62EC\u5BF9\u8C61\uFF0C\u6570\u7EC4\uFF0Cmap\r\n * @param {*} obj \u5BF9\u8C61\uFF0C\u6570\u7EC4\uFF0Cmap\r\n */\r\nfunction deepCopy(obj) {\r\n if (!isObject(obj) && !isMap(obj)) {\r\n return obj;\r\n }\r\n\r\n let cloneObj;\r\n if (isMap(obj)) {\r\n cloneObj = new Map();\r\n for (let key of obj.keys()) {\r\n let value = obj.get(key);\r\n if (isMap(value) || isObject(value) || Array.isArray(obj)) {\r\n let copyVal = deepCopy(value);\r\n cloneObj.set(key, copyVal);\r\n } else {\r\n cloneObj.set(key, value);\r\n }\r\n }\r\n } else if (typeof obj === \"function\") {\r\n cloneObj = obj\r\n } else {\r\n cloneObj = Array.isArray(obj) ? [] : {};\r\n if (obj instanceof HTMLElement) {\r\n cloneObj = obj.cloneNode(true)\r\n } else {\r\n for (let key in obj) {\r\n // if (obj.hasOwnProperty(key)) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n cloneObj[key] =\r\n isMap(obj[key]) || isObject(obj[key])\r\n ? deepCopy(obj[key])\r\n : obj[key];\r\n }\r\n }\r\n\r\n }\r\n }\r\n return cloneObj;\r\n}\r\n\r\n/**\r\n * \u5224\u65AD\u53C2\u6570\u662F\u5426\u662FObject\u7C7B\u578B\r\n * @param {*} o \r\n */\r\nfunction isObject(o) {\r\n return (\r\n !isMap(o) &&\r\n (typeof o === 'object' || typeof o === 'function') &&\r\n o !== null\r\n );\r\n}\r\n\r\n/**\r\n * \u5224\u65AD\u53C2\u6570\u662F\u5426\u662FMap\u7C7B\u578B\r\n * @param {*} obj \r\n */\r\nfunction isMap(obj) {\r\n if (obj instanceof Map) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}\r\n\r\n// \u66FF\u6362temp\u4E2D\u7684${xxx}\u4E3A\u6307\u5B9A\u5185\u5BB9 ,temp:\u5B57\u7B26\u4E32\uFF0C\u8FD9\u91CC\u6307html\u4EE3\u7801\uFF0Cdataarry\uFF1A\u4E00\u4E2A\u5BF9\u8C61{\"xxx\":\"\u66FF\u6362\u7684\u5185\u5BB9\"}\r\n// \u4F8B\uFF1Aluckysheet.replaceHtml(\"${image}\",{\"image\":\"abc\",\"jskdjslf\":\"abc\"}) ==> abc\r\nfunction replaceHtml(temp, dataarry) {\r\n return temp.replace(/\\$\\{([\\w]+)\\}/g, function (s1, s2) { var s = dataarry[s2]; if (typeof (s) != \"undefined\") { return s; } else { return s1; } });\r\n}\r\n\r\nfunction hasChinaword(s) {\r\n var patrn = /[\\u4E00-\\u9FA5]|[\\uFE30-\\uFFA0]/gi;\r\n if (!patrn.exec(s)) {\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n}\r\n\r\nexport {\r\n isMap,\r\n isObject,\r\n deepCopy,\r\n generateRandomKey,\r\n replaceHtml\r\n}", "import { getObjType } from '../utils/util';\r\nimport { isRealNum, isRealNull, valueIsError } from './validate';\r\nimport { update } from './format';\r\nimport formula from './formula';\r\nimport dayjs from \"dayjs\";\r\n\r\nconst error = {\r\n v: \"#VALUE!\", //\u9519\u8BEF\u7684\u53C2\u6570\u6216\u8FD0\u7B97\u7B26\r\n n: \"#NAME?\", //\u516C\u5F0F\u540D\u79F0\u9519\u8BEF\r\n na: \"#N/A\", //\u51FD\u6570\u6216\u516C\u5F0F\u4E2D\u6CA1\u6709\u53EF\u7528\u6570\u503C\r\n r: \"#REF!\", //\u5220\u9664\u4E86\u7531\u5176\u4ED6\u516C\u5F0F\u5F15\u7528\u7684\u5355\u5143\u683C\r\n d: \"#DIV/0!\", //\u9664\u6570\u662F0\u6216\u7A7A\u5355\u5143\u683C\r\n nm: \"#NUM!\", //\u5F53\u516C\u5F0F\u6216\u51FD\u6570\u4E2D\u67D0\u4E2A\u6570\u5B57\u6709\u95EE\u9898\u65F6\r\n nl: \"#NULL!\", //\u4EA4\u53C9\u8FD0\u7B97\u7B26\uFF08\u7A7A\u683C\uFF09\u4F7F\u7528\u4E0D\u6B63\u786E\r\n sp: \"#SPILL!\" //\u6570\u7EC4\u8303\u56F4\u6709\u5176\u5B83\u503C\r\n}\r\n\r\nconst func_methods = {\r\n //\u5355\u5143\u683C\u6570\u636E\u751F\u6210\u4E00\u7EF4\u6570\u7EC4\r\n getCellDataArr: function(rangeObj, nullCellType, isNeglectNullCell){\r\n let dataArr = [];\r\n\r\n if(rangeObj.data == null){\r\n if(!isNeglectNullCell){\r\n if(nullCellType === \"number\"){\r\n dataArr.push(0);\r\n }\r\n else if(nullCellType === \"text\"){\r\n dataArr.push(\"\");\r\n }\r\n }\r\n }\r\n else{\r\n if(getObjType(rangeObj.data) === \"array\"){\r\n for(let i = 0; i < rangeObj.data.length; i++){\r\n for(let j = 0; j < rangeObj.data[i].length; j++){\r\n let cell = rangeObj.data[i][j];\r\n let value = cell\r\n\r\n if(getObjType(cell) === 'object'){\r\n value = cell.v\r\n }\r\n\r\n if(value == null ){\r\n if(!isNeglectNullCell){\r\n if(nullCellType === \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType === \"text\"){\r\n value = '';\r\n }\r\n\r\n dataArr.push(value);\r\n }\r\n }\r\n else{\r\n dataArr.push(value);\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n if(isRealNull(rangeObj.data.v)){\r\n if(!isNeglectNullCell){\r\n if(nullCellType == \"number\"){\r\n dataArr.push(0);\r\n }\r\n else if(nullCellType == \"text\"){\r\n dataArr.push(\"\");\r\n }\r\n }\r\n }\r\n else{\r\n dataArr.push(rangeObj.data.v);\r\n }\r\n }\r\n }\r\n\r\n return dataArr;\r\n },\r\n //\u5355\u5143\u683C\u6570\u636E\u751F\u6210\u4E8C\u7EF4\u6570\u7EC4\r\n getCellDataDyadicArr: function(rangeObj, nullCellType){\r\n let dataArr = [];\r\n\r\n if(rangeObj.data == null){\r\n let rowArr = [];\r\n\r\n if(nullCellType == \"number\"){\r\n rowArr.push(0);\r\n }\r\n else if(nullCellType == \"text\"){\r\n rowArr.push(\"\");\r\n }\r\n\r\n dataArr.push(rowArr);\r\n }\r\n else{\r\n if(getObjType(rangeObj.data) == \"array\"){\r\n for(let i = 0; i < rangeObj.data.length; i++){\r\n let rowArr = [];\r\n\r\n for(let j = 0; j < rangeObj.data[i].length; j++){\r\n let cell = rangeObj.data[i][j];\r\n let value = cell;\r\n\r\n if(getObjType(cell) === 'object'){\r\n value = cell.v\r\n }\r\n\r\n if(value == null){\r\n if(nullCellType === \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType === \"text\"){\r\n value = '';\r\n }\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n dataArr.push(rowArr);\r\n }\r\n }\r\n else{\r\n let rowArr = [];\r\n\r\n let value = rangeObj.data.v;\r\n\r\n if(isRealNull(value)){\r\n if(nullCellType == \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType == \"text\"){\r\n value = \"\";\r\n }\r\n }\r\n\r\n rowArr.push(value);\r\n\r\n dataArr.push(rowArr);\r\n }\r\n }\r\n\r\n return dataArr;\r\n },\r\n //\u6570\u7EC4\u6570\u636E\u751F\u6210\u4E00\u7EF4\u6570\u7EC4\r\n getDataArr: function(arr, isNeglectNaN){\r\n let dataArr = [];\r\n\r\n if(isNeglectNaN == null){\r\n isNeglectNaN = false;\r\n }\r\n\r\n if(getObjType(arr[0]) == \"array\"){\r\n for(let i = 0; i < arr.length; i++){\r\n for(let j = 0; j < arr[i].length; j++){\r\n if(isNeglectNaN && !isRealNum(arr[i][j])){\r\n continue;\r\n }\r\n\r\n dataArr.push(arr[i][j]);\r\n }\r\n }\r\n }\r\n else{\r\n for(let i = 0; i < arr.length; i++){\r\n if(isNeglectNaN && !isRealNum(arr[i])){\r\n continue;\r\n }\r\n\r\n dataArr.push(arr[i]);\r\n }\r\n }\r\n\r\n return dataArr;\r\n },\r\n getDataDyadicArr: function(arr){\r\n let dataArr = [];\r\n\r\n if(getObjType(arr[0]) == \"array\"){\r\n for(let i = 0; i < arr.length; i++){\r\n let rowArr = [];\r\n\r\n for(let j = 0; j < arr[i].length; j++){\r\n rowArr.push(arr[i][j]);\r\n }\r\n\r\n dataArr.push(rowArr);\r\n }\r\n }\r\n else{\r\n let rowArr = [];\r\n\r\n for(let i = 0; i < arr.length; i++){\r\n rowArr.push(arr[i]);\r\n }\r\n\r\n dataArr.push(rowArr);\r\n }\r\n\r\n return dataArr;\r\n },\r\n //\u662F\u5426\u662F\u89C4\u5219\u4E8C\u7EF4\u6570\u7EC4\r\n isDyadicArr: function(arr){\r\n let isDyadic = true;\r\n\r\n if(arr.length > 1){\r\n let collen = arr[0].length;\r\n\r\n for(let i = 1; i < arr.length; i++){\r\n if(arr[i].length != collen){\r\n isDyadic = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return isDyadic;\r\n },\r\n //\u83B7\u53D6\u5355\u4E2A\u5355\u5143\u683C\u6570\u636E\uFF0C\u6570\u7EC4\u7B2C\u4E00\u4E2A\u503C\r\n getFirstValue: function(data, nullCellType){\r\n let _this = this;\r\n\r\n if(nullCellType == null){\r\n nullCellType = \"number\";\r\n }\r\n\r\n let value;\r\n\r\n if(getObjType(data) == \"array\"){\r\n if(getObjType(data[0]) == \"array\"){\r\n if(!_this.isDyadicArr(data)){\r\n return error.v;\r\n }\r\n\r\n value = data[0][0];\r\n }\r\n else{\r\n value = data[0];\r\n }\r\n }\r\n else if(getObjType(data) == \"object\" && data.startCell != null){\r\n if(data.data == null){\r\n if(nullCellType == \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType == \"text\"){\r\n value = \"\";\r\n }\r\n }\r\n else{\r\n let cell_r = window.luckysheetCurrentRow;\r\n let cell_c = window.luckysheetCurrentColumn;\r\n\r\n if(data.rowl == 1 && data.coll == 1){\r\n value = data.data;\r\n\r\n if(value == null || isRealNull(value.v)){\r\n if(nullCellType == \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType == \"text\"){\r\n value = \"\";\r\n }\r\n }\r\n else{\r\n value = value.v;\r\n }\r\n }\r\n else{\r\n if(data.data[0][0].mc != null && data.data[0][0].mc.rs == data.rowl && data.data[0][0].mc.cs == data.coll){\r\n value = data.data[0][0];\r\n\r\n if(value == null || isRealNull(value.v)){\r\n if(nullCellType == \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType == \"text\"){\r\n value = \"\";\r\n }\r\n }\r\n else{\r\n value = value.v;\r\n }\r\n }\r\n else if(data.rowl == 1 || data.coll == 1){\r\n let cellrange = formula.getcellrange(data.startCell);\r\n let str = cellrange.row[0],\r\n edr = str + data.rowl - 1,\r\n stc = cellrange.column[0],\r\n edc = stc + data.coll - 1;\r\n\r\n if(data.rowl == 1){\r\n if(cell_c < stc || cell_c > edc){\r\n return error.v;\r\n }\r\n\r\n value = data.data[0][cell_c - stc];\r\n }\r\n else if(data.coll == 1){\r\n if(cell_r < str || cell_r > edr){\r\n return error.v;\r\n }\r\n\r\n value = data.data[cell_r - str][0];\r\n }\r\n\r\n if(value == null || isRealNull(value.v) || value.mc != null){\r\n if(nullCellType == \"number\"){\r\n value = 0;\r\n }\r\n else if(nullCellType == \"text\"){\r\n value = \"\";\r\n }\r\n }\r\n else{\r\n value = value.v;\r\n }\r\n }\r\n else{\r\n return error.v;\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n value = data;\r\n }\r\n\r\n return value;\r\n },\r\n //\u83B7\u53D6\u5355\u5143\u683C\u7684\u903B\u8F91\u503C\r\n getCellBoolen: function(data){\r\n let _this = this;\r\n\r\n let cumulative = _this.getFirstValue(data);\r\n\r\n if(valueIsError(cumulative)){\r\n return cumulative;\r\n }\r\n\r\n if(getObjType(cumulative) == \"boolean\"){\r\n\r\n }\r\n else if(getObjType(cumulative) == \"string\" && (cumulative.toLowerCase() == \"true\" || cumulative.toLowerCase() == \"false\")){\r\n if(cumulative.toLowerCase() == \"true\"){\r\n cumulative = true;\r\n }\r\n else if(cumulative.toLowerCase() == \"false\"){\r\n cumulative = false;\r\n }\r\n }\r\n else if(isRealNum(cumulative)){\r\n cumulative = parseFloat(cumulative);\r\n\r\n cumulative = cumulative == 0 ? false : true;\r\n }\r\n else{\r\n return error.v;\r\n }\r\n\r\n return cumulative;\r\n },\r\n //\u83B7\u53D6\u5355\u5143\u683C\u7684\u65E5\u671F\r\n getCellDate: function(data){\r\n let _this = this;\r\n\r\n let date_text;\r\n\r\n if(getObjType(data) == \"array\"){\r\n if(getObjType(data[0]) == \"array\"){\r\n if(!_this.isDyadicArr(data)){\r\n return error.v;\r\n }\r\n\r\n date_text = data[0][0];\r\n }\r\n else{\r\n date_text = data[0];\r\n }\r\n }\r\n else if(getObjType(data) == \"object\" && data.startCell != null){\r\n if(data.data == null || getObjType(data.data) == \"array\" || isRealNull(data.data.v)){\r\n return error.v;\r\n }\r\n\r\n date_text = data.data.v;\r\n\r\n if(data.data.ct != null && data.data.ct.t == \"d\"){\r\n date_text = update(\"YYYY-MM-DD h:mm:ss\", date_text);\r\n }\r\n }\r\n else{\r\n date_text = data;\r\n }\r\n\r\n return date_text;\r\n },\r\n getCellrangeDate: function(data){\r\n let _this = this;\r\n\r\n let date = [];\r\n\r\n if(getObjType(data) == \"array\"){\r\n if(getObjType(data[0]) == \"array\" && !_this.isDyadicArr(data)){\r\n return error.v;\r\n }\r\n\r\n date = date.concat(_this.getDataArr(data, false));\r\n }\r\n else if(getObjType(data) == \"object\" && data.startCell != null){\r\n if(data.data == null){\r\n date.push(0);\r\n }\r\n else{\r\n if(getObjType(data.data) == \"array\"){\r\n for(let i = 0; i < data.data.length; i++){\r\n for(let j = 0; j < data.data[i].length; j++){\r\n if(data.data[i][j] != null && !isRealNull(data.data[i][j].v)){\r\n let value = data.data[i][j].v;\r\n\r\n if(data.data[i][j].ct != null && data.data[i][j].ct.t == \"d\"){\r\n value = update(\"YYYY-MM-DD h:mm:ss\", value);\r\n }\r\n\r\n date.push(value);\r\n }\r\n else{\r\n date.push(0);\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n let value = data.data.v;\r\n\r\n if(data.data.ct != null && data.data.ct.t == \"d\"){\r\n value = update(\"YYYY-MM-DD h:mm:ss\", value);\r\n }\r\n\r\n date.push(value);\r\n }\r\n }\r\n }\r\n else{\r\n date.push(data);\r\n }\r\n\r\n return date;\r\n },\r\n //\u83B7\u53D6\u6B63\u5219\u5B57\u7B26\u4E32\uFF08\u5904\u7406 . * ? ~* ~?\uFF09\r\n getRegExpStr: function(str){\r\n return str.replace(\"~*\", \"\\\\*\").replace(\"~?\", \"\\\\?\").replace(\".\", \"\\\\.\").replace(\"*\", \".*\").replace(\"?\", \".\");\r\n },\r\n //\u9636\u4E58\r\n factorial: function(num){\r\n if (num == 0 || num == 1) {\r\n return 1;\r\n }\r\n else {\r\n return (num * this.factorial(num - 1));\r\n }\r\n },\r\n //\u53CC\u9636\u4E58\r\n factorialDouble: function(num){\r\n if (num <= 0) {\r\n return 1;\r\n }\r\n else {\r\n return (num * this.factorialDouble(num - 2));\r\n }\r\n },\r\n //\u603B\u4F53\u65B9\u5DEE\r\n variance: function(num_arr){\r\n let sum = 0, count = 0;\r\n\r\n for(let i = 0; i < num_arr.length; i++){\r\n let number = num_arr[i];\r\n\r\n sum += number;\r\n count++;\r\n }\r\n\r\n let avg = sum / count;\r\n\r\n let sum_variance = 0;\r\n\r\n for(let j = 0; j < num_arr.length; j++){\r\n let number = num_arr[j];\r\n\r\n sum_variance += (number - avg) * (number - avg);\r\n }\r\n\r\n return sum_variance / count;\r\n },\r\n //\u6837\u672C\u65B9\u5DEE\r\n variance_s: function(num_arr){\r\n let sum = 0, count = 0;\r\n\r\n for(let i = 0; i < num_arr.length; i++){\r\n let number = num_arr[i];\r\n\r\n sum += number;\r\n count++;\r\n }\r\n\r\n let avg = sum / count;\r\n\r\n let sum_variance = 0;\r\n\r\n for(let j = 0; j < num_arr.length; j++){\r\n let number = num_arr[j];\r\n\r\n sum_variance += (number - avg) * (number - avg);\r\n }\r\n\r\n return sum_variance / (count - 1);\r\n },\r\n //\u603B\u4F53\u6807\u51C6\u504F\u5DEE\r\n standardDeviation: function(num_arr){\r\n let sum = 0, count = 0;\r\n\r\n for(let i = 0; i < num_arr.length; i++){\r\n let number = num_arr[i];\r\n\r\n sum += number;\r\n count++;\r\n }\r\n\r\n let avg = sum / count;\r\n\r\n let sum_variance = 0;\r\n\r\n for(let j = 0; j < num_arr.length; j++){\r\n let number = num_arr[j];\r\n\r\n sum_variance += (number - avg) * (number - avg);\r\n }\r\n\r\n return Math.sqrt(sum_variance / count);\r\n },\r\n //\u6837\u672C\u6807\u51C6\u504F\u5DEE\r\n standardDeviation_s: function(num_arr){\r\n let sum = 0, count = 0;\r\n\r\n for(let i = 0; i < num_arr.length; i++){\r\n let number = num_arr[i];\r\n\r\n sum += number;\r\n count++;\r\n }\r\n\r\n let avg = sum / count;\r\n\r\n let sum_variance = 0;\r\n\r\n for(let j = 0; j < num_arr.length; j++){\r\n let number = num_arr[j];\r\n\r\n sum_variance += (number - avg) * (number - avg);\r\n }\r\n\r\n return Math.sqrt(sum_variance / (count - 1));\r\n },\r\n //\u662F\u5426\u662F\u95F0\u5E74\r\n isLeapYear: function(year){\r\n return new Date(year, 1, 29).getMonth() === 1;\r\n },\r\n //2\u6708\u662F\u5426\u670929\r\n feb29Between: function(date1, date2){\r\n let _this = this;\r\n\r\n let year1 = dayjs(date1).year();\r\n let mar1year1 = dayjs().set({ 'year': year1, 'month': 2, 'date': 1 });\r\n\r\n if (_this.isLeapYear(year1) && dayjs(date1) < dayjs(mar1year1) && dayjs(date2) >= dayjs(mar1year1)) {\r\n return true;\r\n }\r\n\r\n let year2 = dayjs(date2).year();\r\n let mar1year2 = dayjs().set({ 'year': year2, 'month': 2, 'date': 1 });\r\n\r\n return (_this.isLeapYear(year2) && dayjs(date2) >= dayjs(mar1year2) && dayjs(date1) < dayjs(mar1year2));\r\n },\r\n //SQL \u67E5\u8BE2\r\n findResultIndex: function(database, criterias){\r\n let matches = {};\r\n\r\n for (let i = 1; i < database[0].length; ++i) {\r\n matches[i] = true;\r\n }\r\n\r\n let maxCriteriaLength = criterias[0].length;\r\n\r\n for (i = 1; i < criterias.length; ++i) {\r\n if (criterias[i].length > maxCriteriaLength) {\r\n maxCriteriaLength = criterias[i].length;\r\n }\r\n }\r\n\r\n for (let k = 1; k < database.length; ++k) {\r\n for (let l = 1; l < database[k].length; ++l) {\r\n let currentCriteriaResult = false;\r\n let hasMatchingCriteria = false;\r\n\r\n for (let j = 0; j < criterias.length; ++j) {\r\n let criteria = criterias[j];\r\n\r\n if (criteria.length < maxCriteriaLength) {\r\n continue;\r\n }\r\n\r\n let criteriaField = criteria[0];\r\n\r\n if (database[k][0] !== criteriaField) {\r\n continue;\r\n }\r\n\r\n hasMatchingCriteria = true;\r\n\r\n for (let p = 1; p < criteria.length; ++p) {\r\n currentCriteriaResult = currentCriteriaResult || (new Function(\"return \" + database[k][l] + criteria[p])()); // jshint ignore:line\r\n }\r\n }\r\n\r\n if (hasMatchingCriteria) {\r\n matches[l] = matches[l] && currentCriteriaResult;\r\n }\r\n }\r\n }\r\n\r\n let result = [];\r\n\r\n for (let n = 0; n < database[0].length; ++n) {\r\n if (matches[n]) {\r\n result.push(n - 1);\r\n }\r\n }\r\n\r\n return result;\r\n },\r\n findField: function(database, title){\r\n let index = null;\r\n\r\n for (let i = 0; i < database.length; i++) {\r\n if (database[i][0] == title) {\r\n index = i;\r\n break;\r\n }\r\n }\r\n\r\n if (index == null) {\r\n return error.v;\r\n }\r\n\r\n return index;\r\n },\r\n rest: function(array, idx){\r\n idx = idx || 1;\r\n\r\n if (!array || typeof array.slice !== 'function') {\r\n return array;\r\n }\r\n\r\n return array.slice(idx);\r\n },\r\n compact: function(array){\r\n if (!array) {\r\n return array;\r\n }\r\n\r\n let result = [];\r\n\r\n for (let i = 0; i < array.length; ++i) {\r\n if (!array[i]) {\r\n continue;\r\n }\r\n\r\n result.push(array[i]);\r\n }\r\n\r\n return result;\r\n }\r\n}\r\n\r\nexport default func_methods;\r\n", "var matrix = ({});\r\n\r\nvar init = function init(matrix){\r\n var sylvester_matrix = function() {};\r\n\r\n sylvester_matrix.precision = 1e-6;\r\n\r\n sylvester_matrix.create = function(elements) {\r\n var M = new sylvester_matrix();\r\n return M.setElements(elements);\r\n };\r\n var $M = sylvester_matrix.create;\r\n \r\n sylvester_matrix.I = function(n) {\r\n var els = [], i = n, j;\r\n while (i--) { j = n;\r\n els[i] = [];\r\n while (j--) {\r\n els[i][j] = (i === j) ? 1 : 0;\r\n }\r\n }\r\n return sylvester_matrix.create(els);\r\n };\r\n\r\n sylvester_matrix.prototype = {\r\n e: function(i,j) {\r\n if (i < 1 || i > this.elements.length || j < 1 || j > this.elements[0].length) { return null; }\r\n return this.elements[i-1][j-1];\r\n },\r\n dimensions: function() {\r\n var cols = (this.elements.length === 0) ? 0 : this.elements[0].length;\r\n return {rows: this.elements.length, cols: cols};\r\n },\r\n rows: function() {\r\n return this.elements.length;\r\n },\r\n cols: function() {\r\n if (this.elements.length === 0) { return 0; }\r\n return this.elements[0].length;\r\n },\r\n eql: function(matrix) {\r\n var M = matrix.elements || matrix;\r\n if (!M[0] || typeof(M[0][0]) === 'undefined') { M = sylvester_matrix.create(M).elements; }\r\n if (this.elements.length === 0 || M.length === 0) {\r\n return this.elements.length === M.length;\r\n }\r\n if (this.elements.length !== M.length) { return false; }\r\n if (this.elements[0].length !== M[0].length) { return false; }\r\n var i = this.elements.length, nj = this.elements[0].length, j;\r\n while (i--) { j = nj;\r\n while (j--) {\r\n if (Math.abs(this.elements[i][j] - M[i][j]) > sylvester_matrix.precision) { return false; }\r\n }\r\n }\r\n return true;\r\n },\r\n dup: function() {\r\n return sylvester_matrix.create(this.elements);\r\n },\r\n map: function(fn, context) {\r\n if (this.elements.length === 0) { \r\n return sylvester_matrix.create([]); \r\n }\r\n var els = [], i = this.elements.length, nj = this.elements[0].length, j;\r\n while (i--) { \r\n j = nj;\r\n els[i] = [];\r\n while (j--) {\r\n els[i][j] = fn.call(context, this.elements[i][j], i + 1, j + 1);\r\n }\r\n }\r\n return sylvester_matrix.create(els);\r\n },\r\n isSameSizeAs: function(matrix) {\r\n var M = matrix.elements || matrix;\r\n if (typeof(M[0][0]) === 'undefined') { \r\n M = sylvester_matrix.create(M).elements; \r\n }\r\n if (this.elements.length === 0) { \r\n return M.length === 0; \r\n }\r\n return (this.elements.length === M.length && this.elements[0].length === M[0].length);\r\n },\r\n add: function(matrix) {\r\n if (this.elements.length === 0) return this.map(function(x) { return x });\r\n var M = matrix.elements || matrix;\r\n if (typeof(M[0][0]) === 'undefined') { M = sylvester_matrix.create(M).elements; }\r\n if (!this.isSameSizeAs(M)) { return null; }\r\n return this.map(function(x, i, j) { return x + M[i-1][j-1]; });\r\n },\r\n subtract: function(matrix) {\r\n if (this.elements.length === 0) return this.map(function(x) { return x });\r\n var M = matrix.elements || matrix;\r\n if (typeof(M[0][0]) === 'undefined') { M = sylvester_matrix.create(M).elements; }\r\n if (!this.isSameSizeAs(M)) { return null; }\r\n return this.map(function(x, i, j) { return x - M[i-1][j-1]; });\r\n },\r\n canMultiplyFromLeft: function(matrix) {\r\n if (this.elements.length === 0) { return false; }\r\n var M = matrix.elements || matrix;\r\n if (typeof(M[0][0]) === 'undefined') { M = sylvester_matrix.create(M).elements; }\r\n // this.columns should equal matrix.rows\r\n return (this.elements[0].length === M.length);\r\n },\r\n multiply: function(matrix) {\r\n if (this.elements.length === 0) { return null; }\r\n if (!matrix.elements) {\r\n return this.map(function(x) { return x * matrix; });\r\n }\r\n var returnVector = matrix.modulus ? true : false;\r\n var M = matrix.elements || matrix;\r\n if (typeof(M[0][0]) === 'undefined') { M = sylvester_matrix.create(M).elements; }\r\n if (!this.canMultiplyFromLeft(M)) { return null; }\r\n var i = this.elements.length, nj = M[0].length, j;\r\n var cols = this.elements[0].length, c, elements = [], sum;\r\n while (i--) { j = nj;\r\n elements[i] = [];\r\n while (j--) { c = cols;\r\n sum = 0;\r\n while (c--) {\r\n sum += this.elements[i][c] * M[c][j];\r\n }\r\n elements[i][j] = sum;\r\n }\r\n }\r\n var M = sylvester_matrix.create(elements);\r\n return returnVector ? M.col(1) : M;\r\n },\r\n minor: function(a, b, c, d) {\r\n if (this.elements.length === 0) { return null; }\r\n var elements = [], ni = c, i, nj, j;\r\n var rows = this.elements.length, cols = this.elements[0].length;\r\n while (ni--) { i = c - ni - 1;\r\n elements[i] = [];\r\n nj = d;\r\n while (nj--) { j = d - nj - 1;\r\n elements[i][j] = this.elements[(a+i-1)%rows][(b+j-1)%cols];\r\n }\r\n }\r\n return sylvester_matrix.create(elements);\r\n },\r\n transpose: function() {\r\n if (this.elements.length === 0) return sylvester_matrix.create([]);\r\n var rows = this.elements.length, i, cols = this.elements[0].length, j;\r\n var elements = [], i = cols;\r\n while (i--) { j = rows;\r\n elements[i] = [];\r\n while (j--) {\r\n elements[i][j] = this.elements[j][i];\r\n }\r\n }\r\n return sylvester_matrix.create(elements);\r\n },\r\n isSquare: function() {\r\n var cols = (this.elements.length === 0) ? 0 : this.elements[0].length;\r\n return (this.elements.length === cols);\r\n },\r\n max: function() {\r\n if (this.elements.length === 0) { return null; }\r\n var m = 0, i = this.elements.length, nj = this.elements[0].length, j;\r\n while (i--) { j = nj;\r\n while (j--) {\r\n if (Math.abs(this.elements[i][j]) > Math.abs(m)) { m = this.elements[i][j]; }\r\n }\r\n }\r\n return m;\r\n },\r\n indexOf: function(x) {\r\n if (this.elements.length === 0) { return null; }\r\n var index = null, ni = this.elements.length, i, nj = this.elements[0].length, j;\r\n for (i = 0; i < ni; i++) {\r\n for (j = 0; j < nj; j++) {\r\n if (this.elements[i][j] === x) { return {i: i+1, j: j+1}; }\r\n }\r\n }\r\n return null;\r\n },\r\n diagonal: function() {\r\n if (!this.isSquare) { return null; }\r\n var els = [], n = this.elements.length;\r\n for (var i = 0; i < n; i++) {\r\n els.push(this.elements[i][i]);\r\n }\r\n return sylvester_matrix.create(els);\r\n },\r\n toRightTriangular: function() {\r\n if (this.elements.length === 0) return sylvester_matrix.create([]);\r\n var M = this.dup(), els;\r\n var n = this.elements.length, i, j, np = this.elements[0].length, p;\r\n for (i = 0; i < n; i++) {\r\n if (M.elements[i][i] === 0) {\r\n for (j = i + 1; j < n; j++) {\r\n if (M.elements[j][i] !== 0) {\r\n els = [];\r\n for (p = 0; p < np; p++) { \r\n els.push(M.elements[i][p] + M.elements[j][p]); \r\n }\r\n M.elements[i] = els;\r\n break;\r\n }\r\n }\r\n }\r\n if (M.elements[i][i] !== 0) {\r\n for (j = i + 1; j < n; j++) {\r\n var multiplier = M.elements[j][i] / M.elements[i][i];\r\n els = [];\r\n for (p = 0; p < np; p++) {\r\n // Elements with column numbers up to an including the number of the\r\n // row that we're subtracting can safely be set straight to zero,\r\n // since that's the point of this routine and it avoids having to\r\n // loop over and correct rounding errors later\r\n els.push(p <= i ? 0 : M.elements[j][p] - M.elements[i][p] * multiplier);\r\n }\r\n M.elements[j] = els;\r\n }\r\n }\r\n }\r\n return M;\r\n },\r\n determinant: function() {\r\n if (this.elements.length === 0) { return 1; }\r\n if (!this.isSquare()) { return null; }\r\n var M = this.toRightTriangular();\r\n var det = M.elements[0][0], n = M.elements.length;\r\n for (var i = 1; i < n; i++) {\r\n det = det * M.elements[i][i];\r\n }\r\n return det;\r\n },\r\n isSingular: function() {\r\n return (this.isSquare() && this.determinant() === 0);\r\n },\r\n trace: function() {\r\n if (this.elements.length === 0) { return 0; }\r\n if (!this.isSquare()) { return null; }\r\n var tr = this.elements[0][0], n = this.elements.length;\r\n for (var i = 1; i < n; i++) {\r\n tr += this.elements[i][i];\r\n }\r\n return tr;\r\n },\r\n rank: function() {\r\n if (this.elements.length === 0) { return 0; }\r\n var M = this.toRightTriangular(), rank = 0;\r\n var i = this.elements.length, nj = this.elements[0].length, j;\r\n while (i--) { j = nj;\r\n while (j--) {\r\n if (Math.abs(M.elements[i][j]) > sylvester_matrix.precision) { rank++; break; }\r\n }\r\n }\r\n return rank;\r\n },\r\n augment: function(matrix) {\r\n if (this.elements.length === 0) { return this.dup(); }\r\n var M = matrix.elements || matrix;\r\n if (typeof(M[0][0]) === 'undefined') { M = sylvester_matrix.create(M).elements; }\r\n var T = this.dup(), cols = T.elements[0].length;\r\n var i = T.elements.length, nj = M[0].length, j;\r\n if (i !== M.length) { return null; }\r\n while (i--) { \r\n j = nj;\r\n while (j--) {\r\n T.elements[i][cols + j] = M[i][j];\r\n }\r\n }\r\n return T;\r\n },\r\n inverse: function() {\r\n if (this.elements.length === 0) { return null; }\r\n if (!this.isSquare() || this.isSingular()) { return null; }\r\n var n = this.elements.length, i= n, j;\r\n var M = this.augment(sylvester_matrix.I(n)).toRightTriangular();\r\n var np = M.elements[0].length, p, els, divisor;\r\n var inverse_elements = [], new_element;\r\n // Sylvester.Matrix is non-singular so there will be no zeros on the\r\n // diagonal. Cycle through rows from last to first.\r\n while (i--) {\r\n // First, normalise diagonal elements to 1\r\n els = [];\r\n inverse_elements[i] = [];\r\n divisor = M.elements[i][i];\r\n for (p = 0; p < np; p++) {\r\n new_element = M.elements[i][p] / divisor;\r\n els.push(new_element);\r\n // Shuffle off the current row of the right hand side into the results\r\n // array as it will not be modified by later runs through this loop\r\n if (p >= n) { inverse_elements[i].push(new_element); }\r\n }\r\n M.elements[i] = els;\r\n // Then, subtract this row from those above it to give the identity matrix\r\n // on the left hand side\r\n j = i;\r\n while (j--) {\r\n els = [];\r\n for (p = 0; p < np; p++) {\r\n els.push(M.elements[j][p] - M.elements[i][p] * M.elements[j][i]);\r\n }\r\n M.elements[j] = els;\r\n }\r\n }\r\n return sylvester_matrix.create(inverse_elements);\r\n },\r\n round: function() {\r\n return this.map(function(x) { return Math.round(x); });\r\n },\r\n snapTo: function(x) {\r\n return this.map(function(p) {\r\n return (Math.abs(p - x) <= sylvester_matrix.precision) ? x : p;\r\n });\r\n },\r\n setElements: function(els) {\r\n var i, j, elements = els.elements || els;\r\n if (elements[0] && typeof(elements[0][0]) !== 'undefined') {\r\n i = elements.length;\r\n this.elements = [];\r\n while (i--) { j = elements[i].length;\r\n this.elements[i] = [];\r\n while (j--) {\r\n this.elements[i][j] = elements[i][j];\r\n }\r\n }\r\n return this;\r\n }\r\n var n = elements.length;\r\n this.elements = [];\r\n for (i = 0; i < n; i++) {\r\n this.elements.push([elements[i]]);\r\n }\r\n return this;\r\n }\r\n };\r\n\r\n matrix.sylvester_matrix = sylvester_matrix;\r\n}\r\ninit(matrix);\r\n\r\nexport function inverse(els){\r\n var M = matrix.sylvester_matrix.create(els);\r\n return M.inverse().elements;\r\n}", "import func_methods from '../global/func_methods';\r\nimport formula from '../global/formula';\r\nimport tooltip from '../global/tooltip';\r\nimport { isRealNum, valueIsError,error } from '../global/validate';\r\nimport { getdatabyselectionD } from '../global/getdata';\r\nimport { genarate } from '../global/format';\r\nimport { inverse } from '../function/matrix_methods';\r\nimport { getSheetIndex, getluckysheetfile, getRangetxt } from '../methods/get';\r\nimport { getObjType, ABCatNum } from '../utils/util';\r\nimport Store from '../store';\r\nimport numeral from 'numeral';\r\n\r\n//\u51FD\u6570\u529F\u80FD\uFF1A\u6BD4\u8F83\u6216\u8FD0\u7B97\r\nfunction luckysheet_compareWith() {\r\n //\u7B2C\u4E00\u4E2A\u53C2\u6570\u548C\u7B2C\u4E09\u4E2A\u53C2\u6570\uFF0C\u8FD4\u56DE\u6BD4\u8F83\u7ED3\u679C\u7684\u5E03\u5C14\u503C\u6216\u8005\u8FD0\u7B97\u503C\r\n //formula.operatorjson; \u5B58\u50A8\u8FD0\u7B97\u7B26\u548C\u6BD4\u8F83\u7B26\r\n let sp = arguments[1]; //\u64CD\u4F5C\u7B26\r\n\r\n //\u53C2\u6570\u4E00\r\n let data_fp = arguments[0];\r\n let fp;\r\n if(getObjType(data_fp) == \"object\" && data_fp.startCell != null){ //\u53C2\u6570\u662F\u9009\u533A\r\n if(sp == \"&\"){\r\n fp = func_methods.getCellDataDyadicArr(data_fp, \"text\");\r\n }\r\n else{\r\n fp = func_methods.getCellDataDyadicArr(data_fp, \"number\");\r\n }\r\n\r\n if(fp.length == 1 && fp[0].length == 1){\r\n fp = fp[0][0];\r\n }\r\n }\r\n else{\r\n fp = data_fp;\r\n }\r\n\r\n //\u53C2\u6570\u4E8C\r\n let data_tp = arguments[2];\r\n let tp;\r\n if(getObjType(data_tp) == \"object\" && data_tp.startCell != null){ //\u53C2\u6570\u662F\u9009\u533A\r\n if(sp == \"&\"){\r\n tp = func_methods.getCellDataDyadicArr(data_tp, \"text\");\r\n }\r\n else{\r\n tp = func_methods.getCellDataDyadicArr(data_tp, \"number\");\r\n }\r\n\r\n if(tp.length == 1 && tp[0].length == 1){\r\n tp = tp[0][0];\r\n }\r\n }\r\n else{\r\n tp = data_tp;\r\n }\r\n\r\n if(valueIsError(fp)){\r\n return fp;\r\n }\r\n\r\n if(valueIsError(tp)){\r\n return tp;\r\n }\r\n\r\n //\u53C2\u6570\u662F\u4E0D\u89C4\u5219\u4E8C\u7EF4\u6570\u7EC4 \u65F6 return #VALUE! \u9519\u8BEF\r\n if(getObjType(fp) == \"array\" && getObjType(fp[0]) == \"array\" && !func_methods.isDyadicArr(fp)){\r\n return error.v; \r\n }\r\n\r\n if(getObjType(tp) == \"array\" && getObjType(tp[0]) == \"array\" && !func_methods.isDyadicArr(tp)){\r\n return error.v; \r\n }\r\n\r\n if(sp == \"<>\"){\r\n sp = \"!=\";\r\n }\r\n\r\n if(sp == \"=\"){\r\n sp = \"==\";\r\n }\r\n\r\n if(fp==null && tp==null){\r\n return \"#INVERSE!\";\r\n }\r\n else if(fp==\"#INVERSE!\"){\r\n fp =0;\r\n if(sp==\"-\"){\r\n sp = \"+\";\r\n }\r\n else if(sp==\"+\"){\r\n sp = \"-\";\r\n }\r\n }\r\n else if(sp == \"-\" && fp == null){\r\n fp = 0;\r\n }\r\n else if(sp == \"/\" && (tp == 0 || tp == null)){\r\n return error.d;\r\n }\r\n\r\n //\u8BA1\u7B97result\r\n function booleanOperation(a, operator, b){\r\n if(isRealNum(a)){\r\n a = parseFloat(a);\r\n }\r\n\r\n if(isRealNum(b)){\r\n b = parseFloat(b);\r\n }\r\n\r\n if(operator == \"==\"){\r\n if(a == b){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else if(operator == \"!=\"){\r\n if(a != b){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else if(operator == \">=\"){\r\n if(a >= b){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else if(operator == \"<=\"){\r\n if(a <= b){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else if(operator == \">\"){\r\n if(a > b){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else if(operator == \"<\"){\r\n if(a < b){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n //\u5E03\u5C14\u503C\u5BF9\u5E94\u6570\u5B57\uFF08true = 1, false = 1\uFF09\r\n function booleanToNum(v){\r\n if(v == null){\r\n return v;\r\n }\r\n\r\n if(v.toString().toLowerCase() == \"true\"){\r\n return 1;\r\n }\r\n\r\n if(v.toString().toLowerCase() == \"false\"){\r\n return 0;\r\n }\r\n\r\n return v;\r\n }\r\n \r\n if(sp == \"*\"){ //\u4E58\r\n if(getObjType(fp) == \"array\" && getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\" && getObjType(tp[0]) == \"array\"){\r\n //\u4E8C\u7EF4\u6570\u7EC4\u76F8\u4E58\uFF08m*n \u4E0E m*n \u7B49\u4E8E m*n\uFF1Bm*p \u4E0E p*n \u7B49\u4E8E m*n\uFF1B\u5176\u5B83\u9519\u8BEF\uFF09 \r\n if(fp.length == tp.length && fp[0].length == tp[0].length){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[m][n])){\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp[m][n]);//parseFloat(fp[m][n]) * parseFloat(tp[m][n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(fp[0].length == tp.length){\r\n let rowlen = fp.length;\r\n let collen = tp[0].length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n let value = 0;\r\n\r\n for(let p = 0; p < fp[0].length; p++){\r\n fp[m][p] = booleanToNum(fp[m][p]);\r\n tp[p][n] = booleanToNum(tp[p][n]);\r\n\r\n if(isRealNum(fp[m][p]) && isRealNum(tp[p][n])){\r\n value += luckysheet_calcADPMM(fp[m][p], sp, tp[p][n]);//parseFloat(fp[m][p]) * parseFloat(tp[p][n]);\r\n }\r\n else{\r\n value += error.v;\r\n }\r\n }\r\n\r\n if(value.toString() == \"NaN\"){\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(fp.length == tp[0].length){\r\n let rowlen = tp.length;\r\n let collen = fp[0].length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n let value = 0;\r\n\r\n for(let p = 0; p < tp[0].length; p++){\r\n fp[p][n] = booleanToNum(fp[p][n]);\r\n tp[m][p] = booleanToNum(tp[m][p]);\r\n\r\n if(isRealNum(tp[m][p]) && isRealNum(fp[p][n])){\r\n value += luckysheet_calcADPMM(fp[p][n], sp, tp[m][p]);//parseFloat(tp[m][p]) * parseFloat(fp[p][n]);\r\n }\r\n else{\r\n value += error.v;\r\n }\r\n }\r\n\r\n if(value.toString() == \"NaN\"){\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n return error.na;\r\n }\r\n }\r\n else if(getObjType(fp[0]) == \"array\"){\r\n //\u4E8C\u7EF4\u6570\u7EC4\u4E0E\u4E00\u7EF4\u6570\u7EC4\u76F8\u4E58\uFF08m*n \u4E0E n \u7B49\u4E8E m*n\uFF1Bm*1 \u4E0E n \u7B49\u4E8E m*n\uFF1B\u5176\u5B83\u9519\u8BEF\uFF09\r\n if(fp[0].length == tp.length){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[n])){\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp[n]);//parseFloat(fp[m][n]) * parseFloat(tp[n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(fp[0].length == 1){\r\n let rowlen = fp.length;\r\n let collen = tp.length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n fp[m][0] = booleanToNum(fp[m][0]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][0]) && isRealNum(tp[n])){\r\n value = luckysheet_calcADPMM(fp[m][0], sp, tp[n]);// parseFloat(fp[m][0]) * parseFloat(tp[n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n return error.na;\r\n }\r\n }\r\n else if(getObjType(tp[0]) == \"array\"){\r\n //\u4E8C\u7EF4\u6570\u7EC4\u4E0E\u4E00\u7EF4\u6570\u7EC4\u76F8\u4E58\uFF08m*n \u4E0E n \u7B49\u4E8E m*n\uFF1Bm*1 \u4E0E n \u7B49\u4E8E m*n\uFF1B\u5176\u5B83\u9519\u8BEF\uFF09\r\n if(tp[0].length == fp.length){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[m][n])){\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[m][n]);// parseFloat(fp[n]) * parseFloat(tp[m][n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(tp[0].length == 1){\r\n let rowlen = tp.length;\r\n let collen = fp.length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[m][0] = booleanToNum(tp[m][0]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[m][0])){\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[m][0]);//parseFloat(fp[n]) * parseFloat(tp[m][0]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n return error.na;\r\n }\r\n }\r\n else{\r\n //\u4E00\u7EF4\u6570\u7EC4\u4E0E\u4E00\u7EF4\u6570\u7EC4\u76F8\u4E58\u65F6\uFF0C\u6570\u7EC4\u5927\u5C0F\u4E0D\u4E00\u6837\u662F\u9519\u8BEF\r\n if(fp.length != tp.length){\r\n return error.na; \r\n }\r\n\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[n])){\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[n]);// parseFloat(fp[n]) * parseFloat(tp[n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(fp) == \"array\"){\r\n tp = booleanToNum(tp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\"){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp)){\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp);// parseFloat(fp[m][n]) * parseFloat(tp);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp)){\r\n value = luckysheet_calcADPMM(fp[n], sp, tp);// parseFloat(fp[n]) * parseFloat(tp);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(tp) == \"array\"){\r\n fp = booleanToNum(fp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(tp[0]) == \"array\"){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[m][n])){\r\n value = luckysheet_calcADPMM(fp, sp, tp[m][n]);// parseFloat(fp) * parseFloat(tp[m][n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < tp.length; n++){\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[n])){\r\n value = luckysheet_calcADPMM(fp, sp, tp[n]);//parseFloat(fp) * parseFloat(tp[n]);\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else{\r\n fp = booleanToNum(fp);\r\n tp = booleanToNum(tp);\r\n\r\n let result;\r\n if(isRealNum(fp) && isRealNum(tp)){\r\n result = luckysheet_calcADPMM(fp, sp, tp);//parseFloat(fp) * parseFloat(tp);\r\n }\r\n else{\r\n result = error.v;\r\n }\r\n\r\n return result;\r\n }\r\n }\r\n else if(sp == \"/\"){ //\u9664\r\n if(getObjType(fp) == \"array\" && getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\" && getObjType(tp[0]) == \"array\"){\r\n //\u4E8C\u7EF4\u6570\u7EC4\u76F8\u9664\uFF08m*n \u4E0E m*n \u7B49\u4E8E m*n\uFF1Bm*p \u4E0E p*n \u7B49\u4E8E m*n\uFF1B\u5176\u5B83\u9519\u8BEF\uFF09 \r\n if(fp.length == tp.length && fp[0].length == tp[0].length){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[m][n])){\r\n if(parseFloat(tp[m][n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp[m][n]);// parseFloat(fp[m][n]) / parseFloat(tp[m][n]); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(fp[0].length == tp.length){\r\n let tp_inverse = inverse(tp);\r\n\r\n let rowlen = fp.length;\r\n let collen = tp_inverse[0].length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n let value = 0;\r\n\r\n for(let p = 0; p < fp[0].length; p++){\r\n fp[m][p] = booleanToNum(fp[m][p]);\r\n tp_inverse[p][n] = booleanToNum(tp_inverse[p][n]);\r\n\r\n if(isRealNum(fp[m][p]) && isRealNum(tp_inverse[p][n])){\r\n value += luckysheet_calcADPMM(fp[m][p], \"*\", tp_inverse[p][n]);// parseFloat(fp[m][p]) * parseFloat(tp_inverse[p][n]);\r\n }\r\n else{\r\n value += error.v;\r\n }\r\n }\r\n\r\n if(value.toString() == \"NaN\"){\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n return error.na;\r\n }\r\n }\r\n else if(getObjType(fp[0]) == \"array\"){\r\n //\u4E8C\u7EF4\u6570\u7EC4\u4E0E\u4E00\u7EF4\u6570\u7EC4\u76F8\u9664\uFF08m*n \u4E0E n \u7B49\u4E8E m*n\uFF1Bm*1 \u4E0E n \u7B49\u4E8E m*n\uFF1B\u5176\u5B83\u9519\u8BEF\uFF09\r\n if(fp[0].length == tp.length){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[n])){\r\n if(parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp[n]);// parseFloat(fp[m][n]) / parseFloat(tp[n]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(fp[0].length == 1){\r\n let rowlen = fp.length;\r\n let collen = tp.length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n fp[m][0] = booleanToNum(fp[m][0]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][0]) && isRealNum(tp[n])){\r\n if(parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][0], sp, tp[n]);// parseFloat(fp[m][0]) / parseFloat(tp[n]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n return error.na;\r\n }\r\n }\r\n else if(getObjType(tp[0]) == \"array\"){\r\n //\u4E8C\u7EF4\u6570\u7EC4\u4E0E\u4E00\u7EF4\u6570\u7EC4\u76F8\u9664\uFF08m*n \u4E0E n \u7B49\u4E8E m*n\uFF1Bm*1 \u4E0E n \u7B49\u4E8E m*n\uFF1B\u5176\u5B83\u9519\u8BEF\uFF09\r\n if(tp[0].length == fp.length){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[m][n])){\r\n if(parseFloat(tp[m][n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[m][n]);//parseFloat(fp[n]) / parseFloat(tp[m][n]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(tp[0].length == 1){\r\n let rowlen = tp.length;\r\n let collen = fp.length;\r\n\r\n for(let m = 0; m < rowlen; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < collen; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[m][0] = booleanToNum(tp[m][0]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[m][0])){\r\n if(parseFloat(tp[m][0]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[m][0]);//parseFloat(fp[n]) / parseFloat(tp[m][0]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n return error.na;\r\n }\r\n }\r\n else{\r\n //\u4E00\u7EF4\u6570\u7EC4\u4E0E\u4E00\u7EF4\u6570\u7EC4\u76F8\u9664\u65F6\uFF0C\u6570\u7EC4\u5927\u5C0F\u4E0D\u4E00\u6837\u662F\u9519\u8BEF\r\n if(fp.length != tp.length){\r\n return error.na; \r\n }\r\n\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[n])){\r\n if(parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[n]);//parseFloat(fp[n]) / parseFloat(tp[n]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(fp) == \"array\"){\r\n tp = booleanToNum(tp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\"){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp)){\r\n if(parseFloat(tp) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp);//parseFloat(fp[m][n]) / parseFloat(tp);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp)){\r\n if(parseFloat(tp) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp);//parseFloat(fp[n]) / parseFloat(tp);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(tp) == \"array\"){\r\n fp = booleanToNum(fp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(tp[0]) == \"array\"){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[m][n])){\r\n if(parseFloat(tp[m][n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp, sp, tp[m][n]);//parseFloat(fp) / parseFloat(tp[m][n]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < tp.length; n++){\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[n])){\r\n if(parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp, sp, tp[n]);//parseFloat(fp) / parseFloat(tp[n]);\r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else{\r\n fp = booleanToNum(fp);\r\n tp = booleanToNum(tp);\r\n\r\n let result;\r\n if(isRealNum(fp) && isRealNum(tp)){\r\n if(parseFloat(tp) == 0){\r\n result = error.d;\r\n }\r\n else{\r\n result = luckysheet_calcADPMM(fp, sp, tp);//parseFloat(fp) / parseFloat(tp);\r\n }\r\n }\r\n else{\r\n result = error.v;\r\n }\r\n\r\n return result;\r\n }\r\n }\r\n else if(sp == \"+\" || sp == \"-\" || sp == \"%\"){ //\u52A0 \u51CF \u53D6\u4F59\r\n if(getObjType(fp) == \"array\" && getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\" && getObjType(tp[0]) == \"array\"){\r\n if(fp.length != tp.length && fp[0].length != tp[0].length){\r\n return error.na; \r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[m][n])){\r\n if(sp == \"%\" && parseFloat(tp[m][n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp[m][n]);// eval(parseFloat(fp[m][n]) + sp + parseFloat(tp[m][n])); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(fp[0]) == \"array\"){\r\n if(fp[0].length != tp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[n])){\r\n if(sp == \"%\" && parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp[n]);//eval(parseFloat(fp[m][n]) + sp + parseFloat(tp[n])); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(tp[0]) == \"array\"){\r\n if(tp[0].length != fp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[m][n])){\r\n if(sp == \"%\" && parseFloat(tp[m][n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[m][n]);//eval(parseFloat(fp[n]) + sp + parseFloat(tp[m][n])); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n if(fp.length != tp.length){\r\n return error.na; \r\n }\r\n\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[n])){\r\n if(sp == \"%\" && parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp[n]);//eval(parseFloat(fp[n]) + sp + \"(\" + parseFloat(tp[n]) + \")\" ); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(fp) == \"array\"){\r\n tp = booleanToNum(tp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\"){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp)){\r\n if(sp == \"%\" && parseFloat(tp) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[m][n], sp, tp);//eval(parseFloat(fp[m][n]) + sp + parseFloat(tp)); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp)){\r\n if(sp == \"%\" && parseFloat(tp) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp[n], sp, tp);//eval(parseFloat(fp[n]) + sp + parseFloat(tp)); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(tp) == \"array\"){\r\n fp = booleanToNum(fp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(tp[0]) == \"array\"){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[m][n])){\r\n if(sp == \"%\" && parseFloat(tp[m][n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp, sp, tp[m][n]);//eval(parseFloat(fp) + sp + parseFloat(tp[m][n])); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < tp.length; n++){\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[n])){\r\n if(sp == \"%\" && parseFloat(tp[n]) == 0){\r\n value = error.d;\r\n }\r\n else{\r\n value = luckysheet_calcADPMM(fp, sp, tp[n]);//eval(parseFloat(fp) + sp + parseFloat(tp[n])); \r\n }\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else{\r\n fp = booleanToNum(fp);\r\n tp = booleanToNum(tp);\r\n\r\n let result;\r\n if(isRealNum(fp) && isRealNum(tp)){\r\n if(sp == \"%\" && parseFloat(tp) == 0){\r\n result = error.d;\r\n }\r\n else{\r\n result = luckysheet_calcADPMM(fp, sp, tp);//eval(parseFloat(fp) + sp + \"(\" + parseFloat(tp) + \")\"); \r\n }\r\n }\r\n else{\r\n result = error.v;\r\n }\r\n\r\n return result;\r\n }\r\n }\r\n else if(sp == \"==\" || sp == \"!=\" || sp == \">=\" || sp == \"<=\" || sp == \">\" || sp == \"<\"){ //\u6BD4\u8F83\u8FD0\u7B97\u7B26\r\n if(getObjType(fp) == \"array\" && getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\" && getObjType(tp[0]) == \"array\"){\r\n if(fp.length != tp.length && fp[0].length != tp[0].length){\r\n return error.na; \r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n let value = booleanOperation(fp[m][n], sp, tp[m][n]);\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(fp[0]) == \"array\"){\r\n if(fp[0].length != tp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n let value = booleanOperation(fp[m][n], sp, tp[n]);\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(tp[0]) == \"array\"){\r\n if(tp[0].length != fp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n let value = booleanOperation(fp[n], sp, tp[m][n]);\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n if(fp.length != tp.length){\r\n return error.na; \r\n }\r\n\r\n for(let n = 0; n < fp.length; n++){\r\n let value = booleanOperation(fp[n], sp, tp[n]);\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(fp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\"){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n let value = booleanOperation(fp[m][n], sp, tp);\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < fp.length; n++){\r\n let value = booleanOperation(fp[n], sp, tp);\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(tp[0]) == \"array\"){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n let value = booleanOperation(fp, sp, tp[m][n]);\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < tp.length; n++){\r\n let value = booleanOperation(fp, sp, tp[n]);\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else{\r\n return booleanOperation(fp, sp, tp);\r\n }\r\n }\r\n else if(sp == \"&\"){ //\u8FDE\u63A5\u7B26\r\n if(getObjType(fp) == \"array\" && getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\" && getObjType(tp[0]) == \"array\"){\r\n if(fp.length != tp.length && fp[0].length != tp[0].length){\r\n return error.na; \r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n rowArr.push(fp[m][n] + \"\" + tp[m][n]);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(fp[0]) == \"array\"){\r\n if(fp[0].length != tp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n rowArr.push(fp[m][n] + \"\" + tp[n]);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(tp[0]) == \"array\"){\r\n if(tp[0].length != fp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n rowArr.push(fp[n] + \"\" + tp[m][n]);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n if(fp.length != tp.length){\r\n return error.na; \r\n }\r\n\r\n for(let n = 0; n < fp.length; n++){\r\n result.push(fp[n] + \"\" + tp[n]);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(fp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\"){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n rowArr.push(fp[m][n] + \"\" + tp);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < fp.length; n++){\r\n result.push(fp[n] + \"\" + tp);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(tp[0]) == \"array\"){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n rowArr.push(fp + \"\" + tp[m][n]);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < tp.length; n++){\r\n result.push(fp + \"\" + tp[n]);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else{\r\n return fp + \"\" + tp;\r\n }\r\n }\r\n else if(sp == \"^\"){ //\u5E42\r\n if(getObjType(fp) == \"array\" && getObjType(tp) == \"array\"){\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\" && getObjType(tp[0]) == \"array\"){\r\n if(fp.length != tp.length && fp[0].length != tp[0].length){\r\n return error.na; \r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[m][n])){\r\n value = Math.pow(parseFloat(fp[m][n]), parseFloat(tp[m][n]));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(fp[0]) == \"array\"){\r\n if(fp[0].length != tp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp[n])){\r\n value = Math.pow(parseFloat(fp[m][n]), parseFloat(tp[n]));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else if(getObjType(tp[0]) == \"array\"){\r\n if(tp[0].length != fp.length){\r\n return error.na;\r\n }\r\n\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[m][n])){\r\n value = Math.pow(parseFloat(fp[n]), parseFloat(tp[m][n]));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n if(fp.length != tp.length){\r\n return error.na; \r\n }\r\n\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp[n])){\r\n value = Math.pow(parseFloat(fp[n]), parseFloat(tp[n]));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(fp) == \"array\"){\r\n tp = booleanToNum(tp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(fp[0]) == \"array\"){\r\n for(let m = 0; m < fp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < fp[m].length; n++){\r\n fp[m][n] = booleanToNum(fp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp[m][n]) && isRealNum(tp)){\r\n value = Math.pow(parseFloat(fp[m][n]), parseFloat(tp));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < fp.length; n++){\r\n fp[n] = booleanToNum(fp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp[n]) && isRealNum(tp)){\r\n value = Math.pow(parseFloat(fp[n]), parseFloat(tp));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else if(getObjType(tp) == \"array\"){\r\n fp = booleanToNum(fp);\r\n\r\n let result = [];\r\n\r\n if(getObjType(tp[0]) == \"array\"){\r\n for(let m = 0; m < tp.length; m++){\r\n let rowArr = [];\r\n\r\n for(let n = 0; n < tp[m].length; n++){\r\n tp[m][n] = booleanToNum(tp[m][n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[m][n])){\r\n value = Math.pow(parseFloat(fp), parseFloat(tp[m][n]));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n rowArr.push(value);\r\n }\r\n\r\n result.push(rowArr);\r\n }\r\n }\r\n else{\r\n for(let n = 0; n < tp.length; n++){\r\n tp[n] = booleanToNum(tp[n]);\r\n\r\n let value;\r\n if(isRealNum(fp) && isRealNum(tp[n])){\r\n value = Math.pow(parseFloat(fp), parseFloat(tp[n]));\r\n }\r\n else{\r\n value = error.v;\r\n }\r\n\r\n result.push(value);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n else{\r\n fp = booleanToNum(fp);\r\n tp = booleanToNum(tp);\r\n\r\n let result;\r\n if(isRealNum(fp) && isRealNum(tp)){\r\n result = Math.pow(parseFloat(fp), parseFloat(tp));\r\n }\r\n else{\r\n result = error.v;\r\n }\r\n\r\n return result;\r\n }\r\n }\r\n}\r\n\r\n//\u89E3\u6790 \u516C\u5F0F\u4E2D{1,2,3;2,3,4} \u4E3A\u6570\u7EC4[[1,2,3],[2,3,4]]\r\nfunction luckysheet_getarraydata() {\r\n let fp = arguments[0];\r\n\r\n fp = fp.replace(\"{\", \"\").replace(\"}\", \"\").replace(/\\\"/g, '');\r\n\r\n let arr = [];\r\n\r\n if(fp.indexOf(\";\") > -1){\r\n arr = fp.split(\";\");\r\n\r\n for(let i = 0; i < arr.length; i++){\r\n arr[i] = arr[i].split(\",\");\r\n }\r\n }\r\n else{\r\n arr = fp.split(\",\"); \r\n }\r\n\r\n return arr;\r\n}\r\n\r\nfunction luckysheet_calcADPMM(fp, sp, tp){\r\n let value;\r\n if(sp==\"+\"){\r\n value = numeral(fp).add(tp).value();\r\n }\r\n else if(sp==\"-\"){\r\n value = numeral(fp).subtract(tp).value();\r\n }\r\n else if(sp==\"%\"){\r\n value = new Function(\"return \" + parseFloat(fp) + sp + \"(\" + parseFloat(tp) + \")\" )();\r\n }\r\n else if(sp==\"/\"){\r\n value = numeral(fp).divide(tp).value();\r\n }\r\n else if(sp==\"*\"){\r\n value = numeral(fp).multiply(tp).value();\r\n }\r\n return value;\r\n}\r\n\r\nfunction luckysheet_getcelldata(txt) {\r\n if (window.luckysheet_getcelldata_cache == null) {\r\n window.luckysheet_getcelldata_cache = {};\r\n }\r\n\r\n if (txt in window.luckysheet_getcelldata_cache) {\r\n return window.luckysheet_getcelldata_cache[txt];\r\n }\r\n\r\n let luckysheetfile = getluckysheetfile();\r\n let val = txt.split(\"!\");\r\n let sheettxt = \"\",\r\n rangetxt = \"\",\r\n sheetIndex = -1,\r\n sheetdata = null;\r\n \r\n if (val.length > 1) {\r\n sheettxt = val[0].replace(/''/g,\"'\");\r\n rangetxt = val[1];\r\n\r\n if(sheettxt.substr(0,1)==\"'\" && sheettxt.substr(sheettxt.length-1,1)==\"'\"){\r\n sheettxt = sheettxt.substring(1,sheettxt.length-1);\r\n }\r\n \r\n for (let i in luckysheetfile) {\r\n if (sheettxt == luckysheetfile[i].name) {\r\n sheetIndex = luckysheetfile[i].index;\r\n sheetdata = luckysheetfile[i].data;\r\n break;\r\n }\r\n }\r\n\r\n if (sheetIndex == -1) {\r\n sheetIndex = 0;\r\n }\r\n } \r\n else {\r\n let index = getSheetIndex(Store.calculateSheetIndex);\r\n sheettxt = luckysheetfile[index].name;\r\n sheetIndex = luckysheetfile[index].index;\r\n // sheetdata = Store.flowdata;\r\n sheetdata = luckysheetfile[index].data;\r\n rangetxt = val[0];\r\n\r\n // \u53D6\u6D88execFunctionGroupData\uFF0C\u6539\u7528execFunctionGlobalData\r\n // if (formula.execFunctionGroupData != null) {\r\n // sheetdata = formula.execFunctionGroupData;\r\n // }\r\n }\r\n\r\n if (rangetxt.indexOf(\":\") == -1) {\r\n let row = parseInt(rangetxt.replace(/[^0-9]/g, \"\")) - 1;\r\n let col = ABCatNum(rangetxt.replace(/[^A-Za-z]/g, \"\"));\r\n\r\n if (!isNaN(row) && !isNaN(col)) {\r\n let ret = getdatabyselectionD(sheetdata, {\r\n \"row\": [row, row],\r\n \"column\": [col, col]\r\n })[0][0];\r\n\r\n if (formula.execFunctionGlobalData != null) {\r\n let ef = formula.execFunctionGlobalData[row+\"_\"+col+\"_\"+sheetIndex];\r\n if(ef!=null){\r\n ret = ef;\r\n }\r\n }\r\n\r\n //\u8303\u56F4\u7684\u957F\u5BBD\r\n let rowl = 1;\r\n let coll = 1;\r\n let retAll= {\r\n \"sheetName\": sheettxt,\r\n \"startCell\": rangetxt,\r\n \"rowl\": rowl,\r\n \"coll\": coll,\r\n \"data\": ret\r\n };\r\n\r\n window.luckysheet_getcelldata_cache[txt] = retAll;\r\n\r\n return retAll;\r\n } \r\n else {\r\n return [];\r\n }\r\n } \r\n else {\r\n rangetxt = rangetxt.split(\":\");\r\n let row = [], col = [];\r\n row[0] = parseInt(rangetxt[0].replace(/[^0-9]/g, \"\")) - 1;\r\n row[1] = parseInt(rangetxt[1].replace(/[^0-9]/g, \"\")) - 1;\r\n \r\n if (isNaN(row[0])) {\r\n row[0] = 0;\r\n }\r\n\r\n if (isNaN(row[1])) {\r\n row[1] = sheetdata.length - 1;\r\n }\r\n\r\n if (row[0] > row[1]) {\r\n tooltip.info(\"\u9009\u62E9\u5931\u8D25\", \"\u8F93\u5165\u8303\u56F4\u9519\u8BEF\uFF01\");\r\n return [];\r\n }\r\n\r\n col[0] = ABCatNum(rangetxt[0].replace(/[^A-Za-z]/g, \"\"));\r\n col[1] = ABCatNum(rangetxt[1].replace(/[^A-Za-z]/g, \"\"));\r\n \r\n if (isNaN(col[0])) {\r\n col[0] = 0;\r\n }\r\n\r\n if (isNaN(col[1])) {\r\n col[1] = sheetdata[0].length - 1;\r\n }\r\n\r\n if (col[0] > col[1]) {\r\n tooltip.info(\"\u9009\u62E9\u5931\u8D25\", \"\u8F93\u5165\u8303\u56F4\u9519\u8BEF\uFF01\");\r\n return [];\r\n }\r\n \r\n let ret = getdatabyselectionD(sheetdata, {\r\n \"row\": row,\r\n \"column\": col\r\n });\r\n\r\n if(formula.execFunctionGlobalData!=null){\r\n for(let r=row[0];r<=row[1];r++){\r\n for(let c=col[0];c<=col[1];c++){\r\n let ef = formula.execFunctionGlobalData[r+\"_\"+c+\"_\"+sheetIndex];\r\n if(ef!=null){\r\n ret[r-row[0]][c-col[0]] = ef;\r\n }\r\n }\r\n }\r\n }\r\n\r\n \r\n //\u8303\u56F4\u7684\u957F\u5BBD\r\n let rowl = row[1] - row[0] + 1;\r\n let coll = col[1] - col[0] + 1;\r\n let retAll= {\r\n \"sheetName\": sheettxt,\r\n \"startCell\": rangetxt[0],\r\n \"rowl\": rowl,\r\n \"coll\": coll,\r\n \"data\": ret\r\n };\r\n \r\n window.luckysheet_getcelldata_cache[txt] = retAll;\r\n\r\n return retAll;\r\n }\r\n}\r\n\r\n//\u89E3\u6790\u5355\u4E2A\u53D6\u5F97\u7684\u503C\uFF0C\u6709\u5B57\u7B26\u4E32\uFF0C\u6570\u5B57\uFF0C\u5F15\u7528\u5355\u5143\u683C\u6216\u8005\u51FD\u6570\r\nfunction luckysheet_parseData(value) {\r\n if(typeof value === \"object\" ){\r\n if(value == null){\r\n return \"\";\r\n }\r\n else if(Array.isArray(value)){ //\u51FD\u6570\u8FD4\u56DE\u7684\u5E26\u671F\u671B\u683C\u5F0F\u7684\u6570\u7EC4\uFF0C\u53EF\u63D0\u53D6\u683C\u5F0F\r\n let v = genarate(value[0]);\r\n return v[2];\r\n }\r\n else{ //getcelldat\u5F15\u7528\u5355\u5143\u683C\u5BF9\u8C61\uFF0C\u5E26\u6709\u683C\u5F0F\r\n if(Array.isArray(value.data)){ //\u5355\u5143\u683C\u533A\u57DF\r\n return error.v; \r\n }\r\n else{ //\u5355\u4E2A\u5355\u5143\u683C\r\n if(value.data.v === undefined){\r\n return \"\";\r\n }\r\n else{\r\n return value.data.v;\r\n }\r\n }\r\n }\r\n }\r\n else if(!formula.isCompareOperator(value).flag){\r\n let v = genarate(value);\r\n return v[2];\r\n }\r\n else if(typeof value === \"string\" || typeof value === \"number\"){\r\n return value;\r\n }\r\n\r\n return error.v;\r\n}\r\n\r\nfunction luckysheet_getValue() {\r\n //\u89E3\u6790\u83B7\u53D6\u51FD\u6570\u53C2\u6570\uFF0C\u65E0\u683C\u5F0F\uFF0C\u4E14\u53EF\u5305\u542B\u5E26\u64CD\u4F5C\u7B26\u7684\">5\"\r\n //\u6570\u636E\u7C7B\u578B\uFF1A1.\u624B\u52A8\u8F93\u5165\u6216\u51FD\u6570\u8FD4\u56DE\u7684\u5B57\u7B26\u4E32\uFF0C\u666E\u901A\u5B57\u7B26\u4E32\u6216\u6570\u5B57\u76F4\u63A5\u53D6\u503C\uFF0C\u7279\u6B8A\u683C\u5F0F\u9700\u8F6C\u5316 \u5982\uFF1A\"2019-1-1\"\uFF08\u7279\u6B8A\u683C\u5F0F\u8F6C\u5316\u4E3A\u6570\u5B57\uFF09\u3001\">5\"\u6216\u6570\u5B57\r\n //2.\u5F15\u7528\u5355\u5143\u683C\u5BF9\u8C61\uFF0C\u53D6\u5F97\u4E8C\u7EF4\u6570\u7EC4\u6216\u5355\u4E2A\u7684v \u5982\uFF1AA1\r\n //3.\u51FD\u6570\u8FD4\u56DE\u7684\u5E26\u671F\u671B\u683C\u5F0F\u7684\u6570\u7EC4\uFF0C\u53D6\u5F97\u7B2C\u4E00\u4E2A\u53C2\u6570\uFF0C\u8F6C\u5316\u4E3A\u6570\u5B57 \u5982\uFF1A[\"2019-1-1\",true]\r\n let args = arguments[0];\r\n\r\n for(let i = 0; i < args.length; i++){\r\n let value = args[i];\r\n\r\n if(typeof value === \"object\" ){\r\n if(value == null){\r\n value = \"\";\r\n }\r\n else if(Array.isArray(value)){ //\u51FD\u6570\u8FD4\u56DE\u7684\u5E26\u671F\u671B\u683C\u5F0F\u7684\u6570\u7EC4\uFF0C\u53EF\u63D0\u53D6\u683C\u5F0F\r\n let v = genarate(value[0]);\r\n value = v[2];\r\n }\r\n else{ //getcelldat\u5F15\u7528\u5355\u5143\u683C\u5BF9\u8C61\uFF0C\u5E26\u6709\u683C\u5F0F\r\n if(Array.isArray(value.data)){ //\u5355\u5143\u683C\u533A\u57DF\r\n value = value.data; \r\n }\r\n else{ //\u5355\u4E2A\u5355\u5143\u683C\r\n if(value.data.v === undefined){ //\u7A7A\u767D\u5355\u5143\u683C\r\n value = \"\";\r\n }\r\n else{\r\n value = value.data.v;\r\n }\r\n }\r\n }\r\n }\r\n else if(!formula.isCompareOperator(value).flag){\r\n let v = genarate(value);\r\n value = v[2];\r\n }\r\n \r\n args[i] = value;\r\n }\r\n}\r\n\r\n\r\nfunction luckysheet_indirect_check() {\r\n let cellTxt = arguments[0];\r\n if (cellTxt == null || cellTxt.length == 0) {\r\n return null;\r\n }\r\n return cellTxt;\r\n}\r\n\r\nfunction luckysheet_indirect_check_return(txt) {\r\n return txt;\r\n}\r\n\r\nfunction luckysheet_offset_check() {\r\n if (!(getObjType(arguments[0]) == \"object\" && arguments[0].startCell != null)) {\r\n return formula.error.v;\r\n }\r\n\r\n var reference = arguments[0].startCell;\r\n\r\n //\u8981\u504F\u79FB\u7684\u884C\u6570\r\n var rows = func_methods.getFirstValue(arguments[1]);\r\n if (valueIsError(rows)) {\r\n return rows;\r\n }\r\n\r\n if (!isRealNum(rows)) {\r\n return formula.error.v;\r\n }\r\n\r\n rows = parseInt(rows);\r\n\r\n //\u8981\u504F\u79FB\u7684\u5217\u6570\r\n var cols = func_methods.getFirstValue(arguments[2]);\r\n if (valueIsError(cols)) {\r\n return cols;\r\n }\r\n\r\n if (!isRealNum(cols)) {\r\n return formula.error.v;\r\n }\r\n\r\n cols = parseInt(cols);\r\n\r\n //\u8981\u4ECE\u504F\u79FB\u76EE\u6807\u5F00\u59CB\u8FD4\u56DE\u7684\u8303\u56F4\u7684\u9AD8\u5EA6\r\n var height = arguments[0].rowl;\r\n if (arguments.length >= 4) {\r\n height = func_methods.getFirstValue(arguments[3]);\r\n if (valueIsError(height)) {\r\n return height;\r\n }\r\n\r\n if (!isRealNum(height)) {\r\n return formula.error.v;\r\n }\r\n\r\n height = parseInt(height);\r\n }\r\n\r\n //\u8981\u4ECE\u504F\u79FB\u76EE\u6807\u5F00\u59CB\u8FD4\u56DE\u7684\u8303\u56F4\u7684\u5BBD\u5EA6\r\n var width = arguments[0].coll;\r\n if (arguments.length == 5) {\r\n width = func_methods.getFirstValue(arguments[4]);\r\n if (valueIsError(width)) {\r\n return width;\r\n }\r\n\r\n if (!isRealNum(width)) {\r\n return formula.error.v;\r\n }\r\n\r\n width = parseInt(width);\r\n }\r\n\r\n if (height < 1 || width < 1) {\r\n return formula.error.r;\r\n }\r\n\r\n //\u8BA1\u7B97\r\n var cellrange = formula.getcellrange(reference);\r\n var cellRow0 = cellrange[\"row\"][0];\r\n var cellCol0 = cellrange[\"column\"][0];\r\n\r\n cellRow0 += rows;\r\n cellCol0 += cols;\r\n\r\n var cellRow1 = cellRow0 + height - 1;\r\n var cellCol1 = cellCol0 + width - 1;\r\n\r\n if (cellRow0 < 0 || cellRow1 >= Store.flowdata.length || cellCol0 < 0 || cellCol1 >= Store.flowdata[0].length) {\r\n return formula.error.r;\r\n }\r\n\r\n return getRangetxt(Store.calculateSheetIndex, {\r\n row: [cellRow0, cellRow1],\r\n column: [cellCol0, cellCol1]\r\n });\r\n}\r\n\r\n\r\nfunction luckysheet_getSpecialReference(isCellFirst, param1, param2) {\r\n let functionRange, rangeTxt;\r\n if(isCellFirst){\r\n rangeTxt = param1;\r\n functionRange = param2;\r\n }\r\n else{\r\n functionRange = param1;\r\n rangeTxt = param2;\r\n }\r\n\r\n if(functionRange.startCell.indexOf(\":\")>-1 || rangeTxt.indexOf(\":\")>-1){\r\n return error.v;\r\n }\r\n\r\n\r\n if(isCellFirst){\r\n return luckysheet_getcelldata(rangeTxt + \":\" +functionRange.startCell);\r\n }\r\n else{\r\n let rangeT = rangeTxt, sheetName=\"\";\r\n if(rangeTxt.indexOf(\"!\")>-1){\r\n let rangetxtArr = rangeTxt.split(\"!\");\r\n sheetName = rangetxtArr[0] + \"!\";\r\n rangeT = rangetxtArr[1];\r\n }\r\n return luckysheet_getcelldata(sheetName + functionRange.startCell + \":\" + rangeT);\r\n }\r\n\r\n \r\n\r\n}\r\n\r\nexport {\r\n luckysheet_compareWith,\r\n luckysheet_getarraydata,\r\n luckysheet_getcelldata,\r\n luckysheet_parseData,\r\n luckysheet_getValue,\r\n luckysheet_indirect_check,\r\n luckysheet_indirect_check_return,\r\n luckysheet_offset_check,\r\n luckysheet_calcADPMM,\r\n luckysheet_getSpecialReference\r\n}", "import { seriesLoadScripts, loadLinks, $$, arrayRemoveItem } from \"../../utils/util\";\r\nimport { generateRandomKey, replaceHtml } from \"../../utils/chartUtil\";\r\nimport { getdatabyselection, getcellvalue } from \"../../global/getdata\";\r\nimport chartInfo from \"../../store\";\r\nimport formula from \"../../global/formula\";\r\nimport { luckysheet_getcelldata } from \"../../function/func\";\r\nimport { getSheetIndex, getRangetxt, getvisibledatacolumn, getvisibledatarow } from \"../../methods/get\";\r\nimport { rowLocation, colLocation, mouseposition } from \"../../global/location\";\r\nimport { setluckysheet_scroll_status } from \"../../methods/set\";\r\nimport {\r\n luckysheetMoveHighlightCell,\r\n luckysheetMoveHighlightCell2,\r\n luckysheetMoveHighlightRange,\r\n luckysheetMoveHighlightRange2,\r\n luckysheetMoveEndCell,\r\n} from \"../../controllers/sheetMove\";\r\nimport { isEditMode } from \"../../global/validate\";\r\nimport luckysheetsizeauto from \"../../controllers/resize\";\r\nimport Store from \"../../store\";\r\n\r\nlet _rowLocation = rowLocation;\r\nlet _colLocation = colLocation;\r\n\r\n// Dynamically load dependent scripts and styles\r\nconst dependScripts = [\r\n \"https://unpkg.com/vue@2.6.11/dist/vue.min.js\",\r\n \"https://unpkg.com/vuex@3.4.0/dist/vuex.min.js\",\r\n \"https://unpkg.com/element-ui@2.13.2/lib/index.js\",\r\n \"https://unpkg.com/echarts@4.8.0/dist/echarts.min.js\",\r\n \"./expendPlugins/chart/chartmix.umd.min.js\",\r\n];\r\n\r\nconst dependLinks = [\r\n \"https://unpkg.com/element-ui@2.13.2/lib/theme-chalk/index.css\",\r\n \"./expendPlugins/chart/chartmix.css\",\r\n // 'http://26.26.26.1:8000/chartmix.css'\r\n];\r\n\r\n// Initialize the chart component\r\nfunction chart(options, config, isDemo) {\r\n const data = options.data;\r\n loadLinks(dependLinks);\r\n\r\n seriesLoadScripts(dependScripts, null, function() {\r\n const store = new Vuex.Store();\r\n console.info(\"chartmix::\", chartmix.default);\r\n\r\n Vue.use(chartmix.default, { store });\r\n let outDom = document.getElementsByTagName(\"body\")[0];\r\n chartmix.default.initChart(outDom, chartInfo.lang);\r\n\r\n $(\".chartSetting\").css({\r\n top: \"1px\",\r\n bottom: \"1px\",\r\n position: \"absolute\",\r\n right: \"0px\",\r\n width: \"350px\",\r\n background: \"#fff\",\r\n\r\n border: \"1px solid #E5E5E5\",\r\n \"z-index\": 1004,\r\n \"box-shadow\": \"0px 2px 4px rgba(0,0,0,0.2)\",\r\n \"-webkit-box-shadow\": \"0px 2px 4px rgba(0,0,0,0.2)\",\r\n \"-moz-box-shadow\": \"0px 2px 4px rgba(0,0,0,0.2)\",\r\n \"-moz-user-select\": \"none\",\r\n \"-khtml-user-select\": \"none\",\r\n \"-webkit-user-select\": \"none\",\r\n \"-ms-user-select\": \"none\",\r\n \"user-select\": \"none\",\r\n \"padding-left\": \"30px\",\r\n display: \"none\",\r\n });\r\n\r\n chartInfo.createChart = chartmix.default.createChart;\r\n chartInfo.highlightChart = chartmix.default.highlightChart;\r\n chartInfo.deleteChart = chartmix.default.deleteChart;\r\n chartInfo.resizeChart = chartmix.default.resizeChart;\r\n chartInfo.changeChartRange = chartmix.default.changeChartRange;\r\n chartInfo.changeChartCellData = chartmix.default.changeChartCellData;\r\n chartInfo.getChartJson = chartmix.default.getChartJson;\r\n chartInfo.chart_selection = chart_selection();\r\n chartInfo.chartparam.jfrefreshchartall = jfrefreshchartall;\r\n chartInfo.chartparam.changeChartCellData = chartmix.default.changeChartCellData;\r\n chartInfo.chartparam.renderChart = chartmix.default.renderChart;\r\n chartInfo.chartparam.getChartJson = chartmix.default.getChartJson;\r\n chartInfo.chartparam.insertToStore = chartmix.default.insertToStore;\r\n\r\n // Initialize the rendering chart\r\n for (let i = 0; i < data.length; i++) {\r\n // if (data[i].status == '1') {\r\n renderCharts(data[i].chart, isDemo);\r\n // }\r\n }\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n if (data[i].status == \"1\") {\r\n renderChartShow(data[i].index);\r\n }\r\n }\r\n\r\n // After the chart is loaded, mark it\r\n arrayRemoveItem(chartInfo.asyncLoad, \"chart\");\r\n });\r\n}\r\n\r\n// rendercharts\r\nfunction renderCharts(chartLists, isDemo) {\r\n // no chart\r\n if (chartLists == undefined) {\r\n return;\r\n }\r\n\r\n for (let i = 0; i < chartLists.length; i++) {\r\n let chart = chartLists[i];\r\n\r\n if (isDemo) {\r\n chartInfo.chartparam.insertToStore({ chart_id: chart.chart_id, chartOptions: chart.chartOptions });\r\n }\r\n\r\n let chart_id = chart.chart_id;\r\n let chart_id_c = chart_id + \"_c\";\r\n let modelChartShowHTML =\r\n '
${content}
';\r\n\r\n // \u9632\u6B62\u521B\u5EFA\u91CD\u590D\u7684id\r\n let $t;\r\n if ($(`.luckysheet-cell-main #${chart_id_c}`).length === 0) {\r\n $t = $(\r\n replaceHtml(modelChartShowHTML, {\r\n id: chart_id_c,\r\n addclass: \"luckysheet-data-visualization-chart\",\r\n title: \"\u56FE\u8868\u751F\u6210\",\r\n content: \"\",\r\n }),\r\n ).appendTo($(\".luckysheet-cell-main\"));\r\n }\r\n if (!$t) return;\r\n\r\n setChartMoveableEffect($t);\r\n\r\n $(`#${chart_id_c}`).children(\".luckysheet-modal-dialog-content\")[0].id = chart_id;\r\n\r\n let container = document.getElementById(chart_id_c);\r\n\r\n let chart_json;\r\n chart_json = chartInfo.chartparam.getChartJson(chart.chart_id);\r\n\r\n chartInfo.chartparam.renderChart({ chart_id: chart.chart_id, chartOptions: chart_json });\r\n chartInfo.currentChart = chart_json;\r\n\r\n //\u5904\u7406\u533A\u57DF\u9AD8\u4EAE\u6846\u53C2\u6570\uFF0C\u5F53\u524D\u9875\u4E2D\uFF0C\u53EA\u6709\u5F53\u524D\u7684\u56FE\u8868\u7684needRangShow\u4E3Atrue,\u5176\u4ED6\u4E3Afalse\r\n showNeedRangeShow(chart_id);\r\n\r\n // delete current chart\r\n $(`#${chart_id}_c .luckysheet-modal-controll-del`).click(function(e) {\r\n delChart(chart_id);\r\n });\r\n\r\n // edit current chart\r\n $(`#${chart_id}_c .luckysheet-modal-controll-update`).click(function(e) {\r\n showChartSettingComponent();\r\n });\r\n\r\n // \u628A\u56FE\u8868\u5750\u6807\u4FE1\u606F\u66F4\u65B0\u5230sheetFile\u4E2D\r\n $(`#${chart_id}_c`).mouseup(function(e) {\r\n const w = $(this).css(\"width\");\r\n const h = $(this).css(\"height\");\r\n const t = $(this).css(\"top\");\r\n const l = $(this).css(\"left\");\r\n\r\n // insert chartinfo\r\n let sheetFile = chartInfo.luckysheetfile[getSheetIndex(chartInfo.currentSheetIndex)];\r\n\r\n if (!sheetFile.chart) {\r\n sheetFile.chart = [];\r\n }\r\n\r\n sheetFile.chart.forEach((item) => {\r\n if (item.chart_id === chart_id) {\r\n item.width = parseFloat(w);\r\n item.height = parseFloat(h);\r\n item.left = parseFloat(l);\r\n item.top = parseFloat(t);\r\n }\r\n });\r\n });\r\n\r\n $t.children(\".luckysheet-modal-dialog-content\").mousedown(function(e) {\r\n if (!chartInfo.chartparam.luckysheetCurrentChartMaxState) {\r\n //\u5F53\u524D\u56FE\u8868\u663E\u793A\u533A\u57DF\u9AD8\u4EAE\r\n showNeedRangeShow(chart_id);\r\n }\r\n e.stopPropagation();\r\n });\r\n $t.mousedown(function(e) {\r\n // move chart\r\n\r\n if (!chartInfo.chartparam.luckysheetCurrentChartMaxState) {\r\n //\u5F53\u524D\u56FE\u8868\u663E\u793A\u533A\u57DF\u9AD8\u4EAE\r\n showNeedRangeShow(chart_id);\r\n setluckysheet_scroll_status(true);\r\n\r\n //\u5141\u8BB8\u62D6\u52A8\u6E32\u67D3\u6846\r\n if (\r\n !$(e.target).is(\".luckysheet-modal-dialog-controll\") &&\r\n !$(e.target).is(\".luckysheet-modal-controll-btn\") &&\r\n !$(e.target).is(\"i\")\r\n ) {\r\n // Debounce\r\n chartInfo.chartparam.luckysheetCurrentChartMoveTimeout = setTimeout(function() {\r\n chartInfo.chartparam.luckysheetCurrentChartMove = true;\r\n }, 100);\r\n }\r\n\r\n var toffset = chartInfo.chartparam.luckysheetCurrentChartMoveObj.offset();\r\n var tpsition = chartInfo.chartparam.luckysheetCurrentChartMoveObj.position();\r\n //luckysheetCurrentChartMoveXy: [\u9F20\u6807\u70B9\u76F8\u5BF9chart\u6846\u7684\u8DDD\u79BBX\u65B9\u5411\uFF0C\u9F20\u6807\u70B9\u76F8\u5BF9chart\u6846\u7684\u8DDD\u79BBY\u65B9\u5411\uFF0Cchart\u6846\u76F8\u5BF9cell-main\u7684\u8DDD\u79BBX\u65B9\u5411\uFF0Cchart\u6846\u76F8\u5BF9cell-main\u7684\u8DDD\u79BBY\u65B9\u5411\uFF0C\u6C34\u5E73\u6EDA\u52A8\u6761\u7684\u4F4D\u7F6E\uFF0C\u5782\u76F4\u6EDA\u52A8\u6761\u7684\u4F4D\u7F6E]\r\n chartInfo.chartparam.luckysheetCurrentChartMoveXy = [\r\n e.pageX - toffset.left,\r\n e.pageY - toffset.top,\r\n tpsition.left,\r\n tpsition.top,\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(),\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(),\r\n ];\r\n chartInfo.chartparam.luckysheetCurrentChartMoveWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n chartInfo.chartparam.luckysheetCurrentChartMoveWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n\r\n if (\r\n !$(e.target).hasClass(\"luckysheet-mousedown-cancel\") &&\r\n $(e.target).filter(\"[class*='sp-palette']\").length == 0 &&\r\n $(e.target).filter(\"[class*='sp-thumb']\").length == 0 &&\r\n $(e.target).filter(\"[class*='sp-']\").length == 0\r\n ) {\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-cols-h-hover\").hide();\r\n $(\"#luckysheet-cols-menu-btn\").hide();\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-sheet-list, #luckysheet-rightclick-sheet-menu, #luckysheet-user-menu\").hide();\r\n $(\r\n \"body > .luckysheet-filter-menu, body > .luckysheet-filter-submenu, body > .luckysheet-cols-menu\",\r\n ).hide();\r\n }\r\n\r\n e.stopPropagation();\r\n }\r\n })\r\n .find(\".luckysheet-modal-dialog-resize-item\")\r\n .mousedown(function(e) {\r\n if (chartInfo.chartparam.luckysheetCurrentChartActive) {\r\n chartInfo.chartparam.luckysheetCurrentChartResize = $(this).data(\"type\"); //\u5F00\u59CB\u72B6\u6001resize\r\n\r\n var mouse = mouseposition(e.pageX, e.pageY),\r\n scrollLeft = $(\"#luckysheet-scrollbar-x\").scrollLeft(),\r\n scrollTop = $(\"#luckysheet-scrollbar-y\").scrollTop();\r\n var x = mouse[0] + scrollLeft;\r\n var y = mouse[1] + scrollTop;\r\n var position = chartInfo.chartparam.luckysheetCurrentChartResizeObj.position();\r\n //\u53C2\u6570\uFF1Ax,y:\u9F20\u6807\u4F4D\u7F6E\uFF0C$t.width(), $t.height(): chart\u6846\u5BBD\u9AD8\uFF0C position.left + scrollLeft, position.top + scrollTop \uFF1Achart\u6846\u4F4D\u7F6E \uFF0CscrollLeft, scrollTop\uFF1A\u6EDA\u52A8\u6761\u4F4D\u7F6E\r\n chartInfo.chartparam.luckysheetCurrentChartResizeXy = [\r\n x,\r\n y,\r\n $t.width(),\r\n $t.height(),\r\n position.left + scrollLeft,\r\n position.top + scrollTop,\r\n scrollLeft,\r\n scrollTop,\r\n ];\r\n chartInfo.chartparam.luckysheetCurrentChartResizeWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n chartInfo.chartparam.luckysheetCurrentChartResizeWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n\r\n chartInfo.chartparam.luckysheetCurrentChart = chart_id;\r\n\r\n e.stopPropagation();\r\n }\r\n });\r\n\r\n let width = chart.width;\r\n let height = chart.height;\r\n let left = chart.left;\r\n let top = chart.top;\r\n container.style.width = width + \"px\";\r\n container.style.height = height + \"px\";\r\n container.style.position = \"absolute\";\r\n container.style.background = \"#fff\";\r\n container.style.left = left + \"px\";\r\n container.style.top = top + \"px\";\r\n container.style.zIndex = chartInfo.zIndex ? chartInfo.zIndex : 15;\r\n chartInfo.zIndex++;\r\n }\r\n}\r\n\r\nfunction jfrefreshchartall(flowdata1, r_st, r_ed, c_st, c_ed) {\r\n // let chart = chartInfo.currentChart;\r\n // if (!chart) {\r\n // return;\r\n // }\r\n // if (chart.rangeArray.length == 1) {\r\n // var row = chart.rangeArray[0].row;\r\n // var column = chart.rangeArray[0].column;\r\n // //\u4E0D\u5728\u8303\u56F4\u5185\u7684\u4E0D\u66F4\u65B0\r\n // if (r_st > row[1] || r_ed < row[0] || c_st > column[1] || c_ed < column[0]) {\r\n // return;\r\n // }\r\n //\u6839\u636E\u539F\u6709\u7684\u8303\u56F4\u53D6\u5F97\u6570\u636E\r\n // var luckysheetgetcellrange = formula.getcellrange(chart.rangeTxt);\r\n // var sheetIndex = luckysheetgetcellrange.sheetIndex == -1 ? 0 : luckysheetgetcellrange.sheetIndex; //sheetIndex\u4E3A-1\u65F6\uFF0C\u8F6C\u5316\u4E3A0\r\n // var sheetName = Store.luckysheetfile.find((item) => item.index === sheetIndex).name;\r\n // var sheetName;\r\n // Store.luckysheetfile.forEach((item) => {\r\n // if (item.chart && item.chart.length) {\r\n // item.chart.forEach((ele) => {\r\n // if (ele.chart_id === chart.chart_id) {\r\n // sheetName = item.name;\r\n // }\r\n // });\r\n // }\r\n // });\r\n // var selection = {\r\n // row: luckysheetgetcellrange.row,\r\n // column: luckysheetgetcellrange.column,\r\n // dataSheetIndex: sheetIndex,\r\n // }; //\u6570\u7EC4\r\n // var getcelldata = luckysheet_getcelldata(sheetName + \"!\" + chart.rangeTxt);\r\n // if (typeof getcelldata === \"object\" && getcelldata.length != 0 && getcelldata.data.length != null) {\r\n // //getcelldata\u6709\u503C\uFF0C\u4E14\u4E0D\u4E3A\u7A7A\u6570\u7EC4 && getcelldata.data\u4E3A\u4E8C\u7EF4\u6570\u7EC4\r\n // var chartData = getcelldata.data;\r\n // chartInfo.chartparam.changeChartCellData(chart.chart_id, chartData);\r\n // }\r\n // }\r\n\r\n const sheetInfo = Store.luckysheetfile.find((item) => item.index == Store.currentSheetIndex);\r\n const charts = sheetInfo.chart;\r\n charts &&\r\n charts.forEach((item) => {\r\n var getcelldata = luckysheet_getcelldata(sheetInfo.name + \"!\" + item.chartOptions.rangeTxt);\r\n if (typeof getcelldata === \"object\" && getcelldata.length != 0 && getcelldata.data.length != null) {\r\n //getcelldata\u6709\u503C\uFF0C\u4E14\u4E0D\u4E3A\u7A7A\u6570\u7EC4 && getcelldata.data\u4E3A\u4E8C\u7EF4\u6570\u7EC4\r\n var chartData = getcelldata.data;\r\n chartInfo.chartparam.changeChartCellData(item.chart_id, chartData);\r\n }\r\n });\r\n}\r\n\r\nfunction chart_selection() {\r\n return {\r\n create: function() {\r\n var chart_json = chartInfo.currentChart;\r\n\r\n if (chart_json.rangeArray.length > 1) {\r\n return;\r\n }\r\n\r\n $(\"#luckysheet-chart-rangeShow\").empty();\r\n $(\"#luckysheet-cell-selected-boxs\").hide();\r\n $(\"#luckysheet-cell-selected-focus\").hide();\r\n $(\"#luckysheet-rows-h-selected\").empty();\r\n $(\"#luckysheet-cols-h-selected\").empty();\r\n $(\"#luckysheet-row-count-show\").hide();\r\n $(\"#luckysheet-column-count-show\").hide();\r\n\r\n var st_r = chart_json.rangeArray[0].row[0];\r\n var st_c = chart_json.rangeArray[0].column[0];\r\n\r\n var rangeSplitArray = chart_json.rangeSplitArray;\r\n\r\n //\u9996\u884C\u662F\u5426\u6807\u9898\r\n var rangeRowCheck = chart_json.rangeRowCheck;\r\n\r\n if (rangeRowCheck.exits) {\r\n var chart_rowtitle_html = getRangeShowHtml(\r\n \"rowtitle\",\r\n rangeSplitArray.rowtitle.row[0] + st_r,\r\n rangeSplitArray.rowtitle.row[1] + st_r,\r\n rangeSplitArray.rowtitle.column[0] + st_c,\r\n rangeSplitArray.rowtitle.column[1] + st_c,\r\n );\r\n } else {\r\n var chart_rowtitle_html = \"\";\r\n }\r\n\r\n //\u9996\u5217\u662F\u5426\u6807\u9898\r\n var rangeColCheck = chart_json.rangeColCheck;\r\n\r\n if (rangeColCheck.exits) {\r\n var chart_coltitle_html = getRangeShowHtml(\r\n \"coltitle\",\r\n rangeSplitArray.coltitle.row[0] + st_r,\r\n rangeSplitArray.coltitle.row[1] + st_r,\r\n rangeSplitArray.coltitle.column[0] + st_c,\r\n rangeSplitArray.coltitle.column[1] + st_c,\r\n );\r\n } else {\r\n var chart_coltitle_html = \"\";\r\n }\r\n\r\n //\u5185\u5BB9\u5757\r\n var chart_content_html = getRangeShowHtml(\r\n \"content\",\r\n rangeSplitArray.content.row[0] + st_r,\r\n rangeSplitArray.content.row[1] + st_r,\r\n rangeSplitArray.content.column[0] + st_c,\r\n rangeSplitArray.content.column[1] + st_c,\r\n );\r\n\r\n $(\"#luckysheet-chart-rangeShow\").append(chart_rowtitle_html + chart_coltitle_html + chart_content_html);\r\n\r\n function getRangeShowHtml(type, r1, r2, c1, c2) {\r\n var visibledatarow = getvisibledatarow();\r\n var visibledatacolumn = getvisibledatacolumn();\r\n\r\n var row = visibledatarow[r2],\r\n row_pre = r1 - 1 == -1 ? 0 : visibledatarow[r1 - 1];\r\n var col = visibledatacolumn[c2],\r\n col_pre = c1 - 1 == -1 ? 0 : visibledatacolumn[c1 - 1];\r\n\r\n if (type == \"rowtitle\") {\r\n var color = \"#C65151\";\r\n }\r\n\r\n if (type == \"coltitle\") {\r\n var color = \"#9667C0\";\r\n }\r\n\r\n if (type == \"content\") {\r\n var color = \"#4970D1\";\r\n }\r\n\r\n var html =\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n \"
\";\r\n\r\n return html;\r\n }\r\n },\r\n rangeMove: false,\r\n rangeMovexy: null,\r\n rangeMoveIndex: null,\r\n rangeMoveObj: null,\r\n rangeMoveDraging: function(event, sheetBarHeight, statisticBarHeight) {\r\n var chart_json = chartInfo.currentChart;\r\n var st_r = chart_json.rangeArray[0].row[0];\r\n var st_c = chart_json.rangeArray[0].column[0];\r\n var rangeRowCheck = chart_json.rangeRowCheck;\r\n var rangeColCheck = chart_json.rangeColCheck;\r\n var rangeSplitArray = chart_json.rangeSplitArray;\r\n\r\n var mouse = mouseposition(event.pageX, event.pageY);\r\n var scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n var scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n\r\n var x = mouse[0] + scrollLeft;\r\n var y = mouse[1] + scrollTop;\r\n\r\n var winH = $(window).height() + scrollTop - sheetBarHeight - statisticBarHeight,\r\n winW = $(window).width() + scrollLeft;\r\n\r\n var rowLocation = _rowLocation(y),\r\n row_index = rowLocation[2];\r\n var colLocation = _colLocation(x),\r\n col_index = colLocation[2];\r\n\r\n var visibledatarow = getvisibledatarow();\r\n var visibledatacolumn = getvisibledatacolumn();\r\n\r\n var $id = chartInfo.chart_selection.rangeMoveObj.attr(\"id\");\r\n\r\n if ($id == \"luckysheet-chart-rangeShow-content\") {\r\n //\u884C\r\n var row_s =\r\n chartInfo.chart_selection.rangeMoveIndex[0] - chartInfo.chart_selection.rangeMovexy[0] + row_index;\r\n\r\n if (rangeRowCheck.exits) {\r\n if (row_s < st_r + rangeRowCheck.range[1] + 1 || y < 0) {\r\n row_s = st_r + rangeRowCheck.range[1] + 1;\r\n }\r\n } else {\r\n if (row_s < 0 || y < 0) {\r\n row_s = 0;\r\n }\r\n }\r\n\r\n var row_e = rangeSplitArray.content.row[1] - rangeSplitArray.content.row[0] + row_s;\r\n\r\n if (row_e >= visibledatarow.length - 1 || y > winH) {\r\n row_s = visibledatarow.length - 1 - rangeSplitArray.content.row[1] + rangeSplitArray.content.row[0];\r\n row_e = visibledatarow.length - 1;\r\n }\r\n\r\n //\u5217\r\n var col_s =\r\n chartInfo.chart_selection.rangeMoveIndex[1] - chartInfo.chart_selection.rangeMovexy[1] + col_index;\r\n if (rangeColCheck.exits) {\r\n if (col_s < st_c + rangeColCheck.range[1] + 1 || x < 0) {\r\n col_s = st_c + rangeColCheck.range[1] + 1;\r\n }\r\n } else {\r\n if (col_s < 0 || x < 0) {\r\n col_s = 0;\r\n }\r\n }\r\n\r\n var col_e = rangeSplitArray.content.column[1] - rangeSplitArray.content.column[0] + col_s;\r\n\r\n if (col_e >= visibledatacolumn.length - 1 || x > winW) {\r\n col_s =\r\n visibledatacolumn.length -\r\n 1 -\r\n rangeSplitArray.content.column[1] +\r\n rangeSplitArray.content.column[0];\r\n col_e = visibledatacolumn.length - 1;\r\n }\r\n\r\n //\u66F4\u65B0\r\n if (rangeRowCheck.exits && rangeColCheck.exits) {\r\n chart_json.rangeArray = [{ row: [st_r, row_e], column: [st_c, col_e] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [st_r, row_e],\r\n column: [st_c, col_e],\r\n };\r\n\r\n chart_json.rangeSplitArray.content = {\r\n row: [row_s - st_r, row_e - st_r],\r\n column: [col_s - st_c, col_e - st_c],\r\n };\r\n\r\n chart_json.rangeSplitArray.rowtitle = {\r\n row: chart_json.rangeSplitArray.rowtitle.row,\r\n column: [col_s - st_c, col_e - st_c],\r\n };\r\n\r\n chart_json.rangeSplitArray.coltitle = {\r\n row: [row_s - st_r, row_e - st_r],\r\n column: chart_json.rangeSplitArray.coltitle.column,\r\n };\r\n } else if (rangeRowCheck.exits) {\r\n chart_json.rangeArray = [{ row: [st_r, row_e], column: [col_s, col_e] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [st_r, row_e],\r\n column: [col_s, col_e],\r\n };\r\n\r\n chart_json.rangeSplitArray.content = {\r\n row: [row_s - st_r, row_e - st_r],\r\n column: chart_json.rangeSplitArray.content.column,\r\n };\r\n } else if (rangeColCheck.exits) {\r\n chart_json.rangeArray = [{ row: [row_s, row_e], column: [st_c, col_e] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [row_s, row_e],\r\n column: [st_c, col_e],\r\n };\r\n\r\n chart_json.rangeSplitArray.content = {\r\n row: chart_json.rangeSplitArray.content.row,\r\n column: [col_s - st_c, col_e - st_c],\r\n };\r\n } else {\r\n chart_json.rangeArray = [{ row: [row_s, row_e], column: [col_s, col_e] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [row_s, row_e],\r\n column: [col_s, col_e],\r\n };\r\n }\r\n } else if ($id == \"luckysheet-chart-rangeShow-rowtitle\") {\r\n //\u5217\r\n var col_s =\r\n chartInfo.chart_selection.rangeMoveIndex[1] - chartInfo.chart_selection.rangeMovexy[1] + col_index;\r\n\r\n if (rangeColCheck.exits) {\r\n if (col_s < st_c + rangeColCheck.range[1] + 1 || x < 0) {\r\n col_s = st_c + rangeColCheck.range[1] + 1;\r\n }\r\n } else {\r\n if (col_s < 0 || x < 0) {\r\n col_s = 0;\r\n }\r\n }\r\n\r\n var col_e = rangeSplitArray.rowtitle.column[1] - rangeSplitArray.rowtitle.column[0] + col_s;\r\n\r\n if (col_e >= visibledatacolumn.length - 1 || x > winW) {\r\n col_s =\r\n visibledatacolumn.length -\r\n 1 -\r\n rangeSplitArray.rowtitle.column[1] +\r\n rangeSplitArray.rowtitle.column[0];\r\n col_e = visibledatacolumn.length - 1;\r\n }\r\n\r\n //\u66F4\u65B0\r\n if (rangeColCheck.exits) {\r\n chart_json.rangeArray = [{ row: chart_json.rangeArray[0].row, column: [st_c, col_e] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: chart_json.rangeArray[0].row,\r\n column: [st_c, col_e],\r\n };\r\n\r\n chart_json.rangeSplitArray.rowtitle = {\r\n row: chart_json.rangeSplitArray.rowtitle.row,\r\n column: [col_s - st_c, col_e - st_c],\r\n };\r\n chart_json.rangeSplitArray.content = {\r\n row: chart_json.rangeSplitArray.content.row,\r\n column: [col_s - st_c, col_e - st_c],\r\n };\r\n } else {\r\n chart_json.rangeArray = [{ row: chart_json.rangeArray[0].row, column: [col_s, col_e] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: chart_json.rangeArray[0].row,\r\n column: [col_s, col_e],\r\n };\r\n }\r\n } else if ($id == \"luckysheet-chart-rangeShow-coltitle\") {\r\n //\u884C\r\n var row_s =\r\n chartInfo.chart_selection.rangeMoveIndex[0] - chartInfo.chart_selection.rangeMovexy[0] + row_index;\r\n if (rangeRowCheck.exits) {\r\n if (row_s < st_r + rangeRowCheck.range[1] + 1 || y < 0) {\r\n row_s = st_r + rangeRowCheck.range[1] + 1;\r\n }\r\n } else {\r\n if (row_s < 0 || y < 0) {\r\n row_s = 0;\r\n }\r\n }\r\n\r\n //\u66F4\u65B0\r\n var row_e = rangeSplitArray.coltitle.row[1] - rangeSplitArray.coltitle.row[0] + row_s;\r\n\r\n if (row_e >= visibledatarow.length - 1 || y > winH) {\r\n row_s =\r\n visibledatarow.length - 1 - rangeSplitArray.coltitle.row[1] + rangeSplitArray.coltitle.row[0];\r\n row_e = visibledatarow.length - 1;\r\n }\r\n\r\n if (rangeRowCheck.exits) {\r\n chart_json.rangeArray = [{ row: [st_r, row_e], column: chart_json.rangeArray[0].column }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [st_r, row_e],\r\n column: chart_json.rangeArray[0].column,\r\n };\r\n\r\n chart_json.rangeSplitArray.coltitle = {\r\n row: [row_s - st_r, row_e - st_r],\r\n column: chart_json.rangeSplitArray.coltitle.column,\r\n };\r\n chart_json.rangeSplitArray.content = {\r\n row: [row_s - st_r, row_e - st_r],\r\n column: chart_json.rangeSplitArray.content.column,\r\n };\r\n } else {\r\n chart_json.rangeArray = [{ row: [row_s, row_e], column: chart_json.rangeArray[0].column }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [row_s, row_e],\r\n column: chart_json.rangeArray[0].column,\r\n };\r\n }\r\n }\r\n\r\n chartInfo.chart_selection.create();\r\n },\r\n rangeMoveDragged: function() {\r\n chartInfo.chart_selection.rangeMove = false;\r\n\r\n var updateJson = chartInfo.currentChart;\r\n\r\n updateJson.rangeTxt = getRangetxt(\r\n chartInfo.currentSheetIndex,\r\n updateJson.rangeArray[0],\r\n chartInfo.currentSheetIndex,\r\n );\r\n updateJson.chartData = getdatabyselection(updateJson.rangeArray[0], chartInfo.currentSheetIndex);\r\n // \u6E32\u67D3\r\n chartInfo.changeChartRange(\r\n updateJson.chart_id,\r\n updateJson.chartData,\r\n updateJson.rangeArray,\r\n updateJson.rangeTxt,\r\n );\r\n },\r\n rangeResize: false,\r\n rangeResizexy: null,\r\n rangeResizeIndex: null,\r\n rangeResizeObj: null,\r\n rangeResizeDraging: function(event, sheetBarHeight, statisticBarHeight) {\r\n var chart_json = chartInfo.currentChart;\r\n\r\n var st_r = chart_json.rangeArray[0].row[0];\r\n var st_c = chart_json.rangeArray[0].column[0];\r\n var rangeRowCheck = chart_json.rangeRowCheck;\r\n var rangeColCheck = chart_json.rangeColCheck;\r\n var rangeSplitArray = chart_json.rangeSplitArray;\r\n\r\n var mouse = mouseposition(event.pageX, event.pageY);\r\n var scrollLeft = $(\"#luckysheet-cell-main\").scrollLeft();\r\n var scrollTop = $(\"#luckysheet-cell-main\").scrollTop();\r\n\r\n var x = mouse[0] + scrollLeft;\r\n var y = mouse[1] + scrollTop;\r\n\r\n var winH = $(window).height() + scrollTop - sheetBarHeight - statisticBarHeight,\r\n winW = $(window).width() + scrollLeft;\r\n\r\n var rowLocation = _rowLocation(y),\r\n row_index = rowLocation[2];\r\n var colLocation = _colLocation(x),\r\n col_index = colLocation[2];\r\n\r\n var visibledatarow = getvisibledatarow();\r\n var visibledatacolumn = getvisibledatacolumn();\r\n\r\n var $id = chartInfo.chart_selection.rangeResizeObj.attr(\"id\");\r\n\r\n if ($id == \"luckysheet-chart-rangeShow-content\") {\r\n var r1, r2, c1, c2;\r\n\r\n if (chartInfo.chart_selection.rangeResize == \"lt\") {\r\n r1 = chartInfo.chart_selection.rangeResizeIndex.row[0];\r\n c1 = chartInfo.chart_selection.rangeResizeIndex.column[0];\r\n\r\n r2 = chartInfo.chart_selection.rangeResizeIndex.row[1];\r\n c2 = chartInfo.chart_selection.rangeResizeIndex.column[1];\r\n } else if (chartInfo.chart_selection.rangeResize == \"lb\") {\r\n r1 = chartInfo.chart_selection.rangeResizeIndex.row[1];\r\n c1 = chartInfo.chart_selection.rangeResizeIndex.column[0];\r\n\r\n r2 = chartInfo.chart_selection.rangeResizeIndex.row[0];\r\n c2 = chartInfo.chart_selection.rangeResizeIndex.column[1];\r\n } else if (chartInfo.chart_selection.rangeResize == \"rt\") {\r\n r1 = chartInfo.chart_selection.rangeResizeIndex.row[0];\r\n c1 = chartInfo.chart_selection.rangeResizeIndex.column[1];\r\n\r\n r2 = chartInfo.chart_selection.rangeResizeIndex.row[1];\r\n c2 = chartInfo.chart_selection.rangeResizeIndex.column[0];\r\n } else if (chartInfo.chart_selection.rangeResize == \"rb\") {\r\n r1 = chartInfo.chart_selection.rangeResizeIndex.row[1];\r\n c1 = chartInfo.chart_selection.rangeResizeIndex.column[1];\r\n\r\n r2 = chartInfo.chart_selection.rangeResizeIndex.row[0];\r\n c2 = chartInfo.chart_selection.rangeResizeIndex.column[0];\r\n }\r\n\r\n //\u884C\r\n if (rangeRowCheck.exits) {\r\n var row_s = r1 - chartInfo.chart_selection.rangeResizexy[0] + row_index;\r\n\r\n if (row_s < st_r + rangeRowCheck.range[1] + 1 || y < 0) {\r\n row_s = st_r + rangeRowCheck.range[1] + 1;\r\n } else if (row_s >= visibledatarow.length - 1 || y > winH) {\r\n row_s = visibledatarow.length - 1;\r\n }\r\n } else {\r\n var row_s = st_r - chartInfo.chart_selection.rangeResizexy[0] + row_index;\r\n\r\n if (row_s < 0 || y < 0) {\r\n row_s = 0;\r\n } else if (row_s >= visibledatarow.length - 1 || y > winH) {\r\n row_s = visibledatarow.length - 1;\r\n }\r\n }\r\n\r\n //\u5217\r\n if (rangeColCheck.exits) {\r\n var col_s = c1 - chartInfo.chart_selection.rangeResizexy[1] + col_index;\r\n\r\n if (col_s < st_c + rangeColCheck.range[1] + 1 || x < 0) {\r\n col_s = st_c + rangeColCheck.range[1] + 1;\r\n } else if (col_s >= visibledatacolumn.length - 1 || x > winW) {\r\n col_s = visibledatacolumn.length - 1;\r\n }\r\n } else {\r\n var col_s = st_c - chartInfo.chart_selection.rangeResizexy[1] + col_index;\r\n\r\n if (col_s < 0 || x < 0) {\r\n col_s = 0;\r\n } else if (col_s >= visibledatacolumn.length - 1 || x > winW) {\r\n col_s = visibledatacolumn.length - 1;\r\n }\r\n }\r\n\r\n var obj_r1, obj_r2, obj_c1, obj_c2;\r\n\r\n if (row_s > r2) {\r\n obj_r1 = r2;\r\n obj_r2 = row_s;\r\n } else {\r\n obj_r1 = row_s;\r\n obj_r2 = r2;\r\n }\r\n\r\n if (col_s > c2) {\r\n obj_c1 = c2;\r\n obj_c2 = col_s;\r\n } else {\r\n obj_c1 = col_s;\r\n obj_c2 = c2;\r\n }\r\n\r\n if (!rangeRowCheck.exits && !rangeColCheck.exits) {\r\n chart_json.rangeArray = [{ row: [obj_r1, obj_r2], column: [obj_c1, obj_c2] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [obj_r1, obj_r2],\r\n column: [obj_c1, obj_c2],\r\n };\r\n } else {\r\n chart_json.rangeArray = [{ row: [st_r, obj_r2], column: [st_c, obj_c2] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [st_r, obj_r2],\r\n column: [st_c, obj_c2],\r\n };\r\n\r\n chart_json.rangeSplitArray.content = {\r\n row: [obj_r1 - st_r, obj_r2 - st_r],\r\n column: [obj_c1 - st_c, obj_c2 - st_c],\r\n };\r\n\r\n if (rangeRowCheck.exits) {\r\n chart_json.rangeSplitArray.rowtitle = {\r\n row: chart_json.rangeSplitArray.rowtitle.row,\r\n column: [obj_c1 - st_c, obj_c2 - st_c],\r\n };\r\n }\r\n\r\n if (rangeColCheck.exits) {\r\n chart_json.rangeSplitArray.coltitle = {\r\n row: [obj_r1 - st_r, obj_r2 - st_r],\r\n column: chart_json.rangeSplitArray.coltitle.column,\r\n };\r\n }\r\n }\r\n } else if ($id == \"luckysheet-chart-rangeShow-rowtitle\") {\r\n var c1, c2;\r\n\r\n if (chartInfo.chart_selection.rangeResize == \"lt\" || chartInfo.chart_selection.rangeResize == \"lb\") {\r\n c1 = chartInfo.chart_selection.rangeResizeIndex.column[0];\r\n c2 = chartInfo.chart_selection.rangeResizeIndex.column[1];\r\n } else if (\r\n chartInfo.chart_selection.rangeResize == \"rt\" ||\r\n chartInfo.chart_selection.rangeResize == \"rb\"\r\n ) {\r\n c1 = chartInfo.chart_selection.rangeResizeIndex.column[1];\r\n c2 = chartInfo.chart_selection.rangeResizeIndex.column[0];\r\n }\r\n\r\n //\u5217\r\n if (rangeColCheck.exits) {\r\n var col_s = c1 - chartInfo.chart_selection.rangeResizexy[1] + col_index;\r\n\r\n if (col_s < st_c + rangeColCheck.range[1] + 1 || x < 0) {\r\n col_s = st_c + rangeColCheck.range[1] + 1;\r\n } else if (col_s >= visibledatacolumn.length - 1 || x > winW) {\r\n col_s = visibledatacolumn.length - 1;\r\n }\r\n } else {\r\n var col_s = st_c - chartInfo.chart_selection.rangeResizexy[1] + col_index;\r\n\r\n if (col_s < 0 || x < 0) {\r\n col_s = 0;\r\n } else if (col_s >= visibledatacolumn.length - 1 || x > winW) {\r\n col_s = visibledatacolumn.length - 1;\r\n }\r\n }\r\n\r\n var obj_c1, obj_c2;\r\n\r\n if (col_s > c2) {\r\n obj_c1 = c2;\r\n obj_c2 = col_s;\r\n } else {\r\n obj_c1 = col_s;\r\n obj_c2 = c2;\r\n }\r\n\r\n //\u66F4\u65B0\r\n if (!rangeColCheck.exits) {\r\n chart_json.rangeArray = [{ row: chart_json.rangeArray[0].row, column: [obj_c1, obj_c2] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: chart_json.rangeArray[0].row,\r\n column: [obj_c1, obj_c2],\r\n };\r\n } else {\r\n chart_json.rangeArray = [{ row: chart_json.rangeArray[0].row, column: [st_c, obj_c2] }];\r\n chart_json.rangeSplitArray.range = {\r\n row: chart_json.rangeArray[0].row,\r\n column: [st_c, obj_c2],\r\n };\r\n\r\n chart_json.rangeSplitArray.rowtitle = {\r\n row: chart_json.rangeSplitArray.rowtitle.row,\r\n column: [obj_c1 - st_c, obj_c2 - st_c],\r\n };\r\n chart_json.rangeSplitArray.content = {\r\n row: chart_json.rangeSplitArray.content.row,\r\n column: [obj_c1 - st_c, obj_c2 - st_c],\r\n };\r\n }\r\n } else if ($id == \"luckysheet-chart-rangeShow-coltitle\") {\r\n var r1, r2;\r\n\r\n if (chartInfo.chart_selection.rangeResize == \"lt\" || chartInfo.chart_selection.rangeResize == \"rt\") {\r\n r1 = chartInfo.chart_selection.rangeResizeIndex.row[0];\r\n r2 = chartInfo.chart_selection.rangeResizeIndex.row[1];\r\n } else if (\r\n chartInfo.chart_selection.rangeResize == \"lb\" ||\r\n chartInfo.chart_selection.rangeResize == \"rb\"\r\n ) {\r\n r1 = chartInfo.chart_selection.rangeResizeIndex.row[1];\r\n r2 = chartInfo.chart_selection.rangeResizeIndex.row[0];\r\n }\r\n\r\n //\u884C\r\n if (rangeRowCheck.exits) {\r\n var row_s = r1 - chartInfo.chart_selection.rangeResizexy[0] + row_index;\r\n\r\n if (row_s < st_r + rangeRowCheck.range[1] + 1 || y < 0) {\r\n row_s = st_r + rangeRowCheck.range[1] + 1;\r\n } else if (row_s >= visibledatarow.length - 1 || y > winH) {\r\n row_s = visibledatarow.length - 1;\r\n }\r\n } else {\r\n var row_s = st_r - chartInfo.chart_selection.rangeResizexy[0] + row_index;\r\n\r\n if (row_s < 0 || y < 0) {\r\n row_s = 0;\r\n } else if (row_s >= visibledatarow.length - 1 || y > winH) {\r\n row_s = visibledatarow.length - 1;\r\n }\r\n }\r\n\r\n var obj_r1, obj_r2;\r\n\r\n if (row_s > r2) {\r\n obj_r1 = r2;\r\n obj_r2 = row_s;\r\n } else {\r\n obj_r1 = row_s;\r\n obj_r2 = r2;\r\n }\r\n\r\n //\u66F4\u65B0\r\n if (!rangeRowCheck.exits) {\r\n chart_json.rangeArray = [{ row: [obj_r1, obj_r2], column: chart_json.rangeArray[0].column }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [obj_r1, obj_r2],\r\n column: chart_json.rangeArray[0].column,\r\n };\r\n } else {\r\n chart_json.rangeArray = [{ row: [st_r, obj_r2], column: chart_json.rangeArray[0].column }];\r\n chart_json.rangeSplitArray.range = {\r\n row: [st_r, obj_r2],\r\n column: chart_json.rangeArray[0].column,\r\n };\r\n\r\n chart_json.rangeSplitArray.coltitle = {\r\n row: [obj_r1 - st_r, obj_r2 - st_r],\r\n column: chart_json.rangeSplitArray.coltitle.column,\r\n };\r\n chart_json.rangeSplitArray.content = {\r\n row: [obj_r1 - st_r, obj_r2 - st_r],\r\n column: chart_json.rangeSplitArray.content.column,\r\n };\r\n }\r\n }\r\n\r\n chartInfo.chart_selection.create();\r\n },\r\n rangeResizeDragged: function() {\r\n chartInfo.chart_selection.rangeResize = null;\r\n var updateJson = chartInfo.currentChart;\r\n\r\n updateJson.rangeTxt = getRangetxt(\r\n chartInfo.currentSheetIndex,\r\n updateJson.rangeArray[0],\r\n chartInfo.currentSheetIndex,\r\n );\r\n updateJson.chartData = getdatabyselection(updateJson.rangeArray[0], chartInfo.currentSheetIndex);\r\n // \u6E32\u67D3\r\n chartInfo.changeChartRange(\r\n updateJson.chart_id,\r\n updateJson.chartData,\r\n updateJson.rangeArray,\r\n updateJson.rangeTxt,\r\n );\r\n },\r\n };\r\n}\r\n\r\n// create chart\r\nfunction createLuckyChart(width, height, left, top) {\r\n //\u5982\u679C\u53EA\u9009\u4E2D\u4E00\u4E2A\u5355\u5143\u683C\uFF0C\u5219\u81EA\u52A8\u586B\u5145\u9009\u53D6\r\n var jfgird_select_save = luckysheet.getluckysheet_select_save();\r\n if (\r\n jfgird_select_save.length == 1 &&\r\n jfgird_select_save[0].row[0] == jfgird_select_save[0].row[1] &&\r\n jfgird_select_save[0].column[0] == jfgird_select_save[0].column[1]\r\n ) {\r\n luckysheetMoveHighlightRange2(\"right\", \"rangeOfSelect\");\r\n\r\n luckysheetMoveHighlightRange2(\"down\", \"rangeOfSelect\");\r\n\r\n jfgird_select_save = luckysheet.getluckysheet_select_save();\r\n }\r\n //\u5904\u7406\u53F3\u8FB9\u7684\u7A7A\u767D\u5355\u5143\u683C\uFF0C\u81EA\u52A8\u7565\u8FC7\u5E76\u4FEE\u6539\u9009\u533A ---------------start\r\n var shiftpositon_row = -1;\r\n\r\n var row_ed = jfgird_select_save[0][\"row\"][1] - jfgird_select_save[0][\"row\"][0];\r\n for (var r = jfgird_select_save[0][\"row\"][0]; r <= jfgird_select_save[0][\"row\"][1]; r++) {\r\n for (var c = jfgird_select_save[0][\"column\"][0]; c <= jfgird_select_save[0][\"column\"][1]; c++) {\r\n var value = getcellvalue(r, c, luckysheet.flowdata());\r\n //console.log(\"value,r,c\",value,r,c);\r\n if (value != null && value.toString().length > 0) {\r\n shiftpositon_row = r;\r\n break;\r\n }\r\n }\r\n\r\n if (shiftpositon_row !== -1) {\r\n break;\r\n }\r\n }\r\n\r\n if (shiftpositon_row == -1) {\r\n shiftpositon_row = 0;\r\n }\r\n\r\n jfgird_select_save[0][\"row\"] = [shiftpositon_row, shiftpositon_row];\r\n jfgird_select_save[0].row_focus = shiftpositon_row;\r\n luckysheet.setluckysheet_select_save(jfgird_select_save);\r\n\r\n chartInfo.luckysheet_shiftpositon = $.extend(true, {}, jfgird_select_save[0]);\r\n luckysheetMoveEndCell(\"down\", \"range\", false, row_ed);\r\n jfgird_select_save = luckysheet.getluckysheet_select_save();\r\n\r\n var shiftpositon_col = -1;\r\n var column_ed = jfgird_select_save[0][\"column\"][1] - jfgird_select_save[0][\"column\"][0];\r\n for (var c = jfgird_select_save[0][\"column\"][0]; c <= jfgird_select_save[0][\"column\"][1]; c++) {\r\n for (var r = jfgird_select_save[0][\"row\"][0]; r <= jfgird_select_save[0][\"row\"][1]; r++) {\r\n var value = getcellvalue(r, c, luckysheet.flowdata());\r\n if (value != null && value.toString().length > 0) {\r\n shiftpositon_col = c;\r\n break;\r\n }\r\n }\r\n\r\n if (shiftpositon_col !== -1) {\r\n break;\r\n }\r\n }\r\n\r\n if (shiftpositon_col == -1) {\r\n shiftpositon_col = 0;\r\n }\r\n\r\n jfgird_select_save[0][\"column\"] = [shiftpositon_col, shiftpositon_col];\r\n jfgird_select_save[0].column_focus = shiftpositon_col;\r\n luckysheet.setluckysheet_select_save(jfgird_select_save);\r\n\r\n chartInfo.luckysheet_shiftpositon = $.extend(true, {}, jfgird_select_save[0]);\r\n luckysheetMoveEndCell(\"right\", \"range\", false, column_ed);\r\n jfgird_select_save = luckysheet.getluckysheet_select_save();\r\n\r\n var rangeArray = $.extend(true, [], jfgird_select_save);\r\n\r\n var rangeTxt = getRangetxt(chartInfo.currentSheetIndex, rangeArray[0], chartInfo.currentSheetIndex);\r\n\r\n let chartData = getdatabyselection();\r\n console.dir(chartData);\r\n\r\n let chart_id = generateRandomKey(\"chart\");\r\n\r\n let chart_id_c = chart_id + \"_c\";\r\n\r\n let modelChartShowHTML =\r\n '
${content}
';\r\n\r\n let $t = $(\r\n replaceHtml(modelChartShowHTML, {\r\n id: chart_id_c,\r\n addclass: \"luckysheet-data-visualization-chart\",\r\n title: \"\u56FE\u8868\u751F\u6210\",\r\n content: \"\",\r\n }),\r\n ).appendTo($(\".luckysheet-cell-main\"));\r\n\r\n let container = document.getElementById(chart_id_c);\r\n\r\n let { render, chart_json } = chartInfo.createChart(\r\n $(`#${chart_id_c}`).children(\".luckysheet-modal-dialog-content\")[0],\r\n chartData,\r\n chart_id,\r\n rangeArray,\r\n rangeTxt,\r\n );\r\n // chartInfo.currentChart = chart_json.chartOptions\r\n // console.dir(JSON.stringify(chart_json));\r\n\r\n width = width ? width : 400;\r\n height = height ? height : 250;\r\n left = left ? left : 0;\r\n top = top ? top : 0;\r\n container.style.width = width + \"px\";\r\n container.style.height = height + \"px\";\r\n container.style.position = \"absolute\";\r\n container.style.background = \"#fff\";\r\n container.style.left = left + \"px\";\r\n container.style.top = top + \"px\";\r\n render.style.width = \"100%\";\r\n render.style.height = \"100%\";\r\n container.style.zIndex = chartInfo.zIndex ? chartInfo.zIndex : 15;\r\n chartInfo.zIndex++;\r\n\r\n // insert chartinfo\r\n let sheetFile = chartInfo.luckysheetfile[getSheetIndex(chartInfo.currentSheetIndex)];\r\n\r\n if (!sheetFile.chart) {\r\n sheetFile.chart = [];\r\n }\r\n sheetFile.chart.push({\r\n chart_id,\r\n width,\r\n height,\r\n left,\r\n top,\r\n chartOptions: chart_json.chartOptions,\r\n sheetIndex: sheetFile.index,\r\n });\r\n\r\n //\u5904\u7406\u533A\u57DF\u9AD8\u4EAE\u6846\u53C2\u6570\uFF0C\u5F53\u524D\u9875\u4E2D\uFF0C\u53EA\u6709\u5F53\u524D\u7684\u56FE\u8868\u7684needRangShow\u4E3Atrue,\u5176\u4ED6\u4E3Afalse\r\n showNeedRangeShow(chart_id);\r\n\r\n // delete current chart\r\n $(`#${chart_id}_c .luckysheet-modal-controll-del`).click(function(e) {\r\n delChart(chart_id);\r\n });\r\n\r\n setChartMoveableEffect($t);\r\n\r\n // edit current chart\r\n $(`#${chart_id}_c .luckysheet-modal-controll-update`).click(function(e) {\r\n showChartSettingComponent();\r\n });\r\n\r\n $t.children(\".luckysheet-modal-dialog-content\").mousedown(function(e) {\r\n if (!chartInfo.chartparam.luckysheetCurrentChartMaxState) {\r\n //\u5F53\u524D\u56FE\u8868\u663E\u793A\u533A\u57DF\u9AD8\u4EAE\r\n showNeedRangeShow(chart_id);\r\n }\r\n e.stopPropagation();\r\n });\r\n $t.mousedown(function(e) {\r\n //move chart\r\n\r\n if (!chartInfo.chartparam.luckysheetCurrentChartMaxState) {\r\n //\u5F53\u524D\u56FE\u8868\u663E\u793A\u533A\u57DF\u9AD8\u4EAE\r\n showNeedRangeShow(chart_id);\r\n setluckysheet_scroll_status(true);\r\n\r\n //\u5141\u8BB8\u62D6\u52A8\u6E32\u67D3\u6846\r\n if (\r\n !$(e.target).is(\".luckysheet-modal-dialog-controll\") &&\r\n !$(e.target).is(\".luckysheet-modal-controll-btn\") &&\r\n !$(e.target).is(\"i\")\r\n ) {\r\n // Debounce\r\n chartInfo.chartparam.luckysheetCurrentChartMoveTimeout = setTimeout(function() {\r\n chartInfo.chartparam.luckysheetCurrentChartMove = true;\r\n }, 100);\r\n }\r\n\r\n var toffset = chartInfo.chartparam.luckysheetCurrentChartMoveObj.offset();\r\n var tpsition = chartInfo.chartparam.luckysheetCurrentChartMoveObj.position();\r\n //luckysheetCurrentChartMoveXy: [\u9F20\u6807\u70B9\u76F8\u5BF9chart\u6846\u7684\u8DDD\u79BBX\u65B9\u5411\uFF0C\u9F20\u6807\u70B9\u76F8\u5BF9chart\u6846\u7684\u8DDD\u79BBY\u65B9\u5411\uFF0Cchart\u6846\u76F8\u5BF9cell-main\u7684\u8DDD\u79BBX\u65B9\u5411\uFF0Cchart\u6846\u76F8\u5BF9cell-main\u7684\u8DDD\u79BBY\u65B9\u5411\uFF0C\u6C34\u5E73\u6EDA\u52A8\u6761\u7684\u4F4D\u7F6E\uFF0C\u5782\u76F4\u6EDA\u52A8\u6761\u7684\u4F4D\u7F6E]\r\n chartInfo.chartparam.luckysheetCurrentChartMoveXy = [\r\n e.pageX - toffset.left,\r\n e.pageY - toffset.top,\r\n tpsition.left,\r\n tpsition.top,\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(),\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(),\r\n ];\r\n chartInfo.chartparam.luckysheetCurrentChartMoveWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n chartInfo.chartparam.luckysheetCurrentChartMoveWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n\r\n if (\r\n !$(e.target).hasClass(\"luckysheet-mousedown-cancel\") &&\r\n $(e.target).filter(\"[class*='sp-palette']\").length == 0 &&\r\n $(e.target).filter(\"[class*='sp-thumb']\").length == 0 &&\r\n $(e.target).filter(\"[class*='sp-']\").length == 0\r\n ) {\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-cols-h-hover\").hide();\r\n $(\"#luckysheet-cols-menu-btn\").hide();\r\n $(\"#luckysheet-rightclick-menu\").hide();\r\n $(\"#luckysheet-sheet-list, #luckysheet-rightclick-sheet-menu, #luckysheet-user-menu\").hide();\r\n $(\r\n \"body > .luckysheet-filter-menu, body > .luckysheet-filter-submenu, body > .luckysheet-cols-menu\",\r\n ).hide();\r\n }\r\n\r\n e.stopPropagation();\r\n }\r\n })\r\n .find(\".luckysheet-modal-dialog-resize-item\")\r\n .mousedown(function(e) {\r\n if (chartInfo.chartparam.luckysheetCurrentChartActive) {\r\n chartInfo.chartparam.luckysheetCurrentChartResize = $(this).data(\"type\"); //\u5F00\u59CB\u72B6\u6001resize\r\n\r\n var mouse = mouseposition(e.pageX, e.pageY),\r\n scrollLeft = $(\"#luckysheet-scrollbar-x\").scrollLeft(),\r\n scrollTop = $(\"#luckysheet-scrollbar-y\").scrollTop();\r\n var x = mouse[0] + scrollLeft;\r\n var y = mouse[1] + scrollTop;\r\n var position = chartInfo.chartparam.luckysheetCurrentChartResizeObj.position();\r\n //\u53C2\u6570\uFF1Ax,y:\u9F20\u6807\u4F4D\u7F6E\uFF0C$t.width(), $t.height(): chart\u6846\u5BBD\u9AD8\uFF0C position.left + scrollLeft, position.top + scrollTop \uFF1Achart\u6846\u4F4D\u7F6E \uFF0CscrollLeft, scrollTop\uFF1A\u6EDA\u52A8\u6761\u4F4D\u7F6E\r\n chartInfo.chartparam.luckysheetCurrentChartResizeXy = [\r\n x,\r\n y,\r\n $t.width(),\r\n $t.height(),\r\n position.left + scrollLeft,\r\n position.top + scrollTop,\r\n scrollLeft,\r\n scrollTop,\r\n ];\r\n chartInfo.chartparam.luckysheetCurrentChartResizeWinH = $(\"#luckysheet-cell-main\")[0].scrollHeight;\r\n chartInfo.chartparam.luckysheetCurrentChartResizeWinW = $(\"#luckysheet-cell-main\")[0].scrollWidth;\r\n\r\n chartInfo.chartparam.luckysheetCurrentChart = chart_id;\r\n\r\n e.stopPropagation();\r\n }\r\n });\r\n\r\n // \u5C06\u56FE\u8868\u7684\u5750\u6807\u4FE1\u606F\u66F4\u65B0\u5230sheetFile\u4E2D\r\n $(`#${chart_id}_c`).mouseup(function(e) {\r\n const w = $(this).css(\"width\");\r\n const h = $(this).css(\"height\");\r\n const t = $(this).css(\"top\");\r\n const l = $(this).css(\"left\");\r\n\r\n // insert chartinfo\r\n let sheetFile = chartInfo.luckysheetfile[getSheetIndex(chartInfo.currentSheetIndex)];\r\n\r\n if (!sheetFile.chart) {\r\n sheetFile.chart = [];\r\n }\r\n\r\n sheetFile.chart.forEach((item) => {\r\n if (item.chart_id === chart_id) {\r\n item.width = parseFloat(w);\r\n item.height = parseFloat(h);\r\n item.left = parseFloat(l);\r\n item.top = parseFloat(t);\r\n }\r\n });\r\n });\r\n}\r\n\r\n/**\r\n * \u8BBE\u7F6E\u56FE\u8868\u53EF\u62D6\u52A8\u533A\u57DF\u9AD8\u4EAE\u6548\u679C\uFF0C\u9F20\u6807\u7ECF\u8FC7\u53EF\u62D6\u52A8\u533A\u57DF\u65F6\u9F20\u6807\u663E\u793A\u201C\u5341\u5B57\u201D\uFF0C\u4E0D\u53EF\u62D6\u52A8\u533A\u57DF\u663E\u793A\u7BAD\u5934\r\n * @param {JQuery} $container \u56FE\u8868\u7684\u5BB9\u5668DIV\r\n */\r\nfunction setChartMoveableEffect($container) {\r\n $container.find(\".luckysheet-modal-dialog-content\").hover(\r\n function() {\r\n $container.removeClass(\"chart-moveable\");\r\n },\r\n function() {\r\n $container.addClass(\"chart-moveable\");\r\n },\r\n );\r\n\r\n $container.hover(\r\n function() {\r\n $container.addClass(\"chart-moveable\");\r\n },\r\n function() {\r\n $container.removeClass(\"chart-moveable\");\r\n },\r\n );\r\n}\r\n// delete chart\r\nfunction delChart(chart_id) {\r\n // delete container\r\n $(`.luckysheet-cell-main #${chart_id}_c`).remove();\r\n\r\n // Hide selected range\r\n hideAllNeedRangeShow();\r\n\r\n // delete storage\r\n let sheetFile = chartInfo.luckysheetfile[getSheetIndex(chartInfo.currentSheetIndex)];\r\n let index = sheetFile.chart.findIndex((item) => item.chart_id == chart_id);\r\n sheetFile.chart.splice(index, 1);\r\n // api call\r\n chartInfo.deleteChart(chart_id);\r\n}\r\n\r\n//\u8BBE\u7F6E\u67D0\u4E2A\u56FE\u8868\u7684\u9AD8\u4EAE\u533A\u57DF\u72B6\u6001\u4E3A\u663E\u793A,\u5904\u7406\u5F53\u524D\u9875\u7684\u6240\u6709\u56FE\u8868\uFF0C\u53EA\u53D6\u4E00\u4E2A\u56FE\u8868\u8BBE\u7F6E\u4E3A\u663E\u793A\uFF0C\u5176\u4ED6\u9690\u85CF\uFF0C\u5176\u4ED6\u9875\u4E0D\u7BA1\r\nfunction showNeedRangeShow(chart_id) {\r\n let chartLists = chartInfo.luckysheetfile[getSheetIndex(chartInfo.currentSheetIndex)].chart;\r\n\r\n for (let chartId in chartLists) {\r\n // if (chartLists[chartId].sheetIndex == chartInfo.currentSheetIndex) {\r\n //\u5F53\u524Dsheet\u7684\u56FE\u8868\u5148\u8BBE\u7F6E\u4E3Afalse\r\n chartLists[chartId].needRangeShow = false;\r\n if (chartLists[chartId].chart_id == chart_id) {\r\n chartLists[chartId].needRangeShow = true;\r\n\r\n chartInfo.currentChart = chartInfo.getChartJson(chart_id);\r\n }\r\n // }\r\n }\r\n\r\n //\u64CD\u4F5CDOM\u5F53\u524D\u56FE\u8868\u9009\u62E9\u533A\u57DF\u9AD8\u4EAE\r\n selectRangeBorderShow(chart_id);\r\n}\r\n//\u9690\u85CF\u5F53\u524Dsheet\u6240\u6709\u7684\u56FE\u8868\u9AD8\u4EAE\u533A\u57DF\r\nfunction hideAllNeedRangeShow() {\r\n let chartLists = chartInfo.luckysheetfile[getSheetIndex(chartInfo.currentSheetIndex)].chart;\r\n for (let chartId in chartLists) {\r\n // if (chartLists[chartId].sheetIndex == chartInfo.currentSheetIndex) {\r\n //\u5F53\u524Dsheet\u7684\u56FE\u8868\u8BBE\u7F6E\u4E3Afalse\r\n chartLists[chartId].needRangeShow = false;\r\n // }\r\n }\r\n\r\n //\u64CD\u4F5CDOM \u5F53\u524D\u56FE\u8868\u9009\u62E9\u533A\u57DF\u9690\u85CF\r\n selectRangeBorderHide();\r\n}\r\n\r\n//\u9009\u62E9\u533A\u57DF\u9AD8\u4EAE\r\nfunction selectRangeBorderShow(chart_id) {\r\n let $t = $(\"#\" + chart_id + \"_c\");\r\n\r\n // Highlight of data range\r\n chartInfo.chart_selection.create();\r\n\r\n chartInfo.chartparam.luckysheetCurrentChartActive = true;\r\n chartInfo.chartparam.luckysheetCurrentChartMoveObj = $t;\r\n chartInfo.chartparam.luckysheetCurrentChartResizeObj = $t;\r\n chartInfo.chartparam.luckysheetCurrentChart = chart_id;\r\n\r\n //luckysheet\u53D6cell-main\uFF0C\u540E\u7EED\u6269\u5C55\u5230\u5176\u4ED6\u7684\u7528\u6237\u81EA\u5B9A\u4E49\u5143\u7D20\r\n $(\"#luckysheet-cell-main\")\r\n .find(\".luckysheet-modal-dialog-chart .luckysheet-modal-dialog-resize\")\r\n .hide();\r\n $(\"#luckysheet-cell-main\")\r\n .find(\".luckysheet-modal-dialog-chart .luckysheet-modal-dialog-controll\")\r\n .hide();\r\n\r\n $t.css(\"z-index\", chartInfo.chartparam.luckysheetCurrentChartZIndexRank++);\r\n $t.find(\".luckysheet-modal-dialog-resize\").show();\r\n $t.find(\".luckysheet-modal-dialog-controll\").show();\r\n\r\n if (\r\n ($(\".chartSetting\").is(\":visible\") || chartInfo.chartparam.luckysheet_chart_redo_click) &&\r\n chart_id != chartInfo.chartparam.luckysheetCurrentChart\r\n ) {\r\n // TODO: \u7B2C\u4E00\u6B21\u521B\u5EFA\u56FE\u8868\u65F6\u5019\u9700\u8981\u521D\u59CB\u5316\u6570\u636E\u9009\u62E9\u6846 qkSelection\r\n // generator.ini(chartMixConfig)\r\n $(\"body .luckysheet-cols-menu\").hide();\r\n }\r\n\r\n // \u5207\u6362\u5230\u5F53\u524D\u56FE\u8868\u8BBE\u7F6E\u9879\r\n chartInfo.currentChart = chartInfo.highlightChart(chart_id);\r\n}\r\n\r\n//\u9009\u62E9\u533A\u57DF\u9AD8\u4EAE\u9690\u85CF\r\nfunction selectRangeBorderHide(settingShow) {\r\n $(\r\n \"#luckysheet-cell-main .luckysheet-modal-dialog-chart .luckysheet-modal-dialog-resize, #luckysheet-cell-main .luckysheet-modal-dialog-chart .luckysheet-modal-dialog-controll\",\r\n ).hide();\r\n $(\"#luckysheet-cell-main\")\r\n .find(\".luckysheet-datavisual-selection-set div\")\r\n .remove();\r\n chartInfo.chartparam.luckysheetCurrentChartActive = false;\r\n\r\n $(\"#luckysheet-chart-rangeShow\").empty();\r\n\r\n //\u6807\u8BC6\uFF1A\u662F\u5426\u5904\u7406\u8BBE\u7F6E\u754C\u9762\r\n if (!settingShow && $(\".chartSetting\").is(\":visible\") && !isEditMode()) {\r\n hideChartSettingComponent();\r\n }\r\n}\r\n\r\n// \u663E\u793A\u56FE\u8868\u8BBE\u7F6E\u754C\u9762\r\nfunction showChartSettingComponent(refresh, chart_id) {\r\n if (!$(\".chartSetting\").is(\":visible\")) {\r\n //\u9690\u85CF\u8BBE\u7F6E\u754C\u9762\r\n $(\".chartSetting\").show();\r\n\r\n $(\"#luckysheet-cell-main\")\r\n .find(\".luckysheet-datavisual-selection-set div\")\r\n .show();\r\n chartInfo.chartparam.luckysheetCurrentChartActive = true;\r\n setTimeout(function() {\r\n luckysheetsizeauto();\r\n }, 0);\r\n }\r\n}\r\n\r\n// \u9690\u85CF\u56FE\u8868\u8BBE\u7F6E\u754C\u9762\r\nfunction hideChartSettingComponent(refresh) {\r\n if ($(\".chartSetting\").is(\":visible\")) {\r\n //\u9690\u85CF\u8BBE\u7F6E\u754C\u9762\r\n $(\".chartSetting\").hide();\r\n //.luckysheet-modal-dialog-resize\u4E3A\u56FE\u8868\u663E\u793A\u6846\u7684\u7F29\u653E\u6846\uFF0C.luckysheet-modal-dialog-controll\u4E3A\u663E\u793A\u6846\u53F3\u8FB9\u7684\u63A7\u5236\u6309\u94AE\r\n $(\r\n \"#luckysheet-cell-main .luckysheet-modal-dialog-chart .luckysheet-modal-dialog-resize, #luckysheet-cell-main .luckysheet-modal-dialog-chart .luckysheet-modal-dialog-controll\",\r\n ).hide();\r\n\r\n $(\"#luckysheet-cell-main\")\r\n .find(\".luckysheet-datavisual-selection-set div\")\r\n .remove();\r\n\r\n chartInfo.chartparam.luckysheetCurrentChartActive = false;\r\n if (!isEditMode() && !refresh) {\r\n setTimeout(function() {\r\n luckysheetsizeauto();\r\n }, 0);\r\n }\r\n }\r\n}\r\n\r\n// \u9690\u85CF\u5176\u4ED6sheet\u7684\u56FE\u8868\uFF0C\u663E\u793A\u5F53\u524Dsheet\u7684\u56FE\u8868 chartMix \u5207\u6362sheet\u9875\u663E\u793A\u9690\u85CF\u56FE\u8868\r\nfunction renderChartShow(index) {\r\n //\u4F20\u5165index\uFF0C\u56FE\u8868\u663E\u793A\u9690\u85CF\r\n selectRangeBorderHide(\"true\"); //\u9690\u85CF\u6570\u636E\u9AD8\u4EAE\u533A\u57DF\uFF0C\u968F\u610F\u4F20\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32\uFF0C\u8868\u793A\u4E0D\u5904\u7406chartSetting\u754C\u9762\r\n\r\n const luckysheetfile = chartInfo.luckysheetfile;\r\n luckysheetfile.forEach((file) => {\r\n //\u5207\u6362\u5F53\u524D\u9875\u7684\u6240\u6709\u56FE\u8868\u90FD\u663E\u793A\u51FA\u6765\r\n if (file.index == index) {\r\n const chartLists = file.chart || [];\r\n\r\n chartLists.forEach((chart) => {\r\n chart.isShow = true;\r\n $(\"#\" + chart.chart_id + \"_c\").show();\r\n\r\n chartInfo.resizeChart(chart.chart_id);\r\n\r\n if (chart.needRangeShow == true) {\r\n //\u4E00\u4E2Asheet\u9875\u53EA\u6709\u4E00\u4E2A\u56FE\u8868\u9AD8\u4EAE\u663E\u793A,//\u91CD\u8981\uFF01\u56E0\u4E3A\u5728store\u4E86\u505A\u4E86\u5B58\u50A8\uFF0C\u6240\u4EE5\u80FD\u5728\u6B64\u5904\u627E\u5230\u5BF9\u5E94\u56FE\u8868\u8BBE\u7F6E\u663E\u793A\u9690\u85CF\r\n //\u64CD\u4F5CDOM\u5F53\u524D\u56FE\u8868\u9009\u62E9\u533A\u57DF\u9AD8\u4EAE\r\n chartInfo.currentChart = chartInfo.getChartJson(chart.chart_id);\r\n selectRangeBorderShow(chart.chart_id);\r\n }\r\n });\r\n }\r\n\r\n // \u9690\u85CF\u5176\u4ED6\u9875\u7684\u56FE\u8868\r\n else {\r\n const chartLists = file.chart || [];\r\n\r\n chartLists.forEach((chart) => {\r\n chart.isShow = false;\r\n $(\"#\" + chart.chart_id + \"_c\").hide();\r\n });\r\n }\r\n });\r\n}\r\n\r\nexport { chart, createLuckyChart, hideAllNeedRangeShow, renderChartShow };\r\n", "import Store from '../store';\r\nimport locale from '../locale/locale';\r\nimport { replaceHtml } from '../utils/util';\r\nimport sheetmanage from './sheetmanage';\r\nimport {changeSheetContainerSize} from './resize';\r\nimport { jfrefreshgrid_rhcw } from '../global/refresh';\r\nimport server from './server';\r\nimport luckysheetPostil from './postil';\r\nimport imageCtrl from './imageCtrl';\r\n\r\n\r\n\r\nlet luckysheetZoomTimeout = null;\r\n\r\nexport function zoomChange(ratio){\r\n if(Store.flowdata==null || Store.flowdata.length==0){\r\n return;\r\n }\r\n\r\n clearTimeout(luckysheetZoomTimeout);\r\n luckysheetZoomTimeout = setTimeout(() => {\r\n if (Store.clearjfundo) {\r\n Store.jfredo.push({ \r\n \"type\": \"zoomChange\", \r\n \"zoomRatio\": Store.zoomRatio, \r\n \"curZoomRatio\": ratio, \r\n \"sheetIndex\": Store.currentSheetIndex, \r\n });\r\n }\r\n currentWheelZoom = null;\r\n Store.zoomRatio = ratio;\r\n\r\n let currentSheet = sheetmanage.getSheetByIndex();\r\n\r\n //\u6279\u6CE8\r\n luckysheetPostil.buildAllPs(currentSheet.data);\r\n\r\n //\u56FE\u7247\r\n imageCtrl.images = currentSheet.images;\r\n imageCtrl.allImagesShow();\r\n imageCtrl.init();\r\n\r\n if(currentSheet.config==null){\r\n currentSheet.config = {};\r\n }\r\n \r\n if(currentSheet.config.sheetViewZoom==null){\r\n currentSheet.config.sheetViewZoom = {};\r\n }\r\n\r\n let type = currentSheet.config.curentsheetView;\r\n if(type==null){\r\n type = \"viewNormal\";\r\n }\r\n currentSheet.config.sheetViewZoom[type+\"ZoomScale\"] = ratio;\r\n \r\n server.saveParam(\"all\", Store.currentSheetIndex, Store.zoomRatio, { \"k\": \"zoomRatio\" });\r\n server.saveParam(\"cg\", Store.currentSheetIndex, currentSheet.config[\"sheetViewZoom\"], { \"k\": \"sheetViewZoom\" });\r\n\r\n zoomRefreshView();\r\n }, 100);\r\n \r\n}\r\n\r\nexport function zoomRefreshView(){\r\n // let $scrollLeft = $(\"#luckysheet-scrollbar-x\"), $scrollTop = $(\"#luckysheet-scrollbar-y\");\r\n // let sl = $scrollLeft.scrollLeft(), st = $scrollTop.scrollTop();\r\n\r\n // let wp = $scrollLeft.find(\"div\").width(), hp = $scrollTop.find(\"div\").height();\r\n\r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length);\r\n changeSheetContainerSize();\r\n\r\n // let wc = $scrollLeft.find(\"div\").width(), hc = $scrollTop.find(\"div\").height();\r\n\r\n // $scrollLeft.scrollLeft(sl+wc-wp);\r\n // $scrollTop.scrollTop(st+hc-hp);\r\n}\r\n\r\nlet currentWheelZoom = null;\r\nexport function zoomInitial(){\r\n\r\n // \u7F29\u653E\u6B65\u957F\r\n const ZOOM_WHEEL_STEP = 0.02; // ctrl + \u9F20\u6807\u6EDA\u8F6E\r\n const ZOOM_STEP = 0.1; // \u70B9\u51FB\u4EE5\u53CA Ctrl + +-\r\n \r\n // \u7F29\u653E\u6700\u5927\u6700\u5C0F\u6BD4\u4F8B\r\n const MAX_ZOOM_RATIO = 4;\r\n const MIN_ZOOM_RATIO = .1;\r\n \r\n $(\"#luckysheet-zoom-minus\").click(function(){\r\n let currentRatio;\r\n if(Store.zoomRatio==null){\r\n currentRatio = Store.zoomRatio = 1;\r\n }\r\n else{\r\n currentRatio = Math.ceil(Store.zoomRatio*10)/10;\r\n }\r\n\r\n currentRatio = currentRatio-ZOOM_STEP;\r\n\r\n if(currentRatio==Store.zoomRatio){\r\n currentRatio = currentRatio-ZOOM_STEP;\r\n }\r\n\r\n if(currentRatio<=MIN_ZOOM_RATIO){\r\n currentRatio = MIN_ZOOM_RATIO;\r\n }\r\n\r\n // Store.zoomRatio = currentRatio;\r\n zoomChange(currentRatio);\r\n zoomNumberDomBind(currentRatio);\r\n });\r\n\r\n $(\"#luckysheet-zoom-plus\").click(function(){\r\n let currentRatio;\r\n if(Store.zoomRatio==null){\r\n currentRatio = Store.zoomRatio = 1;\r\n }\r\n else{\r\n currentRatio = Math.floor(Store.zoomRatio*10)/10;\r\n }\r\n\r\n currentRatio = currentRatio+ZOOM_STEP;\r\n\r\n if(currentRatio==Store.zoomRatio){\r\n currentRatio = currentRatio+ZOOM_STEP;\r\n }\r\n\r\n if(currentRatio>=MAX_ZOOM_RATIO){\r\n currentRatio = MAX_ZOOM_RATIO;\r\n }\r\n\r\n // Store.zoomRatio = currentRatio;\r\n zoomChange(currentRatio);\r\n zoomNumberDomBind(currentRatio);\r\n });\r\n\r\n $(\"#luckysheet-zoom-slider\").mousedown(function(e){\r\n let xoffset = $(this).offset().left, pageX = e.pageX;\r\n\r\n let currentRatio = positionToRatio(pageX-xoffset);\r\n // Store.zoomRatio = currentRatio;\r\n zoomChange(currentRatio);\r\n zoomNumberDomBind(currentRatio);\r\n });\r\n\r\n $(\"#luckysheet-zoom-cursor\").mousedown(function(e){\r\n let curentX = e.pageX,cursorLeft = parseFloat($(\"#luckysheet-zoom-cursor\").css(\"left\"));\r\n $(\"#luckysheet-zoom-cursor\").css(\"transition\",\"none\");\r\n $(document).off(\"mousemove.zoomCursor\").on(\"mousemove.zoomCursor\",function(event){\r\n let moveX = event.pageX;\r\n let offsetX = moveX - curentX;\r\n // console.log(moveX, curentX, offsetX);\r\n // curentX = moveX;\r\n // let left = parseFloat($(\"#luckysheet-zoom-cursor\").css(\"left\"));\r\n let pos = cursorLeft + offsetX; \r\n let currentRatio = positionToRatio(pos);\r\n\r\n if(currentRatio>MAX_ZOOM_RATIO){\r\n currentRatio = MAX_ZOOM_RATIO;\r\n pos = 100;\r\n }\r\n\r\n if(currentRatio= MAX_ZOOM_RATIO) {\r\n currentWheelZoom = MAX_ZOOM_RATIO;\r\n } else if (currentWheelZoom < MIN_ZOOM_RATIO) {\r\n currentWheelZoom = MIN_ZOOM_RATIO;\r\n }\r\n zoomChange(currentWheelZoom);\r\n zoomNumberDomBind(currentWheelZoom);\r\n ev.preventDefault();\r\n ev.stopPropagation();\r\n },\r\n { capture: true, passive: false }\r\n );\r\n\r\n // \u62E6\u622A\u7CFB\u7EDF\u7F29\u653E\u5FEB\u6377\u952E Ctrl + +/- 0\r\n document.addEventListener(\r\n 'keydown',\r\n function (ev) {\r\n if (!ev.ctrlKey) {\r\n return;\r\n }\r\n let handled = false;\r\n let zoom = Store.zoomRatio || 1;\r\n if (ev.key === '-' || ev.which === 189) {\r\n zoom -= ZOOM_STEP;\r\n handled = true;\r\n } else if (ev.key === '+' || ev.which === 187) {\r\n zoom += ZOOM_STEP;\r\n handled = true;\r\n } else if (ev.key === '0' || ev.which === 48) {\r\n zoom = 1;\r\n handled = true;\r\n }\r\n \r\n if (handled) {\r\n ev.preventDefault();\r\n if (zoom >= MAX_ZOOM_RATIO) {\r\n zoom = MAX_ZOOM_RATIO;\r\n } else if (zoom < MIN_ZOOM_RATIO) {\r\n zoom = MIN_ZOOM_RATIO;\r\n }\r\n zoomChange(zoom);\r\n zoomNumberDomBind(zoom);\r\n }\r\n },\r\n { capture: true }\r\n );\r\n}\r\n\r\nfunction positionToRatio(pos){\r\n let ratio = 1;\r\n if(pos<50){\r\n ratio = Math.round((pos*1.8/100 + 0.1)*100)/100;\r\n }\r\n else if(pos>50){\r\n ratio = Math.round(((pos-50)*6/100 + 1)*100)/100;\r\n }\r\n\r\n return ratio;\r\n}\r\n\r\nfunction zoomSlierDomBind(ratio){\r\n let domPos = 50;\r\n if(ratio<1){\r\n domPos = Math.round((ratio - 0.1)*100 / 0.18)/10;\r\n }\r\n else if(ratio>1){\r\n domPos = Math.round((ratio - 1)*100 / 0.6)/10+50;\r\n }\r\n $(\"#luckysheet-zoom-cursor\").css(\"left\", domPos-4);\r\n}\r\n\r\nexport function zoomNumberDomBind(ratio){\r\n let r = Math.round(ratio*100) + \"%\";\r\n $(\"#luckysheet-zoom-ratioText\").html(r);\r\n zoomSlierDomBind(ratio);\r\n}\r\n\r\n", "import { isEditMode } from \"../global/validate\";\r\nimport cleargridelement from \"../global/cleargridelement\";\r\nimport { getdatabyselectionD, getcellvalue, datagridgrowth, getcellFormula } from \"../global/getdata\";\r\nimport { setcellvalue } from \"../global/setdata\";\r\nimport luckysheetcreatedom from \"../global/createdom\";\r\nimport tooltip from \"../global/tooltip\";\r\nimport formula from \"../global/formula\";\r\nimport { luckysheetrefreshgrid, jfrefreshgrid_rhcw,jfrefreshgrid } from \"../global/refresh\";\r\nimport rhchInit from \"../global/rhchInit\";\r\nimport editor from \"../global/editor\";\r\nimport { luckysheetextendtable, luckysheetdeletetable } from \"../global/extend\";\r\nimport { isRealNum } from \"../global/validate\";\r\nimport { replaceHtml, getObjType, chatatABC, arrayRemoveItem } from \"../utils/util\";\r\nimport { sheetHTML, luckysheetlodingHTML } from \"./constant\";\r\nimport server from \"./server\";\r\nimport luckysheetConfigsetting from \"./luckysheetConfigsetting\";\r\nimport pivotTable from \"./pivotTable\";\r\nimport luckysheetsizeauto from \"./resize\";\r\nimport luckysheetPostil from \"./postil\";\r\nimport imageCtrl from \"./imageCtrl\";\r\nimport dataVerificationCtrl from \"./dataVerificationCtrl\";\r\nimport hyperlinkCtrl from \"./hyperlinkCtrl\";\r\nimport luckysheetFreezen from \"./freezen\";\r\nimport { createFilterOptions, labelFilterOptionState } from \"./filter\";\r\nimport { selectHightlightShow, selectionCopyShow } from \"./select\";\r\nimport Store from \"../store\";\r\nimport locale from \"../locale/locale\";\r\nimport { renderChartShow } from \"../expendPlugins/chart/plugin\";\r\nimport { changeSheetContainerSize, menuToolBarWidth } from \"./resize\";\r\nimport { zoomNumberDomBind } from \"./zoom\";\r\nimport menuButton from \"./menuButton\";\r\nimport method from \"../global/method\";\r\nimport { initialEvent } from \"./protection\";\r\nimport luckysheetformula from \"../global/formula\";\r\n\r\nconst sheetmanage = {\r\n generateRandomSheetIndex: function(prefix) {\r\n if (prefix == null) {\r\n prefix = \"Sheet\";\r\n }\r\n\r\n let userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, \"\").split(\"\");\r\n\r\n let mid = \"\";\r\n\r\n for (let i = 0; i < 12; i++) {\r\n mid += userAgent[Math.round(Math.random() * (userAgent.length - 1))];\r\n }\r\n\r\n let time = new Date().getTime();\r\n\r\n return prefix + \"_\" + mid + \"_\" + time;\r\n },\r\n generateRandomSheetName: function(file, isPivotTable) {\r\n let index = file.length;\r\n\r\n const locale_pivotTable = locale().pivotTable;\r\n const title = locale_pivotTable.title;\r\n\r\n for (let i = 0; i < file.length; i++) {\r\n if (file[i].name.indexOf(\"Sheet\") > -1 || file[i].name.indexOf(title) > -1) {\r\n let suffix = parseFloat(file[i].name.replace(\"Sheet\", \"\").replace(title, \"\"));\r\n\r\n if (suffix != \"NaN\" && Math.ceil(suffix) > index) {\r\n index = Math.ceil(suffix);\r\n }\r\n }\r\n }\r\n\r\n if (isPivotTable) {\r\n return title + (index + 1);\r\n } else {\r\n return \"Sheet\" + (index + 1);\r\n }\r\n },\r\n generateCopySheetName: function(file, name) {\r\n let _locale = locale();\r\n let locale_info = _locale.info;\r\n let copyWord = \"(\" + locale_info.copy;\r\n const copy_i = name.toString().indexOf(copyWord);\r\n\r\n if (~copy_i) {\r\n name = name.toString().substring(0, copy_i);\r\n }\r\n\r\n let index = \"\";\r\n let nameCopy = name + copyWord;\r\n const sheetNames = [];\r\n\r\n for (let i = 0; i < file.length; i++) {\r\n let fileName = file[i].name.toString();\r\n sheetNames.push(fileName);\r\n let st_i = fileName.indexOf(nameCopy);\r\n\r\n if (st_i === 0) {\r\n index = index || 2;\r\n let ed_i = fileName.indexOf(\")\", st_i + nameCopy.length);\r\n let num = fileName.substring(st_i + nameCopy.length, ed_i);\r\n\r\n if (isRealNum(num)) {\r\n if (parseInt(num) >= index) {\r\n index = parseInt(num) + 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n let sheetCopyName;\r\n\r\n do {\r\n let postfix = copyWord + index + \")\";\r\n\r\n const lengthLimit = 31 - postfix.length;\r\n sheetCopyName = name;\r\n if (sheetCopyName.length > lengthLimit) {\r\n sheetCopyName = sheetCopyName.slice(0, lengthLimit - 1) + \"\u2026\";\r\n }\r\n\r\n sheetCopyName = sheetCopyName + postfix;\r\n } while (~sheetNames.indexOf(sheetCopyName) && (index = (index || 1) + 1));\r\n\r\n return sheetCopyName;\r\n },\r\n getSheetByIndex: function(index) {\r\n let _this = this;\r\n\r\n if (index == null) {\r\n index = Store.currentSheetIndex;\r\n }\r\n\r\n let i = _this.getSheetIndex(index);\r\n\r\n return Store.luckysheetfile[i];\r\n },\r\n getSheetByName: function(name) {\r\n let _this = this;\r\n\r\n if (name == null) {\r\n return null;\r\n }\r\n\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n let file = Store.luckysheetfile[i];\r\n if (file.name == name) {\r\n return file;\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n getCurSheetnoset: function() {\r\n let curindex = 0;\r\n\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i].status == 1) {\r\n curindex = Store.luckysheetfile[i].index;\r\n break;\r\n }\r\n }\r\n\r\n return curindex;\r\n },\r\n getCurSheet: function() {\r\n if (Store.luckysheetfile.length) {\r\n let hasActive = false,\r\n indexs = [];\r\n Store.luckysheetfile.forEach((item) => {\r\n if (\"undefined\" === typeof item.index) {\r\n item.index = this.generateRandomSheetIndex();\r\n }\r\n if (indexs.includes(item.index)) {\r\n item.index = this.generateRandomSheetIndex();\r\n } else {\r\n indexs.push(item.index);\r\n }\r\n\r\n if (\"undefined\" === typeof item.status) {\r\n item.status = 0;\r\n }\r\n if (item.status == 1) {\r\n if (hasActive) {\r\n item.status = 0;\r\n } else {\r\n hasActive = true;\r\n }\r\n }\r\n });\r\n if (!hasActive) {\r\n Store.luckysheetfile[0].status = 1;\r\n }\r\n }\r\n Store.currentSheetIndex = Store.luckysheetfile[0].index;\r\n\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i].status == 1) {\r\n Store.currentSheetIndex = Store.luckysheetfile[i].index;\r\n break;\r\n }\r\n }\r\n\r\n return Store.currentSheetIndex;\r\n },\r\n getCustomSheet() {\r\n //\u8BBE\u7F6E\u81EA\u5B9A\u4E49luckysheet \u914D\u7F6E\u9879\u3002\r\n if (!this.Luckysheet_custom_sheet) return {};\r\n return JSON.parse(JSON.stringify(this.Luckysheet_custom_sheet)); //\u6BCF\u6B21\u90FD\u8FD4\u56DE\u4E00\u4E2A\u81EA\u5B9A\u4E49sheet\u65B0\u5BF9\u8C61\r\n },\r\n setCustomSheet(luckysheet_custom_sheet) {\r\n this.Luckysheet_custom_sheet = luckysheet_custom_sheet;\r\n },\r\n addNewSheet: function(e, isPivotTable) {\r\n if (isEditMode() || Store.allowEdit === false) {\r\n // alert(\"\u975E\u7F16\u8F91\u6A21\u5F0F\u4E0B\u4E0D\u5141\u8BB8\u8BE5\u64CD\u4F5C\uFF01\");\r\n return;\r\n }\r\n // \u94A9\u5B50 sheetCreateBefore\r\n if (!method.createHookFunction(\"sheetCreateBefore\")) {\r\n return;\r\n }\r\n\r\n let _this = this;\r\n\r\n let order = Store.luckysheetfile.length;\r\n let index = _this.generateRandomSheetIndex();\r\n\r\n let sheetname = _this.generateRandomSheetName(Store.luckysheetfile, isPivotTable);\r\n\r\n $(\"#luckysheet-sheet-container-c\").append(\r\n replaceHtml(sheetHTML, { index: index, active: \"\", name: sheetname, style: \"\", colorset: \"\" }),\r\n );\r\n\r\n let sheetconfig = {};\r\n let sheet_defaullt_config = this.getCustomSheet();\r\n if (\r\n JSON.stringify(sheet_defaullt_config) != \"{}\" &&\r\n sheet_defaullt_config != null &&\r\n sheetconfig != undefined\r\n ) {\r\n //\u5224\u65AD\u8BBE\u7F6E\u7684\u81EA\u5B9A\u4E49sheet\r\n sheetconfig = sheet_defaullt_config;\r\n // sheet_defaullt_config.isPivotTable=false;\r\n sheetconfig.index = index;\r\n sheetconfig.order = order;\r\n sheetconfig.name = sheetname;\r\n // sheet_defaullt_config.config={};\r\n } else {\r\n //\u81EA\u5B9A\u4E49sheet\u4E3A\u7A7A\u7684\u8BDD\r\n sheetconfig = {\r\n name: sheetname,\r\n color: \"\",\r\n status: \"0\",\r\n order: order,\r\n index: index,\r\n celldata: [],\r\n row: Store.defaultrowNum,\r\n column: Store.defaultcolumnNum,\r\n config: {},\r\n pivotTable: null,\r\n isPivotTable: !!isPivotTable,\r\n };\r\n }\r\n Store.luckysheetfile.push(sheetconfig);\r\n\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-sheets-item\" + index).addClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-cell-main\").append(\r\n '
',\r\n );\r\n cleargridelement(e);\r\n\r\n server.saveParam(\"sha\", null, $.extend(true, {}, sheetconfig));\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfundo.length = 0;\r\n let redo = {};\r\n redo[\"type\"] = \"addSheet\";\r\n redo[\"sheetconfig\"] = $.extend(true, {}, sheetconfig);\r\n redo[\"index\"] = index;\r\n redo[\"currentSheetIndex\"] = Store.currentSheetIndex;\r\n Store.jfredo.push(redo);\r\n }\r\n\r\n _this.changeSheetExec(index, isPivotTable, true);\r\n\r\n // \u94A9\u5B50 sheetCreateAfter \u4E0D\u5E94\u8BE5\u5728\u8FD9\u91CC \u5E94\u5728\u7ED8\u5236\u5B8C\u6210\u540E \u56E0\u6B64\u5728 changeSheet \u5B9E\u73B0\r\n },\r\n setSheetHide: function(index, isDelete) {\r\n let _this = this;\r\n let currentIdx = _this.getSheetIndex(index);\r\n // \u94A9\u5B50 sheetHideBefore\r\n if (!isDelete && !method.createHookFunction(\"sheetHideBefore\", { sheet: Store.luckysheetfile[currentIdx] })) {\r\n return;\r\n }\r\n Store.luckysheetfile[currentIdx].hide = 1;\r\n\r\n let luckysheetcurrentSheetitem = $(\"#luckysheet-sheets-item\" + index);\r\n luckysheetcurrentSheetitem.hide();\r\n\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n\r\n let indicator;\r\n if (luckysheetConfigsetting.showsheetbarConfig.sheet) {\r\n indicator = luckysheetcurrentSheetitem.nextAll(\":visible\");\r\n if (luckysheetcurrentSheetitem.nextAll(\":visible\").length > 0) {\r\n indicator = indicator.eq(0).data(\"index\");\r\n } else {\r\n indicator = luckysheetcurrentSheetitem\r\n .prevAll(\":visible\")\r\n .eq(0)\r\n .data(\"index\");\r\n }\r\n } else {\r\n let nextActiveIdx,\r\n showSheetIdxs = [];\r\n Store.luckysheetfile.forEach((ele, index) => {\r\n if (1 !== ele.hide) showSheetIdxs.push(index);\r\n });\r\n let len = showSheetIdxs.length;\r\n if (1 === len) {\r\n nextActiveIdx = showSheetIdxs[0];\r\n } else {\r\n nextActiveIdx =\r\n showSheetIdxs[len - 1] > currentIdx\r\n ? showSheetIdxs.find((e) => e > currentIdx)\r\n : showSheetIdxs[len - 1];\r\n }\r\n\r\n indicator = Store.luckysheetfile[nextActiveIdx].index;\r\n }\r\n\r\n $(\"#luckysheet-sheets-item\" + indicator).addClass(\"luckysheet-sheets-item-active\");\r\n\r\n _this.changeSheetExec(indicator);\r\n _this.locationSheet();\r\n\r\n server.saveParam(\"sh\", luckysheetcurrentSheetitem.data(\"index\"), 1, { op: \"hide\", cur: indicator });\r\n // \u94A9\u5B50 sheetHideAfter\r\n if (!isDelete) {\r\n method.createHookFunction(\"sheetHideAfter\", { sheet: Store.luckysheetfile[currentIdx] });\r\n }\r\n },\r\n setSheetShow: function(index) {\r\n let _this = this;\r\n const file = Store.luckysheetfile[_this.getSheetIndex(index)];\r\n // \u94A9\u5B50 sheetShowBefore\r\n if (!method.createHookFunction(\"sheetShowBefore\", { sheet: file })) {\r\n return;\r\n }\r\n file.hide = 0;\r\n _this.changeSheetExec(index);\r\n\r\n server.saveParam(\"sh\", index, 0, { op: \"show\", cur: null });\r\n // \u94A9\u5B50 sheetShowAfter\r\n method.createHookFunction(\"sheetShowAfter\", { sheet: file });\r\n },\r\n sheetMaxIndex: 0,\r\n ordersheet: function(property) {\r\n return function(a, b) {\r\n let value1 = a[property];\r\n let value2 = b[property];\r\n return value1 - value2;\r\n };\r\n },\r\n getCurrentOrder: function() {\r\n let orders = {};\r\n\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").each(function(a) {\r\n let index = $(this).data(\"index\");\r\n\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i].index == index) {\r\n orders[index.toString()] = a;\r\n break;\r\n }\r\n }\r\n });\r\n\r\n return orders;\r\n },\r\n reOrderAllSheet: function() {\r\n let orders = {};\r\n\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").each(function(a) {\r\n let index = $(this).data(\"index\");\r\n\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i].index == index) {\r\n Store.luckysheetfile[i].order = a;\r\n orders[index.toString()] = a;\r\n break;\r\n }\r\n }\r\n });\r\n\r\n server.saveParam(\"shr\", null, orders);\r\n\r\n Store.luckysheetfile.sort((x, y) => {\r\n let order_x = x.order;\r\n let order_y = y.order;\r\n\r\n if (order_x != null && order_y != null) {\r\n return order_x - order_y;\r\n } else if (order_x != null) {\r\n return -1;\r\n } else if (order_y != null) {\r\n return 1;\r\n } else {\r\n return 1;\r\n }\r\n });\r\n },\r\n createSheet: function() {\r\n //\u4FEE\u590D\u62D6\u52A8sheet\u66F4\u65B0\u540E\u53F0\u540E\uFF0C\u91CD\u65B0\u6253\u5F00\u663E\u793A\u9519\u8BEF\r\n let _this = this;\r\n\r\n let btn = [];\r\n Store.luckysheetfile.sort(_this.ordersheet(\"order\"));\r\n\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n let display = \"\";\r\n let sheetIndex = Store.luckysheetfile[i].index;\r\n\r\n let colorset = \"\";\r\n if (Store.luckysheetfile[i].color != null) {\r\n colorset =\r\n '
';\r\n }\r\n\r\n if (Store.currentSheetIndex == sheetIndex) {\r\n //\u4F7F\u7528Store.luckysheetfile\u4E2D\u7684index\u6BD4\u8F83\uFF0C\u800C\u4E0D\u662Forder\r\n btn.push(\r\n replaceHtml(sheetHTML, {\r\n index: sheetIndex,\r\n active: \"luckysheet-sheets-item-active\",\r\n name: Store.luckysheetfile[i].name,\r\n style: \"\",\r\n colorset: colorset,\r\n }),\r\n );\r\n } else {\r\n if (Store.luckysheetfile[i].hide == 1) {\r\n btn.push(\r\n replaceHtml(sheetHTML, {\r\n index: sheetIndex,\r\n active: \"\",\r\n name: Store.luckysheetfile[i].name,\r\n style: \"display:none;\",\r\n colorset: colorset,\r\n }),\r\n );\r\n } else {\r\n btn.push(\r\n replaceHtml(sheetHTML, {\r\n index: sheetIndex,\r\n active: \"\",\r\n name: Store.luckysheetfile[i].name,\r\n style: \"\",\r\n colorset: colorset,\r\n }),\r\n );\r\n }\r\n display = \"style='display:none;'\";\r\n }\r\n //Store.luckysheetfile[i].index = i; //index\u5373\u4E3A\u9ED8\u8BA4\r\n // if(sheetIndex > this.sheetMaxIndex){\r\n // this.sheetMaxIndex = sheetIndex;\r\n // }\r\n\r\n $(\"#luckysheet-cell-main\").append(\r\n \"
',\r\n );\r\n }\r\n\r\n $(\"#luckysheet-sheet-container-c\").append(btn.join(\"\"));\r\n\r\n _this.locationSheet();\r\n },\r\n // *\u63A7\u5236sheet\u680F\u7684\u5DE6\u53F3\u6EDA\u52A8\u6309\u94AE\u662F\u5426\u663E\u793A\r\n locationSheet: function() {\r\n let $c = $(\"#luckysheet-sheet-container-c\"),\r\n winW = $(\"#\" + Store.container).width();\r\n let $cursheet = $(\"#luckysheet-sheet-container-c > div.luckysheet-sheets-item-active\").eq(0);\r\n\r\n let scrollLeftpx = 0;\r\n let c_width = 0;\r\n\r\n $(\"#luckysheet-sheet-container-c > div.luckysheet-sheets-item:visible\").each(function() {\r\n if ($(this).hasClass(\"luckysheet-sheets-item-active\")) {\r\n scrollLeftpx = c_width;\r\n }\r\n c_width += $(this).outerWidth();\r\n });\r\n\r\n setTimeout(function() {\r\n $c.scrollLeft(scrollLeftpx - 10);\r\n\r\n if (luckysheetConfigsetting.showsheetbarConfig.sheet) {\r\n if (c_width >= winW * 0.7) {\r\n $(\"#luckysheet-sheet-area .luckysheet-sheets-scroll\").css(\"display\", \"inline-block\");\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-left\").show();\r\n } else {\r\n $(\"#luckysheet-sheet-area .luckysheet-sheets-scroll\").css(\"display\", \"none\");\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-left\").hide();\r\n }\r\n }\r\n }, 1);\r\n },\r\n copySheet: function(copyindex, e) {\r\n if (isEditMode() || Store.allowEdit === false) {\r\n // alert(\"\u975E\u7F16\u8F91\u6A21\u5F0F\u4E0B\u4E0D\u5141\u8BB8\u8BE5\u64CD\u4F5C\uFF01\");\r\n return;\r\n }\r\n\r\n let _this = this;\r\n\r\n let order = Store.luckysheetfile.length;\r\n let index = _this.generateRandomSheetIndex();\r\n\r\n let copyarrindex = _this.getSheetIndex(copyindex);\r\n let copyjson = $.extend(true, {}, Store.luckysheetfile[copyarrindex]);\r\n copyjson.order = order;\r\n copyjson.index = index;\r\n copyjson.name = _this.generateCopySheetName(Store.luckysheetfile, copyjson.name);\r\n\r\n // \u94A9\u5B50 sheetCreateBefore\r\n if (\r\n !method.createHookFunction(\"sheetCopyBefore\", {\r\n targetSheet: Store.luckysheetfile[copyarrindex],\r\n copySheet: copyjson,\r\n })\r\n ) {\r\n return;\r\n }\r\n\r\n let colorset = \"\";\r\n if (copyjson.color != null) {\r\n colorset =\r\n '
';\r\n }\r\n\r\n let copyobject = $(\"#luckysheet-sheets-item\" + copyindex);\r\n $(\"#luckysheet-sheet-container-c\").append(\r\n replaceHtml(sheetHTML, {\r\n index: copyjson.index,\r\n active: \"\",\r\n name: copyjson.name,\r\n order: copyjson.order,\r\n style: \"\",\r\n colorset: colorset,\r\n }),\r\n );\r\n $(\"#luckysheet-sheets-item\" + copyjson.index).insertAfter(copyobject);\r\n Store.luckysheetfile.splice(copyarrindex + 1, 0, copyjson);\r\n\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-sheets-item\" + index).addClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-cell-main\").append(\r\n '
',\r\n );\r\n cleargridelement(e);\r\n\r\n server.saveParam(\"shc\", index, { copyindex: copyindex, name: copyjson.name });\r\n\r\n _this.changeSheetExec(index, undefined, undefined, true);\r\n _this.reOrderAllSheet();\r\n\r\n if (Store.clearjfundo) {\r\n Store.jfredo.push({\r\n type: \"copySheet\",\r\n copyindex: copyindex,\r\n index: copyjson.index,\r\n sheetIndex: copyjson.index,\r\n });\r\n } else if (Store.jfredo.length > 0) {\r\n let jfredostr = Store.jfredo[Store.jfredo.length - 1];\r\n\r\n if (jfredostr.type == \"copySheet\") {\r\n jfredostr.index = copyjson.index;\r\n jfredostr.sheetIndex = copyjson.index;\r\n }\r\n }\r\n },\r\n hasSheet: function(index) {\r\n if (index == null) {\r\n return false;\r\n }\r\n\r\n index = this.getSheetIndex(index);\r\n\r\n if (index == null) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n },\r\n createSheetbydata: function(data, isrenew, isBefore = true) {\r\n let _this = this;\r\n\r\n let colorset = \"\";\r\n if (data.color != null) {\r\n colorset =\r\n '
';\r\n }\r\n\r\n $(\"#luckysheet-sheet-container-c\").append(\r\n replaceHtml(sheetHTML, {\r\n index: data.index,\r\n active: \"\",\r\n name: data.name,\r\n order: data.order,\r\n style: \"\",\r\n colorset: colorset,\r\n }),\r\n );\r\n\r\n if (isBefore) {\r\n let previndex = data.order;\r\n if (previndex >= Store.luckysheetfile.length) {\r\n previndex = Store.luckysheetfile.length - 1;\r\n $(\"#luckysheet-sheets-item\" + data.index).insertAfter(\r\n $(\"#luckysheet-sheets-item\" + Store.luckysheetfile[previndex].index),\r\n );\r\n } else {\r\n $(\"#luckysheet-sheets-item\" + data.index).insertBefore(\r\n $(\"#luckysheet-sheets-item\" + Store.luckysheetfile[previndex].index),\r\n );\r\n }\r\n }\r\n\r\n Store.luckysheetfile.push(data);\r\n\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-sheets-item\" + data.index).addClass(\"luckysheet-sheets-item-active\");\r\n $(\"#luckysheet-cell-main\").append(\r\n '
',\r\n );\r\n cleargridelement();\r\n\r\n if (isrenew != null) {\r\n server.saveParam(\"shre\", null, { reIndex: data.index });\r\n data.hide = 0;\r\n server.saveParam(\"sh\", data.index, 0, { op: \"show\", cur: null });\r\n } else {\r\n server.saveParam(\"sha\", null, data);\r\n }\r\n\r\n _this.changeSheetExec(data.index, data.isPivotTable, true);\r\n _this.reOrderAllSheet();\r\n },\r\n deleteSheet: function(index) {\r\n let _this = this;\r\n\r\n if (Store.allowEdit === false) {\r\n return;\r\n }\r\n\r\n let arrIndex = _this.getSheetIndex(index);\r\n\r\n const file = Store.luckysheetfile[arrIndex];\r\n\r\n // \u94A9\u5B50 sheetDeleteBefore\r\n if (!method.createHookFunction(\"sheetDeleteBefore\", { sheet: file })) {\r\n return;\r\n }\r\n\r\n _this.setSheetHide(index, true);\r\n\r\n $(\"#luckysheet-sheets-item\" + index).remove();\r\n $(\"#luckysheet-datavisual-selection-set-\" + index).remove();\r\n\r\n let removedsheet = Store.luckysheetfile.splice(arrIndex, 1);\r\n _this.reOrderAllSheet();\r\n\r\n server.saveParam(\"shd\", null, { deleIndex: index });\r\n\r\n if (Store.clearjfundo) {\r\n removedsheet[0].type = \"deleteSheet\";\r\n Store.jfredo.push(removedsheet[0]);\r\n }\r\n // \u94A9\u5B50 sheetDeleteAfter\r\n method.createHookFunction(\"sheetDeleteAfter\", { sheet: file });\r\n },\r\n nulldata: null,\r\n getGridData: function(d) {\r\n let ret = [];\r\n\r\n for (let r = 0; r < d.length; r++) {\r\n for (let c = 0; c < d[0].length; c++) {\r\n if (d[r][c] == null) {\r\n continue;\r\n }\r\n\r\n ret.push({ r: r, c: c, v: d[r][c] });\r\n }\r\n }\r\n\r\n return ret;\r\n },\r\n buildGridData: function(file) {\r\n // \u5982\u679C\u5DF2\u7ECF\u5B58\u5728\u4E8C\u7EF4\u6570\u636Edata,\u90A3\u4E48\u76F4\u63A5\u8FD4\u56DEdata\uFF1B\u5982\u679C\u53EA\u6709celldata\uFF0C\u90A3\u4E48\u5C31\u8F6C\u5316\u6210\u4E8C\u7EF4\u6570\u7EC4data\uFF0C\u518D\u8FD4\u56DE\r\n let row = file.row == null ? Store.defaultrowNum : file.row,\r\n column = file.column == null ? Store.defaultcolumnNum : file.column,\r\n data = file.data && file.data.length > 0 ? file.data : datagridgrowth([], row, column),\r\n celldata = file.celldata;\r\n if (file.data && file.data.length > 0) {\r\n for (let i = 0; i < data.length; i++) {\r\n for (let j = 0; j < data[0].length; j++) {\r\n setcellvalue(i, j, data, data[i][j]);\r\n }\r\n }\r\n } else {\r\n if (celldata && celldata.length > 0) {\r\n for (let i = 0; i < celldata.length; i++) {\r\n let item = celldata[i];\r\n let r = item.r;\r\n let c = item.c;\r\n let v = item.v;\r\n\r\n if (r >= data.length) {\r\n data = datagridgrowth(data, r - data.length + 1, 0);\r\n }\r\n if (c >= data[0].length) {\r\n data = datagridgrowth(data, 0, c - data[0].length + 1);\r\n }\r\n setcellvalue(r, c, data, v);\r\n }\r\n }\r\n }\r\n\r\n //\u4EBF\u4E07\u683C\u5F0F+\u7CBE\u786E\u5EA6 \u6062\u590D\u5168\u5C40\u521D\u59CB\u5316\r\n luckysheetConfigsetting.autoFormatw = false;\r\n luckysheetConfigsetting.accuracy = undefined;\r\n return data;\r\n },\r\n cutGridData: function(d) {\r\n let rowindex = 0;\r\n\r\n for (let r = d.length - 1; r >= 0; r--) {\r\n let isnull = true;\r\n\r\n for (let c = 0; c < d[0].length; c++) {\r\n let value = getcellvalue(r, c);\r\n\r\n if (value != null && $.trim(value).length > 0) {\r\n isnull = false;\r\n break;\r\n }\r\n }\r\n\r\n if (!isnull) {\r\n break;\r\n } else {\r\n rowindex = r;\r\n }\r\n }\r\n\r\n return d.slice(0, rowindex);\r\n },\r\n addGridData: function(celldata, row, column) {\r\n let data = datagridgrowth([], row, column);\r\n\r\n if (celldata != null) {\r\n for (let i = 0; i < celldata.length; i++) {\r\n let item = celldata[i];\r\n let r = item.r;\r\n let c = item.c;\r\n let v = item.v;\r\n\r\n if (r >= data.length) {\r\n data = datagridgrowth(data, r - data.length + 1, 0);\r\n }\r\n\r\n if (c >= data[0].length) {\r\n data = datagridgrowth(data, 0, c - data[0].length + 1);\r\n }\r\n\r\n setcellvalue(r, c, data, v);\r\n }\r\n }\r\n\r\n return data;\r\n },\r\n sheetParamRestore: function(file, data) {\r\n Store.luckysheet_select_save = file[\"luckysheet_select_save\"];\r\n if (Store.luckysheet_select_save == null || Store.luckysheet_select_save.length == 0) {\r\n if (data[0] != null && data[0][0] != null && data[0][0].mc != null) {\r\n Store.luckysheet_select_save = [\r\n {\r\n row: [0, data[0][0].mc.rs - 1],\r\n column: [0, data[0][0].mc.cs - 1],\r\n },\r\n ];\r\n } else {\r\n Store.luckysheet_select_save = [\r\n {\r\n row: [0, 0],\r\n column: [0, 0],\r\n },\r\n ];\r\n }\r\n }\r\n\r\n Store.luckysheet_selection_range =\r\n file[\"luckysheet_selection_range\"] == null ? [] : file[\"luckysheet_selection_range\"];\r\n Store.config = file[\"config\"] == null ? {} : file[\"config\"];\r\n\r\n Store.zoomRatio = file[\"zoomRatio\"] == null ? 1 : file[\"zoomRatio\"];\r\n\r\n if (file[\"defaultRowHeight\"] != null) {\r\n Store.defaultrowlen = parseFloat(file[\"defaultRowHeight\"]);\r\n } else {\r\n Store.defaultrowlen = luckysheetConfigsetting[\"defaultRowHeight\"];\r\n }\r\n\r\n if (file[\"defaultColWidth\"] != null) {\r\n Store.defaultcollen = parseFloat(file[\"defaultColWidth\"]);\r\n } else {\r\n Store.defaultcollen = luckysheetConfigsetting[\"defaultColWidth\"];\r\n }\r\n\r\n if (file[\"showGridLines\"] != null) {\r\n let showGridLines = file[\"showGridLines\"];\r\n if (showGridLines == 0 || showGridLines == false) {\r\n Store.showGridLines = false;\r\n } else {\r\n Store.showGridLines = true;\r\n }\r\n } else {\r\n Store.showGridLines = true;\r\n }\r\n },\r\n initialjfFile: function(menu, title) {\r\n let _this = this;\r\n\r\n _this.getCurSheet();\r\n let file = Store.luckysheetfile[_this.getSheetIndex(Store.currentSheetIndex)];\r\n _this.nulldata = datagridgrowth([], Store.defaultrowNum, Store.defaultcolumnNum);\r\n let data = _this.buildGridData(file);\r\n\r\n //\u521D\u59CB\u5316\u7684\u65F6\u5019 \u8BB0\u5F55\u9009\u533A\r\n let select_save = [];\r\n file.jfgird_select_save = file.jfgird_select_save || [];\r\n file.jfgird_select_save.forEach((item) => select_save.push({ row: item.row, column: item.column }));\r\n file.luckysheet_select_save = select_save;\r\n\r\n this.sheetParamRestore(file, data);\r\n\r\n let r2 = Store.luckysheet_select_save[0].row[1],\r\n c2 = Store.luckysheet_select_save[0].column[1];\r\n\r\n if (Store.luckysheet_select_save.length > 1) {\r\n for (let i = 0; i < Store.luckysheet_select_save.length; i++) {\r\n if (Store.luckysheet_select_save[i].row[1] > r2) {\r\n r2 = Store.luckysheet_select_save[i].row[1];\r\n }\r\n\r\n if (Store.luckysheet_select_save[i].column[1] > c2) {\r\n c2 = Store.luckysheet_select_save[i].column[1];\r\n }\r\n }\r\n }\r\n\r\n menuButton.fontInitial(Store.fontList); //initial font\r\n\r\n file.data = data;\r\n\r\n let rowheight = data.length;\r\n if (r2 > rowheight - 1) {\r\n rowheight = r2 + 1;\r\n }\r\n\r\n let colwidth = data[0].length;\r\n if (c2 > colwidth - 1) {\r\n colwidth = c2 + 1;\r\n }\r\n\r\n //\u94A9\u5B50\u51FD\u6570 \u8868\u683C\u521B\u5EFA\u4E4B\u524D\u89E6\u53D1\r\n if (typeof luckysheetConfigsetting.beforeCreateDom == \"function\") {\r\n luckysheetConfigsetting.beforeCreateDom(luckysheet);\r\n }\r\n\r\n if (typeof luckysheetConfigsetting.workbookCreateBefore == \"function\") {\r\n luckysheetConfigsetting.workbookCreateBefore(luckysheet);\r\n }\r\n\r\n // Store.flowdata = data;\r\n\r\n luckysheetcreatedom(colwidth, rowheight, data, menu, title);\r\n\r\n setTimeout(function() {\r\n tooltip.createHoverTip(\r\n \"#luckysheet_info_detail\",\r\n \".luckysheet_info_detail_back, .luckysheet_info_detail_input, .luckysheet_info_detail_update\",\r\n );\r\n tooltip.createHoverTip(\r\n \"#luckysheet-wa-editor\",\r\n \".luckysheet-toolbar-menu-button, .luckysheet-toolbar-button, .luckysheet-toolbar-combo-button\",\r\n );\r\n\r\n Store.luckysheetTableContentHW = [\r\n $(\"#luckysheet-cell-main\").width() + Store.rowHeaderWidth - Store.cellMainSrollBarSize,\r\n $(\"#luckysheet-cell-main\").height() + Store.columnHeaderHeight - Store.cellMainSrollBarSize,\r\n ];\r\n $(\"#luckysheetTableContent, #luckysheetTableContentF\")\r\n .attr({\r\n width: Math.ceil(Store.luckysheetTableContentHW[0] * Store.devicePixelRatio),\r\n height: Math.ceil(Store.luckysheetTableContentHW[1] * Store.devicePixelRatio),\r\n })\r\n .css({\r\n width: Store.luckysheetTableContentHW[0],\r\n height: Store.luckysheetTableContentHW[1],\r\n })\r\n .get(0)\r\n .getContext(\"2d\");\r\n let locale_info = locale().info;\r\n let key = server.gridKey;\r\n let cahce_key = key + \"__qkcache\";\r\n\r\n let ini = function() {\r\n file[\"load\"] = \"1\";\r\n\r\n _this.createSheet();\r\n\r\n let execF = function() {\r\n _this.mergeCalculation(file[\"index\"]);\r\n _this.setSheetParam(false);\r\n // editor.webWorkerFlowDataCache(Store.flowdata);//worker\u5B58\u6570\u636E\r\n _this.storeSheetParam();\r\n _this.restoreselect();\r\n _this.CacheNotLoadControll = [];\r\n _this.restoreCache();\r\n formula.execFunctionGroupForce(luckysheetConfigsetting.forceCalculation);\r\n _this.restoreSheetAll(Store.currentSheetIndex);\r\n\r\n // luckysheetrefreshgrid(0, 0);\r\n $(\"#luckysheet_info_detail_save\").html(locale_info.detailSave);\r\n\r\n if (!!file.isPivotTable) {\r\n Store.luckysheetcurrentisPivotTable = true;\r\n // pivotTable.changePivotTable(Store.currentSheetIndex); //\u6B64\u65B9\u6CD5\u9700\u8981\u6CE8\u91CA\u6389\uFF0C\u5728restoreSheetAll\u4E2D\u5DF2\u7ECF\u6267\u884C\u4E86\u5237\u65B0\u4E86\u6570\u636E\u900F\u89C6\u8868\uFF0C\u8FD9\u91CC\u5C31\u4E0D\u9700\u8981\u4E86\r\n } else {\r\n Store.luckysheetcurrentisPivotTable = false;\r\n $(\"#luckysheet-modal-dialog-slider-pivot\").hide();\r\n }\r\n\r\n // Store toolbar button width value\r\n menuToolBarWidth();\r\n\r\n luckysheetsizeauto();\r\n\r\n //\u7B49\u5F85\u6EDA\u52A8\u6761dom\u5BBD\u9AD8\u52A0\u8F7D\u5B8C\u6210\u540E \u521D\u59CB\u5316\u6EDA\u52A8\u4F4D\u7F6E\r\n if (file[\"scrollLeft\"] != null && file[\"scrollLeft\"] > 0) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(file[\"scrollLeft\"]);\r\n } else {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(0);\r\n }\r\n\r\n if (file[\"scrollTop\"] != null && file[\"scrollTop\"] > 0) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(file[\"scrollTop\"]);\r\n } else {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(0);\r\n }\r\n\r\n // \u6B64\u5904\u5DF2\u7ECF\u6E32\u67D3\u5B8C\u6210\u8868\u683C\uFF0C\u5E94\u8BE5\u632A\u5230\u524D\u9762\r\n // //\u94A9\u5B50\u51FD\u6570 \u8868\u683C\u521B\u5EFA\u4E4B\u524D\u89E6\u53D1\r\n // if(typeof luckysheetConfigsetting.beforeCreateDom == \"function\" ){\r\n // luckysheetConfigsetting.beforeCreateDom(luckysheet);\r\n // }\r\n\r\n // if(typeof luckysheetConfigsetting.workbookCreateBefore == \"function\"){\r\n // luckysheetConfigsetting.workbookCreateBefore(luckysheet);\r\n // }\r\n\r\n arrayRemoveItem(Store.asyncLoad, \"core\");\r\n\r\n if (luckysheetConfigsetting.pointEdit) {\r\n setTimeout(function() {\r\n Store.loadingObj.close();\r\n }, 0);\r\n } else {\r\n setTimeout(function() {\r\n Store.loadingObj.close();\r\n }, 500);\r\n }\r\n };\r\n\r\n let loadSheetUrl = server.loadSheetUrl;\r\n\r\n if (loadSheetUrl == \"\") {\r\n // execF();\r\n // }\r\n // else if(sheetindex.length>0 && loadSheetUrl == \"\"){\r\n // for(let i = 0;i $(\"#luckysheet-scrollbar-x\")[0].offsetWidth) {\r\n file[\"scrollLeft\"] = $(\"#luckysheet-scrollbar-x\").scrollLeft(); //\u6A2A\u5411\u6EDA\u52A8\u6761\r\n }\r\n\r\n if ($(\"#luckysheet-scrollbar-y\")[0].scrollHeight > $(\"#luckysheet-scrollbar-y\")[0].offsetHeight) {\r\n file[\"scrollTop\"] = $(\"#luckysheet-scrollbar-y\").scrollTop(); //\u7EB5\u5411\u6EDA\u52A8\u6761\r\n }\r\n\r\n file[\"zoomRatio\"] = Store.zoomRatio;\r\n },\r\n setSheetParam: function(isload = true) {\r\n let index = this.getSheetIndex(Store.currentSheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n Store.flowdata = file[\"data\"];\r\n editor.webWorkerFlowDataCache(Store.flowdata); //worker\u5B58\u6570\u636E\r\n\r\n // formula.execFunctionGroupData = null;\r\n formula.execFunctionGlobalData = null;\r\n window.luckysheet_getcelldata_cache = null;\r\n\r\n this.sheetParamRestore(file, Store.flowdata);\r\n\r\n if (file[\"freezen\"] == null) {\r\n luckysheetFreezen.freezenhorizontaldata = null;\r\n luckysheetFreezen.freezenverticaldata = null;\r\n } else {\r\n luckysheetFreezen.freezenhorizontaldata =\r\n file[\"freezen\"].horizontal == null ? null : file[\"freezen\"].horizontal.freezenhorizontaldata;\r\n luckysheetFreezen.freezenverticaldata =\r\n file[\"freezen\"].vertical == null ? null : file[\"freezen\"].vertical.freezenverticaldata;\r\n }\r\n\r\n if (isload) {\r\n rhchInit(Store.flowdata.length, Store.flowdata[0].length);\r\n }\r\n\r\n //\u6279\u6CE8\r\n luckysheetPostil.buildAllPs(Store.flowdata);\r\n\r\n //\u56FE\u7247\r\n imageCtrl.currentImgId = null;\r\n imageCtrl.images = file.images;\r\n imageCtrl.allImagesShow();\r\n imageCtrl.init();\r\n\r\n //\u6570\u636E\u9A8C\u8BC1\r\n dataVerificationCtrl.dataVerification = file.dataVerification;\r\n dataVerificationCtrl.init();\r\n\r\n //\u94FE\u63A5\r\n hyperlinkCtrl.hyperlink = file.hyperlink;\r\n hyperlinkCtrl.init();\r\n\r\n createFilterOptions(file[\"filter_select\"], file[\"filter\"]);\r\n },\r\n restoreselect: function() {\r\n let index = this.getSheetIndex(Store.currentSheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n //\u9009\u533A\r\n selectHightlightShow(true);\r\n\r\n //\u590D\u5236\u9009\u533A\u865A\u7EBF\u6846\r\n selectionCopyShow();\r\n\r\n if (file[\"scrollLeft\"] != null && file[\"scrollLeft\"] > 0) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(file[\"scrollLeft\"]); //\u5217\u6807\u9898\r\n } else {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(0);\r\n }\r\n\r\n if (file[\"scrollTop\"] != null && file[\"scrollTop\"] > 0) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(file[\"scrollTop\"]); //\u5217\u6807\u9898\r\n } else {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(0);\r\n }\r\n },\r\n storeSheetParamALL: function() {\r\n let _this = this;\r\n\r\n _this.storeSheetParam();\r\n let index = _this.getSheetIndex(Store.currentSheetIndex);\r\n Store.luckysheetfile[index][\"data\"] = Store.flowdata;\r\n Store.luckysheetfile[index][\"config\"] = $.extend(true, {}, Store.config);\r\n },\r\n mergeCalculationSheet: {},\r\n mergeCalculation: function(index) {\r\n let file = Store.luckysheetfile[this.getSheetIndex(index)];\r\n let config = file.config,\r\n data = file.data;\r\n if (config == null) {\r\n return;\r\n }\r\n let mergeConfig = config.merge;\r\n if (mergeConfig == null || index in this.mergeCalculationSheet || file[\"autoCalculationMerge\"] === false) {\r\n return;\r\n }\r\n\r\n this.mergeCalculationSheet[index] = 1;\r\n\r\n for (let x in mergeConfig) {\r\n let r = parseInt(x.substr(0, x.indexOf(\"_\")));\r\n let c = parseInt(x.substr(x.indexOf(\"_\") + 1));\r\n let mcInfo = mergeConfig[x];\r\n if (data[r][c] == null) {\r\n data[r][c] = {};\r\n }\r\n\r\n data[r][c][\"mc\"] = {\r\n r: r,\r\n c: c,\r\n rs: mcInfo.rs,\r\n cs: mcInfo.cs,\r\n };\r\n\r\n for (let ir = r; ir < r + mcInfo.rs; ir++) {\r\n for (let ic = c; ic < c + mcInfo.cs; ic++) {\r\n if (ir == r && ic == c) {\r\n continue;\r\n }\r\n if (data[ir][ic] == null) {\r\n data[ir][ic] = {};\r\n }\r\n data[ir][ic][\"mc\"] = {\r\n r: r,\r\n c: c,\r\n };\r\n }\r\n }\r\n }\r\n },\r\n loadOtherFile: function(file) {\r\n let _this = this;\r\n // let sheetindexset = _this.checkLoadSheetIndex(file);\r\n // let sheetindex = [];\r\n\r\n // for(let i = 0; i < sheetindexset.length; i++){\r\n // let item = sheetindexset[i];\r\n\r\n // if(item == file[\"index\"]){\r\n // continue;\r\n // }\r\n\r\n // sheetindex.push(item);\r\n // }\r\n\r\n // for(let i = 0;i{\r\n if(file.isPivotTable){\r\n this.refreshPivotTableByFile(file)\r\n }\r\n })\r\n },\r\n refreshPivotTableByFile:function(file) {\r\n let pivotTableConfig = file.pivotTable\r\n\r\n let column = pivotTableConfig.column\r\n let row = pivotTableConfig.row\r\n let values = pivotTableConfig.values\r\n let showType = pivotTableConfig.showType\r\n let filterparm = pivotTableConfig.filterparm\r\n let pivotDataSheetIndex = pivotTableConfig.pivotDataSheetIndex\r\n\r\n let pivotrealIndex = this.getSheetIndex(pivotDataSheetIndex);\r\n\r\n let otherfile = Store.luckysheetfile[pivotrealIndex];\r\n if(otherfile[\"data\"] == null){\r\n otherfile[\"data\"] = this.buildGridData(otherfile);\r\n }\r\n\r\n const origindata = getdatabyselectionD(otherfile.data, pivotTableConfig.pivot_select_save);\r\n\r\n let rowhidden = {};\r\n if (filterparm != null) {\r\n for (let f in filterparm) {\r\n // \u76EE\u7684\u662F\u53D6\u51FArowhidden\r\n for (let h in filterparm[f]) {\r\n if (h === 'rowhidden' && _this.filterparm[f][h] != null) {\r\n rowhidden = $.extend(true, rowhidden, filterparm[f][h]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n let newdata = [];\r\n for (let i = 0; i < origindata.length; i++) {\r\n if (rowhidden != null && rowhidden[i] != null) {\r\n continue;\r\n }\r\n newdata.push([].concat(origindata[i]));\r\n }\r\n\r\n let ret = pivotTable.dataHandler(column, row, values, showType, newdata);\r\n \r\n pivotTableConfig.pivotDatas = ret\r\n\r\n\r\n let d = $.extend(true, [], this.nulldata);\r\n let data = d;\r\n\r\n let addr = 0, addc = 0;\r\n let rlen = ret.length, \r\n clen = ret[0].length;\r\n\r\n addr = rlen - d.length; \r\n addc = clen - d[0].length;\r\n\r\n data = datagridgrowth(d, addr + 20, addc + 10, true);\r\n\r\n for (let r = 0; r < rlen; r++) {\r\n // let x = [].concat(data[r]);\r\n for (let c = 0; c < clen; c++) {\r\n let value = \"\";\r\n if (ret[r] != null && ret[r][c] != null) {\r\n value = getcellvalue(r, c, ret);\r\n setcellvalue(r,c,data,value)\r\n }\r\n // x[c] = value;\r\n }\r\n // data[r] = x;\r\n }\r\n file.data = data;\r\n },\r\n checkLoadSheetIndexToDataIndex: {},\r\n checkLoadSheetIndex: function(file) {\r\n let calchain = formula.getAllFunctionGroup(); //file.calcChain; //index\r\n let chart = file.chart; //dataSheetIndex\r\n let pivotTable = file.pivotTable; //pivotDataSheetIndex\r\n\r\n let ret = [],\r\n cache = {};\r\n\r\n if (file.index in this.checkLoadSheetIndexToDataIndex) {\r\n return [];\r\n }\r\n\r\n ret.push(file.index);\r\n cache[file.index.toString()] = 1;\r\n this.checkLoadSheetIndexToDataIndex[file.index] = 1;\r\n if (calchain != null) {\r\n let dataIndexList = {};\r\n for (let i = 0; i < calchain.length; i++) {\r\n let f = calchain[i];\r\n let dataindex = f.index;\r\n let formulaTxt = getcellFormula(f.r, f.c, dataindex);\r\n\r\n if (formulaTxt == null) {\r\n let file = Store.luckysheetfile[this.getSheetIndex(dataindex)];\r\n file.data = this.buildGridData(file);\r\n formulaTxt = getcellFormula(f.r, f.c, dataindex);\r\n\r\n if (formulaTxt == null) {\r\n continue;\r\n }\r\n }\r\n\r\n if (formulaTxt.indexOf(\"!\") == -1) {\r\n // dataIndexList[dataindex] = 1;\r\n formula.addToSheetIndexList(formulaTxt, dataindex);\r\n } else if (\r\n formula.formulaContainSheetList != null &&\r\n formula.formulaContainSheetList[formulaTxt] != null\r\n ) {\r\n for (let dataSheetIndex in formula.formulaContainSheetList[formulaTxt]) {\r\n dataIndexList[dataSheetIndex] = 1;\r\n }\r\n } else {\r\n formula.functionParser(formulaTxt, (str) => {\r\n formula.addToCellList(formulaTxt, str);\r\n if (str.indexOf(\"!\") > -1) {\r\n let name = str.substr(0, str.indexOf(\"!\"));\r\n // dataNameList[name] = true;\r\n\r\n let sheet = this.getSheetByName(name);\r\n if (sheet != null) {\r\n let dataSheetIndex = sheet.index;\r\n dataIndexList[dataSheetIndex] = 1;\r\n\r\n formula.addToSheetIndexList(formulaTxt, dataSheetIndex);\r\n }\r\n }\r\n });\r\n\r\n if (formula.formulaContainSheetList[formulaTxt] == null) {\r\n // dataIndexList[dataindex] = 1;\r\n formula.addToSheetIndexList(formulaTxt, dataindex);\r\n }\r\n }\r\n\r\n if (dataindex == null) {\r\n continue;\r\n }\r\n\r\n // if(cache[dataindex.toString()] == null){\r\n // \t// ret.push(dataindex);\r\n // cache[dataindex.toString()] = 1;\r\n // this.checkLoadSheetIndexToDataIndex[dataindex] = 1;\r\n // }\r\n }\r\n\r\n for (let index in dataIndexList) {\r\n // let sheet = this.getSheetByName(n);\r\n // if(sheet==null){\r\n // continue;\r\n // }\r\n\r\n // if(index == Store.currentSheetIndex){\r\n // continue;\r\n // }\r\n\r\n let dataindex = index;\r\n\r\n if (cache[dataindex.toString()] == null) {\r\n ret.push(dataindex);\r\n cache[dataindex.toString()] = 1;\r\n this.checkLoadSheetIndexToDataIndex[dataindex] = 1;\r\n }\r\n }\r\n }\r\n\r\n if (chart != null) {\r\n for (let i = 0; i < chart.length; i++) {\r\n let cc = chart[i];\r\n let dataindex = cc.dataSheetIndex;\r\n\r\n if (dataindex == null) {\r\n continue;\r\n }\r\n\r\n if (cache[dataindex.toString()] == null) {\r\n ret.push(dataindex);\r\n cache[dataindex.toString()] = 1;\r\n }\r\n }\r\n }\r\n\r\n if (pivotTable != null) {\r\n let dataindex = pivotTable.pivotDataSheetIndex;\r\n\r\n if (dataindex != null && cache[dataindex.toString()] == null) {\r\n ret.push(dataindex);\r\n cache[dataindex.toString()] = 1;\r\n }\r\n }\r\n\r\n return ret;\r\n },\r\n showSheet: function() {\r\n // changeSheetContainerSize();\r\n $(\"#luckysheet-cell-flow_0\").css({ width: Store.ch_width, top: \"-1px\" }); //width\u66F4\u65B0\r\n $(\"#luckysheet-sheettable_0\").css({ width: Store.ch_width - 1, height: Store.rh_height });\r\n $(\"#luckysheetrowHeader_0\").css(\"height\", Store.rh_height);\r\n $(\"#luckysheet-cols-h-cells_0\").css(\"width\", Store.ch_width); //width\u66F4\u65B0\r\n\r\n $(\"#luckysheet-scrollbar-x div\").width(Store.ch_width);\r\n $(\"#luckysheet-scrollbar-y div\").height(\r\n Store.rh_height + Store.columnHeaderHeight - Store.cellMainSrollBarSize - 3,\r\n );\r\n\r\n //\u7B49\u5F85\u6EDA\u52A8\u6761dom\u5BBD\u9AD8\u8BA1\u7B97\u5B8C\u6210\u540E \u521D\u59CB\u5316\u8BE5\u8868\u683C\u6EDA\u52A8\u4F4D\u7F6E\r\n let index = this.getSheetIndex(Store.currentSheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n Store.scrollRefreshSwitch = false;\r\n\r\n if (file[\"scrollLeft\"] != null && file[\"scrollLeft\"] > 0) {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(file[\"scrollLeft\"] * Store.zoomRatio);\r\n } else {\r\n $(\"#luckysheet-scrollbar-x\").scrollLeft(0);\r\n }\r\n\r\n if (file[\"scrollTop\"] != null && file[\"scrollTop\"] > 0) {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(file[\"scrollTop\"] * Store.zoomRatio);\r\n } else {\r\n $(\"#luckysheet-scrollbar-y\").scrollTop(0);\r\n }\r\n\r\n setTimeout(() => {\r\n Store.scrollRefreshSwitch = true;\r\n }, 0);\r\n\r\n zoomNumberDomBind(Store.zoomRatio);\r\n },\r\n setCurSheet: function(index) {\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i][\"index\"] == index) {\r\n Store.luckysheetfile[i].status = 1;\r\n } else {\r\n Store.luckysheetfile[i].status = 0;\r\n }\r\n }\r\n\r\n Store.currentSheetIndex = index;\r\n },\r\n getSheetIndex: function(index) {\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n if (Store.luckysheetfile[i][\"index\"] == index) {\r\n return i;\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n changeSheetExec: function(index, isPivotInitial, isNewSheet, isCopySheet) {\r\n let $sheet = $(\"#luckysheet-sheets-item\" + index);\r\n\r\n window.luckysheet_getcelldata_cache = null;\r\n $(\"#luckysheet-sheet-area div.luckysheet-sheets-item\").removeClass(\"luckysheet-sheets-item-active\");\r\n $sheet.addClass(\"luckysheet-sheets-item-active\").show();\r\n\r\n cleargridelement();\r\n this.changeSheet(index, isPivotInitial, isNewSheet, isCopySheet);\r\n\r\n $(\"#luckysheet-sheet-list, #luckysheet-rightclick-sheet-menu\").hide();\r\n\r\n if (formula.rangestart) {\r\n formula.createRangeHightlight();\r\n }\r\n\r\n this.sheetBarShowAndHide(index);\r\n },\r\n sheetArrowShowAndHide() {\r\n const $wrap = $(\"#luckysheet-sheet-container-c\");\r\n if (!$wrap.length) return;\r\n var sw = $wrap[0].scrollWidth;\r\n var w = Math.ceil($wrap.width());\r\n\r\n if (sw > w) {\r\n if (luckysheetConfigsetting.showsheetbarConfig.sheet) {\r\n $(\"#luckysheet-sheet-area .luckysheet-sheets-scroll\").css(\"display\", \"inline-block\");\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-left\").show();\r\n }\r\n } else {\r\n $(\"#luckysheet-sheet-area .luckysheet-sheets-scroll\").css(\"display\", \"none\");\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-left\").hide();\r\n }\r\n },\r\n // *\u663E\u793Asheet\u680F\u5DE6\u53F3\u7684\u7070\u8272\r\n sheetBarShowAndHide(index) {\r\n let $c = $(\"#luckysheet-sheet-container-c\");\r\n\r\n if (index != null) {\r\n let $sheet = $(\"#luckysheet-sheets-item\" + index);\r\n $c.scrollLeft($sheet.offset().left);\r\n }\r\n\r\n let c_width = $c.width(),\r\n c_srollwidth = $c[0].scrollWidth,\r\n scrollLeft = $c.scrollLeft();\r\n\r\n if (scrollLeft <= 0) {\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-left\").hide();\r\n } else {\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-left\").show();\r\n }\r\n\r\n if (c_width + scrollLeft >= c_srollwidth) {\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-right\").hide();\r\n } else {\r\n $(\"#luckysheet-sheet-container .docs-sheet-fade-right\").show();\r\n }\r\n },\r\n delChart: function(chart_id, sheetIndex) {\r\n let index = this.getSheetIndex(sheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n if (file.chart == null) {\r\n file.chart = [];\r\n } else {\r\n for (let i = 0; i < file.chart.length; i++) {\r\n if (file.chart[i].chart_id == chart_id) {\r\n Store.luckysheetfile[index].chart.splice(i, 1);\r\n break;\r\n }\r\n }\r\n }\r\n },\r\n saveChart: function(json) {\r\n //\u91C7\u7528chartMix store\u5B58\u50A8\uFF0C\u5F03\u7528Store.luckysheetfile\u5B58\u50A8\uFF0C\u9632\u6B62\u91CD\u590D\u5B58\u50A8\r\n let index = this.getSheetIndex(json.sheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n if (file.chart == null) {\r\n file.chart = [];\r\n file.chart.push(json);\r\n } else {\r\n for (let i = 0; i < file.chart.length; i++) {\r\n if (file.chart[i].chart_id == json.chart_id) {\r\n let old = $.extend(true, {}, file.chart[i]);\r\n file.chart[i] = $.extend(true, {}, old, json);\r\n return;\r\n }\r\n }\r\n\r\n file.chart.push(json);\r\n }\r\n },\r\n getChart: function(sheetIndex, chart_id) {\r\n let index = this.getSheetIndex(sheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n if (file.chart == null) {\r\n return null;\r\n } else {\r\n for (let i = 0; i < file.chart.length; i++) {\r\n if (file.chart[i].chart_id == chart_id) {\r\n return file.chart[i];\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n },\r\n getRangetxt: function(sheetIndex, range, currentIndex) {\r\n let sheettxt = \"\";\r\n\r\n if (currentIndex == null) {\r\n currentIndex = Store.currentSheetIndex;\r\n }\r\n\r\n if (sheetIndex != currentIndex) {\r\n sheettxt = Store.luckysheetfile[this.getSheetIndex(sheetIndex)].name + \"!\";\r\n }\r\n\r\n let row0 = range[\"row\"][0],\r\n row1 = range[\"row\"][1];\r\n let column0 = range[\"column\"][0],\r\n column1 = range[\"column\"][1];\r\n\r\n if (row0 == null && row1 == null) {\r\n return sheettxt + chatatABC(column0) + \":\" + chatatABC(column1);\r\n } else if (column0 == null && column1 == null) {\r\n return sheettxt + (row0 + 1) + \":\" + (row1 + 1);\r\n } else {\r\n if (column0 == column1 && row0 == row1) {\r\n return sheettxt + chatatABC(column0) + (row0 + 1);\r\n } else {\r\n return sheettxt + chatatABC(column0) + (row0 + 1) + \":\" + chatatABC(column1) + (row1 + 1);\r\n }\r\n }\r\n },\r\n getSheetName: function(sheetIndex) {\r\n if (sheetIndex == null) {\r\n sheetIndex = Store.currentSheetIndex;\r\n }\r\n\r\n return Store.luckysheetfile[this.getSheetIndex(sheetIndex)].name;\r\n },\r\n getSheetMerge: function() {\r\n if (Store.config.merge == null) {\r\n return null;\r\n }\r\n\r\n return Store.config.merge;\r\n },\r\n getSheetData: function(sheetIndex) {\r\n if (sheetIndex == null) {\r\n sheetIndex = Store.currentSheetIndex;\r\n }\r\n\r\n return Store.luckysheetfile[this.getSheetIndex(sheetIndex)].data;\r\n },\r\n getSheetConfig: function(sheetIndex) {\r\n let _this = this;\r\n\r\n if (sheetIndex == null) {\r\n sheetIndex = Store.currentSheetIndex;\r\n }\r\n\r\n let config = Store.luckysheetfile[_this.getSheetIndex(sheetIndex)].config;\r\n\r\n if (config == null) {\r\n Store.luckysheetfile[_this.getSheetIndex(sheetIndex)].config = {};\r\n }\r\n\r\n return Store.luckysheetfile[_this.getSheetIndex(sheetIndex)].config;\r\n },\r\n restoreFilter: function(sheetIndex) {\r\n let index = this.getSheetIndex(sheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n // if($('#luckysheet-filter-selected-sheet' + sheetIndex).length > 0 || file.filter_select == null || JSON.stringify(file.filter_select) == \"{}\"){\r\n // if(file.config != null && file.config.rowhidden != null){\r\n // file.config.rowhidden = {};\r\n // Store.config = file.config;\r\n\r\n // jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length,false);\r\n // }\r\n\r\n // return;\r\n // }\r\n\r\n if (getObjType(file.filter_select) == \"string\") {\r\n file.filter_select = JSON.parse(file.filter_select);\r\n }\r\n\r\n if (file.filter_select == null || file.filter_select.row == null || file.filter_select.column == null) {\r\n return;\r\n }\r\n\r\n createFilterOptions(file.filter_select);\r\n\r\n if (getObjType(file.filter) != \"object\") {\r\n if (file.filter != null && getObjType(file.filter) == \"string\") {\r\n file.filter = JSON.parse(file.filter);\r\n }\r\n }\r\n\r\n let rowhidden = {};\r\n if (file.config != null && file.config.rowhidden != null) {\r\n rowhidden = file.config.rowhidden;\r\n }\r\n\r\n $(\"#luckysheet-filter-options-sheet\" + sheetIndex + \" .luckysheet-filter-options\").each(function(i) {\r\n if (file.filter == null) {\r\n return false;\r\n }\r\n\r\n let $top = $(this);\r\n let item = file.filter[i];\r\n\r\n if (item == null) {\r\n return true;\r\n }\r\n\r\n if (getObjType(item) != \"object\") {\r\n item = JSON.parse(item);\r\n }\r\n\r\n labelFilterOptionState(\r\n $top,\r\n item.optionstate,\r\n item.rowhidden,\r\n item.caljs,\r\n false,\r\n item.st_r,\r\n item.ed_r,\r\n item.cindex,\r\n item.st_c,\r\n item.ed_c,\r\n );\r\n\r\n rowhidden = $.extend(true, rowhidden, item.rowhidden);\r\n });\r\n\r\n if (file.config == null) {\r\n file.config = {};\r\n }\r\n\r\n file.config[\"rowhidden\"] = rowhidden;\r\n Store.config = file.config;\r\n\r\n jfrefreshgrid_rhcw(Store.flowdata.length, Store.flowdata[0].length, false);\r\n },\r\n restorePivot: function(sheetIndex) {\r\n let index = this.getSheetIndex(sheetIndex);\r\n let file = Store.luckysheetfile[index];\r\n\r\n if (!file.isPivotTable) {\r\n return;\r\n }\r\n\r\n pivotTable.getCellData(sheetIndex);\r\n pivotTable.initialPivotManage(true);\r\n pivotTable.refreshPivotTable(false);\r\n },\r\n restoreSheetAll: function(sheetIndex) {\r\n let _this = this;\r\n _this.restorePivot(sheetIndex);\r\n _this.restoreFilter(sheetIndex);\r\n _this.restoreFreezen(sheetIndex);\r\n },\r\n restoreFreezen: function(sheetIndex) {\r\n luckysheetFreezen.initialFreezen(sheetIndex);\r\n },\r\n restoreCache: function() {\r\n let _this = this;\r\n\r\n let data = _this.CacheNotLoadControll;\r\n _this.CacheNotLoadControll = [];\r\n\r\n if (data.length == 0) {\r\n return;\r\n }\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n let item = data[i];\r\n _this.execCache(item);\r\n }\r\n },\r\n CacheNotLoadControll: [],\r\n execCache: function(item) {\r\n let _this = this;\r\n\r\n let type = item.t;\r\n let index = item.i;\r\n let value = item.v;\r\n let file = Store.luckysheetfile[_this.getSheetIndex(index)];\r\n\r\n if (type == \"sha\") {\r\n Store.luckysheetfile.push(value);\r\n } else if (type == \"shc\") {\r\n let copyjson = $.extend(true, {}, Store.luckysheetfile[_this.getSheetIndex(value.copyindex)]);\r\n copyjson.index = index;\r\n Store.luckysheetfile.push(copyjson);\r\n } else if (type == \"shd\") {\r\n Store.luckysheetfile.splice(value.deleIndex, 1);\r\n } else if (type == \"shr\") {\r\n for (let pos in value) {\r\n Store.luckysheetfile[_this.getSheetIndex(pos)].order = value[pos];\r\n }\r\n }\r\n\r\n if ((file == null || file.load != \"1\") && !(type in { sha: 0, shc: 0, shd: 0, shr: 0 })) {\r\n _this.CacheNotLoadControll.push(item);\r\n return;\r\n }\r\n\r\n if (type == \"v\") {\r\n let r = item.r,\r\n c = item.c,\r\n v = item.v;\r\n let data = _this.getSheetData(index);\r\n file.data[r][c] = v;\r\n } else if (type == \"fc\") {\r\n let op = item.op,\r\n pos = item.pos;\r\n\r\n if (getObjType(value) != \"object\") {\r\n value = new Function(\"return \" + value)();\r\n }\r\n\r\n let r = value.r,\r\n c = value.c;\r\n\r\n if (op == \"del\") {\r\n formula.delFunctionGroup(r, c, index);\r\n } else {\r\n formula.insertUpdateFunctionGroup(r, c, index);\r\n }\r\n } else if (type == \"cg\") {\r\n let v = value,\r\n k = item.k;\r\n let config1 = _this.getSheetConfig(index);\r\n\r\n if (!(k in config1)) {\r\n config1[k] = {};\r\n }\r\n\r\n for (let key in v) {\r\n config1[k][key] = v[key];\r\n }\r\n\r\n Store.config = config1;\r\n } else if (type == \"f\") {\r\n let v = value,\r\n op = item.op,\r\n pos = item.pos;\r\n let filter = file.filter;\r\n\r\n if (filter == null) {\r\n filter = {};\r\n }\r\n\r\n if (op == \"upOrAdd\") {\r\n filter[pos] = v;\r\n } else if (op == \"del\") {\r\n delete filter[pos];\r\n }\r\n } else if (type == \"fsc\") {\r\n file.filter = null;\r\n file.filter_select = null;\r\n } else if (type == \"fsr\") {\r\n let v = value;\r\n file.filter = v.filter;\r\n file.filter_select = v.filter_select;\r\n } else if (type == \"sh\") {\r\n let op = item.op,\r\n cur = item.cur,\r\n v = value;\r\n if (op == \"hide\") {\r\n file.status = 0;\r\n Store.luckysheetfile[_this.getSheetIndex(cur)].status = 1;\r\n } else if (op == \"show\") {\r\n for (let i = 0; i < Store.luckysheetfile.length; i++) {\r\n Store.luckysheetfile[i].status = 0;\r\n }\r\n file.status = 1;\r\n }\r\n } else if (type == \"all\") {\r\n let k = item.k,\r\n s = item.s;\r\n if (s && getObjType(value) != \"object\") {\r\n file[k] = JSON.stringify(value);\r\n } else {\r\n file[k] = value;\r\n }\r\n } else if (type == \"c\") {\r\n let op = item.op,\r\n cid = item.cid;\r\n\r\n if (op == \"add\") {\r\n file.chart.push(value);\r\n } else if (op == \"xy\" || op == \"wh\" || op == \"update\") {\r\n for (let i = 0; i < file.chart.length; i++) {\r\n if (file.chart[i].chart_id == cid) {\r\n for (let item in file.chart[i]) {\r\n for (let vitem in value) {\r\n if (item == vitem) {\r\n file.chart[i][item] = value[vitem];\r\n }\r\n }\r\n }\r\n return;\r\n }\r\n }\r\n } else if (op == \"del\") {\r\n for (let i = 0; i < file.chart.length; i++) {\r\n if (file.chart[i].chart_id == cid) {\r\n file.chart.splice(i, 1);\r\n return;\r\n }\r\n }\r\n }\r\n } else if (type == \"drc\") {\r\n let rc = item.rc,\r\n index = value.index,\r\n len = value.len;\r\n let celldata = file.celldata;\r\n\r\n if (rc == \"r\") {\r\n for (let i = 0; celldata.length == 0; i++) {\r\n let cell = celldata[i];\r\n if (cell.r >= index && cell.r < index + len) {\r\n delete celldata[i];\r\n } else if (cell.r >= index + len) {\r\n cell.r -= len;\r\n }\r\n }\r\n\r\n file.row -= len;\r\n } else {\r\n for (let i = 0; celldata.length == 0; i++) {\r\n let cell = celldata[i];\r\n if (cell.c >= index && cell.c < index + len) {\r\n delete celldata[i];\r\n } else if (cell.c >= index + len) {\r\n cell.c -= len;\r\n }\r\n }\r\n\r\n file.column -= len;\r\n }\r\n\r\n let ret = [];\r\n for (let i = 0; i < celldata.length; i++) {\r\n if (celldata[i] != null) {\r\n ret.push(celldata[i]);\r\n }\r\n }\r\n file.celldata = ret;\r\n\r\n let mtype, mst, med;\r\n if (rc == \"r\") {\r\n mtype = \"row\";\r\n } else {\r\n mtype = \"column\";\r\n }\r\n mst = index;\r\n med = index + len - 1;\r\n\r\n luckysheetdeletetable(mtype, mst, med, true);\r\n } else if (type == \"arc\") {\r\n let rc = item.rc,\r\n index = value.index,\r\n len = value.len;\r\n let celldata = file.celldata;\r\n\r\n if (rc == \"r\") {\r\n for (let i = 0; i < celldata.length; i++) {\r\n let cell = celldata[i];\r\n if (cell.r > index) {\r\n cell.r += len;\r\n }\r\n }\r\n\r\n file.row += len;\r\n } else {\r\n for (let i = 0; i < celldata.length; i++) {\r\n let cell = celldata[i];\r\n if (cell.c > index) {\r\n cell.c += len;\r\n }\r\n }\r\n\r\n file.column += len;\r\n }\r\n\r\n let mtype;\r\n if (rc == \"r\") {\r\n mtype = \"row\";\r\n } else {\r\n mtype = \"column\";\r\n }\r\n\r\n luckysheetextendtable(mtype, index, len, true);\r\n } else if (type == \"na\") {\r\n server.saveParam(\"na\", null, value);\r\n } else if (type == \"thumb\") {\r\n setTimeout(function() {\r\n _this.imageRequest();\r\n }, 2000);\r\n }\r\n },\r\n};\r\n\r\nexport default sheetmanage;\r\n", "import { replaceHtml, getObjType, chatatABC, ABCatNum, luckysheetfontformat } from \"../utils/util\";\r\nimport { getSheetIndex, getRangetxt, getluckysheetfile } from \"../methods/get\";\r\nimport { setluckysheetfile } from \"../methods/set\";\r\nimport { luckyColor } from \"../controllers/constant\";\r\nimport sheetmanage from \"../controllers/sheetmanage\";\r\nimport menuButton from \"../controllers/menuButton\";\r\nimport server from \"../controllers/server\";\r\nimport luckysheetFreezen from \"../controllers/freezen\";\r\nimport { checkProtectionLocked, checkProtectionCellHidden } from \"../controllers/protection\";\r\nimport dataVerificationCtrl from \"../controllers/dataVerificationCtrl\";\r\nimport { seletedHighlistByindex, luckysheet_count_show } from \"../controllers/select\";\r\nimport { isRealNum, isRealNull, valueIsError, isEditMode } from \"./validate\";\r\nimport { isdatetime, isdatatype } from \"./datecontroll\";\r\nimport { getCellTextSplitArr, getCellTextInfo } from \"../global/getRowlen\";\r\nimport { getcellvalue, getcellFormula, getInlineStringNoStyle, getOrigincell } from \"./getdata\";\r\nimport { setcellvalue } from \"./setdata\";\r\nimport { genarate, valueShowEs } from \"./format\";\r\nimport editor from \"./editor\";\r\nimport tooltip from \"./tooltip\";\r\nimport { rowLocation, colLocation, colLocationByIndex, mouseposition } from \"./location\";\r\nimport { luckysheetRangeLast } from \"./cursorPos\";\r\nimport { jfrefreshgrid } from \"./refresh\";\r\nimport { isInlineStringCell, convertSpanToShareString } from \"../controllers/inlineString\";\r\n// import luckysheet_function from '../function/luckysheet_function';\r\n// import functionlist from '../function/functionlist';\r\nimport {\r\n luckysheet_compareWith,\r\n luckysheet_getarraydata,\r\n luckysheet_getcelldata,\r\n luckysheet_parseData,\r\n luckysheet_getValue,\r\n luckysheet_indirect_check,\r\n luckysheet_indirect_check_return,\r\n luckysheet_offset_check,\r\n luckysheet_calcADPMM,\r\n luckysheet_getSpecialReference,\r\n} from \"../function/func\";\r\nimport Store from \"../store\";\r\nimport locale from \"../locale/locale\";\r\nimport json from \"./json\";\r\nimport method from \"./method\";\r\n\r\nconst luckysheetformula = {\r\n error: {\r\n v: \"#VALUE!\", //\u9519\u8BEF\u7684\u53C2\u6570\u6216\u8FD0\u7B97\u7B26\r\n n: \"#NAME?\", //\u516C\u5F0F\u540D\u79F0\u9519\u8BEF\r\n na: \"#N/A\", //\u51FD\u6570\u6216\u516C\u5F0F\u4E2D\u6CA1\u6709\u53EF\u7528\u6570\u503C\r\n r: \"#REF!\", //\u5220\u9664\u4E86\u7531\u5176\u4ED6\u516C\u5F0F\u5F15\u7528\u7684\u5355\u5143\u683C\r\n d: \"#DIV/0!\", //\u9664\u6570\u662F0\u6216\u7A7A\u5355\u5143\u683C\r\n nm: \"#NUM!\", //\u5F53\u516C\u5F0F\u6216\u51FD\u6570\u4E2D\u67D0\u4E2A\u6570\u5B57\u6709\u95EE\u9898\u65F6\r\n nl: \"#NULL!\", //\u4EA4\u53C9\u8FD0\u7B97\u7B26\uFF08\u7A7A\u683C\uFF09\u4F7F\u7528\u4E0D\u6B63\u786E\r\n sp: \"#SPILL!\", //\u6570\u7EC4\u8303\u56F4\u6709\u5176\u5B83\u503C\r\n },\r\n errorInfo: function(err) {\r\n return err;\r\n },\r\n errorParamCheck: function(thisp, data, i) {\r\n let type, require;\r\n let _locale = locale();\r\n let locale_formulaMore = _locale.formulaMore;\r\n if (i < thisp.length) {\r\n type = thisp[i].type;\r\n require = thisp[i].require;\r\n } else {\r\n type = thisp[thisp.length - 1].type;\r\n require = thisp[thisp.length - 1].require;\r\n }\r\n\r\n if (require == \"o\" && (data == null || data == \"\")) {\r\n return [true, locale_formulaMore.tipSuccessText];\r\n }\r\n\r\n if (type.indexOf(\"all\") > -1) {\r\n return [true, locale_formulaMore.tipSuccessText];\r\n } else {\r\n if (type.indexOf(\"range\") > -1 && (getObjType(data) == \"object\" || getObjType(data) == \"array\")) {\r\n return [true, locale_formulaMore.tipSuccessText];\r\n }\r\n\r\n if (type.indexOf(\"number\") > -1 && (isRealNum(data) || getObjType(data) == \"boolean\")) {\r\n return [true, locale_formulaMore.tipSuccessText];\r\n }\r\n\r\n if (type.indexOf(\"string\") > -1 && getObjType(data) == \"string\") {\r\n return [true, locale_formulaMore.tipSuccessText];\r\n }\r\n\r\n if (type.indexOf(\"date\") > -1 && isdatetime(data)) {\r\n return [true, locale_formulaMore.tipSuccessText];\r\n }\r\n\r\n return [false, locale_formulaMore.tipParamErrorText];\r\n }\r\n },\r\n getPureValueByData: function(data) {\r\n if (data.length == 0) {\r\n return [];\r\n }\r\n\r\n let output = [];\r\n\r\n if (getObjType(data) == \"array\") {\r\n if (getObjType(data[0]) == \"array\") {\r\n for (let r = 0; r < data.length; r++) {\r\n let row = [];\r\n\r\n for (let c = 0; c < data[0].length; c++) {\r\n let cell = data[r][c];\r\n\r\n if (getObjType(cell) == \"object\") {\r\n row.push(cell.v);\r\n } else {\r\n row.push(cell);\r\n }\r\n }\r\n\r\n output.push(row);\r\n }\r\n } else {\r\n for (let i = 0; i < data.length; i++) {\r\n let cell = data[i];\r\n\r\n if (getObjType(cell) == \"object\") {\r\n output.push(cell.v);\r\n } else {\r\n output.push(cell);\r\n }\r\n }\r\n }\r\n } else {\r\n let cell = data;\r\n\r\n if (getObjType(cell) == \"object\") {\r\n output.push(cell.v);\r\n } else {\r\n output.push(cell);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n //sparklines\u6DFB\u52A0\r\n readCellDataToOneArray: function(rangeValue) {\r\n let _this = this;\r\n\r\n if (rangeValue == null) {\r\n return [];\r\n }\r\n\r\n if (getObjType(rangeValue) != \"object\") {\r\n return [rangeValue];\r\n }\r\n\r\n let dataformat = [];\r\n let data = [];\r\n\r\n if (rangeValue != null && rangeValue.data != null) {\r\n data = rangeValue.data;\r\n } else if (rangeValue != null && !isRealNull(rangeValue.v)) {\r\n return [rangeValue.v];\r\n } else {\r\n return [];\r\n }\r\n\r\n //\u9002\u914Dexcel\u7684\u52A8\u6001\u6570\u7EC4\u683C\u5F0F\uFF0C{1\uFF0C2\uFF0C3\uFF0C4\uFF0C5}\u6216\u8005{{1\uFF0C2\uFF0C3}\uFF0C{4\uFF0C5\uFF0C6}\uFF0C{7\uFF0C8\uFF0C9}}\r\n if (getObjType(data) == \"array\") {\r\n data = _this.getPureValueByData(data);\r\n } else if (getObjType(data) == \"object\") {\r\n data = data.v;\r\n\r\n return [data];\r\n } else {\r\n if (/\\{.*?\\}/.test(data)) {\r\n data = data.replace(/\\{/g, \"[\").replace(/\\}/g, \"]\");\r\n }\r\n\r\n data = new Function(\"return \" + data)();\r\n }\r\n\r\n //\u628A\u4E8C\u7EF4\u6570\u7EC4\u8F6C\u6362\u4E3A\u4E00\u7EF4\u6570\u7EC4\uFF0Csparklines\u8981\u6C42\u6570\u636E\u683C\u5F0F\u4E3A\u4E00\u7EF4\u6570\u7EC4\r\n //let dataformat = [];\r\n if (getObjType(data[0]) == \"array\") {\r\n for (let i = 0; i < data.length; i++) {\r\n dataformat = dataformat.concat(data[i]);\r\n }\r\n } else {\r\n dataformat = data;\r\n }\r\n\r\n return dataformat;\r\n },\r\n //sparklines\u6DFB\u52A0\r\n //\u83B7\u5F97\u51FD\u6570\u91CC\u67D0\u4E2A\u53C2\u6570\u7684\u503C\uFF0C\u4F7F\u7528\u6B64\u51FD\u6570\u9700\u8981\u5728\u51FD\u6570\u4E2D\u6267\u884Cluckysheet_getValue\u65B9\u6CD5\r\n getValueByFuncData: function(value, arg) {\r\n if (value == null) {\r\n return null;\r\n }\r\n\r\n let _this = this;\r\n\r\n if (getObjType(value) == \"array\") {\r\n if (arg == \"avg\") {\r\n return luckysheet_function.AVERAGE.f.apply(luckysheet_function.AVERAGE, value);\r\n } else if (arg == \"sum\") {\r\n return luckysheet_function.SUM.f.apply(luckysheet_function.SUM, value);\r\n } else {\r\n if (getObjType(value[0]) == \"object\") {\r\n return luckysheet.mask.getValueByFormat(value[0]);\r\n } else {\r\n return value[0];\r\n }\r\n }\r\n } else if (getObjType(value) == \"object\") {\r\n return luckysheet.mask.getValueByFormat(value);\r\n } else {\r\n return value;\r\n }\r\n },\r\n //sparklines\u6DFB\u52A0\r\n sparklinesColorMap: function(args, len) {\r\n let _this = this;\r\n let colorLists = null;\r\n\r\n if (len == null) {\r\n len = 5;\r\n }\r\n\r\n let index = 0;\r\n\r\n if (args.length > len) {\r\n for (let i = len; i < args.length; i++) {\r\n let colorMap = args[i];\r\n let colorListArray = _this.readCellDataToOneArray(colorMap);\r\n\r\n for (let a = 0; a < colorListArray.length; a++) {\r\n let ca = colorListArray[a];\r\n\r\n if (ca.indexOf(\":\") > -1) {\r\n if (!colorLists) {\r\n colorLists = {};\r\n }\r\n\r\n let calist = ca.split(\":\");\r\n\r\n if (calist.length == 2) {\r\n colorLists[calist[0]] = calist[1];\r\n } else if (calist.length > 1) {\r\n colorLists[calist[0] + \":\" + calist[1]] = calist[2];\r\n }\r\n } else {\r\n if (!colorLists) {\r\n colorLists = [];\r\n }\r\n\r\n colorLists.push(ca);\r\n }\r\n }\r\n\r\n index++;\r\n }\r\n }\r\n\r\n return colorLists;\r\n },\r\n //sparklines\u6DFB\u52A0\r\n colorList: [\r\n \"#2ec7c9\",\r\n \"#fc5c5c\",\r\n \"#5ab1ef\",\r\n \"#ffb980\",\r\n \"#d87a80\",\r\n \"#8d98b3\",\r\n \"#e5cf0d\",\r\n \"#97b552\",\r\n \"#95706d\",\r\n \"#dc69aa\",\r\n \"#07a2a4\",\r\n \"#9a7fd1\",\r\n \"#588dd5\",\r\n \"#f5994e\",\r\n \"#c05050\",\r\n \"#59678c\",\r\n \"#c9ab00\",\r\n \"#7eb00a\",\r\n \"#6f5553\",\r\n \"#c14089\",\r\n ],\r\n classlist: {\r\n province: {\r\n 11: \"\u5317\u4EAC\",\r\n 12: \"\u5929\u6D25\",\r\n 13: \"\u6CB3\u5317\",\r\n 14: \"\u5C71\u897F\",\r\n 15: \"\u5185\u8499\u53E4\",\r\n 21: \"\u8FBD\u5B81\",\r\n 22: \"\u5409\u6797\",\r\n 23: \"\u9ED1\u9F99\u6C5F\",\r\n 31: \"\u4E0A\u6D77\",\r\n 32: \"\u6C5F\u82CF\",\r\n 33: \"\u6D59\u6C5F\",\r\n 34: \"\u5B89\u5FBD\",\r\n 35: \"\u798F\u5EFA\",\r\n 36: \"\u6C5F\u897F\",\r\n 37: \"\u5C71\u4E1C\",\r\n 41: \"\u6CB3\u5357\",\r\n 42: \"\u6E56\u5317\",\r\n 43: \"\u6E56\u5357\",\r\n 44: \"\u5E7F\u4E1C\",\r\n 45: \"\u5E7F\u897F\",\r\n 46: \"\u6D77\u5357\",\r\n 50: \"\u91CD\u5E86\",\r\n 51: \"\u56DB\u5DDD\",\r\n 52: \"\u8D35\u5DDE\",\r\n 53: \"\u4E91\u5357\",\r\n 54: \"\u897F\u85CF\",\r\n 61: \"\u9655\u897F\",\r\n 62: \"\u7518\u8083\",\r\n 63: \"\u9752\u6D77\",\r\n 64: \"\u5B81\u590F\",\r\n 65: \"\u65B0\u7586\",\r\n 71: \"\u53F0\u6E7E\",\r\n 81: \"\u9999\u6E2F\",\r\n 82: \"\u6FB3\u95E8\",\r\n 91: \"\u56FD\u5916\",\r\n },\r\n },\r\n oldvalue: null,\r\n dontupdate: function() {\r\n let _this = this;\r\n Store.luckysheetCellUpdate.length = 0; //clear array\r\n $(\"#luckysheet-functionbox-cell, #luckysheet-rich-text-editor\").html(_this.oldvalue);\r\n _this.cancelNormalSelected();\r\n if (_this.rangetosheet != Store.currentSheetIndex) {\r\n sheetmanage.changeSheetExec(_this.rangetosheet);\r\n }\r\n },\r\n xssDeal: function(str) {\r\n if (typeof str !== \"string\") return str;\r\n return str.replace(/