function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
export var LogComplianceExtendKeys = /*#__PURE__*/_createClass(function LogComplianceExtendKeys() {
  _classCallCheck(this, LogComplianceExtendKeys);
});
// 静态常量字典，用于存储合规扩展参数
// c 辅助排查问题的内容，通常是字符串类型
// m 是 number 类型，通常用于数学计算，比如求平均数
// d 是维度，比如城市，就是维度信息，典型的用法就是按照维度计算 m 值，比如求上海人年龄的平均数，那么，上海这个城市信息，上报的时候就放在 d 字段，每个人的年龄信息，就应该放在 m 字段
_defineProperty(LogComplianceExtendKeys, "complianceExtParams", {
  // C 字符串类型
  requestSeq: 'C',
  firstLogTime: 'C',
  sessionData: 'C',
  isPreload: 'C',
  disableAccelerate: 'C',
  deviceId: 'C',
  url: 'C',
  errorName: 'C',
  isPrerender: 'C',
  loadWebAppType: 'C',
  rpcTraceId: 'C',
  timezone: 'C',
  userPath: 'C',
  previousEventName: 'C',
  containerCacheFileCount: 'C',
  containerTotalFileCount: 'C',
  containerMissedFiles: 'C',
  containerOfflinePkgId: 'C',
  containerTotalPkgCount: 'C',
  webAppUrl: 'C',
  webSDKUrl: 'C',
  edcDeviceRequest: 'C',
  config: 'C',
  initOptions: 'C',
  edcDeviceId: 'C',
  instanceId: 'C',
  trackId: 'C',
  errorMessage: 'C',
  timestamp: 'C',
  eventMessage: 'C',
  checkoutUrl: 'C',
  redirectInfo: 'C',
  riskSdkInfo: 'C',
  actionName: 'C',
  requestId: 'C',
  callbackData: 'C',
  callbackId: 'C',
  actionNames: 'C',
  isValid: 'C',
  needChangeSessionForRetry: 'C',
  constructorName: 'C',
  result: 'C',
  // D 维度信息
  operationType: 'D',
  jsApi: 'D',
  extSdkError: 'D',
  processResult: 'D',
  iterationVersion: 'D',
  OperationType: 'D',
  edcVendor: 'D',
  platform: 'D',
  sdkVersion: 'D',
  eventSource: 'D',
  productScene: 'D',
  paymentMethodCategoryType: 'D',
  productSceneVersion: 'D',
  merchantId: 'D',
  eventName: 'D',
  paymentMethodType: 'D',
  containerVersion: 'D',
  locale: 'D',
  renderDisplayType: 'D',
  webAppVersion: 'D',
  eventCode: 'D',
  containerType: 'D',
  logVersion: 'D',
  httpCode: 'D',
  openType: 'D',
  isCrashTack: 'D',
  isCrashTrackOverride: 'D',
  appUpgradeVersion: 'D',
  fromFastSdk: 'D',
  terminalType: 'D',
  eventAlias: 'D',
  // 用来标记事件别名
  success: 'D',
  // 用来标记行为是否成功
  startTime: 'D',
  endTime: 'D',
  // M 数字类型
  timeCost: 'M',
  pageLoadProgress: 'M',
  fsDuration: 'M',
  loadDuration: 'M',
  // 由于部分logerror参数是msg
  msg: 'C'
});
export var KEYS = {
  EVENT_SDK_ON_ABNORMAL_EVENT_NAME: {
    spmId: 'a3753.b101271.c388193.d513345',
    alias: 'sdk_event_onAbnormalEventName'
  },
  EVENT_SDK_ON_ABNORMAL_EVENT_EXT_INFO: {
    spmId: 'a3753.b101271.c388193.d513391',
    alias: 'sdk_event_onAbnormalKeys'
  }
};