"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const functionList = [
  {
    name: "常用函数",
    enCode: "frequentlyUse",
    formula: [
      {
        name: "CONCATENATE",
        enCode: "CONCATENATE",
        tip: "合并多个文本",
        example: 'CONCATENATE("姓名：", 姓名, "，年龄：", 年龄) = 姓名：张三，年龄：25',
        usage: "CONCATENATE(文本1, 文本2, ...)"
      },
      {
        name: "DATE",
        enCode: "DATE",
        tip: "将时间戳转换为日期",
        example: "DATE(1735689600000) = 2025/1/1",
        usage: "DATE(时间戳)"
      },
      {
        name: "DATEDIF",
        enCode: "DATEDIF",
        tip: "计算两个时间差",
        example: 'DATEDIF(开始日期, 结束日期, "d") = 间隔天数',
        usage: "DATEDIF(开始日期, 结束日期, 单位)"
      },
      {
        name: "IF",
        enCode: "IF",
        tip: "条件语句",
        example: 'IF(成绩>=60, "及格", "不及格") = 及格',
        usage: "IF(条件, 真值, 假值)"
      },
      {
        name: "SUM",
        enCode: "SUM",
        tip: "求和",
        example: "SUM(10, 20, 30) = 60",
        usage: "SUM(数值1, 数值2, ...)"
      }
    ]
  },
  {
    name: "数学函数",
    enCode: "math",
    formula: [
      {
        name: "ABS",
        enCode: "ABS",
        tip: "获取绝对值",
        example: "ABS(-100) = 100",
        usage: "ABS(数值)"
      },
      {
        name: "AVERAGE",
        enCode: "AVERAGE",
        tip: "计算平均值",
        example: "AVERAGE(80, 90, 70) = 80",
        usage: "AVERAGE(数值1, 数值2, ...)"
      },
      {
        name: "CEILING",
        enCode: "CEILING",
        tip: "增大到指定因数倍数",
        example: "CEILING(12.3, 5) = 15",
        usage: "CEILING(数值, 因数)"
      },
      {
        name: "COS",
        enCode: "COS",
        tip: "余弦",
        example: "COS(RADIANS(60)) = 0.5",
        usage: "COS(弧度值)"
      },
      {
        name: "COT",
        enCode: "COT",
        tip: "余切",
        example: "COT(RADIANS(45)) = 1",
        usage: "COT(弧度值)"
      },
      {
        name: "COUNT",
        enCode: "COUNT",
        tip: "计数",
        example: 'COUNT(1, 2, "", 3) = 3',
        usage: "COUNT(值1, 值2, ...)"
      },
      {
        name: "COUNTIF",
        enCode: "COUNTIF",
        tip: "满足条件参数个数",
        example: 'COUNTIF(成绩列表, ">=60") = 及格人数',
        usage: "COUNTIF(数据范围, 条件)"
      },
      {
        name: "FIXED",
        enCode: "FIXED",
        tip: "转换为文本",
        example: 'FIXED(123.456, 2) = "123.46"',
        usage: "FIXED(数值, 小数位数)"
      },
      {
        name: "FLOOR",
        enCode: "FLOOR",
        tip: "减小到指定因数倍数",
        example: "FLOOR(12.3, 5) = 10",
        usage: "FLOOR(数值, 因数)"
      },
      {
        name: "INT",
        enCode: "INT",
        tip: "获取整数",
        example: "INT(123.99) = 123",
        usage: "INT(数值)"
      },
      {
        name: "LARGE",
        enCode: "LARGE",
        tip: "获取最大值",
        example: "LARGE([10,20,30], 1) = 30",
        usage: "LARGE(数组, 排名)"
      },
      {
        name: "LOG",
        enCode: "LOG",
        tip: "计算对数",
        example: "LOG(100, 10) = 2",
        usage: "LOG(数值, 底数)"
      },
      {
        name: "MAX",
        enCode: "MAX",
        tip: "获取最大值",
        example: "MAX(10, 20, 30) = 30",
        usage: "MAX(数值1, 数值2, ...)"
      },
      {
        name: "MIN",
        enCode: "MIN",
        tip: "获取最小值",
        example: "MIN(10, 20, 30) = 10",
        usage: "MIN(数值1, 数值2, ...)"
      },
      {
        name: "MOD",
        enCode: "MOD",
        tip: "计算余数",
        example: "MOD(10, 3) = 1",
        usage: "MOD(被除数, 除数)"
      },
      {
        name: "POWER",
        enCode: "POWER",
        tip: "计算乘幂结果",
        example: "POWER(2, 3) = 8",
        usage: "POWER(底数, 指数)"
      },
      {
        name: "PRODUCT",
        enCode: "PRODUCT",
        tip: "计算乘积",
        example: "PRODUCT(2, 3, 4) = 24",
        usage: "PRODUCT(数值1, 数值2, ...)"
      },
      {
        name: "RADIANS",
        enCode: "RADIANS",
        tip: "角度转弧度",
        example: "RADIANS(180) = 3.14159265",
        usage: "RADIANS(角度值)"
      },
      {
        name: "RAND",
        enCode: "RAND",
        tip: "获取随机实数",
        example: "RAND() = 0.123456",
        usage: "RAND()"
      },
      {
        name: "ROUND",
        enCode: "ROUND",
        tip: "四舍五入",
        example: "ROUND(123.456, 2) = 123.46",
        usage: "ROUND(数值, 小数位数)"
      },
      {
        name: "SIN",
        enCode: "SIN",
        tip: "正弦",
        example: "SIN(RADIANS(30)) = 0.5",
        usage: "SIN(弧度值)"
      },
      {
        name: "SMALL",
        enCode: "SMALL",
        tip: "获取指定最小值",
        example: "SMALL([10,20,30], 1) = 10",
        usage: "SMALL(数组, 排名)"
      },
      {
        name: "SQRT",
        enCode: "SQRT",
        tip: "计算正平方根",
        example: "SQRT(16) = 4",
        usage: "SQRT(数值)"
      },
      {
        name: "SUMPRODUCT",
        enCode: "SUMPRODUCT",
        tip: "加权求和",
        example: "SUMPRODUCT([1,2],[3,4]) = 11",
        usage: "SUMPRODUCT(数组1, 数组2)"
      },
      {
        name: "SUMIF",
        enCode: "SUMIF",
        tip: "单条件求和",
        example: 'SUMIF(成绩列表, ">=60", 分数) = 及格总分',
        usage: "SUMIF(条件范围, 条件, 求和范围)"
      },
      {
        name: "SUMIFS",
        enCode: "SUMIFS",
        tip: "多条件求和",
        example: 'SUMIFS(分数, 科目, "数学", 班级, "一班") = 一班数学总分',
        usage: "SUMIFS(求和范围, 条件范围1, 条件1, 条件范围2, 条件2, ...)"
      },
      {
        name: "TAN",
        enCode: "TAN",
        tip: "正切",
        example: "TAN(RADIANS(45)) = 1",
        usage: "TAN(弧度值)"
      }
    ]
  },
  {
    name: "文本函数",
    enCode: "text",
    formula: [
      {
        name: "CHAR",
        enCode: "CHAR",
        tip: "转换计算机字符码",
        example: 'CHAR(65) = "A"',
        usage: "CHAR(字符编码)"
      },
      {
        name: "EXACT",
        enCode: "EXACT",
        tip: "比较文本一致性",
        example: 'EXACT("ABC", "abc") = FALSE',
        usage: "EXACT(文本1, 文本2)"
      },
      {
        name: "LEN",
        enCode: "LEN",
        tip: "计算字符个数",
        example: 'LEN("Hello") = 5',
        usage: "LEN(文本)"
      },
      {
        name: "LOWER",
        enCode: "LOWER",
        tip: "大写转小写",
        example: 'LOWER("HELLO") = "hello"',
        usage: "LOWER(文本)"
      },
      {
        name: "MID",
        enCode: "MID",
        tip: "从指定位置返回字符",
        example: 'MID("HelloWorld", 6, 5) = "World"',
        usage: "MID(文本, 起始位置, 字符数)"
      },
      {
        name: "REPLACE",
        enCode: "REPLACE",
        tip: "替换部分文本",
        example: 'REPLACE("HelloWorld", 6, 5, "Java") = "HelloJava"',
        usage: "REPLACE(原文本, 起始位置, 替换长度, 新文本)"
      },
      {
        name: "REPT",
        enCode: "REPT",
        tip: "重复文本",
        example: 'REPT("*", 5) = "*****"',
        usage: "REPT(文本, 重复次数)"
      },
      {
        name: "RIGHT",
        enCode: "RIGHT",
        tip: "从右返回指定个字符",
        example: 'RIGHT("HelloWorld", 5) = "World"',
        usage: "RIGHT(文本, 字符数)"
      },
      {
        name: "SEARCH",
        enCode: "SEARCH",
        tip: "获取文本出现位置",
        example: 'SEARCH("World", "HelloWorld") = 6',
        usage: "SEARCH(查找文本, 原文本)"
      },
      {
        name: "TEXT",
        enCode: "TEXT",
        tip: "数字转文本",
        example: 'TEXT(1234.56, "0.00") = "1234.56"',
        usage: "TEXT(数值, 格式)"
      },
      {
        name: "TRIM",
        enCode: "TRIM",
        tip: "删除首尾空格",
        example: 'TRIM("  Hello  ") = "Hello"',
        usage: "TRIM(文本)"
      },
      {
        name: "UPPER",
        enCode: "UPPER",
        tip: "小写转大写",
        example: 'UPPER("hello") = "HELLO"',
        usage: "UPPER(文本)"
      },
      {
        name: "VALUE",
        enCode: "VALUE",
        tip: "文本转数字",
        example: 'VALUE("123.45") = 123.45',
        usage: "VALUE(文本)"
      }
    ]
  },
  {
    name: "日期函数",
    enCode: "date",
    formula: [
      {
        name: "DAY",
        enCode: "DAY",
        tip: "当月第几天",
        example: 'DAY("2025/1/15") = 15',
        usage: "DAY(日期)"
      },
      {
        name: "DATEDELTA",
        enCode: "DATEDELTA",
        tip: "加减日期天数",
        example: 'DATEDELTA("2025/1/15",2) = 2025/1/17',
        usage: "DATEDELTA(指定日期,需要加减的天数)"
      },
      {
        name: "EDATE",
        enCode: "EDATE",
        tip: "加减日期月份",
        example: 'EDATE("2025/1/15",2) = 2025/3/15',
        usage: "EDATE(指定日期,需要加减的月份数)"
      },
      {
        name: "DAYS",
        enCode: "DAYS",
        tip: "计算时间天数差",
        example: 'DAYS("2025/1/15", "2025/1/1") = 14',
        usage: "DAYS(结束日期, 开始日期)"
      },
      {
        name: "DAYS360",
        enCode: "DAYS360",
        tip: "计算时间天数差",
        example: 'DAYS360("2025/1/1", "2025/12/31") = 360',
        usage: "DAYS360(开始日期, 结束日期)"
      },
      {
        name: "HOUR",
        enCode: "HOUR",
        tip: "获取小时",
        example: 'HOUR("2025/1/1 12:30:00") = 12',
        usage: "HOUR(时间)"
      },
      {
        name: "ISOWEEKNUM",
        enCode: "ISOWEEKNUM",
        tip: "当年第几周",
        example: 'ISOWEEKNUM("2025/1/1") = 1',
        usage: "ISOWEEKNUM(日期)"
      },
      {
        name: "MINUTE",
        enCode: "MINUTE",
        tip: "获取分钟",
        example: 'MINUTE("2025/1/1 12:30:00") = 30',
        usage: "MINUTE(时间)"
      },
      {
        name: "MONTH",
        enCode: "MONTH",
        tip: "获取月份",
        example: 'MONTH("2025/1/15") = 1',
        usage: "MONTH(日期)"
      },
      {
        name: "NETWORKDAYS",
        enCode: "NETWORKDAYS",
        tip: "工作日天数",
        example: 'NETWORKDAYS("2025/1/1", "2025/1/10") = 8',
        usage: "NETWORKDAYS(开始日期, 结束日期)"
      },
      {
        name: "NOW",
        enCode: "NOW",
        tip: "获取当前时间",
        example: "NOW() = 2025/1/1 12:30:00",
        usage: "NOW()"
      },
      {
        name: "SECOND",
        enCode: "SECOND",
        tip: "获取秒数",
        example: 'SECOND("2025/1/1 12:30:45") = 45',
        usage: "SECOND(时间)"
      },
      {
        name: "TIME",
        enCode: "TIME",
        tip: "获取时间的十进制数字",
        example: "TIME(12, 30, 0) = 0.520833",
        usage: "TIME(小时, 分钟, 秒)"
      },
      {
        name: "TODAY",
        enCode: "TODAY",
        tip: "获取今天",
        example: "TODAY() = 2025/1/1",
        usage: "TODAY()"
      },
      {
        name: "WEEKDAY",
        enCode: "WEEKDAY",
        tip: "获取星期数",
        example: 'WEEKDAY("2025/1/1") = 4',
        usage: "WEEKDAY(日期)"
      },
      {
        name: "WEEKNUM",
        enCode: "WEEKNUM",
        tip: "当年第几周",
        example: 'WEEKNUM("2025/1/1") = 1',
        usage: "WEEKNUM(日期)"
      },
      {
        name: "WORKDAY",
        enCode: "WORKDAY",
        tip: "计算指定工作日",
        example: 'WORKDAY("2025/1/1", 5) = 2025/1/8',
        usage: "WORKDAY(开始日期, 天数)"
      },
      {
        name: "YEAR",
        enCode: "YEAR",
        tip: "返回年份",
        example: 'YEAR("2025/1/15") = 2025',
        usage: "YEAR(日期)"
      }
    ]
  },
  {
    name: "逻辑函数",
    enCode: "logic",
    formula: [
      {
        name: "AND",
        enCode: "AND",
        tip: "且",
        example: "AND(1>0, 2>1) = TRUE",
        usage: "AND(条件1, 条件2, ...)"
      },
      {
        name: "FALSE",
        enCode: "FALSE",
        tip: "返回false",
        example: "FALSE() = FALSE",
        usage: "FALSE()"
      },
      {
        name: "IFS",
        enCode: "IFS",
        tip: "多条件嵌套",
        example: 'IFS(成绩>=90,"优秀",成绩>=80,"良好",成绩>=60,"及格") = 良好',
        usage: "IFS(条件1, 结果1, 条件2, 结果2, ...)"
      },
      {
        name: "NOT",
        enCode: "NOT",
        tip: "反转真假的结果",
        example: "NOT(TRUE) = FALSE",
        usage: "NOT(条件)"
      },
      {
        name: "OR",
        enCode: "OR",
        tip: "或",
        example: "OR(1<0, 2>1) = TRUE",
        usage: "OR(条件1, 条件2, ...)"
      },
      {
        name: "TRUE",
        enCode: "TRUE",
        tip: "返回true",
        example: "TRUE() = TRUE",
        usage: "TRUE()"
      },
      {
        name: "XOR",
        enCode: "XOR",
        tip: "异或",
        example: "XOR(TRUE, FALSE) = TRUE",
        usage: "XOR(条件1, 条件2, ...)"
      }
    ]
  },
  {
    name: "高级函数",
    enCode: "advanced",
    formula: [
      {
        name: "INDEX",
        enCode: "INDEX",
        tip: "获取数组指定位置的值",
        example: 'INDEX(["张三","李四","王五"], 2) = "李四"',
        usage: "INDEX(数组, 索引)"
      }
    ]
  }
];
exports.default = functionList;
