@wix/mcp 1.0.23 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/build/bin-standalone.js +714 -252
  2. package/build/bin-standalone.js.map +4 -4
  3. package/build/cjs/index.cjs +1137 -362
  4. package/build/cjs/index.cjs.map +4 -4
  5. package/build/dts/api-call/index.d.ts +7 -1
  6. package/build/dts/api-call/index.d.ts.map +1 -1
  7. package/build/dts/api-call/index.js +110 -42
  8. package/build/dts/api-call/index.js.map +1 -1
  9. package/build/dts/api-call/upload-image-tool.d.ts +8 -0
  10. package/build/dts/api-call/upload-image-tool.d.ts.map +1 -0
  11. package/build/dts/api-call/upload-image-tool.js +150 -0
  12. package/build/dts/api-call/upload-image-tool.js.map +1 -0
  13. package/build/dts/api-call/validation.d.ts +1 -0
  14. package/build/dts/api-call/validation.d.ts.map +1 -1
  15. package/build/dts/api-call/validation.js +7 -7
  16. package/build/dts/api-call/validation.js.map +1 -1
  17. package/build/dts/cli-tools/cli.d.ts.map +1 -1
  18. package/build/dts/cli-tools/cli.js +6 -4
  19. package/build/dts/cli-tools/cli.js.map +1 -1
  20. package/build/dts/config/default-config.d.ts +41 -0
  21. package/build/dts/config/default-config.d.ts.map +1 -0
  22. package/build/dts/config/default-config.js +169 -0
  23. package/build/dts/config/default-config.js.map +1 -0
  24. package/build/dts/docs/docs.d.ts +12 -2
  25. package/build/dts/docs/docs.d.ts.map +1 -1
  26. package/build/dts/docs/docs.js +27 -101
  27. package/build/dts/docs/docs.js.map +1 -1
  28. package/build/dts/docs/fetch-article.d.ts +1 -1
  29. package/build/dts/docs/fetch-article.d.ts.map +1 -1
  30. package/build/dts/docs/fetch-article.js +39 -1
  31. package/build/dts/docs/fetch-article.js.map +1 -1
  32. package/build/dts/docs/get-to-know.d.ts +9 -4
  33. package/build/dts/docs/get-to-know.d.ts.map +1 -1
  34. package/build/dts/docs/get-to-know.js +76 -81
  35. package/build/dts/docs/get-to-know.js.map +1 -1
  36. package/build/dts/docs/semanticSearch.d.ts.map +1 -1
  37. package/build/dts/docs/semanticSearch.js +4 -1
  38. package/build/dts/docs/semanticSearch.js.map +1 -1
  39. package/build/dts/docs/semanticSearch.test.js +5 -14
  40. package/build/dts/docs/semanticSearch.test.js.map +1 -1
  41. package/build/dts/index.d.ts +4 -3
  42. package/build/dts/index.d.ts.map +1 -1
  43. package/build/dts/index.js +4 -2
  44. package/build/dts/index.js.map +1 -1
  45. package/build/dts/infra/logger.d.ts +1 -0
  46. package/build/dts/infra/logger.d.ts.map +1 -1
  47. package/build/dts/infra/logger.js +4 -0
  48. package/build/dts/infra/logger.js.map +1 -1
  49. package/build/dts/infra/widget-payload.d.ts +11 -0
  50. package/build/dts/infra/widget-payload.d.ts.map +1 -0
  51. package/build/dts/infra/widget-payload.js +2 -0
  52. package/build/dts/infra/widget-payload.js.map +1 -0
  53. package/build/dts/site-widget-tools/constants.d.ts +4 -0
  54. package/build/dts/site-widget-tools/constants.d.ts.map +1 -0
  55. package/build/dts/site-widget-tools/constants.js +6 -0
  56. package/build/dts/site-widget-tools/constants.js.map +1 -0
  57. package/build/dts/site-widget-tools/edit-site-tool/index.d.ts +4 -0
  58. package/build/dts/site-widget-tools/edit-site-tool/index.d.ts.map +1 -0
  59. package/build/dts/site-widget-tools/edit-site-tool/index.js +171 -0
  60. package/build/dts/site-widget-tools/edit-site-tool/index.js.map +1 -0
  61. package/build/dts/site-widget-tools/index.d.ts +4 -0
  62. package/build/dts/site-widget-tools/index.d.ts.map +1 -0
  63. package/build/dts/site-widget-tools/index.js +4 -0
  64. package/build/dts/site-widget-tools/index.js.map +1 -0
  65. package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.d.ts +4 -0
  66. package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.d.ts.map +1 -0
  67. package/build/dts/{pull-site-creation-job-tool → site-widget-tools/pull-site-creation-job-tool}/index.js +60 -27
  68. package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.js.map +1 -0
  69. package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.d.ts +52 -0
  70. package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.d.ts.map +1 -0
  71. package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.js +2 -0
  72. package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.js.map +1 -0
  73. package/build/dts/site-widget-tools/site-builder-tool/index.d.ts +4 -0
  74. package/build/dts/site-widget-tools/site-builder-tool/index.d.ts.map +1 -0
  75. package/build/dts/{site-builder-tool → site-widget-tools/site-builder-tool}/index.js +13 -16
  76. package/build/dts/site-widget-tools/site-builder-tool/index.js.map +1 -0
  77. package/build/dts/support/index.d.ts.map +1 -1
  78. package/build/dts/support/index.js +10 -16
  79. package/build/dts/support/index.js.map +1 -1
  80. package/build/dts/wix-mcp-server.d.ts +2 -0
  81. package/build/dts/wix-mcp-server.d.ts.map +1 -1
  82. package/build/dts/wix-mcp-server.js +8 -0
  83. package/build/dts/wix-mcp-server.js.map +1 -1
  84. package/build/esm/index.js +1129 -362
  85. package/build/esm/index.js.map +4 -4
  86. package/package.json +28 -25
  87. package/build/dts/pull-site-creation-job-tool/constants.d.ts +0 -3
  88. package/build/dts/pull-site-creation-job-tool/constants.d.ts.map +0 -1
  89. package/build/dts/pull-site-creation-job-tool/constants.js +0 -3
  90. package/build/dts/pull-site-creation-job-tool/constants.js.map +0 -1
  91. package/build/dts/pull-site-creation-job-tool/index.d.ts +0 -21
  92. package/build/dts/pull-site-creation-job-tool/index.d.ts.map +0 -1
  93. package/build/dts/pull-site-creation-job-tool/index.js.map +0 -1
  94. package/build/dts/site-builder-tool/constants.d.ts +0 -7
  95. package/build/dts/site-builder-tool/constants.d.ts.map +0 -1
  96. package/build/dts/site-builder-tool/constants.js +0 -7
  97. package/build/dts/site-builder-tool/constants.js.map +0 -1
  98. package/build/dts/site-builder-tool/index.d.ts +0 -4
  99. package/build/dts/site-builder-tool/index.d.ts.map +0 -1
  100. package/build/dts/site-builder-tool/index.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../node_modules/@wix/panorama-common-shared/src/types/enum-types.ts", "../../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js", "../../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js", "../../../node_modules/@wix/panorama-common-shared/src/types/index.ts", "../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js", "../../../node_modules/@babel/runtime/helpers/typeof.js", "../../../node_modules/@babel/runtime/helpers/toPrimitive.js", "../../../node_modules/@babel/runtime/helpers/toPropertyKey.js", "../../../node_modules/@babel/runtime/helpers/defineProperty.js", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/duration-tracker/duration-tracker.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/duration-tracker/index.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/global-config/global-config.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/global-config/index.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/utils/class-utils.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/utils/index.ts", "../../../node_modules/@wix/panorama-client/src/utils/general-utils.ts", "../../../node_modules/@wix/panorama-client/src/panorama-error-monitor.ts", "../../../node_modules/@wix/panorama-client/src/panorama-logger.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/transaction-utils.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/platform-utils.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/guid.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/index.ts", "../../../node_modules/@wix/panorama-client/src/panorama-transaction.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-component.ts", "../../../node_modules/@wix/panorama-client/src/plugins/hooks-manager.ts", "../../../node_modules/@wix/panorama-client/src/panorama-phase.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client.ts", "../../../node_modules/@wix/panorama-client/src/utils/error-utils.ts", "../../../node_modules/@wix/panorama-client/src/constants.ts", "../../../node_modules/@wix/panorama-client/src/lib/payload-sanitizer.ts", "../../../node_modules/@wix/panorama-client/src/lib/payload-builder.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-base.ts", "../../../node_modules/@wix/panorama-client/src/lib/scope.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-factory.ts", "../../../node_modules/@wix/panorama-client/src/types.ts", "../../../node_modules/@wix/panorama-client/src/index.ts", "../../../node_modules/@wix/panorama-common-shared/src/constants.ts", "../../../node_modules/@wix/panorama-client-node/src/reporter.ts", "../../../node_modules/@wix/panorama-client-node/src/panorama-client-node.ts", "../../../node_modules/@wix/panorama-client-node/src/index.ts", "../../../node_modules/tslib/tslib.es6.mjs", "../../../node_modules/@wix/wix-bi-logger-client/lib/assert.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/collections.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/promise.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/log.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/debounce.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/throttle.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/batch-queue.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/consent-policy.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger-manager.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger-factory.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/base-64/base64.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/ms/index.js", "../../../node_modules/debug/src/common.js", "../../../node_modules/debug/src/browser.js", "../../../node_modules/supports-color/node_modules/has-flag/index.js", "../../../node_modules/supports-color/index.js", "../../../node_modules/debug/src/node.js", "../../../node_modules/debug/src/index.js", "../../../node_modules/follow-redirects/debug.js", "../../../node_modules/follow-redirects/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/package.json", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/adapters/http.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/index-node.ts", "../../../node_modules/@wix/standalone-node-bi-logger/src/index.ts", "../../../node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/@wix/http-client/node_modules/axios/package.json", "../../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/http.js", "../../../node_modules/agent-base/src/helpers.ts", "../../../node_modules/agent-base/src/index.ts", "../../../node_modules/http-proxy-agent/src/index.ts", "../../../node_modules/@wix/http-client/node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../../../node_modules/@wix/http-client/node_modules/https-proxy-agent/src/index.ts", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/http-client/node_modules/axios/index.js", "../../../node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/http-client/src/index-node.ts", "../src/infra/sentry.ts", "../src/bin.ts", "../src/docs/docs.ts", "../src/infra/logger.ts", "../src/docs/semanticSearch.ts", "../src/constants.ts", "../src/docs/fetch-article.ts", "../src/docs/get-to-know.ts", "../src/docs/create-site-guide.ts", "../src/cli-tools/cli.ts", "../src/wix-mcp-server.ts", "../../../node_modules/@wix/bi-logger-api-infra-data/src/v2/index.ts", "../src/infra/panorama.ts", "../src/infra/bi-logger.ts", "../src/infra/environment.ts", "../src/resources/docs.ts", "../src/api-call/index.ts", "../src/tool-utils.ts", "../src/api-call/validation.ts", "../src/docs/velo-readme.ts", "../src/cli-tools/utils.ts"],
4
- "sourcesContent": ["export enum AlertType {\n SuccessRate = 'SuccessRate',\n SuccessRateQuality = 'SuccessRateQuality',\n Duration = 'Duration',\n ErrorRate = 'ErrorRate',\n}\n\nexport enum AlertStatus { // lowercase, because that's how Grafana sends it\n Alerting = 'alerting',\n Ok = 'ok',\n}\n\nexport enum LogLevel {\n Info = 'INFO',\n Warn = 'WARN',\n Error = 'ERROR',\n Debug = 'DEBUG',\n}\n\nexport enum TransactionAction {\n Start = 'START',\n Finish = 'FINISH',\n}\n\nexport const InternalTransactions = {\n ComponentLoad: 'PANORAMA_COMPONENT_LOAD',\n ComponentPhase: 'PANORAMA_COMPONENT_PHASE',\n} as const;\n\nexport type PhaseName = string;\n\nexport enum Platform {\n Standalone = 'standalone',\n BusinessManager = 'business-manager',\n Viewer = 'viewer',\n Editor = 'editor',\n EditorSettings = 'editor:settings',\n Mobile = 'mobile',\n Standards = 'standards',\n DevPortal = 'dev-portal',\n}\n\n// This mirrors Sentry severity levels\nexport enum ErrorSeverity {\n Fatal = 'fatal',\n Error = 'error',\n Warning = 'warning',\n Log = 'log',\n Info = 'info',\n Debug = 'debug',\n Critical = 'critical',\n}\n", "\"use strict\";\n\nexports.__esModule = true;\n//# sourceMappingURL=data-types.js.map", "\"use strict\";\n\nexports.__esModule = true;\n//# sourceMappingURL=interface-types.js.map", "export * from './enum-types';\nexport * from './data-types';\nexport * from './interface-types';\n", "function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "const DELIMITER = ' | ';\n\nexport interface DurationTracker {\n markTransactionStart(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ): void;\n\n markTransactionFinish(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ): number;\n\n markPhaseStart(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ): void;\n\n markPhaseFinish(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ): number;\n}\n\nclass DurationTrackerImpl implements DurationTracker {\n private transactionStartTimes: Record<string, number> = {};\n private phaseStartTimes: Record<string, number> = {};\n\n private createKey(...args: (number | string | undefined)[]) {\n return args.filter((x) => !!x).join(DELIMITER);\n }\n\n markTransactionStart(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ) {\n const key = this.createKey(\n fullArtifactId,\n componentId,\n transactionName,\n transactionId,\n );\n\n this.transactionStartTimes[key] = Date.now();\n }\n\n markTransactionFinish(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ) {\n const key = this.createKey(\n fullArtifactId,\n componentId,\n transactionName,\n transactionId,\n );\n const finishTime = Date.now();\n const startTime = this.transactionStartTimes[key] || finishTime;\n const duration = Math.round(finishTime - startTime);\n\n this.transactionStartTimes[key] = 0;\n\n return duration;\n }\n\n markPhaseStart(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ) {\n const key = this.createKey(fullArtifactId, componentId, phaseName);\n\n this.phaseStartTimes[key] = Date.now();\n }\n\n markPhaseFinish(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ) {\n const key = this.createKey(fullArtifactId, componentId, phaseName);\n const finishTime = Date.now();\n const startTime = this.phaseStartTimes[key] || finishTime;\n const duration = Math.round(finishTime - startTime);\n\n this.phaseStartTimes[key] = 0;\n\n return duration;\n }\n}\n\nexport const createDurationTracker = () => new DurationTrackerImpl();\n", "export {\n type DurationTracker,\n createDurationTracker,\n} from './duration-tracker';\n", "import { v4 } from 'uuid';\nimport type {\n EventPayload,\n BatchQueue,\n Reporter,\n} from '@wix/panorama-common-shared/types';\nimport {\n type DurationTracker,\n createDurationTracker,\n} from '../duration-tracker';\n\nexport interface GlobalConfig<\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n> {\n getSessionId(): string;\n\n setSessionId(sessionId: string): void;\n\n getSessionTime(): number;\n\n getReporter(): Reporter<Payload> | null;\n\n setReporter(reporter: Reporter<Payload>): void;\n\n initBatchQueue(batchQueue: BatchQueue): void;\n\n getBatchQueue(): BatchQueue;\n\n getStateValue<K extends keyof State>(key: K): State[K];\n\n setStateValue<K extends keyof State>(key: K, value: State[K]): void;\n\n getDurationTracker(): DurationTracker;\n\n clearState(): void;\n}\n\nclass GlobalConfigImpl<\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n> implements GlobalConfig<Payload, State>\n{\n private sessionId: string = '';\n private reporter: Reporter<Payload> | null = null;\n private batchQueue: BatchQueue | null = null;\n private durationTracker = createDurationTracker();\n private readonly state = new Map();\n private readonly sessionStart = Date.now();\n\n getSessionId() {\n this.sessionId = this.sessionId || v4();\n\n return this.sessionId;\n }\n\n setSessionId(sessionId: string) {\n this.sessionId = sessionId;\n }\n\n getSessionTime() {\n return Date.now() - this.sessionStart;\n }\n\n getReporter() {\n return this.reporter;\n }\n\n setReporter(reporter: Reporter<Payload>) {\n this.reporter = reporter;\n }\n\n initBatchQueue(batchQueue: BatchQueue) {\n this.batchQueue = this.batchQueue ?? batchQueue;\n }\n\n getBatchQueue(): BatchQueue {\n return this.batchQueue!;\n }\n\n getDurationTracker() {\n return this.durationTracker;\n }\n\n getStateValue<K extends keyof State>(key: K): State[K] {\n return this.state.get(key);\n }\n\n setStateValue<K extends keyof State>(key: K, value: State[K]) {\n this.state.set(key, value);\n }\n\n clearState() {\n this.state.clear();\n this.durationTracker = createDurationTracker();\n }\n}\n\nexport const createGlobalConfig = <\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n>(): GlobalConfig<Payload, State> => new GlobalConfigImpl<Payload, State>();\n", "export { createGlobalConfig } from './global-config';\nexport type { GlobalConfig } from './global-config';\n", "export const bindPrototypeMethodsToSelf = (\n instance: any,\n classFn?: Function,\n) => {\n const prototype = classFn\n ? classFn.prototype\n : Object.getPrototypeOf(instance);\n\n const props = Object.getOwnPropertyNames(prototype);\n\n for (const prop of props) {\n if (prop === 'constructor' || typeof prototype[prop] !== 'function') {\n continue;\n }\n\n instance[prop] = prototype[prop].bind(instance);\n }\n};\n", "export * from './class-utils';\n", "export const last = (arr?: any[]) =>\n Array.isArray(arr) ? arr[arr.length - 1] : undefined;\n\nexport const union = <T>(...args: T[][]) => [...new Set(args.flat()).values()];\n\n/**\n * The reason spread operator is not used here is because of its behavior when passing an entry with undefined value explicitly:\n * const a = { hello: 'world' }\n * const b = {...a, hello: undefined }; // {hello: undefined}\n * We want to ignore the undefined value and use the defined value from the previous object instead.\n */\nexport const defaults = <T extends Record<string, any>>(\n ...args: (T | undefined)[]\n) =>\n args.reduce<T>(\n (res, obj) =>\n Object.entries(obj ?? {}).reduce((_res, [key, value]) => {\n if (typeof _res[key] === 'undefined' && typeof value !== 'undefined') {\n (_res as Record<string, any>)[key] = value;\n }\n\n return _res;\n }, res),\n {} as T,\n );\n\nexport const deepDefaults = <T extends Record<string, any>>(\n dest?: T,\n ...rest: (T | undefined)[]\n): T | undefined => {\n const keys = union<keyof T>(...rest.map((value) => Object.keys(value ?? {})));\n const all = [dest, ...rest];\n\n return keys.reduce<T | undefined>(\n (res, key) => {\n const values = all.map((value) => value?.[key]);\n const merged = defaults(...(values as [T[keyof T]]));\n\n const hasValues =\n Object.values(merged).filter((value) => typeof value !== 'undefined')\n .length > 0;\n\n if (hasValues) {\n res = res ?? ({} as T);\n res[key] = merged;\n } else {\n delete res?.[key];\n }\n\n return res;\n },\n dest ? { ...dest } : dest,\n );\n};\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type { ErrorUserData } from '@wix/panorama-common-shared/types';\nimport type { Breadcrumb, ErrorMonitorOptions } from './types';\nimport { BasePanoramaClient } from './panorama-client-base';\n\nexport interface PanoramaErrorMonitor<T extends ErrorUserData> {\n reportError(error: Error, data?: T): void;\n\n addBreadcrumb(breadcrumb: Breadcrumb): void;\n}\n\nexport class PanoramaErrorMonitorImpl<T extends ErrorUserData> {\n constructor(\n private readonly baseClient: BasePanoramaClient,\n private readonly options?: ErrorMonitorOptions,\n ) {\n bindPrototypeMethodsToSelf(this);\n }\n\n reportError(error: Error, data?: T) {\n this.baseClient.reportError(error, data, this.options);\n }\n\n addBreadcrumb(breadcrumb: Breadcrumb) {\n this.baseClient.addBreadcrumb(breadcrumb);\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport { BasePanoramaClient } from './panorama-client-base';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\n\nexport interface PanoramaLogger {\n info(message: string, data?: Record<string, any>): void;\n\n warn(message: string, data?: Record<string, any>): void;\n\n error(message: string, data?: Record<string, any>): void;\n\n debug(message: string, data?: Record<string, any>): void;\n}\n\nexport class PanoramaLoggerImpl implements PanoramaLogger {\n constructor(private readonly baseClient: BasePanoramaClient) {\n bindPrototypeMethodsToSelf(this);\n }\n\n public info(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Info, message, data);\n }\n\n public warn(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Warn, message, data);\n }\n\n public error(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Error, message, data);\n }\n\n public debug(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Debug, message, data);\n }\n}\n", "import { InternalTransactions } from '../types';\n\ntype InternalTransactionsName =\n (typeof InternalTransactions)[keyof typeof InternalTransactions];\n\nexport type CustomTransactionName<T extends string> =\n T extends InternalTransactionsName ? never : T;\n\nexport const isCustomTransactionName = (\n name: InternalTransactionsName | string,\n) =>\n !Object.values(InternalTransactions).includes(\n name as InternalTransactionsName,\n );\n", "import { Platform } from '../types';\n\nexport const isSsrEnabledInPlatform = (platform: Platform) =>\n platform === Platform.Viewer;\n", "export const generateGuidRegex = () =>\n /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/;\n", "export * from './transaction-utils';\nexport * from './platform-utils';\nexport * from './guid';\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type { TransactionUserData } from '@wix/panorama-common-shared/types';\nimport {\n type CustomTransactionName,\n isCustomTransactionName,\n} from '@wix/panorama-common-shared/utils';\nimport { type BasePanoramaClient } from './panorama-client-base';\nimport type { TransactionOptions } from './types';\nimport { defaults } from './utils/general-utils';\n\nexport interface PanoramaTransaction {\n start: (data?: TransactionUserData, options?: TransactionOptions) => void;\n finish: (data?: TransactionUserData, options?: TransactionOptions) => void;\n}\n\nexport class PanoramaTransactionImpl implements PanoramaTransaction {\n constructor(\n private readonly baseClient: BasePanoramaClient,\n private readonly name: CustomTransactionName<string>,\n private readonly options?: TransactionOptions,\n ) {\n if (!isCustomTransactionName(name)) {\n throw new Error(`\"${name}\" is an internal transaction and can't be used`);\n }\n\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n start(data?: TransactionUserData, options?: TransactionOptions) {\n return this.baseClient.reportTransactionStart(\n this.name,\n defaults(options, this.options),\n data,\n );\n }\n\n finish(data?: TransactionUserData, options?: TransactionOptions) {\n return this.baseClient.reportTransactionFinish(\n this.name,\n defaults(options, this.options),\n data,\n );\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport { type CustomTransactionName } from '@wix/panorama-common-shared/utils';\nimport { type BasePanoramaClient } from './panorama-client-base';\nimport {\n type PanoramaErrorMonitor,\n PanoramaErrorMonitorImpl,\n} from './panorama-error-monitor';\nimport { type PanoramaLogger, PanoramaLoggerImpl } from './panorama-logger';\nimport type {\n ErrorMonitorOptionsForComponent,\n ErrorMonitorUserData,\n TransactionOptions,\n} from './types';\nimport {\n type PanoramaTransaction,\n PanoramaTransactionImpl,\n} from './panorama-transaction';\n\ninterface Options {\n baseClient: BasePanoramaClient;\n}\n\nexport interface PanoramaClientForComponent {\n transaction<T extends string>(\n name: CustomTransactionName<T>,\n options?: TransactionOptions,\n ): PanoramaTransaction;\n\n errorMonitor(\n options?: ErrorMonitorOptionsForComponent,\n ): PanoramaErrorMonitor<ErrorMonitorUserData>;\n\n logger(): PanoramaLogger;\n}\n\nexport class PanoramaClientForComponentImpl\n implements PanoramaClientForComponent\n{\n private baseClient: BasePanoramaClient;\n\n constructor({ baseClient }: Options) {\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n transaction(\n name: CustomTransactionName<string>,\n options?: TransactionOptions,\n ) {\n return new PanoramaTransactionImpl(this.baseClient, name, options);\n }\n\n errorMonitor(\n options?: ErrorMonitorOptionsForComponent,\n ): PanoramaErrorMonitor<ErrorMonitorUserData> {\n return new PanoramaErrorMonitorImpl(this.baseClient, options);\n }\n\n logger(): PanoramaLogger {\n return new PanoramaLoggerImpl(this.baseClient);\n }\n}\n", "import type {\n EventPayload,\n ErrorUserData,\n TransactionUserData,\n PhaseUserData,\n} from '@wix/panorama-common-shared/types';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\nimport type { PanoramaClientForComponent } from '../panorama-client-component';\nimport type { Breadcrumb, ErrorData, ErrorMonitorOptions } from '../types';\n\nexport enum Hook {\n afterCreateClientForComponent,\n beforeReport,\n beforeReportTransactionStart,\n afterReportTransactionStart,\n beforeReportTransactionFinish,\n afterReportTransactionFinish,\n beforeReportPhaseStart,\n afterReportPhaseStart,\n beforeReportPhaseFinish,\n afterReportPhaseFinish,\n beforeReportError,\n afterReportError,\n beforeAddBreadcrumb,\n afterAddBreadcrumb,\n beforeReportLog,\n afterReportLog,\n beforeUnhandledError,\n}\n\ntype Subscriber<T extends any[]> = (...args: T) => false | void;\n\ntype ArgsByHook = {\n [Hook.afterCreateClientForComponent]: [client: PanoramaClientForComponent];\n [Hook.beforeReport]: [eventPayload: EventPayload];\n [Hook.beforeReportTransactionStart]: [\n transactionName: string,\n data?: TransactionUserData,\n ];\n [Hook.beforeReportTransactionFinish]: [\n transactionName: string,\n data?: TransactionUserData,\n ];\n [Hook.afterReportTransactionStart]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.afterReportTransactionFinish]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.beforeReportPhaseStart]: [\n transactionName: string,\n data?: PhaseUserData,\n ];\n [Hook.beforeReportPhaseFinish]: [\n transactionName: string,\n data?: PhaseUserData,\n ];\n [Hook.afterReportPhaseStart]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.afterReportPhaseFinish]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.beforeReportError]: [\n error: Error,\n data?: ErrorData & ErrorUserData,\n errorMonitorOptions?: ErrorMonitorOptions,\n ];\n [Hook.afterReportError]: [\n error: Error,\n data?: ErrorData & ErrorUserData,\n errorMonitorOptions?: ErrorMonitorOptions,\n ];\n [Hook.beforeAddBreadcrumb]: [Breadcrumb];\n [Hook.afterAddBreadcrumb]: [Breadcrumb];\n [Hook.beforeReportLog]: [\n logLevel: LogLevel,\n message: string,\n data?: Record<string, any>,\n ];\n [Hook.afterReportLog]: [\n logLevel: LogLevel,\n message: string,\n data?: Record<string, any>,\n ];\n [Hook.beforeUnhandledError]: [error?: Error];\n};\n\ntype SubscribersByHook = {\n [P in Hook]?: Subscriber<ArgsByHook[P]>[];\n};\n\nexport type SubscriberByHook = {\n [P in Hook]: Subscriber<ArgsByHook[P]>;\n};\n\nexport class HooksManager {\n private readonly subscribers: SubscribersByHook = {};\n\n tap<T extends Hook>(hook: T, subscriber: Subscriber<ArgsByHook[T]>) {\n this.subscribers[hook] = this.subscribers[hook] || [];\n this.subscribers[hook]!.push(subscriber);\n }\n\n invoke<T extends Hook>(hook: T, ...args: ArgsByHook[T]): boolean {\n const subscribers = this.subscribers[hook];\n\n if (!subscribers) {\n return true;\n }\n\n for (const subscriber of subscribers) {\n if (subscriber(...args) === false) {\n return false;\n }\n }\n\n return true;\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport {\n PhaseName,\n type TransactionUserData,\n} from '@wix/panorama-common-shared/types';\nimport { type BasePanoramaClient } from './panorama-client-base';\n\nexport interface PanoramaPhase {\n start: (data?: TransactionUserData) => void;\n finish: (data?: TransactionUserData) => void;\n}\n\nexport class PanoramaPhaseImpl implements PanoramaPhase {\n constructor(\n private readonly name: PhaseName,\n private readonly baseClient: BasePanoramaClient,\n ) {\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n start(data?: TransactionUserData) {\n return this.baseClient.reportPhaseStart(this.name, data);\n }\n\n finish(data?: TransactionUserData) {\n return this.baseClient.reportPhaseFinish(this.name, data);\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport {\n InternalTransactions,\n type PhaseName,\n type TransactionUserData,\n} from '@wix/panorama-common-shared/types';\nimport { type CustomTransactionName } from '@wix/panorama-common-shared/utils';\nimport {\n type PanoramaClientForComponent,\n PanoramaClientForComponentImpl,\n} from './panorama-client-component';\nimport type { BasePanoramaClient } from './panorama-client-base';\nimport {\n Hook,\n type HooksManager,\n type SubscriberByHook,\n} from './plugins/hooks-manager';\nimport {\n type PanoramaErrorMonitor,\n PanoramaErrorMonitorImpl,\n} from './panorama-error-monitor';\nimport { PanoramaLogger, PanoramaLoggerImpl } from './panorama-logger';\nimport type {\n ErrorMonitorOptions,\n ErrorMonitorUserData,\n TransactionOptions,\n} from './types';\nimport {\n type PanoramaTransaction,\n PanoramaTransactionImpl,\n} from './panorama-transaction';\nimport { type PanoramaPhase, PanoramaPhaseImpl } from './panorama-phase';\n\ninterface Options {\n hooksManager: HooksManager;\n baseClient: BasePanoramaClient;\n}\n\nexport interface PanoramaClient {\n onUnhandledError(\n subscriber: SubscriberByHook[Hook.beforeUnhandledError],\n ): void;\n\n reportLoadStart(\n data?: TransactionUserData,\n options?: TransactionOptions,\n ): void;\n\n reportLoadFinish(\n data?: TransactionUserData,\n options?: TransactionOptions,\n ): void;\n\n phase(name: PhaseName): PanoramaPhase;\n\n transaction<T extends string>(\n name: CustomTransactionName<T>,\n options?: TransactionOptions,\n ): PanoramaTransaction;\n\n errorMonitor(\n options?: ErrorMonitorOptions,\n ): PanoramaErrorMonitor<ErrorMonitorUserData>;\n\n logger(): PanoramaLogger;\n\n createClientForComponent(): PanoramaClientForComponent;\n}\n\nexport class PanoramaClientImpl implements PanoramaClient {\n private baseClient: BasePanoramaClient;\n private hooksManager: HooksManager;\n\n constructor({ hooksManager, baseClient }: Options) {\n this.baseClient = baseClient;\n this.hooksManager = hooksManager;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n onUnhandledError(subscriber: SubscriberByHook[Hook.beforeUnhandledError]) {\n this.hooksManager.tap(Hook.beforeUnhandledError, subscriber);\n }\n\n reportLoadStart(data?: TransactionUserData, options?: TransactionOptions) {\n const { ComponentLoad } = InternalTransactions;\n\n return this.baseClient.reportTransactionStart(ComponentLoad, options, data);\n }\n\n reportLoadFinish(data?: TransactionUserData, options?: TransactionOptions) {\n const { ComponentLoad } = InternalTransactions;\n\n return this.baseClient.reportTransactionFinish(\n ComponentLoad,\n options,\n data,\n );\n }\n\n phase(name: PhaseName) {\n return new PanoramaPhaseImpl(name, this.baseClient);\n }\n\n transaction(\n name: CustomTransactionName<string>,\n options?: TransactionOptions,\n ) {\n return new PanoramaTransactionImpl(this.baseClient, name, options);\n }\n\n errorMonitor(\n options?: ErrorMonitorOptions,\n ): PanoramaErrorMonitor<ErrorMonitorUserData> {\n return new PanoramaErrorMonitorImpl<ErrorMonitorUserData>(\n this.baseClient,\n options,\n );\n }\n\n logger(): PanoramaLogger {\n return new PanoramaLoggerImpl(this.baseClient);\n }\n\n createClientForComponent(): PanoramaClientForComponent {\n const client = new PanoramaClientForComponentImpl({\n baseClient: this.baseClient,\n });\n\n this.hooksManager.invoke(Hook.afterCreateClientForComponent, client);\n\n return client;\n }\n}\n", "import type { Event } from '@sentry/browser';\nimport type { IHttpError } from '@wix/http-client';\nimport { WixHttpErrorDetails } from '../types';\nimport { defaults } from './general-utils';\n\nconst extractWixHttpErrorDetailsRec = (\n error?: Error | IHttpError,\n): WixHttpErrorDetails => {\n if (!(error instanceof Error)) {\n return {};\n }\n\n const res = extractWixHttpErrorDetailsRec(error.cause as any);\n const httpClientError = error as IHttpError;\n\n return defaults<WixHttpErrorDetails>(res, {\n isWixHttpError: httpClientError.isWixHttpError,\n requestId:\n httpClientError.response?.headers?.['x-wix-request-id'] ??\n httpClientError.requestId,\n });\n};\n\nexport const extractWixHttpErrorDetails = (\n error?: Error | IHttpError,\n): WixHttpErrorDetails =>\n defaults<WixHttpErrorDetails>(extractWixHttpErrorDetailsRec(error), {\n isWixHttpError: false,\n requestId: '',\n });\n\nexport const normalizeError = (event: Event, error?: unknown): Error => {\n if (!(error instanceof Error)) {\n const err = new Error(typeof error === 'string' ? error : event.message);\n\n delete err.stack;\n\n return err;\n }\n\n return error;\n};\n\nexport const createUndedupableError = (error: Error) => {\n const { message, stack, cause } = error;\n\n const res = Object.assign(Object.create(Object.getPrototypeOf(error)), {\n name: `${Date.now() + Math.random()}`,\n message,\n stack,\n cause,\n });\n\n return res;\n};\n", "export const MAX_STACK_TRACE_SIZE_BYTES = 32 * 1024;\nexport const MAX_SESSION_TIME_MS = 24 * 60 * 60 * 1000; // 1 day\n", "import type { EventPayload } from '@wix/panorama-common-shared/types';\nimport { MAX_SESSION_TIME_MS, MAX_STACK_TRACE_SIZE_BYTES } from '../constants';\n\nexport const sanitizePayload = (payload: EventPayload) => {\n const { errorStack, sessionTime } = payload;\n\n if (errorStack && errorStack.length > MAX_STACK_TRACE_SIZE_BYTES) {\n const truncationMessage = `...[truncated by Panorama client to ${\n MAX_STACK_TRACE_SIZE_BYTES / 1024\n }kb]`;\n\n const truncatedErrorStack = errorStack.substring(\n 0,\n MAX_STACK_TRACE_SIZE_BYTES - truncationMessage.length,\n );\n\n payload = {\n ...payload,\n errorStack: `${truncatedErrorStack}${truncationMessage}`,\n };\n }\n\n if (sessionTime && sessionTime > MAX_SESSION_TIME_MS) {\n payload = {\n ...payload,\n sessionTime: MAX_SESSION_TIME_MS,\n };\n }\n\n return payload;\n};\n", "import {\n InternalTransactions,\n LogLevel,\n} from '@wix/panorama-common-shared/types';\nimport type {\n BaseParams,\n TransactionParams,\n InternalParams,\n ErrorUserData,\n TransactionUserData,\n EventPayload,\n TransactionEventPayload,\n ErrorEventPayload,\n LoggerParams,\n PhaseUserData,\n PhaseParams,\n PhaseEventPayload,\n} from '@wix/panorama-common-shared/types';\nimport type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport { extractWixHttpErrorDetails } from '../utils/error-utils';\nimport { sanitizePayload } from './payload-sanitizer';\n\nconst getSessionParams = (\n globalConfig: GlobalConfig,\n): Pick<InternalParams, 'sessionId' | 'sessionTime'> => {\n const sessionId = globalConfig.getSessionId();\n const sessionTime = Math.round(globalConfig.getSessionTime());\n\n return { sessionId, sessionTime };\n};\n\nexport const buildTransactionPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n transactionParams: TransactionParams,\n data?: TransactionUserData,\n): TransactionEventPayload => {\n const { transactionName, transactionAction } = transactionParams;\n\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const logLevel = LogLevel.Info;\n const message = `Panorama ${transactionName} ${transactionAction}`;\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...transactionParams,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n message,\n data,\n });\n};\n\nexport const buildPhasePayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n phaseParams: PhaseParams,\n data?: PhaseUserData,\n): PhaseEventPayload => {\n const transactionName = InternalTransactions.ComponentPhase;\n const { phaseName, transactionAction } = phaseParams;\n\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const logLevel = LogLevel.Info;\n const message = `Panorama ${phaseName} phase ${transactionAction}`;\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...phaseParams,\n transactionName,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n message,\n data,\n });\n};\n\nexport const buildErrorPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n error: Error,\n data?: ErrorUserData,\n): ErrorEventPayload => {\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const { constructor, message, stack = '' } = error;\n const logLevel = LogLevel.Error;\n const { requestId } = extractWixHttpErrorDetails(error);\n\n return sanitizePayload({\n ...baseParams,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n data,\n errorName: data?.errorName ?? constructor.name,\n errorStack: stack,\n message,\n });\n};\n\nexport const buildLoggerPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n loggerParams: LoggerParams,\n): EventPayload => {\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...loggerParams,\n sessionId,\n sessionTime,\n requestId,\n });\n};\n", "// import type { IHttpError } from '@wix/http-client';\nimport type {\n Reporter,\n BaseParams,\n LogLevel,\n ErrorUserData,\n TransactionUserData,\n EventPayload,\n UserParams,\n PhaseUserData,\n} from '@wix/panorama-common-shared/types';\nimport { TransactionAction } from '@wix/panorama-common-shared/types';\nimport type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport {\n createDurationTracker,\n type DurationTracker,\n} from '@wix/panorama-common/duration-tracker';\nimport {\n buildErrorPayload,\n buildLoggerPayload,\n buildPhasePayload,\n buildTransactionPayload,\n} from './lib/payload-builder';\nimport { Hook, type HooksManager } from './plugins/hooks-manager';\nimport type {\n Breadcrumb,\n ErrorMonitorOptions,\n TransactionOptions,\n} from './types';\nimport type { Scope } from './lib/scope';\n\ninterface Options {\n baseParams: BaseParams;\n globalConfig: GlobalConfig;\n reporter: Reporter;\n hooksManager: HooksManager;\n data: Scope<NonNullable<UserParams['data']>>;\n isMuted: () => boolean;\n}\n\nexport class BasePanoramaClient {\n private durationTracker: DurationTracker;\n private readonly baseParams: BaseParams;\n private readonly globalConfig: GlobalConfig;\n private readonly reporter: Reporter;\n private readonly hooksManager: HooksManager;\n private readonly data: Scope<NonNullable<UserParams['data']>>;\n private readonly isMuted: () => boolean;\n\n constructor({\n baseParams,\n globalConfig,\n reporter,\n hooksManager,\n data,\n isMuted,\n }: Options) {\n this.baseParams = baseParams;\n this.globalConfig = globalConfig;\n this.reporter = reporter;\n this.hooksManager = hooksManager;\n this.data = data;\n this.isMuted = isMuted;\n\n // For backward compatibility in cases where GlobalConfig version is older than what we expect\n this.durationTracker =\n typeof globalConfig.getDurationTracker === 'function'\n ? globalConfig.getDurationTracker()\n : createDurationTracker();\n }\n\n private report(eventPayload: EventPayload) {\n if (this.isMuted()) {\n return;\n }\n\n const reporterOverride = this.globalConfig.getReporter();\n const beforeReportHookResult = this.hooksManager.invoke(\n Hook.beforeReport,\n eventPayload,\n );\n\n if (typeof reporterOverride === 'function') {\n reporterOverride(eventPayload);\n return;\n }\n\n if (!beforeReportHookResult) {\n return;\n }\n\n this.reporter(eventPayload);\n }\n\n getErrorMonitorDataWithDefaults = (\n ...args: (ErrorUserData | undefined)[]\n ) => {\n return this.data.addDataScope(args).getData();\n };\n\n reportTransactionStart(\n name: string,\n options: TransactionOptions = {},\n data?: TransactionUserData,\n ) {\n const { id } = options;\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportTransactionStart,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n this.durationTracker.markTransactionStart(\n fullArtifactId!,\n componentId!,\n name,\n id,\n );\n\n const payload = buildTransactionPayload(\n this.globalConfig,\n this.baseParams,\n {\n transactionName: name,\n transactionAction: TransactionAction.Start,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportTransactionStart, name, payload);\n }\n\n reportTransactionFinish(\n name: string,\n options: TransactionOptions = {},\n data?: TransactionUserData,\n ) {\n const { id } = options;\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportTransactionFinish,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n const duration = this.durationTracker.markTransactionFinish(\n fullArtifactId!,\n componentId!,\n name,\n id,\n );\n\n const payload = buildTransactionPayload(\n this.globalConfig,\n this.baseParams,\n {\n transactionName: name,\n transactionAction: TransactionAction.Finish,\n transactionDuration: duration,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportTransactionFinish, name, payload);\n }\n\n reportPhaseStart(name: string, data?: PhaseUserData) {\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportPhaseStart,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n this.durationTracker.markPhaseStart(fullArtifactId!, componentId!, name);\n\n const payload = buildPhasePayload(\n this.globalConfig,\n this.baseParams,\n {\n phaseName: name,\n transactionAction: TransactionAction.Start,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportPhaseStart, name, payload);\n }\n\n reportPhaseFinish(name: string, data?: TransactionUserData) {\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportPhaseFinish,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n const duration = this.durationTracker.markPhaseFinish(\n fullArtifactId!,\n componentId!,\n name,\n );\n\n const payload = buildPhasePayload(\n this.globalConfig,\n this.baseParams,\n {\n phaseName: name,\n transactionAction: TransactionAction.Finish,\n transactionDuration: duration,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportPhaseFinish, name, payload);\n }\n\n reportError(\n error: Error,\n data?: ErrorUserData,\n options?: ErrorMonitorOptions,\n ) {\n if (!(error instanceof Error)) {\n return;\n }\n\n data = this.data.addDataScope([data, options?.data]).getData();\n\n if (\n !this.hooksManager.invoke(Hook.beforeReportError, error, data, options)\n ) {\n return;\n }\n\n const payload = buildErrorPayload(\n this.globalConfig,\n this.baseParams,\n error,\n data,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportError, error, data, options);\n }\n\n addBreadcrumb(breadcrumb: Breadcrumb) {\n if (!this.hooksManager.invoke(Hook.beforeAddBreadcrumb, breadcrumb)) {\n return;\n }\n\n // Currently the default implementation does nothing, we only invoke hooks\n\n this.hooksManager.invoke(Hook.afterAddBreadcrumb, breadcrumb);\n }\n\n log(logLevel: LogLevel, message: string, data?: Record<string, any>) {\n if (!message) {\n return;\n }\n\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n const loggerParams = {\n message,\n data: dataWithDefault,\n logLevel,\n };\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportLog,\n logLevel,\n message,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const payload = buildLoggerPayload(\n this.globalConfig,\n this.baseParams,\n loggerParams,\n );\n this.report(payload);\n\n this.hooksManager.invoke(\n Hook.afterReportLog,\n logLevel,\n message,\n dataWithDefault,\n );\n }\n}\n", "import { defaults, deepDefaults } from '../utils/general-utils';\n\nexport class Scope<T extends Record<string, any>> {\n private readonly data: T | undefined;\n private static readonly KEYS_TO_DEEP_DEFAULTS = ['tags', 'context'];\n\n constructor(data: T | undefined) {\n this.data = data;\n }\n\n private getEntriesToDeepDefaults(data: T | undefined): T | undefined {\n if (!data) {\n return undefined;\n }\n return Object.fromEntries(\n Object.entries(data).filter(([key]) =>\n Scope.KEYS_TO_DEEP_DEFAULTS.includes(key),\n ),\n ) as unknown as T;\n }\n\n addDataScope(data: T | undefined | (T | undefined)[]): Scope<T> {\n const outerDataArray = Array.isArray(data) ? data : [data];\n const deepDefaultData = deepDefaults(\n ...outerDataArray.map((_data) => this.getEntriesToDeepDefaults(_data)),\n this.getEntriesToDeepDefaults(this.data),\n );\n return new Scope(defaults(deepDefaultData, ...outerDataArray, this.data));\n }\n\n getData() {\n return this.data;\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type {\n Reporter,\n BaseParams,\n EventPayload,\n} from '@wix/panorama-common-shared/types';\nimport {\n createGlobalConfig,\n type GlobalConfig,\n} from '@wix/panorama-common/global-config';\nimport { defaults } from './utils/general-utils';\nimport { type PanoramaClient, PanoramaClientImpl } from './panorama-client';\nimport type { PluginArgs, PluginFunction } from './plugins';\nimport type { ClientOptions, FactoryOptions } from './types';\nimport { HooksManager } from './plugins/hooks-manager';\nimport { BasePanoramaClient } from './panorama-client-base';\nimport { Scope } from './lib/scope';\n\nexport interface PanoramaClientFactory<Payload extends unknown = EventPayload> {\n withGlobalConfig(\n globalConfig: GlobalConfig<Payload>,\n ): PanoramaClientFactory<Payload>;\n\n withReporter(reporter: Reporter<Payload>): PanoramaClientFactory<Payload>;\n\n setMuted(isMuted: boolean): PanoramaClientFactory<Payload>;\n\n use(\n plugin: (args: PluginArgs<Payload>) => void,\n ): PanoramaClientFactory<Payload>;\n\n client(options?: ClientOptions): PanoramaClient;\n}\n\nclass PanoramaClientFactoryImpl<Payload extends unknown = EventPayload>\n implements PanoramaClientFactory<Payload>\n{\n private globalConfig?: GlobalConfig<Payload>;\n private reporter: Reporter<Payload> = () => true;\n private plugins: PluginFunction<Payload>[] = [];\n private isMuted: boolean = false;\n\n constructor(private readonly options: FactoryOptions) {\n bindPrototypeMethodsToSelf(this);\n }\n\n withGlobalConfig(globalConfig: GlobalConfig<Payload>) {\n this.globalConfig = globalConfig;\n\n return this;\n }\n\n withReporter(reporter: Reporter<Payload>) {\n this.reporter = reporter;\n\n return this;\n }\n\n setMuted(isMuted: boolean) {\n this.isMuted = isMuted;\n\n return this;\n }\n\n use(plugin: (args: PluginArgs<Payload>) => void) {\n this.plugins.push(plugin);\n\n return this;\n }\n\n client(options: ClientOptions = {}) {\n const { pluginParams } = options;\n\n const globalConfig = this.globalConfig ?? createGlobalConfig();\n const reporter = this.reporter as any;\n const hooksManager = new HooksManager();\n const baseParams = defaults(\n options.baseParams,\n this.options.baseParams,\n ) as Required<BaseParams>;\n const data = new Scope(this.options.data).addDataScope(options.data);\n\n const pluginClientParams = pluginParams ?? {};\n\n const baseClient = new BasePanoramaClient({\n baseParams,\n globalConfig: globalConfig as unknown as GlobalConfig,\n isMuted: () => this.isMuted,\n reporter,\n hooksManager,\n data,\n });\n\n const client = new PanoramaClientImpl({\n baseClient,\n hooksManager,\n });\n\n this.plugins.forEach((plugin) =>\n plugin({\n hooksManager,\n globalConfig,\n reporter,\n baseClient,\n baseParams,\n pluginParams: pluginClientParams,\n }),\n );\n\n return client;\n }\n}\n\nexport const panoramaClient = <Payload extends unknown = EventPayload>(\n options: FactoryOptions = {},\n): PanoramaClientFactory<Payload> =>\n new PanoramaClientFactoryImpl<Payload>(options);\n", "import type {\n BaseParams,\n ErrorUserData,\n UserParams,\n} from '@wix/panorama-common-shared/types';\nimport { ErrorMonitorPluginParams, PluginParams } from './plugins';\n\nexport interface FactoryOptions {\n baseParams?: BaseParams;\n data?: UserParams['data'];\n}\n\nexport interface ClientOptions {\n baseParams?: BaseParams;\n pluginParams?: PluginParams;\n data?: UserParams['data'];\n}\n\nexport interface TransactionOptions {\n id?: number | string;\n}\n\nexport type ErrorMonitorUserData = ErrorUserData &\n Pick<ErrorData, 'exceptionType'>;\n\nexport type ErrorMonitorUserDataForComponent = ErrorUserData;\n\nexport interface ErrorMonitorOptions {\n pluginParams?: ErrorMonitorPluginParams;\n data?: ErrorUserData;\n}\n\nexport interface ErrorMonitorOptionsForComponent {\n data?: ErrorUserData;\n}\n\nexport interface Breadcrumb {\n message: string;\n}\n\nexport interface ErrorData {\n exceptionType?: ExceptionType;\n}\n\nexport enum ExceptionType {\n HANDLED = 'HANDLED',\n UNHANDLED = 'UNHANDLED',\n}\n\nexport enum StacktraceScriptType {\n WIX_SERVICE = 'WIX_SERVICE',\n WIX_APP = 'WIX_APP',\n WIX_CLI_APP = 'WIX_CLI_APP',\n WIX_CHAT = 'WIX_CHAT_WIDGET',\n BROWSER_EXTENSION = 'BROWSER_EXTENSION',\n}\n\nexport interface ArtifactData {\n artifactId: string;\n artifactVersion: string;\n scriptType: StacktraceScriptType;\n}\n\nexport interface WixHttpErrorDetails {\n isWixHttpError?: boolean;\n requestId?: string;\n}\n\nexport interface StackFrame {\n filename?: string;\n raw?: string;\n module_metadata?: any;\n}\n", "export { Platform, ErrorSeverity } from '@wix/panorama-common-shared/types';\n\nexport {\n type GlobalConfig,\n createGlobalConfig,\n} from '@wix/panorama-common/global-config';\n\nexport {\n panoramaClient,\n type PanoramaClientFactory,\n} from './panorama-client-factory';\n\nexport type { PanoramaClient } from './panorama-client';\nexport type { PanoramaClientForComponent } from './panorama-client-component';\nexport type { PluginParams } from './plugins';\nexport { ExceptionType } from './types';\nexport type { PanoramaLogger } from './panorama-logger';\n", "export const PANORAMA_APP_DEF_ID = 'b60344aa-05b6-49e0-815e-502ffab84c07';\n\nexport const PANORAMA_GRAFANA_BASE_URL =\n 'https://panorama-grafana.mon.wixprod.net';\n\nexport const DEV_PORTAL_BASE_URL = 'https://bo.wix.com/dev';\n\nexport const SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL =\n 'https://panorama-grafana.mon.wixprod.net/d/QOCglcv4z/success-rate-drop-breakdown';\n\nexport const DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL =\n 'https://panorama-grafana.mon.wixprod.net/d/2TD775vVk/duration-increase-breakdown';\n\nexport const CLICKHOUSE_REPORT_URL = 'https://panorama.wixapps.net/api/v1/log';\nexport const CLICKHOUSE_BATCH_REPORT_URL =\n 'https://panorama.wixapps.net/api/v1/bulklog';\n", "import { EventPayload } from '@wix/panorama-common-shared/types';\nimport { ReporterOptions } from './types';\n\nexport const nodeReporter =\n (url: string, { silent = false }: ReporterOptions = { silent: false }) =>\n (eventPayload: EventPayload): boolean => {\n const body = JSON.stringify({ logMessage: eventPayload });\n\n fetch(url, { method: 'POST', body })\n .then((res) => {\n if (res.ok || silent) {\n return;\n }\n\n console.error('Panorama report failed', res.statusText);\n })\n .catch((e) => {\n if (silent) {\n return;\n }\n\n console.error('Panorama report failed', e);\n });\n\n return true;\n };\n", "import {\n panoramaClient,\n type PanoramaClientFactory,\n type PluginParams,\n} from '@wix/panorama-client';\nimport type {\n EventPayload,\n BaseParams,\n UserParams,\n} from '@wix/panorama-common-shared/types';\nimport { CLICKHOUSE_REPORT_URL } from '@wix/panorama-common-shared/constants';\nimport { nodeReporter } from './reporter';\nimport type { ReporterOptions } from './types';\n\ninterface FactoryOptions {\n baseParams?: BaseParams;\n data?: UserParams['data'];\n pluginParams?: PluginParams;\n reporterOptions?: ReporterOptions;\n}\n\nexport type Factory = Omit<PanoramaClientFactory, 'use'>;\n\nexport const panoramaClientFactory = (options: FactoryOptions): Factory => {\n const { baseParams, reporterOptions, data } = options;\n\n const factory = panoramaClient<EventPayload>({\n baseParams,\n data,\n }).withReporter(nodeReporter(CLICKHOUSE_REPORT_URL, reporterOptions));\n\n // @ts-expect-error\n factory.use = undefined;\n\n return factory;\n};\n", "export {\n type Factory as PanoramaFactory,\n panoramaClientFactory,\n} from './panorama-client-node';\n\nexport {\n type PanoramaClient,\n type PanoramaClientForComponent,\n type GlobalConfig,\n createGlobalConfig,\n ExceptionType as PanoramaExceptionType,\n ErrorSeverity as PanoramaErrorSeverity,\n type PanoramaLogger,\n Platform as PanoramaPlatform,\n} from '@wix/panorama-client';\n\nexport type { EventPayload } from '@wix/panorama-common-shared/types';\n\nexport { nodeReporter } from './reporter';\n", "/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n", "'use strict'; // eslint-disable-line strict\n\nclass AssertionError extends Error {\n constructor(message) {\n super(message);\n this.name = this.constructor.name;\n }\n}\n\nfunction assertDefined(target, message) {\n if (target === undefined) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertObject(target, message) {\n if (\n target !== undefined &&\n (typeof target !== 'object' || Array.isArray(target) || target === null)\n ) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertOk(target, message) {\n if (!target) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertFunc(target, message) {\n if (target !== undefined && typeof target !== 'function') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertBoolean(target, message) {\n if (target !== undefined && typeof target !== 'boolean') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertNumber(target, message) {\n if (target !== undefined && typeof target !== 'number') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertArray(target, message) {\n if (typeof Array.isArray === 'function') {\n if (!Array.isArray(target)) {\n throw new AssertionError(message);\n }\n } else if (Object.prototype.toString.call(target) !== '[object Array]') {\n throw new AssertionError(message);\n }\n}\n\nmodule.exports.defined = assertDefined;\nmodule.exports.object = assertObject;\nmodule.exports.ok = assertOk;\nmodule.exports.func = assertFunc;\nmodule.exports.boolean = assertBoolean;\nmodule.exports.number = assertNumber;\nmodule.exports.array = assertArray;\nmodule.exports.AssertionError = AssertionError;\n", "/**\n * This callback type is called `requestCallback` and is displayed as a global symbol.\n *\n * @callback iterateeCallback\n * @param {*} Value\n * @param {string} Key\n * @param {object} Original object\n */\n/**\n * Iterates over object values\n * @param {Object} collection\n * @param {iterateeCallback} iteratee\n * @return {Object} iterated object\n */\nmodule.exports.mapValues = function(collection, iteratee) {\n if (!collection) {\n return {};\n }\n\n return Object.keys(collection).reduce((acc, key) => {\n acc[key] = iteratee(collection[key], key, collection);\n return acc;\n }, {});\n};\n\nmodule.exports.filterValues = function(collection, iteratee) {\n if (!collection) {\n return {};\n }\n\n return Object.keys(collection).reduce((acc, key) => {\n const keep = iteratee(collection[key], key, collection);\n\n if (keep) {\n acc[key] = collection[key];\n }\n\n return acc;\n }, {});\n};\n", "/**\n * rejects original promise after specified timeout\n * @param {Promise<R>} promise Original promise\n * @param {string} [message] Additional message for timeout reject\n * @param {number} timeout Time for reject\n * @return {Promise<R>}\n */\nmodule.exports.timedPromise = function(promise, { message, timeout }) {\n const timeoutPromise = new Promise((resolve, reject) => {\n setTimeout(reject, timeout, message ? `Timeout: ${message}` : 'Timeout');\n });\n return Promise.race([promise, timeoutPromise]);\n};\n\n/**\n * Works like Promise.all expect uses object instead of array.\n * @param {Object} promiseObject\n * @return {Promise} Promise with original keys and resolved values\n */\nmodule.exports.allAsObject = function(promiseObject) {\n const keys = Object.keys(promiseObject);\n return Promise.all(keys.map(key => promiseObject[key])).then(resolved => {\n return resolved.reduce((acc, value, i) => {\n acc[keys[i]] = value;\n return acc;\n }, {});\n });\n};\n", "module.exports = {\n error(...args) {\n if (console && console.error) {\n console.error(...args);\n }\n },\n};\n", "// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\nfunction debounce(func, wait, immediate) {\n let timeout;\n\n // This is the function that is actually executed when\n // the DOM event is triggered.\n return function() {\n // Store the context of this and any parameters passed to executedFunction\n const context = this;\n const args = arguments;\n\n // The function to be called after\n // the debounce time has elapsed\n const later = function() {\n // null timeout to indicate the debounce ended\n timeout = null;\n\n // Call function now if you did not on the leading end\n if (!immediate) {\n func.apply(context, args);\n }\n };\n\n // Determine if you should call the function\n // on the leading or trail end\n const callNow = immediate && !timeout;\n\n // This will reset the waiting every function execution.\n // This is the step that prevents the function from\n // being executed because it will never reach the\n // inside of the previous setTimeout\n clearTimeout(timeout);\n\n // Restart the debounce waiting period.\n // setTimeout returns a truthy value (it differs in web vs node)\n timeout = setTimeout(later, wait);\n\n // Call immediately if you're dong a leading\n // end execution\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\nmodule.exports = debounce;\n", "function throttle(func, wait) {\n let timeout;\n\n return (...args) => {\n if (!timeout) {\n timeout = setTimeout(() => {\n func(...args);\n timeout = null;\n }, wait);\n }\n };\n}\n\nmodule.exports = throttle;\n", "const debounce = require('./debounce');\nconst throttle = require('./throttle');\n\nconst createEvent = (event, context, startTime) => ({\n dt: Date.now() - startTime,\n f: event,\n context,\n});\n\nconst createBatch = (events, startTime) => ({\n dt: Date.now() - startTime,\n e: events,\n g: {},\n});\n\nconst optimizeBatch = batch => {\n const fieldCounts = {};\n const batchLen = batch.e.length;\n\n let events = batch.e.map(event => {\n const fields = Object.keys(event.f).map(field => {\n const value = event.f[field];\n const key = `${field}|${value}`;\n fieldCounts[key] = fieldCounts[key] || 0;\n fieldCounts[key]++;\n return [field, value, key];\n });\n\n return {\n ...event,\n f: fields,\n };\n });\n\n const globalFields = {};\n events = events.map(event => {\n const fields = event.f.reduce((res, [field, value, key]) => {\n if (fieldCounts[key] === batchLen) {\n globalFields[field] = value;\n } else {\n res[field] = value;\n }\n\n return res;\n }, {});\n\n return {\n ...event,\n f: fields,\n };\n });\n\n return {\n ...batch,\n e: events,\n g: globalFields,\n };\n};\n\nclass BatchQueue {\n constructor() {\n this._initilized = false;\n }\n\n _reset() {\n this._startTime = Date.now();\n this._resolve = null;\n this._promise = new Promise(resolve => (this._resolve = resolve));\n }\n\n init({ delayMs, maxBatchSize, useThrottle, optimizeBatch }, flushHandler) {\n if (this._initilized) {\n return;\n }\n\n this._maxBatchSize = maxBatchSize;\n this._optimizeBatch = optimizeBatch;\n this._queue = [];\n this._flushHandler = flushHandler;\n this._flushDebounced = useThrottle\n ? throttle(() => this.flush(), delayMs)\n : debounce(() => this.flush(), delayMs);\n this._initilized = true;\n\n this._reset();\n }\n\n flush() {\n if (!this._queue.length) {\n return Promise.resolve();\n }\n\n const events = this._queue.splice(0, this._queue.length);\n const resolve = this._resolve;\n const startTime = this._startTime;\n\n this._reset();\n\n let batch = createBatch(events, startTime);\n\n if (this._optimizeBatch) {\n batch = optimizeBatch(batch);\n }\n\n return this._flushHandler(batch).then(resolve);\n }\n\n feed(event, context) {\n this._queue.push(createEvent(event, context, this._startTime));\n\n if (this._queue.length === this._maxBatchSize) {\n return this.flush();\n }\n\n this._flushDebounced();\n\n return this._promise;\n }\n}\n\nmodule.exports = BatchQueue;\n", "'use strict'; // eslint-disable-line strict\n\nconst DefaultConsentPolicy = {\n functional: true,\n analytics: true,\n __default: true,\n};\n\nconst getPolicy = consentPolicyGetter => {\n return (\n (typeof consentPolicyGetter === 'function' && consentPolicyGetter()) ||\n DefaultConsentPolicy\n );\n};\n\nconst shouldMuteNonEssentials = policy => {\n return policy.functional === false || policy.analytics === false;\n};\n\nconst shouldMuteByCategory = (policy, category) => {\n if (category === 'essential') {\n return false;\n }\n\n if (category === 'functional' || category === 'analytics') {\n return policy[category] === false;\n }\n\n return shouldMuteNonEssentials(policy);\n};\n\nmodule.exports = {\n shouldMuteNonEssentials,\n shouldMuteByCategory,\n getPolicy,\n};\n", "'use strict'; // eslint-disable-line strict\nconst assert = require('./assert');\nconst { mapValues, filterValues } = require('./utils/collections');\nconst promise = require('./utils/promise');\nconst log = require('./utils/log');\nconst BatchQueue = require('./utils/batch-queue');\nconst {\n shouldMuteByCategory,\n shouldMuteNonEssentials,\n getPolicy,\n} = require('./consent-policy');\n\nclass BiLogger {\n // TODO: validate args\n constructor(options, context) {\n this._publishers = options.publishers;\n this._validators = options.validators || [];\n this._defaults = options.defaults;\n this._ownDefaults = {};\n this._events = options.events || {};\n this._context = context || {};\n this._defaultValueTimeout = options.defaultValueTimeout || 5000;\n this._defaultContinueOnFail = options.defaultContinueOnFail || false;\n this._onPublisherFailHandler =\n options.onPublisherFailHandler || BiLogger._defaultPublisherFailHandler;\n this._isMuted = options.isMuted || (() => false);\n this._eventTransformer = options.eventTransformer || (event => event);\n this._payloadTransformer =\n options.payloadTransformer || (payload => payload);\n this._consentPolicyGetter = options.consentPolicyGetter || (() => null);\n this._nonEssentialDefaults = options.nonEssentialDefaults || {};\n this._maxBatchSize = options.maxBatchSize || 100;\n this._globalBatchQueue = options.globalBatchQueue;\n }\n\n report(data) {\n assert.defined(data, 'Data must be provided');\n assert.object(data, 'Data must be an object');\n\n const { src, evid, params, ...context } = data;\n\n return this.log({ src, evid, ...params }, context);\n }\n\n log(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {\n assert.defined(eventOrKey, 'Event object or event key must be provided.');\n\n const { event, context } = this._extractEventAndContext(\n eventOrKey,\n eventOrContextOrUndefined,\n contextOrUndefined,\n );\n const policy = getPolicy(this._consentPolicyGetter);\n const fullContext = { ...this._context, ...context };\n\n if (this._isMuted() || shouldMuteByCategory(policy, fullContext.category)) {\n return Promise.resolve();\n }\n\n if (fullContext.useBatch) {\n const queue = this._initQueue(fullContext, policy);\n\n const transformAndQueue = _event => {\n const transformedEvent = this._eventTransformer(_event, fullContext);\n\n return queue.feed(transformedEvent, fullContext);\n };\n\n if (this._globalBatchQueue) {\n return this._getDefaults(this._defaults).then(defaults => {\n const fullEvent = {\n ...defaults,\n ...this._getDynamicNonEssentialDefaults(policy),\n ...this._getStaticNonEssentialDefaults(policy),\n ...event,\n ...this._getPolicyFields(policy, fullContext.category),\n };\n\n return transformAndQueue(fullEvent);\n });\n } else {\n const fullEvent = {\n ...this._getDynamicDefaults(this._defaults),\n ...this._getDynamicNonEssentialDefaults(policy),\n ...event,\n ...this._getPolicyFields(policy, fullContext.category),\n };\n\n return transformAndQueue(fullEvent);\n }\n }\n\n return this._getDefaults(this._defaults).then(defaults => {\n const fullEvent = Object.assign(\n defaults,\n this._getDynamicNonEssentialDefaults(policy),\n this._getStaticNonEssentialDefaults(policy),\n event,\n this._getPolicyFields(policy, fullContext.category),\n );\n\n const validatorsResult =\n this._validators.length === 0\n ? true\n : this._validators.some(\n validator =>\n validator.match(fullEvent) &&\n (validator.execute(fullEvent) || true),\n );\n\n if (!validatorsResult) {\n throw new Error(\n `No validator accepted the event. Source: ${\n fullEvent.src\n } Evid: ${fullEvent.evid || fullEvent.evtId}`,\n );\n }\n\n let transformedEvent = this._eventTransformer(fullEvent, fullContext);\n transformedEvent = this._payloadTransformer(\n transformedEvent,\n fullContext,\n );\n\n return this._send(transformedEvent, fullContext);\n });\n }\n\n flush() {\n if (!this._queue) {\n return Promise.resolve();\n }\n return this._queue.flush();\n }\n\n updateDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n Object.assign(this._ownDefaults, defaults);\n return this;\n }\n\n _send(payload, context = {}) {\n return Promise.all(\n this._publishers.map(publisher => {\n const cloned = { ...payload };\n\n return Promise.resolve()\n .then(() => publisher(cloned, context))\n .catch(error =>\n this._onPublisherFailHandler(error, {\n publisherName: publisher.name,\n payload,\n }),\n );\n }),\n ).then(() => undefined);\n }\n\n _extractEventAndContext(\n eventOrKey,\n eventOrContextOrUndefined,\n contextOrUndefined,\n ) {\n let event;\n let context = {};\n\n if (typeof eventOrKey !== 'string') {\n event = eventOrKey;\n context = eventOrContextOrUndefined || context;\n } else {\n event = this._events[eventOrKey];\n\n if (!event) {\n throw new assert.AssertionError(\n `Event with key '${eventOrKey}' not found in event map.`,\n );\n }\n\n if (eventOrContextOrUndefined) {\n event = { ...event, ...eventOrContextOrUndefined };\n context = contextOrUndefined || context;\n }\n }\n\n return { event, context };\n }\n\n _initQueue(context, policy) {\n if (this._queue) {\n return this._queue;\n }\n\n this._queue = this._globalBatchQueue || new BatchQueue();\n\n const onFlush = batch => {\n // if queue is global don't define global properties\n if (!this._globalBatchQueue) {\n batch.g = Object.assign(\n this._getStaticDefaults(this._defaults),\n this._getStaticNonEssentialDefaults(policy),\n );\n }\n\n const transformedPayload = this._payloadTransformer(batch, context);\n\n return this._send(transformedPayload, context);\n };\n\n this._queue.init(\n {\n delayMs: context.useBatch === true ? 300 : context.useBatch,\n maxBatchSize: this._maxBatchSize,\n useThrottle: !!this._globalBatchQueue,\n optimizeBatch: !!this._globalBatchQueue,\n },\n onFlush,\n );\n\n return this._queue;\n }\n\n _handleDefaultsError(err) {\n if (this._defaultContinueOnFail) {\n log.error(err);\n return null;\n }\n return Promise.reject(err);\n }\n\n _getDynamicNonEssentialDefaults(policy) {\n if (!shouldMuteNonEssentials(policy)) {\n return this._getDynamicDefaults(this._nonEssentialDefaults);\n }\n }\n\n _getStaticNonEssentialDefaults(policy) {\n if (!shouldMuteNonEssentials(policy)) {\n return this._getStaticDefaults(this._nonEssentialDefaults);\n }\n }\n\n _withOwnDefaults(defaults) {\n return Object.assign({}, defaults, this._ownDefaults);\n }\n\n _getDynamicDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n const dynamicDefaults = filterValues(\n defaults,\n v => typeof v === 'function',\n );\n return mapValues(dynamicDefaults, v => v());\n }\n\n _getStaticDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n const staticDefaults = filterValues(defaults, v => typeof v !== 'function');\n return staticDefaults;\n }\n\n _getDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n if (!defaults) {\n return Promise.resolve({});\n }\n\n const promises = mapValues(defaults, (value, key) => {\n if (typeof value === 'function') {\n try {\n value = value();\n } catch (err) {\n return this._handleDefaultsError(err);\n }\n }\n\n if (value && typeof value.then === 'function') {\n return promise\n .timedPromise(value, {\n message: `Cannot get default value '${key} for BI Event'`,\n timeout: this._defaultValueTimeout,\n })\n .catch(err => this._handleDefaultsError(err));\n }\n\n return value;\n });\n\n return promise.allAsObject(promises);\n }\n\n _encodePolicyValue(policy, key) {\n if (!policy) {\n return 1;\n }\n\n if (typeof policy[key] === 'boolean') {\n return policy[key] ? 1 : 0;\n }\n\n return policy[key];\n }\n\n _getPolicyFields(policy, category) {\n return {\n _isca: this._encodePolicyValue(policy, 'analytics'),\n _iscf: this._encodePolicyValue(policy, 'functional'),\n _ispd: policy.__default ? 1 : 0,\n _ise: category === 'essential' ? 1 : 0,\n };\n }\n\n static _defaultPublisherFailHandler(error, { publisherName }) {\n return publisherName; // do nothing\n }\n}\n\nmodule.exports = BiLogger;\n", "'use strict'; // eslint-disable-line strict\n\nconst assert = require('./assert');\n\nclass BiLoggerManager {\n constructor() {\n this.reset();\n }\n\n reset() {\n this._handlers = [];\n }\n\n onLoggerCreated(handler) {\n assert.defined(handler, 'Handler must be provided.');\n assert.func(handler, 'Handler must be a function.');\n\n this._handlers.push(handler);\n\n return () => {\n const index = this._handlers.indexOf(handler);\n\n if (index !== -1) {\n this._handlers.splice(index, 1);\n }\n };\n }\n\n notifyLoggerCreated(logger) {\n this._handlers.forEach(handler => handler(logger));\n }\n}\n\nmodule.exports = {\n manager: new BiLoggerManager(),\n BiLoggerManager,\n};\n", "'use strict'; // eslint-disable-line strict\nconst assert = require('./assert');\nconst BiLogger = require('./bi-logger');\nconst biLoggerManager = require('./bi-logger-manager');\nconst BatchQueue = require('./utils/batch-queue');\n\nclass BiLoggerFactory {\n constructor() {\n this._publishers = [];\n this._validators = [];\n this._defaults = {};\n this._nonEssentialDefaults = {};\n this._events = {};\n this._isMuted = false;\n this._eventTransformer = null;\n this._payloadTransformer = null;\n this._consentPolicyGetter = null;\n this._maxBatchSize = null;\n this._batchQueue = null;\n }\n\n addPublisher(publisher) {\n assert.defined(publisher, 'Publisher must be provided');\n assert.ok(typeof publisher === 'function', 'Expected a publisher function');\n this._publishers.push(publisher);\n return this;\n }\n\n addValidator(validator) {\n assert.defined(validator, 'Validator must be provided');\n assert.ok(\n typeof validator === 'object' && validator,\n 'Expected a validator object',\n );\n assert.ok(\n validator.execute && validator.match,\n 'Provided validator does not match the interface',\n );\n this._validators.push(validator);\n return this;\n }\n\n setDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n this._defaults = defaults;\n return this;\n }\n\n updateDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n Object.assign(this._defaults, defaults);\n return this;\n }\n\n updateNonEssentialDefaults(defaults) {\n assert.defined(defaults, 'Non-essential Defaults must be provided');\n assert.object(defaults, 'Non-essential Defaults must be an object');\n Object.assign(this._nonEssentialDefaults, defaults);\n return this;\n }\n\n setEvents(events) {\n assert.defined(events, 'Events must be provided');\n assert.object(events, 'Events must be an object');\n this._events = events;\n return this;\n }\n\n setDefaultValueTimeout(defaultValueTimeout) {\n assert.defined(\n defaultValueTimeout,\n 'Default Value Timeout must be provided',\n );\n this._defaultValueTimeout = defaultValueTimeout;\n return this;\n }\n\n setDefaultContinueOnFail(defaultContinueOnFail) {\n assert.defined(\n defaultContinueOnFail,\n 'Default Continue On Fail must be provided',\n );\n this._defaultContinueOnFail = defaultContinueOnFail;\n return this;\n }\n\n setPublisherFailHandler(onPublisherFailHandler) {\n assert.defined(\n onPublisherFailHandler,\n 'Publisher Fail Handler must be provided',\n );\n this._onPublisherFailHandler = onPublisherFailHandler;\n return this;\n }\n\n setMuted(isMuted) {\n assert.defined(isMuted, 'Is Muted must be provided');\n assert.boolean(isMuted, 'Is Muted must be a boolean');\n this._isMuted = isMuted;\n return this;\n }\n\n setMaxBatchSize(maxBatchSize) {\n assert.defined(maxBatchSize, 'Max Batch Size must be provided');\n assert.number(maxBatchSize, 'Max Batch Size must be a number');\n assert.ok(maxBatchSize > 0, 'Max Batch Size must be higher than 0');\n this._maxBatchSize = maxBatchSize;\n return this;\n }\n\n setGlobalBatchQueue(batchQueue) {\n assert.defined(batchQueue, 'Global Batch Queue must be provided');\n assert.ok(\n batchQueue instanceof BatchQueue,\n 'Global Batch Queue must be an instance of BatchQueue',\n );\n this._globalBatchQueue = batchQueue;\n return this;\n }\n\n withEventTransformer(transformer) {\n assert.defined(transformer, 'Event Transformer must be provided');\n assert.func(transformer, 'Event Transformer must be a function');\n this._eventTransformer = transformer;\n return this;\n }\n\n withPayloadTransformer(transformer) {\n assert.defined(transformer, 'Payload Transformer must be provided');\n assert.func(transformer, 'Payload Transformer must be a function');\n this._payloadTransformer = transformer;\n return this;\n }\n\n withConsentPolicyGetter(getter) {\n assert.defined(getter, 'Consent Policy Getter must be provided');\n assert.func(getter, 'Consent Policy Getter must be a function');\n this._consentPolicyGetter = getter;\n return this;\n }\n\n logger(context) {\n const logger = new BiLogger(\n {\n publishers: this._publishers,\n validators: this._validators,\n defaults: this._defaults,\n events: this._events,\n defaultValueTimeout: this._defaultValueTimeout,\n defaultContinueOnFail: this._defaultContinueOnFail,\n onPublisherFailHandler: this._onPublisherFailHandler,\n isMuted: () => this._isMuted,\n eventTransformer: this._eventTransformer,\n payloadTransformer: this._payloadTransformer,\n consentPolicyGetter: this._consentPolicyGetter,\n nonEssentialDefaults: this._nonEssentialDefaults,\n maxBatchSize: this._maxBatchSize,\n globalBatchQueue: this._globalBatchQueue,\n },\n context,\n );\n\n biLoggerManager.manager.notifyLoggerCreated(logger);\n\n return logger;\n }\n}\n\nmodule.exports = BiLoggerFactory;\n", "'use strict'; // eslint-disable-line strict\nconst BiLoggerClientFactory = require('./bi-logger-factory');\nconst BiLogger = require('./bi-logger');\nconst biLoggerManager = require('./bi-logger-manager');\nconst BatchQueue = require('./utils/batch-queue');\n\nmodule.exports.BiLoggerFactory = BiLoggerClientFactory;\nmodule.exports.BiLogger = BiLogger;\nmodule.exports.BiLoggerManager = biLoggerManager.BiLoggerManager;\n\nmodule.exports.factory = () => new BiLoggerClientFactory();\nmodule.exports.manager = biLoggerManager.manager;\nmodule.exports.createBatchQueue = () => new BatchQueue();\n", null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nfunction isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */\n;(function(root) {\n\n\t// Detect free variables `exports`.\n\tvar freeExports = typeof exports == 'object' && exports;\n\n\t// Detect free variable `module`.\n\tvar freeModule = typeof module == 'object' && module &&\n\t\tmodule.exports == freeExports && module;\n\n\t// Detect free variable `global`, from Node.js or Browserified code, and use\n\t// it as `root`.\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n\t\troot = freeGlobal;\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar InvalidCharacterError = function(message) {\n\t\tthis.message = message;\n\t};\n\tInvalidCharacterError.prototype = new Error;\n\tInvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\n\tvar error = function(message) {\n\t\t// Note: the error messages used throughout this file match those used by\n\t\t// the native `atob`/`btoa` implementation in Chromium.\n\t\tthrow new InvalidCharacterError(message);\n\t};\n\n\tvar TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\t// http://whatwg.org/html/common-microsyntaxes.html#space-character\n\tvar REGEX_SPACE_CHARACTERS = /[\\t\\n\\f\\r ]/g;\n\n\t// `decode` is designed to be fully compatible with `atob` as described in the\n\t// HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob\n\t// The optimized base64-decoding algorithm used is based on @atk\u2019s excellent\n\t// implementation. https://gist.github.com/atk/1020396\n\tvar decode = function(input) {\n\t\tinput = String(input)\n\t\t\t.replace(REGEX_SPACE_CHARACTERS, '');\n\t\tvar length = input.length;\n\t\tif (length % 4 == 0) {\n\t\t\tinput = input.replace(/==?$/, '');\n\t\t\tlength = input.length;\n\t\t}\n\t\tif (\n\t\t\tlength % 4 == 1 ||\n\t\t\t// http://whatwg.org/C#alphanumeric-ascii-characters\n\t\t\t/[^+a-zA-Z0-9/]/.test(input)\n\t\t) {\n\t\t\terror(\n\t\t\t\t'Invalid character: the string to be decoded is not correctly encoded.'\n\t\t\t);\n\t\t}\n\t\tvar bitCounter = 0;\n\t\tvar bitStorage;\n\t\tvar buffer;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\twhile (++position < length) {\n\t\t\tbuffer = TABLE.indexOf(input.charAt(position));\n\t\t\tbitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;\n\t\t\t// Unless this is the first of a group of 4 characters\u2026\n\t\t\tif (bitCounter++ % 4) {\n\t\t\t\t// \u2026convert the first 8 bits to a single ASCII character.\n\t\t\t\toutput += String.fromCharCode(\n\t\t\t\t\t0xFF & bitStorage >> (-2 * bitCounter & 6)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t};\n\n\t// `encode` is designed to be fully compatible with `btoa` as described in the\n\t// HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa\n\tvar encode = function(input) {\n\t\tinput = String(input);\n\t\tif (/[^\\0-\\xFF]/.test(input)) {\n\t\t\t// Note: no need to special-case astral symbols here, as surrogates are\n\t\t\t// matched, and the input is supposed to only contain ASCII anyway.\n\t\t\terror(\n\t\t\t\t'The string to be encoded contains characters outside of the ' +\n\t\t\t\t'Latin1 range.'\n\t\t\t);\n\t\t}\n\t\tvar padding = input.length % 3;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\tvar a;\n\t\tvar b;\n\t\tvar c;\n\t\tvar buffer;\n\t\t// Make sure any padding is handled outside of the loop.\n\t\tvar length = input.length - padding;\n\n\t\twhile (++position < length) {\n\t\t\t// Read three bytes, i.e. 24 bits.\n\t\t\ta = input.charCodeAt(position) << 16;\n\t\t\tb = input.charCodeAt(++position) << 8;\n\t\t\tc = input.charCodeAt(++position);\n\t\t\tbuffer = a + b + c;\n\t\t\t// Turn the 24 bits into four chunks of 6 bits each, and append the\n\t\t\t// matching character for each of them to the output.\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 18 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 12 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 6 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer & 0x3F)\n\t\t\t);\n\t\t}\n\n\t\tif (padding == 2) {\n\t\t\ta = input.charCodeAt(position) << 8;\n\t\t\tb = input.charCodeAt(++position);\n\t\t\tbuffer = a + b;\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 10) +\n\t\t\t\tTABLE.charAt((buffer >> 4) & 0x3F) +\n\t\t\t\tTABLE.charAt((buffer << 2) & 0x3F) +\n\t\t\t\t'='\n\t\t\t);\n\t\t} else if (padding == 1) {\n\t\t\tbuffer = input.charCodeAt(position);\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 2) +\n\t\t\t\tTABLE.charAt((buffer << 4) & 0x3F) +\n\t\t\t\t'=='\n\t\t\t);\n\t\t}\n\n\t\treturn output;\n\t};\n\n\tvar base64 = {\n\t\t'encode': encode,\n\t\t'decode': decode,\n\t\t'version': '1.0.0'\n\t};\n\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine(function() {\n\t\t\treturn base64;\n\t\t});\n\t}\telse if (freeExports && !freeExports.nodeType) {\n\t\tif (freeModule) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = base64;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (var key in base64) {\n\t\t\t\tbase64.hasOwnProperty(key) && (freeExports[key] = base64[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.base64 = base64;\n\t}\n\n}(this));\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n", "/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n", "'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n", "var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n", "var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Preventive platform detection\n// istanbul ignore next\n(function detectUnsupportedEnvironment() {\n var looksLikeNode = typeof process !== \"undefined\";\n var looksLikeBrowser = typeof window !== \"undefined\" && typeof document !== \"undefined\";\n var looksLikeV8 = isFunction(Error.captureStackTrace);\n if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {\n console.warn(\"The follow-redirects package should be excluded from browser builds.\");\n }\n}());\n\n// Whether to use the native URL object or the legacy url module\nvar useNativeURL = false;\ntry {\n assert(new URL(\"\"));\n}\ncatch (error) {\n useNativeURL = error.code === \"ERR_INVALID_URL\";\n}\n\n// URL fields to preserve in copy operations\nvar preservedUrlFields = [\n \"auth\",\n \"host\",\n \"hostname\",\n \"href\",\n \"path\",\n \"pathname\",\n \"port\",\n \"protocol\",\n \"query\",\n \"search\",\n \"hash\",\n];\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\n// Error types with codes\nvar InvalidUrlError = createErrorType(\n \"ERR_INVALID_URL\",\n \"Invalid URL\",\n TypeError\n);\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\",\n RedirectionError\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// istanbul ignore next\nvar destroy = Writable.prototype.destroy || noop;\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n try {\n self._processResponse(response);\n }\n catch (cause) {\n self.emit(\"error\", cause instanceof RedirectionError ?\n cause : new RedirectionError({ cause: cause }));\n }\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n destroyRequest(this._currentRequest);\n this._currentRequest.abort();\n this.emit(\"abort\");\n};\n\nRedirectableRequest.prototype.destroy = function (error) {\n destroyRequest(this._currentRequest, error);\n destroy.call(this, error);\n return this;\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!isString(data) && !isBuffer(data)) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (isFunction(data)) {\n callback = data;\n data = encoding = null;\n }\n else if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n self.removeListener(\"close\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n this.on(\"close\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n throw new TypeError(\"Unsupported protocol \" + protocol);\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.slice(0, -1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request and set up its event handlers\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n request._redirectable = this;\n for (var event of events) {\n request.on(event, eventHandlers[event]);\n }\n\n // RFC7230\u00A75.3.1: When making a request directly to an origin server, [\u2026]\n // a client MUST send only the absolute path [\u2026] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, [\u2026]\n // a client MUST send the target URI in absolute-form [\u2026].\n this._options.path;\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n // istanbul ignore else\n if (request === self._currentRequest) {\n // Report any write errors\n // istanbul ignore if\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n // istanbul ignore else\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231\u00A76.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n\n // If the response is not a redirect; return it as-is\n var location = response.headers.location;\n if (!location || this._options.followRedirects === false ||\n statusCode < 300 || statusCode >= 400) {\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n return;\n }\n\n // The response is a redirect, so abort the current request\n destroyRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231\u00A76.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n throw new TooManyRedirectsError();\n }\n\n // Store the request headers if applicable\n var requestHeaders;\n var beforeRedirect = this._options.beforeRedirect;\n if (beforeRedirect) {\n requestHeaders = Object.assign({\n // The Host header was set by nativeProtocol.request\n Host: response.req.getHeader(\"host\"),\n }, this._options.headers);\n }\n\n // RFC7231\u00A76.4: Automatic redirection needs to done with\n // care for methods not known to be safe, [\u2026]\n // RFC7231\u00A76.4.2\u20133: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n var method = this._options.method;\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231\u00A76.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource [\u2026]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) [\u2026]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = parseUrl(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Create the redirected request\n var redirectUrl = resolveUrl(location, currentUrl);\n debug(\"redirecting to\", redirectUrl.href);\n this._isRedirect = true;\n spreadUrlObject(redirectUrl, this._options);\n\n // Drop confidential headers when redirecting to a less secure protocol\n // or to a different domain that is not a superdomain\n if (redirectUrl.protocol !== currentUrlParts.protocol &&\n redirectUrl.protocol !== \"https:\" ||\n redirectUrl.host !== currentHost &&\n !isSubdomain(redirectUrl.host, currentHost)) {\n removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (isFunction(beforeRedirect)) {\n var responseDetails = {\n headers: response.headers,\n statusCode: statusCode,\n };\n var requestDetails = {\n url: currentUrl,\n method: method,\n headers: requestHeaders,\n };\n beforeRedirect(this._options, responseDetails, requestDetails);\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n this._performRequest();\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters, ensuring that input is an object\n if (isURL(input)) {\n input = spreadUrlObject(input);\n }\n else if (isString(input)) {\n input = spreadUrlObject(parseUrl(input));\n }\n else {\n callback = options;\n options = validateUrl(input);\n input = { protocol: protocol };\n }\n if (isFunction(options)) {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n if (!isString(options.host) && !isString(options.hostname)) {\n options.hostname = \"::1\";\n }\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\nfunction noop() { /* empty */ }\n\nfunction parseUrl(input) {\n var parsed;\n // istanbul ignore else\n if (useNativeURL) {\n parsed = new URL(input);\n }\n else {\n // Ensure the URL is valid and absolute\n parsed = validateUrl(url.parse(input));\n if (!isString(parsed.protocol)) {\n throw new InvalidUrlError({ input });\n }\n }\n return parsed;\n}\n\nfunction resolveUrl(relative, base) {\n // istanbul ignore next\n return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));\n}\n\nfunction validateUrl(input) {\n if (/^\\[/.test(input.hostname) && !/^\\[[:0-9a-f]+\\]$/i.test(input.hostname)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n if (/^\\[/.test(input.host) && !/^\\[[:0-9a-f]+\\](:\\d+)?$/i.test(input.host)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n return input;\n}\n\nfunction spreadUrlObject(urlObject, target) {\n var spread = target || {};\n for (var key of preservedUrlFields) {\n spread[key] = urlObject[key];\n }\n\n // Fix IPv6 hostname\n if (spread.hostname.startsWith(\"[\")) {\n spread.hostname = spread.hostname.slice(1, -1);\n }\n // Ensure port is a number\n if (spread.port !== \"\") {\n spread.port = Number(spread.port);\n }\n // Concatenate path\n spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;\n\n return spread;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, message, baseClass) {\n // Create constructor\n function CustomError(properties) {\n // istanbul ignore else\n if (isFunction(Error.captureStackTrace)) {\n Error.captureStackTrace(this, this.constructor);\n }\n Object.assign(this, properties || {});\n this.code = code;\n this.message = this.cause ? message + \": \" + this.cause.message : message;\n }\n\n // Attach constructor and set default properties\n CustomError.prototype = new (baseClass || Error)();\n Object.defineProperties(CustomError.prototype, {\n constructor: {\n value: CustomError,\n enumerable: false,\n },\n name: {\n value: \"Error [\" + code + \"]\",\n enumerable: false,\n },\n });\n return CustomError;\n}\n\nfunction destroyRequest(request, error) {\n for (var event of events) {\n request.removeListener(event, eventHandlers[event]);\n }\n request.on(\"error\", noop);\n request.destroy(error);\n}\n\nfunction isSubdomain(subdomain, domain) {\n assert(isString(subdomain) && isString(domain));\n var dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\nfunction isString(value) {\n return typeof value === \"string\" || value instanceof String;\n}\n\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nfunction isBuffer(value) {\n return typeof value === \"object\" && (\"length\" in value);\n}\n\nfunction isURL(value) {\n return URL && value instanceof URL;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, null, null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nexport function isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI, isNode } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = isNode()\n ? process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? ''\n : '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", null, null, null, null, null, "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, "import * as Sentry from '@sentry/node';\n\nSentry.init({\n dsn: 'https://583c5af58c664fd1977d638a693b0ada@sentry-next.wixpress.com/20924',\n tracesSampleRate: 1.0,\n initialScope: {\n tags: {\n fullArtifactId: 'com.wixpress.spartans.wix-mcp'\n }\n }\n});\n", "import './infra/sentry.js';\n\nimport minimist from 'minimist';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { addDocsTools, DocsTool, VALID_DOCS_TOOLS } from './docs/docs.js';\nimport { addCliTools, CLITool, VALID_CLI_TOOLS } from './cli-tools/cli.js';\nimport {\n logger,\n attachStdErrLogger,\n attachMcpServerLogger,\n attachFileLogger\n} from './infra/logger.js';\nimport { WixMcpServer } from './wix-mcp-server.js';\nimport { addDocsResources } from './resources/docs.js';\nimport { addApiCallTool } from './api-call/index.js';\nimport { McpAuthenticationStrategy } from './auth/index.js';\nimport { addVeloReadmeTools } from './docs/velo-readme.js';\nimport { getCliAuthToken } from './cli-tools/utils.js';\n\nconst PUBLIC_TOOLS = [...VALID_DOCS_TOOLS] as const;\n\nconst EXPERIMENTAL_TOOLS = [\n 'WIX_API',\n 'CLI_COMMAND',\n 'GET_TO_KNOW_WIX',\n 'CREATE_WIX_BUSINESS_GUIDE',\n 'VELO_README',\n 'WIX_API_THROUGH_FS'\n] as const;\n\ntype Tool = (typeof PUBLIC_TOOLS)[number] | (typeof EXPERIMENTAL_TOOLS)[number];\nexport const DEFAULT_TOOLS: Tool[] = [...VALID_DOCS_TOOLS];\n\nconst parsedArgs = minimist(process.argv.slice(2));\n\nfunction parseExperimentalArg(): Tool[] {\n const experimentalArg: string | undefined = parsedArgs['experimental'];\n if (!experimentalArg) return [];\n\n return experimentalArg\n .split(',')\n .map((t) => t.trim())\n .filter((tool) =>\n EXPERIMENTAL_TOOLS.includes(tool as (typeof EXPERIMENTAL_TOOLS)[number])\n ) as Tool[];\n}\n\nfunction parseWixAuthorizationArg(): string | undefined {\n return parsedArgs['wixAuthorization'];\n}\n\nfunction parseToolsArg(): Tool[] {\n const toolsArg: string | undefined = parsedArgs['tools'];\n const experimentalTools = parseExperimentalArg();\n\n if (!toolsArg) {\n // When no tools specified, return both default and experimental tools\n return [...DEFAULT_TOOLS, ...experimentalTools];\n }\n\n const requestedTools = toolsArg.split(',').map((t) => t.trim());\n\n const tools: Tool[] = [\n // Include valid non-experimental tools\n ...(requestedTools.filter((tool) =>\n PUBLIC_TOOLS.includes(tool as (typeof PUBLIC_TOOLS)[number])\n ) as Tool[]),\n // Include enabled experimental tools\n ...experimentalTools\n ];\n\n // Warn about enabled experimental tools\n tools.forEach((tool) => {\n if (\n EXPERIMENTAL_TOOLS.includes(tool as (typeof EXPERIMENTAL_TOOLS)[number])\n ) {\n logger.log(\n `Warning: ${tool} is an experimental tool and may have limited functionality or breaking changes`\n );\n }\n });\n\n return tools;\n}\n\nconst loggerType = parsedArgs['logger'] || 'mcp';\n\nif (loggerType === 'file') {\n attachFileLogger();\n} else {\n // Initially we log to stderr, because MCP server is not connected yet\n // When the server is connected, we attach the MCP server logger\n attachStdErrLogger();\n}\n\nlogger.log('--------------------------------');\nlogger.log('starting WIX MCP server');\nlogger.log('--------------------------------');\nconst server = new WixMcpServer(\n {\n name: 'wix-mcp-server',\n version: '1.0.0'\n },\n {\n capabilities: {\n tools: {},\n prompts: {},\n logging: {},\n resources: {}\n }\n }\n);\n\nconst activeTools = parseToolsArg();\nlogger.log('Active tools:', activeTools);\n\nconst docsTools = activeTools.filter((tool) =>\n VALID_DOCS_TOOLS.includes(tool as DocsTool)\n) as DocsTool[];\nconst hasGetToKnowWix = activeTools.includes('GET_TO_KNOW_WIX');\nconst hasCreateWixBusinessGuide = activeTools.includes(\n 'CREATE_WIX_BUSINESS_GUIDE'\n);\n\nif (docsTools.length > 0 || hasGetToKnowWix || hasCreateWixBusinessGuide) {\n logger.log('Adding docs tools:', docsTools);\n addDocsTools(server, docsTools, {\n getToKnowWixEnabled: hasGetToKnowWix,\n createWixBusinessGuideEnabled: hasCreateWixBusinessGuide\n });\n}\nif (activeTools.includes('VELO_README')) {\n addVeloReadmeTools(server);\n}\n\nif (activeTools.includes('WIX_API_THROUGH_FS')) {\n logger.log('Using file system auth strategy for WIX_API_THROUGH_FS');\n const fileSystemAuthStrategy: McpAuthenticationStrategy = {\n getSiteAuthHeaders: (siteId) => ({\n Authorization: `Bearer ${getCliAuthToken(siteId)}`,\n 'wix-site-id': siteId // When using an API key for authentication, include a wix-site-id header with the ID, https://dev.wix.com/docs/api-reference/articles/get-started/api-keys#account-level-and-site-level-api-requests\n }),\n getAccountAuthHeaders: () => ({\n Authorization: getCliAuthToken('api-key') // For account-level API calls\n })\n };\n\n addApiCallTool(server, fileSystemAuthStrategy, ['CallWixSiteAPI']);\n}\n\nconst isWixOne = parsedArgs['cli'] === 'wix-one';\nconst cliTools = activeTools.filter((tool) =>\n VALID_CLI_TOOLS.includes(tool as CLITool)\n) as CLITool[];\nif (cliTools.length > 0) {\n logger.log('Adding cli tools:', cliTools, 'isWixOne:', isWixOne);\n addCliTools(server, cliTools, isWixOne);\n if (cliTools.includes('WIX_API')) {\n const wixAuthorization = parseWixAuthorizationArg();\n\n if (wixAuthorization) {\n logger.log('Using wixAuthorization argument for WIX_API');\n const cliAuthStrategy: McpAuthenticationStrategy = {\n getSiteAuthHeaders: () => ({\n Authorization: wixAuthorization\n }),\n getAccountAuthHeaders: () => ({\n Authorization: wixAuthorization\n })\n };\n addApiCallTool(server, cliAuthStrategy, ['CallWixSiteAPI']);\n } else {\n logger.error(\n 'WIX_API tool requires missing wixAuthorization argument to be set. Will not add WIX_API tool.'\n );\n }\n }\n}\n\ntry {\n const portals = parsedArgs['portals']?.split(',') || [];\n if (portals.length > 0) {\n logger.log('Adding docs resources for portals:', portals);\n await addDocsResources(server, portals);\n }\n} catch (error) {\n logger.error('Error adding docs resources:', error);\n}\n\nlogger.log('Starting server');\nconst transport = new StdioServerTransport();\nlogger.log('Connecting to transport');\nawait server.connect(transport);\nlogger.log('Transport connected');\n\nif (loggerType === 'mcp') {\n // From now on, we log to the MCP server\n attachMcpServerLogger(server);\n}\n", "import { z } from 'zod';\nimport { runSemanticSearchAndFormat } from './semanticSearch.js';\nimport { logger } from '../infra/logger.js';\nimport type { WixMcpServer } from '../wix-mcp-server.js';\nimport { captureException } from '@sentry/node';\nimport { fetchArticleContent } from './fetch-article.js';\nimport {\n addGetToKnowTools,\n WixREADME_DEPENDENT_DESCRIPTION\n} from './get-to-know.js';\nimport { addCreateWixBusinessGuideTools } from './create-site-guide.js';\n\nexport const VALID_DOCS_TOOLS = [\n 'WDS',\n 'REST',\n 'SDK',\n 'BUILD_APPS',\n 'WIX_HEADLESS',\n 'VELO',\n 'BUSINESS_SOLUTIONS'\n] as const;\nexport type DocsTool = (typeof VALID_DOCS_TOOLS)[number];\n\n/**\n * Configuration for a README doc entry\n */\nexport interface ReadmeDocConfig {\n url: string;\n action: 'include' | 'index';\n title?: string;\n description?: string;\n}\n\nexport interface DocsToolsOptions {\n getToKnowWixEnabled?: boolean;\n createWixBusinessGuideEnabled?: boolean;\n disableTools?: string[];\n /** Custom descriptions for tools, keyed by tool name */\n toolDescriptions?: Record<string, string>;\n /** Custom list of docs that compose the WixREADME tool output */\n readmeDocs?: ReadmeDocConfig[];\n}\n\nexport const addDocsTools = (\n server: WixMcpServer,\n allowedTools: DocsTool[] = [\n 'WDS',\n 'REST',\n 'SDK',\n 'BUILD_APPS',\n 'WIX_HEADLESS',\n 'BUSINESS_SOLUTIONS'\n ],\n options: DocsToolsOptions = {}\n) => {\n const {\n getToKnowWixEnabled = false,\n createWixBusinessGuideEnabled = true,\n disableTools,\n toolDescriptions,\n readmeDocs\n } = options;\n\n // Helper to get description (custom or default)\n const getDescription = (toolName: string, defaultDesc: string): string =>\n toolDescriptions?.[toolName] ?? defaultDesc;\n\n if (getToKnowWixEnabled && !disableTools?.includes('WixREADME')) {\n addGetToKnowTools(server, disableTools || [], toolDescriptions, readmeDocs);\n }\n if (\n createWixBusinessGuideEnabled &&\n !disableTools?.includes('CreateWixBusinessGuide')\n ) {\n addCreateWixBusinessGuideTools(\n server,\n disableTools || [],\n toolDescriptions\n );\n }\n\n // WDS Documentation\n if (\n allowedTools.includes('WDS') &&\n !disableTools?.includes('SearchWixWDSDocumentation')\n ) {\n const defaultWdsDesc = [\n 'Searches the Wix Design System Documentation for components and patterns.',\n 'Use this tool when you need to understand or implement UI components and design patterns in a Wix project.',\n 'Search for specific component names, patterns, or UI requirements.',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\",\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'SearchWixWDSDocumentation',\n getDescription('SearchWixWDSDocumentation', defaultWdsDesc),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix Design System Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(10)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix WDS`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'WDS',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixWDSDocumentation',\n toolName: 'SearchWixWDSDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix WDS: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // REST Documentation\n if (\n allowedTools.includes('REST') &&\n !disableTools?.includes('SearchWixRESTDocumentation')\n ) {\n const defaultRestDesc = [\n 'Searches the official Wix REST API documentation.',\n 'Use this tool whenever you need to to interact with the Wix platform via HTTP requests.',\n \"Specify the API endpoint, resource, or action you need information about (e.g., 'get site details endpoint', 'create data collection', 'update product API', 'REST authentication').\",\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\",\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'SearchWixRESTDocumentation',\n getDescription('SearchWixRESTDocumentation', defaultRestDesc),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix REST API Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(10)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix REST API`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'REST',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: 'Next, you MUST use the ReadFullDocsArticle tool if you want to read the full documentation for a specific article or method.'\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixRESTDocumentation',\n toolName: 'SearchWixRESTDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix REST API: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n if (\n allowedTools.includes('BUSINESS_SOLUTIONS') &&\n !getToKnowWixEnabled &&\n !disableTools?.includes('WixBusinessFlowsDocumentation')\n ) {\n const defaultBusinessDesc = [\n 'This tool provides step-by-step recipes for setting up complex Wix business solutions that involve multiple API calls.',\n 'It excels at guiding the creation of features like booking systems with payments.',\n 'For example, it can guide the setup of a service in Wix Bookings where customers can pay using Wix Payments, such as creating a bookable yoga class',\n 'It searches the Wix Business Solutions documentation for these integrated workflows involving services, bookings, payments, stores, blogs, and more.',\n 'This tool returns a list of articles that are potentially relevant to the input search term.',\n '**IMPORTANT NOTES:**',\n '1. Before attempting to implement a multi step API calls on Wix, YOU MUST TRY THIS TOOL FIRST.',\n '2. Out of the returned list of articles that you will receive, you MUST select the most relevant one and use the ReadFullDocsArticle tool to fetch it.'\n ].join('\\n');\n server.tool(\n 'WixBusinessFlowsDocumentation',\n getDescription('WixBusinessFlowsDocumentation', defaultBusinessDesc),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term for the required sample flow (e.g. \"setup a new business\")'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix Sample Flows`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'BUSINESS_SOLUTIONS',\n toolParams: {\n searchTerm:\n '**RECIPE**: Business Recipes - full setup flow for::: ' +\n searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: `Out of the included list of articles, you **MUST** select the one that is most relevant to the user's request and use the ReadFullDocsArticle tool to fetch it.`\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixSampleFlowsDocumentation',\n toolName: 'SearchWixSampleFlowsDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix Sample Flows: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // SDK Documentation\n if (\n allowedTools.includes('SDK') &&\n !disableTools?.includes('SearchWixSDKDocumentation')\n ) {\n const defaultSdkDesc = [\n 'Searches the official Wix javascript SDK documentation.',\n 'Use this tool whenever you need to write or modify Wix related SDK code.',\n \"Specify the SDK module, function, or feature you need information about (e.g., 'how to query all items from a data collection?', 'how to use wix-stores-backend', 'authentication methods in the SDK').\",\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\",\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'SearchWixSDKDocumentation',\n getDescription('SearchWixSDKDocumentation', defaultSdkDesc),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix SDK Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix SDK`);\n\n panorama\n .transaction('SearchWixSDKDocumentation')\n .start({ maxResults });\n const result = await runSemanticSearchAndFormat({\n toolName: 'SDK',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n panorama\n .transaction('SearchWixSDKDocumentation')\n .finish({ maxResults });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: 'Next, you MUST use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method.'\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixSDKDocumentation',\n toolName: 'SearchWixSDKDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix SDK: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Build Apps Documentation\n if (\n allowedTools.includes('BUILD_APPS') &&\n !disableTools?.includes('SearchBuildAppsDocumentation')\n ) {\n const defaultBuildAppsDesc = [\n 'Searches the official Build Apps documentation.',\n 'Use this tool when you need to understand or implement Wix CLI applications related code.',\n 'The search term should be a specific Wix CLI command or specific topic related to Wix CLI applications or its ecosystem (e.g. deployment, creating new extensions etc).',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\",\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'SearchBuildAppsDocumentation',\n getDescription('SearchBuildAppsDocumentation', defaultBuildAppsDesc),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Build Apps Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Build Apps`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'BUILD_APPS',\n toolParams: {\n searchTerm: `wix cli docs for ${searchTerm}`\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchBuildAppsDocumentation',\n toolName: 'SearchBuildAppsDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Build Apps: ${error}`\n );\n return {\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Wix Headless Documentation\n if (\n allowedTools.includes('WIX_HEADLESS') &&\n !disableTools?.includes('SearchWixHeadlessDocumentation')\n ) {\n const defaultHeadlessDesc = [\n 'Searches the official Wix Headless Documentation.',\n 'Use this tool when you need to understand or implement Headless related code.',\n 'The search term should be a specific Wix Headless topic or feature you need information about.',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\",\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'SearchWixHeadlessDocumentation',\n getDescription('SearchWixHeadlessDocumentation', defaultHeadlessDesc),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Headless Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Headless`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'WIX_HEADLESS',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixHeadlessDocumentation',\n toolName: 'SearchWixHeadlessDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix Headless: ${error}`\n );\n return {\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Velo Documentation\n if (\n allowedTools.includes('VELO') &&\n !disableTools?.includes('SearchWixVeloDocumentation')\n ) {\n const defaultVeloDesc = [\n 'Searches the official Velo documentation.',\n 'Use this tool when you need to understand or implement Velo related code.',\n 'The search term should be a specific Velo topic or feature you need information about.',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\",\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'SearchWixVeloDocumentation',\n getDescription('SearchWixVeloDocumentation', defaultVeloDesc),\n {\n searchTerm: z\n .string()\n .describe('The search term to search for in the Velo Documentation'),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Velo`);\n\n panorama\n .transaction('SearchWixVeloDocumentation')\n .start({ maxResults });\n const result = await runSemanticSearchAndFormat({\n toolName: 'VELO',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n panorama\n .transaction('SearchWixVeloDocumentation')\n .finish({ maxResults });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: 'Next, you MUST use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method.'\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixVeloDocumentation',\n toolName: 'SearchWixVeloDocumentation'\n }\n });\n logger.error(`Error searching for ${searchTerm} in Velo: ${error}`);\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n if (!disableTools?.includes('ReadFullDocsArticle')) {\n const defaultReadArticleDesc = [\n 'Fetches the full Wix docs article or method article.',\n 'Use this tool when you read a summary of a docs article or method article, you have the docs url and want to read the full article.',\n getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ''\n ].join('\\n');\n server.tool(\n 'ReadFullDocsArticle',\n getDescription('ReadFullDocsArticle', defaultReadArticleDesc),\n {\n articleUrl: z\n .string()\n .url()\n .describe(\n 'The URL of the docs article or method article to fetch. Should be something like https://dev.wix.com/docs/.../.../...'\n )\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ articleUrl }, { httpClient }) => {\n try {\n const articleContent = await fetchArticleContent(\n httpClient,\n articleUrl,\n 'article'\n );\n\n if (!articleContent) {\n throw new Error('Article content is empty');\n }\n\n return {\n content: [\n {\n type: 'text',\n text: articleContent\n },\n {\n type: 'text',\n text: [\n '---',\n 'Next, if you are dealing with a method - you MUST call ReadFullDocsMethodSchema tool - it will give you the full request schema for the method.'\n ].join('\\n')\n }\n ]\n };\n } catch (error) {\n logger.error(\n `Error fetching article content or method schema for ${articleUrl}: ${error}`\n );\n return {\n content: [\n {\n type: 'text',\n text: `Could not fetch article content: \"${(error as Error).message}\". You should try completing the task without it.`\n }\n ]\n };\n }\n }\n );\n }\n\n if (!disableTools?.includes('ReadFullDocsMethodSchema')) {\n const defaultMethodSchemaDesc = [\n 'Fetches the full method schema for a given method. Always use it before calling the method.',\n 'This will give you the entire request/response schema with all the fields and their descriptions.'\n ].join('\\n');\n server.tool(\n 'ReadFullDocsMethodSchema',\n getDescription('ReadFullDocsMethodSchema', defaultMethodSchemaDesc),\n {\n articleUrl: z\n .string()\n .url()\n .describe(\n 'The URL of the documentation to fetch. Should be something like https://dev.wix.com/docs/.../.../...'\n )\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ articleUrl }, { httpClient }) => {\n try {\n const articleContent = await fetchArticleContent(\n httpClient,\n articleUrl,\n 'methodSchema'\n );\n\n if (!articleContent) {\n throw new Error('Method schema is empty');\n }\n\n return {\n content: [\n {\n type: 'text',\n text: articleContent\n }\n ]\n };\n } catch (error) {\n logger.error(\n `Error fetching method schema for ${articleUrl}: ${error}`\n );\n return {\n content: [\n {\n type: 'text',\n text: `Could not fetch method schema: \"${(error as Error).message}\". You should try completing the task without it.`\n }\n ]\n };\n }\n }\n );\n }\n};\n", "import fs from 'fs/promises';\nimport path from 'path';\nimport { homedir } from 'os';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\n\nexport interface Logger {\n log(...data: unknown[]): void;\n error(...data: unknown[]): void;\n}\n\nconst createNullLogger = (): Logger => {\n return {\n log: () => {},\n error: () => {}\n };\n};\n\nconst createStdErrLogger = (): Logger => {\n return {\n log: (data) => {\n console.error(data);\n },\n error: (data) => {\n console.error(data);\n }\n };\n};\n\nconst createMcpServerLogger = (server: McpServer): Logger => {\n return {\n log: (data) => {\n server.server.sendLoggingMessage({ level: 'info', data });\n },\n error: (data) => {\n server.server.sendLoggingMessage({ level: 'error', data });\n }\n };\n};\n\nconst createFileLogger = (): Logger => {\n const filePath = path.join(homedir(), 'wix-mcp-log.txt');\n const date = new Date()\n .toLocaleString('en-US', { timeZone: 'Asia/Jerusalem' })\n .replace(/,/g, '');\n\n return {\n log: (...data) => {\n const message = `[info] ${date} - ${data.join(' ')}`;\n fs.appendFile(filePath, `${message}\\n`);\n },\n error: (...data) => {\n const message = `[error] ${date} - ${data.join(' ')}`;\n fs.appendFile(filePath, `${message}\\n`);\n }\n };\n};\n\nexport const logger = createNullLogger();\n\nexport const attachMcpServerLogger = (server: McpServer) => {\n const mcpLogger = createMcpServerLogger(server);\n logger.log = mcpLogger.log;\n logger.error = mcpLogger.error;\n};\n\nexport const attachStdErrLogger = () => {\n const stdErrLogger = createStdErrLogger();\n logger.log = stdErrLogger.log;\n logger.error = stdErrLogger.error;\n};\n\nexport const attachFileLogger = () => {\n const fileLogger = createFileLogger();\n logger.log = fileLogger.log;\n logger.error = fileLogger.error;\n};\n", "import type { DocsTool } from './docs.js';\nimport { logger } from '../infra/logger.js';\n\nexport const MAX_CONTENT_LENGTH = 10000;\nexport const DEFAULT_MAX_RESULTS = 10;\n\nconst runSemanticSearch = async (\n toolName: DocsTool,\n toolParams: Record<string, string>,\n maxResults: number = 20,\n rerank: boolean = false\n) => {\n const startTime = new Date().getTime();\n\n const url = new URL(\n `https://www.wixapis.com/mcp-docs-search/v1/search?maxResults=${maxResults}&rerank=${rerank}`\n );\n\n if (toolName === 'SDK') {\n url.searchParams.append('kbName', 'SDK_SCHEMAS_KB_ID');\n url.searchParams.append('kbName', 'SDK_DOCS_KB_ID');\n } else if (toolName === 'REST' || toolName === 'BUSINESS_SOLUTIONS') {\n if (toolName === 'REST') {\n url.searchParams.append('kbName', 'REST_METHODS_KB_ID');\n }\n url.searchParams.append('kbName', 'REST_DOCS_KB_ID');\n url.searchParams.append('kbName', 'MCP_REST_RECIPES_KB_ID');\n } else if (toolName === 'WDS') {\n url.searchParams.append('kbName', 'WDS_DOCS_KB_ID');\n } else if (toolName === 'BUILD_APPS') {\n url.searchParams.append('kbName', 'BUILD_APPS_KB_ID');\n } else if (toolName === 'WIX_HEADLESS') {\n url.searchParams.append('kbName', 'HEADLESS_KB_ID');\n } else if (toolName === 'VELO') {\n url.searchParams.append('kbName', 'VELO_DOCS_KB_ID');\n url.searchParams.append('kbName', 'VELO_METHODS_KB_ID');\n }\n for (const [key, value] of Object.entries(toolParams)) {\n url.searchParams.append(key, value);\n }\n\n logger.log('Running RAG search', url.toString());\n\n const response = await fetch(url.toString(), {\n headers: {\n 'Content-Type': 'application/json',\n 'x-time-budget': '180000',\n 'x-wix-time-budget': '180000'\n }\n });\n\n if (!response.ok) {\n logger.error(`Failed to run rag search: ${response.statusText}`);\n throw new Error(`Failed to run rag search: ${response.statusText}`);\n }\n\n const data = await response.json();\n const endTime = new Date().getTime();\n const timeTaskFormatted = (endTime - startTime) / 1000;\n\n logger.log(\n 'Ran RAG search successfully with params',\n JSON.stringify(toolParams),\n timeTaskFormatted,\n typeof data\n );\n\n return data?.results;\n};\n\nconst getContentFromChunkedContent = (chunkedContent: string[]) => {\n let content = '';\n for (const chunk of chunkedContent) {\n if (content.length + chunk.length > MAX_CONTENT_LENGTH) {\n break;\n }\n content += '\\n\\n---\\n\\n' + chunk;\n }\n return content;\n};\n\nconst formatResultsContent = (\n resultsFromKbs: Record<\n string,\n {\n results: {\n entry: {\n content: string;\n chunkedContent: string[];\n };\n scoresInfo: {\n overallMatchScore: number;\n };\n }[];\n }\n >,\n maxResults: number,\n linesInEachResult: number | undefined = undefined\n): string => {\n // First, take the results from all KBs and sort them by overallMatchScore\n const allResults = Object.entries(resultsFromKbs)\n .map(([, { results }]) => results)\n .flat();\n\n if (allResults.length === 0) {\n throw new Error('No result from search');\n }\n\n const sortedResults = allResults.sort(\n (a, b) => b.scoresInfo.overallMatchScore - a.scoresInfo.overallMatchScore\n );\n\n // Take the top maxResults results\n const topResults = sortedResults.slice(0, maxResults);\n\n // Concatenate the content of the top results\n const concatenatedContent = topResults\n .map((result) => {\n let newContent = result.entry.content;\n\n if (linesInEachResult) {\n const totalLines = newContent.split('\\n').length;\n const linesToTake = Math.min(linesInEachResult, totalLines);\n newContent = newContent.split('\\n').slice(0, linesToTake).join('\\n');\n const moreLines = totalLines - linesToTake;\n const moreLinesText =\n moreLines > 0 ? `\\n\\n... ${moreLines} more lines ...` : '';\n newContent = `${newContent}${moreLinesText}`;\n }\n\n return {\n ...result,\n entry: {\n ...result.entry,\n content: newContent\n }\n };\n })\n .map((result) => {\n const content = result.entry.content;\n const chunkedContent = result.entry.chunkedContent;\n\n if (content.length > MAX_CONTENT_LENGTH) {\n logger.log(`Content is too long, using chunked content`, {\n contentLength: content.length,\n chunkedContentLength: chunkedContent.length\n });\n return getContentFromChunkedContent(chunkedContent);\n }\n return content;\n })\n .join('\\n\\n---\\n\\n');\n\n return concatenatedContent;\n};\n\nexport const runSemanticSearchAndFormat = async ({\n toolName,\n toolParams,\n maxResults = DEFAULT_MAX_RESULTS,\n rerank,\n linesInEachResult\n}: {\n toolName: DocsTool;\n toolParams: Record<string, string>;\n maxResults?: number;\n rerank?: boolean;\n linesInEachResult?: number | undefined;\n}) => {\n const results = await runSemanticSearch(\n toolName,\n toolParams,\n maxResults,\n rerank\n );\n const maxResultsToUse = Math.min(maxResults, DEFAULT_MAX_RESULTS);\n return formatResultsContent(results, maxResultsToUse, linesInEachResult);\n};\n", "export const RAW_DOCS_API_URL = 'https://dev.wix.com/rawdocs/api';\nexport const GET_ARTICLE_CONTENT_URL = `${RAW_DOCS_API_URL}/get-article-content`;\nexport const PORTAL_INDEX_URL = `${RAW_DOCS_API_URL}/portal-index`;\n", "import { HttpClient } from '@wix/http-client';\nimport { logger } from '../infra/logger.js';\nimport { GET_ARTICLE_CONTENT_URL } from '../constants.js';\n\nasync function fetchArticleContentFromDigor(\n httpClient: HttpClient,\n articleUrl: string,\n mode: 'article' | 'methodSchema',\n stripHeader: boolean = false\n) {\n // https://dev.wix.com/rawdocs/api/get-article-content?articleUrl=https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/create-draft-post&schema=true\n const url = new URL(GET_ARTICLE_CONTENT_URL);\n url.searchParams.set('articleUrl', articleUrl);\n const schema = mode === 'methodSchema' ? 'true' : 'false';\n url.searchParams.set('schema', schema);\n\n logger.log(`Fetching resource from docs ${url.toString()}`);\n\n const { data } = await httpClient.get(url.toString());\n\n logger.log(`Fetched resource from docs: ${data.articleContent}`);\n\n const headerDivider = '## Article Content:'; // after the header, the content starts\n\n if (stripHeader) {\n const headerIndex = data.articleContent.indexOf(headerDivider);\n if (headerIndex !== -1) {\n return data.articleContent.substring(\n headerIndex + headerDivider.length\n ) as string;\n }\n }\n\n return data.articleContent as string;\n}\n\nexport async function fetchArticleContent(\n httpClient: HttpClient,\n articleUrl: string,\n mode: 'article' | 'methodSchema' | 'raw',\n stripHeader: boolean = false\n) {\n if (mode === 'raw') {\n let parsedUrl: URL;\n\n try {\n parsedUrl = new URL(articleUrl);\n } catch {\n throw new Error(`Invalid URL format: ${articleUrl}`);\n }\n\n const hostname = parsedUrl.hostname.replace('www.', '');\n if (hostname !== 'dev.wix.com') {\n throw new Error(\n `Unsupported URL domain: ${hostname}. Article URL must be from dev.wix.com`\n );\n }\n\n const { data: doc } = await httpClient.get(articleUrl);\n return doc as string;\n }\n\n return fetchArticleContentFromDigor(\n httpClient,\n articleUrl,\n mode,\n stripHeader\n );\n}\n", "import { WixMcpServer } from '../wix-mcp-server.js';\nimport { fetchArticleContent } from './fetch-article.js';\n\n/**\n * Configuration for a README doc entry\n */\nexport interface ReadmeDocConfig {\n url: string;\n action: 'include' | 'index';\n title?: string;\n description?: string;\n}\n\nconst DEFAULT_DOC_URLS: ReadmeDocConfig[] = [\n {\n url: 'https://dev.wix.com/docs/picasso/wix-ai-docs/index/get-to-know-wix-llm-instructions',\n action: 'include'\n },\n {\n url: 'https://dev.wix.com/docs/picasso/wix-ai-docs/index/wix-concepts',\n action: 'include'\n },\n {\n url: 'https://dev.wix.com/docs/picasso/wix-ai-docs/index/wix-business-solutions',\n action: 'index',\n title: 'Wix Business Solutions',\n description: `This document provides an overview of the all business solutions available in Wix.\n \nUse this document under the following scenarios:\n1. The user asks general questions about Wix business solutions.\n2. The user asks about a specific business solution, and you want to provide a high-level overview of it.\n3. The user looks for a specific business solution, and you want to provide a list of all available solutions.\n\nPlease note that this is a large document. Only use it for the scenarios mentioned above.`\n },\n {\n url: 'https://dev.wix.com/docs/picasso/wix-ai-docs/index/wix-business-solutions-recipes',\n action: 'include'\n }\n];\n\nconst DESCRIPTION = `# Tool: WixREADME\n\n**Directive:** \\`WixREADME\\` is the **MANDATORY FIRST STEP** for all Wix-related tasks EXCEPT when the user explicitly asks to build/create a site - in which case you should use the \\`WixSiteBuilderWidget\\` tool directly. Its output (including relevant linked documents) provides foundational context for all other Wix tools. Adherence to this protocol is **NON-NEGOTIABLE**.\n\n**Operational Protocol (Strictly Sequential):**\n\n1. **Execute \\`WixREADME\\`:**\n * **Action:** Invoke \\`WixREADME\\`.\n * **Constraint:** MUST complete successfully. NO other Wix tool before this.\n\n2. **Process \\`WixREADME\\` Output (Link Identification & Relevance Assessment):**\n * **A. Identify Candidate Links:** Scan \\`WixREADME\\` output. Extract *only* URLs found within \\`<urls>{urls}</urls>\\` tags. Ignore all other URLs.\n * **B. Assess Relevance:** For EACH candidate URL from (A), assess its relevance to the **current user's specific prompt/task**.\n * **Outcome:** A list of *relevant* document URLs. If no links are found in \\`<urls>\\` tags or none are deemed relevant, note this and proceed to Step 4.\n\n3. **Fetch Relevant Documents (via \\`ReadFullDocsArticle\\`):**\n * **Condition:** ONLY if Step 2B identified one or more *relevant* URLs.\n * **Action:** For EACH *relevant* URL, invoke \\`ReadFullDocsArticle\\` to fetch its full content.\n * **Constraint:** All *relevant* documents MUST be fetched before Step 4.\n\n4. **Proceed with Other Wix Tools:**\n * **Condition:** ONLY after completing Steps 1, 2, and 3 (if Step 3 was applicable).\n * **Action:** Use other Wix tools as needed, utilizing the full context from \\`WixREADME\\` and fetched relevant documents.\n\n**Summary of Critical Rules:**\n* \\`WixREADME\\` is **ALWAYS FIRST**.\n* Analyze \\`WixREADME\\` output: Extract links *only* from \\`<urls>{urls}</urls>\\` tags.\n* Assess relevance of *each* extracted link against the user's current task.\n* Fetch **ONLY RELEVANT** linked documents using \\`ReadFullDocsArticle\\` before any other Wix tool.\n* **FAILURE TO FOLLOW THIS EXACT SEQUENCE WILL LEAD TO ERRORS.** Strict adherence is mandatory.`;\n\nexport const WixREADME_DEPENDENT_DESCRIPTION =\n \"**Dependency:** Must be used after 'WixREADME' has successfully run.\";\n\nexport async function addGetToKnowTools(\n server: WixMcpServer,\n disableTools: string[] = [],\n toolDescriptions?: Record<string, string>,\n readmeDocs?: ReadmeDocConfig[]\n) {\n if (disableTools.includes('WixREADME')) {\n return;\n }\n\n // Use provided docs or fall back to defaults\n const docsToUse =\n readmeDocs && readmeDocs.length > 0 ? readmeDocs : DEFAULT_DOC_URLS;\n\n server.tool(\n 'WixREADME',\n toolDescriptions?.['WixREADME'] ?? DESCRIPTION,\n {},\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async (_, { httpClient }) => {\n try {\n const contents = await Promise.all(\n docsToUse.map(async ({ url, action, description, title }) => {\n if (action === 'index') {\n return {\n type: 'text' as const,\n text: `## ${title}\\n\\n<urls>\\n${url}\\n</urls>\\n\\n${description ?? ''}`\n };\n }\n\n const content = await fetchArticleContent(\n httpClient,\n url,\n 'article',\n true\n );\n return {\n type: 'text' as const,\n text: content\n };\n })\n );\n\n return {\n content: contents\n };\n } catch (error) {\n return {\n isError: true,\n content: [\n {\n type: 'text',\n text: `Error fetching the document: ${(error as Error).message}`\n }\n ]\n };\n }\n }\n );\n}\n", "import { WixMcpServer } from '../wix-mcp-server.js';\nimport { fetchArticleContent } from './fetch-article.js';\n\nconst CREATE_SITE_DOCS = [\n {\n url: 'https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_create_a_new_site_from_template',\n title: 'How to Create a New Wix Site',\n nextSteps:\n '\\n\\n**Next Steps:** Use the ManageWixSite tool to make the API call for creating the Wix site.'\n },\n {\n url: 'https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',\n title: 'How to Install App on a Wix Site',\n nextSteps:\n '\\n\\n**Next Steps:** Use the CallWixSiteAPI tool to make the API call for installing apps on the Wix site.'\n }\n];\n\nconst CREATE_SITE_DESCRIPTION = `\nProvides comprehensive documentation for creating a new Wix Business (i.e site, app, etc.)\n\n## When to Use This Tool\n\nUse this tool when the user requests to create a new Wix site.\n\n## What This Tool Contains\n\nThis tool provides complete documentation including:\n- Template selection (empty sites or designed templates)\n- Wix Editor vs Wix Studio options\n- Regular vs Headless site creation\n- API endpoint details and parameters\n- Post-creation steps (OAuth for headless, publishing for regular sites)\n- App installation instructions\n\n## Important Notes\n\n**Do NOT use WixREADME or SearchWixRESTDocumentation before this tool.** If the user wants to create a Wix site, call this tool directly. It contains ALL necessary documentation.\n\n**After reading this documentation:**\n1. Use ManageWixSite to create the site\n2. Use CallWixSiteAPI to install apps (if needed)\n\nIf the user wants to create a Wix site, call this tool directly. It contains ALL necessary documentation. You don't need to search for additional documentation, read more articles, use the WixREADME tool etc unless the user asks you to do so explicitly or you encounter an error.`;\n\nexport async function addCreateWixBusinessGuideTools(\n server: WixMcpServer,\n disableTools: string[] = [],\n toolDescriptions?: Record<string, string>\n) {\n if (disableTools.includes('CreateWixBusinessGuide')) {\n return;\n }\n server.tool(\n 'CreateWixBusinessGuide',\n toolDescriptions?.['CreateWixBusinessGuide'] ?? CREATE_SITE_DESCRIPTION,\n {},\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async (_args, { httpClient }) => {\n try {\n const contents = await Promise.all(\n CREATE_SITE_DOCS.map(async ({ url, title, nextSteps }) => {\n const articleContent = await fetchArticleContent(\n httpClient,\n url,\n 'article',\n true\n );\n\n const fullContent = `# ${title}\\n\\n${articleContent}${nextSteps}`;\n\n return {\n type: 'text' as const,\n text: fullContent\n };\n })\n );\n\n return {\n content: contents\n };\n } catch (error) {\n return {\n isError: true,\n content: [\n {\n type: 'text',\n text: `Error fetching create site documentation: ${(error as Error).message}`\n }\n ]\n };\n }\n }\n );\n}\n", "import { z } from 'zod';\nimport { logger } from '../infra/logger.js';\nimport { execa } from 'execa';\nimport { WixMcpServer } from '../wix-mcp-server.js';\n\nexport const VALID_CLI_TOOLS = ['WIX_API', 'CLI_COMMAND'] as const;\nexport type CLITool = (typeof VALID_CLI_TOOLS)[number];\n\nexport function addCliTools(\n server: WixMcpServer,\n allowedTools: CLITool[] = ['CLI_COMMAND'],\n isWixOne: boolean = false\n) {\n if (allowedTools.includes('CLI_COMMAND')) {\n server.tool(\n 'RunWixCliCommand',\n `Executes Wix CLI commands for Wix app development and management.\n Use this tool to run commands like 'wix app generate' (adds new extensions), 'wix app build' (builds your app), 'wix app preview' (creates shareable preview), 'wix app release' (releases a new version of your app), and more.\n\n IMPORTANT: Before using this tool, check if the command is mapped in package.json scripts:\n * Use this tool for npm/yarn scripts that map to Wix CLI commands as well.\n * Do not use this tool for starting the local development server.\n \n Before using this tool, you MUST search the Wix documentation for the command you want to run.\n \n DO NOT USE THIS TOOL FOR ANY OTHER PURPOSE. IT IS ONLY FOR WIX CLI COMMANDS.`,\n {\n appPath: z\n .string()\n .describe('The full path to the Wix CLI app to run the command on.'),\n extensionType: z\n .enum([\n 'dashboard-page',\n 'dashboard-plugin',\n 'dashboard-menu-plugin',\n 'dashboard-modal',\n 'web-method',\n 'api-route',\n 'event',\n 'service-plugin'\n ])\n .optional()\n .describe(\n 'The type of extension to generate. You MUST provide this for commands that generate extensions.'\n ),\n extensionName: z\n .string()\n .optional()\n .describe(\n 'The name of the extension to generate, e.g. My Dashboard Page. You MUST provide this for commands that generate extensions.'\n ),\n searchedDocs: z\n .boolean()\n .describe(\n 'Whether you have already searched the Wix documentation for the command you want to run.'\n ),\n command: z\n .string()\n .min(1, 'Command cannot be empty')\n .max(1000, 'Command is too long')\n .describe(\n \"The Wix CLI command to execute (e.g. 'wix app generate', 'wix app build', 'wix app preview', 'wix app release', etc.), or a script that maps to a Wix CLI command (e.g. 'npm run generate', 'yarn generate', etc.).\"\n )\n },\n async ({ command, appPath, extensionType, extensionName }) => {\n logger.log(\n `RunWixCliCommand: command: ${command}, appPath: ${appPath}, extensionType: ${extensionType}, extensionName: ${extensionName}`\n );\n let commandName = '';\n let commandArgs = [];\n\n if (command.includes('generate')) {\n if (!extensionType) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension type for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n if (!extensionName) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension name for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n // Format generate command with proper arguments\n commandName = 'npx';\n commandArgs = [\n isWixOne ? 'wix-one' : 'wix',\n 'app',\n 'generate',\n '-t',\n extensionType,\n '-n',\n extensionName,\n '--json'\n ];\n } else {\n const commandParts = command.split(' ');\n commandName = commandParts[0];\n commandArgs = commandParts.slice(1);\n }\n\n if (isWixOne && commandName === 'wix') {\n commandName = 'wix-one';\n }\n\n try {\n logger.log(\n `Executing Wix CLI command: ${commandName} ${commandArgs.join(' ')}`\n );\n\n // Execute with timeout\n const { stdout, stderr, exitCode } = await execa(\n commandName,\n commandArgs,\n {\n cwd: appPath,\n extendEnv: true,\n env: {\n ...process.env\n },\n timeout: 5 * 60 * 1000, // 5 minute timeout\n maxBuffer: 10 * 1024 * 1024 // 10MB output limit\n }\n );\n\n if (exitCode !== 0) {\n return {\n content: [{ type: 'text' as const, text: `Error: ${stderr}` }],\n isError: true\n };\n }\n\n logger.log(`RunWixCliCommand: stdout: ${stdout}`);\n logger.log(`RunWixCliCommand: stderr: ${stderr}`);\n\n return {\n content: [\n { type: 'text' as const, text: stdout },\n ...(stderr\n ? [{ type: 'text' as const, text: `Error: ${stderr}` }]\n : [])\n ]\n };\n } catch (error) {\n logger.error(`Error executing Wix CLI command: ${error}`);\n\n return {\n content: [{ type: 'text' as const, text: `Error: ${error}` }],\n isError: true\n };\n }\n }\n );\n }\n}\n", "import type { z, ZodRawShape, ZodType, ZodTypeAny } from 'zod';\nimport type { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';\nimport type {\n CallToolResult,\n Implementation,\n ToolAnnotations\n} from '@modelcontextprotocol/sdk/types.js';\nimport type { BiLogger } from '@wix/wix-bi-logger-client';\nimport type { PanoramaClientForComponent } from '@wix/panorama-client-node';\nimport { v4 as uuidv4 } from 'uuid';\nimport { captureException, setTags } from '@sentry/node';\nimport {\n McpServer,\n RegisteredTool,\n ToolCallback\n} from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { wixMcpRequestSrc39Evid1607 } from '@wix/bi-logger-api-infra-data/v2';\nimport { createPanoramaClient } from './infra/panorama.js';\nimport { createBiLogger } from './infra/bi-logger.js';\nimport { DEV_ENVIRONMENTS, ENV, getEnvironment } from './infra/environment.js';\nimport { HttpClient } from '@wix/http-client';\nimport { ServerOptions } from '@modelcontextprotocol/sdk/server/index.js';\nimport { type Logger, logger } from './infra/logger.js';\n\ninterface ToolBiParams {\n visitorId?: string;\n siteId?: string;\n requestId?: string;\n jobId?: string; // Used for WixSiteBuilder tool\n}\n\ntype WixRequestHandlerExtra = RequestHandlerExtra<any, any> & {\n logger: Logger;\n biLogger: BiLogger;\n panorama: PanoramaClientForComponent;\n httpClient: HttpClient;\n setToolBiParams: (params: ToolBiParams) => void;\n};\n\ntype WixToolCallback<\n Args extends undefined | ZodRawShape | ZodType<object> = undefined\n> = Args extends ZodRawShape\n ? (\n args: z.objectOutputType<Args, ZodTypeAny>,\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>\n : Args extends ZodType<infer T>\n ? (\n args: T,\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>\n : (\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>;\n\nexport interface WixMcpServerContext {\n siteId?: string;\n sessionId?: string;\n nodeEnv?: string;\n}\n\nexport class WixMcpServer extends McpServer {\n private biLogger: BiLogger;\n private nodeEnv: ENV;\n private sessionId: string;\n private getUserId?: () => string;\n private getClientName?: () => string | undefined;\n constructor(\n private serverInfo: Implementation,\n options?: ServerOptions,\n private context?: WixMcpServerContext\n ) {\n super(serverInfo, options);\n this.sessionId = context?.sessionId ?? uuidv4();\n this.nodeEnv = getEnvironment(context?.nodeEnv);\n this.biLogger = createBiLogger({\n _client_id: this.sessionId\n });\n logger.log(`WixMcpServer created with sessionId: ${this.sessionId}`);\n }\n setUserIdGetter(getUserId: () => string) {\n this.getUserId = getUserId;\n }\n setClientNameGetter(getClientName: () => string | undefined) {\n this.getClientName = getClientName;\n }\n // 2 args: name + cb\n override tool(name: string, cb: WixToolCallback): RegisteredTool;\n // 3 args: name + description + cb\n override tool(\n name: string,\n description: string,\n cb: WixToolCallback\n ): RegisteredTool;\n // 3 args: name + paramsSchema + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n paramsSchema: Args,\n cb: WixToolCallback<Args>\n ): void;\n // 4 args: name + description + paramsSchema + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n description: string,\n paramsSchema: Args,\n cb: WixToolCallback<Args>\n ): void;\n // 4 args: name + description + annotations + cb\n override tool(\n name: string,\n description: string,\n annotations: ToolAnnotations,\n cb: WixToolCallback\n ): RegisteredTool;\n // 4 args: name + paramsSchema + annotations + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n paramsSchema: Args,\n annotations: ToolAnnotations,\n cb: WixToolCallback<Args>\n ): void;\n // 5 args: name + description + paramsSchema + annotations + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n description: string,\n paramsSchema: Args,\n annotations: ToolAnnotations,\n cb: WixToolCallback<Args>\n ): void;\n\n override tool(...args: any[]): RegisteredTool {\n const cbIndex = args.findIndex((arg) => typeof arg === 'function');\n if (cbIndex !== -1) {\n const toolName = args[0] as string;\n const originalCb = args[cbIndex];\n args[cbIndex] = this.wrapToolCallback(toolName, originalCb);\n }\n\n return super.tool.apply(this, args as any);\n }\n\n override registerTool<\n InputArgs extends ZodRawShape | z.ZodType<object>,\n OutputArgs extends ZodRawShape | z.ZodType<object>\n >(\n name: string,\n config: {\n title?: string;\n description?: string;\n inputSchema?: InputArgs;\n outputSchema?: OutputArgs;\n annotations?: ToolAnnotations;\n _meta?: Record<string, unknown>;\n },\n cb: WixToolCallback<InputArgs>\n ): RegisteredTool {\n const wrappedCb = this.wrapToolCallback(name, cb);\n return super.registerTool(\n name,\n config,\n wrappedCb as ToolCallback<InputArgs>\n );\n }\n\n private wrapToolCallback(\n toolName: string,\n originalCb: (...args: any[]) => CallToolResult | Promise<CallToolResult>\n ): ToolCallback {\n const isDevEnvironment = DEV_ENVIRONMENTS.includes(this.nodeEnv);\n\n return async (...cbArgs: any[]) => {\n setTags({\n panoramaSessionId: this.sessionId\n });\n\n const panorama = createPanoramaClient({\n environment: this.nodeEnv,\n sessionId: this.sessionId,\n componentId: toolName,\n uuid: this.getUserId?.(),\n serverInfo: this.serverInfo\n });\n\n const toolInvocationId = uuidv4();\n const httpClient = new HttpClient({\n headers: {\n 'x-wix-mcp': `execution-id=${toolInvocationId}`\n }\n });\n\n let toolBiParams: ToolBiParams = {};\n\n const argsBeforeExtra = cbArgs.slice(0, cbArgs.length - 1);\n const extra = cbArgs[cbArgs.length - 1] as WixRequestHandlerExtra;\n\n const wrappedExtra = {\n ...extra,\n panorama: panorama.createClientForComponent(),\n httpClient,\n biLogger: this.biLogger,\n logger,\n setToolBiParams: (params: ToolBiParams) => {\n toolBiParams = params;\n }\n };\n\n if (!isDevEnvironment) {\n const userId = this.getUserId?.();\n // Set _uuid early so BI events sent inside tool callbacks have _uuid\n this.biLogger.updateDefaults({\n _uuid: userId ?? ''\n });\n panorama.transaction(toolName).start({\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra)\n });\n }\n\n const startTime = performance.now();\n\n let toolSucceeded, errorBody;\n\n try {\n const cbResult = await originalCb(...argsBeforeExtra, wrappedExtra);\n toolSucceeded = !cbResult.isError;\n\n if (toolSucceeded && !isDevEnvironment) {\n panorama.transaction(toolName).finish({ toolInvocationId });\n }\n\n if (!toolSucceeded) {\n panorama\n .errorMonitor()\n .reportError(new Error(`Tool ${toolName} returned isError: true`), {\n context: {\n toolName,\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra),\n error: JSON.stringify(cbResult, null, 2)\n }\n });\n }\n\n return cbResult;\n } catch (e) {\n toolSucceeded = false;\n errorBody = (e as Error).message;\n if (!isDevEnvironment) {\n panorama.errorMonitor().reportError(e as Error, {\n context: {\n toolName,\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra),\n error: errorBody\n }\n });\n captureException(e, {\n tags: {\n componentId: toolName,\n toolName\n }\n });\n }\n\n // Include _meta from error if present (e.g., for OAuth re-auth triggers)\n const mcpMeta = (e as Error & { mcpMeta?: Record<string, unknown> })\n .mcpMeta;\n\n return {\n isError: true,\n content: [{ type: 'text', text: (e as Error).message }],\n ...(mcpMeta && { _meta: mcpMeta })\n };\n } finally {\n const endTime = performance.now();\n const duration = Math.round(endTime - startTime);\n const clientName = this.server.getClientVersion()?.name;\n\n if (!isDevEnvironment) {\n this.biLogger.updateDefaults({\n _msid: this.context?.siteId ?? toolBiParams.siteId ?? '',\n _visitorId: toolBiParams.visitorId ?? '',\n _request_id: toolBiParams.requestId ?? ''\n });\n\n this.biLogger.report(\n wixMcpRequestSrc39Evid1607({\n clientName: this.getClientName?.() || clientName,\n duration,\n errorBody,\n toolInvocationId,\n toolName,\n params: JSON.stringify(argsBeforeExtra),\n origin: this.nodeEnv,\n sessionId: this.sessionId,\n executionResult: toolSucceeded ? 'Success' : 'Error',\n requestId: toolBiParams.requestId,\n jobId: toolBiParams.jobId\n })\n );\n }\n }\n };\n }\n}\n", "import { LogObject, apiBlockGaRuleParams, apiExampleGenerationCompletedByAiToolParams, apiKeysClickOnActionFromThe3DotsParams, apiKeysClickOnCopyAccountIdParams, apiKeysClickOnGenerateKeyEmptyStateParams, apiKeysClickOnGenerateKeyTopButtonParams, apiKeysClickOnOauthPageLinkParams, apiKeysClickOnSendCodeAgainParams, apiKeysClickOnSendCodeParams, apiKeysClickOnViewApiReferencesParams, apiKeysFinishDeleteKeyParams, apiKeysFinishDuplicateKeyParams, apiKeysFinishEditKeyParams, apiKeysFinishGenerateKeyParams, apiKeysFinishRotateKeyParams, apiKeysStartDeleteKeyParams, apiKeysStartDuplicateKeyParams, apiKeysStartEditKeyParams, apiKeysStartGenerateKeyParams, apiKeysStartRotateKeyParams, appsSettingsDeletionCandidateParams, astraCmdEnteredSrc11Evid4001Params, autoVeloSiteCallForAMethodParams, copyOfHeadlessResumeSetUpDialogClickParams, devCenterWebhookSentTriggeredParams, docsAiAssistantAnswerSrc112Evid14Params, docsAiAssistantClickSrc112Evid13Params, docsAiAssistantCostSrc112Evid1436Params, docsAiAssistantOpenCloseSrc112Evid1435Params, docsRedirectFailureParams, docsSsrRequestSrc112Evid140Params, gitToResourceUpdateSrc112Evid30Params, graphqlCallParams, headlessAddWixToYourProjectDialogClickParams, headlessAddWixToYourProjectDialogIsShownParams, headlessDeployThisTemplatePageClickParams, headlessDeployThisTemplatePageIsShownParams, headlessMigrationTourModalShownParams, headlessOAuthInstalledParams, headlessPlaygroundModalFinishedLoadingParams, headlessQuickStartModalShownParams, headlessResumeSetUpDialogIsShownParams, n8NTriggerActionSrc154Evid810Params, oauthAppClickAtTheCreateEditOauthAppPageParams, oauthAppClickAtTheDeleteOauthAppDialogParams, oauthAppClickAtTheGenerateClientSecretDialogParams, oauthAppClickAtTheOauthAppMainPageParams, oauthAppClickNextCloseAtTheCreateOauthAppDialogParams, oauthAppClickOnCloseFromCreateEditOauthAppPageParams, oauthAppClickOnOauthAppActionParams, oauthAppClickOnSaveFromCreateEditOauthAppPageParams, oauthAppOauthAppActionWasMadeParams, oauthAppOauthAppActionWasMadeServerParams, publicSdkCallParams, relativeLinksFailureParams, settingsAccessParams, spiExternalInvocationSrc96Evid199Params, testSrc184Evid9999Params, testTokenTokenGeneratedServerlessParams, triggerValueWasSelectedParams, webhooksDispatcherResponseChannelTopicSrc155Evid3Params, webhooksInDcCodeExampleWindowClicksParams, webhooksInDcCodeExampleWindowScrollParams, webhooksInDcCreateEventPageClicksParams, webhooksInDcMainPageClicksParams, webhooksInDcTriggeredTestModalClicksParams, wixDocs404PageLoadedParams, wixDocsChangelogFilterUsageParams, wixDocsChangelogItemSeenParams, wixDocsChooseASearchResultParams, wixDocsClickInPageParams, wixDocsClickOnGiveFeedbackParams, wixDocsClickOnItemParams, wixDocsClickOnLinksParams, wixDocsClickOnSidebarItemParams, wixDocsClickedOnNavbarParams, wixDocsCloseSearchDialogParams, wixDocsContactOwnerLinkClickedParams, wixDocsCopyCodeParams, wixDocsDocsWasPublishedParams, wixDocsFeedbackSubmittedServerParams, wixDocsFinishLoadingPageParams, wixDocsGiveFeedbackClickParams, wixDocsHoverOnContentTermsParams, wixDocsHoverOverASearchResultItemParams, wixDocsHoverParams, wixDocsMainPageClickParams, wixDocsMainPageScrollParams, wixDocsMenuEditorContentFilterChangeParams, wixDocsMenuEditorEditModeStatusChangeParams, wixDocsMenuEditorInstructionsClicksParams, wixDocsMenuEditorReviewSaveModalClicksParams, wixDocsMenuEditorSideBarActionClickParams, wixDocsMenuEditorSideBarActionFinishedParams, wixDocsMenuEditorSideBarActionMoveToReviewParams, wixDocsMenuEditorSideBarPositionChangedParams, wixDocsMenuEditorVersionsSideBarClicksParams, wixDocsMenuEditorVersionsSideBarLoadedParams, wixDocsModalClickParams, wixDocsModalWasCloseParams, wixDocsModalWasOpenParams, wixDocsNavbarLoadedParams, wixDocsNavigationClickParams, wixDocsObjectShowMembersClickParams, wixDocsOpenCloseExamplesParams, wixDocsPlaygroundLinksDropdownClickParams, wixDocsRedirectByExternalIdSrc112Evid1601Params, wixDocsRelatedSiteClickParams, wixDocsScrollingInSearchResultViewParams, wixDocsSearchOpenedParams, wixDocsSearchResultsParams, wixDocsSendRequestClientParams, wixDocsSendRequestServerParams, wixDocsShareableLinkClickParams, wixDocsSidebarStateParams, wixDocsSiteVisitParams, wixDocsStartLoadingPageParams, wixDocsSubmitFeedbackParams, wixDocsToggleClickParams, wixDocsTryItOutClickParams, wixDocsTypeASearchTermParams, wixDocsViewLiveSiteClickParams, wixDocsViewSourceClickParams, wixDocsVisitLocalViewerParams, wixMcpRequestSrc39Evid1607Params, zapierCustomZapCreatedOrDeletedParams, zapierTestDataClickParams } from '../types';\n\n/**\n * A function to create a log object for the 'wixDocs404PageLoaded' event (evid: 10)\n *\n * Event description: 404 page was loaded\n *\n * @param {wixDocs404PageLoadedParams} params - The parameters for this event\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} portal - The current portal\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session - external nav / internal\n * @property {string} page_url - The url of the current page\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {boolean} is_deprecation_error - 404 due to deprecated content without deprecation mode on \n * @return {LogObject<wixDocs404PageLoadedParams>} LogObject<wixDocs404PageLoadedParams>\n */\nexport function wixDocs404PageLoaded(params: wixDocs404PageLoadedParams): LogObject<wixDocs404PageLoadedParams> {\n return { evid: 10, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSendRequestClient' event (evid: 11)\n *\n * Event description: Wix Docs - Send Request (Client)\n *\n * @param {wixDocsSendRequestClientParams} params - The parameters for this event\n * @property {string} body - body type\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {Url} invoked_url - invoked_url\n * @property {string} http_method - http method type - GET/POST/DELETE/PATCH etc)\n * @property {string} article_name - article name\n * @property {boolean} is_test_token_used - is_test_token_used\n * @return {LogObject<wixDocsSendRequestClientParams>} LogObject<wixDocsSendRequestClientParams>\n */\nexport function wixDocsSendRequestClient(params: wixDocsSendRequestClientParams): LogObject<wixDocsSendRequestClientParams> {\n return { evid: 11, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSendRequestServer' event (evid: 111)\n *\n * Event description: Wix Docs - Send Request (server)\n *\n * @param {wixDocsSendRequestServerParams} params - The parameters for this event\n * @property {Url} invoked_url - invoked_url\n * @property {string} http_method - http_method\n * @property {string} response - response\n * @property {boolean} is_success - is_success\n * @return {LogObject<wixDocsSendRequestServerParams>} LogObject<wixDocsSendRequestServerParams>\n */\nexport function wixDocsSendRequestServer(params: wixDocsSendRequestServerParams): LogObject<wixDocsSendRequestServerParams> {\n return { evid: 111, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsFeedbackSubmittedServer' event (evid: 112)\n *\n * Event description: Wix Docs - Feedback Submitted (Server)\n *\n * @param {wixDocsFeedbackSubmittedServerParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {Url} article_url - article url\n * @property {string} article_name - article name\n * @property {GUID} app_id - app_id\n * @property {GUID} msid - msid\n * @property {boolean} email_filled - was email filled in by user\n * @return {LogObject<wixDocsFeedbackSubmittedServerParams>} LogObject<wixDocsFeedbackSubmittedServerParams>\n */\nexport function wixDocsFeedbackSubmittedServer(params: wixDocsFeedbackSubmittedServerParams): LogObject<wixDocsFeedbackSubmittedServerParams> {\n return { evid: 112, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsPlaygroundLinksDropdownClick' event (evid: 12)\n *\n * Event description: Click on Playground Links Dropdown\n *\n * @param {wixDocsPlaygroundLinksDropdownClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {boolean} is_main_url_broken - is main url broken\n * @property {string} urls_count - urls count\n * @property {string} selected_url - selected url\n * @return {LogObject<wixDocsPlaygroundLinksDropdownClickParams>} LogObject<wixDocsPlaygroundLinksDropdownClickParams>\n */\nexport function wixDocsPlaygroundLinksDropdownClick(params: wixDocsPlaygroundLinksDropdownClickParams): LogObject<wixDocsPlaygroundLinksDropdownClickParams> {\n return { evid: 12, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'testTokenTokenGeneratedServerless' event (evid: 1200)\n *\n * Event description: token generated to user's site\n *\n * @param {testTokenTokenGeneratedServerlessParams} params - The parameters for this event\n * @property {string} token - token\n * @property {GUID} selectedMsid - selected_msid\n * @return {LogObject<testTokenTokenGeneratedServerlessParams>} LogObject<testTokenTokenGeneratedServerlessParams>\n */\nexport function testTokenTokenGeneratedServerless(params: testTokenTokenGeneratedServerlessParams): LogObject<testTokenTokenGeneratedServerlessParams> {\n return { evid: 1200, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantClickSrc112Evid13' event (evid: 13)\n *\n * Event description: The event is sent when the Docs AI Assistant was clicked on any button related\n *\n * @param {docsAiAssistantClickSrc112Evid13Params} params - The parameters for this event\n * @property {string} cta - startover, click on the typing box, send-message, copy, feedback-open, feedback-close, feedback-submit, new-conversation, link (copy-code example, link from code not implemented for now)\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} ai_session_id - ai session id\n * @property {string} extra_values - for example - {feedback answer: yes, feedback content: XXX}\n * @return {LogObject<docsAiAssistantClickSrc112Evid13Params>} LogObject<docsAiAssistantClickSrc112Evid13Params>\n */\nexport function docsAiAssistantClickSrc112Evid13(params: docsAiAssistantClickSrc112Evid13Params): LogObject<docsAiAssistantClickSrc112Evid13Params> {\n return { evid: 13, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsViewLiveSiteClick' event (evid: 1300)\n *\n * Event description: User clicks on 'View Live Site'\n *\n * @param {wixDocsViewLiveSiteClickParams} params - The parameters for this event\n * @property {string} page - page\n * @return {LogObject<wixDocsViewLiveSiteClickParams>} LogObject<wixDocsViewLiveSiteClickParams>\n */\nexport function wixDocsViewLiveSiteClick(params: wixDocsViewLiveSiteClickParams): LogObject<wixDocsViewLiveSiteClickParams> {\n return { evid: 1300, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChangelogFilterUsage' event (evid: 1301)\n *\n * Event description: Wix Docs Changelog filter usage\n *\n * @param {wixDocsChangelogFilterUsageParams} params - The parameters for this event\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {string} status_filter - filter the type of the item New/Updated/\n * Deprecated\n * @property {string} feature_type_filter - filter like portal.. Go Headless/Build apps/ Rest & SDK etc.\n * @property {string} product_filter - filter on the level of business solution/edm/vertical\n * @property {string} user_click - the click that triggered the event - the filter name / reset filter button\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsChangelogFilterUsageParams>} LogObject<wixDocsChangelogFilterUsageParams>\n */\nexport function wixDocsChangelogFilterUsage(params: wixDocsChangelogFilterUsageParams): LogObject<wixDocsChangelogFilterUsageParams> {\n return { evid: 1301, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnItem' event (evid: 1302)\n *\n * Event description: Wix Docs - Click on item\n *\n * @param {wixDocsClickOnItemParams} params - The parameters for this event\n * @property {string} item_id - The ID of the Changelog item. Use the Changelog Items table to get the item's characteristics and dimensions\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {string} clicked_url - the URL that the user clicked on inside of the item\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickOnItemParams>} LogObject<wixDocsClickOnItemParams>\n */\nexport function wixDocsClickOnItem(params: wixDocsClickOnItemParams): LogObject<wixDocsClickOnItemParams> {\n return { evid: 1302, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChangelogItemSeen' event (evid: 1303)\n *\n * Event description: Includes json of item id's, that loaded on the user's screen.\n * the event is sent every time a new item entered the user screen, after at least 2 seconds of being static (stopped scrolling).\n *\n * @param {wixDocsChangelogItemSeenParams} params - The parameters for this event\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {string} Item_ids - json of item id's that seen by the user (appeared on his screen) after 2 sec of being static (stopped scrolling)\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsChangelogItemSeenParams>} LogObject<wixDocsChangelogItemSeenParams>\n */\nexport function wixDocsChangelogItemSeen(params: wixDocsChangelogItemSeenParams): LogObject<wixDocsChangelogItemSeenParams> {\n return { evid: 1303, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantAnswerSrc112Evid14' event (evid: 14)\n *\n * Event description: The event is sent when the Docs AI Assistant is answering the user\n *\n * @param {docsAiAssistantAnswerSrc112Evid14Params} params - The parameters for this event\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {number} response_time - The time it took to the AI to give answer in ms\n * @property {boolean} success - true if the AI gave any answer, if it failed - false\n * @property {string} answer - The AI answer\n * @property {string} question - The user question\n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} ai_session_id - ai session id\n * @return {LogObject<docsAiAssistantAnswerSrc112Evid14Params>} LogObject<docsAiAssistantAnswerSrc112Evid14Params>\n */\nexport function docsAiAssistantAnswerSrc112Evid14(params: docsAiAssistantAnswerSrc112Evid14Params): LogObject<docsAiAssistantAnswerSrc112Evid14Params> {\n return { evid: 14, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsSsrRequestSrc112Evid140' event (evid: 140)\n *\n * Event description: A server-side request to read from wix-docs\n *\n * @param {docsSsrRequestSrc112Evid140Params} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} nav_type - search result click, side bar click, tab click, internal link navigation ,scroll\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {boolean} is_bot - is the traffic origin identified as AI/Smart agent\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {boolean} page_exists - True if the page exists - false if the user landed on resource that is not exists\n * @property {string} deprecation_status - deprecation status of the item/page\n * @return {LogObject<docsSsrRequestSrc112Evid140Params>} LogObject<docsSsrRequestSrc112Evid140Params>\n */\nexport function docsSsrRequestSrc112Evid140(params: docsSsrRequestSrc112Evid140Params): LogObject<docsSsrRequestSrc112Evid140Params> {\n return { evid: 140, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsStartLoadingPage' event (evid: 1400)\n *\n * Event description: Wix Docs page view\n *\n * @param {wixDocsStartLoadingPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} nav_type - search result click, side bar click, tab click, internal link navigation ,scroll\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {boolean} is_triggered_by_toggle - it this page load triggered by the REST/SDK toggle, instead of a regular page reload\n * @property {boolean} page_exists - True if the page exists - false if the user landed on resource that is not exists\n * @property {string} deprecation_status - deprecation status of the item/page\n * @return {LogObject<wixDocsStartLoadingPageParams>} LogObject<wixDocsStartLoadingPageParams>\n */\nexport function wixDocsStartLoadingPage(params: wixDocsStartLoadingPageParams): LogObject<wixDocsStartLoadingPageParams> {\n return { evid: 1400, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsFinishLoadingPage' event (evid: 1401)\n *\n * Event description: Loading time of the first page finished load in Wix Docs.\n *\n * @param {wixDocsFinishLoadingPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} page_url - The url of the current page\n * @property {number} loading_time - Loading time of page (from evid 112:1400 start loading page)\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {boolean} is_triggered_by_toggle - it this page load triggered by the REST/SDK toggle, instead of a regular page reload\n * @property {number} TTFB - the TTFB measure of web vitals\n * @property {number} FCP - the FCP measure of web vitals\n * @return {LogObject<wixDocsFinishLoadingPageParams>} LogObject<wixDocsFinishLoadingPageParams>\n */\nexport function wixDocsFinishLoadingPage(params: wixDocsFinishLoadingPageParams): LogObject<wixDocsFinishLoadingPageParams> {\n return { evid: 1401, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSearchOpened' event (evid: 1403)\n *\n * Event description: Sends when the search dialog is open, and the user still didnt type a search term\n *\n * @param {wixDocsSearchOpenedParams} params - The parameters for this event\n * @property {boolean} no_connection - True if the search dialog is with a message of no connection\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} recently_viewed - A list of all recently viewed articles that appear in the search dialog, by it`s order\n * @property {string} portal - The current portal\n * @property {string} recent_searches - A list of all recent searches that appear in the search dialog, by it`s order\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the dialog was open currectly\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action that the user did to open the search dialog - press the search button \\ press \"/\" at the keyword\n * @return {LogObject<wixDocsSearchOpenedParams>} LogObject<wixDocsSearchOpenedParams>\n */\nexport function wixDocsSearchOpened(params: wixDocsSearchOpenedParams): LogObject<wixDocsSearchOpenedParams> {\n return { evid: 1403, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsTypeASearchTerm' event (evid: 1404)\n *\n * Event description: When a user is searching in search dialog send event at the end of the results\n *\n * @param {wixDocsTypeASearchTermParams} params - The parameters for this event\n * @property {boolean} no_connection - True if the search dialog is with a message of no connection\n * @property {number} recent_searches_index - The index of the recent\\suggested search that was choosen, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} type_action - The way the user typed the search term - typing \\ choosing a recent search \\ choosing suggested searches\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} num_of_results - The number of total results who return on time\n * @property {string} search_term - The users's search term in the dialog\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {number} total_loading_time - The total time in ms for all results to return\n * @property {string} seen_results - Send only results who were seen in search -> category: article: type: time to load\n * @property {string} page_url - The url of the current page\n * @property {boolean} is_empty - True if the search results is empty from results after finish typing (there was no result found)\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} filters - The search box filters - Json\n * @return {LogObject<wixDocsTypeASearchTermParams>} LogObject<wixDocsTypeASearchTermParams>\n */\nexport function wixDocsTypeASearchTerm(params: wixDocsTypeASearchTermParams): LogObject<wixDocsTypeASearchTermParams> {\n return { evid: 1404, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsScrollingInSearchResultView' event (evid: 1405)\n *\n * Event description: Sends an event when a user scrolls in the search's result\n *\n * @param {wixDocsScrollingInSearchResultViewParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {boolean} is_recently_viewed - True if the search term is empty and the user is hovering over the recently viewed items \\ 'what other are searching'\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} num_of_results - The number of total results who return on time\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {boolean} first_search_ever - True if it is the first search of the user ever, and the search dialog contains 'what other are searching' articles\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load)\n * [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsScrollingInSearchResultViewParams>} LogObject<wixDocsScrollingInSearchResultViewParams>\n */\nexport function wixDocsScrollingInSearchResultView(params: wixDocsScrollingInSearchResultViewParams): LogObject<wixDocsScrollingInSearchResultViewParams> {\n return { evid: 1405, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHoverOverASearchResultItem' event (evid: 1406)\n *\n * Event description: When a user is focused on a result\n *\n * @param {wixDocsHoverOverASearchResultItemParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} result_article - The name of the result\n * @property {boolean} is_recently_viewed - True if the search term is empty and the user is hovering over the recently viewed items \\ 'what other are searching'\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {boolean} first_search_ever - True if it is the first search of the user ever, and the search dialog contains 'what other are searching' articles\n * @property {string} result_category - The category of the result\n * @property {boolean} is_first_hover - True if it is the first item that was hovered\n * @property {string} article_id - The ID of the current article\n * @property {string} result_article_id - The ID of the result article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {number} item_index - item's index in all results\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsHoverOverASearchResultItemParams>} LogObject<wixDocsHoverOverASearchResultItemParams>\n */\nexport function wixDocsHoverOverASearchResultItem(params: wixDocsHoverOverASearchResultItemParams): LogObject<wixDocsHoverOverASearchResultItemParams> {\n return { evid: 1406, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChooseASearchResult' event (evid: 1407)\n *\n * Event description: Sends an event when a user chose a search result\n *\n * @param {wixDocsChooseASearchResultParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} chosen_article_type - the chosen article type - get \\ webhook \\ post \\ ..\n * @property {string} session_id - The current user`s session in the product\n * @property {string} chosen_category - The category of the chosen result\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} chosen_article - The name of the chosen result\n * @property {string} choose_type - The way the user chose the result - from an active search \\ from the recently viewed options \\ from the 'what other are searching' options\n * @property {string} chosen_article_id - The ID of the chosen result article\n * @property {string} object - The object of the article, can be empty\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} chosen_article_url - The url of the chosen result article\n * @property {string} page_url - The url of the current page\n * @property {number} item_index - item's index in all results of the chosen result\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - Deprecation mode is ON\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} chosen_portal - The portal of the chosen article\n * @property {string} result_deprecation_status - clicked on deprecated/ about to be deprecated result\n * @return {LogObject<wixDocsChooseASearchResultParams>} LogObject<wixDocsChooseASearchResultParams>\n */\nexport function wixDocsChooseASearchResult(params: wixDocsChooseASearchResultParams): LogObject<wixDocsChooseASearchResultParams> {\n return { evid: 1407, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsCloseSearchDialog' event (evid: 1408)\n *\n * Event description: Sends an event when a user close the search dialog\n *\n * @param {wixDocsCloseSearchDialogParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} is_search_term_empty - True if the user closed the search dialog while the search box was empty from any term\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {number} time_in_dialog - Show in ms the time spent in the dialog, from finish typing\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user`s click for closing the dialog - click on a result/ click somewhere else/ click on x to clear search \\ press esc\n * @property {boolean} is_empty - True if the search results is empty from results after finish typing (there was no result found)\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsCloseSearchDialogParams>} LogObject<wixDocsCloseSearchDialogParams>\n */\nexport function wixDocsCloseSearchDialog(params: wixDocsCloseSearchDialogParams): LogObject<wixDocsCloseSearchDialogParams> {\n return { evid: 1408, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSidebarState' event (evid: 1409)\n *\n * Event description: On each page, the event is sent when the side bar is loaded and it also sends the current state of the sidebar - Internal \\ Velo \\ REST\n *\n * @param {wixDocsSidebarStateParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_items_list - List of category items in the main sidebar menu\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} current_sidebar_state - The current state of sidebar - Internal \\ Velo \\ REST\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsSidebarStateParams>} LogObject<wixDocsSidebarStateParams>\n */\nexport function wixDocsSidebarState(params: wixDocsSidebarStateParams): LogObject<wixDocsSidebarStateParams> {\n return { evid: 1409, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnSidebarItem' event (evid: 1410)\n *\n * Event description: When a user click on sidebar item (to expand drop down \\ open an article \\ move to other function\n *\n * @param {wixDocsClickOnSidebarItemParams} params - The parameters for this event\n * @property {string} clicked_sidebar_name - The sidebar item the user clicked on (category\\article\\function)\n * @property {string} clicked_sidebar_article - The sidebar item article the user clicked on, can be empty\n * @property {string} method - The method of the article, can be empty\n * @property {string} current_sidebar_name - The current item name appears in the sidebar - can be changed\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} clicked_sidebar_url - The url of the page that the user clicked on\n * @property {string} category_items_list - List of category items in the main sidebar menu\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} current_sidebar_state - The current state of sidebar - Internal \\ Velo \\ REST\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} clicked_sidebar_category - The sidebar item category the user clicked on, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action the user did - expand drop down \\ open an article \\ clicked on category \\ move to other function \\ back to last sidebar state\n * @return {LogObject<wixDocsClickOnSidebarItemParams>} LogObject<wixDocsClickOnSidebarItemParams>\n */\nexport function wixDocsClickOnSidebarItem(params: wixDocsClickOnSidebarItemParams): LogObject<wixDocsClickOnSidebarItemParams> {\n return { evid: 1410, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsNavbarLoaded' event (evid: 1411)\n *\n * Event description: The event is sent when the navbar is finish loading\n *\n * @param {wixDocsNavbarLoadedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} current_navbar_state - The current state of sidebar - Velo \\ REST \\ APIs & SDKs \\ Wix Docs\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsNavbarLoadedParams>} LogObject<wixDocsNavbarLoadedParams>\n */\nexport function wixDocsNavbarLoaded(params: wixDocsNavbarLoadedParams): LogObject<wixDocsNavbarLoadedParams> {\n return { evid: 1411, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickedOnNavbar' event (evid: 1412)\n *\n * Event description: The event is sent when the user make any action on the navbar\n *\n * @param {wixDocsClickedOnNavbarParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} navigate_to - The url that the click navigate to\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} current_navbar_state - The current state of sidebar - Velo \\ REST \\ APIs & SDKs \\ Wix Docs\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action that the user clicked on - APIs & SDKs dropdown \\ Wix Docs \\ Build a Website\\ Build an App \\ Velo APIs \\ REST APIs \\ Client SDK \\ sign in \\ user dropdown \\ light brightness \\ dark brightness / log out / undo / review & save\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickedOnNavbarParams>} LogObject<wixDocsClickedOnNavbarParams>\n */\nexport function wixDocsClickedOnNavbar(params: wixDocsClickedOnNavbarParams): LogObject<wixDocsClickedOnNavbarParams> {\n return { evid: 1412, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnGiveFeedback' event (evid: 1413)\n *\n * Event description: Sends an event when a user click on a feedback button (yes \\ not)\n *\n * @param {wixDocsClickOnGiveFeedbackParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} session_id - session_id\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user feedback - yes \\ not\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickOnGiveFeedbackParams>} LogObject<wixDocsClickOnGiveFeedbackParams>\n */\nexport function wixDocsClickOnGiveFeedback(params: wixDocsClickOnGiveFeedbackParams): LogObject<wixDocsClickOnGiveFeedbackParams> {\n return { evid: 1413, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSubmitFeedback' event (evid: 1414)\n *\n * Event description: Sends an event when a user click on submit feedback\n *\n * @param {wixDocsSubmitFeedbackParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} email - The email that was filled in the feedback\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} content - The content of the feedback that the user wrote\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user feedback - yes \\ not\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} feedback_tag - The tag that the user choose\n * @property {boolean} is_logged_in - True if the user was logged in to wix\n * @return {LogObject<wixDocsSubmitFeedbackParams>} LogObject<wixDocsSubmitFeedbackParams>\n */\nexport function wixDocsSubmitFeedback(params: wixDocsSubmitFeedbackParams): LogObject<wixDocsSubmitFeedbackParams> {\n return { evid: 1414, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickInPage' event (evid: 1415)\n *\n * Event description: Sends an event when a user click on any Button: copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC\n *\n * @param {wixDocsClickInPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} function_name - The name of the function that relate to the click, can be empty\n * @property {string} click_name - The name of the link, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} attribute_name - The name of the attribute that relate to the click, can be empty\n * @property {string} click_url - The url of the link, can be empty\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} code_type - The code type that was copied - javascript \\ js..., can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - Click on > in tables \\ links \\ copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC \\ show members \\ hide members \\ tabs in tables \\ click on path navigation header\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickInPageParams>} LogObject<wixDocsClickInPageParams>\n */\nexport function wixDocsClickInPage(params: wixDocsClickInPageParams): LogObject<wixDocsClickInPageParams> {\n return { evid: 1415, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionClick' event (evid: 1416)\n *\n * Event description: The event is sent when a Side bar action click\n *\n * @param {wixDocsMenuEditorSideBarActionClickParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources\n * @return {LogObject<wixDocsMenuEditorSideBarActionClickParams>} LogObject<wixDocsMenuEditorSideBarActionClickParams>\n */\nexport function wixDocsMenuEditorSideBarActionClick(params: wixDocsMenuEditorSideBarActionClickParams): LogObject<wixDocsMenuEditorSideBarActionClickParams> {\n return { evid: 1416, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionFinished' event (evid: 1417)\n *\n * Event description: The event is sent when a Side bar action finished - approved in the review & save modal\n *\n * @param {wixDocsMenuEditorSideBarActionFinishedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - remove / publish\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} md - The md that was connected, will be null unless the action is connect\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources / item position changed\n * @return {LogObject<wixDocsMenuEditorSideBarActionFinishedParams>} LogObject<wixDocsMenuEditorSideBarActionFinishedParams>\n */\nexport function wixDocsMenuEditorSideBarActionFinished(params: wixDocsMenuEditorSideBarActionFinishedParams): LogObject<wixDocsMenuEditorSideBarActionFinishedParams> {\n return { evid: 1417, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarPositionChanged' event (evid: 1418)\n *\n * Event description: The event is sent when a Side bar position changed\n *\n * @param {wixDocsMenuEditorSideBarPositionChangedParams} params - The parameters for this event\n * @property {string} item_location_before - Running number of the item location, before it was moved\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the clicked item, after it was moved\n * @property {string} item_location_after - Running number of the item location, after it was moved\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name, after it was moved\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article, after it was moved\n * @property {string} article_name - The name of the current article that was clicked, after it was moved\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorSideBarPositionChangedParams>} LogObject<wixDocsMenuEditorSideBarPositionChangedParams>\n */\nexport function wixDocsMenuEditorSideBarPositionChanged(params: wixDocsMenuEditorSideBarPositionChangedParams): LogObject<wixDocsMenuEditorSideBarPositionChangedParams> {\n return { evid: 1418, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsDocsWasPublished' event (evid: 1419)\n *\n * Event description: The event is sent when a tech writer is publishing the docs\n *\n * @param {wixDocsDocsWasPublishedParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} portal - The published area - velo \\ rest \\ internal\n * @property {string} doc_url - The url of the published doc\n * @property {boolean} was_success - True if the docs were published successfully\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} publishedResourceId - The resource id that was published\n * @property {string} fqdn - The fqdn\n * @property {string} namespace - resource name\n * @property {string} publishedRevisionId - The published revision id\n * @return {LogObject<wixDocsDocsWasPublishedParams>} LogObject<wixDocsDocsWasPublishedParams>\n */\nexport function wixDocsDocsWasPublished(params: wixDocsDocsWasPublishedParams): LogObject<wixDocsDocsWasPublishedParams> {\n return { evid: 1419, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMainPageClick' event (evid: 1420)\n *\n * Event description: The event is sent when the user clicks on any link at the main page of the wix docs\n *\n * @param {wixDocsMainPageClickParams} params - The parameters for this event\n * @property {string} click_name - The name of the link\n * @property {string} portal - portal\n * @property {string} click_url - The url of the clicked link\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsMainPageClickParams>} LogObject<wixDocsMainPageClickParams>\n */\nexport function wixDocsMainPageClick(params: wixDocsMainPageClickParams): LogObject<wixDocsMainPageClickParams> {\n return { evid: 1420, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMainPageScroll' event (evid: 1421)\n *\n * Event description: The event is sent when the user scrolls the main page of the wix docs\n *\n * @param {wixDocsMainPageScrollParams} params - The parameters for this event\n * @property {string} page_part - what is the part in the page that was exposed\n * @property {string} portal - portal\n * @return {LogObject<wixDocsMainPageScrollParams>} LogObject<wixDocsMainPageScrollParams>\n */\nexport function wixDocsMainPageScroll(params: wixDocsMainPageScrollParams): LogObject<wixDocsMainPageScrollParams> {\n return { evid: 1421, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalWasOpen' event (evid: 1422)\n *\n * Event description: The event is sent when a docs modal was open\n *\n * @param {wixDocsModalWasOpenParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsModalWasOpenParams>} LogObject<wixDocsModalWasOpenParams>\n */\nexport function wixDocsModalWasOpen(params: wixDocsModalWasOpenParams): LogObject<wixDocsModalWasOpenParams> {\n return { evid: 1422, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalWasClose' event (evid: 1423)\n *\n * Event description: The event is sent when a docs modal was close\n *\n * @param {wixDocsModalWasCloseParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - X / click outside the modal\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsModalWasCloseParams>} LogObject<wixDocsModalWasCloseParams>\n */\nexport function wixDocsModalWasClose(params: wixDocsModalWasCloseParams): LogObject<wixDocsModalWasCloseParams> {\n return { evid: 1423, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalClick' event (evid: 1424)\n *\n * Event description: The event is sent when the user clicks on any cta at a docs modal\n *\n * @param {wixDocsModalClickParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} token_type - Empty / Test Token / Access Token\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - Select Base Url click / Select Base Url change / \n * Choose a site / Access Token / Generated Test Token type / Access Token type / setting up OAuth link / send request / shareable link\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action successed, relevant only for send request, generate token and generate new token clicks, can be null\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsModalClickParams>} LogObject<wixDocsModalClickParams>\n */\nexport function wixDocsModalClick(params: wixDocsModalClickParams): LogObject<wixDocsModalClickParams> {\n return { evid: 1424, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorEditModeStatusChange' event (evid: 1425)\n *\n * Event description: The event is sent when a Edit mode status change\n *\n * @param {wixDocsMenuEditorEditModeStatusChangeParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} portal - The current portal\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorEditModeStatusChangeParams>} LogObject<wixDocsMenuEditorEditModeStatusChangeParams>\n */\nexport function wixDocsMenuEditorEditModeStatusChange(params: wixDocsMenuEditorEditModeStatusChangeParams): LogObject<wixDocsMenuEditorEditModeStatusChangeParams> {\n return { evid: 1425, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionMoveToReview' event (evid: 1426)\n *\n * Event description: The event is sent when a Side bar action moved to review\n *\n * @param {wixDocsMenuEditorSideBarActionMoveToReviewParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} md - The md that was connected, will be null unless the action is connect\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources / item position changed\n * @return {LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams>} LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams>\n */\nexport function wixDocsMenuEditorSideBarActionMoveToReview(params: wixDocsMenuEditorSideBarActionMoveToReviewParams): LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams> {\n return { evid: 1426, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorVersionsSideBarLoaded' event (evid: 1427)\n *\n * Event description: The event is sent when the versions side bar finish loaded\n *\n * @param {wixDocsMenuEditorVersionsSideBarLoadedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - the cta that opened the sidebar (manage version click / right icon to open)\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams>} LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams>\n */\nexport function wixDocsMenuEditorVersionsSideBarLoaded(params: wixDocsMenuEditorVersionsSideBarLoadedParams): LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams> {\n return { evid: 1427, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorVersionsSideBarClicks' event (evid: 1428)\n *\n * Event description: The event is sent when the user click on the versions side bar\n *\n * @param {wixDocsMenuEditorVersionsSideBarClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - X / add to publish list / remove from publish list / version\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @property {string} new_version - The clicked version / the version that was chosen to add to publish list / null\n * @return {LogObject<wixDocsMenuEditorVersionsSideBarClicksParams>} LogObject<wixDocsMenuEditorVersionsSideBarClicksParams>\n */\nexport function wixDocsMenuEditorVersionsSideBarClicks(params: wixDocsMenuEditorVersionsSideBarClicksParams): LogObject<wixDocsMenuEditorVersionsSideBarClicksParams> {\n return { evid: 1428, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorContentFilterChange' event (evid: 1429)\n *\n * Event description: The event is sent when the user change any content filter\n *\n * @param {wixDocsMenuEditorContentFilterChangeParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {string} cta - beta / ga / internal\n * @property {string} page_url - The url of the current page\n * @property {string} action - show / hide\n * @return {LogObject<wixDocsMenuEditorContentFilterChangeParams>} LogObject<wixDocsMenuEditorContentFilterChangeParams>\n */\nexport function wixDocsMenuEditorContentFilterChange(params: wixDocsMenuEditorContentFilterChangeParams): LogObject<wixDocsMenuEditorContentFilterChangeParams> {\n return { evid: 1429, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorInstructionsClicks' event (evid: 1430)\n *\n * Event description: The event is sent when the user clicks next at any instruction message\n *\n * @param {wixDocsMenuEditorInstructionsClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {number} instruction_num - num of instruction\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorInstructionsClicksParams>} LogObject<wixDocsMenuEditorInstructionsClicksParams>\n */\nexport function wixDocsMenuEditorInstructionsClicks(params: wixDocsMenuEditorInstructionsClicksParams): LogObject<wixDocsMenuEditorInstructionsClicksParams> {\n return { evid: 1430, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorReviewSaveModalClicks' event (evid: 1431)\n *\n * Event description: The event is sent when the user clicks on any button at the review & save modal\n *\n * @param {wixDocsMenuEditorReviewSaveModalClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} change_ids - a list of all cange_ids that the action was made on\n * @property {string} portal - The current portal\n * @property {string} cta - X / preview all / preview specific change / copy link / cancel / save / remove\n * @property {boolean} was_success - True if the action successed\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorReviewSaveModalClicksParams>} LogObject<wixDocsMenuEditorReviewSaveModalClicksParams>\n */\nexport function wixDocsMenuEditorReviewSaveModalClicks(params: wixDocsMenuEditorReviewSaveModalClicksParams): LogObject<wixDocsMenuEditorReviewSaveModalClicksParams> {\n return { evid: 1431, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'relativeLinksFailure' event (evid: 1432)\n *\n * Event description: The event is sent when a relative link was broken\n *\n * @param {relativeLinksFailureParams} params - The parameters for this event\n * @property {string} pageUrl - The url of the current page\n * @property {string} sourceUrl - relative link\n * @property {string} destinationUrl - rendered link\n * @return {LogObject<relativeLinksFailureParams>} LogObject<relativeLinksFailureParams>\n */\nexport function relativeLinksFailure(params: relativeLinksFailureParams): LogObject<relativeLinksFailureParams> {\n return { evid: 1432, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnLinks' event (evid: 1433)\n *\n * Event description: Sends an event when a user click on any Link: in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC\n *\n * @param {wixDocsClickOnLinksParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} click_name - The name of the link, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} click_url - The url of the link, can be empty\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - Click on > in tables \\ links \\ copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC \\ show members \\ hide members \\ tabs in tables \\ click on path navigation header\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickOnLinksParams>} LogObject<wixDocsClickOnLinksParams>\n */\nexport function wixDocsClickOnLinks(params: wixDocsClickOnLinksParams): LogObject<wixDocsClickOnLinksParams> {\n return { evid: 1433, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiExampleGenerationCompletedByAiTool' event (evid: 1434)\n *\n * Event description: The event will be sent in any new revision in docs when the example generation is finished per method (successfully or not) and will send the example generation details.\n *\n * @param {apiExampleGenerationCompletedByAiToolParams} params - The parameters for this event\n * @property {string} method - The method name of the example being generated\n * @property {string} namespace - The method namespace\n * @property {string} fqdn - The method fqdn\n * @property {number} numRetries - The number of retries made until the example was generated or failed to generate (limitation of 3)\n * @property {boolean} wasSuccess - True if an example was generated\n * @property {string} portal - REST/ SDK / Velo - where the example was generate to\n * @property {string} failureReasons - A Json of the failure reasons. for example - {retry 1: \"reason\", retry 2: \"reason\",.....}\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} packageName - The method Package name\n * @property {string} publishedDocRevisionId - the publishedDocRevisionId\n * @return {LogObject<apiExampleGenerationCompletedByAiToolParams>} LogObject<apiExampleGenerationCompletedByAiToolParams>\n */\nexport function apiExampleGenerationCompletedByAiTool(params: apiExampleGenerationCompletedByAiToolParams): LogObject<apiExampleGenerationCompletedByAiToolParams> {\n return { evid: 1434, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantOpenCloseSrc112Evid1435' event (evid: 1435)\n *\n * Event description: The event is sent when the Docs AI Assistant is Opened / Closed\n *\n * @param {docsAiAssistantOpenCloseSrc112Evid1435Params} params - The parameters for this event\n * @property {string} action - open / close\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {number} interaction_time - when the action is close - the time the session took \n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} ai_session_id - The ai session id\n * @return {LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params>} LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params>\n */\nexport function docsAiAssistantOpenCloseSrc112Evid1435(params: docsAiAssistantOpenCloseSrc112Evid1435Params): LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params> {\n return { evid: 1435, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantCostSrc112Evid1436' event (evid: 1436)\n *\n * Event description: The event is sent when the Docs AI Assistant is sending a response - with the cost it had\n *\n * @param {docsAiAssistantCostSrc112Evid1436Params} params - The parameters for this event\n * @property {string} type - call type\n * @property {number} cost - The cost in dollar\n * @property {number} response_time - in ms\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<docsAiAssistantCostSrc112Evid1436Params>} LogObject<docsAiAssistantCostSrc112Evid1436Params>\n */\nexport function docsAiAssistantCostSrc112Evid1436(params: docsAiAssistantCostSrc112Evid1436Params): LogObject<docsAiAssistantCostSrc112Evid1436Params> {\n return { evid: 1436, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHoverOnContentTerms' event (evid: 1437)\n *\n * Event description: Sends an event when a user hovers on wix docs content term, more that 3 sec.\n *\n * @param {wixDocsHoverOnContentTermsParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @return {LogObject<wixDocsHoverOnContentTermsParams>} LogObject<wixDocsHoverOnContentTermsParams>\n */\nexport function wixDocsHoverOnContentTerms(params: wixDocsHoverOnContentTermsParams): LogObject<wixDocsHoverOnContentTermsParams> {\n return { evid: 1437, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHover' event (evid: 1438)\n *\n * Event description: Sends an event when a user is hovering over content on Docs\n *\n * @param {wixDocsHoverParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} hover_name - The name of the content\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} hover_content - The content of the hovered object\n * @return {LogObject<wixDocsHoverParams>} LogObject<wixDocsHoverParams>\n */\nexport function wixDocsHover(params: wixDocsHoverParams): LogObject<wixDocsHoverParams> {\n return { evid: 1438, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsVisitLocalViewer' event (evid: 15)\n *\n * Event description: User visit the local viewer\n *\n * @param {wixDocsVisitLocalViewerParams} params - The parameters for this event\n * @property {string} local_viewer_id - local_viewer_id\n * @property {string} customer_id - customer id\n * @return {LogObject<wixDocsVisitLocalViewerParams>} LogObject<wixDocsVisitLocalViewerParams>\n */\nexport function wixDocsVisitLocalViewer(params: wixDocsVisitLocalViewerParams): LogObject<wixDocsVisitLocalViewerParams> {\n return { evid: 15, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsOpenCloseExamples' event (evid: 16)\n *\n * Event description: User open/close examples in wix docs\n *\n * @param {wixDocsOpenCloseExamplesParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} categoryName - category name\n * @property {string} articleUrl - url of article\n * @property {number} exampleId - number of example in the list\n * @property {string} articleName - article name\n * @property {string} action - 'open' or 'close'\n * @return {LogObject<wixDocsOpenCloseExamplesParams>} LogObject<wixDocsOpenCloseExamplesParams>\n */\nexport function wixDocsOpenCloseExamples(params: wixDocsOpenCloseExamplesParams): LogObject<wixDocsOpenCloseExamplesParams> {\n return { evid: 16, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsRedirectFailure' event (evid: 1600)\n *\n * Event description: The event will be sent when there is a docs redirect , and it will send the result\n *\n * @param {docsRedirectFailureParams} params - The parameters for this event\n * @property {string} url - The url\n * @property {boolean} isSuccess - True if the redirect works correct\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<docsRedirectFailureParams>} LogObject<docsRedirectFailureParams>\n */\nexport function docsRedirectFailure(params: docsRedirectFailureParams): LogObject<docsRedirectFailureParams> {\n return { evid: 1600, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsRedirectByExternalIdSrc112Evid1601' event (evid: 1601)\n *\n * Event description: Wix Docs redirect by external id\n *\n * @param {wixDocsRedirectByExternalIdSrc112Evid1601Params} params - The parameters for this event\n * @property {boolean} is_success - a valid resource was found by the portal and external id data\n * @property {string} redirect_url - the url that was redirect\n * @property {string} external_id - Docs metadata on the resource\n * @property {string} platform - cli/dev center/blocks\n * @property {string} portal_slug - the docs portal\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params>} LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params>\n */\nexport function wixDocsRedirectByExternalIdSrc112Evid1601(params: wixDocsRedirectByExternalIdSrc112Evid1601Params): LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params> {\n return { evid: 1601, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsRelatedSiteClick' event (evid: 17)\n *\n * Event description: Wix Docs - Related Site Click\n *\n * @param {wixDocsRelatedSiteClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} selected_name - selected_name\n * @property {string} selected_url - selected_url\n * @return {LogObject<wixDocsRelatedSiteClickParams>} LogObject<wixDocsRelatedSiteClickParams>\n */\nexport function wixDocsRelatedSiteClick(params: wixDocsRelatedSiteClickParams): LogObject<wixDocsRelatedSiteClickParams> {\n return { evid: 17, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsViewSourceClick' event (evid: 18)\n *\n * Event description: Wix Docs - View Source Click\n *\n * @param {wixDocsViewSourceClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsViewSourceClickParams>} LogObject<wixDocsViewSourceClickParams>\n */\nexport function wixDocsViewSourceClick(params: wixDocsViewSourceClickParams): LogObject<wixDocsViewSourceClickParams> {\n return { evid: 18, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsObjectShowMembersClick' event (evid: 19)\n *\n * Event description: Click on Show Members\n *\n * @param {wixDocsObjectShowMembersClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} category_name - category name\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {string} action - action\n * @return {LogObject<wixDocsObjectShowMembersClickParams>} LogObject<wixDocsObjectShowMembersClickParams>\n */\nexport function wixDocsObjectShowMembersClick(params: wixDocsObjectShowMembersClickParams): LogObject<wixDocsObjectShowMembersClickParams> {\n return { evid: 19, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSiteVisit' event (evid: 2)\n *\n * Event description: Visit to Wix Docs page\n *\n * @param {wixDocsSiteVisitParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {Url} referral_url - referral_url\n * @property {string} category_name - category\n * @property {number} screen_width - screen_width\n * @property {number} screen_height - screen height\n * @property {string} article_name - article name\n * @property {Url} page_url - page url of customer\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsSiteVisitParams>} LogObject<wixDocsSiteVisitParams>\n */\nexport function wixDocsSiteVisit(params: wixDocsSiteVisitParams): LogObject<wixDocsSiteVisitParams> {\n return { evid: 2, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsToggleClick' event (evid: 22)\n *\n * Event description: Click on a toggle to change View mode/Deprecation mode/Edit mode...\n *\n * @param {wixDocsToggleClickParams} params - The parameters for this event\n * @property {string} toggle_name - the name of the toggle that was clicked\n * @property {string} toggle_status - the current status of the toggle (before clicking)\n * @property {string} page_url - the url of the current page (when clicking on the toggle)\n * @property {string} article_name - the name of the current item\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsToggleClickParams>} LogObject<wixDocsToggleClickParams>\n */\nexport function wixDocsToggleClick(params: wixDocsToggleClickParams): LogObject<wixDocsToggleClickParams> {\n return { evid: 22, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsGiveFeedbackClick' event (evid: 3)\n *\n * Event description: User clicks on \"yes\" or \"no\" feedback click for articles.\n *\n * @param {wixDocsGiveFeedbackClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {Url} article_url - article_url\n * @property {string} article_name - article_name\n * @property {boolean} positive_feedback - feedback given, Yes or No - for helpful\n * @return {LogObject<wixDocsGiveFeedbackClickParams>} LogObject<wixDocsGiveFeedbackClickParams>\n */\nexport function wixDocsGiveFeedbackClick(params: wixDocsGiveFeedbackClickParams): LogObject<wixDocsGiveFeedbackClickParams> {\n return { evid: 3, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'gitToResourceUpdateSrc112Evid30' event (evid: 30)\n *\n * Event description: Tracking git to resource update pipline\n *\n * @param {gitToResourceUpdateSrc112Evid30Params} params - The parameters for this event\n * @property {string} flow - the consumed/produced event topic (REST/SDK/MD)\n * @property {string} step - the name of the step\n * @property {string} revision_id_1 - revision id\n * @property {string} resource_id_1 - resource id\n * @property {string} entity_id - fqdn (for open api resolver) \n * @property {string} repository_full_name - repository name (for md resolver and repo whitlist in autogen)\n * @property {string} package_name - package name (for public sdk and auto velo)\n * @property {string} module_name - module name (for legacy velo)\n * @property {string} git_commit_hash - unique identifier of the current pipeline. consistent over the pipeline\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<gitToResourceUpdateSrc112Evid30Params>} LogObject<gitToResourceUpdateSrc112Evid30Params>\n */\nexport function gitToResourceUpdateSrc112Evid30(params: gitToResourceUpdateSrc112Evid30Params): LogObject<gitToResourceUpdateSrc112Evid30Params> {\n return { evid: 30, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSearchResults' event (evid: 4)\n *\n * Event description: Search results returned (search action performed)\n *\n * @param {wixDocsSearchResultsParams} params - The parameters for this event\n * @property {string} chosen_article_name - Chosen article name\n * @property {string} user_action - action taken by user = [exit_search, result_click, clear_button]\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {Url} first_article_url - url of first url returned in search\n * @property {string} first_article_category - the category of the the first search result\n * @property {Url} chosen_article - the url of the article that the user clicked, if clicked\n * @property {string} first_article_name - the first name of the article\n * @property {number} num_of_results - how many articles were found for the search?\n * @property {string} search_term - search term used in search action\n * @property {string} chosen_category_name - name of chosen category\n * @property {Url} chosen_article_url - chosen article url\n * @return {LogObject<wixDocsSearchResultsParams>} LogObject<wixDocsSearchResultsParams>\n */\nexport function wixDocsSearchResults(params: wixDocsSearchResultsParams): LogObject<wixDocsSearchResultsParams> {\n return { evid: 4, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsNavigationClick' event (evid: 5)\n *\n * Event description: Menu navigation click\n *\n * @param {wixDocsNavigationClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {string} category_name - name of category in menu\n * @property {Url} article_url - article url\n * @property {string} article_name - name of article inside of category\n * @property {string} nav_type - breadcrumb, category, article, scroll (after 5 secs)\n * @return {LogObject<wixDocsNavigationClickParams>} LogObject<wixDocsNavigationClickParams>\n */\nexport function wixDocsNavigationClick(params: wixDocsNavigationClickParams): LogObject<wixDocsNavigationClickParams> {\n return { evid: 5, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsContactOwnerLinkClicked' event (evid: 6)\n *\n * Event description: Link to contact owner clicked\n *\n * @param {wixDocsContactOwnerLinkClickedParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {string} link_type - link type clicked\n * @return {LogObject<wixDocsContactOwnerLinkClickedParams>} LogObject<wixDocsContactOwnerLinkClickedParams>\n */\nexport function wixDocsContactOwnerLinkClicked(params: wixDocsContactOwnerLinkClickedParams): LogObject<wixDocsContactOwnerLinkClickedParams> {\n return { evid: 6, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsCopyCode' event (evid: 7)\n *\n * Event description: Copy the code given in the article example\n *\n * @param {wixDocsCopyCodeParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {string} category_name - name of category\n * @property {Url} article_url - the url of the article that was copied\n * @property {string} id - id of copied data\n * @property {string} article_name - name of article\n * @return {LogObject<wixDocsCopyCodeParams>} LogObject<wixDocsCopyCodeParams>\n */\nexport function wixDocsCopyCode(params: wixDocsCopyCodeParams): LogObject<wixDocsCopyCodeParams> {\n return { evid: 7, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsTryItOutClick' event (evid: 8)\n *\n * Event description: Wix Docs - Try it Out - Click\n *\n * @param {wixDocsTryItOutClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsTryItOutClickParams>} LogObject<wixDocsTryItOutClickParams>\n */\nexport function wixDocsTryItOutClick(params: wixDocsTryItOutClickParams): LogObject<wixDocsTryItOutClickParams> {\n return { evid: 8, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsShareableLinkClick' event (evid: 9)\n *\n * Event description: Wix Docs - Shareable Link - Click\n *\n * @param {wixDocsShareableLinkClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsShareableLinkClickParams>} LogObject<wixDocsShareableLinkClickParams>\n */\nexport function wixDocsShareableLinkClick(params: wixDocsShareableLinkClickParams): LogObject<wixDocsShareableLinkClickParams> {\n return { evid: 9, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'publicSdkCall' event (evid: 1606)\n *\n * Event description: The event is sent when there is a call for an API\n *\n * @param {publicSdkCallParams} params - The parameters for this event\n * @property {string} http_code - status response : 200 / 401 / 403 / 404 / 500\n * @property {Url} url - The url of the destination of the call (URL/URI)\n * @property {number} latency - The API latency\n * @property {string} auth_type - API Keys / OAuth app / ..\n * @property {string} app_def_id - The app_def_id of the caller\n * @property {string} package_version - bi-package-version\n * @property {string} http_method - REST protocol (Post / delete / patch / put / delete)\n * @property {string} entity_name - The name of the entity that was called (fqdn)\n * @property {string} package_name - bi-package-name\n * @property {string} origin_url - The url that the call was from\n * @property {string} environment - js-sdk (sdk before we changed the field) / velo-frontend (auto velo) / velo-backend (auto velo) / vanilla (rest) / js-dashboard / js-api_key / js-velo-backend / js-velo-frontend / js-app (TPA using sdk - for example cli apps) / js-site / js-editor\n * @property {string} method_name - The name of the method that was called (fqn)\n * @property {string} msid - The ID of the site\n * @property {string} mcp_tool_execution_id - wix mcp server tool execution id\n * @property {string} entity_name_fw - entity_name_fw\n * @property {string} method_name_fw - method_name_fw\n * @property {GUID} instance_id - The instance id - msid+app_id\n * @property {string} integration_type - Wix / TPA (headless, api keys, blocks) / Velo\n * @return {LogObject<publicSdkCallParams>} LogObject<publicSdkCallParams>\n */\nexport function publicSdkCall(params: publicSdkCallParams): LogObject<publicSdkCallParams> {\n return { evid: 1606, src: 11, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'astraCmdEnteredSrc11Evid4001' event (evid: 4001)\n *\n * Event description: a user enters a command in Astra\n *\n *\n * @param {astraCmdEnteredSrc11Evid4001Params} params - The parameters for this event\n * @property {string} cmd - the command that the user entered\n * @property {string} message_id - the id of the flow of the current command\n * @property {string} sender_uuid - the uuid of the sender\n * @property {string} repository - Git rep that the user is working from\n * @property {string} feature_toggle_name - names of the feature toggles used\n * @property {string} files_added - all file names that are attached by the user to the command massage\n *\n * @return {LogObject<astraCmdEnteredSrc11Evid4001Params>} LogObject<astraCmdEnteredSrc11Evid4001Params>\n */\nexport function astraCmdEnteredSrc11Evid4001(params: astraCmdEnteredSrc11Evid4001Params): LogObject<astraCmdEnteredSrc11Evid4001Params> {\n return { evid: 4001, src: 11, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessQuickStartModalShown' event (evid: 11)\n *\n * Event description: The Headless quick-start modal shown - will be sent in any step of the modal\n *\n * @param {headlessQuickStartModalShownParams} params - The parameters for this event\n * @property {string} step - create an OAuth app / install SDK / call our API\n * @property {string} technology - javascript / react/ / others / null if it wasnt chosen yet\n * @property {string} appType - web / mobile / other / null if it wasn't chosen yet\n * @property {string} entryPoint - where the modal opened from - focus widget / create oauth from settings\n * @property {boolean} isNewFlow - True if new \n * @return {LogObject<headlessQuickStartModalShownParams>} LogObject<headlessQuickStartModalShownParams>\n */\nexport function headlessQuickStartModalShown(params: headlessQuickStartModalShownParams): LogObject<headlessQuickStartModalShownParams> {\n return { evid: 11, src: 151, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessPlaygroundModalFinishedLoading' event (evid: 12)\n *\n * Event description: The event will be sent when the user clicks on any button of the modal\n *\n * @param {headlessPlaygroundModalFinishedLoadingParams} params - The parameters for this event\n * @property {string} step - create an OAuth app / install SDK / call our API\n * @property {string} cta - learn more, create&cont, tech, copy code, any wix api tool link, go to settings, close, app_type (the type will be sent in \"value\" field)\n * X, etc\n *\n * @property {string} value - name, app type, copy code type, etc (can be null)\n * @property {string} technology - javascript / react/ / others / null if it wasnt chosen yet\n *\n * @property {string} appType - web / mobile / other / null if it wasnt chosen yet\n *\n * @property {string} entryPoint - where the modal opened from - focus widget / create oauth from settings\n *\n * @return {LogObject<headlessPlaygroundModalFinishedLoadingParams>} LogObject<headlessPlaygroundModalFinishedLoadingParams>\n */\nexport function headlessPlaygroundModalFinishedLoading(params: headlessPlaygroundModalFinishedLoadingParams): LogObject<headlessPlaygroundModalFinishedLoadingParams> {\n return { evid: 12, src: 151, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnOauthAppAction' event (evid: 100)\n *\n * Event description: The event is sent when the user click to create/delete/edit OAuth app\n *\n * @param {oauthAppClickOnOauthAppActionParams} params - The parameters for this event\n * @property {string} app_description - The app description, can be empty\n * @property {string} allowed_domains - The app allowed domains, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name, can be empty\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs, can be empty\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @property {string} action - create / create from empty state / edit / delete\n * @return {LogObject<oauthAppClickOnOauthAppActionParams>} LogObject<oauthAppClickOnOauthAppActionParams>\n */\nexport function oauthAppClickOnOauthAppAction(params: oauthAppClickOnOauthAppActionParams): LogObject<oauthAppClickOnOauthAppActionParams> {\n return { evid: 100, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheOauthAppMainPage' event (evid: 101)\n *\n * Event description: The event is sent when the user clicks on any action from the OAuth app main page, other than apps actions (copy account ID button, referral link)\n *\n * @param {oauthAppClickAtTheOauthAppMainPageParams} params - The parameters for this event\n * @property {string} url_clicked - The URL that the user opened by a click on the link, can be empty\n * @property {string} field_value - The redirect URL, can be null\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} cta - copy account id button / referral link / edit domain\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickAtTheOauthAppMainPageParams>} LogObject<oauthAppClickAtTheOauthAppMainPageParams>\n */\nexport function oauthAppClickAtTheOauthAppMainPage(params: oauthAppClickAtTheOauthAppMainPageParams): LogObject<oauthAppClickAtTheOauthAppMainPageParams> {\n return { evid: 101, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickNextCloseAtTheCreateOauthAppDialog' event (evid: 102)\n *\n * Event description: The event is sent when the user click on next button at the Create a OAuth app dialog\n *\n * @param {oauthAppClickNextCloseAtTheCreateOauthAppDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @property {string} action - next / close\n * @return {LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams>} LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams>\n */\nexport function oauthAppClickNextCloseAtTheCreateOauthAppDialog(params: oauthAppClickNextCloseAtTheCreateOauthAppDialogParams): LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams> {\n return { evid: 102, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheCreateEditOauthAppPage' event (evid: 103)\n *\n * Event description: The event is sent when the user click on any action from the edit / create OAuth app page, other then close / save (copy account ID button, refferal link, show client secret, hide client secret, rotate client secret, add redirect URL)\n *\n * @param {oauthAppClickAtTheCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} url_clicked - The URL that the user opend by a click on the link, can be empty\n * @property {string} app_description - The app description, can be empty\n * @property {string} app_action - create / edit\n * @property {string} allowed_domains - The app allowed domains, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} cta - copy account ID button, refferal link, show client secret, hide client secret, rotate client secret, add redirect URL\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs, can be empty\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams>} LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickAtTheCreateEditOauthAppPage(params: oauthAppClickAtTheCreateEditOauthAppPageParams): LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams> {\n return { evid: 103, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnCloseFromCreateEditOauthAppPage' event (evid: 104)\n *\n * Event description: The event is sent when the user clicks on close from edit OAuth app page (didnt save changes \\ didnt create an app)\n *\n * @param {oauthAppClickOnCloseFromCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} app_action - create / edit\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams>} LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickOnCloseFromCreateEditOauthAppPage(params: oauthAppClickOnCloseFromCreateEditOauthAppPageParams): LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams> {\n return { evid: 104, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnSaveFromCreateEditOauthAppPage' event (evid: 105)\n *\n * Event description: The event is sent when the user clicks on save from edit OAuth app page (create an app \\ save changes of an app)\n *\n * @param {oauthAppClickOnSaveFromCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams>} LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickOnSaveFromCreateEditOauthAppPage(params: oauthAppClickOnSaveFromCreateEditOauthAppPageParams): LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams> {\n return { evid: 105, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheDeleteOauthAppDialog' event (evid: 106)\n *\n * Event description: The event is sent when the user slick on some button at the delete app dialog - (delete \\ send code \\ send code again \\ verify and delete an app)\n *\n * @param {oauthAppClickAtTheDeleteOauthAppDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description\n * @property {string} allowed_domains - The app allowed domains\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs\n * @property {string} app_id - The id of the app\n * @property {string} msid - The msid of the site\n * @property {string} action - delete / send code / send code again / verify and delete an app\n * @return {LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams>} LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams>\n */\nexport function oauthAppClickAtTheDeleteOauthAppDialog(params: oauthAppClickAtTheDeleteOauthAppDialogParams): LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams> {\n return { evid: 106, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppOauthAppActionWasMade' event (evid: 107)\n *\n * Event description: The event is sent when an OAuth app was created / deleted / edited\n *\n * @param {oauthAppOauthAppActionWasMadeParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} failure_reason - The failure reason, can be empty\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit / delete\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} old_allowed_authorize_urls - The old app allowed_authorize_urls, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {boolean} was_success - True if the action was finished successfully\n * @property {number} time_to_finish - The time it took to finish the action in ms\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @property {boolean} is_new_flow - True is it was created by the new flow\n * @return {LogObject<oauthAppOauthAppActionWasMadeParams>} LogObject<oauthAppOauthAppActionWasMadeParams>\n */\nexport function oauthAppOauthAppActionWasMade(params: oauthAppOauthAppActionWasMadeParams): LogObject<oauthAppOauthAppActionWasMadeParams> {\n return { evid: 107, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheGenerateClientSecretDialog' event (evid: 108)\n *\n * Event description: The event is sent when the user click at the generate client secret dialog\n *\n * @param {oauthAppClickAtTheGenerateClientSecretDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {string} app_id - The id of the app\n * @property {string} msid - The msid of the site\n * @property {string} action - Copy & close / copy icon / learn more link\n * @return {LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams>} LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams>\n */\nexport function oauthAppClickAtTheGenerateClientSecretDialog(params: oauthAppClickAtTheGenerateClientSecretDialogParams): LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams> {\n return { evid: 108, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppOauthAppActionWasMadeServer' event (evid: 151)\n *\n * Event description: The event is sent when an OAuth app was created / deleted / edited, server event\n *\n * @param {oauthAppOauthAppActionWasMadeServerParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} failure_reason - The failure reason, can be empty\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit / delete\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} old_allowed_authorize_urls - The old app allowed_authorize_urls, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {boolean} was_success - True if the action was finished successfully\n * @property {number} time_to_finish - time_to_finish\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @property {string} action_initiator - the initiator of the action (user/developer/picasso)\n * @property {string} app_creation_initiator - was the Oauth app created by user/system\n * @return {LogObject<oauthAppOauthAppActionWasMadeServerParams>} LogObject<oauthAppOauthAppActionWasMadeServerParams>\n */\nexport function oauthAppOauthAppActionWasMadeServer(params: oauthAppOauthAppActionWasMadeServerParams): LogObject<oauthAppOauthAppActionWasMadeServerParams> {\n return { evid: 151, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartGenerateKey' event (evid: 202)\n *\n * Event description: The event is sent when the user click on verify & generate key, to start generate key\n *\n * @param {apiKeysStartGenerateKeyParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartGenerateKeyParams>} LogObject<apiKeysStartGenerateKeyParams>\n */\nexport function apiKeysStartGenerateKey(params: apiKeysStartGenerateKeyParams): LogObject<apiKeysStartGenerateKeyParams> {\n return { evid: 202, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishGenerateKey' event (evid: 203)\n *\n * Event description: The event is sent when a key is finish the generating process, regardless it was a success or not\n *\n * @param {apiKeysFinishGenerateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} app_def_id - the app_def_id of the key\n * @property {string} key_id - The current app ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {number} time_to_generate - The time it took to generate the key in ms (from evid 202 start generate key)\n * @property {boolean} was_success - True if the key was generate successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishGenerateKeyParams>} LogObject<apiKeysFinishGenerateKeyParams>\n */\nexport function apiKeysFinishGenerateKey(params: apiKeysFinishGenerateKeyParams): LogObject<apiKeysFinishGenerateKeyParams> {\n return { evid: 203, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnActionFromThe3Dots' event (evid: 204)\n *\n * Event description: The event is sent when the user clicks on the top button 'generate api key'\n *\n * @param {apiKeysClickOnActionFromThe3DotsParams} params - The parameters for this event\n * @property {string} key_id - The current app ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user press on - edit \\ duplicate \\ rotate \\ delete\n * @return {LogObject<apiKeysClickOnActionFromThe3DotsParams>} LogObject<apiKeysClickOnActionFromThe3DotsParams>\n */\nexport function apiKeysClickOnActionFromThe3Dots(params: apiKeysClickOnActionFromThe3DotsParams): LogObject<apiKeysClickOnActionFromThe3DotsParams> {\n return { evid: 204, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnGenerateKeyTopButton' event (evid: 205)\n *\n * Event description: The event is sent when the user clicks on the 'generate API key' top button on the main page\n *\n * @param {apiKeysClickOnGenerateKeyTopButtonParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnGenerateKeyTopButtonParams>} LogObject<apiKeysClickOnGenerateKeyTopButtonParams>\n */\nexport function apiKeysClickOnGenerateKeyTopButton(params: apiKeysClickOnGenerateKeyTopButtonParams): LogObject<apiKeysClickOnGenerateKeyTopButtonParams> {\n return { evid: 205, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnGenerateKeyEmptyState' event (evid: 206)\n *\n * Event description: The event is sent when the user clicks on the '+ generate key' when he has an empty state - while the user has 0 keys\n *\n * @param {apiKeysClickOnGenerateKeyEmptyStateParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnGenerateKeyEmptyStateParams>} LogObject<apiKeysClickOnGenerateKeyEmptyStateParams>\n */\nexport function apiKeysClickOnGenerateKeyEmptyState(params: apiKeysClickOnGenerateKeyEmptyStateParams): LogObject<apiKeysClickOnGenerateKeyEmptyStateParams> {\n return { evid: 206, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnViewApiReferences' event (evid: 207)\n *\n * Event description: The event is sent when the user clicks one of the 'view preference options.\n * main page top button, main page API button, main page top learn how to link, key page permissions links, key page learn more, key page top learn how to link, learn more - generate key completed window, learn more - rotate key request window, learn more - rotate key completed window\n *\n * @param {apiKeysClickOnViewApiReferencesParams} params - The parameters for this event\n * @property {string} button_type - Click on one of the API references button - main page top button, main page API button, main page top learn how to link, key page permissions links, key page learn more, key page top learn how to link, learn more - generate key completed window, learn more - rotate key request window, learn more - rotate key completed window\n * @property {string} page_name - The current page name - main page \\ key page\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnViewApiReferencesParams>} LogObject<apiKeysClickOnViewApiReferencesParams>\n */\nexport function apiKeysClickOnViewApiReferences(params: apiKeysClickOnViewApiReferencesParams): LogObject<apiKeysClickOnViewApiReferencesParams> {\n return { evid: 207, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnCopyAccountId' event (evid: 208)\n *\n * Event description: The event is sent when the user clicks on the copy account ID button\n *\n * @param {apiKeysClickOnCopyAccountIdParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnCopyAccountIdParams>} LogObject<apiKeysClickOnCopyAccountIdParams>\n */\nexport function apiKeysClickOnCopyAccountId(params: apiKeysClickOnCopyAccountIdParams): LogObject<apiKeysClickOnCopyAccountIdParams> {\n return { evid: 208, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartEditKey' event (evid: 209)\n *\n * Event description: The event is sent when the user clicks on verify & save changes, to start editing a key\n *\n * @param {apiKeysStartEditKeyParams} params - The parameters for this event\n * @property {string} old_key_permissions - The old permissions for the key\n * @property {string} new_key_name - The new api key name\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} key_id - The current app ID\n * @property {string} old_key_name - The old api name\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} new_key_permissions - The new permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartEditKeyParams>} LogObject<apiKeysStartEditKeyParams>\n */\nexport function apiKeysStartEditKey(params: apiKeysStartEditKeyParams): LogObject<apiKeysStartEditKeyParams> {\n return { evid: 209, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishEditKey' event (evid: 210)\n *\n * Event description: The event is sent when a key is finished the editing process, regardless it was a success or not\n *\n * @param {apiKeysFinishEditKeyParams} params - The parameters for this event\n * @property {number} time_to_edit - The time it took to edit the key in ms (from evid 209 start edit key)\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} old_key_permissions - The old permissions for the key\n * @property {string} new_key_name - The new api key name\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} key_id - The current app ID\n * @property {string} old_key_name - The old api name\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} new_key_permissions - The new permissions for the key\n * @property {boolean} was_success - True if the key was edited successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishEditKeyParams>} LogObject<apiKeysFinishEditKeyParams>\n */\nexport function apiKeysFinishEditKey(params: apiKeysFinishEditKeyParams): LogObject<apiKeysFinishEditKeyParams> {\n return { evid: 210, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartDuplicateKey' event (evid: 211)\n *\n * Event description: The event is sent when the user clicks on verify & save changes, to start duplicating a key\n *\n * @param {apiKeysStartDuplicateKeyParams} params - The parameters for this event\n * @property {string} duplicated_key_permissions - The permissions of the key that was duplicated\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} duplicated_key_id - The id of the key that was duplicated\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} duplicated_key_name - The name of the key that was duplicated\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartDuplicateKeyParams>} LogObject<apiKeysStartDuplicateKeyParams>\n */\nexport function apiKeysStartDuplicateKey(params: apiKeysStartDuplicateKeyParams): LogObject<apiKeysStartDuplicateKeyParams> {\n return { evid: 211, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishDuplicateKey' event (evid: 212)\n *\n * Event description: The event is sent when a key is finished the duplicating process, regardless it was a success or not\n *\n * @param {apiKeysFinishDuplicateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} app_def_id - the app_def_id of the key\n * @property {string} duplicated_key_permissions - The permissions of the key that was duplicated\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} duplicated_key_id - The id of the key that was duplicated\n * @property {number} time_to_duplicate - The time it took to duplicate the key in ms (from evid 2011 start duplicate key)\n * @property {string} key_id - The current api key ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} duplicated_key_name - The name of the key that was duplicated\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was duplicated successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishDuplicateKeyParams>} LogObject<apiKeysFinishDuplicateKeyParams>\n */\nexport function apiKeysFinishDuplicateKey(params: apiKeysFinishDuplicateKeyParams): LogObject<apiKeysFinishDuplicateKeyParams> {\n return { evid: 212, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartRotateKey' event (evid: 213)\n *\n * Event description: The event is sent when the user clicks on validate & rotate key, to start rotate a key\n *\n * @param {apiKeysStartRotateKeyParams} params - The parameters for this event\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartRotateKeyParams>} LogObject<apiKeysStartRotateKeyParams>\n */\nexport function apiKeysStartRotateKey(params: apiKeysStartRotateKeyParams): LogObject<apiKeysStartRotateKeyParams> {\n return { evid: 213, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishRotateKey' event (evid: 214)\n *\n * Event description: The event is sent when a key is finished the rotate process, regardless it was a success or not\n *\n * @param {apiKeysFinishRotateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {number} time_to_rotate - The time it took to rotate the key in ms (from evid 2013 start rotate key)\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was rotated successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishRotateKeyParams>} LogObject<apiKeysFinishRotateKeyParams>\n */\nexport function apiKeysFinishRotateKey(params: apiKeysFinishRotateKeyParams): LogObject<apiKeysFinishRotateKeyParams> {\n return { evid: 214, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartDeleteKey' event (evid: 215)\n *\n * Event description: The event is sent when the user clicks on verify & delete key, to start delete a key\n *\n * @param {apiKeysStartDeleteKeyParams} params - The parameters for this event\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartDeleteKeyParams>} LogObject<apiKeysStartDeleteKeyParams>\n */\nexport function apiKeysStartDeleteKey(params: apiKeysStartDeleteKeyParams): LogObject<apiKeysStartDeleteKeyParams> {\n return { evid: 215, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishDeleteKey' event (evid: 216)\n *\n * Event description: The event is sent when a key is finished the delete process, regardless it was a success or not\n *\n * @param {apiKeysFinishDeleteKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {number} time_to_delete - The time it took to delete the key in ms (from evid 2015 start delete key)\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was deleted successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishDeleteKeyParams>} LogObject<apiKeysFinishDeleteKeyParams>\n */\nexport function apiKeysFinishDeleteKey(params: apiKeysFinishDeleteKeyParams): LogObject<apiKeysFinishDeleteKeyParams> {\n return { evid: 216, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnSendCode' event (evid: 217)\n *\n * Event description: The event is sent when the user clicks on send code button, for the next actions - generate \\ edit \\ duplicate \\ rotate \\ delete\n *\n * @param {apiKeysClickOnSendCodeParams} params - The parameters for this event\n * @property {number} request_number - Running number of the send code request, for this api key\n * @property {string} key_id - The current api ID, will be null if it is duplicate \\ generate action\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {string} request_id - The unique request id, same as the request id for identity and email marketing\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user is doing - generate \\ edit \\ duplicate \\ rotate \\ delete\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnSendCodeParams>} LogObject<apiKeysClickOnSendCodeParams>\n */\nexport function apiKeysClickOnSendCode(params: apiKeysClickOnSendCodeParams): LogObject<apiKeysClickOnSendCodeParams> {\n return { evid: 217, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnSendCodeAgain' event (evid: 218)\n *\n * Event description: The event is sent when the user clicks on send code again button, for the next actions - generate \\ edit \\ duplicate \\ rotate \\ delete\n *\n * @param {apiKeysClickOnSendCodeAgainParams} params - The parameters for this event\n * @property {string} key_id - The current api ID, will be null if it is duplicate \\ generate action\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user is doing - generate \\ edit \\ duplicate \\ rotate \\ delete\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnSendCodeAgainParams>} LogObject<apiKeysClickOnSendCodeAgainParams>\n */\nexport function apiKeysClickOnSendCodeAgain(params: apiKeysClickOnSendCodeAgainParams): LogObject<apiKeysClickOnSendCodeAgainParams> {\n return { evid: 218, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnOauthPageLink' event (evid: 227)\n *\n * Event description: The event is sent when the user clicks on OAuth page link\n *\n * @param {apiKeysClickOnOauthPageLinkParams} params - The parameters for this event\n * @property {number} num_of_keys - The number of keys in the account\n * @return {LogObject<apiKeysClickOnOauthPageLinkParams>} LogObject<apiKeysClickOnOauthPageLinkParams>\n */\nexport function apiKeysClickOnOauthPageLink(params: apiKeysClickOnOauthPageLinkParams): LogObject<apiKeysClickOnOauthPageLinkParams> {\n return { evid: 227, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'triggerValueWasSelected' event (evid: 400)\n *\n * Event description: The event will be sent any time the user selects a trigger value in zapier creation flow\n *\n * @param {triggerValueWasSelectedParams} params - The parameters for this event\n * @property {string} triggerValues - A json of the trigger that was selected earlier\n * @property {boolean} isAppInstall - True if the app install at the site\n * @property {string} appName - The name of the app that was chosen (for example - booking)\n * @property {GUID} uuid - The uuid that made the action\n * @property {string} fieldLabel - The lable of the field that the user changed\n * @property {string} fieldValue - The value of the field that the user selected\n * @property {string} groupName - The name of the group that was chosen (for example - sub category of booking)\n * @property {string} appId - The guid of the app that was chosen (for example - booking guid)\n * @property {GUID} msid - The guid of the site\n * @return {LogObject<triggerValueWasSelectedParams>} LogObject<triggerValueWasSelectedParams>\n */\nexport function triggerValueWasSelected(params: triggerValueWasSelectedParams): LogObject<triggerValueWasSelectedParams> {\n return { evid: 400, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'zapierTestDataClick' event (evid: 401)\n *\n * Event description: The event will be sent any time the user test a zap in zapier\n *\n * @param {zapierTestDataClickParams} params - The parameters for this event\n * @property {string} triggerValues - A json of the trigger that was selected earlier\n * @property {boolean} isAppInstall - True if the app install at the site\n * @property {string} appName - The name of the app that was chosen (for example - booking)\n * @property {GUID} uuid - The uuid that made the action\n * @property {string} groupName - The name of the group that was chosen (for example - sub category of booking)\n * @property {string} appId - The guid of the app that was chosen (for example - booking guid)\n * @property {GUID} msid - The guid of the site\n * @return {LogObject<zapierTestDataClickParams>} LogObject<zapierTestDataClickParams>\n */\nexport function zapierTestDataClick(params: zapierTestDataClickParams): LogObject<zapierTestDataClickParams> {\n return { evid: 401, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'zapierCustomZapCreatedOrDeleted' event (evid: 402)\n *\n * Event description: the event will be sent when a custom zap was created or deleted from the zapier website.\n *\n * @param {zapierCustomZapCreatedOrDeletedParams} params - The parameters for this event\n * @property {string} ruleId - The rule id\n * @property {string} zapId - The zap id\n * @property {string} action - Detele / Cerate\n * @return {LogObject<zapierCustomZapCreatedOrDeletedParams>} LogObject<zapierCustomZapCreatedOrDeletedParams>\n */\nexport function zapierCustomZapCreatedOrDeleted(params: zapierCustomZapCreatedOrDeletedParams): LogObject<zapierCustomZapCreatedOrDeletedParams> {\n return { evid: 402, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessMigrationTourModalShown' event (evid: 8)\n *\n * Event description: The event will be sent each time the migration-tour-modal will be shown - so we will not show it twice per user (using active group)\n *\n * @param {headlessMigrationTourModalShownParams} params - The parameters for this event\n * @return {LogObject<headlessMigrationTourModalShownParams>} LogObject<headlessMigrationTourModalShownParams>\n */\nexport function headlessMigrationTourModalShown(params: headlessMigrationTourModalShownParams): LogObject<headlessMigrationTourModalShownParams> {\n return { evid: 8, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'n8NTriggerActionSrc154Evid810' event (evid: 810)\n *\n * Event description: a trigger was created/deleted in n8n \n *\n * @param {n8NTriggerActionSrc154Evid810Params} params - The parameters for this event\n * @property {string} wixAutomationId - wix automation id\n * @property {string} triggerKey - the chosen trigger key\n * @property {string} mode - the automation working mode (test/prod)\n * @property {string} triggerAppId - the relevant app id of the trigger\n * @return {LogObject<n8NTriggerActionSrc154Evid810Params>} LogObject<n8NTriggerActionSrc154Evid810Params>\n */\nexport function n8NTriggerActionSrc154Evid810(params: n8NTriggerActionSrc154Evid810Params): LogObject<n8NTriggerActionSrc154Evid810Params> {\n return { evid: 810, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksDispatcherResponseChannelTopicSrc155Evid3' event (evid: 3)\n *\n * Event description: Webhooks dispatcher response channel topic\n *\n * @param {webhooksDispatcherResponseChannelTopicSrc155Evid3Params} params - The parameters for this event\n * @property {string} topic - The webhook topic\n * @property {string} callbackUrl - The callback Url\n * @property {GUID} appDefId - the app def id made the call\n * @property {DateTime} kafkaTime - timestamp of the original kafka message\n * @property {number} retryNumber - retry attempt (the first one should be 0)\n * @property {string} statusCode - responded tatus code\n * @property {number} responseTime - time to response in ms\n * @property {DateTime} webhookTime - timestamp of firing the webhook\n * @property {string} originalTimestamp - The originalTimestamp\n * @property {string} retryAttempt - retryAttempt\n * @property {string} responseDuration - responseDuration\n * @return {LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params>} LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params>\n */\nexport function webhooksDispatcherResponseChannelTopicSrc155Evid3(params: webhooksDispatcherResponseChannelTopicSrc155Evid3Params): LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params> {\n return { evid: 3, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'graphqlCall' event (evid: 400)\n *\n * Event description: The event will be sent when there is a GraphQL call\n *\n * @param {graphqlCallParams} params - The parameters for this event\n * @property {string} client_artifact_id - The artifact that was making the call\n * @property {string} operation_type - query / mutation\n * @property {GUID} metasiteId - msid of the site\n * @property {string} entity_call_breakdown - { \"fqdn1\": { \"method1\": [\"field_1\", \"field_2\"] \"method2\": [\"field_3\", \"field_4\"] ... }\n * @property {string} source_type - headless/ TPA/ Internal site / Internal App\n * @property {GUID} appDefId - the app guid\n * @property {string} schema_name - The schema name - Internal / external / demo\n * @property {string} origin_url - The source url\n * @property {number} time_to_resolve - The time it takes to the resolver to obtain answer, in ms\n * @property {boolean} is_success - True if the call succeeded\n * @return {LogObject<graphqlCallParams>} LogObject<graphqlCallParams>\n */\nexport function graphqlCall(params: graphqlCallParams): LogObject<graphqlCallParams> {\n return { evid: 400, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'autoVeloSiteCallForAMethod' event (evid: 401)\n *\n * Event description: The event is sent when the server gets a call for a method, from a site\n *\n * @param {autoVeloSiteCallForAMethodParams} params - The parameters for this event\n * @property {string} http_code - The http code for this call - 200\\404\\..\n * @property {string} api_owner - The API owner (company)\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} service_name - The name of the service of the method\n * @property {string} entity_name - The FQDN of the entity\n * @property {string} environment - The type of development - front-end \\ back-end\n * @property {string} module_name - The module name of the entity - edm name\n * @property {string} method_name - The name of the method that was in use\n * @property {string} msid - The msid of the site that made the call\n * @return {LogObject<autoVeloSiteCallForAMethodParams>} LogObject<autoVeloSiteCallForAMethodParams>\n */\nexport function autoVeloSiteCallForAMethod(params: autoVeloSiteCallForAMethodParams): LogObject<autoVeloSiteCallForAMethodParams> {\n return { evid: 401, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'appsSettingsDeletionCandidate' event (evid: 700)\n *\n * Event description: Apps Settings - Deletion Candidate.\n *\n * @param {appsSettingsDeletionCandidateParams} params - The parameters for this event\n * @property {GUID} instance - .\n * @property {GUID} external_id - .\n * @property {GUID} app_id - .\n * @return {LogObject<appsSettingsDeletionCandidateParams>} LogObject<appsSettingsDeletionCandidateParams>\n */\nexport function appsSettingsDeletionCandidate(params: appsSettingsDeletionCandidateParams): LogObject<appsSettingsDeletionCandidateParams> {\n return { evid: 700, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'settingsAccess' event (evid: 800)\n *\n * Event description: Settings Access.\n *\n * @param {settingsAccessParams} params - The parameters for this event\n * @property {GUID} instance - .\n * @property {GUID} external_id - .\n * @property {GUID} app_id - .\n * @return {LogObject<settingsAccessParams>} LogObject<settingsAccessParams>\n */\nexport function settingsAccess(params: settingsAccessParams): LogObject<settingsAccessParams> {\n return { evid: 800, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiBlockGaRule' event (evid: 801)\n *\n * Event description: The event will be sent when an API is blocked GA rule/passed it - the API is blocked due to not following the rule condition\n *\n * @param {apiBlockGaRuleParams} params - The parameters for this event\n * @property {string} fqdn - The fqdn that was blocked\n * @property {boolean} isBlocked - True if the API was blocked\n * @property {string} method - The API method (function)\n * @property {string} namespace - The namespace of the method\n * @property {string} blockReason - If the API was blocked - the block reason\n * @property {string} serviceArtifactId - the service artifact id\n * @return {LogObject<apiBlockGaRuleParams>} LogObject<apiBlockGaRuleParams>\n */\nexport function apiBlockGaRule(params: apiBlockGaRuleParams): LogObject<apiBlockGaRuleParams> {\n return { evid: 801, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessAddWixToYourProjectDialogIsShown' event (evid: 13)\n *\n * Event description: reported when user clicks to open \u2018Add Wix to your Project\u2019 dialog from Vercel/Netlify\n *\n * @param {headlessAddWixToYourProjectDialogIsShownParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessAddWixToYourProjectDialogIsShownParams>} LogObject<headlessAddWixToYourProjectDialogIsShownParams>\n */\nexport function headlessAddWixToYourProjectDialogIsShown(params: headlessAddWixToYourProjectDialogIsShownParams): LogObject<headlessAddWixToYourProjectDialogIsShownParams> {\n return { evid: 13, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessOAuthInstalled' event (evid: 15)\n *\n * Event description: reported when the user approve the app market dialog and an OAuth installed and redirect to Netlify/Vercel - the funnel was finished successfuly\n *\n * @param {headlessOAuthInstalledParams} params - The parameters for this event\n * @property {string} source - New to Wix / Existing Wix Business\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessOAuthInstalledParams>} LogObject<headlessOAuthInstalledParams>\n */\nexport function headlessOAuthInstalled(params: headlessOAuthInstalledParams): LogObject<headlessOAuthInstalledParams> {\n return { evid: 15, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessAddWixToYourProjectDialogClick' event (evid: 16)\n *\n * Event description: reported when user clicks on any button at the \u2018Add Wix to your Project\u2019 dialog from Vercel/Netlify\n *\n * @param {headlessAddWixToYourProjectDialogClickParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {GUID} uuid - The uuid of the user\n * @property {GUID} client_id - client_id\n * @property {string} cta - Sign Up / Login / watch video\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessAddWixToYourProjectDialogClickParams>} LogObject<headlessAddWixToYourProjectDialogClickParams>\n */\nexport function headlessAddWixToYourProjectDialogClick(params: headlessAddWixToYourProjectDialogClickParams): LogObject<headlessAddWixToYourProjectDialogClickParams> {\n return { evid: 16, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessDeployThisTemplatePageIsShown' event (evid: 17)\n *\n * Event description: reported when the deploy this template page is shown\n *\n * @param {headlessDeployThisTemplatePageIsShownParams} params - The parameters for this event\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessDeployThisTemplatePageIsShownParams>} LogObject<headlessDeployThisTemplatePageIsShownParams>\n */\nexport function headlessDeployThisTemplatePageIsShown(params: headlessDeployThisTemplatePageIsShownParams): LogObject<headlessDeployThisTemplatePageIsShownParams> {\n return { evid: 17, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessDeployThisTemplatePageClick' event (evid: 18)\n *\n * Event description: reported when the user clicks on any cta at the deploy this template page\n *\n * @param {headlessDeployThisTemplatePageClickParams} params - The parameters for this event\n * @property {string} provider - Netlify / Vercel, will be sent only when the cta is continue\n * @property {string} cta - Deploy to Netlify / Deploy to Vercel / Continue / View Template Repo\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessDeployThisTemplatePageClickParams>} LogObject<headlessDeployThisTemplatePageClickParams>\n */\nexport function headlessDeployThisTemplatePageClick(params: headlessDeployThisTemplatePageClickParams): LogObject<headlessDeployThisTemplatePageClickParams> {\n return { evid: 18, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessResumeSetUpDialogIsShown' event (evid: 19)\n *\n * Event description: reported when user clicks to open \u2018Resume Set Up dialog from Vercel/Netlify\n *\n * @param {headlessResumeSetUpDialogIsShownParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessResumeSetUpDialogIsShownParams>} LogObject<headlessResumeSetUpDialogIsShownParams>\n */\nexport function headlessResumeSetUpDialogIsShown(params: headlessResumeSetUpDialogIsShownParams): LogObject<headlessResumeSetUpDialogIsShownParams> {\n return { evid: 19, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'copyOfHeadlessResumeSetUpDialogClick' event (evid: 20)\n *\n * Event description: reported when user clicks on any button at the \u2018Resume Set Up\u2019 dialog from Vercel/Netlify\n *\n * @param {copyOfHeadlessResumeSetUpDialogClickParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} cta - Resume / Cancle\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<copyOfHeadlessResumeSetUpDialogClickParams>} LogObject<copyOfHeadlessResumeSetUpDialogClickParams>\n */\nexport function copyOfHeadlessResumeSetUpDialogClick(params: copyOfHeadlessResumeSetUpDialogClickParams): LogObject<copyOfHeadlessResumeSetUpDialogClickParams> {\n return { evid: 20, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'testSrc184Evid9999' event (evid: 9999)\n *\n * Event description: test\n *\n * @param {testSrc184Evid9999Params} params - The parameters for this event\n * @return {LogObject<testSrc184Evid9999Params>} LogObject<testSrc184Evid9999Params>\n */\nexport function testSrc184Evid9999(params: testSrc184Evid9999Params): LogObject<testSrc184Evid9999Params> {\n return { evid: 9999, src: 184, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixMcpRequestSrc39Evid1607' event (evid: 1607)\n *\n * Event description: Fires when a user runs a query through the Wix MCP, capturing activity at the tool execution level.\n *\n *\n *\n * @param {wixMcpRequestSrc39Evid1607Params} params - The parameters for this event\n * @property {string} sessionId - the relevant session_id (multiple questions in a session)\n * @property {string} queryId - the request id (per user question - many to one with session)\n * @property {string} toolInvocationId - the tool execution id (per tool execution - many to one with user question)\n *\n * @property {string} query - the actual user query string being passed (prompt)\n * @property {string} toolName - The name of the MCP tool that was triggered\n * @property {string} params - the params sent in the tool invocation\n * @property {string} origin - relevant source/agent calling the MCP server (remote/local/picasso)\n * @property {number} duration - duration time per execution (ms)\n * @property {string} executionResult - Success/Error (defined by the tool)\n * @property {string} errorBody - for cases where the execution result was an error\n * @property {string} clientName - cursor, claude desktop etc\n * @property {string} requestId - the request id for the mcp for visitors\n * @property {string} jobId - job id\n * @return {LogObject<wixMcpRequestSrc39Evid1607Params>} LogObject<wixMcpRequestSrc39Evid1607Params>\n */\nexport function wixMcpRequestSrc39Evid1607(params: wixMcpRequestSrc39Evid1607Params): LogObject<wixMcpRequestSrc39Evid1607Params> {\n return { evid: 1607, src: 39, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCodeExampleWindowClicks' event (evid: 11905)\n *\n * Event description: The event will be sent on any click at the code example window at the webhooks page in DC \n *\n * @param {webhooksInDcCodeExampleWindowClicksParams} params - The parameters for this event\n * @property {string} codeType - node.sj / etc... - what was chosen when the user clicked on the cta\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} cta - The click name that the user clicked on (X, node.js, copy, etc))\n * @property {string} displayType - side bar / modal\n * @property {string} extra_values - Any extra value. for example - when the user chose a different lang, it will sent the lan that was choosen. can be null.\n * @return {LogObject<webhooksInDcCodeExampleWindowClicksParams>} LogObject<webhooksInDcCodeExampleWindowClicksParams>\n */\nexport function webhooksInDcCodeExampleWindowClicks(params: webhooksInDcCodeExampleWindowClicksParams): LogObject<webhooksInDcCodeExampleWindowClicksParams> {\n return { evid: 11905, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcTriggeredTestModalClicks' event (evid: 11906)\n *\n * Event description: The event will be sent on any click at the triggered test modal at the webhooks page in DC \n *\n * @param {webhooksInDcTriggeredTestModalClicksParams} params - The parameters for this event\n * @property {string} cta - The click name that the user clicked on (copy / close / X)\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @return {LogObject<webhooksInDcTriggeredTestModalClicksParams>} LogObject<webhooksInDcTriggeredTestModalClicksParams>\n */\nexport function webhooksInDcTriggeredTestModalClicks(params: webhooksInDcTriggeredTestModalClicksParams): LogObject<webhooksInDcTriggeredTestModalClicksParams> {\n return { evid: 11906, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCodeExampleWindowScroll' event (evid: 11907)\n *\n * Event description: The event will be sent a scroll at the code example window at the webhooks page in DC \n *\n * @param {webhooksInDcCodeExampleWindowScrollParams} params - The parameters for this event\n * @property {string} codeType - node.sj / etc... - what was chosen when the user clicked on the cta\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} scrollType - vertical/horizontal\n * @property {string} displayType - side bar / modal\n * @return {LogObject<webhooksInDcCodeExampleWindowScrollParams>} LogObject<webhooksInDcCodeExampleWindowScrollParams>\n */\nexport function webhooksInDcCodeExampleWindowScroll(params: webhooksInDcCodeExampleWindowScrollParams): LogObject<webhooksInDcCodeExampleWindowScrollParams> {\n return { evid: 11907, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCreateEventPageClicks' event (evid: 11908)\n *\n * Event description: The event will be sent on any click at the create event page at the webhooks page in DC \n *\n * @param {webhooksInDcCreateEventPageClicksParams} params - The parameters for this event\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} cta - The click name that the user clicked on (code sample / trigger test / view guide / api reference)\n * @return {LogObject<webhooksInDcCreateEventPageClicksParams>} LogObject<webhooksInDcCreateEventPageClicksParams>\n */\nexport function webhooksInDcCreateEventPageClicks(params: webhooksInDcCreateEventPageClicksParams): LogObject<webhooksInDcCreateEventPageClicksParams> {\n return { evid: 11908, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcMainPageClicks' event (evid: 12301)\n *\n * Event description: The event will be sent on any click at the webhooks main page in DC \n *\n * @param {webhooksInDcMainPageClicksParams} params - The parameters for this event\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} clickType - Navigation, action, expend, colapsed\n * @property {string} location - popover, top, bottom, table\n * @property {string} clickName - the name of the button that was clicked\n * @property {string} pageViewType - webhook list / webhook log\n * @return {LogObject<webhooksInDcMainPageClicksParams>} LogObject<webhooksInDcMainPageClicksParams>\n */\nexport function webhooksInDcMainPageClicks(params: webhooksInDcMainPageClicksParams): LogObject<webhooksInDcMainPageClicksParams> {\n return { evid: 12301, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'devCenterWebhookSentTriggered' event (evid: 1300)\n *\n * Event description: Dev Center - Webhook - Sent / Triggered\n *\n * @param {devCenterWebhookSentTriggeredParams} params - The parameters for this event\n * @property {GUID} instanceId - guid\n * @property {GUID} webhookId - guid\n * @property {string} url - url\n * @property {string} httpMethod - http method\n * @property {string} webhookEventType - webhook_event_type\n * @property {string} responseStatus - response_status\n * @property {string} topic - topic\n * @property {GUID} appId - app id\n * @property {string} originalTimestamp - originalTimestamp\n * @property {string} retryAttempt - retryAttempt\n * @property {string} statusCode - statusCode\n * @property {string} responseDuration - responseDuration\n * @property {string} kafkaEventId - unique identifier for each kafka attempt\n * @property {string} KafkaWebhookId - unique id to each webhook call (if there are 2 attempts - 2 row with this id)\n * @property {string} startHandlingTimestamp - start_handling_timestamp. when the webhook dispatcher started to work on the message\n * @return {LogObject<devCenterWebhookSentTriggeredParams>} LogObject<devCenterWebhookSentTriggeredParams>\n */\nexport function devCenterWebhookSentTriggered(params: devCenterWebhookSentTriggeredParams): LogObject<devCenterWebhookSentTriggeredParams> {\n return { evid: 1300, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'spiExternalInvocationSrc96Evid199' event (evid: 199)\n *\n * Event description: SPI external invocation - REST call only - TPAs.\n *\n * @param {spiExternalInvocationSrc96Evid199Params} params - The parameters for this event\n * @property {string} appId - The app id used the spi\n * @property {string} msid - The msid used the spi\n * @property {string} componentId - per unique app & component (there can be 2 same spis to the same app)\n * @property {string} componentType - spi identifier\n * @property {string} statusCode - the status_code of the invocation\n * @property {string} instanceId - The instance (msid+app_id) that trigger the spi\n * @property {string} responseDuration - in ms\n * @property {string} functionName - the action that the spi does\n * @property {string} appDefId - The app def id\n * @return {LogObject<spiExternalInvocationSrc96Evid199Params>} LogObject<spiExternalInvocationSrc96Evid199Params>\n */\nexport function spiExternalInvocationSrc96Evid199(params: spiExternalInvocationSrc96Evid199Params): LogObject<spiExternalInvocationSrc96Evid199Params> {\n return { evid: 199, src: 96, endpoint: '', params };\n}\n", "// import { createRequire } from 'module';\nimport {\n createGlobalConfig,\n panoramaClientFactory,\n PanoramaPlatform\n} from '@wix/panorama-client-node';\nimport type { ENV } from './environment.js';\nimport type { Implementation } from '@modelcontextprotocol/sdk/types.js';\n\n// const require = createRequire(import.meta.url);\n// const packageJson = require('../package.json');\n\n// TODO: use real package.json\n// I temporarily disabled this because it's not working in the remote server\nconst packageJson = {\n version: '1.0.0'\n};\n\nexport const createPanoramaClient = (opts: {\n environment: ENV;\n sessionId: string;\n componentId: string;\n uuid?: string;\n serverInfo?: Implementation;\n}) => {\n const globalPanoramaConfig = createGlobalConfig();\n globalPanoramaConfig.setSessionId(opts.sessionId);\n\n const panoramaFactory = panoramaClientFactory({\n reporterOptions: {\n silent: true\n },\n baseParams: {\n uuid: opts.uuid,\n componentId: opts.componentId,\n platform: PanoramaPlatform.Standalone,\n fullArtifactId: 'com.wixpress.spartans.wix-mcp',\n artifactVersion: packageJson.version\n },\n data: {\n environment: opts.environment,\n serverInfo: opts.serverInfo,\n runtime: {\n packageVersion: packageJson.version,\n versions: process.versions,\n platform: process.platform,\n arch: process.arch\n }\n }\n }).withGlobalConfig(globalPanoramaConfig);\n\n return panoramaFactory.client();\n};\n", "import { StandaloneNodeLogger } from '@wix/standalone-node-bi-logger';\nimport type { BiEvent, BiLogger } from '@wix/wix-bi-logger-client';\n\nexport function createBiLogger(defaultFields?: BiEvent): BiLogger {\n return new StandaloneNodeLogger()\n .factory({})\n .updateDefaults({\n localTime: () => Date.now(),\n ...defaultFields\n })\n .logger();\n}\n", "export enum ENV {\n DEV = 'DEV',\n TEST = 'TEST',\n LOCAL = 'LOCAL',\n REMOTE = 'REMOTE',\n PICASSO = 'PICASSO',\n VISITOR_MCP = 'VISITOR_MCP'\n}\n\nconst DEFAULT_ENV = ENV.LOCAL;\n\nexport const DEV_ENVIRONMENTS = [ENV.DEV, ENV.TEST];\n\nexport function getEnvironment(nodeEnv?: string): ENV {\n const env = nodeEnv || process.env.NODE_ENV;\n switch (env?.toUpperCase()) {\n case 'DEV':\n return ENV.DEV;\n case 'TEST':\n return ENV.TEST;\n case 'LOCAL':\n return ENV.LOCAL;\n case 'REMOTE':\n return ENV.REMOTE;\n case 'PICASSO':\n return ENV.PICASSO;\n case 'VISITOR_MCP':\n return ENV.VISITOR_MCP;\n default:\n return DEFAULT_ENV;\n }\n}\n", "import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { logger } from '../infra/logger.js';\nimport { GET_ARTICLE_CONTENT_URL, PORTAL_INDEX_URL } from '../constants.js';\n\nconst getPortalIndex = async (portalName: string) => {\n const response = await fetch(`${PORTAL_INDEX_URL}?portalName=${portalName}`);\n const data = await response.json();\n return data;\n};\n\nconst addPortalResources = async (server: McpServer, portalName: string) => {\n // get portal index:\n const portalIndexResponse = await getPortalIndex(portalName);\n logger.log(\n `portalIndexResponse for ${portalName}`,\n JSON.stringify(portalIndexResponse, null, 2)\n );\n\n // for each portalIndex entry, add a resource to the server:\n for (const entry of portalIndexResponse.portalIndex) {\n logger.log(`entry ${JSON.stringify(entry, null, 2)}`);\n\n const name = entry.url;\n const uri = entry.url.replace('https://dev.wix.com/docs/', 'wix-docs://');\n\n logger.log(`adding resource ${name} ${uri}`);\n\n server.resource(name, uri, async (uri: URL) => {\n logger.log(`fetching resource ${uri}`);\n\n const docsURL = uri\n .toString()\n .replace('wix-docs://', 'https://dev.wix.com/docs/');\n const response = await fetch(\n `${GET_ARTICLE_CONTENT_URL}?articleUrl=${encodeURIComponent(docsURL)}`\n );\n const data = await response.json();\n\n return {\n contents: [\n {\n uri: uri.href,\n text: data.articleContent || 'No content found'\n }\n ]\n };\n });\n }\n};\n\nexport const addDocsResources = async (\n server: McpServer,\n portals: string[]\n) => {\n for (const portal of portals) {\n try {\n logger.log(`Processing portal: ${portal}`);\n await addPortalResources(server, portal);\n } catch (error) {\n logger.error(`Error processing portal ${portal}:`, error);\n }\n }\n};\n", "import { z } from 'zod';\nimport { HttpClient, HttpError } from '@wix/http-client';\nimport { logger } from '../infra/logger.js';\nimport { WixMcpServer } from '../wix-mcp-server.js';\nimport { handleWixAPIResponse } from '../tool-utils.js';\nimport { McpAuthenticationStrategy } from '../auth/index.js';\nimport { isApiUrlAllowed } from './validation.js';\n\nexport function addApiCallTool(\n server: WixMcpServer,\n strategy: McpAuthenticationStrategy,\n allowedTools: string[] = ['CallWixSiteAPI', 'ListWixSites', 'ManageWixSite'],\n disableTools: string[] = [],\n toolDescriptions?: Record<string, string>\n) {\n // Helper to get description (custom or default)\n const getDescription = (toolName: string, defaultDesc: string): string =>\n toolDescriptions?.[toolName] ?? defaultDesc;\n\n if (\n allowedTools.includes('CallWixSiteAPI') &&\n !disableTools.includes('CallWixSiteAPI')\n ) {\n const defaultCallApiDesc = [\n 'Call Wix apis on a business or site. Use this to create, read, update, and delete data and other Wix entities in your Wix site,',\n `You should ALWAYS check the rest docs - \"SearchWixRESTDocumentation\" for the specific API you want to call, don't just call it without knowing what it does, CHECK THE DOCS`,\n 'Error Handling:',\n 'If the error is related to missing installed app or \"WDE0110: Wix Code not enabled\", you should install the missing app by using ReadFullDocsArticle tool to fetch the article - https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',\n '**Note:** there is no need to check if an app is installed/ Wix Code enabled in advance, just call the API and handle the error if it occurs, the API error message will state it clearly.',\n 'For any other error, use your default error handling mechanism'\n ].join('\\n');\n server.tool(\n 'CallWixSiteAPI',\n getDescription('CallWixSiteAPI', defaultCallApiDesc),\n {\n siteId: z\n .string()\n .describe('The id of the site selected using site selection tool'),\n url: z\n .string()\n .url()\n .describe(\n 'The url of the api to call - ALWAYS get the information from the Wix REST docs or from the conversation context, the URL MUST BE ABSOLUTE URL'\n ),\n method: z\n .string()\n .describe(\n 'The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)'\n ),\n body: z\n .string()\n .optional()\n .describe(\n 'A string representing of a valid JSON object to describe the body of the request'\n )\n },\n { readOnlyHint: false, destructiveHint: true, openWorldHint: false },\n async (\n { url, body, method, siteId },\n { httpClient, setToolBiParams }\n ) => {\n logger.log(\n `Calling Wix Site API: ${siteId} ${url}, body: ${JSON.stringify(body)}`\n );\n\n const { isAllowed, error: urlError } = isApiUrlAllowed(url);\n if (!isAllowed) {\n return {\n content: [\n {\n isError: true,\n type: 'text',\n text: `Error validating URL: ${urlError}`\n }\n ]\n };\n }\n\n try {\n const response = await httpClient.request({\n url,\n method: method as any,\n headers: {\n ...(await strategy.getSiteAuthHeaders(siteId)),\n ...(body ? { 'Content-Type': 'application/json' } : {})\n },\n data: method === 'GET' ? undefined : body\n });\n\n const requestId = response.headers?.['x-wix-request-id'];\n setToolBiParams({ requestId, siteId });\n\n const responseData = await handleWixAPIResponse(response);\n\n return {\n content: [\n {\n type: 'text',\n text: `Wix Site API call successful: ${JSON.stringify(responseData)}`\n }\n ]\n };\n } catch (error) {\n let requestId: string | undefined;\n if (HttpClient.isHttpError(error)) {\n requestId = error.requestId;\n }\n\n setToolBiParams({ requestId, siteId });\n\n const errorMessage = `Failed to call Wix Site API: ${error}. ${requestId ? `Request ID: ${requestId}` : ''}`;\n logger.error(errorMessage);\n\n const response = (error as HttpError).response;\n if (!response) {\n throw new Error(errorMessage);\n }\n\n return handleWixAPIResponse(response);\n }\n }\n );\n }\n\n if (\n allowedTools.includes('ListWixSites') &&\n !disableTools.includes('ListWixSites')\n ) {\n const defaultListSitesDesc =\n 'List Wix sites for the current user, by default it will return all sites, but you can filter by name';\n server.tool(\n 'ListWixSites',\n getDescription('ListWixSites', defaultListSitesDesc),\n {\n nameSearch: z\n .string()\n .optional()\n .describe(\n 'optional filer by name, if not provided all sites will be returned'\n ),\n // Hack for Cursor ignoring tools with no params (when nameSearch is optional)\n alwaysTrue: z.boolean().describe('Always pass true to this parameter')\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ nameSearch }, { httpClient }) => {\n const sitesRes = await httpClient.post(\n 'https://www.wixapis.com/site-list/v2/sites/query',\n {\n query: {\n cursorPaging: { limit: 21 },\n filter: {\n ...(nameSearch\n ? {\n name: nameSearch\n }\n : {}),\n namespace: {\n $in: ['WIX', 'DASHBOARD_FIRST', 'ANYWHERE', 'HEADLESS']\n }\n }\n }\n },\n {\n headers: {\n ...(await strategy.getAccountAuthHeaders()),\n 'Content-Type': 'application/json',\n Accept: 'application/json, text/plain, */*'\n }\n }\n );\n\n const result =\n sitesRes.data.sites?.map(({ id, displayName }: any) => ({\n id,\n name: displayName\n })) ?? [];\n\n return {\n content: [\n {\n type: 'text',\n text: JSON.stringify(result)\n },\n {\n type: 'text',\n text:\n 'if there is more than one site returned, the user should pick one from a list, list the sites (only name) for the user and ask them to pick one,' +\n 'If more than 20 are found you should list all 20 and suggest to search by the name of the site they are looking for'\n }\n ]\n };\n }\n );\n }\n\n if (\n allowedTools.includes('ManageWixSite') &&\n !disableTools.includes('ManageWixSite')\n ) {\n const defaultManageSiteDesc = `Use account level API in order to create a site, update a site and publish site.\n ALWAYS use \"SearchWixRESTDocumentation\" to search for the API you should invoke, NEVER GUESS THE SITE API URL\n You should ALWAYS check the rest docs - \"SearchWixRESTDocumentation\" for the specific API you want to call, don't just call it without knowing what it does, CHECK THE DOCS`;\n server.tool(\n 'ManageWixSite',\n getDescription('ManageWixSite', defaultManageSiteDesc),\n {\n url: z\n .string()\n .url()\n .describe(\n 'The url of the api to call - ALWAYS get the information from the Wix REST docs DONT GUESS IT, the URL MUST BE ABSOLUTE URL'\n ),\n method: z\n .string()\n .describe(\n 'The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)'\n ),\n body: z\n .string()\n .optional()\n .describe(\n 'A string representing of a valid JSON object to describe the body of the request'\n )\n },\n { readOnlyHint: false, destructiveHint: true, openWorldHint: false },\n async ({ url, body, method }, { httpClient }) => {\n logger.log(\n `Calling Wix Account level API: ${url}, body: ${JSON.stringify(body)}`\n );\n\n const { isAllowed, error: urlError } = isApiUrlAllowed(url);\n if (!isAllowed) {\n return {\n content: [\n {\n isError: true,\n type: 'text',\n text: `Error validating URL: ${urlError}`\n }\n ]\n };\n }\n\n try {\n // if we would like to allow the user to manage multiple accounts, we should add accountId to the params\n const response = await httpClient.request({\n url,\n method: method as any,\n headers: {\n ...(await strategy.getAccountAuthHeaders()),\n ...(body ? { 'Content-Type': 'application/json' } : {})\n },\n data: method === 'GET' ? undefined : body\n });\n\n const responseData = await handleWixAPIResponse(response);\n\n return {\n content: [\n {\n type: 'text',\n text: `Wix Account API call successful: ${JSON.stringify(responseData)}`\n }\n ]\n };\n } catch (error) {\n logger.error(`Failed to call Wix Account API: ${error}`);\n\n const response = (error as HttpError).response;\n if (!response) {\n throw new Error(`Failed to call Wix Account API: ${error}`);\n }\n\n return handleWixAPIResponse(response);\n }\n }\n );\n }\n}\n", "import type { HttpResponse } from '@wix/http-client';\n\nconst safeParseJSON = (text: string) => {\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n};\n\nexport const buildErrorMessage = ({\n status,\n statusText,\n requestId,\n responseData\n}: {\n status?: number;\n statusText?: string;\n requestId: string | null;\n responseData?: any;\n}) => {\n const responseDataObject =\n typeof responseData === 'string'\n ? safeParseJSON(responseData)\n : responseData;\n\n const errorDetails: string =\n typeof responseDataObject === 'object'\n ? JSON.stringify(responseDataObject)\n : responseDataObject;\n\n return [\n `Failed to call Wix API:${status ? ` ${status}` : ''}${statusText ? ` ${statusText}` : ''}.`,\n requestId ? `request id: ${requestId}` : '',\n // Wix 404 for API does not exist is huge (generic 404 page) and loaded to the context\n status === 404 && errorDetails.includes('<html')\n ? 'Not found'\n : errorDetails\n ]\n .filter((str) => !!str)\n .join('\\n');\n};\n\nexport const handleWixAPIResponse = async <T = any>(response: HttpResponse) => {\n const requestId = response.headers?.['x-wix-request-id'];\n\n if (!response.status.toString().startsWith('2')) {\n const errorMessage = buildErrorMessage({\n status: response.status,\n statusText: response.statusText,\n requestId: requestId,\n responseData: response.data\n });\n throw new Error(errorMessage);\n }\n\n const responseData =\n typeof response.data === 'string'\n ? safeParseJSON(response.data)\n : response.data;\n return responseData as T;\n};\n", "export function isApiUrlAllowed(url: string) {\n let parsedUrl: URL;\n\n try {\n parsedUrl = new URL(url);\n } catch {\n return {\n isAllowed: false,\n error: `Invalid URL format: ${url}`\n };\n }\n\n const ALLOWED_HOSTNAMES = [\n 'wix.com',\n 'dev.wix.com',\n 'manage.wix.com',\n 'editor.wix.com',\n 'wixapis.com'\n ];\n\n const hostname = parsedUrl.hostname.replace('www.', '');\n const isAllowedHostname = ALLOWED_HOSTNAMES.some(\n (domain) => hostname === domain\n );\n\n if (!isAllowedHostname) {\n return {\n isAllowed: false,\n error: `Unsupported URL domain: ${hostname}. URL must be from one of the allowed domains: ${ALLOWED_HOSTNAMES.join(', ')}`\n };\n }\n\n return {\n isAllowed: true\n };\n}\n", "import { WixMcpServer } from '../wix-mcp-server.js';\n\nexport async function addVeloReadmeTools(server: WixMcpServer) {\n server.tool(\n 'VeloREADME',\n 'This tool is set for providing Velo context in order to be used by the agent for executing Velo-related tasks.',\n {},\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async () => {\n return {\n content: [\n {\n type: 'text' as const,\n text: `\n# VeloREADME\nYou are in the context of a Velo project. This tool provides foundational context for all Velo-related tasks.\n* Search the SDK or Velo documentation for the relevant APIs and use them in your code.\n* Use only the listed available APIs: $w, $widget, wix-configs-backend, wix-http-functions, wix-realtime-backend, wix-application, wix-editor, wix-widget, wix-animations-frontend, OR any Wix Sdk (e.g. '@wix/site-ecom', '@wix/site-bookings').\n* Always prioritize APIs mentioned in Wix SDK Documentation (through SearchWixSDKDocumentation) over Velo Documentation (through SearchWixVeloDocumentation). ** YOU MUST NOT USE Velo Documentation APIs BEFORE SEARCHING THE WIX SDK DOCUMENTATION. **\n* Use $w to select elements (e.g., $w('#elementId'))\n* For a list of available elements, look at files in .wix/types/{relevant-page-id}/{relevant-page-id}.d.ts\n* Use only documented methods and properties for each element type. Do not assume the existence of properties or methods not explicitly mentioned in the documentation.\n* When your response involves the use of a NPM package (including Wix SDK, e.g. \"@wix/site-ecom\" or any package starting with \"@wix/\"), ensure that you install it through the package manager (e.g., npm or yarn).\n\nThe project uses the following structure:\nsrc/backend/ [Server-side code and configuration]\nsrc/pages/ [Page-specific frontend \"Velo\" code]\nsrc/public/ [Public assets]\n.wix/types/{relevant-page-id}/{relevant-page-id}.d.ts [Type definitions for the page - includes all elements and their properties]\nwix.config.json [Site configuration (siteId)]\n `\n }\n ]\n };\n }\n );\n}\n", "import { existsSync, readFileSync } from 'fs';\nimport { homedir } from 'os';\nimport path from 'path';\n\nexport function getCliAuthToken(siteIdOrAccountsFileName: string) {\n // check if the api-key.json file exists:\n const apiKeyFileName = path.join(homedir(), `.wix/auth/api-key.json`);\n const apiKeyFileExists = existsSync(apiKeyFileName);\n\n if (apiKeyFileExists) {\n const apiKeyData = JSON.parse(readFileSync(apiKeyFileName, 'utf8'));\n return (apiKeyData.token || apiKeyData.accessToken) as string;\n }\n\n const siteTokenFileName = path.join(\n homedir(),\n `.wix/auth/${siteIdOrAccountsFileName}.json`\n );\n\n // check if the site token file exists:\n const siteTokenFileExists = existsSync(siteTokenFileName);\n if (siteTokenFileExists) {\n const authData = JSON.parse(readFileSync(siteTokenFileName, 'utf8'));\n return (authData.accessToken || authData.token) as string;\n }\n\n throw new Error(\n 'No site token or api key found. You need to authenticate with Wix CLI first.'\n );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAYA,YAASC,QAAAD,YAAA,0BAATA,YAAS;AAATA,MAAAA,WAAS,aAAA,IAAA;AAATA,MAAAA,WAAS,oBAAA,IAAA;AAATA,MAAAA,WAAS,UAAA,IAAA;AAATA,MAAAA,WAAS,WAAA,IAAA;AAAA,aAATA;IAAS,GAAA,CAAA,CAAA;AAAA,QAOTE,cAAWD,QAAAC,cAAA,0BAAXA,cAAW;AAAXA,MAAAA,aAAW,UAAA,IAAA;AAAXA,MAAAA,aAAW,IAAA,IAAA;AAAA,aAAXA;IAAW,GAAA,CAAA,CAAA;AAAA,QAKXC,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AAM,WAAW,YAAY;AAAA,EAAO,CAAC,SACnC,gBAAgB,SAAS,IAAe;AAC1C;AACA,IAAI,SAAS,SAAS,GAAG;AACvB,SAAO,IAAI,qBAAqB,UAAU,aAAa,QAAQ;AAC/D,cAAY,QAAQ,UAAU,QAAQ;AACtC,MAAI,SAAS,SAAS,SAAS,GAAG;AAChC,UAAM,mBAAmB,yBAAyB;AAElD,QAAI,kBAAkB;AACpB,aAAO,IAAI,6CAA6C;AACxD,YAAM,kBAA6C;AAAA,QACjD,oBAAoB,OAAO;AAAA,UACzB,eAAe;AAAA,QACjB;AAAA,QACA,uBAAuB,OAAO;AAAA,UAC5B,eAAe;AAAA,QACjB;AAAA,MACF;AACA,qBAAe,QAAQ,iBAAiB,CAAC,gBAAgB,CAAC;AAAA,IAC5D,OAAO;AACL,aAAO;AAAA,QACL;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAI;AACF,QAAM,UAAU,WAAW,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC;AACtD,MAAI,QAAQ,SAAS,GAAG;AACtB,WAAO,IAAI,sCAAsC,OAAO;AACxD,UAAM,iBAAiB,QAAQ,OAAO;AAAA,EACxC;AACF,SAAS,OAAO;AACd,SAAO,MAAM,gCAAgC,KAAK;AACpD;AAEA,OAAO,IAAI,iBAAiB;AAC5B,IAAM,YAAY,IAAI,qBAAqB;AAC3C,OAAO,IAAI,yBAAyB;AACpC,MAAM,OAAO,QAAQ,SAAS;AAC9B,OAAO,IAAI,qBAAqB;AAEhC,IAAI,eAAe,OAAO;AAExB,wBAAsB,MAAM;AAC9B;",
6
- "names": ["AlertType", "exports", "AlertStatus", "LogLevel", "TransactionAction", "InternalTransactions", "ComponentLoad", "ComponentPhase", "Platform", "ErrorSeverity", "_enumTypes", "require", "Object", "keys", "forEach", "key", "exports", "_dataTypes", "_interfaceTypes", "o", "DELIMITER", "DurationTrackerImpl", "constructor", "_defineProperty2", "default", "createKey", "args", "filter", "x", "join", "markTransactionStart", "fullArtifactId", "componentId", "transactionName", "transactionId", "key", "transactionStartTimes", "Date", "now", "markTransactionFinish", "finishTime", "startTime", "duration", "Math", "round", "markPhaseStart", "phaseName", "phaseStartTimes", "markPhaseFinish", "createDurationTracker", "exports", "_durationTracker", "require", "exports", "createDurationTracker", "_uuid", "require", "_durationTracker", "GlobalConfigImpl", "constructor", "_defineProperty2", "default", "createDurationTracker", "Map", "Date", "now", "getSessionId", "sessionId", "v4", "setSessionId", "getSessionTime", "sessionStart", "getReporter", "reporter", "setReporter", "initBatchQueue", "batchQueue", "getBatchQueue", "getDurationTracker", "durationTracker", "getStateValue", "key", "state", "get", "setStateValue", "value", "set", "clearState", "clear", "createGlobalConfig", "exports", "_globalConfig", "require", "exports", "createGlobalConfig", "bindPrototypeMethodsToSelf", "instance", "classFn", "prototype", "Object", "getPrototypeOf", "props", "getOwnPropertyNames", "prop", "bind", "exports", "_classUtils", "require", "Object", "keys", "forEach", "key", "exports", "last", "arr", "Array", "isArray", "length", "undefined", "exports", "union", "args", "Set", "flat", "values", "defaults", "reduce", "res", "obj", "Object", "entries", "_res", "key", "value", "deepDefaults", "dest", "rest", "keys", "map", "all", "merged", "hasValues", "filter", "_res2", "_utils", "require", "PanoramaErrorMonitorImpl", "constructor", "baseClient", "options", "bindPrototypeMethodsToSelf", "reportError", "error", "data", "addBreadcrumb", "breadcrumb", "exports", "_utils", "require", "_types", "PanoramaLoggerImpl", "constructor", "baseClient", "bindPrototypeMethodsToSelf", "info", "message", "data", "log", "LogLevel", "Info", "warn", "Warn", "error", "Error", "debug", "Debug", "exports", "_types", "require", "isCustomTransactionName", "name", "Object", "values", "InternalTransactions", "includes", "exports", "_types", "require", "isSsrEnabledInPlatform", "platform", "Platform", "Viewer", "exports", "generateGuidRegex", "exports", "_transactionUtils", "require", "Object", "keys", "forEach", "key", "exports", "_platformUtils", "_guid", "_utils", "require", "_utils2", "_generalUtils", "PanoramaTransactionImpl", "constructor", "baseClient", "name", "options", "isCustomTransactionName", "Error", "bindPrototypeMethodsToSelf", "start", "data", "reportTransactionStart", "defaults", "finish", "reportTransactionFinish", "exports", "_utils", "require", "_panoramaErrorMonitor", "_panoramaLogger", "_panoramaTransaction", "PanoramaClientForComponentImpl", "constructor", "baseClient", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "transaction", "name", "options", "PanoramaTransactionImpl", "errorMonitor", "PanoramaErrorMonitorImpl", "logger", "PanoramaLoggerImpl", "exports", "Hook", "exports", "HooksManager", "constructor", "_defineProperty2", "default", "tap", "hook", "subscriber", "subscribers", "push", "invoke", "args", "_utils", "require", "PanoramaPhaseImpl", "constructor", "name", "baseClient", "bindPrototypeMethodsToSelf", "start", "data", "reportPhaseStart", "finish", "reportPhaseFinish", "exports", "_utils", "require", "_types", "_panoramaClientComponent", "_hooksManager", "_panoramaErrorMonitor", "_panoramaLogger", "_panoramaTransaction", "_panoramaPhase", "PanoramaClientImpl", "constructor", "hooksManager", "baseClient", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "onUnhandledError", "subscriber", "tap", "Hook", "beforeUnhandledError", "reportLoadStart", "data", "options", "ComponentLoad", "InternalTransactions", "reportTransactionStart", "reportLoadFinish", "reportTransactionFinish", "phase", "name", "PanoramaPhaseImpl", "transaction", "PanoramaTransactionImpl", "errorMonitor", "PanoramaErrorMonitorImpl", "logger", "PanoramaLoggerImpl", "createClientForComponent", "client", "PanoramaClientForComponentImpl", "invoke", "afterCreateClientForComponent", "exports", "_generalUtils", "require", "extractWixHttpErrorDetailsRec", "error", "_httpClientError$resp", "Error", "res", "cause", "httpClientError", "defaults", "isWixHttpError", "requestId", "response", "headers", "extractWixHttpErrorDetails", "exports", "normalizeError", "event", "err", "message", "stack", "createUndedupableError", "Object", "assign", "create", "getPrototypeOf", "name", "Date", "now", "Math", "random", "MAX_STACK_TRACE_SIZE_BYTES", "exports", "MAX_SESSION_TIME_MS", "_constants", "require", "sanitizePayload", "payload", "errorStack", "sessionTime", "length", "MAX_STACK_TRACE_SIZE_BYTES", "truncationMessage", "truncatedErrorStack", "substring", "MAX_SESSION_TIME_MS", "exports", "_types", "require", "_errorUtils", "_payloadSanitizer", "getSessionParams", "globalConfig", "sessionId", "getSessionId", "sessionTime", "Math", "round", "getSessionTime", "buildTransactionPayload", "baseParams", "transactionParams", "data", "transactionName", "transactionAction", "logLevel", "LogLevel", "Info", "message", "requestId", "sanitizePayload", "exports", "buildPhasePayload", "phaseParams", "InternalTransactions", "ComponentPhase", "phaseName", "buildErrorPayload", "error", "constructor", "stack", "Error", "extractWixHttpErrorDetails", "errorName", "name", "errorStack", "buildLoggerPayload", "loggerParams", "_types", "require", "_durationTracker", "_payloadBuilder", "_hooksManager", "BasePanoramaClient", "constructor", "baseParams", "globalConfig", "reporter", "hooksManager", "data", "isMuted", "_defineProperty2", "default", "args", "addDataScope", "getData", "durationTracker", "getDurationTracker", "createDurationTracker", "report", "eventPayload", "reporterOverride", "getReporter", "beforeReportHookResult", "invoke", "Hook", "beforeReport", "reportTransactionStart", "name", "options", "id", "dataWithDefault", "beforeReportTransactionStart", "fullArtifactId", "componentId", "markTransactionStart", "payload", "buildTransactionPayload", "transactionName", "transactionAction", "TransactionAction", "Start", "afterReportTransactionStart", "reportTransactionFinish", "beforeReportTransactionFinish", "duration", "markTransactionFinish", "Finish", "transactionDuration", "afterReportTransactionFinish", "reportPhaseStart", "beforeReportPhaseStart", "markPhaseStart", "buildPhasePayload", "phaseName", "afterReportPhaseStart", "reportPhaseFinish", "beforeReportPhaseFinish", "markPhaseFinish", "afterReportPhaseFinish", "reportError", "error", "Error", "beforeReportError", "buildErrorPayload", "afterReportError", "addBreadcrumb", "breadcrumb", "beforeAddBreadcrumb", "afterAddBreadcrumb", "log", "logLevel", "message", "loggerParams", "beforeReportLog", "buildLoggerPayload", "afterReportLog", "exports", "_generalUtils", "require", "Scope", "constructor", "data", "_defineProperty2", "default", "getEntriesToDeepDefaults", "undefined", "Object", "fromEntries", "entries", "filter", "key", "KEYS_TO_DEEP_DEFAULTS", "includes", "addDataScope", "outerDataArray", "Array", "isArray", "deepDefaultData", "deepDefaults", "map", "_data", "defaults", "getData", "exports", "_utils", "require", "_globalConfig", "_generalUtils", "_panoramaClient", "_hooksManager", "_panoramaClientBase", "_scope", "PanoramaClientFactoryImpl", "constructor", "options", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "withGlobalConfig", "globalConfig", "withReporter", "reporter", "setMuted", "isMuted", "use", "plugin", "plugins", "push", "client", "pluginParams", "createGlobalConfig", "hooksManager", "HooksManager", "baseParams", "defaults", "data", "Scope", "addDataScope", "pluginClientParams", "baseClient", "BasePanoramaClient", "PanoramaClientImpl", "forEach", "panoramaClient", "exports", "ExceptionType", "exports", "StacktraceScriptType", "_types", "require", "exports", "Platform", "ErrorSeverity", "_globalConfig", "createGlobalConfig", "_panoramaClientFactory", "panoramaClient", "_types2", "ExceptionType", "PANORAMA_APP_DEF_ID", "exports", "PANORAMA_GRAFANA_BASE_URL", "DEV_PORTAL_BASE_URL", "SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL", "DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL", "CLICKHOUSE_REPORT_URL", "CLICKHOUSE_BATCH_REPORT_URL", "nodeReporter", "url", "silent", "eventPayload", "body", "JSON", "stringify", "logMessage", "fetch", "method", "then", "res", "ok", "console", "error", "statusText", "catch", "e", "exports", "_panoramaClient", "require", "_constants", "_reporter", "panoramaClientFactory", "options", "baseParams", "reporterOptions", "data", "factory", "panoramaClient", "withReporter", "nodeReporter", "CLICKHOUSE_REPORT_URL", "use", "undefined", "exports", "_panoramaClientNode", "require", "exports", "panoramaClientFactory", "_panoramaClient", "createGlobalConfig", "PanoramaExceptionType", "ExceptionType", "PanoramaErrorSeverity", "ErrorSeverity", "PanoramaPlatform", "Platform", "_reporter", "nodeReporter", "v", "path", "d", "b", "__assign", "o", "AssertionError", "message", "name", "constructor", "Error", "assertDefined", "target", "undefined", "assertObject", "Array", "isArray", "assertOk", "assertFunc", "assertBoolean", "assertNumber", "assertArray", "Object", "prototype", "toString", "call", "module", "exports", "defined", "object", "ok", "func", "boolean", "number", "array", "module", "exports", "mapValues", "collection", "iteratee", "Object", "keys", "reduce", "acc", "key", "filterValues", "keep", "module", "exports", "timedPromise", "promise", "message", "timeout", "timeoutPromise", "Promise", "resolve", "reject", "setTimeout", "race", "allAsObject", "promiseObject", "keys", "Object", "all", "map", "key", "then", "resolved", "reduce", "acc", "value", "i", "module", "exports", "error", "console", "debounce", "func", "wait", "immediate", "timeout", "context", "args", "arguments", "later", "apply", "callNow", "clearTimeout", "setTimeout", "module", "exports", "throttle", "func", "wait", "timeout", "args", "setTimeout", "module", "exports", "debounce", "require", "throttle", "createEvent", "event", "context", "startTime", "dt", "Date", "now", "f", "createBatch", "events", "e", "g", "optimizeBatch", "fieldCounts", "batchLen", "batch", "length", "map", "fields", "Object", "keys", "value", "field", "key", "globalFields", "reduce", "res", "BatchQueue", "_initilized", "_startTime", "_resolve", "_promise", "Promise", "resolve", "flushHandler", "delayMs", "maxBatchSize", "useThrottle", "_maxBatchSize", "_optimizeBatch", "_queue", "_flushHandler", "_flushDebounced", "flush", "_reset", "splice", "then", "push", "module", "exports", "DefaultConsentPolicy", "functional", "analytics", "__default", "getPolicy", "consentPolicyGetter", "shouldMuteNonEssentials", "policy", "shouldMuteByCategory", "category", "module", "exports", "assert", "require", "mapValues", "filterValues", "promise", "log", "BatchQueue", "shouldMuteByCategory", "shouldMuteNonEssentials", "getPolicy", "BiLogger", "options", "context", "_publishers", "publishers", "_validators", "validators", "_defaults", "defaults", "_ownDefaults", "_events", "events", "_context", "_defaultValueTimeout", "defaultValueTimeout", "_defaultContinueOnFail", "defaultContinueOnFail", "_onPublisherFailHandler", "onPublisherFailHandler", "_defaultPublisherFailHandler", "_isMuted", "isMuted", "_eventTransformer", "eventTransformer", "event", "_payloadTransformer", "payloadTransformer", "payload", "_consentPolicyGetter", "consentPolicyGetter", "_nonEssentialDefaults", "nonEssentialDefaults", "_maxBatchSize", "maxBatchSize", "_globalBatchQueue", "globalBatchQueue", "data", "defined", "object", "src", "evid", "params", "eventOrKey", "eventOrContextOrUndefined", "contextOrUndefined", "_extractEventAndContext", "policy", "fullContext", "category", "Promise", "resolve", "useBatch", "queue", "_initQueue", "transformAndQueue", "transformedEvent", "_event", "feed", "_getDefaults", "then", "fullEvent", "_getDynamicNonEssentialDefaults", "_getStaticNonEssentialDefaults", "_getPolicyFields", "_getDynamicDefaults", "Object", "assign", "validatorsResult", "length", "some", "validator", "match", "execute", "Error", "evtId", "_send", "_queue", "flush", "all", "map", "cloned", "publisher", "catch", "error", "publisherName", "name", "undefined", "AssertionError", "onFlush", "batch", "g", "_getStaticDefaults", "transformedPayload", "init", "delayMs", "useThrottle", "optimizeBatch", "err", "reject", "_withOwnDefaults", "dynamicDefaults", "v", "staticDefaults", "promises", "value", "key", "_handleDefaultsError", "timedPromise", "message", "timeout", "allAsObject", "_isca", "_encodePolicyValue", "_iscf", "_ispd", "__default", "_ise", "module", "exports", "assert", "require", "BiLoggerManager", "reset", "_handlers", "handler", "defined", "func", "push", "index", "indexOf", "splice", "logger", "forEach", "module", "exports", "manager", "assert", "require", "BiLogger", "biLoggerManager", "BatchQueue", "BiLoggerFactory", "_publishers", "_validators", "_defaults", "_nonEssentialDefaults", "_events", "_isMuted", "_eventTransformer", "_payloadTransformer", "_consentPolicyGetter", "_maxBatchSize", "_batchQueue", "publisher", "defined", "ok", "push", "validator", "execute", "match", "defaults", "object", "Object", "assign", "events", "defaultValueTimeout", "_defaultValueTimeout", "defaultContinueOnFail", "_defaultContinueOnFail", "onPublisherFailHandler", "_onPublisherFailHandler", "isMuted", "boolean", "maxBatchSize", "number", "batchQueue", "_globalBatchQueue", "transformer", "func", "getter", "context", "logger", "publishers", "validators", "eventTransformer", "payloadTransformer", "consentPolicyGetter", "nonEssentialDefaults", "globalBatchQueue", "manager", "notifyLoggerCreated", "module", "exports", "BiLoggerClientFactory", "require", "BiLogger", "biLoggerManager", "BatchQueue", "module", "exports", "BiLoggerFactory", "BiLoggerManager", "factory", "manager", "createBatchQueue", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "HttpError", "require_utils", "self", "init", "useColors", "URL", "self", "exports", "resolve", "reject", "transport", "require_cookies", "path", "require_axios", "HttpClient", "require_types", "StandaloneNodeLogger", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "isNode", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "require_whitelist", "HttpError", "require_bind", "require_utils", "require_enhanceError", "require_createError", "require_settle", "require_isAbsoluteURL", "require_combineURLs", "require_buildFullPath", "require_buildURL", "require_package", "require_http", "resolve", "reject", "transport", "__importStar", "req", "__importStar", "__exportStar", "__importStar", "__importDefault", "__importDefault", "__importStar", "__importDefault", "require_InterceptorManager", "require_normalizeHeaderName", "require_cookies", "path", "require_parseHeaders", "require_isURLSameOrigin", "require_xhr", "require_defaults", "require_transformData", "require_isCancel", "require_dispatchRequest", "require_mergeConfig", "require_validator", "require_Axios", "require_Cancel", "require_CancelToken", "require_spread", "require_isAxiosError", "require_axios", "require_axios", "HttpClient", "require_types", "server", "server", "server", "server", "z", "server", "isWixOne", "z", "captureException", "captureException", "server", "uri", "import_http_client", "z", "server", "z", "server", "homedir", "path"]
3
+ "sources": ["../../../node_modules/@wix/panorama-common-shared/src/types/enum-types.ts", "../../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js", "../../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js", "../../../node_modules/@wix/panorama-common-shared/src/types/index.ts", "../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js", "../../../node_modules/@babel/runtime/helpers/typeof.js", "../../../node_modules/@babel/runtime/helpers/toPrimitive.js", "../../../node_modules/@babel/runtime/helpers/toPropertyKey.js", "../../../node_modules/@babel/runtime/helpers/defineProperty.js", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/duration-tracker/duration-tracker.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/duration-tracker/index.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/global-config/global-config.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/global-config/index.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/utils/class-utils.ts", "../../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/src/utils/index.ts", "../../../node_modules/@wix/panorama-client/src/utils/general-utils.ts", "../../../node_modules/@wix/panorama-client/src/panorama-error-monitor.ts", "../../../node_modules/@wix/panorama-client/src/panorama-logger.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/transaction-utils.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/platform-utils.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/guid.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/index.ts", "../../../node_modules/@wix/panorama-client/src/panorama-transaction.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-component.ts", "../../../node_modules/@wix/panorama-client/src/plugins/hooks-manager.ts", "../../../node_modules/@wix/panorama-client/src/panorama-phase.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client.ts", "../../../node_modules/@wix/panorama-client/src/utils/error-utils.ts", "../../../node_modules/@wix/panorama-client/src/constants.ts", "../../../node_modules/@wix/panorama-client/src/lib/payload-sanitizer.ts", "../../../node_modules/@wix/panorama-client/src/lib/payload-builder.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-base.ts", "../../../node_modules/@wix/panorama-client/src/lib/scope.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-factory.ts", "../../../node_modules/@wix/panorama-client/src/types.ts", "../../../node_modules/@wix/panorama-client/src/index.ts", "../../../node_modules/@wix/panorama-common-shared/src/constants.ts", "../../../node_modules/@wix/panorama-client-node/src/reporter.ts", "../../../node_modules/@wix/panorama-client-node/src/panorama-client-node.ts", "../../../node_modules/@wix/panorama-client-node/src/index.ts", "../../../node_modules/tslib/tslib.es6.mjs", "../../../node_modules/@wix/wix-bi-logger-client/lib/assert.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/collections.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/promise.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/log.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/debounce.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/throttle.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/batch-queue.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/consent-policy.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger-manager.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger-factory.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/base-64/base64.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/ms/index.js", "../../../node_modules/debug/src/common.js", "../../../node_modules/debug/src/browser.js", "../../../node_modules/supports-color/node_modules/has-flag/index.js", "../../../node_modules/supports-color/index.js", "../../../node_modules/debug/src/node.js", "../../../node_modules/debug/src/index.js", "../../../node_modules/follow-redirects/debug.js", "../../../node_modules/follow-redirects/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/package.json", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/adapters/http.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/index-node.ts", "../../../node_modules/@wix/standalone-node-bi-logger/src/index.ts", "../../../node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/@wix/http-client/node_modules/axios/package.json", "../../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/http.js", "../../../node_modules/agent-base/src/helpers.ts", "../../../node_modules/agent-base/src/index.ts", "../../../node_modules/http-proxy-agent/src/index.ts", "../../../node_modules/@wix/http-client/node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../../../node_modules/@wix/http-client/node_modules/https-proxy-agent/src/index.ts", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/http-client/node_modules/axios/index.js", "../../../node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/http-client/src/index-node.ts", "../src/infra/sentry.ts", "../src/bin.ts", "../src/docs/docs.ts", "../src/infra/logger.ts", "../src/docs/semanticSearch.ts", "../src/constants.ts", "../src/docs/fetch-article.ts", "../../../node_modules/dedent/dist/dedent.mjs", "../src/config/default-config.ts", "../src/docs/get-to-know.ts", "../src/docs/create-site-guide.ts", "../src/cli-tools/cli.ts", "../src/wix-mcp-server.ts", "../../../node_modules/@wix/bi-logger-api-infra-data/src/v2/index.ts", "../src/infra/panorama.ts", "../src/infra/bi-logger.ts", "../src/infra/environment.ts", "../src/resources/docs.ts", "../src/api-call/index.ts", "../src/tool-utils.ts", "../src/api-call/validation.ts", "../src/api-call/upload-image-tool.ts", "../src/docs/velo-readme.ts", "../src/cli-tools/utils.ts"],
4
+ "sourcesContent": ["export enum AlertType {\n SuccessRate = 'SuccessRate',\n SuccessRateQuality = 'SuccessRateQuality',\n Duration = 'Duration',\n ErrorRate = 'ErrorRate',\n}\n\nexport enum AlertStatus { // lowercase, because that's how Grafana sends it\n Alerting = 'alerting',\n Ok = 'ok',\n}\n\nexport enum LogLevel {\n Info = 'INFO',\n Warn = 'WARN',\n Error = 'ERROR',\n Debug = 'DEBUG',\n}\n\nexport enum TransactionAction {\n Start = 'START',\n Finish = 'FINISH',\n}\n\nexport const InternalTransactions = {\n ComponentLoad: 'PANORAMA_COMPONENT_LOAD',\n ComponentPhase: 'PANORAMA_COMPONENT_PHASE',\n} as const;\n\nexport type PhaseName = string;\n\nexport enum Platform {\n Standalone = 'standalone',\n BusinessManager = 'business-manager',\n Viewer = 'viewer',\n Editor = 'editor',\n EditorSettings = 'editor:settings',\n Mobile = 'mobile',\n Standards = 'standards',\n DevPortal = 'dev-portal',\n}\n\n// This mirrors Sentry severity levels\nexport enum ErrorSeverity {\n Fatal = 'fatal',\n Error = 'error',\n Warning = 'warning',\n Log = 'log',\n Info = 'info',\n Debug = 'debug',\n Critical = 'critical',\n}\n", "\"use strict\";\n\nexports.__esModule = true;\n//# sourceMappingURL=data-types.js.map", "\"use strict\";\n\nexports.__esModule = true;\n//# sourceMappingURL=interface-types.js.map", "export * from './enum-types';\nexport * from './data-types';\nexport * from './interface-types';\n", "function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "const DELIMITER = ' | ';\n\nexport interface DurationTracker {\n markTransactionStart(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ): void;\n\n markTransactionFinish(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ): number;\n\n markPhaseStart(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ): void;\n\n markPhaseFinish(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ): number;\n}\n\nclass DurationTrackerImpl implements DurationTracker {\n private transactionStartTimes: Record<string, number> = {};\n private phaseStartTimes: Record<string, number> = {};\n\n private createKey(...args: (number | string | undefined)[]) {\n return args.filter((x) => !!x).join(DELIMITER);\n }\n\n markTransactionStart(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ) {\n const key = this.createKey(\n fullArtifactId,\n componentId,\n transactionName,\n transactionId,\n );\n\n this.transactionStartTimes[key] = Date.now();\n }\n\n markTransactionFinish(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ) {\n const key = this.createKey(\n fullArtifactId,\n componentId,\n transactionName,\n transactionId,\n );\n const finishTime = Date.now();\n const startTime = this.transactionStartTimes[key] || finishTime;\n const duration = Math.round(finishTime - startTime);\n\n this.transactionStartTimes[key] = 0;\n\n return duration;\n }\n\n markPhaseStart(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ) {\n const key = this.createKey(fullArtifactId, componentId, phaseName);\n\n this.phaseStartTimes[key] = Date.now();\n }\n\n markPhaseFinish(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ) {\n const key = this.createKey(fullArtifactId, componentId, phaseName);\n const finishTime = Date.now();\n const startTime = this.phaseStartTimes[key] || finishTime;\n const duration = Math.round(finishTime - startTime);\n\n this.phaseStartTimes[key] = 0;\n\n return duration;\n }\n}\n\nexport const createDurationTracker = () => new DurationTrackerImpl();\n", "export {\n type DurationTracker,\n createDurationTracker,\n} from './duration-tracker';\n", "import { v4 } from 'uuid';\nimport type {\n EventPayload,\n BatchQueue,\n Reporter,\n} from '@wix/panorama-common-shared/types';\nimport {\n type DurationTracker,\n createDurationTracker,\n} from '../duration-tracker';\n\nexport interface GlobalConfig<\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n> {\n getSessionId(): string;\n\n setSessionId(sessionId: string): void;\n\n getSessionTime(): number;\n\n getReporter(): Reporter<Payload> | null;\n\n setReporter(reporter: Reporter<Payload>): void;\n\n initBatchQueue(batchQueue: BatchQueue): void;\n\n getBatchQueue(): BatchQueue;\n\n getStateValue<K extends keyof State>(key: K): State[K];\n\n setStateValue<K extends keyof State>(key: K, value: State[K]): void;\n\n getDurationTracker(): DurationTracker;\n\n clearState(): void;\n}\n\nclass GlobalConfigImpl<\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n> implements GlobalConfig<Payload, State>\n{\n private sessionId: string = '';\n private reporter: Reporter<Payload> | null = null;\n private batchQueue: BatchQueue | null = null;\n private durationTracker = createDurationTracker();\n private readonly state = new Map();\n private readonly sessionStart = Date.now();\n\n getSessionId() {\n this.sessionId = this.sessionId || v4();\n\n return this.sessionId;\n }\n\n setSessionId(sessionId: string) {\n this.sessionId = sessionId;\n }\n\n getSessionTime() {\n return Date.now() - this.sessionStart;\n }\n\n getReporter() {\n return this.reporter;\n }\n\n setReporter(reporter: Reporter<Payload>) {\n this.reporter = reporter;\n }\n\n initBatchQueue(batchQueue: BatchQueue) {\n this.batchQueue = this.batchQueue ?? batchQueue;\n }\n\n getBatchQueue(): BatchQueue {\n return this.batchQueue!;\n }\n\n getDurationTracker() {\n return this.durationTracker;\n }\n\n getStateValue<K extends keyof State>(key: K): State[K] {\n return this.state.get(key);\n }\n\n setStateValue<K extends keyof State>(key: K, value: State[K]) {\n this.state.set(key, value);\n }\n\n clearState() {\n this.state.clear();\n this.durationTracker = createDurationTracker();\n }\n}\n\nexport const createGlobalConfig = <\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n>(): GlobalConfig<Payload, State> => new GlobalConfigImpl<Payload, State>();\n", "export { createGlobalConfig } from './global-config';\nexport type { GlobalConfig } from './global-config';\n", "export const bindPrototypeMethodsToSelf = (\n instance: any,\n classFn?: Function,\n) => {\n const prototype = classFn\n ? classFn.prototype\n : Object.getPrototypeOf(instance);\n\n const props = Object.getOwnPropertyNames(prototype);\n\n for (const prop of props) {\n if (prop === 'constructor' || typeof prototype[prop] !== 'function') {\n continue;\n }\n\n instance[prop] = prototype[prop].bind(instance);\n }\n};\n", "export * from './class-utils';\n", "export const last = (arr?: any[]) =>\n Array.isArray(arr) ? arr[arr.length - 1] : undefined;\n\nexport const union = <T>(...args: T[][]) => [...new Set(args.flat()).values()];\n\n/**\n * The reason spread operator is not used here is because of its behavior when passing an entry with undefined value explicitly:\n * const a = { hello: 'world' }\n * const b = {...a, hello: undefined }; // {hello: undefined}\n * We want to ignore the undefined value and use the defined value from the previous object instead.\n */\nexport const defaults = <T extends Record<string, any>>(\n ...args: (T | undefined)[]\n) =>\n args.reduce<T>(\n (res, obj) =>\n Object.entries(obj ?? {}).reduce((_res, [key, value]) => {\n if (typeof _res[key] === 'undefined' && typeof value !== 'undefined') {\n (_res as Record<string, any>)[key] = value;\n }\n\n return _res;\n }, res),\n {} as T,\n );\n\nexport const deepDefaults = <T extends Record<string, any>>(\n dest?: T,\n ...rest: (T | undefined)[]\n): T | undefined => {\n const keys = union<keyof T>(...rest.map((value) => Object.keys(value ?? {})));\n const all = [dest, ...rest];\n\n return keys.reduce<T | undefined>(\n (res, key) => {\n const values = all.map((value) => value?.[key]);\n const merged = defaults(...(values as [T[keyof T]]));\n\n const hasValues =\n Object.values(merged).filter((value) => typeof value !== 'undefined')\n .length > 0;\n\n if (hasValues) {\n res = res ?? ({} as T);\n res[key] = merged;\n } else {\n delete res?.[key];\n }\n\n return res;\n },\n dest ? { ...dest } : dest,\n );\n};\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type { ErrorUserData } from '@wix/panorama-common-shared/types';\nimport type { Breadcrumb, ErrorMonitorOptions } from './types';\nimport { BasePanoramaClient } from './panorama-client-base';\n\nexport interface PanoramaErrorMonitor<T extends ErrorUserData> {\n reportError(error: Error, data?: T): void;\n\n addBreadcrumb(breadcrumb: Breadcrumb): void;\n}\n\nexport class PanoramaErrorMonitorImpl<T extends ErrorUserData> {\n constructor(\n private readonly baseClient: BasePanoramaClient,\n private readonly options?: ErrorMonitorOptions,\n ) {\n bindPrototypeMethodsToSelf(this);\n }\n\n reportError(error: Error, data?: T) {\n this.baseClient.reportError(error, data, this.options);\n }\n\n addBreadcrumb(breadcrumb: Breadcrumb) {\n this.baseClient.addBreadcrumb(breadcrumb);\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport { BasePanoramaClient } from './panorama-client-base';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\n\nexport interface PanoramaLogger {\n info(message: string, data?: Record<string, any>): void;\n\n warn(message: string, data?: Record<string, any>): void;\n\n error(message: string, data?: Record<string, any>): void;\n\n debug(message: string, data?: Record<string, any>): void;\n}\n\nexport class PanoramaLoggerImpl implements PanoramaLogger {\n constructor(private readonly baseClient: BasePanoramaClient) {\n bindPrototypeMethodsToSelf(this);\n }\n\n public info(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Info, message, data);\n }\n\n public warn(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Warn, message, data);\n }\n\n public error(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Error, message, data);\n }\n\n public debug(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Debug, message, data);\n }\n}\n", "import { InternalTransactions } from '../types';\n\ntype InternalTransactionsName =\n (typeof InternalTransactions)[keyof typeof InternalTransactions];\n\nexport type CustomTransactionName<T extends string> =\n T extends InternalTransactionsName ? never : T;\n\nexport const isCustomTransactionName = (\n name: InternalTransactionsName | string,\n) =>\n !Object.values(InternalTransactions).includes(\n name as InternalTransactionsName,\n );\n", "import { Platform } from '../types';\n\nexport const isSsrEnabledInPlatform = (platform: Platform) =>\n platform === Platform.Viewer;\n", "export const generateGuidRegex = () =>\n /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/;\n", "export * from './transaction-utils';\nexport * from './platform-utils';\nexport * from './guid';\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type { TransactionUserData } from '@wix/panorama-common-shared/types';\nimport {\n type CustomTransactionName,\n isCustomTransactionName,\n} from '@wix/panorama-common-shared/utils';\nimport { type BasePanoramaClient } from './panorama-client-base';\nimport type { TransactionOptions } from './types';\nimport { defaults } from './utils/general-utils';\n\nexport interface PanoramaTransaction {\n start: (data?: TransactionUserData, options?: TransactionOptions) => void;\n finish: (data?: TransactionUserData, options?: TransactionOptions) => void;\n}\n\nexport class PanoramaTransactionImpl implements PanoramaTransaction {\n constructor(\n private readonly baseClient: BasePanoramaClient,\n private readonly name: CustomTransactionName<string>,\n private readonly options?: TransactionOptions,\n ) {\n if (!isCustomTransactionName(name)) {\n throw new Error(`\"${name}\" is an internal transaction and can't be used`);\n }\n\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n start(data?: TransactionUserData, options?: TransactionOptions) {\n return this.baseClient.reportTransactionStart(\n this.name,\n defaults(options, this.options),\n data,\n );\n }\n\n finish(data?: TransactionUserData, options?: TransactionOptions) {\n return this.baseClient.reportTransactionFinish(\n this.name,\n defaults(options, this.options),\n data,\n );\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport { type CustomTransactionName } from '@wix/panorama-common-shared/utils';\nimport { type BasePanoramaClient } from './panorama-client-base';\nimport {\n type PanoramaErrorMonitor,\n PanoramaErrorMonitorImpl,\n} from './panorama-error-monitor';\nimport { type PanoramaLogger, PanoramaLoggerImpl } from './panorama-logger';\nimport type {\n ErrorMonitorOptionsForComponent,\n ErrorMonitorUserData,\n TransactionOptions,\n} from './types';\nimport {\n type PanoramaTransaction,\n PanoramaTransactionImpl,\n} from './panorama-transaction';\n\ninterface Options {\n baseClient: BasePanoramaClient;\n}\n\nexport interface PanoramaClientForComponent {\n transaction<T extends string>(\n name: CustomTransactionName<T>,\n options?: TransactionOptions,\n ): PanoramaTransaction;\n\n errorMonitor(\n options?: ErrorMonitorOptionsForComponent,\n ): PanoramaErrorMonitor<ErrorMonitorUserData>;\n\n logger(): PanoramaLogger;\n}\n\nexport class PanoramaClientForComponentImpl\n implements PanoramaClientForComponent\n{\n private baseClient: BasePanoramaClient;\n\n constructor({ baseClient }: Options) {\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n transaction(\n name: CustomTransactionName<string>,\n options?: TransactionOptions,\n ) {\n return new PanoramaTransactionImpl(this.baseClient, name, options);\n }\n\n errorMonitor(\n options?: ErrorMonitorOptionsForComponent,\n ): PanoramaErrorMonitor<ErrorMonitorUserData> {\n return new PanoramaErrorMonitorImpl(this.baseClient, options);\n }\n\n logger(): PanoramaLogger {\n return new PanoramaLoggerImpl(this.baseClient);\n }\n}\n", "import type {\n EventPayload,\n ErrorUserData,\n TransactionUserData,\n PhaseUserData,\n} from '@wix/panorama-common-shared/types';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\nimport type { PanoramaClientForComponent } from '../panorama-client-component';\nimport type { Breadcrumb, ErrorData, ErrorMonitorOptions } from '../types';\n\nexport enum Hook {\n afterCreateClientForComponent,\n beforeReport,\n beforeReportTransactionStart,\n afterReportTransactionStart,\n beforeReportTransactionFinish,\n afterReportTransactionFinish,\n beforeReportPhaseStart,\n afterReportPhaseStart,\n beforeReportPhaseFinish,\n afterReportPhaseFinish,\n beforeReportError,\n afterReportError,\n beforeAddBreadcrumb,\n afterAddBreadcrumb,\n beforeReportLog,\n afterReportLog,\n beforeUnhandledError,\n}\n\ntype Subscriber<T extends any[]> = (...args: T) => false | void;\n\ntype ArgsByHook = {\n [Hook.afterCreateClientForComponent]: [client: PanoramaClientForComponent];\n [Hook.beforeReport]: [eventPayload: EventPayload];\n [Hook.beforeReportTransactionStart]: [\n transactionName: string,\n data?: TransactionUserData,\n ];\n [Hook.beforeReportTransactionFinish]: [\n transactionName: string,\n data?: TransactionUserData,\n ];\n [Hook.afterReportTransactionStart]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.afterReportTransactionFinish]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.beforeReportPhaseStart]: [\n transactionName: string,\n data?: PhaseUserData,\n ];\n [Hook.beforeReportPhaseFinish]: [\n transactionName: string,\n data?: PhaseUserData,\n ];\n [Hook.afterReportPhaseStart]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.afterReportPhaseFinish]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.beforeReportError]: [\n error: Error,\n data?: ErrorData & ErrorUserData,\n errorMonitorOptions?: ErrorMonitorOptions,\n ];\n [Hook.afterReportError]: [\n error: Error,\n data?: ErrorData & ErrorUserData,\n errorMonitorOptions?: ErrorMonitorOptions,\n ];\n [Hook.beforeAddBreadcrumb]: [Breadcrumb];\n [Hook.afterAddBreadcrumb]: [Breadcrumb];\n [Hook.beforeReportLog]: [\n logLevel: LogLevel,\n message: string,\n data?: Record<string, any>,\n ];\n [Hook.afterReportLog]: [\n logLevel: LogLevel,\n message: string,\n data?: Record<string, any>,\n ];\n [Hook.beforeUnhandledError]: [error?: Error];\n};\n\ntype SubscribersByHook = {\n [P in Hook]?: Subscriber<ArgsByHook[P]>[];\n};\n\nexport type SubscriberByHook = {\n [P in Hook]: Subscriber<ArgsByHook[P]>;\n};\n\nexport class HooksManager {\n private readonly subscribers: SubscribersByHook = {};\n\n tap<T extends Hook>(hook: T, subscriber: Subscriber<ArgsByHook[T]>) {\n this.subscribers[hook] = this.subscribers[hook] || [];\n this.subscribers[hook]!.push(subscriber);\n }\n\n invoke<T extends Hook>(hook: T, ...args: ArgsByHook[T]): boolean {\n const subscribers = this.subscribers[hook];\n\n if (!subscribers) {\n return true;\n }\n\n for (const subscriber of subscribers) {\n if (subscriber(...args) === false) {\n return false;\n }\n }\n\n return true;\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport {\n PhaseName,\n type TransactionUserData,\n} from '@wix/panorama-common-shared/types';\nimport { type BasePanoramaClient } from './panorama-client-base';\n\nexport interface PanoramaPhase {\n start: (data?: TransactionUserData) => void;\n finish: (data?: TransactionUserData) => void;\n}\n\nexport class PanoramaPhaseImpl implements PanoramaPhase {\n constructor(\n private readonly name: PhaseName,\n private readonly baseClient: BasePanoramaClient,\n ) {\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n start(data?: TransactionUserData) {\n return this.baseClient.reportPhaseStart(this.name, data);\n }\n\n finish(data?: TransactionUserData) {\n return this.baseClient.reportPhaseFinish(this.name, data);\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport {\n InternalTransactions,\n type PhaseName,\n type TransactionUserData,\n} from '@wix/panorama-common-shared/types';\nimport { type CustomTransactionName } from '@wix/panorama-common-shared/utils';\nimport {\n type PanoramaClientForComponent,\n PanoramaClientForComponentImpl,\n} from './panorama-client-component';\nimport type { BasePanoramaClient } from './panorama-client-base';\nimport {\n Hook,\n type HooksManager,\n type SubscriberByHook,\n} from './plugins/hooks-manager';\nimport {\n type PanoramaErrorMonitor,\n PanoramaErrorMonitorImpl,\n} from './panorama-error-monitor';\nimport { PanoramaLogger, PanoramaLoggerImpl } from './panorama-logger';\nimport type {\n ErrorMonitorOptions,\n ErrorMonitorUserData,\n TransactionOptions,\n} from './types';\nimport {\n type PanoramaTransaction,\n PanoramaTransactionImpl,\n} from './panorama-transaction';\nimport { type PanoramaPhase, PanoramaPhaseImpl } from './panorama-phase';\n\ninterface Options {\n hooksManager: HooksManager;\n baseClient: BasePanoramaClient;\n}\n\nexport interface PanoramaClient {\n onUnhandledError(\n subscriber: SubscriberByHook[Hook.beforeUnhandledError],\n ): void;\n\n reportLoadStart(\n data?: TransactionUserData,\n options?: TransactionOptions,\n ): void;\n\n reportLoadFinish(\n data?: TransactionUserData,\n options?: TransactionOptions,\n ): void;\n\n phase(name: PhaseName): PanoramaPhase;\n\n transaction<T extends string>(\n name: CustomTransactionName<T>,\n options?: TransactionOptions,\n ): PanoramaTransaction;\n\n errorMonitor(\n options?: ErrorMonitorOptions,\n ): PanoramaErrorMonitor<ErrorMonitorUserData>;\n\n logger(): PanoramaLogger;\n\n createClientForComponent(): PanoramaClientForComponent;\n}\n\nexport class PanoramaClientImpl implements PanoramaClient {\n private baseClient: BasePanoramaClient;\n private hooksManager: HooksManager;\n\n constructor({ hooksManager, baseClient }: Options) {\n this.baseClient = baseClient;\n this.hooksManager = hooksManager;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n onUnhandledError(subscriber: SubscriberByHook[Hook.beforeUnhandledError]) {\n this.hooksManager.tap(Hook.beforeUnhandledError, subscriber);\n }\n\n reportLoadStart(data?: TransactionUserData, options?: TransactionOptions) {\n const { ComponentLoad } = InternalTransactions;\n\n return this.baseClient.reportTransactionStart(ComponentLoad, options, data);\n }\n\n reportLoadFinish(data?: TransactionUserData, options?: TransactionOptions) {\n const { ComponentLoad } = InternalTransactions;\n\n return this.baseClient.reportTransactionFinish(\n ComponentLoad,\n options,\n data,\n );\n }\n\n phase(name: PhaseName) {\n return new PanoramaPhaseImpl(name, this.baseClient);\n }\n\n transaction(\n name: CustomTransactionName<string>,\n options?: TransactionOptions,\n ) {\n return new PanoramaTransactionImpl(this.baseClient, name, options);\n }\n\n errorMonitor(\n options?: ErrorMonitorOptions,\n ): PanoramaErrorMonitor<ErrorMonitorUserData> {\n return new PanoramaErrorMonitorImpl<ErrorMonitorUserData>(\n this.baseClient,\n options,\n );\n }\n\n logger(): PanoramaLogger {\n return new PanoramaLoggerImpl(this.baseClient);\n }\n\n createClientForComponent(): PanoramaClientForComponent {\n const client = new PanoramaClientForComponentImpl({\n baseClient: this.baseClient,\n });\n\n this.hooksManager.invoke(Hook.afterCreateClientForComponent, client);\n\n return client;\n }\n}\n", "import type { Event } from '@sentry/browser';\nimport type { IHttpError } from '@wix/http-client';\nimport { WixHttpErrorDetails } from '../types';\nimport { defaults } from './general-utils';\n\nconst extractWixHttpErrorDetailsRec = (\n error?: Error | IHttpError,\n): WixHttpErrorDetails => {\n if (!(error instanceof Error)) {\n return {};\n }\n\n const res = extractWixHttpErrorDetailsRec(error.cause as any);\n const httpClientError = error as IHttpError;\n\n return defaults<WixHttpErrorDetails>(res, {\n isWixHttpError: httpClientError.isWixHttpError,\n requestId:\n httpClientError.response?.headers?.['x-wix-request-id'] ??\n httpClientError.requestId,\n });\n};\n\nexport const extractWixHttpErrorDetails = (\n error?: Error | IHttpError,\n): WixHttpErrorDetails =>\n defaults<WixHttpErrorDetails>(extractWixHttpErrorDetailsRec(error), {\n isWixHttpError: false,\n requestId: '',\n });\n\nexport const normalizeError = (event: Event, error?: unknown): Error => {\n if (!(error instanceof Error)) {\n const err = new Error(typeof error === 'string' ? error : event.message);\n\n delete err.stack;\n\n return err;\n }\n\n return error;\n};\n\nexport const createUndedupableError = (error: Error) => {\n const { message, stack, cause } = error;\n\n const res = Object.assign(Object.create(Object.getPrototypeOf(error)), {\n name: `${Date.now() + Math.random()}`,\n message,\n stack,\n cause,\n });\n\n return res;\n};\n", "export const MAX_STACK_TRACE_SIZE_BYTES = 32 * 1024;\nexport const MAX_SESSION_TIME_MS = 24 * 60 * 60 * 1000; // 1 day\n", "import type { EventPayload } from '@wix/panorama-common-shared/types';\nimport { MAX_SESSION_TIME_MS, MAX_STACK_TRACE_SIZE_BYTES } from '../constants';\n\nexport const sanitizePayload = (payload: EventPayload) => {\n const { errorStack, sessionTime } = payload;\n\n if (errorStack && errorStack.length > MAX_STACK_TRACE_SIZE_BYTES) {\n const truncationMessage = `...[truncated by Panorama client to ${\n MAX_STACK_TRACE_SIZE_BYTES / 1024\n }kb]`;\n\n const truncatedErrorStack = errorStack.substring(\n 0,\n MAX_STACK_TRACE_SIZE_BYTES - truncationMessage.length,\n );\n\n payload = {\n ...payload,\n errorStack: `${truncatedErrorStack}${truncationMessage}`,\n };\n }\n\n if (sessionTime && sessionTime > MAX_SESSION_TIME_MS) {\n payload = {\n ...payload,\n sessionTime: MAX_SESSION_TIME_MS,\n };\n }\n\n return payload;\n};\n", "import {\n InternalTransactions,\n LogLevel,\n} from '@wix/panorama-common-shared/types';\nimport type {\n BaseParams,\n TransactionParams,\n InternalParams,\n ErrorUserData,\n TransactionUserData,\n EventPayload,\n TransactionEventPayload,\n ErrorEventPayload,\n LoggerParams,\n PhaseUserData,\n PhaseParams,\n PhaseEventPayload,\n} from '@wix/panorama-common-shared/types';\nimport type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport { extractWixHttpErrorDetails } from '../utils/error-utils';\nimport { sanitizePayload } from './payload-sanitizer';\n\nconst getSessionParams = (\n globalConfig: GlobalConfig,\n): Pick<InternalParams, 'sessionId' | 'sessionTime'> => {\n const sessionId = globalConfig.getSessionId();\n const sessionTime = Math.round(globalConfig.getSessionTime());\n\n return { sessionId, sessionTime };\n};\n\nexport const buildTransactionPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n transactionParams: TransactionParams,\n data?: TransactionUserData,\n): TransactionEventPayload => {\n const { transactionName, transactionAction } = transactionParams;\n\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const logLevel = LogLevel.Info;\n const message = `Panorama ${transactionName} ${transactionAction}`;\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...transactionParams,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n message,\n data,\n });\n};\n\nexport const buildPhasePayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n phaseParams: PhaseParams,\n data?: PhaseUserData,\n): PhaseEventPayload => {\n const transactionName = InternalTransactions.ComponentPhase;\n const { phaseName, transactionAction } = phaseParams;\n\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const logLevel = LogLevel.Info;\n const message = `Panorama ${phaseName} phase ${transactionAction}`;\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...phaseParams,\n transactionName,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n message,\n data,\n });\n};\n\nexport const buildErrorPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n error: Error,\n data?: ErrorUserData,\n): ErrorEventPayload => {\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const { constructor, message, stack = '' } = error;\n const logLevel = LogLevel.Error;\n const { requestId } = extractWixHttpErrorDetails(error);\n\n return sanitizePayload({\n ...baseParams,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n data,\n errorName: data?.errorName ?? constructor.name,\n errorStack: stack,\n message,\n });\n};\n\nexport const buildLoggerPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n loggerParams: LoggerParams,\n): EventPayload => {\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...loggerParams,\n sessionId,\n sessionTime,\n requestId,\n });\n};\n", "// import type { IHttpError } from '@wix/http-client';\nimport type {\n Reporter,\n BaseParams,\n LogLevel,\n ErrorUserData,\n TransactionUserData,\n EventPayload,\n UserParams,\n PhaseUserData,\n} from '@wix/panorama-common-shared/types';\nimport { TransactionAction } from '@wix/panorama-common-shared/types';\nimport type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport {\n createDurationTracker,\n type DurationTracker,\n} from '@wix/panorama-common/duration-tracker';\nimport {\n buildErrorPayload,\n buildLoggerPayload,\n buildPhasePayload,\n buildTransactionPayload,\n} from './lib/payload-builder';\nimport { Hook, type HooksManager } from './plugins/hooks-manager';\nimport type {\n Breadcrumb,\n ErrorMonitorOptions,\n TransactionOptions,\n} from './types';\nimport type { Scope } from './lib/scope';\n\ninterface Options {\n baseParams: BaseParams;\n globalConfig: GlobalConfig;\n reporter: Reporter;\n hooksManager: HooksManager;\n data: Scope<NonNullable<UserParams['data']>>;\n isMuted: () => boolean;\n}\n\nexport class BasePanoramaClient {\n private durationTracker: DurationTracker;\n private readonly baseParams: BaseParams;\n private readonly globalConfig: GlobalConfig;\n private readonly reporter: Reporter;\n private readonly hooksManager: HooksManager;\n private readonly data: Scope<NonNullable<UserParams['data']>>;\n private readonly isMuted: () => boolean;\n\n constructor({\n baseParams,\n globalConfig,\n reporter,\n hooksManager,\n data,\n isMuted,\n }: Options) {\n this.baseParams = baseParams;\n this.globalConfig = globalConfig;\n this.reporter = reporter;\n this.hooksManager = hooksManager;\n this.data = data;\n this.isMuted = isMuted;\n\n // For backward compatibility in cases where GlobalConfig version is older than what we expect\n this.durationTracker =\n typeof globalConfig.getDurationTracker === 'function'\n ? globalConfig.getDurationTracker()\n : createDurationTracker();\n }\n\n private report(eventPayload: EventPayload) {\n if (this.isMuted()) {\n return;\n }\n\n const reporterOverride = this.globalConfig.getReporter();\n const beforeReportHookResult = this.hooksManager.invoke(\n Hook.beforeReport,\n eventPayload,\n );\n\n if (typeof reporterOverride === 'function') {\n reporterOverride(eventPayload);\n return;\n }\n\n if (!beforeReportHookResult) {\n return;\n }\n\n this.reporter(eventPayload);\n }\n\n getErrorMonitorDataWithDefaults = (\n ...args: (ErrorUserData | undefined)[]\n ) => {\n return this.data.addDataScope(args).getData();\n };\n\n reportTransactionStart(\n name: string,\n options: TransactionOptions = {},\n data?: TransactionUserData,\n ) {\n const { id } = options;\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportTransactionStart,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n this.durationTracker.markTransactionStart(\n fullArtifactId!,\n componentId!,\n name,\n id,\n );\n\n const payload = buildTransactionPayload(\n this.globalConfig,\n this.baseParams,\n {\n transactionName: name,\n transactionAction: TransactionAction.Start,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportTransactionStart, name, payload);\n }\n\n reportTransactionFinish(\n name: string,\n options: TransactionOptions = {},\n data?: TransactionUserData,\n ) {\n const { id } = options;\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportTransactionFinish,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n const duration = this.durationTracker.markTransactionFinish(\n fullArtifactId!,\n componentId!,\n name,\n id,\n );\n\n const payload = buildTransactionPayload(\n this.globalConfig,\n this.baseParams,\n {\n transactionName: name,\n transactionAction: TransactionAction.Finish,\n transactionDuration: duration,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportTransactionFinish, name, payload);\n }\n\n reportPhaseStart(name: string, data?: PhaseUserData) {\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportPhaseStart,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n this.durationTracker.markPhaseStart(fullArtifactId!, componentId!, name);\n\n const payload = buildPhasePayload(\n this.globalConfig,\n this.baseParams,\n {\n phaseName: name,\n transactionAction: TransactionAction.Start,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportPhaseStart, name, payload);\n }\n\n reportPhaseFinish(name: string, data?: TransactionUserData) {\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportPhaseFinish,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n const duration = this.durationTracker.markPhaseFinish(\n fullArtifactId!,\n componentId!,\n name,\n );\n\n const payload = buildPhasePayload(\n this.globalConfig,\n this.baseParams,\n {\n phaseName: name,\n transactionAction: TransactionAction.Finish,\n transactionDuration: duration,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportPhaseFinish, name, payload);\n }\n\n reportError(\n error: Error,\n data?: ErrorUserData,\n options?: ErrorMonitorOptions,\n ) {\n if (!(error instanceof Error)) {\n return;\n }\n\n data = this.data.addDataScope([data, options?.data]).getData();\n\n if (\n !this.hooksManager.invoke(Hook.beforeReportError, error, data, options)\n ) {\n return;\n }\n\n const payload = buildErrorPayload(\n this.globalConfig,\n this.baseParams,\n error,\n data,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportError, error, data, options);\n }\n\n addBreadcrumb(breadcrumb: Breadcrumb) {\n if (!this.hooksManager.invoke(Hook.beforeAddBreadcrumb, breadcrumb)) {\n return;\n }\n\n // Currently the default implementation does nothing, we only invoke hooks\n\n this.hooksManager.invoke(Hook.afterAddBreadcrumb, breadcrumb);\n }\n\n log(logLevel: LogLevel, message: string, data?: Record<string, any>) {\n if (!message) {\n return;\n }\n\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n const loggerParams = {\n message,\n data: dataWithDefault,\n logLevel,\n };\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportLog,\n logLevel,\n message,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const payload = buildLoggerPayload(\n this.globalConfig,\n this.baseParams,\n loggerParams,\n );\n this.report(payload);\n\n this.hooksManager.invoke(\n Hook.afterReportLog,\n logLevel,\n message,\n dataWithDefault,\n );\n }\n}\n", "import { defaults, deepDefaults } from '../utils/general-utils';\n\nexport class Scope<T extends Record<string, any>> {\n private readonly data: T | undefined;\n private static readonly KEYS_TO_DEEP_DEFAULTS = ['tags', 'context'];\n\n constructor(data: T | undefined) {\n this.data = data;\n }\n\n private getEntriesToDeepDefaults(data: T | undefined): T | undefined {\n if (!data) {\n return undefined;\n }\n return Object.fromEntries(\n Object.entries(data).filter(([key]) =>\n Scope.KEYS_TO_DEEP_DEFAULTS.includes(key),\n ),\n ) as unknown as T;\n }\n\n addDataScope(data: T | undefined | (T | undefined)[]): Scope<T> {\n const outerDataArray = Array.isArray(data) ? data : [data];\n const deepDefaultData = deepDefaults(\n ...outerDataArray.map((_data) => this.getEntriesToDeepDefaults(_data)),\n this.getEntriesToDeepDefaults(this.data),\n );\n return new Scope(defaults(deepDefaultData, ...outerDataArray, this.data));\n }\n\n getData() {\n return this.data;\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type {\n Reporter,\n BaseParams,\n EventPayload,\n} from '@wix/panorama-common-shared/types';\nimport {\n createGlobalConfig,\n type GlobalConfig,\n} from '@wix/panorama-common/global-config';\nimport { defaults } from './utils/general-utils';\nimport { type PanoramaClient, PanoramaClientImpl } from './panorama-client';\nimport type { PluginArgs, PluginFunction } from './plugins';\nimport type { ClientOptions, FactoryOptions } from './types';\nimport { HooksManager } from './plugins/hooks-manager';\nimport { BasePanoramaClient } from './panorama-client-base';\nimport { Scope } from './lib/scope';\n\nexport interface PanoramaClientFactory<Payload extends unknown = EventPayload> {\n withGlobalConfig(\n globalConfig: GlobalConfig<Payload>,\n ): PanoramaClientFactory<Payload>;\n\n withReporter(reporter: Reporter<Payload>): PanoramaClientFactory<Payload>;\n\n setMuted(isMuted: boolean): PanoramaClientFactory<Payload>;\n\n use(\n plugin: (args: PluginArgs<Payload>) => void,\n ): PanoramaClientFactory<Payload>;\n\n client(options?: ClientOptions): PanoramaClient;\n}\n\nclass PanoramaClientFactoryImpl<Payload extends unknown = EventPayload>\n implements PanoramaClientFactory<Payload>\n{\n private globalConfig?: GlobalConfig<Payload>;\n private reporter: Reporter<Payload> = () => true;\n private plugins: PluginFunction<Payload>[] = [];\n private isMuted: boolean = false;\n\n constructor(private readonly options: FactoryOptions) {\n bindPrototypeMethodsToSelf(this);\n }\n\n withGlobalConfig(globalConfig: GlobalConfig<Payload>) {\n this.globalConfig = globalConfig;\n\n return this;\n }\n\n withReporter(reporter: Reporter<Payload>) {\n this.reporter = reporter;\n\n return this;\n }\n\n setMuted(isMuted: boolean) {\n this.isMuted = isMuted;\n\n return this;\n }\n\n use(plugin: (args: PluginArgs<Payload>) => void) {\n this.plugins.push(plugin);\n\n return this;\n }\n\n client(options: ClientOptions = {}) {\n const { pluginParams } = options;\n\n const globalConfig = this.globalConfig ?? createGlobalConfig();\n const reporter = this.reporter as any;\n const hooksManager = new HooksManager();\n const baseParams = defaults(\n options.baseParams,\n this.options.baseParams,\n ) as Required<BaseParams>;\n const data = new Scope(this.options.data).addDataScope(options.data);\n\n const pluginClientParams = pluginParams ?? {};\n\n const baseClient = new BasePanoramaClient({\n baseParams,\n globalConfig: globalConfig as unknown as GlobalConfig,\n isMuted: () => this.isMuted,\n reporter,\n hooksManager,\n data,\n });\n\n const client = new PanoramaClientImpl({\n baseClient,\n hooksManager,\n });\n\n this.plugins.forEach((plugin) =>\n plugin({\n hooksManager,\n globalConfig,\n reporter,\n baseClient,\n baseParams,\n pluginParams: pluginClientParams,\n }),\n );\n\n return client;\n }\n}\n\nexport const panoramaClient = <Payload extends unknown = EventPayload>(\n options: FactoryOptions = {},\n): PanoramaClientFactory<Payload> =>\n new PanoramaClientFactoryImpl<Payload>(options);\n", "import type {\n BaseParams,\n ErrorUserData,\n UserParams,\n} from '@wix/panorama-common-shared/types';\nimport { ErrorMonitorPluginParams, PluginParams } from './plugins';\n\nexport interface FactoryOptions {\n baseParams?: BaseParams;\n data?: UserParams['data'];\n}\n\nexport interface ClientOptions {\n baseParams?: BaseParams;\n pluginParams?: PluginParams;\n data?: UserParams['data'];\n}\n\nexport interface TransactionOptions {\n id?: number | string;\n}\n\nexport type ErrorMonitorUserData = ErrorUserData &\n Pick<ErrorData, 'exceptionType'>;\n\nexport type ErrorMonitorUserDataForComponent = ErrorUserData;\n\nexport interface ErrorMonitorOptions {\n pluginParams?: ErrorMonitorPluginParams;\n data?: ErrorUserData;\n}\n\nexport interface ErrorMonitorOptionsForComponent {\n data?: ErrorUserData;\n}\n\nexport interface Breadcrumb {\n message: string;\n}\n\nexport interface ErrorData {\n exceptionType?: ExceptionType;\n}\n\nexport enum ExceptionType {\n HANDLED = 'HANDLED',\n UNHANDLED = 'UNHANDLED',\n}\n\nexport enum StacktraceScriptType {\n WIX_SERVICE = 'WIX_SERVICE',\n WIX_APP = 'WIX_APP',\n WIX_CLI_APP = 'WIX_CLI_APP',\n WIX_CHAT = 'WIX_CHAT_WIDGET',\n BROWSER_EXTENSION = 'BROWSER_EXTENSION',\n}\n\nexport interface ArtifactData {\n artifactId: string;\n artifactVersion: string;\n scriptType: StacktraceScriptType;\n}\n\nexport interface WixHttpErrorDetails {\n isWixHttpError?: boolean;\n requestId?: string;\n}\n\nexport interface StackFrame {\n filename?: string;\n raw?: string;\n module_metadata?: any;\n}\n", "export { Platform, ErrorSeverity } from '@wix/panorama-common-shared/types';\n\nexport {\n type GlobalConfig,\n createGlobalConfig,\n} from '@wix/panorama-common/global-config';\n\nexport {\n panoramaClient,\n type PanoramaClientFactory,\n} from './panorama-client-factory';\n\nexport type { PanoramaClient } from './panorama-client';\nexport type { PanoramaClientForComponent } from './panorama-client-component';\nexport type { PluginParams } from './plugins';\nexport { ExceptionType } from './types';\nexport type { PanoramaLogger } from './panorama-logger';\n", "export const PANORAMA_APP_DEF_ID = 'b60344aa-05b6-49e0-815e-502ffab84c07';\n\nexport const PANORAMA_GRAFANA_BASE_URL =\n 'https://panorama-grafana.mon.wixprod.net';\n\nexport const DEV_PORTAL_BASE_URL = 'https://bo.wix.com/dev';\n\nexport const SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL =\n 'https://panorama-grafana.mon.wixprod.net/d/QOCglcv4z/success-rate-drop-breakdown';\n\nexport const DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL =\n 'https://panorama-grafana.mon.wixprod.net/d/2TD775vVk/duration-increase-breakdown';\n\nexport const CLICKHOUSE_REPORT_URL = 'https://panorama.wixapps.net/api/v1/log';\nexport const CLICKHOUSE_BATCH_REPORT_URL =\n 'https://panorama.wixapps.net/api/v1/bulklog';\n", "import { EventPayload } from '@wix/panorama-common-shared/types';\nimport { ReporterOptions } from './types';\n\nexport const nodeReporter =\n (url: string, { silent = false }: ReporterOptions = { silent: false }) =>\n (eventPayload: EventPayload): boolean => {\n const body = JSON.stringify({ logMessage: eventPayload });\n\n fetch(url, { method: 'POST', body })\n .then((res) => {\n if (res.ok || silent) {\n return;\n }\n\n console.error('Panorama report failed', res.statusText);\n })\n .catch((e) => {\n if (silent) {\n return;\n }\n\n console.error('Panorama report failed', e);\n });\n\n return true;\n };\n", "import {\n panoramaClient,\n type PanoramaClientFactory,\n type PluginParams,\n} from '@wix/panorama-client';\nimport type {\n EventPayload,\n BaseParams,\n UserParams,\n} from '@wix/panorama-common-shared/types';\nimport { CLICKHOUSE_REPORT_URL } from '@wix/panorama-common-shared/constants';\nimport { nodeReporter } from './reporter';\nimport type { ReporterOptions } from './types';\n\ninterface FactoryOptions {\n baseParams?: BaseParams;\n data?: UserParams['data'];\n pluginParams?: PluginParams;\n reporterOptions?: ReporterOptions;\n}\n\nexport type Factory = Omit<PanoramaClientFactory, 'use'>;\n\nexport const panoramaClientFactory = (options: FactoryOptions): Factory => {\n const { baseParams, reporterOptions, data } = options;\n\n const factory = panoramaClient<EventPayload>({\n baseParams,\n data,\n }).withReporter(nodeReporter(CLICKHOUSE_REPORT_URL, reporterOptions));\n\n // @ts-expect-error\n factory.use = undefined;\n\n return factory;\n};\n", "export {\n type Factory as PanoramaFactory,\n panoramaClientFactory,\n} from './panorama-client-node';\n\nexport {\n type PanoramaClient,\n type PanoramaClientForComponent,\n type GlobalConfig,\n createGlobalConfig,\n ExceptionType as PanoramaExceptionType,\n ErrorSeverity as PanoramaErrorSeverity,\n type PanoramaLogger,\n Platform as PanoramaPlatform,\n} from '@wix/panorama-client';\n\nexport type { EventPayload } from '@wix/panorama-common-shared/types';\n\nexport { nodeReporter } from './reporter';\n", "/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n", "'use strict'; // eslint-disable-line strict\n\nclass AssertionError extends Error {\n constructor(message) {\n super(message);\n this.name = this.constructor.name;\n }\n}\n\nfunction assertDefined(target, message) {\n if (target === undefined) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertObject(target, message) {\n if (\n target !== undefined &&\n (typeof target !== 'object' || Array.isArray(target) || target === null)\n ) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertOk(target, message) {\n if (!target) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertFunc(target, message) {\n if (target !== undefined && typeof target !== 'function') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertBoolean(target, message) {\n if (target !== undefined && typeof target !== 'boolean') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertNumber(target, message) {\n if (target !== undefined && typeof target !== 'number') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertArray(target, message) {\n if (typeof Array.isArray === 'function') {\n if (!Array.isArray(target)) {\n throw new AssertionError(message);\n }\n } else if (Object.prototype.toString.call(target) !== '[object Array]') {\n throw new AssertionError(message);\n }\n}\n\nmodule.exports.defined = assertDefined;\nmodule.exports.object = assertObject;\nmodule.exports.ok = assertOk;\nmodule.exports.func = assertFunc;\nmodule.exports.boolean = assertBoolean;\nmodule.exports.number = assertNumber;\nmodule.exports.array = assertArray;\nmodule.exports.AssertionError = AssertionError;\n", "/**\n * This callback type is called `requestCallback` and is displayed as a global symbol.\n *\n * @callback iterateeCallback\n * @param {*} Value\n * @param {string} Key\n * @param {object} Original object\n */\n/**\n * Iterates over object values\n * @param {Object} collection\n * @param {iterateeCallback} iteratee\n * @return {Object} iterated object\n */\nmodule.exports.mapValues = function(collection, iteratee) {\n if (!collection) {\n return {};\n }\n\n return Object.keys(collection).reduce((acc, key) => {\n acc[key] = iteratee(collection[key], key, collection);\n return acc;\n }, {});\n};\n\nmodule.exports.filterValues = function(collection, iteratee) {\n if (!collection) {\n return {};\n }\n\n return Object.keys(collection).reduce((acc, key) => {\n const keep = iteratee(collection[key], key, collection);\n\n if (keep) {\n acc[key] = collection[key];\n }\n\n return acc;\n }, {});\n};\n", "/**\n * rejects original promise after specified timeout\n * @param {Promise<R>} promise Original promise\n * @param {string} [message] Additional message for timeout reject\n * @param {number} timeout Time for reject\n * @return {Promise<R>}\n */\nmodule.exports.timedPromise = function(promise, { message, timeout }) {\n const timeoutPromise = new Promise((resolve, reject) => {\n setTimeout(reject, timeout, message ? `Timeout: ${message}` : 'Timeout');\n });\n return Promise.race([promise, timeoutPromise]);\n};\n\n/**\n * Works like Promise.all expect uses object instead of array.\n * @param {Object} promiseObject\n * @return {Promise} Promise with original keys and resolved values\n */\nmodule.exports.allAsObject = function(promiseObject) {\n const keys = Object.keys(promiseObject);\n return Promise.all(keys.map(key => promiseObject[key])).then(resolved => {\n return resolved.reduce((acc, value, i) => {\n acc[keys[i]] = value;\n return acc;\n }, {});\n });\n};\n", "module.exports = {\n error(...args) {\n if (console && console.error) {\n console.error(...args);\n }\n },\n};\n", "// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\nfunction debounce(func, wait, immediate) {\n let timeout;\n\n // This is the function that is actually executed when\n // the DOM event is triggered.\n return function() {\n // Store the context of this and any parameters passed to executedFunction\n const context = this;\n const args = arguments;\n\n // The function to be called after\n // the debounce time has elapsed\n const later = function() {\n // null timeout to indicate the debounce ended\n timeout = null;\n\n // Call function now if you did not on the leading end\n if (!immediate) {\n func.apply(context, args);\n }\n };\n\n // Determine if you should call the function\n // on the leading or trail end\n const callNow = immediate && !timeout;\n\n // This will reset the waiting every function execution.\n // This is the step that prevents the function from\n // being executed because it will never reach the\n // inside of the previous setTimeout\n clearTimeout(timeout);\n\n // Restart the debounce waiting period.\n // setTimeout returns a truthy value (it differs in web vs node)\n timeout = setTimeout(later, wait);\n\n // Call immediately if you're dong a leading\n // end execution\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\nmodule.exports = debounce;\n", "function throttle(func, wait) {\n let timeout;\n\n return (...args) => {\n if (!timeout) {\n timeout = setTimeout(() => {\n func(...args);\n timeout = null;\n }, wait);\n }\n };\n}\n\nmodule.exports = throttle;\n", "const debounce = require('./debounce');\nconst throttle = require('./throttle');\n\nconst createEvent = (event, context, startTime) => ({\n dt: Date.now() - startTime,\n f: event,\n context,\n});\n\nconst createBatch = (events, startTime) => ({\n dt: Date.now() - startTime,\n e: events,\n g: {},\n});\n\nconst optimizeBatch = batch => {\n const fieldCounts = {};\n const batchLen = batch.e.length;\n\n let events = batch.e.map(event => {\n const fields = Object.keys(event.f).map(field => {\n const value = event.f[field];\n const key = `${field}|${value}`;\n fieldCounts[key] = fieldCounts[key] || 0;\n fieldCounts[key]++;\n return [field, value, key];\n });\n\n return {\n ...event,\n f: fields,\n };\n });\n\n const globalFields = {};\n events = events.map(event => {\n const fields = event.f.reduce((res, [field, value, key]) => {\n if (fieldCounts[key] === batchLen) {\n globalFields[field] = value;\n } else {\n res[field] = value;\n }\n\n return res;\n }, {});\n\n return {\n ...event,\n f: fields,\n };\n });\n\n return {\n ...batch,\n e: events,\n g: globalFields,\n };\n};\n\nclass BatchQueue {\n constructor() {\n this._initilized = false;\n }\n\n _reset() {\n this._startTime = Date.now();\n this._resolve = null;\n this._promise = new Promise(resolve => (this._resolve = resolve));\n }\n\n init({ delayMs, maxBatchSize, useThrottle, optimizeBatch }, flushHandler) {\n if (this._initilized) {\n return;\n }\n\n this._maxBatchSize = maxBatchSize;\n this._optimizeBatch = optimizeBatch;\n this._queue = [];\n this._flushHandler = flushHandler;\n this._flushDebounced = useThrottle\n ? throttle(() => this.flush(), delayMs)\n : debounce(() => this.flush(), delayMs);\n this._initilized = true;\n\n this._reset();\n }\n\n flush() {\n if (!this._queue.length) {\n return Promise.resolve();\n }\n\n const events = this._queue.splice(0, this._queue.length);\n const resolve = this._resolve;\n const startTime = this._startTime;\n\n this._reset();\n\n let batch = createBatch(events, startTime);\n\n if (this._optimizeBatch) {\n batch = optimizeBatch(batch);\n }\n\n return this._flushHandler(batch).then(resolve);\n }\n\n feed(event, context) {\n this._queue.push(createEvent(event, context, this._startTime));\n\n if (this._queue.length === this._maxBatchSize) {\n return this.flush();\n }\n\n this._flushDebounced();\n\n return this._promise;\n }\n}\n\nmodule.exports = BatchQueue;\n", "'use strict'; // eslint-disable-line strict\n\nconst DefaultConsentPolicy = {\n functional: true,\n analytics: true,\n __default: true,\n};\n\nconst getPolicy = consentPolicyGetter => {\n return (\n (typeof consentPolicyGetter === 'function' && consentPolicyGetter()) ||\n DefaultConsentPolicy\n );\n};\n\nconst shouldMuteNonEssentials = policy => {\n return policy.functional === false || policy.analytics === false;\n};\n\nconst shouldMuteByCategory = (policy, category) => {\n if (category === 'essential') {\n return false;\n }\n\n if (category === 'functional' || category === 'analytics') {\n return policy[category] === false;\n }\n\n return shouldMuteNonEssentials(policy);\n};\n\nmodule.exports = {\n shouldMuteNonEssentials,\n shouldMuteByCategory,\n getPolicy,\n};\n", "'use strict'; // eslint-disable-line strict\nconst assert = require('./assert');\nconst { mapValues, filterValues } = require('./utils/collections');\nconst promise = require('./utils/promise');\nconst log = require('./utils/log');\nconst BatchQueue = require('./utils/batch-queue');\nconst {\n shouldMuteByCategory,\n shouldMuteNonEssentials,\n getPolicy,\n} = require('./consent-policy');\n\nclass BiLogger {\n // TODO: validate args\n constructor(options, context) {\n this._publishers = options.publishers;\n this._validators = options.validators || [];\n this._defaults = options.defaults;\n this._ownDefaults = {};\n this._events = options.events || {};\n this._context = context || {};\n this._defaultValueTimeout = options.defaultValueTimeout || 5000;\n this._defaultContinueOnFail = options.defaultContinueOnFail || false;\n this._onPublisherFailHandler =\n options.onPublisherFailHandler || BiLogger._defaultPublisherFailHandler;\n this._isMuted = options.isMuted || (() => false);\n this._eventTransformer = options.eventTransformer || (event => event);\n this._payloadTransformer =\n options.payloadTransformer || (payload => payload);\n this._consentPolicyGetter = options.consentPolicyGetter || (() => null);\n this._nonEssentialDefaults = options.nonEssentialDefaults || {};\n this._maxBatchSize = options.maxBatchSize || 100;\n this._globalBatchQueue = options.globalBatchQueue;\n }\n\n report(data) {\n assert.defined(data, 'Data must be provided');\n assert.object(data, 'Data must be an object');\n\n const { src, evid, params, ...context } = data;\n\n return this.log({ src, evid, ...params }, context);\n }\n\n log(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {\n assert.defined(eventOrKey, 'Event object or event key must be provided.');\n\n const { event, context } = this._extractEventAndContext(\n eventOrKey,\n eventOrContextOrUndefined,\n contextOrUndefined,\n );\n const policy = getPolicy(this._consentPolicyGetter);\n const fullContext = { ...this._context, ...context };\n\n if (this._isMuted() || shouldMuteByCategory(policy, fullContext.category)) {\n return Promise.resolve();\n }\n\n if (fullContext.useBatch) {\n const queue = this._initQueue(fullContext, policy);\n\n const transformAndQueue = _event => {\n const transformedEvent = this._eventTransformer(_event, fullContext);\n\n return queue.feed(transformedEvent, fullContext);\n };\n\n if (this._globalBatchQueue) {\n return this._getDefaults(this._defaults).then(defaults => {\n const fullEvent = {\n ...defaults,\n ...this._getDynamicNonEssentialDefaults(policy),\n ...this._getStaticNonEssentialDefaults(policy),\n ...event,\n ...this._getPolicyFields(policy, fullContext.category),\n };\n\n return transformAndQueue(fullEvent);\n });\n } else {\n const fullEvent = {\n ...this._getDynamicDefaults(this._defaults),\n ...this._getDynamicNonEssentialDefaults(policy),\n ...event,\n ...this._getPolicyFields(policy, fullContext.category),\n };\n\n return transformAndQueue(fullEvent);\n }\n }\n\n return this._getDefaults(this._defaults).then(defaults => {\n const fullEvent = Object.assign(\n defaults,\n this._getDynamicNonEssentialDefaults(policy),\n this._getStaticNonEssentialDefaults(policy),\n event,\n this._getPolicyFields(policy, fullContext.category),\n );\n\n const validatorsResult =\n this._validators.length === 0\n ? true\n : this._validators.some(\n validator =>\n validator.match(fullEvent) &&\n (validator.execute(fullEvent) || true),\n );\n\n if (!validatorsResult) {\n throw new Error(\n `No validator accepted the event. Source: ${\n fullEvent.src\n } Evid: ${fullEvent.evid || fullEvent.evtId}`,\n );\n }\n\n let transformedEvent = this._eventTransformer(fullEvent, fullContext);\n transformedEvent = this._payloadTransformer(\n transformedEvent,\n fullContext,\n );\n\n return this._send(transformedEvent, fullContext);\n });\n }\n\n flush() {\n if (!this._queue) {\n return Promise.resolve();\n }\n return this._queue.flush();\n }\n\n updateDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n Object.assign(this._ownDefaults, defaults);\n return this;\n }\n\n _send(payload, context = {}) {\n return Promise.all(\n this._publishers.map(publisher => {\n const cloned = { ...payload };\n\n return Promise.resolve()\n .then(() => publisher(cloned, context))\n .catch(error =>\n this._onPublisherFailHandler(error, {\n publisherName: publisher.name,\n payload,\n }),\n );\n }),\n ).then(() => undefined);\n }\n\n _extractEventAndContext(\n eventOrKey,\n eventOrContextOrUndefined,\n contextOrUndefined,\n ) {\n let event;\n let context = {};\n\n if (typeof eventOrKey !== 'string') {\n event = eventOrKey;\n context = eventOrContextOrUndefined || context;\n } else {\n event = this._events[eventOrKey];\n\n if (!event) {\n throw new assert.AssertionError(\n `Event with key '${eventOrKey}' not found in event map.`,\n );\n }\n\n if (eventOrContextOrUndefined) {\n event = { ...event, ...eventOrContextOrUndefined };\n context = contextOrUndefined || context;\n }\n }\n\n return { event, context };\n }\n\n _initQueue(context, policy) {\n if (this._queue) {\n return this._queue;\n }\n\n this._queue = this._globalBatchQueue || new BatchQueue();\n\n const onFlush = batch => {\n // if queue is global don't define global properties\n if (!this._globalBatchQueue) {\n batch.g = Object.assign(\n this._getStaticDefaults(this._defaults),\n this._getStaticNonEssentialDefaults(policy),\n );\n }\n\n const transformedPayload = this._payloadTransformer(batch, context);\n\n return this._send(transformedPayload, context);\n };\n\n this._queue.init(\n {\n delayMs: context.useBatch === true ? 300 : context.useBatch,\n maxBatchSize: this._maxBatchSize,\n useThrottle: !!this._globalBatchQueue,\n optimizeBatch: !!this._globalBatchQueue,\n },\n onFlush,\n );\n\n return this._queue;\n }\n\n _handleDefaultsError(err) {\n if (this._defaultContinueOnFail) {\n log.error(err);\n return null;\n }\n return Promise.reject(err);\n }\n\n _getDynamicNonEssentialDefaults(policy) {\n if (!shouldMuteNonEssentials(policy)) {\n return this._getDynamicDefaults(this._nonEssentialDefaults);\n }\n }\n\n _getStaticNonEssentialDefaults(policy) {\n if (!shouldMuteNonEssentials(policy)) {\n return this._getStaticDefaults(this._nonEssentialDefaults);\n }\n }\n\n _withOwnDefaults(defaults) {\n return Object.assign({}, defaults, this._ownDefaults);\n }\n\n _getDynamicDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n const dynamicDefaults = filterValues(\n defaults,\n v => typeof v === 'function',\n );\n return mapValues(dynamicDefaults, v => v());\n }\n\n _getStaticDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n const staticDefaults = filterValues(defaults, v => typeof v !== 'function');\n return staticDefaults;\n }\n\n _getDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n if (!defaults) {\n return Promise.resolve({});\n }\n\n const promises = mapValues(defaults, (value, key) => {\n if (typeof value === 'function') {\n try {\n value = value();\n } catch (err) {\n return this._handleDefaultsError(err);\n }\n }\n\n if (value && typeof value.then === 'function') {\n return promise\n .timedPromise(value, {\n message: `Cannot get default value '${key} for BI Event'`,\n timeout: this._defaultValueTimeout,\n })\n .catch(err => this._handleDefaultsError(err));\n }\n\n return value;\n });\n\n return promise.allAsObject(promises);\n }\n\n _encodePolicyValue(policy, key) {\n if (!policy) {\n return 1;\n }\n\n if (typeof policy[key] === 'boolean') {\n return policy[key] ? 1 : 0;\n }\n\n return policy[key];\n }\n\n _getPolicyFields(policy, category) {\n return {\n _isca: this._encodePolicyValue(policy, 'analytics'),\n _iscf: this._encodePolicyValue(policy, 'functional'),\n _ispd: policy.__default ? 1 : 0,\n _ise: category === 'essential' ? 1 : 0,\n };\n }\n\n static _defaultPublisherFailHandler(error, { publisherName }) {\n return publisherName; // do nothing\n }\n}\n\nmodule.exports = BiLogger;\n", "'use strict'; // eslint-disable-line strict\n\nconst assert = require('./assert');\n\nclass BiLoggerManager {\n constructor() {\n this.reset();\n }\n\n reset() {\n this._handlers = [];\n }\n\n onLoggerCreated(handler) {\n assert.defined(handler, 'Handler must be provided.');\n assert.func(handler, 'Handler must be a function.');\n\n this._handlers.push(handler);\n\n return () => {\n const index = this._handlers.indexOf(handler);\n\n if (index !== -1) {\n this._handlers.splice(index, 1);\n }\n };\n }\n\n notifyLoggerCreated(logger) {\n this._handlers.forEach(handler => handler(logger));\n }\n}\n\nmodule.exports = {\n manager: new BiLoggerManager(),\n BiLoggerManager,\n};\n", "'use strict'; // eslint-disable-line strict\nconst assert = require('./assert');\nconst BiLogger = require('./bi-logger');\nconst biLoggerManager = require('./bi-logger-manager');\nconst BatchQueue = require('./utils/batch-queue');\n\nclass BiLoggerFactory {\n constructor() {\n this._publishers = [];\n this._validators = [];\n this._defaults = {};\n this._nonEssentialDefaults = {};\n this._events = {};\n this._isMuted = false;\n this._eventTransformer = null;\n this._payloadTransformer = null;\n this._consentPolicyGetter = null;\n this._maxBatchSize = null;\n this._batchQueue = null;\n }\n\n addPublisher(publisher) {\n assert.defined(publisher, 'Publisher must be provided');\n assert.ok(typeof publisher === 'function', 'Expected a publisher function');\n this._publishers.push(publisher);\n return this;\n }\n\n addValidator(validator) {\n assert.defined(validator, 'Validator must be provided');\n assert.ok(\n typeof validator === 'object' && validator,\n 'Expected a validator object',\n );\n assert.ok(\n validator.execute && validator.match,\n 'Provided validator does not match the interface',\n );\n this._validators.push(validator);\n return this;\n }\n\n setDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n this._defaults = defaults;\n return this;\n }\n\n updateDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n Object.assign(this._defaults, defaults);\n return this;\n }\n\n updateNonEssentialDefaults(defaults) {\n assert.defined(defaults, 'Non-essential Defaults must be provided');\n assert.object(defaults, 'Non-essential Defaults must be an object');\n Object.assign(this._nonEssentialDefaults, defaults);\n return this;\n }\n\n setEvents(events) {\n assert.defined(events, 'Events must be provided');\n assert.object(events, 'Events must be an object');\n this._events = events;\n return this;\n }\n\n setDefaultValueTimeout(defaultValueTimeout) {\n assert.defined(\n defaultValueTimeout,\n 'Default Value Timeout must be provided',\n );\n this._defaultValueTimeout = defaultValueTimeout;\n return this;\n }\n\n setDefaultContinueOnFail(defaultContinueOnFail) {\n assert.defined(\n defaultContinueOnFail,\n 'Default Continue On Fail must be provided',\n );\n this._defaultContinueOnFail = defaultContinueOnFail;\n return this;\n }\n\n setPublisherFailHandler(onPublisherFailHandler) {\n assert.defined(\n onPublisherFailHandler,\n 'Publisher Fail Handler must be provided',\n );\n this._onPublisherFailHandler = onPublisherFailHandler;\n return this;\n }\n\n setMuted(isMuted) {\n assert.defined(isMuted, 'Is Muted must be provided');\n assert.boolean(isMuted, 'Is Muted must be a boolean');\n this._isMuted = isMuted;\n return this;\n }\n\n setMaxBatchSize(maxBatchSize) {\n assert.defined(maxBatchSize, 'Max Batch Size must be provided');\n assert.number(maxBatchSize, 'Max Batch Size must be a number');\n assert.ok(maxBatchSize > 0, 'Max Batch Size must be higher than 0');\n this._maxBatchSize = maxBatchSize;\n return this;\n }\n\n setGlobalBatchQueue(batchQueue) {\n assert.defined(batchQueue, 'Global Batch Queue must be provided');\n assert.ok(\n batchQueue instanceof BatchQueue,\n 'Global Batch Queue must be an instance of BatchQueue',\n );\n this._globalBatchQueue = batchQueue;\n return this;\n }\n\n withEventTransformer(transformer) {\n assert.defined(transformer, 'Event Transformer must be provided');\n assert.func(transformer, 'Event Transformer must be a function');\n this._eventTransformer = transformer;\n return this;\n }\n\n withPayloadTransformer(transformer) {\n assert.defined(transformer, 'Payload Transformer must be provided');\n assert.func(transformer, 'Payload Transformer must be a function');\n this._payloadTransformer = transformer;\n return this;\n }\n\n withConsentPolicyGetter(getter) {\n assert.defined(getter, 'Consent Policy Getter must be provided');\n assert.func(getter, 'Consent Policy Getter must be a function');\n this._consentPolicyGetter = getter;\n return this;\n }\n\n logger(context) {\n const logger = new BiLogger(\n {\n publishers: this._publishers,\n validators: this._validators,\n defaults: this._defaults,\n events: this._events,\n defaultValueTimeout: this._defaultValueTimeout,\n defaultContinueOnFail: this._defaultContinueOnFail,\n onPublisherFailHandler: this._onPublisherFailHandler,\n isMuted: () => this._isMuted,\n eventTransformer: this._eventTransformer,\n payloadTransformer: this._payloadTransformer,\n consentPolicyGetter: this._consentPolicyGetter,\n nonEssentialDefaults: this._nonEssentialDefaults,\n maxBatchSize: this._maxBatchSize,\n globalBatchQueue: this._globalBatchQueue,\n },\n context,\n );\n\n biLoggerManager.manager.notifyLoggerCreated(logger);\n\n return logger;\n }\n}\n\nmodule.exports = BiLoggerFactory;\n", "'use strict'; // eslint-disable-line strict\nconst BiLoggerClientFactory = require('./bi-logger-factory');\nconst BiLogger = require('./bi-logger');\nconst biLoggerManager = require('./bi-logger-manager');\nconst BatchQueue = require('./utils/batch-queue');\n\nmodule.exports.BiLoggerFactory = BiLoggerClientFactory;\nmodule.exports.BiLogger = BiLogger;\nmodule.exports.BiLoggerManager = biLoggerManager.BiLoggerManager;\n\nmodule.exports.factory = () => new BiLoggerClientFactory();\nmodule.exports.manager = biLoggerManager.manager;\nmodule.exports.createBatchQueue = () => new BatchQueue();\n", null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nfunction isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */\n;(function(root) {\n\n\t// Detect free variables `exports`.\n\tvar freeExports = typeof exports == 'object' && exports;\n\n\t// Detect free variable `module`.\n\tvar freeModule = typeof module == 'object' && module &&\n\t\tmodule.exports == freeExports && module;\n\n\t// Detect free variable `global`, from Node.js or Browserified code, and use\n\t// it as `root`.\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n\t\troot = freeGlobal;\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar InvalidCharacterError = function(message) {\n\t\tthis.message = message;\n\t};\n\tInvalidCharacterError.prototype = new Error;\n\tInvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\n\tvar error = function(message) {\n\t\t// Note: the error messages used throughout this file match those used by\n\t\t// the native `atob`/`btoa` implementation in Chromium.\n\t\tthrow new InvalidCharacterError(message);\n\t};\n\n\tvar TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\t// http://whatwg.org/html/common-microsyntaxes.html#space-character\n\tvar REGEX_SPACE_CHARACTERS = /[\\t\\n\\f\\r ]/g;\n\n\t// `decode` is designed to be fully compatible with `atob` as described in the\n\t// HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob\n\t// The optimized base64-decoding algorithm used is based on @atk\u2019s excellent\n\t// implementation. https://gist.github.com/atk/1020396\n\tvar decode = function(input) {\n\t\tinput = String(input)\n\t\t\t.replace(REGEX_SPACE_CHARACTERS, '');\n\t\tvar length = input.length;\n\t\tif (length % 4 == 0) {\n\t\t\tinput = input.replace(/==?$/, '');\n\t\t\tlength = input.length;\n\t\t}\n\t\tif (\n\t\t\tlength % 4 == 1 ||\n\t\t\t// http://whatwg.org/C#alphanumeric-ascii-characters\n\t\t\t/[^+a-zA-Z0-9/]/.test(input)\n\t\t) {\n\t\t\terror(\n\t\t\t\t'Invalid character: the string to be decoded is not correctly encoded.'\n\t\t\t);\n\t\t}\n\t\tvar bitCounter = 0;\n\t\tvar bitStorage;\n\t\tvar buffer;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\twhile (++position < length) {\n\t\t\tbuffer = TABLE.indexOf(input.charAt(position));\n\t\t\tbitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;\n\t\t\t// Unless this is the first of a group of 4 characters\u2026\n\t\t\tif (bitCounter++ % 4) {\n\t\t\t\t// \u2026convert the first 8 bits to a single ASCII character.\n\t\t\t\toutput += String.fromCharCode(\n\t\t\t\t\t0xFF & bitStorage >> (-2 * bitCounter & 6)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t};\n\n\t// `encode` is designed to be fully compatible with `btoa` as described in the\n\t// HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa\n\tvar encode = function(input) {\n\t\tinput = String(input);\n\t\tif (/[^\\0-\\xFF]/.test(input)) {\n\t\t\t// Note: no need to special-case astral symbols here, as surrogates are\n\t\t\t// matched, and the input is supposed to only contain ASCII anyway.\n\t\t\terror(\n\t\t\t\t'The string to be encoded contains characters outside of the ' +\n\t\t\t\t'Latin1 range.'\n\t\t\t);\n\t\t}\n\t\tvar padding = input.length % 3;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\tvar a;\n\t\tvar b;\n\t\tvar c;\n\t\tvar buffer;\n\t\t// Make sure any padding is handled outside of the loop.\n\t\tvar length = input.length - padding;\n\n\t\twhile (++position < length) {\n\t\t\t// Read three bytes, i.e. 24 bits.\n\t\t\ta = input.charCodeAt(position) << 16;\n\t\t\tb = input.charCodeAt(++position) << 8;\n\t\t\tc = input.charCodeAt(++position);\n\t\t\tbuffer = a + b + c;\n\t\t\t// Turn the 24 bits into four chunks of 6 bits each, and append the\n\t\t\t// matching character for each of them to the output.\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 18 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 12 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 6 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer & 0x3F)\n\t\t\t);\n\t\t}\n\n\t\tif (padding == 2) {\n\t\t\ta = input.charCodeAt(position) << 8;\n\t\t\tb = input.charCodeAt(++position);\n\t\t\tbuffer = a + b;\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 10) +\n\t\t\t\tTABLE.charAt((buffer >> 4) & 0x3F) +\n\t\t\t\tTABLE.charAt((buffer << 2) & 0x3F) +\n\t\t\t\t'='\n\t\t\t);\n\t\t} else if (padding == 1) {\n\t\t\tbuffer = input.charCodeAt(position);\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 2) +\n\t\t\t\tTABLE.charAt((buffer << 4) & 0x3F) +\n\t\t\t\t'=='\n\t\t\t);\n\t\t}\n\n\t\treturn output;\n\t};\n\n\tvar base64 = {\n\t\t'encode': encode,\n\t\t'decode': decode,\n\t\t'version': '1.0.0'\n\t};\n\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine(function() {\n\t\t\treturn base64;\n\t\t});\n\t}\telse if (freeExports && !freeExports.nodeType) {\n\t\tif (freeModule) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = base64;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (var key in base64) {\n\t\t\t\tbase64.hasOwnProperty(key) && (freeExports[key] = base64[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.base64 = base64;\n\t}\n\n}(this));\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n", "/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n", "'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n", "var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n", "var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Preventive platform detection\n// istanbul ignore next\n(function detectUnsupportedEnvironment() {\n var looksLikeNode = typeof process !== \"undefined\";\n var looksLikeBrowser = typeof window !== \"undefined\" && typeof document !== \"undefined\";\n var looksLikeV8 = isFunction(Error.captureStackTrace);\n if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {\n console.warn(\"The follow-redirects package should be excluded from browser builds.\");\n }\n}());\n\n// Whether to use the native URL object or the legacy url module\nvar useNativeURL = false;\ntry {\n assert(new URL(\"\"));\n}\ncatch (error) {\n useNativeURL = error.code === \"ERR_INVALID_URL\";\n}\n\n// URL fields to preserve in copy operations\nvar preservedUrlFields = [\n \"auth\",\n \"host\",\n \"hostname\",\n \"href\",\n \"path\",\n \"pathname\",\n \"port\",\n \"protocol\",\n \"query\",\n \"search\",\n \"hash\",\n];\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\n// Error types with codes\nvar InvalidUrlError = createErrorType(\n \"ERR_INVALID_URL\",\n \"Invalid URL\",\n TypeError\n);\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\",\n RedirectionError\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// istanbul ignore next\nvar destroy = Writable.prototype.destroy || noop;\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n try {\n self._processResponse(response);\n }\n catch (cause) {\n self.emit(\"error\", cause instanceof RedirectionError ?\n cause : new RedirectionError({ cause: cause }));\n }\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n destroyRequest(this._currentRequest);\n this._currentRequest.abort();\n this.emit(\"abort\");\n};\n\nRedirectableRequest.prototype.destroy = function (error) {\n destroyRequest(this._currentRequest, error);\n destroy.call(this, error);\n return this;\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!isString(data) && !isBuffer(data)) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (isFunction(data)) {\n callback = data;\n data = encoding = null;\n }\n else if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n self.removeListener(\"close\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n this.on(\"close\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n throw new TypeError(\"Unsupported protocol \" + protocol);\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.slice(0, -1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request and set up its event handlers\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n request._redirectable = this;\n for (var event of events) {\n request.on(event, eventHandlers[event]);\n }\n\n // RFC7230\u00A75.3.1: When making a request directly to an origin server, [\u2026]\n // a client MUST send only the absolute path [\u2026] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, [\u2026]\n // a client MUST send the target URI in absolute-form [\u2026].\n this._options.path;\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n // istanbul ignore else\n if (request === self._currentRequest) {\n // Report any write errors\n // istanbul ignore if\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n // istanbul ignore else\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231\u00A76.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n\n // If the response is not a redirect; return it as-is\n var location = response.headers.location;\n if (!location || this._options.followRedirects === false ||\n statusCode < 300 || statusCode >= 400) {\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n return;\n }\n\n // The response is a redirect, so abort the current request\n destroyRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231\u00A76.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n throw new TooManyRedirectsError();\n }\n\n // Store the request headers if applicable\n var requestHeaders;\n var beforeRedirect = this._options.beforeRedirect;\n if (beforeRedirect) {\n requestHeaders = Object.assign({\n // The Host header was set by nativeProtocol.request\n Host: response.req.getHeader(\"host\"),\n }, this._options.headers);\n }\n\n // RFC7231\u00A76.4: Automatic redirection needs to done with\n // care for methods not known to be safe, [\u2026]\n // RFC7231\u00A76.4.2\u20133: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n var method = this._options.method;\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231\u00A76.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource [\u2026]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) [\u2026]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = parseUrl(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Create the redirected request\n var redirectUrl = resolveUrl(location, currentUrl);\n debug(\"redirecting to\", redirectUrl.href);\n this._isRedirect = true;\n spreadUrlObject(redirectUrl, this._options);\n\n // Drop confidential headers when redirecting to a less secure protocol\n // or to a different domain that is not a superdomain\n if (redirectUrl.protocol !== currentUrlParts.protocol &&\n redirectUrl.protocol !== \"https:\" ||\n redirectUrl.host !== currentHost &&\n !isSubdomain(redirectUrl.host, currentHost)) {\n removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (isFunction(beforeRedirect)) {\n var responseDetails = {\n headers: response.headers,\n statusCode: statusCode,\n };\n var requestDetails = {\n url: currentUrl,\n method: method,\n headers: requestHeaders,\n };\n beforeRedirect(this._options, responseDetails, requestDetails);\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n this._performRequest();\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters, ensuring that input is an object\n if (isURL(input)) {\n input = spreadUrlObject(input);\n }\n else if (isString(input)) {\n input = spreadUrlObject(parseUrl(input));\n }\n else {\n callback = options;\n options = validateUrl(input);\n input = { protocol: protocol };\n }\n if (isFunction(options)) {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n if (!isString(options.host) && !isString(options.hostname)) {\n options.hostname = \"::1\";\n }\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\nfunction noop() { /* empty */ }\n\nfunction parseUrl(input) {\n var parsed;\n // istanbul ignore else\n if (useNativeURL) {\n parsed = new URL(input);\n }\n else {\n // Ensure the URL is valid and absolute\n parsed = validateUrl(url.parse(input));\n if (!isString(parsed.protocol)) {\n throw new InvalidUrlError({ input });\n }\n }\n return parsed;\n}\n\nfunction resolveUrl(relative, base) {\n // istanbul ignore next\n return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));\n}\n\nfunction validateUrl(input) {\n if (/^\\[/.test(input.hostname) && !/^\\[[:0-9a-f]+\\]$/i.test(input.hostname)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n if (/^\\[/.test(input.host) && !/^\\[[:0-9a-f]+\\](:\\d+)?$/i.test(input.host)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n return input;\n}\n\nfunction spreadUrlObject(urlObject, target) {\n var spread = target || {};\n for (var key of preservedUrlFields) {\n spread[key] = urlObject[key];\n }\n\n // Fix IPv6 hostname\n if (spread.hostname.startsWith(\"[\")) {\n spread.hostname = spread.hostname.slice(1, -1);\n }\n // Ensure port is a number\n if (spread.port !== \"\") {\n spread.port = Number(spread.port);\n }\n // Concatenate path\n spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;\n\n return spread;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, message, baseClass) {\n // Create constructor\n function CustomError(properties) {\n // istanbul ignore else\n if (isFunction(Error.captureStackTrace)) {\n Error.captureStackTrace(this, this.constructor);\n }\n Object.assign(this, properties || {});\n this.code = code;\n this.message = this.cause ? message + \": \" + this.cause.message : message;\n }\n\n // Attach constructor and set default properties\n CustomError.prototype = new (baseClass || Error)();\n Object.defineProperties(CustomError.prototype, {\n constructor: {\n value: CustomError,\n enumerable: false,\n },\n name: {\n value: \"Error [\" + code + \"]\",\n enumerable: false,\n },\n });\n return CustomError;\n}\n\nfunction destroyRequest(request, error) {\n for (var event of events) {\n request.removeListener(event, eventHandlers[event]);\n }\n request.on(\"error\", noop);\n request.destroy(error);\n}\n\nfunction isSubdomain(subdomain, domain) {\n assert(isString(subdomain) && isString(domain));\n var dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\nfunction isString(value) {\n return typeof value === \"string\" || value instanceof String;\n}\n\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nfunction isBuffer(value) {\n return typeof value === \"object\" && (\"length\" in value);\n}\n\nfunction isURL(value) {\n return URL && value instanceof URL;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, null, null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nexport function isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI, isNode } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = isNode()\n ? process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? ''\n : '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", null, null, null, null, null, "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, "import * as Sentry from '@sentry/node';\n\nSentry.init({\n dsn: 'https://583c5af58c664fd1977d638a693b0ada@sentry-next.wixpress.com/20924',\n tracesSampleRate: 1.0,\n initialScope: {\n tags: {\n fullArtifactId: 'com.wixpress.spartans.wix-mcp'\n }\n }\n});\n", "import './infra/sentry.js';\n\nimport minimist from 'minimist';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { addDocsTools, DocsTool, VALID_DOCS_TOOLS } from './docs/docs.js';\nimport { addCliTools, CLITool, VALID_CLI_TOOLS } from './cli-tools/cli.js';\nimport {\n logger,\n attachStdErrLogger,\n attachMcpServerLogger,\n attachFileLogger\n} from './infra/logger.js';\nimport { WixMcpServer } from './wix-mcp-server.js';\nimport { addDocsResources } from './resources/docs.js';\nimport { addApiCallTool } from './api-call/index.js';\nimport { McpAuthenticationStrategy } from './auth/index.js';\nimport { addVeloReadmeTools } from './docs/velo-readme.js';\nimport { getCliAuthToken } from './cli-tools/utils.js';\n\nconst PUBLIC_TOOLS = [...VALID_DOCS_TOOLS] as const;\n\nconst EXPERIMENTAL_TOOLS = [\n 'WIX_API',\n 'CLI_COMMAND',\n 'GET_TO_KNOW_WIX',\n 'CREATE_WIX_BUSINESS_GUIDE',\n 'VELO_README',\n 'WIX_API_THROUGH_FS'\n] as const;\n\ntype Tool = (typeof PUBLIC_TOOLS)[number] | (typeof EXPERIMENTAL_TOOLS)[number];\nexport const DEFAULT_TOOLS: Tool[] = [...VALID_DOCS_TOOLS];\n\nconst parsedArgs = minimist(process.argv.slice(2));\n\nfunction parseExperimentalArg(): Tool[] {\n const experimentalArg: string | undefined = parsedArgs['experimental'];\n if (!experimentalArg) return [];\n\n return experimentalArg\n .split(',')\n .map((t) => t.trim())\n .filter((tool) =>\n EXPERIMENTAL_TOOLS.includes(tool as (typeof EXPERIMENTAL_TOOLS)[number])\n ) as Tool[];\n}\n\nfunction parseWixAuthorizationArg(): string | undefined {\n return parsedArgs['wixAuthorization'];\n}\n\nfunction parseToolsArg(): Tool[] {\n const toolsArg: string | undefined = parsedArgs['tools'];\n const experimentalTools = parseExperimentalArg();\n\n if (!toolsArg) {\n // When no tools specified, return both default and experimental tools\n return [...DEFAULT_TOOLS, ...experimentalTools];\n }\n\n const requestedTools = toolsArg.split(',').map((t) => t.trim());\n\n const tools: Tool[] = [\n // Include valid non-experimental tools\n ...(requestedTools.filter((tool) =>\n PUBLIC_TOOLS.includes(tool as (typeof PUBLIC_TOOLS)[number])\n ) as Tool[]),\n // Include enabled experimental tools\n ...experimentalTools\n ];\n\n // Warn about enabled experimental tools\n tools.forEach((tool) => {\n if (\n EXPERIMENTAL_TOOLS.includes(tool as (typeof EXPERIMENTAL_TOOLS)[number])\n ) {\n logger.log(\n `Warning: ${tool} is an experimental tool and may have limited functionality or breaking changes`\n );\n }\n });\n\n return tools;\n}\n\nconst loggerType = parsedArgs['logger'] || 'mcp';\n\nif (loggerType === 'file') {\n attachFileLogger();\n} else {\n // Initially we log to stderr, because MCP server is not connected yet\n // When the server is connected, we attach the MCP server logger\n attachStdErrLogger();\n}\n\nlogger.log('--------------------------------');\nlogger.log('starting WIX MCP server');\nlogger.log('--------------------------------');\nconst server = new WixMcpServer(\n {\n name: 'wix-mcp-server',\n version: '1.0.0'\n },\n {\n capabilities: {\n tools: {},\n prompts: {},\n logging: {},\n resources: {}\n }\n }\n);\n\nconst activeTools = parseToolsArg();\nlogger.log('Active tools:', activeTools);\n\nconst docsTools = activeTools.filter((tool) =>\n VALID_DOCS_TOOLS.includes(tool as DocsTool)\n) as DocsTool[];\nconst hasGetToKnowWix = activeTools.includes('GET_TO_KNOW_WIX');\nconst hasCreateWixBusinessGuide = activeTools.includes(\n 'CREATE_WIX_BUSINESS_GUIDE'\n);\n\nif (docsTools.length > 0 || hasGetToKnowWix || hasCreateWixBusinessGuide) {\n logger.log('Adding docs tools:', docsTools);\n addDocsTools(server, docsTools, {\n getToKnowWixEnabled: hasGetToKnowWix,\n createWixBusinessGuideEnabled: hasCreateWixBusinessGuide\n });\n}\nif (activeTools.includes('VELO_README')) {\n addVeloReadmeTools(server);\n}\n\nif (activeTools.includes('WIX_API_THROUGH_FS')) {\n logger.log('Using file system auth strategy for WIX_API_THROUGH_FS');\n const fileSystemAuthStrategy: McpAuthenticationStrategy = {\n getSiteAuthHeaders: (siteId) => ({\n Authorization: `Bearer ${getCliAuthToken(siteId)}`,\n 'wix-site-id': siteId // When using an API key for authentication, include a wix-site-id header with the ID, https://dev.wix.com/docs/api-reference/articles/get-started/api-keys#account-level-and-site-level-api-requests\n }),\n getAccountAuthHeaders: () => ({\n Authorization: getCliAuthToken('api-key') // For account-level API calls\n })\n };\n\n addApiCallTool(server, fileSystemAuthStrategy, ['CallWixSiteAPI']);\n}\n\nconst isWixOne = parsedArgs['cli'] === 'wix-one';\nconst cliTools = activeTools.filter((tool) =>\n VALID_CLI_TOOLS.includes(tool as CLITool)\n) as CLITool[];\nif (cliTools.length > 0) {\n logger.log('Adding cli tools:', cliTools, 'isWixOne:', isWixOne);\n addCliTools(server, cliTools, isWixOne);\n if (cliTools.includes('WIX_API')) {\n const wixAuthorization = parseWixAuthorizationArg();\n\n if (wixAuthorization) {\n logger.log('Using wixAuthorization argument for WIX_API');\n const cliAuthStrategy: McpAuthenticationStrategy = {\n getSiteAuthHeaders: () => ({\n Authorization: wixAuthorization\n }),\n getAccountAuthHeaders: () => ({\n Authorization: wixAuthorization\n })\n };\n addApiCallTool(server, cliAuthStrategy, ['CallWixSiteAPI']);\n } else {\n logger.error(\n 'WIX_API tool requires missing wixAuthorization argument to be set. Will not add WIX_API tool.'\n );\n }\n }\n}\n\ntry {\n const portals = parsedArgs['portals']?.split(',') || [];\n if (portals.length > 0) {\n logger.log('Adding docs resources for portals:', portals);\n await addDocsResources(server, portals);\n }\n} catch (error) {\n logger.error('Error adding docs resources:', error);\n}\n\nlogger.log('Starting server');\nconst transport = new StdioServerTransport();\nlogger.log('Connecting to transport');\nawait server.connect(transport);\nlogger.log('Transport connected');\n\nif (loggerType === 'mcp') {\n // From now on, we log to the MCP server\n attachMcpServerLogger(server);\n}\n", "import { z } from 'zod';\nimport { runSemanticSearchAndFormat } from './semanticSearch.js';\nimport { logger } from '../infra/logger.js';\nimport type { WixMcpServer } from '../wix-mcp-server.js';\nimport { captureException } from '@sentry/node';\nimport { fetchArticleContent } from './fetch-article.js';\nimport { addGetToKnowTools } from './get-to-know.js';\nimport { addCreateWixBusinessGuideTools } from './create-site-guide.js';\nimport { McpAuthenticationStrategy } from '../auth/index.js';\nimport { defaultToolDescriptions } from '../config/default-config.js';\n\nexport const VALID_DOCS_TOOLS = [\n 'WDS',\n 'REST',\n 'SDK',\n 'BUILD_APPS',\n 'WIX_HEADLESS',\n 'VELO',\n 'BUSINESS_SOLUTIONS'\n] as const;\nexport type DocsTool = (typeof VALID_DOCS_TOOLS)[number];\n\n/**\n * Configuration for a README doc entry\n */\nexport interface ReadmeDocConfig {\n url?: string;\n action: 'include' | 'index' | 'text' | 'api';\n title?: string;\n description?: string;\n content?: string;\n /** HTTP method for API calls (only used when action is 'api'). Defaults to 'GET' */\n method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';\n /** Request body for API calls (only used when action is 'api' with POST/PUT/PATCH) */\n body?: Record<string, unknown>;\n}\n\nexport interface DocsToolsOptions {\n getToKnowWixEnabled?: boolean;\n createWixBusinessGuideEnabled?: boolean;\n disableTools?: string[];\n /** Custom descriptions for tools, keyed by tool name */\n toolDescriptions?: Record<string, string>;\n /** Custom list of docs that compose the WixREADME tool output */\n readmeDocs?: ReadmeDocConfig[];\n /** Authentication strategy for API calls (required if using 'api' action in readmeDocs) */\n authStrategy?: McpAuthenticationStrategy;\n /** Override base URL for Picasso docs (e.g., \"http://localhost:4000\" for local dev) */\n picassoPortalUrl?: string;\n}\n\nexport const addDocsTools = (\n server: WixMcpServer,\n allowedTools: DocsTool[] = [\n 'WDS',\n 'REST',\n 'SDK',\n 'BUILD_APPS',\n 'WIX_HEADLESS',\n 'BUSINESS_SOLUTIONS'\n ],\n options: DocsToolsOptions = {}\n) => {\n const {\n getToKnowWixEnabled = false,\n createWixBusinessGuideEnabled = true,\n disableTools,\n toolDescriptions,\n readmeDocs,\n authStrategy,\n picassoPortalUrl\n } = options;\n\n // Helper to get description (custom or default)\n const getDescription = (toolName: string, defaultDesc: string): string =>\n toolDescriptions?.[toolName] ?? defaultDesc;\n\n if (getToKnowWixEnabled && !disableTools?.includes('WixREADME')) {\n addGetToKnowTools(\n server,\n disableTools || [],\n toolDescriptions,\n readmeDocs,\n authStrategy,\n picassoPortalUrl\n );\n }\n if (\n createWixBusinessGuideEnabled &&\n !disableTools?.includes('CreateWixBusinessGuide')\n ) {\n addCreateWixBusinessGuideTools(\n server,\n disableTools || [],\n toolDescriptions\n );\n }\n\n // WDS Documentation\n if (\n allowedTools.includes('WDS') &&\n !disableTools?.includes('SearchWixWDSDocumentation')\n ) {\n server.tool(\n 'SearchWixWDSDocumentation',\n getDescription(\n 'SearchWixWDSDocumentation',\n defaultToolDescriptions.SearchWixWDSDocumentation ?? ''\n ),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix Design System Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(10)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix WDS`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'WDS',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixWDSDocumentation',\n toolName: 'SearchWixWDSDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix WDS: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // REST Documentation\n if (\n allowedTools.includes('REST') &&\n !disableTools?.includes('SearchWixRESTDocumentation')\n ) {\n server.tool(\n 'SearchWixRESTDocumentation',\n getDescription(\n 'SearchWixRESTDocumentation',\n defaultToolDescriptions.SearchWixRESTDocumentation\n ),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix REST API Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(10)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix REST API`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'REST',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixRESTDocumentation',\n toolName: 'SearchWixRESTDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix REST API: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n if (\n allowedTools.includes('BUSINESS_SOLUTIONS') &&\n !getToKnowWixEnabled &&\n !disableTools?.includes('WixBusinessFlowsDocumentation')\n ) {\n server.tool(\n 'WixBusinessFlowsDocumentation',\n getDescription(\n 'WixBusinessFlowsDocumentation',\n defaultToolDescriptions.WixBusinessFlowsDocumentation ?? ''\n ),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term for the required sample flow (e.g. \"setup a new business\")'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix Sample Flows`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'BUSINESS_SOLUTIONS',\n toolParams: {\n searchTerm:\n '**RECIPE**: Business Recipes - full setup flow for::: ' +\n searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: [\n result,\n `Out of the included list of articles, you **MUST** select the one that is most relevant to the user's request and use the ReadFullDocsArticle tool to fetch it.`\n ].join('\\n\\n')\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixSampleFlowsDocumentation',\n toolName: 'SearchWixSampleFlowsDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix Sample Flows: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // SDK Documentation\n if (\n allowedTools.includes('SDK') &&\n !disableTools?.includes('SearchWixSDKDocumentation')\n ) {\n server.tool(\n 'SearchWixSDKDocumentation',\n getDescription(\n 'SearchWixSDKDocumentation',\n defaultToolDescriptions.SearchWixSDKDocumentation ?? ''\n ),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix SDK Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix SDK`);\n\n panorama\n .transaction('SearchWixSDKDocumentation')\n .start({ maxResults });\n const result = await runSemanticSearchAndFormat({\n toolName: 'SDK',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n panorama\n .transaction('SearchWixSDKDocumentation')\n .finish({ maxResults });\n\n return {\n content: [\n {\n type: 'text',\n text: [\n result,\n 'you should use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method.'\n ].join('\\n---\\n')\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixSDKDocumentation',\n toolName: 'SearchWixSDKDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix SDK: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Build Apps Documentation\n if (\n allowedTools.includes('BUILD_APPS') &&\n !disableTools?.includes('SearchBuildAppsDocumentation')\n ) {\n server.tool(\n 'SearchBuildAppsDocumentation',\n getDescription(\n 'SearchBuildAppsDocumentation',\n defaultToolDescriptions.SearchBuildAppsDocumentation ?? ''\n ),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Build Apps Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Build Apps`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'BUILD_APPS',\n toolParams: {\n searchTerm: `wix cli docs for ${searchTerm}`\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchBuildAppsDocumentation',\n toolName: 'SearchBuildAppsDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Build Apps: ${error}`\n );\n return {\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Wix Headless Documentation\n if (\n allowedTools.includes('WIX_HEADLESS') &&\n !disableTools?.includes('SearchWixHeadlessDocumentation')\n ) {\n server.tool(\n 'SearchWixHeadlessDocumentation',\n getDescription(\n 'SearchWixHeadlessDocumentation',\n defaultToolDescriptions.SearchWixHeadlessDocumentation ?? ''\n ),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Headless Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Headless`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'WIX_HEADLESS',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixHeadlessDocumentation',\n toolName: 'SearchWixHeadlessDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix Headless: ${error}`\n );\n return {\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Velo Documentation\n if (\n allowedTools.includes('VELO') &&\n !disableTools?.includes('SearchWixVeloDocumentation')\n ) {\n server.tool(\n 'SearchWixVeloDocumentation',\n getDescription(\n 'SearchWixVeloDocumentation',\n defaultToolDescriptions.SearchWixVeloDocumentation ?? ''\n ),\n {\n searchTerm: z\n .string()\n .describe('The search term to search for in the Velo Documentation'),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Velo`);\n\n panorama\n .transaction('SearchWixVeloDocumentation')\n .start({ maxResults });\n const result = await runSemanticSearchAndFormat({\n toolName: 'VELO',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n panorama\n .transaction('SearchWixVeloDocumentation')\n .finish({ maxResults });\n\n return {\n content: [\n {\n type: 'text',\n text: [\n result,\n 'you should use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method.'\n ].join('\\n---\\n')\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixVeloDocumentation',\n toolName: 'SearchWixVeloDocumentation'\n }\n });\n logger.error(`Error searching for ${searchTerm} in Velo: ${error}`);\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n if (!disableTools?.includes('ReadFullDocsArticle')) {\n server.tool(\n 'ReadFullDocsArticle',\n getDescription(\n 'ReadFullDocsArticle',\n defaultToolDescriptions.ReadFullDocsArticle\n ),\n {\n articleUrl: z\n .string()\n .url()\n .describe(\n 'The URL of the docs article or method article to fetch. Should be something like https://dev.wix.com/docs/.../.../...'\n )\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ articleUrl }, { httpClient }) => {\n try {\n const articleContent = await fetchArticleContent(\n httpClient,\n articleUrl,\n 'article',\n false,\n picassoPortalUrl\n );\n\n if (!articleContent) {\n throw new Error('Article content is empty');\n }\n\n return {\n content: [\n {\n type: 'text',\n text: articleContent\n }\n ]\n };\n } catch (error) {\n logger.error(\n `Error fetching article content or method schema for ${articleUrl}: ${error}`\n );\n return {\n content: [\n {\n type: 'text',\n text: `Could not fetch article content: \"${(error as Error).message}\". You should try completing the task without it.`\n }\n ]\n };\n }\n }\n );\n }\n\n if (!disableTools?.includes('ReadFullDocsMethodSchema')) {\n server.tool(\n 'ReadFullDocsMethodSchema',\n getDescription(\n 'ReadFullDocsMethodSchema',\n defaultToolDescriptions.ReadFullDocsMethodSchema\n ),\n {\n articleUrl: z\n .string()\n .url()\n .describe(\n 'The URL of the documentation to fetch. Should be something like https://dev.wix.com/docs/.../.../...'\n )\n },\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async ({ articleUrl }, { httpClient }) => {\n try {\n const articleContent = await fetchArticleContent(\n httpClient,\n articleUrl,\n 'methodSchema',\n false,\n picassoPortalUrl\n );\n\n if (!articleContent) {\n throw new Error('Method schema is empty');\n }\n\n return {\n content: [\n {\n type: 'text',\n text: articleContent\n }\n ]\n };\n } catch (error) {\n logger.error(\n `Error fetching method schema for ${articleUrl}: ${error}`\n );\n return {\n content: [\n {\n type: 'text',\n text: `Could not fetch method schema: \"${(error as Error).message}\". You should try completing the task without it.`\n }\n ]\n };\n }\n }\n );\n }\n};\n", "import fs from 'fs/promises';\nimport path from 'path';\nimport { homedir } from 'os';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\n\nexport interface Logger {\n log(...data: unknown[]): void;\n error(...data: unknown[]): void;\n}\n\nconst createNullLogger = (): Logger => {\n return {\n log: () => {},\n error: () => {}\n };\n};\n\nconst createStdErrLogger = (): Logger => {\n return {\n log: (data) => {\n console.error(data);\n },\n error: (data) => {\n console.error(data);\n }\n };\n};\n\nconst createMcpServerLogger = (server: McpServer): Logger => {\n return {\n log: (data) => {\n server.server.sendLoggingMessage({ level: 'info', data });\n },\n error: (data) => {\n server.server.sendLoggingMessage({ level: 'error', data });\n }\n };\n};\n\nconst createFileLogger = (): Logger => {\n const filePath = path.join(homedir(), 'wix-mcp-log.txt');\n const date = new Date()\n .toLocaleString('en-US', { timeZone: 'Asia/Jerusalem' })\n .replace(/,/g, '');\n\n return {\n log: (...data) => {\n const message = `[info] ${date} - ${data.join(' ')}`;\n fs.appendFile(filePath, `${message}\\n`);\n },\n error: (...data) => {\n const message = `[error] ${date} - ${data.join(' ')}`;\n fs.appendFile(filePath, `${message}\\n`);\n }\n };\n};\n\nexport const logger = createNullLogger();\n\nexport const attachMcpServerLogger = (server: McpServer) => {\n const mcpLogger = createMcpServerLogger(server);\n logger.log = mcpLogger.log;\n logger.error = mcpLogger.error;\n};\n\nexport const attachStdErrLogger = () => {\n const stdErrLogger = createStdErrLogger();\n logger.log = stdErrLogger.log;\n logger.error = stdErrLogger.error;\n};\n\nexport const attachFileLogger = () => {\n const fileLogger = createFileLogger();\n logger.log = fileLogger.log;\n logger.error = fileLogger.error;\n};\n\nexport const attachConsoleLogger = () => {\n logger.log = (...data: unknown[]) => console.log('[WixMCP]', ...data);\n logger.error = (...data: unknown[]) => console.error('[WixMCP]', ...data);\n};\n", "import type { DocsTool } from './docs.js';\nimport { logger } from '../infra/logger.js';\n\nexport const MAX_CONTENT_LENGTH = 10000;\nexport const DEFAULT_MAX_RESULTS = 10;\n\nconst runSemanticSearch = async (\n toolName: DocsTool,\n toolParams: Record<string, string>,\n maxResults: number = 20,\n rerank: boolean = false\n) => {\n const startTime = new Date().getTime();\n\n const url = new URL(\n `https://www.wixapis.com/mcp-docs-search/v1/search?maxResults=${maxResults}&rerank=${rerank}`\n );\n\n if (toolName === 'SDK') {\n url.searchParams.append('kbName', 'SDK_SCHEMAS_KB_ID');\n url.searchParams.append('kbName', 'SDK_DOCS_KB_ID');\n } else if (toolName === 'REST' || toolName === 'BUSINESS_SOLUTIONS') {\n if (toolName === 'REST') {\n url.searchParams.append('kbName', 'REST_METHODS_KB_ID');\n }\n url.searchParams.append('kbName', 'REST_DOCS_KB_ID');\n // MCP_REST_RECIPES_KB_ID disabled - all recipes from this KB have been migrated\n // to packages/docs/recipes-v2/ and are now served via Picasso documentation.\n // Searching this KB is no longer needed and would return duplicate/outdated content.\n // url.searchParams.append('kbName', 'MCP_REST_RECIPES_KB_ID');\n } else if (toolName === 'WDS') {\n url.searchParams.append('kbName', 'WDS_DOCS_KB_ID');\n } else if (toolName === 'BUILD_APPS') {\n url.searchParams.append('kbName', 'BUILD_APPS_KB_ID');\n } else if (toolName === 'WIX_HEADLESS') {\n url.searchParams.append('kbName', 'HEADLESS_KB_ID');\n } else if (toolName === 'VELO') {\n url.searchParams.append('kbName', 'VELO_DOCS_KB_ID');\n url.searchParams.append('kbName', 'VELO_METHODS_KB_ID');\n }\n for (const [key, value] of Object.entries(toolParams)) {\n url.searchParams.append(key, value);\n }\n\n logger.log('Running RAG search', url.toString());\n\n const response = await fetch(url.toString(), {\n headers: {\n 'Content-Type': 'application/json',\n 'x-time-budget': '180000',\n 'x-wix-time-budget': '180000'\n }\n });\n\n if (!response.ok) {\n logger.error(`Failed to run rag search: ${response.statusText}`);\n throw new Error(`Failed to run rag search: ${response.statusText}`);\n }\n\n const data = await response.json();\n const endTime = new Date().getTime();\n const timeTaskFormatted = (endTime - startTime) / 1000;\n\n logger.log(\n 'Ran RAG search successfully with params',\n JSON.stringify(toolParams),\n timeTaskFormatted,\n typeof data\n );\n\n return data?.results;\n};\n\nconst getContentFromChunkedContent = (chunkedContent: string[]) => {\n let content = '';\n for (const chunk of chunkedContent) {\n if (content.length + chunk.length > MAX_CONTENT_LENGTH) {\n break;\n }\n content += '\\n\\n---\\n\\n' + chunk;\n }\n return content;\n};\n\nconst formatResultsContent = (\n resultsFromKbs: Record<\n string,\n {\n results: {\n entry: {\n content: string;\n chunkedContent: string[];\n };\n scoresInfo: {\n overallMatchScore: number;\n };\n }[];\n }\n >,\n maxResults: number,\n linesInEachResult: number | undefined = undefined\n): string => {\n // First, take the results from all KBs and sort them by overallMatchScore\n const allResults = Object.entries(resultsFromKbs)\n .map(([, { results }]) => results)\n .flat();\n\n if (allResults.length === 0) {\n throw new Error('No result from search');\n }\n\n const sortedResults = allResults.sort(\n (a, b) => b.scoresInfo.overallMatchScore - a.scoresInfo.overallMatchScore\n );\n\n // Take the top maxResults results\n const topResults = sortedResults.slice(0, maxResults);\n\n // Concatenate the content of the top results\n const concatenatedContent = topResults\n .map((result) => {\n let newContent = result.entry.content;\n\n if (linesInEachResult) {\n const totalLines = newContent.split('\\n').length;\n const linesToTake = Math.min(linesInEachResult, totalLines);\n newContent = newContent.split('\\n').slice(0, linesToTake).join('\\n');\n const moreLines = totalLines - linesToTake;\n const moreLinesText =\n moreLines > 0 ? `\\n\\n... ${moreLines} more lines ...` : '';\n newContent = `${newContent}${moreLinesText}`;\n }\n\n return {\n ...result,\n entry: {\n ...result.entry,\n content: newContent\n }\n };\n })\n .map((result) => {\n const content = result.entry.content;\n const chunkedContent = result.entry.chunkedContent;\n\n if (content.length > MAX_CONTENT_LENGTH) {\n logger.log(`Content is too long, using chunked content`, {\n contentLength: content.length,\n chunkedContentLength: chunkedContent.length\n });\n return getContentFromChunkedContent(chunkedContent);\n }\n return content;\n })\n .join('\\n\\n---\\n\\n');\n\n return concatenatedContent;\n};\n\nexport const runSemanticSearchAndFormat = async ({\n toolName,\n toolParams,\n maxResults = DEFAULT_MAX_RESULTS,\n rerank,\n linesInEachResult\n}: {\n toolName: DocsTool;\n toolParams: Record<string, string>;\n maxResults?: number;\n rerank?: boolean;\n linesInEachResult?: number | undefined;\n}) => {\n const results = await runSemanticSearch(\n toolName,\n toolParams,\n maxResults,\n rerank\n );\n const maxResultsToUse = Math.min(maxResults, DEFAULT_MAX_RESULTS);\n return formatResultsContent(results, maxResultsToUse, linesInEachResult);\n};\n", "export const RAW_DOCS_API_URL = 'https://dev.wix.com/rawdocs/api';\nexport const GET_ARTICLE_CONTENT_URL = `${RAW_DOCS_API_URL}/get-article-content`;\nexport const PORTAL_INDEX_URL = `${RAW_DOCS_API_URL}/portal-index`;\n", "import { HttpClient } from '@wix/http-client';\nimport { logger } from '../infra/logger.js';\nimport { GET_ARTICLE_CONTENT_URL } from '../constants.js';\n\nconst PICASSO_URL_PREFIX = 'https://dev.wix.com/docs/picasso/';\n\n/**\n * Replaces the Picasso URL prefix with the configured override URL.\n * This allows fetching from a local dev server instead of production.\n *\n * Example:\n * Input: https://dev.wix.com/docs/picasso/wix-ai-docs/index/get-to-know-wix\n * Output: http://localhost:4000/wix-ai-docs/index/get-to-know-wix\n */\nfunction applyPicassoUrlOverride(\n articleUrl: string,\n picassoPortalUrl?: string\n): string {\n if (!picassoPortalUrl) {\n return articleUrl;\n }\n\n if (articleUrl.startsWith(PICASSO_URL_PREFIX)) {\n // Remove trailing slash from override URL if present to avoid double slashes\n const baseUrl = picassoPortalUrl.replace(/\\/$/, '');\n const pathAfterPicasso = articleUrl.slice(PICASSO_URL_PREFIX.length);\n const overriddenUrl = `${baseUrl}/${pathAfterPicasso}`;\n logger.log(\n `[Picasso URL Override] Redirecting ${articleUrl} to ${overriddenUrl}`\n );\n return overriddenUrl;\n }\n\n return articleUrl;\n}\n\nasync function fetchArticleContentFromDigor(\n httpClient: HttpClient,\n articleUrl: string,\n mode: 'article' | 'methodSchema',\n stripHeader: boolean = false\n) {\n // https://dev.wix.com/rawdocs/api/get-article-content?articleUrl=https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/create-draft-post&schema=true\n const url = new URL(GET_ARTICLE_CONTENT_URL);\n url.searchParams.set('articleUrl', articleUrl);\n const schema = mode === 'methodSchema' ? 'true' : 'false';\n url.searchParams.set('schema', schema);\n\n logger.log(`Fetching resource from docs ${url.toString()}`);\n\n const { data } = await httpClient.get(url.toString());\n\n logger.log(`Fetched resource from docs: ${data.articleContent}`);\n\n const headerDivider = '## Article Content:'; // after the header, the content starts\n\n if (stripHeader) {\n const headerIndex = data.articleContent.indexOf(headerDivider);\n if (headerIndex !== -1) {\n return data.articleContent.substring(\n headerIndex + headerDivider.length\n ) as string;\n }\n }\n\n return data.articleContent as string;\n}\n\nexport async function fetchArticleContent(\n httpClient: HttpClient,\n articleUrl: string,\n mode: 'article' | 'methodSchema' | 'raw',\n stripHeader: boolean = false,\n picassoPortalUrl?: string\n) {\n // Apply Picasso URL override if configured\n const effectiveUrl = applyPicassoUrlOverride(articleUrl, picassoPortalUrl);\n const isOverridden = effectiveUrl !== articleUrl;\n\n // When override is active for Picasso URLs, fetch directly from the override server\n // (don't go through rawdocs API which can't reach localhost)\n if (isOverridden) {\n try {\n const { data: doc } = await httpClient.get(effectiveUrl);\n return doc as string;\n } catch (error) {\n console.warn(\n `[fetch] Override failed for ${effectiveUrl}, falling back to ${articleUrl}:`,\n error instanceof Error ? error.message : error\n );\n // Fall through to normal fetch\n }\n }\n\n if (mode === 'raw') {\n let parsedUrl: URL;\n\n try {\n parsedUrl = new URL(articleUrl);\n } catch {\n throw new Error(`Invalid URL format: ${articleUrl}`);\n }\n\n const hostname = parsedUrl.hostname.replace('www.', '');\n if (hostname !== 'dev.wix.com') {\n throw new Error(\n `Unsupported URL domain: ${hostname}. Article URL must be from dev.wix.com`\n );\n }\n\n const { data: doc } = await httpClient.get(articleUrl);\n return doc as string;\n }\n\n return fetchArticleContentFromDigor(\n httpClient,\n articleUrl,\n mode,\n stripHeader\n );\n}\n", "function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _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; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nconst dedent = createDedent({});\nexport default dedent;\nfunction createDedent(options) {\n dedent.withOptions = newOptions => createDedent(_objectSpread(_objectSpread({}, options), newOptions));\n return dedent;\n function dedent(strings, ...values) {\n const raw = typeof strings === \"string\" ? [strings] : strings.raw;\n const {\n alignValues = false,\n escapeSpecialCharacters = Array.isArray(strings),\n trimWhitespace = true\n } = options;\n\n // first, perform interpolation\n let result = \"\";\n for (let i = 0; i < raw.length; i++) {\n let next = raw[i];\n if (escapeSpecialCharacters) {\n // handle escaped newlines, backticks, and interpolation characters\n next = next.replace(/\\\\\\n[ \\t]*/g, \"\").replace(/\\\\`/g, \"`\").replace(/\\\\\\$/g, \"$\").replace(/\\\\\\{/g, \"{\");\n }\n result += next;\n if (i < values.length) {\n const value = alignValues ? alignValue(values[i], result) : values[i];\n\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n result += value;\n }\n }\n\n // now strip indentation\n const lines = result.split(\"\\n\");\n let mindent = null;\n for (const l of lines) {\n const m = l.match(/^(\\s+)\\S+/);\n if (m) {\n const indent = m[1].length;\n if (!mindent) {\n // this is the first indented line\n mindent = indent;\n } else {\n mindent = Math.min(mindent, indent);\n }\n }\n }\n if (mindent !== null) {\n const m = mindent; // appease TypeScript\n result = lines\n // https://github.com/typescript-eslint/typescript-eslint/issues/7140\n // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with\n .map(l => l[0] === \" \" || l[0] === \"\\t\" ? l.slice(m) : l).join(\"\\n\");\n }\n\n // dedent eats leading and trailing whitespace too\n if (trimWhitespace) {\n result = result.trim();\n }\n\n // handle escaped newlines at the end to ensure they don't get stripped too\n if (escapeSpecialCharacters) {\n result = result.replace(/\\\\n/g, \"\\n\");\n }\n\n // Workaround for Bun issue with Unicode characters\n // https://github.com/oven-sh/bun/issues/8745\n if (typeof Bun !== \"undefined\") {\n result = result.replace(\n // Matches e.g. \\\\u{1f60a} or \\\\u5F1F\n /\\\\u(?:\\{([\\da-fA-F]{1,6})\\}|([\\da-fA-F]{4}))/g, (_, braced, unbraced) => {\n var _ref;\n const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : \"\";\n return String.fromCodePoint(parseInt(hex, 16));\n });\n }\n return result;\n }\n}\n\n/**\n * Adjusts the indentation of a multi-line interpolated value to match the current line.\n */\nfunction alignValue(value, precedingText) {\n if (typeof value !== \"string\" || !value.includes(\"\\n\")) {\n return value;\n }\n const currentLine = precedingText.slice(precedingText.lastIndexOf(\"\\n\") + 1);\n const indentMatch = currentLine.match(/^(\\s+)/);\n if (indentMatch) {\n const indent = indentMatch[1];\n return value.replace(/\\n/g, `\\n${indent}`);\n }\n return value;\n}\n", "import dedent from 'dedent';\nimport type { ReadmeDocConfig } from '../docs/get-to-know.js';\nimport type { DocsTool } from '../docs/docs.js';\nimport type { ToolHintsConfig } from '../api-call/index.js';\n\n/**\n * Configuration structure for MCP modes\n */\nexport interface ModeDefaultConfig {\n toolDescriptions: Record<string, string>;\n disableTools: string[];\n enableTools: string[];\n readmeDocs: ReadmeDocConfig[];\n toolHints?: Record<string, ToolHintsConfig>;\n // Docs tools config\n docsTools?: DocsTool[];\n getToKnowWixEnabled?: boolean;\n createWixBusinessGuideEnabled?: boolean;\n}\n\n/**\n * System reminder text - provides flow guidance for LLMs\n */\nexport const SYSTEM_REMINDER = dedent`\n <system-reminder>\n Wix MCP Site Management Flows:\n - RECIPE BASED (PREFERRED!): WixREADME() -> find relevant recipe for the user's prompt/task -> read recipe using ReadFullDocsArticle() -> call API using CallWixSiteAPI() based on the recipe\n - EXAMPLE BASED: WixREADME() -> no relevant recipe found for user's prompt/task -> SearchWixRESTDocumentation() -> find relevant method -> read method article using ReadFullDocsArticle() to get method code examples -> call API using CallWixSiteAPI() based on the method code examples\n - SCHEMA BASED, FALLBACK: WixREADME() -> no relevant recipe found for user's prompt/task -> SearchWixRESTDocumentation() -> find relevant method -> read method article using ReadFullDocsArticle() -> no method code examples found -> read method schema using ReadFullDocsMethodSchema() -> call API using CallWixSiteAPI() based on the schema\n </system-reminder>\n`;\n\n/**\n * Default tool descriptions - single source of truth for all tool descriptions\n */\nexport const defaultToolDescriptions: Record<string, string> = {\n WixREADME: dedent`\n # Tool: WixREADME\n **Directive:** \\`WixREADME\\` is the **MANDATORY FIRST STEP** for all Wix-related tasks. Its output (including relevant linked documents) provides foundational context for all other Wix tools. Adherence to this protocol is **NON-NEGOTIABLE**.\n ${SYSTEM_REMINDER}\n `,\n\n SearchWixRESTDocumentation: dedent`\n Searches the official Wix REST API documentation.\n Use this tool whenever you need to to interact with the Wix platform via HTTP requests.\n Specify the API endpoint, resource, or action you need information about (e.g., 'get site details endpoint', 'create data collection', 'update product API', 'REST authentication').\n If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\n ${SYSTEM_REMINDER}\n `,\n\n ReadFullDocsArticle: dedent`\n Fetches the full Wix docs article or method article with code examples for using the method.\n Docs articles looks like this: https://dev.wix.com/docs/... and they can either be general docs articles or method articles.\n ${SYSTEM_REMINDER}\n `,\n\n ReadFullDocsMethodSchema: dedent`\n Fetches the full method schema for a given method.\n This will give you the entire request/response schema with all the fields and their descriptions.\n ${SYSTEM_REMINDER}\n `,\n\n CallWixSiteAPI: dedent`\n Call Wix apis on a business or site. Use this to create, read, update, and delete data and other Wix entities in your Wix site,\n The API endpoint url param MUST ALWAYS be taken from the conversation context.\n By conversation context we mean the endpoint url was given in the user prompt or got into the conversation context by the \"WixREADME\" tool or by the \"SearchWixRESTDocumentation\" tool or by the \"ReadFullDocsArticle\" tool.\n Error Handling:\n If the error is related to missing installed app or \"WDE0110: Wix Code not enabled\", you should install the missing app by using ReadFullDocsArticle tool to fetch the article - https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp\n **Note:** there is no need to check if an app is installed/ Wix Code enabled in advance, just call the API and handle the error if it occurs, the API error message will state it clearly.\n For any other error, use your default error handling mechanism\n Allowed API urls are: wix.com, dev.wix.com, manage.wix.com, editor.wix.com, wixapis.com\n Docs urls like https://dev.wix.com/docs/... are not api urls, if you want to read the docs, use the \"ReadFullDocsArticle\" tool\n ${SYSTEM_REMINDER}\n `,\n\n ListWixSites: dedent`\n List Wix sites for the current user, by default it will return all sites, but you can filter by name\n ${SYSTEM_REMINDER}\n `,\n\n ManageWixSite: dedent`\n Use account level API in order to create a site, update a site and publish site.\n The API endpoint url param MUST ALWAYS be taken from the conversation context.\n By conversation context we mean the endpoint url was given in the user prompt or got into the conversation context by the \"WixREADME\" tool or by the \"SearchWixRESTDocumentation\" tool or by the \"ReadFullDocsArticle\" tool.\n ${SYSTEM_REMINDER}\n `,\n\n UploadImageToWixSite: dedent`\n Upload an image file to a Wix site Media Manager.\n This tool accepts an image from the user and uploads it to the specified Wix site.\n Returns the uploaded file URL (wixstatic.com) and media ID that can be used in other Wix APIs.\n Use this when the user wants to upload a local image to their Wix site.\n `,\n\n SupportAndFeedback: dedent`\n If the user would like to provide Wix with some feedback (good or bad), about the tools in Wix MCP,\n for example they used the tools provided, and they reflected satisfaction or dissatisfaction with the tools.\n Also, if you encounter too many errors tyring to call the Wix API, you can also suggest the user to provide feedback to Wix using this tool.\n **IMPORTANT NOTE**\n This tool is not sending the message, but formats it in order to another tool to actually send it\n `\n};\n\n/**\n * Default readme docs - content for WixREADME tool response\n */\nexport const defaultReadmeDocs: ReadmeDocConfig[] = [\n {\n action: 'text',\n content: dedent`\n <system>\n \n The main goal of the WixREADME tool is to help you manage your Wix business by making API calls to the Wix API.\n \n A common flow would be:\n 1. User asks you to do something,\n 2. You use the \"WixREADME\" tool to get the context,\n 3. You find a relevant recipe in the recipes index,\n 4. You use the \"ReadFullDocsArticle\" tool to get the full recipe,\n 5. You use the \"CallWixSiteAPI\" tool to call the API (No need to search or read the full schema, just call the API according to the recipe)\n \n Another flow would be:\n 1. User asks you to do something,\n 2. You use the \"WixREADME\" tool to get the context,\n 3. You do not find a relevant recipe in the recipes index,\n 4. You use the \"SearchWixRESTDocumentation\" tool to search for the API you should invoke,\n 5. You read the relevant articles using the \"ReadFullDocsArticle\" tool,\n 6. You find a relevant code example in the articles,\n 7. You use the \"CallWixSiteAPI\" tool to call the API. (No need to read the full schema, just call the API according to the code example)\n\n Fallback flow (No relevant recipe or code example found, or you failed using the other flows):\n 1. User asks you to do something,\n 2. You use the \"WixREADME\" tool to get the context,\n 3. You do not find a relevant recipe in the recipes index,\n 4. You use the \"SearchWixRESTDocumentation\" tool to search for the API you should invoke,\n 5. You read the relevant articles using the \"ReadFullDocsArticle\" tool,\n 6. You do not find a relevant code example in the articles,\n 7. You use the \"ReadFullDocsMethodSchema\" tool to get the full method schema,\n 8. You use the \"CallWixSiteAPI\" tool to call the API. (No need to search or read the full schema, just call the API according to the method schema)\n </system>\n `\n },\n {\n url: 'https://dev.wix.com/docs/picasso/wix-ai-docs/recipes-v2/manage/management-recipes-index',\n action: 'include'\n },\n {\n url: 'https://dev.wix.com/docs/picasso/wix-ai-docs/index/wix-business-solutions',\n action: 'index',\n title: 'Wix Business Solutions',\n description: dedent`\n This document provides an overview of the all business solutions available in Wix.\n\n Use this document under the following scenarios:\n 1. The user asks general questions about Wix business solutions.\n 2. The user asks about a specific business solution, and you want to provide a high-level overview of it.\n 3. The user looks for a specific business solution, and you want to provide a list of all available solutions.\n\n Please note that this is a large document. Only use it for the scenarios mentioned above.\n `\n }\n];\n\n/**\n * Merge base config with overrides\n * @param base - Base configuration\n * @param overrides - Partial overrides to apply\n * @returns Merged configuration\n */\nexport function mergeConfig(\n base: ModeDefaultConfig,\n overrides: Partial<ModeDefaultConfig>\n): ModeDefaultConfig {\n return {\n toolDescriptions: {\n ...base.toolDescriptions,\n ...overrides.toolDescriptions\n },\n disableTools: [...base.disableTools, ...(overrides.disableTools ?? [])],\n enableTools: [...base.enableTools, ...(overrides.enableTools ?? [])],\n readmeDocs: overrides.readmeDocs ?? base.readmeDocs,\n toolHints: { ...base.toolHints, ...overrides.toolHints },\n docsTools: overrides.docsTools ?? base.docsTools,\n getToKnowWixEnabled:\n overrides.getToKnowWixEnabled ?? base.getToKnowWixEnabled,\n createWixBusinessGuideEnabled:\n overrides.createWixBusinessGuideEnabled ??\n base.createWixBusinessGuideEnabled\n };\n}\n\n/**\n * Default config - used by both /mcp and /v2 endpoints\n * All tools enabled, all descriptions, good readmeDocs\n */\nexport const defaultConfig: ModeDefaultConfig = {\n toolDescriptions: defaultToolDescriptions,\n disableTools: [],\n enableTools: [],\n readmeDocs: defaultReadmeDocs,\n docsTools: ['REST'],\n getToKnowWixEnabled: true,\n createWixBusinessGuideEnabled: true\n};\n", "import { WixMcpServer } from '../wix-mcp-server.js';\nimport { fetchArticleContent } from './fetch-article.js';\nimport { McpAuthenticationStrategy } from '../auth/index.js';\nimport {\n defaultToolDescriptions,\n defaultReadmeDocs\n} from '../config/default-config.js';\n\n/**\n * Configuration for a README doc entry\n */\nexport interface ReadmeDocConfig {\n url?: string;\n action: 'include' | 'index' | 'text' | 'api';\n title?: string;\n description?: string;\n content?: string;\n /** HTTP method for API calls (only used when action is 'api'). Defaults to 'GET' */\n method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';\n /** Request body for API calls (only used when action is 'api' with POST/PUT/PATCH) */\n body?: Record<string, unknown>;\n}\n\nexport async function addGetToKnowTools(\n server: WixMcpServer,\n disableTools: string[] = [],\n toolDescriptions?: Record<string, string>,\n readmeDocs?: ReadmeDocConfig[],\n authStrategy?: McpAuthenticationStrategy,\n picassoPortalUrl?: string\n) {\n if (disableTools.includes('WixREADME')) {\n return;\n }\n\n // Use provided docs or fall back to defaults\n const docsToUse = readmeDocs ?? defaultReadmeDocs;\n\n server.tool(\n 'WixREADME',\n toolDescriptions?.['WixREADME'] ?? defaultToolDescriptions.WixREADME,\n {},\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async (_, { httpClient }) => {\n const contents = await Promise.all(\n docsToUse.map(\n async ({\n url,\n action,\n description,\n title,\n content,\n method,\n body\n }) => {\n try {\n if (action === 'index') {\n return {\n type: 'text' as const,\n text: `## ${title}\\n\\n<urls>\\n${url}\\n</urls>\\n\\n${description ?? ''}`\n };\n }\n\n if (action === 'text') {\n const textContent = title\n ? `## ${title}\\n\\n${content ?? ''}`\n : (content ?? '');\n return {\n type: 'text' as const,\n text: textContent\n };\n }\n\n if (action === 'api') {\n if (!url) {\n throw new Error('URL is required for \"api\" action');\n }\n if (!authStrategy) {\n throw new Error(\n 'Authentication strategy is required for \"api\" action. ' +\n 'The \"api\" action cannot be used without proper authentication configuration.'\n );\n }\n\n const httpMethod = method ?? 'GET';\n const accountHeaders =\n await authStrategy.getAccountAuthHeaders();\n\n const response = await httpClient.request({\n url,\n method: httpMethod as any,\n headers: {\n ...accountHeaders,\n ...(body ? { 'Content-Type': 'application/json' } : {})\n },\n data: httpMethod === 'GET' ? undefined : body\n });\n\n const responseText =\n typeof response.data === 'string'\n ? response.data\n : JSON.stringify(response.data, null, 2);\n\n const textContent = title\n ? `## ${title}\\n\\n${responseText}`\n : responseText;\n\n return {\n type: 'text' as const,\n text: textContent\n };\n }\n\n // action === 'include'\n if (!url) {\n throw new Error('URL is required for \"include\" action');\n }\n const fetchedContent = await fetchArticleContent(\n httpClient,\n url,\n 'article',\n true,\n picassoPortalUrl\n );\n return {\n type: 'text' as const,\n text: fetchedContent\n };\n } catch (error) {\n const errorMsg = (error as Error).message;\n const identifier = title ?? url ?? action;\n\n // For 'api' action, silently skip on error (just log it)\n if (action === 'api') {\n console.error(\n `[WixREADME] API call failed for \"${identifier}\": ${errorMsg}`\n );\n return null;\n }\n\n // For other actions, show error in output\n return {\n type: 'text' as const,\n text: `## Error loading \"${identifier}\"\\n\\nFailed to fetch content: ${errorMsg}`\n };\n }\n }\n )\n );\n\n // Filter out null values (from silently failed api calls)\n const filteredContents = contents.filter(\n (item): item is { type: 'text'; text: string } => item !== null\n );\n\n // Concatenate all text blocks into a single string\n const concatenatedText = filteredContents\n .map((item) => item.text)\n .join('\\n\\n');\n\n return {\n content: [{ type: 'text' as const, text: concatenatedText }]\n };\n }\n );\n}\n", "import { WixMcpServer } from '../wix-mcp-server.js';\nimport { fetchArticleContent } from './fetch-article.js';\n\nconst CREATE_SITE_DOCS = [\n {\n url: 'https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_create_a_new_site_from_template',\n title: 'How to Create a New Wix Site',\n nextSteps:\n '\\n\\n**Next Steps:** Use the ManageWixSite tool to make the API call for creating the Wix site.'\n },\n {\n url: 'https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',\n title: 'How to Install App on a Wix Site',\n nextSteps:\n '\\n\\n**Next Steps:** Use the CallWixSiteAPI tool to make the API call for installing apps on the Wix site.'\n }\n];\n\nconst CREATE_SITE_DESCRIPTION = `\nProvides comprehensive documentation for creating a new Wix Business (i.e site, app, etc.)\n\n## When to Use This Tool\n\nUse this tool when the user requests to create a new Wix site.\n\n## What This Tool Contains\n\nThis tool provides complete documentation including:\n- Template selection (empty sites or designed templates)\n- Wix Editor vs Wix Studio options\n- Regular vs Headless site creation\n- API endpoint details and parameters\n- Post-creation steps (OAuth for headless, publishing for regular sites)\n- App installation instructions\n\n## Important Notes\n\n**Do NOT use WixREADME or SearchWixRESTDocumentation before this tool.** If the user wants to create a Wix site, call this tool directly. It contains ALL necessary documentation.\n\n**After reading this documentation:**\n1. Use ManageWixSite to create the site\n2. Use CallWixSiteAPI to install apps (if needed)\n\nIf the user wants to create a Wix site, call this tool directly. It contains ALL necessary documentation. You don't need to search for additional documentation, read more articles, use the WixREADME tool etc unless the user asks you to do so explicitly or you encounter an error.`;\n\nexport async function addCreateWixBusinessGuideTools(\n server: WixMcpServer,\n disableTools: string[] = [],\n toolDescriptions?: Record<string, string>\n) {\n if (disableTools.includes('CreateWixBusinessGuide')) {\n return;\n }\n server.tool(\n 'CreateWixBusinessGuide',\n toolDescriptions?.['CreateWixBusinessGuide'] ?? CREATE_SITE_DESCRIPTION,\n {},\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async (_args, { httpClient }) => {\n try {\n const contents = await Promise.all(\n CREATE_SITE_DOCS.map(async ({ url, title, nextSteps }) => {\n const articleContent = await fetchArticleContent(\n httpClient,\n url,\n 'article',\n true\n );\n\n const fullContent = `# ${title}\\n\\n${articleContent}${nextSteps}`;\n\n return {\n type: 'text' as const,\n text: fullContent\n };\n })\n );\n\n return {\n content: contents\n };\n } catch (error) {\n return {\n isError: true,\n content: [\n {\n type: 'text',\n text: `Error fetching create site documentation: ${(error as Error).message}`\n }\n ]\n };\n }\n }\n );\n}\n", "import { z } from 'zod';\nimport { logger } from '../infra/logger.js';\nimport { execa } from 'execa';\nimport { WixMcpServer } from '../wix-mcp-server.js';\n\nexport const VALID_CLI_TOOLS = ['WIX_API', 'CLI_COMMAND'] as const;\nexport type CLITool = (typeof VALID_CLI_TOOLS)[number];\n\nexport function addCliTools(\n server: WixMcpServer,\n allowedTools: CLITool[] = ['CLI_COMMAND'],\n isWixOne: boolean = false\n) {\n if (allowedTools.includes('CLI_COMMAND')) {\n server.tool(\n 'RunWixCliCommand',\n `Executes Wix CLI commands for Wix app development and management.\n Use this tool to run commands like 'wix app generate' (adds new extensions), 'wix app build' (builds your app), 'wix app preview' (creates shareable preview), 'wix app release' (releases a new version of your app), and more.\n\n IMPORTANT: Before using this tool, check if the command is mapped in package.json scripts:\n * Use this tool for npm/yarn scripts that map to Wix CLI commands as well.\n * Do not use this tool for starting the local development server.\n \n Before using this tool, you MUST search the Wix documentation for the command you want to run.\n \n DO NOT USE THIS TOOL FOR ANY OTHER PURPOSE. IT IS ONLY FOR WIX CLI COMMANDS.`,\n {\n appPath: z\n .string()\n .describe('The full path to the Wix CLI app to run the command on.'),\n extensionType: z\n .enum([\n 'dashboard-page',\n 'dashboard-plugin',\n 'dashboard-menu-plugin',\n 'dashboard-modal',\n 'web-method',\n 'api-route',\n 'event',\n 'service-plugin'\n ])\n .optional()\n .describe(\n 'The type of extension to generate. You MUST provide this for commands that generate extensions.'\n ),\n extensionName: z\n .string()\n .optional()\n .describe(\n 'The name of the extension to generate, e.g. My Dashboard Page. You MUST provide this for commands that generate extensions.'\n ),\n searchedDocs: z\n .boolean()\n .describe(\n 'Whether you have already searched the Wix documentation for the command you want to run.'\n ),\n command: z\n .string()\n .min(1, 'Command cannot be empty')\n .max(1000, 'Command is too long')\n .describe(\n \"The Wix CLI command to execute (e.g. 'wix app generate', 'wix app build', 'wix app preview', 'wix app release', etc.), or a script that maps to a Wix CLI command (e.g. 'npm run generate', 'yarn generate', etc.).\"\n )\n },\n async ({ command, appPath, extensionType, extensionName }) => {\n logger.log(\n `RunWixCliCommand: command: ${command}, appPath: ${appPath}, extensionType: ${extensionType}, extensionName: ${extensionName}`\n );\n let commandName = '';\n let commandArgs = [];\n\n if (command.includes('generate')) {\n if (!extensionType) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension type for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n if (!extensionName) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension name for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n // Format generate command with proper arguments\n commandName = 'npx';\n commandArgs = [\n isWixOne ? 'wix-one' : 'wix',\n 'app',\n 'generate',\n '-t',\n extensionType,\n '-n',\n extensionName,\n '--json'\n ];\n } else {\n const commandParts = command.split(' ');\n commandName = commandParts[0];\n commandArgs = commandParts.slice(1);\n }\n\n if (isWixOne && commandName === 'wix') {\n commandName = 'wix-one';\n }\n\n try {\n logger.log(\n `Executing Wix CLI command: ${commandName} ${commandArgs.join(' ')}`\n );\n\n // Execute with timeout\n const { stdout, stderr, exitCode } = await execa(\n commandName,\n commandArgs,\n {\n cwd: appPath,\n extendEnv: true,\n env: {\n ...process.env\n },\n timeout: 5 * 60 * 1000, // 5 minute timeout\n maxBuffer: 10 * 1024 * 1024 // 10MB output limit\n }\n );\n\n if (exitCode !== 0) {\n return {\n content: [{ type: 'text' as const, text: `Error: ${stderr}` }],\n isError: true\n };\n }\n\n logger.log(`RunWixCliCommand: stdout: ${stdout}`);\n logger.log(`RunWixCliCommand: stderr: ${stderr}`);\n\n return {\n content: [\n {\n type: 'text' as const,\n text: stderr\n ? [stdout, `Error: ${stderr}`].join('\\n\\n')\n : stdout\n }\n ]\n };\n } catch (error) {\n logger.error(`Error executing Wix CLI command: ${error}`);\n\n return {\n content: [{ type: 'text' as const, text: `Error: ${error}` }],\n isError: true\n };\n }\n }\n );\n }\n}\n", "import type { z, ZodRawShape, ZodType, ZodTypeAny } from 'zod';\nimport type { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';\nimport type {\n CallToolResult,\n Implementation,\n ToolAnnotations\n} from '@modelcontextprotocol/sdk/types.js';\nimport type { BiLogger } from '@wix/wix-bi-logger-client';\nimport type { PanoramaClientForComponent } from '@wix/panorama-client-node';\nimport { v4 as uuidv4 } from 'uuid';\nimport { captureException, setTags } from '@sentry/node';\nimport {\n McpServer,\n RegisteredTool,\n ToolCallback\n} from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { wixMcpRequestSrc39Evid1607 } from '@wix/bi-logger-api-infra-data/v2';\nimport { createPanoramaClient } from './infra/panorama.js';\nimport { createBiLogger } from './infra/bi-logger.js';\nimport { DEV_ENVIRONMENTS, ENV, getEnvironment } from './infra/environment.js';\nimport { HttpClient } from '@wix/http-client';\nimport { ServerOptions } from '@modelcontextprotocol/sdk/server/index.js';\nimport { type Logger, logger } from './infra/logger.js';\nimport type { WidgetExtras } from './infra/widget-payload.js';\n\ninterface ToolBiParams {\n visitorId?: string;\n siteId?: string;\n requestId?: string;\n jobId?: string; // Used for WixSiteBuilder tool\n}\n\ntype WixRequestHandlerExtra = RequestHandlerExtra<any, any> & {\n logger: Logger;\n biLogger: BiLogger;\n panorama: PanoramaClientForComponent;\n httpClient: HttpClient;\n setToolBiParams: (params: ToolBiParams) => void;\n};\n\ntype WixToolCallback<\n Args extends undefined | ZodRawShape | ZodType<object> = undefined\n> = Args extends ZodRawShape\n ? (\n args: z.objectOutputType<Args, ZodTypeAny>,\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>\n : Args extends ZodType<infer T>\n ? (\n args: T,\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>\n : (\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>;\n\nexport interface WixMcpServerContext {\n siteId?: string;\n sessionId?: string;\n nodeEnv?: string;\n}\n\nexport class WixMcpServer extends McpServer {\n private biLogger: BiLogger;\n private nodeEnv: ENV;\n private sessionId: string;\n private getUserId?: () => string;\n private getClientName?: () => string | undefined;\n constructor(\n private serverInfo: Implementation,\n options?: ServerOptions,\n private context?: WixMcpServerContext\n ) {\n super(serverInfo, options);\n this.sessionId = context?.sessionId ?? uuidv4();\n this.nodeEnv = getEnvironment(context?.nodeEnv);\n this.biLogger = createBiLogger({\n _client_id: this.sessionId\n });\n logger.log(`WixMcpServer created with sessionId: ${this.sessionId}`);\n }\n setUserIdGetter(getUserId: () => string) {\n this.getUserId = getUserId;\n }\n setClientNameGetter(getClientName: () => string | undefined) {\n this.getClientName = getClientName;\n }\n getWidgetExtras(): WidgetExtras {\n return {\n biContext: {\n userId: this.getUserId?.() ?? '',\n sessionId: this.sessionId\n }\n };\n }\n // 2 args: name + cb\n override tool(name: string, cb: WixToolCallback): RegisteredTool;\n // 3 args: name + description + cb\n override tool(\n name: string,\n description: string,\n cb: WixToolCallback\n ): RegisteredTool;\n // 3 args: name + paramsSchema + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n paramsSchema: Args,\n cb: WixToolCallback<Args>\n ): void;\n // 4 args: name + description + paramsSchema + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n description: string,\n paramsSchema: Args,\n cb: WixToolCallback<Args>\n ): void;\n // 4 args: name + description + annotations + cb\n override tool(\n name: string,\n description: string,\n annotations: ToolAnnotations,\n cb: WixToolCallback\n ): RegisteredTool;\n // 4 args: name + paramsSchema + annotations + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n paramsSchema: Args,\n annotations: ToolAnnotations,\n cb: WixToolCallback<Args>\n ): void;\n // 5 args: name + description + paramsSchema + annotations + cb\n override tool<Args extends ZodRawShape>(\n name: string,\n description: string,\n paramsSchema: Args,\n annotations: ToolAnnotations,\n cb: WixToolCallback<Args>\n ): void;\n\n override tool(...args: any[]): RegisteredTool {\n const cbIndex = args.findIndex((arg) => typeof arg === 'function');\n if (cbIndex !== -1) {\n const toolName = args[0] as string;\n const originalCb = args[cbIndex];\n args[cbIndex] = this.wrapToolCallback(toolName, originalCb);\n }\n\n return super.tool.apply(this, args as any);\n }\n\n override registerTool<\n InputArgs extends ZodRawShape | z.ZodType<object>,\n OutputArgs extends ZodRawShape | z.ZodType<object>\n >(\n name: string,\n config: {\n title?: string;\n description?: string;\n inputSchema?: InputArgs;\n outputSchema?: OutputArgs;\n annotations?: ToolAnnotations;\n _meta?: Record<string, unknown>;\n },\n cb: WixToolCallback<InputArgs>\n ): RegisteredTool {\n const wrappedCb = this.wrapToolCallback(name, cb);\n return super.registerTool(\n name,\n config,\n wrappedCb as ToolCallback<InputArgs>\n );\n }\n\n private wrapToolCallback(\n toolName: string,\n originalCb: (...args: any[]) => CallToolResult | Promise<CallToolResult>\n ): ToolCallback {\n const isDevEnvironment = DEV_ENVIRONMENTS.includes(this.nodeEnv);\n\n return async (...cbArgs: any[]) => {\n setTags({\n panoramaSessionId: this.sessionId\n });\n\n const panorama = createPanoramaClient({\n environment: this.nodeEnv,\n sessionId: this.sessionId,\n componentId: toolName,\n uuid: this.getUserId?.(),\n serverInfo: this.serverInfo\n });\n\n const toolInvocationId = uuidv4();\n const httpClient = new HttpClient({\n headers: {\n 'x-wix-mcp': `execution-id=${toolInvocationId}`\n }\n });\n\n let toolBiParams: ToolBiParams = {};\n\n const argsBeforeExtra = cbArgs.slice(0, cbArgs.length - 1);\n const extra = cbArgs[cbArgs.length - 1] as WixRequestHandlerExtra;\n\n const wrappedExtra = {\n ...extra,\n panorama: panorama.createClientForComponent(),\n httpClient,\n biLogger: this.biLogger,\n logger,\n setToolBiParams: (params: ToolBiParams) => {\n toolBiParams = params;\n }\n };\n\n if (!isDevEnvironment) {\n const userId = this.getUserId?.();\n // Set _uuid early so BI events sent inside tool callbacks have _uuid\n this.biLogger.updateDefaults({\n _uuid: userId ?? ''\n });\n panorama.transaction(toolName).start({\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra)\n });\n }\n\n const startTime = performance.now();\n\n let toolSucceeded, errorBody;\n\n try {\n const cbResult = await originalCb(...argsBeforeExtra, wrappedExtra);\n toolSucceeded = !cbResult.isError;\n\n if (toolSucceeded && !isDevEnvironment) {\n panorama.transaction(toolName).finish({ toolInvocationId });\n }\n\n if (!toolSucceeded) {\n panorama\n .errorMonitor()\n .reportError(new Error(`Tool ${toolName} returned isError: true`), {\n context: {\n toolName,\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra),\n error: JSON.stringify(cbResult, null, 2)\n }\n });\n }\n\n return cbResult;\n } catch (e) {\n toolSucceeded = false;\n errorBody = (e as Error).message;\n if (!isDevEnvironment) {\n panorama.errorMonitor().reportError(e as Error, {\n context: {\n toolName,\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra),\n error: errorBody\n }\n });\n captureException(e, {\n tags: {\n componentId: toolName,\n toolName\n }\n });\n }\n\n // Include _meta from error if present (e.g., for OAuth re-auth triggers)\n const mcpMeta = (e as Error & { mcpMeta?: Record<string, unknown> })\n .mcpMeta;\n\n return {\n isError: true,\n content: [{ type: 'text', text: (e as Error).message }],\n ...(mcpMeta && { _meta: mcpMeta })\n };\n } finally {\n const endTime = performance.now();\n const duration = Math.round(endTime - startTime);\n const clientName = this.server.getClientVersion()?.name;\n\n if (!isDevEnvironment) {\n this.biLogger.updateDefaults({\n _msid: this.context?.siteId ?? toolBiParams.siteId ?? '',\n _visitorId: toolBiParams.visitorId ?? '',\n _request_id: toolBiParams.requestId ?? ''\n });\n\n this.biLogger.report(\n wixMcpRequestSrc39Evid1607({\n clientName: this.getClientName?.() || clientName,\n duration,\n errorBody,\n toolInvocationId,\n toolName,\n params: JSON.stringify(argsBeforeExtra),\n origin: this.nodeEnv,\n sessionId: this.sessionId,\n executionResult: toolSucceeded ? 'Success' : 'Error',\n requestId: toolBiParams.requestId,\n jobId: toolBiParams.jobId\n })\n );\n }\n }\n };\n }\n}\n", "import { LogObject, apiBlockGaRuleParams, apiExampleGenerationCompletedByAiToolParams, apiKeysClickOnActionFromThe3DotsParams, apiKeysClickOnCopyAccountIdParams, apiKeysClickOnGenerateKeyEmptyStateParams, apiKeysClickOnGenerateKeyTopButtonParams, apiKeysClickOnOauthPageLinkParams, apiKeysClickOnSendCodeAgainParams, apiKeysClickOnSendCodeParams, apiKeysClickOnViewApiReferencesParams, apiKeysFinishDeleteKeyParams, apiKeysFinishDuplicateKeyParams, apiKeysFinishEditKeyParams, apiKeysFinishGenerateKeyParams, apiKeysFinishRotateKeyParams, apiKeysStartDeleteKeyParams, apiKeysStartDuplicateKeyParams, apiKeysStartEditKeyParams, apiKeysStartGenerateKeyParams, apiKeysStartRotateKeyParams, appsSettingsDeletionCandidateParams, astraCmdEnteredSrc11Evid4001Params, autoVeloSiteCallForAMethodParams, copyOfHeadlessResumeSetUpDialogClickParams, devCenterWebhookSentTriggeredParams, docsAiAssistantAnswerSrc112Evid14Params, docsAiAssistantClickSrc112Evid13Params, docsAiAssistantCostSrc112Evid1436Params, docsAiAssistantOpenCloseSrc112Evid1435Params, docsRedirectFailureParams, docsSsrRequestSrc112Evid140Params, gitToResourceUpdateSrc112Evid30Params, graphqlCallParams, headlessAddWixToYourProjectDialogClickParams, headlessAddWixToYourProjectDialogIsShownParams, headlessDeployThisTemplatePageClickParams, headlessDeployThisTemplatePageIsShownParams, headlessMigrationTourModalShownParams, headlessOAuthInstalledParams, headlessPlaygroundModalFinishedLoadingParams, headlessQuickStartModalShownParams, headlessResumeSetUpDialogIsShownParams, n8NTriggerActionSrc154Evid810Params, oauthAppClickAtTheCreateEditOauthAppPageParams, oauthAppClickAtTheDeleteOauthAppDialogParams, oauthAppClickAtTheGenerateClientSecretDialogParams, oauthAppClickAtTheOauthAppMainPageParams, oauthAppClickNextCloseAtTheCreateOauthAppDialogParams, oauthAppClickOnCloseFromCreateEditOauthAppPageParams, oauthAppClickOnOauthAppActionParams, oauthAppClickOnSaveFromCreateEditOauthAppPageParams, oauthAppOauthAppActionWasMadeParams, oauthAppOauthAppActionWasMadeServerParams, publicSdkCallParams, relativeLinksFailureParams, settingsAccessParams, spiExternalInvocationSrc96Evid199Params, testSrc184Evid9999Params, testTokenTokenGeneratedServerlessParams, triggerValueWasSelectedParams, webhooksDispatcherResponseChannelTopicSrc155Evid3Params, webhooksInDcCodeExampleWindowClicksParams, webhooksInDcCodeExampleWindowScrollParams, webhooksInDcCreateEventPageClicksParams, webhooksInDcMainPageClicksParams, webhooksInDcTriggeredTestModalClicksParams, wixDocs404PageLoadedParams, wixDocsChangelogFilterUsageParams, wixDocsChangelogItemSeenParams, wixDocsChooseASearchResultParams, wixDocsClickInPageParams, wixDocsClickOnGiveFeedbackParams, wixDocsClickOnItemParams, wixDocsClickOnLinksParams, wixDocsClickOnSidebarItemParams, wixDocsClickedOnNavbarParams, wixDocsCloseSearchDialogParams, wixDocsContactOwnerLinkClickedParams, wixDocsCopyCodeParams, wixDocsDocsWasPublishedParams, wixDocsFeedbackSubmittedServerParams, wixDocsFinishLoadingPageParams, wixDocsGiveFeedbackClickParams, wixDocsHoverOnContentTermsParams, wixDocsHoverOverASearchResultItemParams, wixDocsHoverParams, wixDocsMainPageClickParams, wixDocsMainPageScrollParams, wixDocsMenuEditorContentFilterChangeParams, wixDocsMenuEditorEditModeStatusChangeParams, wixDocsMenuEditorInstructionsClicksParams, wixDocsMenuEditorReviewSaveModalClicksParams, wixDocsMenuEditorSideBarActionClickParams, wixDocsMenuEditorSideBarActionFinishedParams, wixDocsMenuEditorSideBarActionMoveToReviewParams, wixDocsMenuEditorSideBarPositionChangedParams, wixDocsMenuEditorVersionsSideBarClicksParams, wixDocsMenuEditorVersionsSideBarLoadedParams, wixDocsModalClickParams, wixDocsModalWasCloseParams, wixDocsModalWasOpenParams, wixDocsNavbarLoadedParams, wixDocsNavigationClickParams, wixDocsObjectShowMembersClickParams, wixDocsOpenCloseExamplesParams, wixDocsPlaygroundLinksDropdownClickParams, wixDocsRedirectByExternalIdSrc112Evid1601Params, wixDocsRelatedSiteClickParams, wixDocsScrollingInSearchResultViewParams, wixDocsSearchOpenedParams, wixDocsSearchResultsParams, wixDocsSendRequestClientParams, wixDocsSendRequestServerParams, wixDocsShareableLinkClickParams, wixDocsSidebarStateParams, wixDocsSiteVisitParams, wixDocsStartLoadingPageParams, wixDocsSubmitFeedbackParams, wixDocsToggleClickParams, wixDocsTryItOutClickParams, wixDocsTypeASearchTermParams, wixDocsViewLiveSiteClickParams, wixDocsViewSourceClickParams, wixDocsVisitLocalViewerParams, wixMcpRequestSrc39Evid1607Params, zapierCustomZapCreatedOrDeletedParams, zapierTestDataClickParams } from '../types';\n\n/**\n * A function to create a log object for the 'wixDocs404PageLoaded' event (evid: 10)\n *\n * Event description: 404 page was loaded\n *\n * @param {wixDocs404PageLoadedParams} params - The parameters for this event\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} portal - The current portal\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session - external nav / internal\n * @property {string} page_url - The url of the current page\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {boolean} is_deprecation_error - 404 due to deprecated content without deprecation mode on \n * @return {LogObject<wixDocs404PageLoadedParams>} LogObject<wixDocs404PageLoadedParams>\n */\nexport function wixDocs404PageLoaded(params: wixDocs404PageLoadedParams): LogObject<wixDocs404PageLoadedParams> {\n return { evid: 10, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSendRequestClient' event (evid: 11)\n *\n * Event description: Wix Docs - Send Request (Client)\n *\n * @param {wixDocsSendRequestClientParams} params - The parameters for this event\n * @property {string} body - body type\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {Url} invoked_url - invoked_url\n * @property {string} http_method - http method type - GET/POST/DELETE/PATCH etc)\n * @property {string} article_name - article name\n * @property {boolean} is_test_token_used - is_test_token_used\n * @return {LogObject<wixDocsSendRequestClientParams>} LogObject<wixDocsSendRequestClientParams>\n */\nexport function wixDocsSendRequestClient(params: wixDocsSendRequestClientParams): LogObject<wixDocsSendRequestClientParams> {\n return { evid: 11, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSendRequestServer' event (evid: 111)\n *\n * Event description: Wix Docs - Send Request (server)\n *\n * @param {wixDocsSendRequestServerParams} params - The parameters for this event\n * @property {Url} invoked_url - invoked_url\n * @property {string} http_method - http_method\n * @property {string} response - response\n * @property {boolean} is_success - is_success\n * @return {LogObject<wixDocsSendRequestServerParams>} LogObject<wixDocsSendRequestServerParams>\n */\nexport function wixDocsSendRequestServer(params: wixDocsSendRequestServerParams): LogObject<wixDocsSendRequestServerParams> {\n return { evid: 111, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsFeedbackSubmittedServer' event (evid: 112)\n *\n * Event description: Wix Docs - Feedback Submitted (Server)\n *\n * @param {wixDocsFeedbackSubmittedServerParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {Url} article_url - article url\n * @property {string} article_name - article name\n * @property {GUID} app_id - app_id\n * @property {GUID} msid - msid\n * @property {boolean} email_filled - was email filled in by user\n * @return {LogObject<wixDocsFeedbackSubmittedServerParams>} LogObject<wixDocsFeedbackSubmittedServerParams>\n */\nexport function wixDocsFeedbackSubmittedServer(params: wixDocsFeedbackSubmittedServerParams): LogObject<wixDocsFeedbackSubmittedServerParams> {\n return { evid: 112, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsPlaygroundLinksDropdownClick' event (evid: 12)\n *\n * Event description: Click on Playground Links Dropdown\n *\n * @param {wixDocsPlaygroundLinksDropdownClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {boolean} is_main_url_broken - is main url broken\n * @property {string} urls_count - urls count\n * @property {string} selected_url - selected url\n * @return {LogObject<wixDocsPlaygroundLinksDropdownClickParams>} LogObject<wixDocsPlaygroundLinksDropdownClickParams>\n */\nexport function wixDocsPlaygroundLinksDropdownClick(params: wixDocsPlaygroundLinksDropdownClickParams): LogObject<wixDocsPlaygroundLinksDropdownClickParams> {\n return { evid: 12, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'testTokenTokenGeneratedServerless' event (evid: 1200)\n *\n * Event description: token generated to user's site\n *\n * @param {testTokenTokenGeneratedServerlessParams} params - The parameters for this event\n * @property {string} token - token\n * @property {GUID} selectedMsid - selected_msid\n * @return {LogObject<testTokenTokenGeneratedServerlessParams>} LogObject<testTokenTokenGeneratedServerlessParams>\n */\nexport function testTokenTokenGeneratedServerless(params: testTokenTokenGeneratedServerlessParams): LogObject<testTokenTokenGeneratedServerlessParams> {\n return { evid: 1200, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantClickSrc112Evid13' event (evid: 13)\n *\n * Event description: The event is sent when the Docs AI Assistant was clicked on any button related\n *\n * @param {docsAiAssistantClickSrc112Evid13Params} params - The parameters for this event\n * @property {string} cta - startover, click on the typing box, send-message, copy, feedback-open, feedback-close, feedback-submit, new-conversation, link (copy-code example, link from code not implemented for now)\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} ai_session_id - ai session id\n * @property {string} extra_values - for example - {feedback answer: yes, feedback content: XXX}\n * @return {LogObject<docsAiAssistantClickSrc112Evid13Params>} LogObject<docsAiAssistantClickSrc112Evid13Params>\n */\nexport function docsAiAssistantClickSrc112Evid13(params: docsAiAssistantClickSrc112Evid13Params): LogObject<docsAiAssistantClickSrc112Evid13Params> {\n return { evid: 13, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsViewLiveSiteClick' event (evid: 1300)\n *\n * Event description: User clicks on 'View Live Site'\n *\n * @param {wixDocsViewLiveSiteClickParams} params - The parameters for this event\n * @property {string} page - page\n * @return {LogObject<wixDocsViewLiveSiteClickParams>} LogObject<wixDocsViewLiveSiteClickParams>\n */\nexport function wixDocsViewLiveSiteClick(params: wixDocsViewLiveSiteClickParams): LogObject<wixDocsViewLiveSiteClickParams> {\n return { evid: 1300, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChangelogFilterUsage' event (evid: 1301)\n *\n * Event description: Wix Docs Changelog filter usage\n *\n * @param {wixDocsChangelogFilterUsageParams} params - The parameters for this event\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {string} status_filter - filter the type of the item New/Updated/\n * Deprecated\n * @property {string} feature_type_filter - filter like portal.. Go Headless/Build apps/ Rest & SDK etc.\n * @property {string} product_filter - filter on the level of business solution/edm/vertical\n * @property {string} user_click - the click that triggered the event - the filter name / reset filter button\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsChangelogFilterUsageParams>} LogObject<wixDocsChangelogFilterUsageParams>\n */\nexport function wixDocsChangelogFilterUsage(params: wixDocsChangelogFilterUsageParams): LogObject<wixDocsChangelogFilterUsageParams> {\n return { evid: 1301, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnItem' event (evid: 1302)\n *\n * Event description: Wix Docs - Click on item\n *\n * @param {wixDocsClickOnItemParams} params - The parameters for this event\n * @property {string} item_id - The ID of the Changelog item. Use the Changelog Items table to get the item's characteristics and dimensions\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {string} clicked_url - the URL that the user clicked on inside of the item\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickOnItemParams>} LogObject<wixDocsClickOnItemParams>\n */\nexport function wixDocsClickOnItem(params: wixDocsClickOnItemParams): LogObject<wixDocsClickOnItemParams> {\n return { evid: 1302, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChangelogItemSeen' event (evid: 1303)\n *\n * Event description: Includes json of item id's, that loaded on the user's screen.\n * the event is sent every time a new item entered the user screen, after at least 2 seconds of being static (stopped scrolling).\n *\n * @param {wixDocsChangelogItemSeenParams} params - The parameters for this event\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {string} Item_ids - json of item id's that seen by the user (appeared on his screen) after 2 sec of being static (stopped scrolling)\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsChangelogItemSeenParams>} LogObject<wixDocsChangelogItemSeenParams>\n */\nexport function wixDocsChangelogItemSeen(params: wixDocsChangelogItemSeenParams): LogObject<wixDocsChangelogItemSeenParams> {\n return { evid: 1303, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantAnswerSrc112Evid14' event (evid: 14)\n *\n * Event description: The event is sent when the Docs AI Assistant is answering the user\n *\n * @param {docsAiAssistantAnswerSrc112Evid14Params} params - The parameters for this event\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {number} response_time - The time it took to the AI to give answer in ms\n * @property {boolean} success - true if the AI gave any answer, if it failed - false\n * @property {string} answer - The AI answer\n * @property {string} question - The user question\n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} ai_session_id - ai session id\n * @return {LogObject<docsAiAssistantAnswerSrc112Evid14Params>} LogObject<docsAiAssistantAnswerSrc112Evid14Params>\n */\nexport function docsAiAssistantAnswerSrc112Evid14(params: docsAiAssistantAnswerSrc112Evid14Params): LogObject<docsAiAssistantAnswerSrc112Evid14Params> {\n return { evid: 14, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsSsrRequestSrc112Evid140' event (evid: 140)\n *\n * Event description: A server-side request to read from wix-docs\n *\n * @param {docsSsrRequestSrc112Evid140Params} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} nav_type - search result click, side bar click, tab click, internal link navigation ,scroll\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {boolean} is_bot - is the traffic origin identified as AI/Smart agent\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {boolean} page_exists - True if the page exists - false if the user landed on resource that is not exists\n * @property {string} deprecation_status - deprecation status of the item/page\n * @return {LogObject<docsSsrRequestSrc112Evid140Params>} LogObject<docsSsrRequestSrc112Evid140Params>\n */\nexport function docsSsrRequestSrc112Evid140(params: docsSsrRequestSrc112Evid140Params): LogObject<docsSsrRequestSrc112Evid140Params> {\n return { evid: 140, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsStartLoadingPage' event (evid: 1400)\n *\n * Event description: Wix Docs page view\n *\n * @param {wixDocsStartLoadingPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} nav_type - search result click, side bar click, tab click, internal link navigation ,scroll\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {boolean} is_triggered_by_toggle - it this page load triggered by the REST/SDK toggle, instead of a regular page reload\n * @property {boolean} page_exists - True if the page exists - false if the user landed on resource that is not exists\n * @property {string} deprecation_status - deprecation status of the item/page\n * @return {LogObject<wixDocsStartLoadingPageParams>} LogObject<wixDocsStartLoadingPageParams>\n */\nexport function wixDocsStartLoadingPage(params: wixDocsStartLoadingPageParams): LogObject<wixDocsStartLoadingPageParams> {\n return { evid: 1400, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsFinishLoadingPage' event (evid: 1401)\n *\n * Event description: Loading time of the first page finished load in Wix Docs.\n *\n * @param {wixDocsFinishLoadingPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} page_url - The url of the current page\n * @property {number} loading_time - Loading time of page (from evid 112:1400 start loading page)\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {boolean} is_triggered_by_toggle - it this page load triggered by the REST/SDK toggle, instead of a regular page reload\n * @property {number} TTFB - the TTFB measure of web vitals\n * @property {number} FCP - the FCP measure of web vitals\n * @return {LogObject<wixDocsFinishLoadingPageParams>} LogObject<wixDocsFinishLoadingPageParams>\n */\nexport function wixDocsFinishLoadingPage(params: wixDocsFinishLoadingPageParams): LogObject<wixDocsFinishLoadingPageParams> {\n return { evid: 1401, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSearchOpened' event (evid: 1403)\n *\n * Event description: Sends when the search dialog is open, and the user still didnt type a search term\n *\n * @param {wixDocsSearchOpenedParams} params - The parameters for this event\n * @property {boolean} no_connection - True if the search dialog is with a message of no connection\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} recently_viewed - A list of all recently viewed articles that appear in the search dialog, by it`s order\n * @property {string} portal - The current portal\n * @property {string} recent_searches - A list of all recent searches that appear in the search dialog, by it`s order\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the dialog was open currectly\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action that the user did to open the search dialog - press the search button \\ press \"/\" at the keyword\n * @return {LogObject<wixDocsSearchOpenedParams>} LogObject<wixDocsSearchOpenedParams>\n */\nexport function wixDocsSearchOpened(params: wixDocsSearchOpenedParams): LogObject<wixDocsSearchOpenedParams> {\n return { evid: 1403, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsTypeASearchTerm' event (evid: 1404)\n *\n * Event description: When a user is searching in search dialog send event at the end of the results\n *\n * @param {wixDocsTypeASearchTermParams} params - The parameters for this event\n * @property {boolean} no_connection - True if the search dialog is with a message of no connection\n * @property {number} recent_searches_index - The index of the recent\\suggested search that was choosen, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} type_action - The way the user typed the search term - typing \\ choosing a recent search \\ choosing suggested searches\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} num_of_results - The number of total results who return on time\n * @property {string} search_term - The users's search term in the dialog\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {number} total_loading_time - The total time in ms for all results to return\n * @property {string} seen_results - Send only results who were seen in search -> category: article: type: time to load\n * @property {string} page_url - The url of the current page\n * @property {boolean} is_empty - True if the search results is empty from results after finish typing (there was no result found)\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} filters - The search box filters - Json\n * @return {LogObject<wixDocsTypeASearchTermParams>} LogObject<wixDocsTypeASearchTermParams>\n */\nexport function wixDocsTypeASearchTerm(params: wixDocsTypeASearchTermParams): LogObject<wixDocsTypeASearchTermParams> {\n return { evid: 1404, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsScrollingInSearchResultView' event (evid: 1405)\n *\n * Event description: Sends an event when a user scrolls in the search's result\n *\n * @param {wixDocsScrollingInSearchResultViewParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {boolean} is_recently_viewed - True if the search term is empty and the user is hovering over the recently viewed items \\ 'what other are searching'\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} num_of_results - The number of total results who return on time\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {boolean} first_search_ever - True if it is the first search of the user ever, and the search dialog contains 'what other are searching' articles\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load)\n * [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsScrollingInSearchResultViewParams>} LogObject<wixDocsScrollingInSearchResultViewParams>\n */\nexport function wixDocsScrollingInSearchResultView(params: wixDocsScrollingInSearchResultViewParams): LogObject<wixDocsScrollingInSearchResultViewParams> {\n return { evid: 1405, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHoverOverASearchResultItem' event (evid: 1406)\n *\n * Event description: When a user is focused on a result\n *\n * @param {wixDocsHoverOverASearchResultItemParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} result_article - The name of the result\n * @property {boolean} is_recently_viewed - True if the search term is empty and the user is hovering over the recently viewed items \\ 'what other are searching'\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {boolean} first_search_ever - True if it is the first search of the user ever, and the search dialog contains 'what other are searching' articles\n * @property {string} result_category - The category of the result\n * @property {boolean} is_first_hover - True if it is the first item that was hovered\n * @property {string} article_id - The ID of the current article\n * @property {string} result_article_id - The ID of the result article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {number} item_index - item's index in all results\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsHoverOverASearchResultItemParams>} LogObject<wixDocsHoverOverASearchResultItemParams>\n */\nexport function wixDocsHoverOverASearchResultItem(params: wixDocsHoverOverASearchResultItemParams): LogObject<wixDocsHoverOverASearchResultItemParams> {\n return { evid: 1406, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChooseASearchResult' event (evid: 1407)\n *\n * Event description: Sends an event when a user chose a search result\n *\n * @param {wixDocsChooseASearchResultParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} chosen_article_type - the chosen article type - get \\ webhook \\ post \\ ..\n * @property {string} session_id - The current user`s session in the product\n * @property {string} chosen_category - The category of the chosen result\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} chosen_article - The name of the chosen result\n * @property {string} choose_type - The way the user chose the result - from an active search \\ from the recently viewed options \\ from the 'what other are searching' options\n * @property {string} chosen_article_id - The ID of the chosen result article\n * @property {string} object - The object of the article, can be empty\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} chosen_article_url - The url of the chosen result article\n * @property {string} page_url - The url of the current page\n * @property {number} item_index - item's index in all results of the chosen result\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - Deprecation mode is ON\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} chosen_portal - The portal of the chosen article\n * @property {string} result_deprecation_status - clicked on deprecated/ about to be deprecated result\n * @return {LogObject<wixDocsChooseASearchResultParams>} LogObject<wixDocsChooseASearchResultParams>\n */\nexport function wixDocsChooseASearchResult(params: wixDocsChooseASearchResultParams): LogObject<wixDocsChooseASearchResultParams> {\n return { evid: 1407, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsCloseSearchDialog' event (evid: 1408)\n *\n * Event description: Sends an event when a user close the search dialog\n *\n * @param {wixDocsCloseSearchDialogParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} is_search_term_empty - True if the user closed the search dialog while the search box was empty from any term\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {number} time_in_dialog - Show in ms the time spent in the dialog, from finish typing\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user`s click for closing the dialog - click on a result/ click somewhere else/ click on x to clear search \\ press esc\n * @property {boolean} is_empty - True if the search results is empty from results after finish typing (there was no result found)\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsCloseSearchDialogParams>} LogObject<wixDocsCloseSearchDialogParams>\n */\nexport function wixDocsCloseSearchDialog(params: wixDocsCloseSearchDialogParams): LogObject<wixDocsCloseSearchDialogParams> {\n return { evid: 1408, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSidebarState' event (evid: 1409)\n *\n * Event description: On each page, the event is sent when the side bar is loaded and it also sends the current state of the sidebar - Internal \\ Velo \\ REST\n *\n * @param {wixDocsSidebarStateParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_items_list - List of category items in the main sidebar menu\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} current_sidebar_state - The current state of sidebar - Internal \\ Velo \\ REST\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsSidebarStateParams>} LogObject<wixDocsSidebarStateParams>\n */\nexport function wixDocsSidebarState(params: wixDocsSidebarStateParams): LogObject<wixDocsSidebarStateParams> {\n return { evid: 1409, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnSidebarItem' event (evid: 1410)\n *\n * Event description: When a user click on sidebar item (to expand drop down \\ open an article \\ move to other function\n *\n * @param {wixDocsClickOnSidebarItemParams} params - The parameters for this event\n * @property {string} clicked_sidebar_name - The sidebar item the user clicked on (category\\article\\function)\n * @property {string} clicked_sidebar_article - The sidebar item article the user clicked on, can be empty\n * @property {string} method - The method of the article, can be empty\n * @property {string} current_sidebar_name - The current item name appears in the sidebar - can be changed\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} clicked_sidebar_url - The url of the page that the user clicked on\n * @property {string} category_items_list - List of category items in the main sidebar menu\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} current_sidebar_state - The current state of sidebar - Internal \\ Velo \\ REST\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} clicked_sidebar_category - The sidebar item category the user clicked on, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action the user did - expand drop down \\ open an article \\ clicked on category \\ move to other function \\ back to last sidebar state\n * @return {LogObject<wixDocsClickOnSidebarItemParams>} LogObject<wixDocsClickOnSidebarItemParams>\n */\nexport function wixDocsClickOnSidebarItem(params: wixDocsClickOnSidebarItemParams): LogObject<wixDocsClickOnSidebarItemParams> {\n return { evid: 1410, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsNavbarLoaded' event (evid: 1411)\n *\n * Event description: The event is sent when the navbar is finish loading\n *\n * @param {wixDocsNavbarLoadedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} current_navbar_state - The current state of sidebar - Velo \\ REST \\ APIs & SDKs \\ Wix Docs\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsNavbarLoadedParams>} LogObject<wixDocsNavbarLoadedParams>\n */\nexport function wixDocsNavbarLoaded(params: wixDocsNavbarLoadedParams): LogObject<wixDocsNavbarLoadedParams> {\n return { evid: 1411, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickedOnNavbar' event (evid: 1412)\n *\n * Event description: The event is sent when the user make any action on the navbar\n *\n * @param {wixDocsClickedOnNavbarParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} navigate_to - The url that the click navigate to\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} current_navbar_state - The current state of sidebar - Velo \\ REST \\ APIs & SDKs \\ Wix Docs\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action that the user clicked on - APIs & SDKs dropdown \\ Wix Docs \\ Build a Website\\ Build an App \\ Velo APIs \\ REST APIs \\ Client SDK \\ sign in \\ user dropdown \\ light brightness \\ dark brightness / log out / undo / review & save\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickedOnNavbarParams>} LogObject<wixDocsClickedOnNavbarParams>\n */\nexport function wixDocsClickedOnNavbar(params: wixDocsClickedOnNavbarParams): LogObject<wixDocsClickedOnNavbarParams> {\n return { evid: 1412, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnGiveFeedback' event (evid: 1413)\n *\n * Event description: Sends an event when a user click on a feedback button (yes \\ not)\n *\n * @param {wixDocsClickOnGiveFeedbackParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} session_id - session_id\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user feedback - yes \\ not\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickOnGiveFeedbackParams>} LogObject<wixDocsClickOnGiveFeedbackParams>\n */\nexport function wixDocsClickOnGiveFeedback(params: wixDocsClickOnGiveFeedbackParams): LogObject<wixDocsClickOnGiveFeedbackParams> {\n return { evid: 1413, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSubmitFeedback' event (evid: 1414)\n *\n * Event description: Sends an event when a user click on submit feedback\n *\n * @param {wixDocsSubmitFeedbackParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} email - The email that was filled in the feedback\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} content - The content of the feedback that the user wrote\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user feedback - yes \\ not\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} feedback_tag - The tag that the user choose\n * @property {boolean} is_logged_in - True if the user was logged in to wix\n * @return {LogObject<wixDocsSubmitFeedbackParams>} LogObject<wixDocsSubmitFeedbackParams>\n */\nexport function wixDocsSubmitFeedback(params: wixDocsSubmitFeedbackParams): LogObject<wixDocsSubmitFeedbackParams> {\n return { evid: 1414, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickInPage' event (evid: 1415)\n *\n * Event description: Sends an event when a user click on any Button: copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC\n *\n * @param {wixDocsClickInPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} function_name - The name of the function that relate to the click, can be empty\n * @property {string} click_name - The name of the link, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} attribute_name - The name of the attribute that relate to the click, can be empty\n * @property {string} click_url - The url of the link, can be empty\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} code_type - The code type that was copied - javascript \\ js..., can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - Click on > in tables \\ links \\ copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC \\ show members \\ hide members \\ tabs in tables \\ click on path navigation header\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickInPageParams>} LogObject<wixDocsClickInPageParams>\n */\nexport function wixDocsClickInPage(params: wixDocsClickInPageParams): LogObject<wixDocsClickInPageParams> {\n return { evid: 1415, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionClick' event (evid: 1416)\n *\n * Event description: The event is sent when a Side bar action click\n *\n * @param {wixDocsMenuEditorSideBarActionClickParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources\n * @return {LogObject<wixDocsMenuEditorSideBarActionClickParams>} LogObject<wixDocsMenuEditorSideBarActionClickParams>\n */\nexport function wixDocsMenuEditorSideBarActionClick(params: wixDocsMenuEditorSideBarActionClickParams): LogObject<wixDocsMenuEditorSideBarActionClickParams> {\n return { evid: 1416, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionFinished' event (evid: 1417)\n *\n * Event description: The event is sent when a Side bar action finished - approved in the review & save modal\n *\n * @param {wixDocsMenuEditorSideBarActionFinishedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - remove / publish\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} md - The md that was connected, will be null unless the action is connect\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources / item position changed\n * @return {LogObject<wixDocsMenuEditorSideBarActionFinishedParams>} LogObject<wixDocsMenuEditorSideBarActionFinishedParams>\n */\nexport function wixDocsMenuEditorSideBarActionFinished(params: wixDocsMenuEditorSideBarActionFinishedParams): LogObject<wixDocsMenuEditorSideBarActionFinishedParams> {\n return { evid: 1417, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarPositionChanged' event (evid: 1418)\n *\n * Event description: The event is sent when a Side bar position changed\n *\n * @param {wixDocsMenuEditorSideBarPositionChangedParams} params - The parameters for this event\n * @property {string} item_location_before - Running number of the item location, before it was moved\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the clicked item, after it was moved\n * @property {string} item_location_after - Running number of the item location, after it was moved\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name, after it was moved\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article, after it was moved\n * @property {string} article_name - The name of the current article that was clicked, after it was moved\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorSideBarPositionChangedParams>} LogObject<wixDocsMenuEditorSideBarPositionChangedParams>\n */\nexport function wixDocsMenuEditorSideBarPositionChanged(params: wixDocsMenuEditorSideBarPositionChangedParams): LogObject<wixDocsMenuEditorSideBarPositionChangedParams> {\n return { evid: 1418, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsDocsWasPublished' event (evid: 1419)\n *\n * Event description: The event is sent when a tech writer is publishing the docs\n *\n * @param {wixDocsDocsWasPublishedParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} portal - The published area - velo \\ rest \\ internal\n * @property {string} doc_url - The url of the published doc\n * @property {boolean} was_success - True if the docs were published successfully\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} publishedResourceId - The resource id that was published\n * @property {string} fqdn - The fqdn\n * @property {string} namespace - resource name\n * @property {string} publishedRevisionId - The published revision id\n * @return {LogObject<wixDocsDocsWasPublishedParams>} LogObject<wixDocsDocsWasPublishedParams>\n */\nexport function wixDocsDocsWasPublished(params: wixDocsDocsWasPublishedParams): LogObject<wixDocsDocsWasPublishedParams> {\n return { evid: 1419, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMainPageClick' event (evid: 1420)\n *\n * Event description: The event is sent when the user clicks on any link at the main page of the wix docs\n *\n * @param {wixDocsMainPageClickParams} params - The parameters for this event\n * @property {string} click_name - The name of the link\n * @property {string} portal - portal\n * @property {string} click_url - The url of the clicked link\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsMainPageClickParams>} LogObject<wixDocsMainPageClickParams>\n */\nexport function wixDocsMainPageClick(params: wixDocsMainPageClickParams): LogObject<wixDocsMainPageClickParams> {\n return { evid: 1420, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMainPageScroll' event (evid: 1421)\n *\n * Event description: The event is sent when the user scrolls the main page of the wix docs\n *\n * @param {wixDocsMainPageScrollParams} params - The parameters for this event\n * @property {string} page_part - what is the part in the page that was exposed\n * @property {string} portal - portal\n * @return {LogObject<wixDocsMainPageScrollParams>} LogObject<wixDocsMainPageScrollParams>\n */\nexport function wixDocsMainPageScroll(params: wixDocsMainPageScrollParams): LogObject<wixDocsMainPageScrollParams> {\n return { evid: 1421, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalWasOpen' event (evid: 1422)\n *\n * Event description: The event is sent when a docs modal was open\n *\n * @param {wixDocsModalWasOpenParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsModalWasOpenParams>} LogObject<wixDocsModalWasOpenParams>\n */\nexport function wixDocsModalWasOpen(params: wixDocsModalWasOpenParams): LogObject<wixDocsModalWasOpenParams> {\n return { evid: 1422, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalWasClose' event (evid: 1423)\n *\n * Event description: The event is sent when a docs modal was close\n *\n * @param {wixDocsModalWasCloseParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - X / click outside the modal\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsModalWasCloseParams>} LogObject<wixDocsModalWasCloseParams>\n */\nexport function wixDocsModalWasClose(params: wixDocsModalWasCloseParams): LogObject<wixDocsModalWasCloseParams> {\n return { evid: 1423, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalClick' event (evid: 1424)\n *\n * Event description: The event is sent when the user clicks on any cta at a docs modal\n *\n * @param {wixDocsModalClickParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} token_type - Empty / Test Token / Access Token\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - Select Base Url click / Select Base Url change / \n * Choose a site / Access Token / Generated Test Token type / Access Token type / setting up OAuth link / send request / shareable link\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action successed, relevant only for send request, generate token and generate new token clicks, can be null\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsModalClickParams>} LogObject<wixDocsModalClickParams>\n */\nexport function wixDocsModalClick(params: wixDocsModalClickParams): LogObject<wixDocsModalClickParams> {\n return { evid: 1424, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorEditModeStatusChange' event (evid: 1425)\n *\n * Event description: The event is sent when a Edit mode status change\n *\n * @param {wixDocsMenuEditorEditModeStatusChangeParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} portal - The current portal\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorEditModeStatusChangeParams>} LogObject<wixDocsMenuEditorEditModeStatusChangeParams>\n */\nexport function wixDocsMenuEditorEditModeStatusChange(params: wixDocsMenuEditorEditModeStatusChangeParams): LogObject<wixDocsMenuEditorEditModeStatusChangeParams> {\n return { evid: 1425, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionMoveToReview' event (evid: 1426)\n *\n * Event description: The event is sent when a Side bar action moved to review\n *\n * @param {wixDocsMenuEditorSideBarActionMoveToReviewParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} md - The md that was connected, will be null unless the action is connect\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources / item position changed\n * @return {LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams>} LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams>\n */\nexport function wixDocsMenuEditorSideBarActionMoveToReview(params: wixDocsMenuEditorSideBarActionMoveToReviewParams): LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams> {\n return { evid: 1426, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorVersionsSideBarLoaded' event (evid: 1427)\n *\n * Event description: The event is sent when the versions side bar finish loaded\n *\n * @param {wixDocsMenuEditorVersionsSideBarLoadedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - the cta that opened the sidebar (manage version click / right icon to open)\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams>} LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams>\n */\nexport function wixDocsMenuEditorVersionsSideBarLoaded(params: wixDocsMenuEditorVersionsSideBarLoadedParams): LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams> {\n return { evid: 1427, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorVersionsSideBarClicks' event (evid: 1428)\n *\n * Event description: The event is sent when the user click on the versions side bar\n *\n * @param {wixDocsMenuEditorVersionsSideBarClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - X / add to publish list / remove from publish list / version\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @property {string} new_version - The clicked version / the version that was chosen to add to publish list / null\n * @return {LogObject<wixDocsMenuEditorVersionsSideBarClicksParams>} LogObject<wixDocsMenuEditorVersionsSideBarClicksParams>\n */\nexport function wixDocsMenuEditorVersionsSideBarClicks(params: wixDocsMenuEditorVersionsSideBarClicksParams): LogObject<wixDocsMenuEditorVersionsSideBarClicksParams> {\n return { evid: 1428, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorContentFilterChange' event (evid: 1429)\n *\n * Event description: The event is sent when the user change any content filter\n *\n * @param {wixDocsMenuEditorContentFilterChangeParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {string} cta - beta / ga / internal\n * @property {string} page_url - The url of the current page\n * @property {string} action - show / hide\n * @return {LogObject<wixDocsMenuEditorContentFilterChangeParams>} LogObject<wixDocsMenuEditorContentFilterChangeParams>\n */\nexport function wixDocsMenuEditorContentFilterChange(params: wixDocsMenuEditorContentFilterChangeParams): LogObject<wixDocsMenuEditorContentFilterChangeParams> {\n return { evid: 1429, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorInstructionsClicks' event (evid: 1430)\n *\n * Event description: The event is sent when the user clicks next at any instruction message\n *\n * @param {wixDocsMenuEditorInstructionsClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {number} instruction_num - num of instruction\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorInstructionsClicksParams>} LogObject<wixDocsMenuEditorInstructionsClicksParams>\n */\nexport function wixDocsMenuEditorInstructionsClicks(params: wixDocsMenuEditorInstructionsClicksParams): LogObject<wixDocsMenuEditorInstructionsClicksParams> {\n return { evid: 1430, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorReviewSaveModalClicks' event (evid: 1431)\n *\n * Event description: The event is sent when the user clicks on any button at the review & save modal\n *\n * @param {wixDocsMenuEditorReviewSaveModalClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} change_ids - a list of all cange_ids that the action was made on\n * @property {string} portal - The current portal\n * @property {string} cta - X / preview all / preview specific change / copy link / cancel / save / remove\n * @property {boolean} was_success - True if the action successed\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorReviewSaveModalClicksParams>} LogObject<wixDocsMenuEditorReviewSaveModalClicksParams>\n */\nexport function wixDocsMenuEditorReviewSaveModalClicks(params: wixDocsMenuEditorReviewSaveModalClicksParams): LogObject<wixDocsMenuEditorReviewSaveModalClicksParams> {\n return { evid: 1431, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'relativeLinksFailure' event (evid: 1432)\n *\n * Event description: The event is sent when a relative link was broken\n *\n * @param {relativeLinksFailureParams} params - The parameters for this event\n * @property {string} pageUrl - The url of the current page\n * @property {string} sourceUrl - relative link\n * @property {string} destinationUrl - rendered link\n * @return {LogObject<relativeLinksFailureParams>} LogObject<relativeLinksFailureParams>\n */\nexport function relativeLinksFailure(params: relativeLinksFailureParams): LogObject<relativeLinksFailureParams> {\n return { evid: 1432, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnLinks' event (evid: 1433)\n *\n * Event description: Sends an event when a user click on any Link: in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC\n *\n * @param {wixDocsClickOnLinksParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} click_name - The name of the link, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} click_url - The url of the link, can be empty\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - Click on > in tables \\ links \\ copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC \\ show members \\ hide members \\ tabs in tables \\ click on path navigation header\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsClickOnLinksParams>} LogObject<wixDocsClickOnLinksParams>\n */\nexport function wixDocsClickOnLinks(params: wixDocsClickOnLinksParams): LogObject<wixDocsClickOnLinksParams> {\n return { evid: 1433, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiExampleGenerationCompletedByAiTool' event (evid: 1434)\n *\n * Event description: The event will be sent in any new revision in docs when the example generation is finished per method (successfully or not) and will send the example generation details.\n *\n * @param {apiExampleGenerationCompletedByAiToolParams} params - The parameters for this event\n * @property {string} method - The method name of the example being generated\n * @property {string} namespace - The method namespace\n * @property {string} fqdn - The method fqdn\n * @property {number} numRetries - The number of retries made until the example was generated or failed to generate (limitation of 3)\n * @property {boolean} wasSuccess - True if an example was generated\n * @property {string} portal - REST/ SDK / Velo - where the example was generate to\n * @property {string} failureReasons - A Json of the failure reasons. for example - {retry 1: \"reason\", retry 2: \"reason\",.....}\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} packageName - The method Package name\n * @property {string} publishedDocRevisionId - the publishedDocRevisionId\n * @return {LogObject<apiExampleGenerationCompletedByAiToolParams>} LogObject<apiExampleGenerationCompletedByAiToolParams>\n */\nexport function apiExampleGenerationCompletedByAiTool(params: apiExampleGenerationCompletedByAiToolParams): LogObject<apiExampleGenerationCompletedByAiToolParams> {\n return { evid: 1434, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantOpenCloseSrc112Evid1435' event (evid: 1435)\n *\n * Event description: The event is sent when the Docs AI Assistant is Opened / Closed\n *\n * @param {docsAiAssistantOpenCloseSrc112Evid1435Params} params - The parameters for this event\n * @property {string} action - open / close\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {number} interaction_time - when the action is close - the time the session took \n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} ai_session_id - The ai session id\n * @return {LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params>} LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params>\n */\nexport function docsAiAssistantOpenCloseSrc112Evid1435(params: docsAiAssistantOpenCloseSrc112Evid1435Params): LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params> {\n return { evid: 1435, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantCostSrc112Evid1436' event (evid: 1436)\n *\n * Event description: The event is sent when the Docs AI Assistant is sending a response - with the cost it had\n *\n * @param {docsAiAssistantCostSrc112Evid1436Params} params - The parameters for this event\n * @property {string} type - call type\n * @property {number} cost - The cost in dollar\n * @property {number} response_time - in ms\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<docsAiAssistantCostSrc112Evid1436Params>} LogObject<docsAiAssistantCostSrc112Evid1436Params>\n */\nexport function docsAiAssistantCostSrc112Evid1436(params: docsAiAssistantCostSrc112Evid1436Params): LogObject<docsAiAssistantCostSrc112Evid1436Params> {\n return { evid: 1436, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHoverOnContentTerms' event (evid: 1437)\n *\n * Event description: Sends an event when a user hovers on wix docs content term, more that 3 sec.\n *\n * @param {wixDocsHoverOnContentTermsParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @return {LogObject<wixDocsHoverOnContentTermsParams>} LogObject<wixDocsHoverOnContentTermsParams>\n */\nexport function wixDocsHoverOnContentTerms(params: wixDocsHoverOnContentTermsParams): LogObject<wixDocsHoverOnContentTermsParams> {\n return { evid: 1437, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHover' event (evid: 1438)\n *\n * Event description: Sends an event when a user is hovering over content on Docs\n *\n * @param {wixDocsHoverParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} hover_name - The name of the content\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @property {string} hover_content - The content of the hovered object\n * @return {LogObject<wixDocsHoverParams>} LogObject<wixDocsHoverParams>\n */\nexport function wixDocsHover(params: wixDocsHoverParams): LogObject<wixDocsHoverParams> {\n return { evid: 1438, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsVisitLocalViewer' event (evid: 15)\n *\n * Event description: User visit the local viewer\n *\n * @param {wixDocsVisitLocalViewerParams} params - The parameters for this event\n * @property {string} local_viewer_id - local_viewer_id\n * @property {string} customer_id - customer id\n * @return {LogObject<wixDocsVisitLocalViewerParams>} LogObject<wixDocsVisitLocalViewerParams>\n */\nexport function wixDocsVisitLocalViewer(params: wixDocsVisitLocalViewerParams): LogObject<wixDocsVisitLocalViewerParams> {\n return { evid: 15, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsOpenCloseExamples' event (evid: 16)\n *\n * Event description: User open/close examples in wix docs\n *\n * @param {wixDocsOpenCloseExamplesParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} categoryName - category name\n * @property {string} articleUrl - url of article\n * @property {number} exampleId - number of example in the list\n * @property {string} articleName - article name\n * @property {string} action - 'open' or 'close'\n * @return {LogObject<wixDocsOpenCloseExamplesParams>} LogObject<wixDocsOpenCloseExamplesParams>\n */\nexport function wixDocsOpenCloseExamples(params: wixDocsOpenCloseExamplesParams): LogObject<wixDocsOpenCloseExamplesParams> {\n return { evid: 16, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsRedirectFailure' event (evid: 1600)\n *\n * Event description: The event will be sent when there is a docs redirect , and it will send the result\n *\n * @param {docsRedirectFailureParams} params - The parameters for this event\n * @property {string} url - The url\n * @property {boolean} isSuccess - True if the redirect works correct\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<docsRedirectFailureParams>} LogObject<docsRedirectFailureParams>\n */\nexport function docsRedirectFailure(params: docsRedirectFailureParams): LogObject<docsRedirectFailureParams> {\n return { evid: 1600, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsRedirectByExternalIdSrc112Evid1601' event (evid: 1601)\n *\n * Event description: Wix Docs redirect by external id\n *\n * @param {wixDocsRedirectByExternalIdSrc112Evid1601Params} params - The parameters for this event\n * @property {boolean} is_success - a valid resource was found by the portal and external id data\n * @property {string} redirect_url - the url that was redirect\n * @property {string} external_id - Docs metadata on the resource\n * @property {string} platform - cli/dev center/blocks\n * @property {string} portal_slug - the docs portal\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params>} LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params>\n */\nexport function wixDocsRedirectByExternalIdSrc112Evid1601(params: wixDocsRedirectByExternalIdSrc112Evid1601Params): LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params> {\n return { evid: 1601, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsRelatedSiteClick' event (evid: 17)\n *\n * Event description: Wix Docs - Related Site Click\n *\n * @param {wixDocsRelatedSiteClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} selected_name - selected_name\n * @property {string} selected_url - selected_url\n * @return {LogObject<wixDocsRelatedSiteClickParams>} LogObject<wixDocsRelatedSiteClickParams>\n */\nexport function wixDocsRelatedSiteClick(params: wixDocsRelatedSiteClickParams): LogObject<wixDocsRelatedSiteClickParams> {\n return { evid: 17, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsViewSourceClick' event (evid: 18)\n *\n * Event description: Wix Docs - View Source Click\n *\n * @param {wixDocsViewSourceClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsViewSourceClickParams>} LogObject<wixDocsViewSourceClickParams>\n */\nexport function wixDocsViewSourceClick(params: wixDocsViewSourceClickParams): LogObject<wixDocsViewSourceClickParams> {\n return { evid: 18, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsObjectShowMembersClick' event (evid: 19)\n *\n * Event description: Click on Show Members\n *\n * @param {wixDocsObjectShowMembersClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} category_name - category name\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {string} action - action\n * @return {LogObject<wixDocsObjectShowMembersClickParams>} LogObject<wixDocsObjectShowMembersClickParams>\n */\nexport function wixDocsObjectShowMembersClick(params: wixDocsObjectShowMembersClickParams): LogObject<wixDocsObjectShowMembersClickParams> {\n return { evid: 19, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSiteVisit' event (evid: 2)\n *\n * Event description: Visit to Wix Docs page\n *\n * @param {wixDocsSiteVisitParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {Url} referral_url - referral_url\n * @property {string} category_name - category\n * @property {number} screen_width - screen_width\n * @property {number} screen_height - screen height\n * @property {string} article_name - article name\n * @property {Url} page_url - page url of customer\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsSiteVisitParams>} LogObject<wixDocsSiteVisitParams>\n */\nexport function wixDocsSiteVisit(params: wixDocsSiteVisitParams): LogObject<wixDocsSiteVisitParams> {\n return { evid: 2, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsToggleClick' event (evid: 22)\n *\n * Event description: Click on a toggle to change View mode/Deprecation mode/Edit mode...\n *\n * @param {wixDocsToggleClickParams} params - The parameters for this event\n * @property {string} toggle_name - the name of the toggle that was clicked\n * @property {string} toggle_status - the current status of the toggle (before clicking)\n * @property {string} page_url - the url of the current page (when clicking on the toggle)\n * @property {string} article_name - the name of the current item\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<wixDocsToggleClickParams>} LogObject<wixDocsToggleClickParams>\n */\nexport function wixDocsToggleClick(params: wixDocsToggleClickParams): LogObject<wixDocsToggleClickParams> {\n return { evid: 22, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsGiveFeedbackClick' event (evid: 3)\n *\n * Event description: User clicks on \"yes\" or \"no\" feedback click for articles.\n *\n * @param {wixDocsGiveFeedbackClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {Url} article_url - article_url\n * @property {string} article_name - article_name\n * @property {boolean} positive_feedback - feedback given, Yes or No - for helpful\n * @return {LogObject<wixDocsGiveFeedbackClickParams>} LogObject<wixDocsGiveFeedbackClickParams>\n */\nexport function wixDocsGiveFeedbackClick(params: wixDocsGiveFeedbackClickParams): LogObject<wixDocsGiveFeedbackClickParams> {\n return { evid: 3, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'gitToResourceUpdateSrc112Evid30' event (evid: 30)\n *\n * Event description: Tracking git to resource update pipline\n *\n * @param {gitToResourceUpdateSrc112Evid30Params} params - The parameters for this event\n * @property {string} flow - the consumed/produced event topic (REST/SDK/MD)\n * @property {string} step - the name of the step\n * @property {string} revision_id_1 - revision id\n * @property {string} resource_id_1 - resource id\n * @property {string} entity_id - fqdn (for open api resolver) \n * @property {string} repository_full_name - repository name (for md resolver and repo whitlist in autogen)\n * @property {string} package_name - package name (for public sdk and auto velo)\n * @property {string} module_name - module name (for legacy velo)\n * @property {string} git_commit_hash - unique identifier of the current pipeline. consistent over the pipeline\n * @property {string} api_toggle_status - REST/SDK on api references portal\n * @return {LogObject<gitToResourceUpdateSrc112Evid30Params>} LogObject<gitToResourceUpdateSrc112Evid30Params>\n */\nexport function gitToResourceUpdateSrc112Evid30(params: gitToResourceUpdateSrc112Evid30Params): LogObject<gitToResourceUpdateSrc112Evid30Params> {\n return { evid: 30, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSearchResults' event (evid: 4)\n *\n * Event description: Search results returned (search action performed)\n *\n * @param {wixDocsSearchResultsParams} params - The parameters for this event\n * @property {string} chosen_article_name - Chosen article name\n * @property {string} user_action - action taken by user = [exit_search, result_click, clear_button]\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {Url} first_article_url - url of first url returned in search\n * @property {string} first_article_category - the category of the the first search result\n * @property {Url} chosen_article - the url of the article that the user clicked, if clicked\n * @property {string} first_article_name - the first name of the article\n * @property {number} num_of_results - how many articles were found for the search?\n * @property {string} search_term - search term used in search action\n * @property {string} chosen_category_name - name of chosen category\n * @property {Url} chosen_article_url - chosen article url\n * @return {LogObject<wixDocsSearchResultsParams>} LogObject<wixDocsSearchResultsParams>\n */\nexport function wixDocsSearchResults(params: wixDocsSearchResultsParams): LogObject<wixDocsSearchResultsParams> {\n return { evid: 4, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsNavigationClick' event (evid: 5)\n *\n * Event description: Menu navigation click\n *\n * @param {wixDocsNavigationClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {string} category_name - name of category in menu\n * @property {Url} article_url - article url\n * @property {string} article_name - name of article inside of category\n * @property {string} nav_type - breadcrumb, category, article, scroll (after 5 secs)\n * @return {LogObject<wixDocsNavigationClickParams>} LogObject<wixDocsNavigationClickParams>\n */\nexport function wixDocsNavigationClick(params: wixDocsNavigationClickParams): LogObject<wixDocsNavigationClickParams> {\n return { evid: 5, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsContactOwnerLinkClicked' event (evid: 6)\n *\n * Event description: Link to contact owner clicked\n *\n * @param {wixDocsContactOwnerLinkClickedParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {string} link_type - link type clicked\n * @return {LogObject<wixDocsContactOwnerLinkClickedParams>} LogObject<wixDocsContactOwnerLinkClickedParams>\n */\nexport function wixDocsContactOwnerLinkClicked(params: wixDocsContactOwnerLinkClickedParams): LogObject<wixDocsContactOwnerLinkClickedParams> {\n return { evid: 6, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsCopyCode' event (evid: 7)\n *\n * Event description: Copy the code given in the article example\n *\n * @param {wixDocsCopyCodeParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {string} category_name - name of category\n * @property {Url} article_url - the url of the article that was copied\n * @property {string} id - id of copied data\n * @property {string} article_name - name of article\n * @return {LogObject<wixDocsCopyCodeParams>} LogObject<wixDocsCopyCodeParams>\n */\nexport function wixDocsCopyCode(params: wixDocsCopyCodeParams): LogObject<wixDocsCopyCodeParams> {\n return { evid: 7, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsTryItOutClick' event (evid: 8)\n *\n * Event description: Wix Docs - Try it Out - Click\n *\n * @param {wixDocsTryItOutClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsTryItOutClickParams>} LogObject<wixDocsTryItOutClickParams>\n */\nexport function wixDocsTryItOutClick(params: wixDocsTryItOutClickParams): LogObject<wixDocsTryItOutClickParams> {\n return { evid: 8, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsShareableLinkClick' event (evid: 9)\n *\n * Event description: Wix Docs - Shareable Link - Click\n *\n * @param {wixDocsShareableLinkClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsShareableLinkClickParams>} LogObject<wixDocsShareableLinkClickParams>\n */\nexport function wixDocsShareableLinkClick(params: wixDocsShareableLinkClickParams): LogObject<wixDocsShareableLinkClickParams> {\n return { evid: 9, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'publicSdkCall' event (evid: 1606)\n *\n * Event description: The event is sent when there is a call for an API\n *\n * @param {publicSdkCallParams} params - The parameters for this event\n * @property {string} http_code - status response : 200 / 401 / 403 / 404 / 500\n * @property {Url} url - The url of the destination of the call (URL/URI)\n * @property {number} latency - The API latency\n * @property {string} auth_type - API Keys / OAuth app / ..\n * @property {string} app_def_id - The app_def_id of the caller\n * @property {string} package_version - bi-package-version\n * @property {string} http_method - REST protocol (Post / delete / patch / put / delete)\n * @property {string} entity_name - The name of the entity that was called (fqdn)\n * @property {string} package_name - bi-package-name\n * @property {string} origin_url - The url that the call was from\n * @property {string} environment - js-sdk (sdk before we changed the field) / velo-frontend (auto velo) / velo-backend (auto velo) / vanilla (rest) / js-dashboard / js-api_key / js-velo-backend / js-velo-frontend / js-app (TPA using sdk - for example cli apps) / js-site / js-editor\n * @property {string} method_name - The name of the method that was called (fqn)\n * @property {string} msid - The ID of the site\n * @property {string} mcp_tool_execution_id - wix mcp server tool execution id\n * @property {string} entity_name_fw - entity_name_fw\n * @property {string} method_name_fw - method_name_fw\n * @property {GUID} instance_id - The instance id - msid+app_id\n * @property {string} integration_type - Wix / TPA (headless, api keys, blocks) / Velo\n * @return {LogObject<publicSdkCallParams>} LogObject<publicSdkCallParams>\n */\nexport function publicSdkCall(params: publicSdkCallParams): LogObject<publicSdkCallParams> {\n return { evid: 1606, src: 11, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'astraCmdEnteredSrc11Evid4001' event (evid: 4001)\n *\n * Event description: a user enters a command in Astra\n *\n *\n * @param {astraCmdEnteredSrc11Evid4001Params} params - The parameters for this event\n * @property {string} cmd - the command that the user entered\n * @property {string} message_id - the id of the flow of the current command\n * @property {string} sender_uuid - the uuid of the sender\n * @property {string} repository - Git rep that the user is working from\n * @property {string} feature_toggle_name - names of the feature toggles used\n * @property {string} files_added - all file names that are attached by the user to the command massage\n *\n * @return {LogObject<astraCmdEnteredSrc11Evid4001Params>} LogObject<astraCmdEnteredSrc11Evid4001Params>\n */\nexport function astraCmdEnteredSrc11Evid4001(params: astraCmdEnteredSrc11Evid4001Params): LogObject<astraCmdEnteredSrc11Evid4001Params> {\n return { evid: 4001, src: 11, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessQuickStartModalShown' event (evid: 11)\n *\n * Event description: The Headless quick-start modal shown - will be sent in any step of the modal\n *\n * @param {headlessQuickStartModalShownParams} params - The parameters for this event\n * @property {string} step - create an OAuth app / install SDK / call our API\n * @property {string} technology - javascript / react/ / others / null if it wasnt chosen yet\n * @property {string} appType - web / mobile / other / null if it wasn't chosen yet\n * @property {string} entryPoint - where the modal opened from - focus widget / create oauth from settings\n * @property {boolean} isNewFlow - True if new \n * @return {LogObject<headlessQuickStartModalShownParams>} LogObject<headlessQuickStartModalShownParams>\n */\nexport function headlessQuickStartModalShown(params: headlessQuickStartModalShownParams): LogObject<headlessQuickStartModalShownParams> {\n return { evid: 11, src: 151, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessPlaygroundModalFinishedLoading' event (evid: 12)\n *\n * Event description: The event will be sent when the user clicks on any button of the modal\n *\n * @param {headlessPlaygroundModalFinishedLoadingParams} params - The parameters for this event\n * @property {string} step - create an OAuth app / install SDK / call our API\n * @property {string} cta - learn more, create&cont, tech, copy code, any wix api tool link, go to settings, close, app_type (the type will be sent in \"value\" field)\n * X, etc\n *\n * @property {string} value - name, app type, copy code type, etc (can be null)\n * @property {string} technology - javascript / react/ / others / null if it wasnt chosen yet\n *\n * @property {string} appType - web / mobile / other / null if it wasnt chosen yet\n *\n * @property {string} entryPoint - where the modal opened from - focus widget / create oauth from settings\n *\n * @return {LogObject<headlessPlaygroundModalFinishedLoadingParams>} LogObject<headlessPlaygroundModalFinishedLoadingParams>\n */\nexport function headlessPlaygroundModalFinishedLoading(params: headlessPlaygroundModalFinishedLoadingParams): LogObject<headlessPlaygroundModalFinishedLoadingParams> {\n return { evid: 12, src: 151, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnOauthAppAction' event (evid: 100)\n *\n * Event description: The event is sent when the user click to create/delete/edit OAuth app\n *\n * @param {oauthAppClickOnOauthAppActionParams} params - The parameters for this event\n * @property {string} app_description - The app description, can be empty\n * @property {string} allowed_domains - The app allowed domains, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name, can be empty\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs, can be empty\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @property {string} action - create / create from empty state / edit / delete\n * @return {LogObject<oauthAppClickOnOauthAppActionParams>} LogObject<oauthAppClickOnOauthAppActionParams>\n */\nexport function oauthAppClickOnOauthAppAction(params: oauthAppClickOnOauthAppActionParams): LogObject<oauthAppClickOnOauthAppActionParams> {\n return { evid: 100, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheOauthAppMainPage' event (evid: 101)\n *\n * Event description: The event is sent when the user clicks on any action from the OAuth app main page, other than apps actions (copy account ID button, referral link)\n *\n * @param {oauthAppClickAtTheOauthAppMainPageParams} params - The parameters for this event\n * @property {string} url_clicked - The URL that the user opened by a click on the link, can be empty\n * @property {string} field_value - The redirect URL, can be null\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} cta - copy account id button / referral link / edit domain\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickAtTheOauthAppMainPageParams>} LogObject<oauthAppClickAtTheOauthAppMainPageParams>\n */\nexport function oauthAppClickAtTheOauthAppMainPage(params: oauthAppClickAtTheOauthAppMainPageParams): LogObject<oauthAppClickAtTheOauthAppMainPageParams> {\n return { evid: 101, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickNextCloseAtTheCreateOauthAppDialog' event (evid: 102)\n *\n * Event description: The event is sent when the user click on next button at the Create a OAuth app dialog\n *\n * @param {oauthAppClickNextCloseAtTheCreateOauthAppDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @property {string} action - next / close\n * @return {LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams>} LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams>\n */\nexport function oauthAppClickNextCloseAtTheCreateOauthAppDialog(params: oauthAppClickNextCloseAtTheCreateOauthAppDialogParams): LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams> {\n return { evid: 102, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheCreateEditOauthAppPage' event (evid: 103)\n *\n * Event description: The event is sent when the user click on any action from the edit / create OAuth app page, other then close / save (copy account ID button, refferal link, show client secret, hide client secret, rotate client secret, add redirect URL)\n *\n * @param {oauthAppClickAtTheCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} url_clicked - The URL that the user opend by a click on the link, can be empty\n * @property {string} app_description - The app description, can be empty\n * @property {string} app_action - create / edit\n * @property {string} allowed_domains - The app allowed domains, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} cta - copy account ID button, refferal link, show client secret, hide client secret, rotate client secret, add redirect URL\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs, can be empty\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams>} LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickAtTheCreateEditOauthAppPage(params: oauthAppClickAtTheCreateEditOauthAppPageParams): LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams> {\n return { evid: 103, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnCloseFromCreateEditOauthAppPage' event (evid: 104)\n *\n * Event description: The event is sent when the user clicks on close from edit OAuth app page (didnt save changes \\ didnt create an app)\n *\n * @param {oauthAppClickOnCloseFromCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} app_action - create / edit\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams>} LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickOnCloseFromCreateEditOauthAppPage(params: oauthAppClickOnCloseFromCreateEditOauthAppPageParams): LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams> {\n return { evid: 104, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnSaveFromCreateEditOauthAppPage' event (evid: 105)\n *\n * Event description: The event is sent when the user clicks on save from edit OAuth app page (create an app \\ save changes of an app)\n *\n * @param {oauthAppClickOnSaveFromCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams>} LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickOnSaveFromCreateEditOauthAppPage(params: oauthAppClickOnSaveFromCreateEditOauthAppPageParams): LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams> {\n return { evid: 105, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheDeleteOauthAppDialog' event (evid: 106)\n *\n * Event description: The event is sent when the user slick on some button at the delete app dialog - (delete \\ send code \\ send code again \\ verify and delete an app)\n *\n * @param {oauthAppClickAtTheDeleteOauthAppDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description\n * @property {string} allowed_domains - The app allowed domains\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs\n * @property {string} app_id - The id of the app\n * @property {string} msid - The msid of the site\n * @property {string} action - delete / send code / send code again / verify and delete an app\n * @return {LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams>} LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams>\n */\nexport function oauthAppClickAtTheDeleteOauthAppDialog(params: oauthAppClickAtTheDeleteOauthAppDialogParams): LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams> {\n return { evid: 106, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppOauthAppActionWasMade' event (evid: 107)\n *\n * Event description: The event is sent when an OAuth app was created / deleted / edited\n *\n * @param {oauthAppOauthAppActionWasMadeParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} failure_reason - The failure reason, can be empty\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit / delete\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} old_allowed_authorize_urls - The old app allowed_authorize_urls, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {boolean} was_success - True if the action was finished successfully\n * @property {number} time_to_finish - The time it took to finish the action in ms\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @property {boolean} is_new_flow - True is it was created by the new flow\n * @return {LogObject<oauthAppOauthAppActionWasMadeParams>} LogObject<oauthAppOauthAppActionWasMadeParams>\n */\nexport function oauthAppOauthAppActionWasMade(params: oauthAppOauthAppActionWasMadeParams): LogObject<oauthAppOauthAppActionWasMadeParams> {\n return { evid: 107, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheGenerateClientSecretDialog' event (evid: 108)\n *\n * Event description: The event is sent when the user click at the generate client secret dialog\n *\n * @param {oauthAppClickAtTheGenerateClientSecretDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {string} app_id - The id of the app\n * @property {string} msid - The msid of the site\n * @property {string} action - Copy & close / copy icon / learn more link\n * @return {LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams>} LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams>\n */\nexport function oauthAppClickAtTheGenerateClientSecretDialog(params: oauthAppClickAtTheGenerateClientSecretDialogParams): LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams> {\n return { evid: 108, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppOauthAppActionWasMadeServer' event (evid: 151)\n *\n * Event description: The event is sent when an OAuth app was created / deleted / edited, server event\n *\n * @param {oauthAppOauthAppActionWasMadeServerParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} failure_reason - The failure reason, can be empty\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit / delete\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} old_allowed_authorize_urls - The old app allowed_authorize_urls, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {boolean} was_success - True if the action was finished successfully\n * @property {number} time_to_finish - time_to_finish\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @property {string} action_initiator - the initiator of the action (user/developer/picasso)\n * @property {string} app_creation_initiator - was the Oauth app created by user/system\n * @return {LogObject<oauthAppOauthAppActionWasMadeServerParams>} LogObject<oauthAppOauthAppActionWasMadeServerParams>\n */\nexport function oauthAppOauthAppActionWasMadeServer(params: oauthAppOauthAppActionWasMadeServerParams): LogObject<oauthAppOauthAppActionWasMadeServerParams> {\n return { evid: 151, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartGenerateKey' event (evid: 202)\n *\n * Event description: The event is sent when the user click on verify & generate key, to start generate key\n *\n * @param {apiKeysStartGenerateKeyParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartGenerateKeyParams>} LogObject<apiKeysStartGenerateKeyParams>\n */\nexport function apiKeysStartGenerateKey(params: apiKeysStartGenerateKeyParams): LogObject<apiKeysStartGenerateKeyParams> {\n return { evid: 202, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishGenerateKey' event (evid: 203)\n *\n * Event description: The event is sent when a key is finish the generating process, regardless it was a success or not\n *\n * @param {apiKeysFinishGenerateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} app_def_id - the app_def_id of the key\n * @property {string} key_id - The current app ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {number} time_to_generate - The time it took to generate the key in ms (from evid 202 start generate key)\n * @property {boolean} was_success - True if the key was generate successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishGenerateKeyParams>} LogObject<apiKeysFinishGenerateKeyParams>\n */\nexport function apiKeysFinishGenerateKey(params: apiKeysFinishGenerateKeyParams): LogObject<apiKeysFinishGenerateKeyParams> {\n return { evid: 203, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnActionFromThe3Dots' event (evid: 204)\n *\n * Event description: The event is sent when the user clicks on the top button 'generate api key'\n *\n * @param {apiKeysClickOnActionFromThe3DotsParams} params - The parameters for this event\n * @property {string} key_id - The current app ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user press on - edit \\ duplicate \\ rotate \\ delete\n * @return {LogObject<apiKeysClickOnActionFromThe3DotsParams>} LogObject<apiKeysClickOnActionFromThe3DotsParams>\n */\nexport function apiKeysClickOnActionFromThe3Dots(params: apiKeysClickOnActionFromThe3DotsParams): LogObject<apiKeysClickOnActionFromThe3DotsParams> {\n return { evid: 204, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnGenerateKeyTopButton' event (evid: 205)\n *\n * Event description: The event is sent when the user clicks on the 'generate API key' top button on the main page\n *\n * @param {apiKeysClickOnGenerateKeyTopButtonParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnGenerateKeyTopButtonParams>} LogObject<apiKeysClickOnGenerateKeyTopButtonParams>\n */\nexport function apiKeysClickOnGenerateKeyTopButton(params: apiKeysClickOnGenerateKeyTopButtonParams): LogObject<apiKeysClickOnGenerateKeyTopButtonParams> {\n return { evid: 205, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnGenerateKeyEmptyState' event (evid: 206)\n *\n * Event description: The event is sent when the user clicks on the '+ generate key' when he has an empty state - while the user has 0 keys\n *\n * @param {apiKeysClickOnGenerateKeyEmptyStateParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnGenerateKeyEmptyStateParams>} LogObject<apiKeysClickOnGenerateKeyEmptyStateParams>\n */\nexport function apiKeysClickOnGenerateKeyEmptyState(params: apiKeysClickOnGenerateKeyEmptyStateParams): LogObject<apiKeysClickOnGenerateKeyEmptyStateParams> {\n return { evid: 206, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnViewApiReferences' event (evid: 207)\n *\n * Event description: The event is sent when the user clicks one of the 'view preference options.\n * main page top button, main page API button, main page top learn how to link, key page permissions links, key page learn more, key page top learn how to link, learn more - generate key completed window, learn more - rotate key request window, learn more - rotate key completed window\n *\n * @param {apiKeysClickOnViewApiReferencesParams} params - The parameters for this event\n * @property {string} button_type - Click on one of the API references button - main page top button, main page API button, main page top learn how to link, key page permissions links, key page learn more, key page top learn how to link, learn more - generate key completed window, learn more - rotate key request window, learn more - rotate key completed window\n * @property {string} page_name - The current page name - main page \\ key page\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnViewApiReferencesParams>} LogObject<apiKeysClickOnViewApiReferencesParams>\n */\nexport function apiKeysClickOnViewApiReferences(params: apiKeysClickOnViewApiReferencesParams): LogObject<apiKeysClickOnViewApiReferencesParams> {\n return { evid: 207, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnCopyAccountId' event (evid: 208)\n *\n * Event description: The event is sent when the user clicks on the copy account ID button\n *\n * @param {apiKeysClickOnCopyAccountIdParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnCopyAccountIdParams>} LogObject<apiKeysClickOnCopyAccountIdParams>\n */\nexport function apiKeysClickOnCopyAccountId(params: apiKeysClickOnCopyAccountIdParams): LogObject<apiKeysClickOnCopyAccountIdParams> {\n return { evid: 208, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartEditKey' event (evid: 209)\n *\n * Event description: The event is sent when the user clicks on verify & save changes, to start editing a key\n *\n * @param {apiKeysStartEditKeyParams} params - The parameters for this event\n * @property {string} old_key_permissions - The old permissions for the key\n * @property {string} new_key_name - The new api key name\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} key_id - The current app ID\n * @property {string} old_key_name - The old api name\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} new_key_permissions - The new permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartEditKeyParams>} LogObject<apiKeysStartEditKeyParams>\n */\nexport function apiKeysStartEditKey(params: apiKeysStartEditKeyParams): LogObject<apiKeysStartEditKeyParams> {\n return { evid: 209, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishEditKey' event (evid: 210)\n *\n * Event description: The event is sent when a key is finished the editing process, regardless it was a success or not\n *\n * @param {apiKeysFinishEditKeyParams} params - The parameters for this event\n * @property {number} time_to_edit - The time it took to edit the key in ms (from evid 209 start edit key)\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} old_key_permissions - The old permissions for the key\n * @property {string} new_key_name - The new api key name\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} key_id - The current app ID\n * @property {string} old_key_name - The old api name\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} new_key_permissions - The new permissions for the key\n * @property {boolean} was_success - True if the key was edited successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishEditKeyParams>} LogObject<apiKeysFinishEditKeyParams>\n */\nexport function apiKeysFinishEditKey(params: apiKeysFinishEditKeyParams): LogObject<apiKeysFinishEditKeyParams> {\n return { evid: 210, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartDuplicateKey' event (evid: 211)\n *\n * Event description: The event is sent when the user clicks on verify & save changes, to start duplicating a key\n *\n * @param {apiKeysStartDuplicateKeyParams} params - The parameters for this event\n * @property {string} duplicated_key_permissions - The permissions of the key that was duplicated\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} duplicated_key_id - The id of the key that was duplicated\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} duplicated_key_name - The name of the key that was duplicated\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartDuplicateKeyParams>} LogObject<apiKeysStartDuplicateKeyParams>\n */\nexport function apiKeysStartDuplicateKey(params: apiKeysStartDuplicateKeyParams): LogObject<apiKeysStartDuplicateKeyParams> {\n return { evid: 211, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishDuplicateKey' event (evid: 212)\n *\n * Event description: The event is sent when a key is finished the duplicating process, regardless it was a success or not\n *\n * @param {apiKeysFinishDuplicateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} app_def_id - the app_def_id of the key\n * @property {string} duplicated_key_permissions - The permissions of the key that was duplicated\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} duplicated_key_id - The id of the key that was duplicated\n * @property {number} time_to_duplicate - The time it took to duplicate the key in ms (from evid 2011 start duplicate key)\n * @property {string} key_id - The current api key ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} duplicated_key_name - The name of the key that was duplicated\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was duplicated successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishDuplicateKeyParams>} LogObject<apiKeysFinishDuplicateKeyParams>\n */\nexport function apiKeysFinishDuplicateKey(params: apiKeysFinishDuplicateKeyParams): LogObject<apiKeysFinishDuplicateKeyParams> {\n return { evid: 212, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartRotateKey' event (evid: 213)\n *\n * Event description: The event is sent when the user clicks on validate & rotate key, to start rotate a key\n *\n * @param {apiKeysStartRotateKeyParams} params - The parameters for this event\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartRotateKeyParams>} LogObject<apiKeysStartRotateKeyParams>\n */\nexport function apiKeysStartRotateKey(params: apiKeysStartRotateKeyParams): LogObject<apiKeysStartRotateKeyParams> {\n return { evid: 213, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishRotateKey' event (evid: 214)\n *\n * Event description: The event is sent when a key is finished the rotate process, regardless it was a success or not\n *\n * @param {apiKeysFinishRotateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {number} time_to_rotate - The time it took to rotate the key in ms (from evid 2013 start rotate key)\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was rotated successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishRotateKeyParams>} LogObject<apiKeysFinishRotateKeyParams>\n */\nexport function apiKeysFinishRotateKey(params: apiKeysFinishRotateKeyParams): LogObject<apiKeysFinishRotateKeyParams> {\n return { evid: 214, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartDeleteKey' event (evid: 215)\n *\n * Event description: The event is sent when the user clicks on verify & delete key, to start delete a key\n *\n * @param {apiKeysStartDeleteKeyParams} params - The parameters for this event\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartDeleteKeyParams>} LogObject<apiKeysStartDeleteKeyParams>\n */\nexport function apiKeysStartDeleteKey(params: apiKeysStartDeleteKeyParams): LogObject<apiKeysStartDeleteKeyParams> {\n return { evid: 215, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishDeleteKey' event (evid: 216)\n *\n * Event description: The event is sent when a key is finished the delete process, regardless it was a success or not\n *\n * @param {apiKeysFinishDeleteKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {number} time_to_delete - The time it took to delete the key in ms (from evid 2015 start delete key)\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was deleted successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishDeleteKeyParams>} LogObject<apiKeysFinishDeleteKeyParams>\n */\nexport function apiKeysFinishDeleteKey(params: apiKeysFinishDeleteKeyParams): LogObject<apiKeysFinishDeleteKeyParams> {\n return { evid: 216, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnSendCode' event (evid: 217)\n *\n * Event description: The event is sent when the user clicks on send code button, for the next actions - generate \\ edit \\ duplicate \\ rotate \\ delete\n *\n * @param {apiKeysClickOnSendCodeParams} params - The parameters for this event\n * @property {number} request_number - Running number of the send code request, for this api key\n * @property {string} key_id - The current api ID, will be null if it is duplicate \\ generate action\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {string} request_id - The unique request id, same as the request id for identity and email marketing\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user is doing - generate \\ edit \\ duplicate \\ rotate \\ delete\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnSendCodeParams>} LogObject<apiKeysClickOnSendCodeParams>\n */\nexport function apiKeysClickOnSendCode(params: apiKeysClickOnSendCodeParams): LogObject<apiKeysClickOnSendCodeParams> {\n return { evid: 217, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnSendCodeAgain' event (evid: 218)\n *\n * Event description: The event is sent when the user clicks on send code again button, for the next actions - generate \\ edit \\ duplicate \\ rotate \\ delete\n *\n * @param {apiKeysClickOnSendCodeAgainParams} params - The parameters for this event\n * @property {string} key_id - The current api ID, will be null if it is duplicate \\ generate action\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user is doing - generate \\ edit \\ duplicate \\ rotate \\ delete\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnSendCodeAgainParams>} LogObject<apiKeysClickOnSendCodeAgainParams>\n */\nexport function apiKeysClickOnSendCodeAgain(params: apiKeysClickOnSendCodeAgainParams): LogObject<apiKeysClickOnSendCodeAgainParams> {\n return { evid: 218, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnOauthPageLink' event (evid: 227)\n *\n * Event description: The event is sent when the user clicks on OAuth page link\n *\n * @param {apiKeysClickOnOauthPageLinkParams} params - The parameters for this event\n * @property {number} num_of_keys - The number of keys in the account\n * @return {LogObject<apiKeysClickOnOauthPageLinkParams>} LogObject<apiKeysClickOnOauthPageLinkParams>\n */\nexport function apiKeysClickOnOauthPageLink(params: apiKeysClickOnOauthPageLinkParams): LogObject<apiKeysClickOnOauthPageLinkParams> {\n return { evid: 227, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'triggerValueWasSelected' event (evid: 400)\n *\n * Event description: The event will be sent any time the user selects a trigger value in zapier creation flow\n *\n * @param {triggerValueWasSelectedParams} params - The parameters for this event\n * @property {string} triggerValues - A json of the trigger that was selected earlier\n * @property {boolean} isAppInstall - True if the app install at the site\n * @property {string} appName - The name of the app that was chosen (for example - booking)\n * @property {GUID} uuid - The uuid that made the action\n * @property {string} fieldLabel - The lable of the field that the user changed\n * @property {string} fieldValue - The value of the field that the user selected\n * @property {string} groupName - The name of the group that was chosen (for example - sub category of booking)\n * @property {string} appId - The guid of the app that was chosen (for example - booking guid)\n * @property {GUID} msid - The guid of the site\n * @return {LogObject<triggerValueWasSelectedParams>} LogObject<triggerValueWasSelectedParams>\n */\nexport function triggerValueWasSelected(params: triggerValueWasSelectedParams): LogObject<triggerValueWasSelectedParams> {\n return { evid: 400, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'zapierTestDataClick' event (evid: 401)\n *\n * Event description: The event will be sent any time the user test a zap in zapier\n *\n * @param {zapierTestDataClickParams} params - The parameters for this event\n * @property {string} triggerValues - A json of the trigger that was selected earlier\n * @property {boolean} isAppInstall - True if the app install at the site\n * @property {string} appName - The name of the app that was chosen (for example - booking)\n * @property {GUID} uuid - The uuid that made the action\n * @property {string} groupName - The name of the group that was chosen (for example - sub category of booking)\n * @property {string} appId - The guid of the app that was chosen (for example - booking guid)\n * @property {GUID} msid - The guid of the site\n * @return {LogObject<zapierTestDataClickParams>} LogObject<zapierTestDataClickParams>\n */\nexport function zapierTestDataClick(params: zapierTestDataClickParams): LogObject<zapierTestDataClickParams> {\n return { evid: 401, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'zapierCustomZapCreatedOrDeleted' event (evid: 402)\n *\n * Event description: the event will be sent when a custom zap was created or deleted from the zapier website.\n *\n * @param {zapierCustomZapCreatedOrDeletedParams} params - The parameters for this event\n * @property {string} ruleId - The rule id\n * @property {string} zapId - The zap id\n * @property {string} action - Detele / Cerate\n * @return {LogObject<zapierCustomZapCreatedOrDeletedParams>} LogObject<zapierCustomZapCreatedOrDeletedParams>\n */\nexport function zapierCustomZapCreatedOrDeleted(params: zapierCustomZapCreatedOrDeletedParams): LogObject<zapierCustomZapCreatedOrDeletedParams> {\n return { evid: 402, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessMigrationTourModalShown' event (evid: 8)\n *\n * Event description: The event will be sent each time the migration-tour-modal will be shown - so we will not show it twice per user (using active group)\n *\n * @param {headlessMigrationTourModalShownParams} params - The parameters for this event\n * @return {LogObject<headlessMigrationTourModalShownParams>} LogObject<headlessMigrationTourModalShownParams>\n */\nexport function headlessMigrationTourModalShown(params: headlessMigrationTourModalShownParams): LogObject<headlessMigrationTourModalShownParams> {\n return { evid: 8, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'n8NTriggerActionSrc154Evid810' event (evid: 810)\n *\n * Event description: a trigger was created/deleted in n8n \n *\n * @param {n8NTriggerActionSrc154Evid810Params} params - The parameters for this event\n * @property {string} wixAutomationId - wix automation id\n * @property {string} triggerKey - the chosen trigger key\n * @property {string} mode - the automation working mode (test/prod)\n * @property {string} triggerAppId - the relevant app id of the trigger\n * @return {LogObject<n8NTriggerActionSrc154Evid810Params>} LogObject<n8NTriggerActionSrc154Evid810Params>\n */\nexport function n8NTriggerActionSrc154Evid810(params: n8NTriggerActionSrc154Evid810Params): LogObject<n8NTriggerActionSrc154Evid810Params> {\n return { evid: 810, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksDispatcherResponseChannelTopicSrc155Evid3' event (evid: 3)\n *\n * Event description: Webhooks dispatcher response channel topic\n *\n * @param {webhooksDispatcherResponseChannelTopicSrc155Evid3Params} params - The parameters for this event\n * @property {string} topic - The webhook topic\n * @property {string} callbackUrl - The callback Url\n * @property {GUID} appDefId - the app def id made the call\n * @property {DateTime} kafkaTime - timestamp of the original kafka message\n * @property {number} retryNumber - retry attempt (the first one should be 0)\n * @property {string} statusCode - responded tatus code\n * @property {number} responseTime - time to response in ms\n * @property {DateTime} webhookTime - timestamp of firing the webhook\n * @property {string} originalTimestamp - The originalTimestamp\n * @property {string} retryAttempt - retryAttempt\n * @property {string} responseDuration - responseDuration\n * @return {LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params>} LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params>\n */\nexport function webhooksDispatcherResponseChannelTopicSrc155Evid3(params: webhooksDispatcherResponseChannelTopicSrc155Evid3Params): LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params> {\n return { evid: 3, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'graphqlCall' event (evid: 400)\n *\n * Event description: The event will be sent when there is a GraphQL call\n *\n * @param {graphqlCallParams} params - The parameters for this event\n * @property {string} client_artifact_id - The artifact that was making the call\n * @property {string} operation_type - query / mutation\n * @property {GUID} metasiteId - msid of the site\n * @property {string} entity_call_breakdown - { \"fqdn1\": { \"method1\": [\"field_1\", \"field_2\"] \"method2\": [\"field_3\", \"field_4\"] ... }\n * @property {string} source_type - headless/ TPA/ Internal site / Internal App\n * @property {GUID} appDefId - the app guid\n * @property {string} schema_name - The schema name - Internal / external / demo\n * @property {string} origin_url - The source url\n * @property {number} time_to_resolve - The time it takes to the resolver to obtain answer, in ms\n * @property {boolean} is_success - True if the call succeeded\n * @return {LogObject<graphqlCallParams>} LogObject<graphqlCallParams>\n */\nexport function graphqlCall(params: graphqlCallParams): LogObject<graphqlCallParams> {\n return { evid: 400, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'autoVeloSiteCallForAMethod' event (evid: 401)\n *\n * Event description: The event is sent when the server gets a call for a method, from a site\n *\n * @param {autoVeloSiteCallForAMethodParams} params - The parameters for this event\n * @property {string} http_code - The http code for this call - 200\\404\\..\n * @property {string} api_owner - The API owner (company)\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} service_name - The name of the service of the method\n * @property {string} entity_name - The FQDN of the entity\n * @property {string} environment - The type of development - front-end \\ back-end\n * @property {string} module_name - The module name of the entity - edm name\n * @property {string} method_name - The name of the method that was in use\n * @property {string} msid - The msid of the site that made the call\n * @return {LogObject<autoVeloSiteCallForAMethodParams>} LogObject<autoVeloSiteCallForAMethodParams>\n */\nexport function autoVeloSiteCallForAMethod(params: autoVeloSiteCallForAMethodParams): LogObject<autoVeloSiteCallForAMethodParams> {\n return { evid: 401, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'appsSettingsDeletionCandidate' event (evid: 700)\n *\n * Event description: Apps Settings - Deletion Candidate.\n *\n * @param {appsSettingsDeletionCandidateParams} params - The parameters for this event\n * @property {GUID} instance - .\n * @property {GUID} external_id - .\n * @property {GUID} app_id - .\n * @return {LogObject<appsSettingsDeletionCandidateParams>} LogObject<appsSettingsDeletionCandidateParams>\n */\nexport function appsSettingsDeletionCandidate(params: appsSettingsDeletionCandidateParams): LogObject<appsSettingsDeletionCandidateParams> {\n return { evid: 700, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'settingsAccess' event (evid: 800)\n *\n * Event description: Settings Access.\n *\n * @param {settingsAccessParams} params - The parameters for this event\n * @property {GUID} instance - .\n * @property {GUID} external_id - .\n * @property {GUID} app_id - .\n * @return {LogObject<settingsAccessParams>} LogObject<settingsAccessParams>\n */\nexport function settingsAccess(params: settingsAccessParams): LogObject<settingsAccessParams> {\n return { evid: 800, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiBlockGaRule' event (evid: 801)\n *\n * Event description: The event will be sent when an API is blocked GA rule/passed it - the API is blocked due to not following the rule condition\n *\n * @param {apiBlockGaRuleParams} params - The parameters for this event\n * @property {string} fqdn - The fqdn that was blocked\n * @property {boolean} isBlocked - True if the API was blocked\n * @property {string} method - The API method (function)\n * @property {string} namespace - The namespace of the method\n * @property {string} blockReason - If the API was blocked - the block reason\n * @property {string} serviceArtifactId - the service artifact id\n * @return {LogObject<apiBlockGaRuleParams>} LogObject<apiBlockGaRuleParams>\n */\nexport function apiBlockGaRule(params: apiBlockGaRuleParams): LogObject<apiBlockGaRuleParams> {\n return { evid: 801, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessAddWixToYourProjectDialogIsShown' event (evid: 13)\n *\n * Event description: reported when user clicks to open \u2018Add Wix to your Project\u2019 dialog from Vercel/Netlify\n *\n * @param {headlessAddWixToYourProjectDialogIsShownParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessAddWixToYourProjectDialogIsShownParams>} LogObject<headlessAddWixToYourProjectDialogIsShownParams>\n */\nexport function headlessAddWixToYourProjectDialogIsShown(params: headlessAddWixToYourProjectDialogIsShownParams): LogObject<headlessAddWixToYourProjectDialogIsShownParams> {\n return { evid: 13, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessOAuthInstalled' event (evid: 15)\n *\n * Event description: reported when the user approve the app market dialog and an OAuth installed and redirect to Netlify/Vercel - the funnel was finished successfuly\n *\n * @param {headlessOAuthInstalledParams} params - The parameters for this event\n * @property {string} source - New to Wix / Existing Wix Business\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessOAuthInstalledParams>} LogObject<headlessOAuthInstalledParams>\n */\nexport function headlessOAuthInstalled(params: headlessOAuthInstalledParams): LogObject<headlessOAuthInstalledParams> {\n return { evid: 15, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessAddWixToYourProjectDialogClick' event (evid: 16)\n *\n * Event description: reported when user clicks on any button at the \u2018Add Wix to your Project\u2019 dialog from Vercel/Netlify\n *\n * @param {headlessAddWixToYourProjectDialogClickParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {GUID} uuid - The uuid of the user\n * @property {GUID} client_id - client_id\n * @property {string} cta - Sign Up / Login / watch video\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessAddWixToYourProjectDialogClickParams>} LogObject<headlessAddWixToYourProjectDialogClickParams>\n */\nexport function headlessAddWixToYourProjectDialogClick(params: headlessAddWixToYourProjectDialogClickParams): LogObject<headlessAddWixToYourProjectDialogClickParams> {\n return { evid: 16, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessDeployThisTemplatePageIsShown' event (evid: 17)\n *\n * Event description: reported when the deploy this template page is shown\n *\n * @param {headlessDeployThisTemplatePageIsShownParams} params - The parameters for this event\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessDeployThisTemplatePageIsShownParams>} LogObject<headlessDeployThisTemplatePageIsShownParams>\n */\nexport function headlessDeployThisTemplatePageIsShown(params: headlessDeployThisTemplatePageIsShownParams): LogObject<headlessDeployThisTemplatePageIsShownParams> {\n return { evid: 17, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessDeployThisTemplatePageClick' event (evid: 18)\n *\n * Event description: reported when the user clicks on any cta at the deploy this template page\n *\n * @param {headlessDeployThisTemplatePageClickParams} params - The parameters for this event\n * @property {string} provider - Netlify / Vercel, will be sent only when the cta is continue\n * @property {string} cta - Deploy to Netlify / Deploy to Vercel / Continue / View Template Repo\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessDeployThisTemplatePageClickParams>} LogObject<headlessDeployThisTemplatePageClickParams>\n */\nexport function headlessDeployThisTemplatePageClick(params: headlessDeployThisTemplatePageClickParams): LogObject<headlessDeployThisTemplatePageClickParams> {\n return { evid: 18, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessResumeSetUpDialogIsShown' event (evid: 19)\n *\n * Event description: reported when user clicks to open \u2018Resume Set Up dialog from Vercel/Netlify\n *\n * @param {headlessResumeSetUpDialogIsShownParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessResumeSetUpDialogIsShownParams>} LogObject<headlessResumeSetUpDialogIsShownParams>\n */\nexport function headlessResumeSetUpDialogIsShown(params: headlessResumeSetUpDialogIsShownParams): LogObject<headlessResumeSetUpDialogIsShownParams> {\n return { evid: 19, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'copyOfHeadlessResumeSetUpDialogClick' event (evid: 20)\n *\n * Event description: reported when user clicks on any button at the \u2018Resume Set Up\u2019 dialog from Vercel/Netlify\n *\n * @param {copyOfHeadlessResumeSetUpDialogClickParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} cta - Resume / Cancle\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<copyOfHeadlessResumeSetUpDialogClickParams>} LogObject<copyOfHeadlessResumeSetUpDialogClickParams>\n */\nexport function copyOfHeadlessResumeSetUpDialogClick(params: copyOfHeadlessResumeSetUpDialogClickParams): LogObject<copyOfHeadlessResumeSetUpDialogClickParams> {\n return { evid: 20, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'testSrc184Evid9999' event (evid: 9999)\n *\n * Event description: test\n *\n * @param {testSrc184Evid9999Params} params - The parameters for this event\n * @return {LogObject<testSrc184Evid9999Params>} LogObject<testSrc184Evid9999Params>\n */\nexport function testSrc184Evid9999(params: testSrc184Evid9999Params): LogObject<testSrc184Evid9999Params> {\n return { evid: 9999, src: 184, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixMcpRequestSrc39Evid1607' event (evid: 1607)\n *\n * Event description: Fires when a user runs a query through the Wix MCP, capturing activity at the tool execution level.\n *\n *\n *\n * @param {wixMcpRequestSrc39Evid1607Params} params - The parameters for this event\n * @property {string} sessionId - the relevant session_id (multiple questions in a session)\n * @property {string} queryId - the request id (per user question - many to one with session)\n * @property {string} toolInvocationId - the tool execution id (per tool execution - many to one with user question)\n *\n * @property {string} query - the actual user query string being passed (prompt)\n * @property {string} toolName - The name of the MCP tool that was triggered\n * @property {string} params - the params sent in the tool invocation\n * @property {string} origin - relevant source/agent calling the MCP server (remote/local/picasso)\n * @property {number} duration - duration time per execution (ms)\n * @property {string} executionResult - Success/Error (defined by the tool)\n * @property {string} errorBody - for cases where the execution result was an error\n * @property {string} clientName - cursor, claude desktop etc\n * @property {string} requestId - the request id for the mcp for visitors\n * @property {string} jobId - job id\n * @return {LogObject<wixMcpRequestSrc39Evid1607Params>} LogObject<wixMcpRequestSrc39Evid1607Params>\n */\nexport function wixMcpRequestSrc39Evid1607(params: wixMcpRequestSrc39Evid1607Params): LogObject<wixMcpRequestSrc39Evid1607Params> {\n return { evid: 1607, src: 39, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCodeExampleWindowClicks' event (evid: 11905)\n *\n * Event description: The event will be sent on any click at the code example window at the webhooks page in DC \n *\n * @param {webhooksInDcCodeExampleWindowClicksParams} params - The parameters for this event\n * @property {string} codeType - node.sj / etc... - what was chosen when the user clicked on the cta\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} cta - The click name that the user clicked on (X, node.js, copy, etc))\n * @property {string} displayType - side bar / modal\n * @property {string} extra_values - Any extra value. for example - when the user chose a different lang, it will sent the lan that was choosen. can be null.\n * @return {LogObject<webhooksInDcCodeExampleWindowClicksParams>} LogObject<webhooksInDcCodeExampleWindowClicksParams>\n */\nexport function webhooksInDcCodeExampleWindowClicks(params: webhooksInDcCodeExampleWindowClicksParams): LogObject<webhooksInDcCodeExampleWindowClicksParams> {\n return { evid: 11905, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcTriggeredTestModalClicks' event (evid: 11906)\n *\n * Event description: The event will be sent on any click at the triggered test modal at the webhooks page in DC \n *\n * @param {webhooksInDcTriggeredTestModalClicksParams} params - The parameters for this event\n * @property {string} cta - The click name that the user clicked on (copy / close / X)\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @return {LogObject<webhooksInDcTriggeredTestModalClicksParams>} LogObject<webhooksInDcTriggeredTestModalClicksParams>\n */\nexport function webhooksInDcTriggeredTestModalClicks(params: webhooksInDcTriggeredTestModalClicksParams): LogObject<webhooksInDcTriggeredTestModalClicksParams> {\n return { evid: 11906, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCodeExampleWindowScroll' event (evid: 11907)\n *\n * Event description: The event will be sent a scroll at the code example window at the webhooks page in DC \n *\n * @param {webhooksInDcCodeExampleWindowScrollParams} params - The parameters for this event\n * @property {string} codeType - node.sj / etc... - what was chosen when the user clicked on the cta\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} scrollType - vertical/horizontal\n * @property {string} displayType - side bar / modal\n * @return {LogObject<webhooksInDcCodeExampleWindowScrollParams>} LogObject<webhooksInDcCodeExampleWindowScrollParams>\n */\nexport function webhooksInDcCodeExampleWindowScroll(params: webhooksInDcCodeExampleWindowScrollParams): LogObject<webhooksInDcCodeExampleWindowScrollParams> {\n return { evid: 11907, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCreateEventPageClicks' event (evid: 11908)\n *\n * Event description: The event will be sent on any click at the create event page at the webhooks page in DC \n *\n * @param {webhooksInDcCreateEventPageClicksParams} params - The parameters for this event\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} cta - The click name that the user clicked on (code sample / trigger test / view guide / api reference)\n * @return {LogObject<webhooksInDcCreateEventPageClicksParams>} LogObject<webhooksInDcCreateEventPageClicksParams>\n */\nexport function webhooksInDcCreateEventPageClicks(params: webhooksInDcCreateEventPageClicksParams): LogObject<webhooksInDcCreateEventPageClicksParams> {\n return { evid: 11908, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcMainPageClicks' event (evid: 12301)\n *\n * Event description: The event will be sent on any click at the webhooks main page in DC \n *\n * @param {webhooksInDcMainPageClicksParams} params - The parameters for this event\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} clickType - Navigation, action, expend, colapsed\n * @property {string} location - popover, top, bottom, table\n * @property {string} clickName - the name of the button that was clicked\n * @property {string} pageViewType - webhook list / webhook log\n * @return {LogObject<webhooksInDcMainPageClicksParams>} LogObject<webhooksInDcMainPageClicksParams>\n */\nexport function webhooksInDcMainPageClicks(params: webhooksInDcMainPageClicksParams): LogObject<webhooksInDcMainPageClicksParams> {\n return { evid: 12301, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'devCenterWebhookSentTriggered' event (evid: 1300)\n *\n * Event description: Dev Center - Webhook - Sent / Triggered\n *\n * @param {devCenterWebhookSentTriggeredParams} params - The parameters for this event\n * @property {GUID} instanceId - guid\n * @property {GUID} webhookId - guid\n * @property {string} url - url\n * @property {string} httpMethod - http method\n * @property {string} webhookEventType - webhook_event_type\n * @property {string} responseStatus - response_status\n * @property {string} topic - topic\n * @property {GUID} appId - app id\n * @property {string} originalTimestamp - originalTimestamp\n * @property {string} retryAttempt - retryAttempt\n * @property {string} statusCode - statusCode\n * @property {string} responseDuration - responseDuration\n * @property {string} kafkaEventId - unique identifier for each kafka attempt\n * @property {string} KafkaWebhookId - unique id to each webhook call (if there are 2 attempts - 2 row with this id)\n * @property {string} startHandlingTimestamp - start_handling_timestamp. when the webhook dispatcher started to work on the message\n * @return {LogObject<devCenterWebhookSentTriggeredParams>} LogObject<devCenterWebhookSentTriggeredParams>\n */\nexport function devCenterWebhookSentTriggered(params: devCenterWebhookSentTriggeredParams): LogObject<devCenterWebhookSentTriggeredParams> {\n return { evid: 1300, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'spiExternalInvocationSrc96Evid199' event (evid: 199)\n *\n * Event description: SPI external invocation - REST call only - TPAs.\n *\n * @param {spiExternalInvocationSrc96Evid199Params} params - The parameters for this event\n * @property {string} appId - The app id used the spi\n * @property {string} msid - The msid used the spi\n * @property {string} componentId - per unique app & component (there can be 2 same spis to the same app)\n * @property {string} componentType - spi identifier\n * @property {string} statusCode - the status_code of the invocation\n * @property {string} instanceId - The instance (msid+app_id) that trigger the spi\n * @property {string} responseDuration - in ms\n * @property {string} functionName - the action that the spi does\n * @property {string} appDefId - The app def id\n * @return {LogObject<spiExternalInvocationSrc96Evid199Params>} LogObject<spiExternalInvocationSrc96Evid199Params>\n */\nexport function spiExternalInvocationSrc96Evid199(params: spiExternalInvocationSrc96Evid199Params): LogObject<spiExternalInvocationSrc96Evid199Params> {\n return { evid: 199, src: 96, endpoint: '', params };\n}\n", "// import { createRequire } from 'module';\nimport {\n createGlobalConfig,\n panoramaClientFactory,\n PanoramaPlatform\n} from '@wix/panorama-client-node';\nimport type { ENV } from './environment.js';\nimport type { Implementation } from '@modelcontextprotocol/sdk/types.js';\n\n// const require = createRequire(import.meta.url);\n// const packageJson = require('../package.json');\n\n// TODO: use real package.json\n// I temporarily disabled this because it's not working in the remote server\nconst packageJson = {\n version: '1.0.0'\n};\n\nexport const createPanoramaClient = (opts: {\n environment: ENV;\n sessionId: string;\n componentId: string;\n uuid?: string;\n serverInfo?: Implementation;\n}) => {\n const globalPanoramaConfig = createGlobalConfig();\n globalPanoramaConfig.setSessionId(opts.sessionId);\n\n const panoramaFactory = panoramaClientFactory({\n reporterOptions: {\n silent: true\n },\n baseParams: {\n uuid: opts.uuid,\n componentId: opts.componentId,\n platform: PanoramaPlatform.Standalone,\n fullArtifactId: 'com.wixpress.spartans.wix-mcp',\n artifactVersion: packageJson.version\n },\n data: {\n environment: opts.environment,\n serverInfo: opts.serverInfo,\n runtime: {\n packageVersion: packageJson.version,\n versions: process.versions,\n platform: process.platform,\n arch: process.arch\n }\n }\n }).withGlobalConfig(globalPanoramaConfig);\n\n return panoramaFactory.client();\n};\n", "import { StandaloneNodeLogger } from '@wix/standalone-node-bi-logger';\nimport type { BiEvent, BiLogger } from '@wix/wix-bi-logger-client';\n\nexport function createBiLogger(defaultFields?: BiEvent): BiLogger {\n return new StandaloneNodeLogger()\n .factory({})\n .updateDefaults({\n localTime: () => Date.now(),\n ...defaultFields\n })\n .logger();\n}\n", "export enum ENV {\n DEV = 'DEV',\n TEST = 'TEST',\n LOCAL = 'LOCAL',\n REMOTE = 'REMOTE',\n PICASSO = 'PICASSO',\n VISITOR_MCP = 'VISITOR_MCP'\n}\n\nconst DEFAULT_ENV = ENV.LOCAL;\n\nexport const DEV_ENVIRONMENTS = [ENV.DEV, ENV.TEST];\n\nexport function getEnvironment(nodeEnv?: string): ENV {\n const env = nodeEnv || process.env.NODE_ENV;\n switch (env?.toUpperCase()) {\n case 'DEV':\n return ENV.DEV;\n case 'TEST':\n return ENV.TEST;\n case 'LOCAL':\n return ENV.LOCAL;\n case 'REMOTE':\n return ENV.REMOTE;\n case 'PICASSO':\n return ENV.PICASSO;\n case 'VISITOR_MCP':\n return ENV.VISITOR_MCP;\n default:\n return DEFAULT_ENV;\n }\n}\n", "import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { logger } from '../infra/logger.js';\nimport { GET_ARTICLE_CONTENT_URL, PORTAL_INDEX_URL } from '../constants.js';\n\nconst getPortalIndex = async (portalName: string) => {\n const response = await fetch(`${PORTAL_INDEX_URL}?portalName=${portalName}`);\n const data = await response.json();\n return data;\n};\n\nconst addPortalResources = async (server: McpServer, portalName: string) => {\n // get portal index:\n const portalIndexResponse = await getPortalIndex(portalName);\n logger.log(\n `portalIndexResponse for ${portalName}`,\n JSON.stringify(portalIndexResponse, null, 2)\n );\n\n // for each portalIndex entry, add a resource to the server:\n for (const entry of portalIndexResponse.portalIndex) {\n logger.log(`entry ${JSON.stringify(entry, null, 2)}`);\n\n const name = entry.url;\n const uri = entry.url.replace('https://dev.wix.com/docs/', 'wix-docs://');\n\n logger.log(`adding resource ${name} ${uri}`);\n\n server.resource(name, uri, async (uri: URL) => {\n logger.log(`fetching resource ${uri}`);\n\n const docsURL = uri\n .toString()\n .replace('wix-docs://', 'https://dev.wix.com/docs/');\n const response = await fetch(\n `${GET_ARTICLE_CONTENT_URL}?articleUrl=${encodeURIComponent(docsURL)}`\n );\n const data = await response.json();\n\n return {\n contents: [\n {\n uri: uri.href,\n text: data.articleContent || 'No content found'\n }\n ]\n };\n });\n }\n};\n\nexport const addDocsResources = async (\n server: McpServer,\n portals: string[]\n) => {\n for (const portal of portals) {\n try {\n logger.log(`Processing portal: ${portal}`);\n await addPortalResources(server, portal);\n } catch (error) {\n logger.error(`Error processing portal ${portal}:`, error);\n }\n }\n};\n", "import { z } from 'zod';\nimport { HttpClient, HttpError } from '@wix/http-client';\nimport { logger } from '../infra/logger.js';\nimport { WixMcpServer } from '../wix-mcp-server.js';\nimport { handleWixAPIResponse } from '../tool-utils.js';\nimport { McpAuthenticationStrategy } from '../auth/index.js';\nimport { ALLOWED_HOSTNAMES, isApiUrlAllowed } from './validation.js';\nimport { addUploadImageTool } from './upload-image-tool.js';\nimport { defaultToolDescriptions } from '../config/default-config.js';\n\nexport interface ToolHintsConfig {\n readOnlyHint?: boolean;\n destructiveHint?: boolean;\n openWorldHint?: boolean;\n}\n\nexport { addUploadImageTool } from './upload-image-tool.js';\n\nconst MAX_RESPONSE_SIZE = 50000; // ~50KB cap\n\nfunction formatApiResponse(responseData: unknown): {\n text: string;\n isError: boolean;\n} {\n // Detect if response is HTML (likely wrong endpoint or auth redirect)\n if (\n typeof responseData === 'string' &&\n responseData.trim().startsWith('<!DOCTYPE')\n ) {\n return {\n text: 'Error: API returned HTML instead of JSON. This usually means the URL is incorrect or points to a web page instead of an API endpoint. Please verify the URL.',\n isError: true\n };\n }\n\n let responseText = JSON.stringify(responseData);\n\n if (responseText.length > MAX_RESPONSE_SIZE) {\n responseText =\n responseText.slice(0, MAX_RESPONSE_SIZE) +\n `\\n...[TRUNCATED - response was ${responseText.length} chars, showing first ${MAX_RESPONSE_SIZE}]`;\n }\n\n return { text: responseText, isError: false };\n}\n\nexport function addApiCallTool(\n server: WixMcpServer,\n strategy: McpAuthenticationStrategy,\n allowedTools: string[] = ['CallWixSiteAPI', 'ListWixSites', 'ManageWixSite'],\n disableTools: string[] = [],\n enableTools: string[] = [],\n toolDescriptions?: Record<string, string>,\n toolHints?: Record<string, ToolHintsConfig>\n) {\n // Compute effective allowed tools: (default + enableTools) - disableTools\n const effectiveAllowedTools = [\n ...new Set([...allowedTools, ...enableTools])\n ].filter((tool) => !disableTools.includes(tool));\n // Helper to get tool hints with defaults\n const getHints = (\n toolName: string,\n defaults: {\n readOnlyHint: boolean;\n destructiveHint: boolean;\n openWorldHint: boolean;\n }\n ) => ({\n readOnlyHint: toolHints?.[toolName]?.readOnlyHint ?? defaults.readOnlyHint,\n destructiveHint:\n toolHints?.[toolName]?.destructiveHint ?? defaults.destructiveHint,\n openWorldHint:\n toolHints?.[toolName]?.openWorldHint ?? defaults.openWorldHint\n });\n // Helper to get description (custom or default)\n const getDescription = (toolName: string, defaultDesc: string): string =>\n toolDescriptions?.[toolName] ?? defaultDesc;\n\n if (\n effectiveAllowedTools.includes('CallWixSiteAPI') &&\n !disableTools.includes('CallWixSiteAPI')\n ) {\n server.tool(\n 'CallWixSiteAPI',\n getDescription('CallWixSiteAPI', defaultToolDescriptions.CallWixSiteAPI),\n {\n siteId: z\n .string()\n .describe('The id of the site selected using site selection tool'),\n url: z\n .string()\n .url()\n .describe(\n [\n 'The url of the api to call - ALWAYS get the API url from the Wix REST docs or from the conversation context, the URL MUST BE ABSOLUTE URL',\n 'NEVER guess the API url, ALWAYS get it from the conversation context, i.e from the user prompt or from the \"WixREADME\" tool or from the \"SearchWixRESTDocumentation\" tool or from the \"ReadFullDocsArticle\" tool',\n `Allowed API urls are: ${ALLOWED_HOSTNAMES.join(', ')}`,\n `Docs urls like https://dev.wix.com/docs/... are not API urls, if you want to read the docs, use the \"ReadFullDocsArticle\" tool`\n ].join('\\n')\n ),\n method: z\n .string()\n .describe(\n 'The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)'\n ),\n body: z\n .object({})\n .passthrough()\n .optional()\n .describe(\n 'The request body object. YOU MUST NEVER MAKE UP A BODY - this should be based on the conversation context, i.e from the user prompt or from the \"WixREADME\" tool or from the \"SearchWixRESTDocumentation\" tool or from the \"ReadFullDocsArticle\" tool or from the \"ReadFullDocsMethodSchema\" tool - i.e based on the API docs. YOU MUST NEVER ASSUME YOU KNOW WHAT THE SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT.'\n )\n },\n getHints('CallWixSiteAPI', {\n readOnlyHint: false,\n destructiveHint: true,\n openWorldHint: false\n }),\n async (\n { url, body, method, siteId },\n { httpClient, setToolBiParams }\n ) => {\n const requestHeaders = {\n ...(await strategy.getSiteAuthHeaders(siteId)),\n ...(body ? { 'Content-Type': 'application/json' } : {})\n };\n\n const { isAllowed, error: urlError } = isApiUrlAllowed(url);\n if (!isAllowed) {\n return {\n content: [\n {\n isError: true,\n type: 'text',\n text: `Error validating URL: ${urlError}`\n }\n ]\n };\n }\n\n try {\n const response = await httpClient.request({\n url,\n method: method as any,\n headers: requestHeaders,\n data: method === 'GET' ? undefined : body\n });\n\n const requestId = response.headers?.['x-wix-request-id'];\n setToolBiParams({ requestId, siteId });\n\n const responseData = await handleWixAPIResponse(response);\n const formatted = formatApiResponse(responseData);\n\n if (formatted.isError) {\n return {\n content: [\n {\n type: 'text',\n text: formatted.text\n }\n ],\n isError: true\n };\n }\n\n return {\n content: [\n {\n type: 'text',\n text: `Wix Site API call successful: ${formatted.text}`\n }\n ]\n };\n } catch (error) {\n let requestId: string | undefined;\n if (HttpClient.isHttpError(error)) {\n requestId = error.requestId;\n }\n\n setToolBiParams({ requestId, siteId });\n\n const response = (error as HttpError).response;\n\n const errorMessage = `Failed to call Wix Site API: ${error}. ${requestId ? `Request ID: ${requestId}` : ''}`;\n logger.error(errorMessage);\n\n if (!response) {\n throw new Error(errorMessage);\n }\n\n return handleWixAPIResponse(response);\n }\n }\n );\n }\n\n if (\n effectiveAllowedTools.includes('ListWixSites') &&\n !disableTools.includes('ListWixSites')\n ) {\n server.tool(\n 'ListWixSites',\n getDescription('ListWixSites', defaultToolDescriptions.ListWixSites),\n {\n nameSearch: z\n .string()\n .optional()\n .describe(\n 'optional filer by name, if not provided all sites will be returned'\n ),\n // Hack for Cursor ignoring tools with no params (when nameSearch is optional)\n alwaysTrue: z.boolean().describe('Always pass true to this parameter')\n },\n getHints('ListWixSites', {\n readOnlyHint: true,\n destructiveHint: false,\n openWorldHint: false\n }),\n async ({ nameSearch }, { httpClient }) => {\n const sitesRes = await httpClient.post(\n 'https://www.wixapis.com/site-list/v2/sites/query',\n {\n query: {\n cursorPaging: { limit: 21 },\n filter: {\n ...(nameSearch\n ? {\n name: nameSearch\n }\n : {}),\n namespace: {\n $in: ['WIX', 'DASHBOARD_FIRST', 'ANYWHERE', 'HEADLESS']\n }\n }\n }\n },\n {\n headers: {\n ...(await strategy.getAccountAuthHeaders()),\n 'Content-Type': 'application/json',\n Accept: 'application/json, text/plain, */*'\n }\n }\n );\n\n const result =\n sitesRes.data.sites?.map(({ id, displayName }: any) => ({\n id,\n name: displayName\n })) ?? [];\n\n return {\n content: [\n {\n type: 'text',\n text: [\n JSON.stringify(result),\n 'if there is more than one site returned, the user should pick one from a list, list the sites (only name) for the user and ask them to pick one, ' +\n 'If more than 20 are found you should list all 20 and suggest to search by the name of the site they are looking for'\n ].join('\\n\\n')\n }\n ]\n };\n }\n );\n }\n\n if (\n effectiveAllowedTools.includes('ManageWixSite') &&\n !disableTools.includes('ManageWixSite')\n ) {\n server.tool(\n 'ManageWixSite',\n getDescription('ManageWixSite', defaultToolDescriptions.ManageWixSite),\n {\n url: z\n .string()\n .url()\n .describe(\n 'The url of the api to call - ALWAYS get the information from the Wix REST docs DONT GUESS IT, the URL MUST BE ABSOLUTE URL'\n ),\n method: z\n .string()\n .describe(\n 'The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)'\n ),\n body: z\n .object({})\n .passthrough()\n .optional()\n .describe(\n 'The request body object. YOU MUST NEVER MAKE UP A BODY - this should be based on the conversation context, i.e from the user prompt or from the \"WixREADME\" tool or from the \"SearchWixRESTDocumentation\" tool or from the \"ReadFullDocsArticle\" tool or from the \"ReadFullDocsMethodSchema\" tool - i.e based on the API docs. YOU MUST NEVER ASSUME YOU KNOW WHAT THE SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT.'\n )\n },\n getHints('ManageWixSite', {\n readOnlyHint: false,\n destructiveHint: true,\n openWorldHint: false\n }),\n async ({ url, body, method }, { httpClient }) => {\n logger.log(\n `Calling Wix Account level API: ${url}, body: ${JSON.stringify(body)}`\n );\n\n const { isAllowed, error: urlError } = isApiUrlAllowed(url);\n if (!isAllowed) {\n return {\n content: [\n {\n isError: true,\n type: 'text',\n text: `Error validating URL: ${urlError}`\n }\n ]\n };\n }\n\n try {\n // if we would like to allow the user to manage multiple accounts, we should add accountId to the params\n const response = await httpClient.request({\n url,\n method: method as any,\n headers: {\n ...(await strategy.getAccountAuthHeaders()),\n ...(body ? { 'Content-Type': 'application/json' } : {})\n },\n data: method === 'GET' ? undefined : body\n });\n\n const responseData = await handleWixAPIResponse(response);\n const formatted = formatApiResponse(responseData);\n\n if (formatted.isError) {\n return {\n content: [\n {\n type: 'text',\n text: formatted.text\n }\n ],\n isError: true\n };\n }\n\n return {\n content: [\n {\n type: 'text',\n text: `Wix Account API call successful: ${formatted.text}`\n }\n ]\n };\n } catch (error) {\n logger.error(`Failed to call Wix Account API: ${error}`);\n\n const response = (error as HttpError).response;\n if (!response) {\n throw new Error(`Failed to call Wix Account API: ${error}`);\n }\n\n return handleWixAPIResponse(response);\n }\n }\n );\n }\n\n if (\n effectiveAllowedTools.includes('UploadImageToWixSite') &&\n !disableTools.includes('UploadImageToWixSite')\n ) {\n addUploadImageTool(server, strategy, {\n description: getDescription('UploadImageToWixSite', ''),\n hints: toolHints?.['UploadImageToWixSite']\n });\n }\n}\n", "import type { HttpResponse } from '@wix/http-client';\n\nconst safeParseJSON = (text: string) => {\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n};\n\nexport const buildErrorMessage = ({\n status,\n statusText,\n requestId,\n responseData\n}: {\n status?: number;\n statusText?: string;\n requestId: string | null;\n responseData?: any;\n}) => {\n const responseDataObject =\n typeof responseData === 'string'\n ? safeParseJSON(responseData)\n : responseData;\n\n const errorDetails: string =\n typeof responseDataObject === 'object'\n ? JSON.stringify(responseDataObject)\n : responseDataObject;\n\n return [\n `Failed to call Wix API:${status ? ` ${status}` : ''}${statusText ? ` ${statusText}` : ''}.`,\n requestId ? `request id: ${requestId}` : '',\n // Wix 404 for API does not exist is huge (generic 404 page) and loaded to the context\n status === 404 && errorDetails.includes('<html')\n ? 'Not found'\n : errorDetails\n ]\n .filter((str) => !!str)\n .join('\\n');\n};\n\nexport const handleWixAPIResponse = async <T = any>(response: HttpResponse) => {\n const requestId = response.headers?.['x-wix-request-id'];\n\n if (!response.status.toString().startsWith('2')) {\n const errorMessage = buildErrorMessage({\n status: response.status,\n statusText: response.statusText,\n requestId: requestId,\n responseData: response.data\n });\n throw new Error(errorMessage);\n }\n\n const responseData =\n typeof response.data === 'string'\n ? safeParseJSON(response.data)\n : response.data;\n return responseData as T;\n};\n", "export const ALLOWED_HOSTNAMES = [\n 'wix.com',\n 'dev.wix.com',\n 'manage.wix.com',\n 'editor.wix.com',\n 'wixapis.com'\n];\n\nexport function isApiUrlAllowed(url: string) {\n let parsedUrl: URL;\n\n try {\n parsedUrl = new URL(url);\n } catch {\n return {\n isAllowed: false,\n error: `Invalid URL format: ${url}`\n };\n }\n\n const hostname = parsedUrl.hostname.replace('www.', '');\n const isAllowedHostname = ALLOWED_HOSTNAMES.some(\n (domain) => hostname === domain\n );\n\n if (!isAllowedHostname) {\n return {\n isAllowed: false,\n error: `Unsupported URL domain: ${hostname}. URL must be from one of the allowed domains: ${ALLOWED_HOSTNAMES.join(', ')}`\n };\n }\n\n return {\n isAllowed: true\n };\n}\n", "/**\n * Upload image tool for Wix Media Manager.\n *\n * Uses OpenAI's file params pattern for accepting user-uploaded files.\n * @see https://developers.openai.com/apps-sdk/build/mcp-server#files-out-file-params\n * @see https://developers.openai.com/apps-sdk/reference\n */\nimport { z } from 'zod';\nimport { HttpClient } from '@wix/http-client';\nimport { logger } from '../infra/logger.js';\nimport { WixMcpServer } from '../wix-mcp-server.js';\nimport { McpAuthenticationStrategy } from '../auth/index.js';\nimport type { ToolHintsConfig } from './index.js';\nimport { defaultToolDescriptions } from '../config/default-config.js';\n\nconst TOOL_NAME = 'UploadImageToWixSite';\nconst POLL_TIMEOUT_MS = 10000;\nconst POLL_INTERVAL_MS = 1000;\n\ninterface WixMediaFile {\n id: string;\n displayName?: string;\n url: string;\n operationStatus: 'PENDING' | 'READY' | 'FAILED';\n mediaType?: string;\n sourceUrl?: string;\n media?: {\n image?: {\n image?: {\n width?: number;\n height?: number;\n };\n };\n };\n}\n\n/**\n * Polls the Media Manager API until the file status becomes READY or timeout is reached.\n */\nasync function waitForFileReady(\n httpClient: HttpClient,\n fileId: string,\n authHeaders: Record<string, string>,\n timeoutMs: number = POLL_TIMEOUT_MS\n): Promise<WixMediaFile | null> {\n const startTime = Date.now();\n\n while (Date.now() - startTime < timeoutMs) {\n await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));\n\n try {\n const response = await httpClient.get(\n `https://www.wixapis.com/site-media/v1/files/get-file-by-id?fileId=${encodeURIComponent(fileId)}`,\n { headers: authHeaders }\n );\n\n const file = response.data?.file as WixMediaFile | undefined;\n if (file && file.operationStatus !== 'PENDING') {\n return file;\n }\n } catch {\n // If status check fails, return null to use original file data\n return null;\n }\n }\n\n return null; // Timeout reached\n}\n\nexport function addUploadImageTool(\n server: WixMcpServer,\n strategy: McpAuthenticationStrategy,\n options?: {\n description?: string;\n hints?: ToolHintsConfig;\n }\n) {\n const description =\n options?.description ?? defaultToolDescriptions.UploadImageToWixSite;\n const hints = {\n readOnlyHint: options?.hints?.readOnlyHint ?? false,\n destructiveHint: options?.hints?.destructiveHint ?? false,\n openWorldHint: options?.hints?.openWorldHint ?? false\n };\n\n server.registerTool(\n TOOL_NAME,\n {\n title: 'Upload Image to Wix Site',\n description,\n inputSchema: {\n siteId: z.string().describe('The ID of the Wix site to upload to'),\n image: z\n .object({\n download_url: z.string().url(),\n file_id: z.string()\n })\n .describe('The image file provided by the user'),\n displayName: z\n .string()\n .optional()\n .describe(\n 'Optional display name for the file in Media Manager. If not provided, uses the original filename.'\n )\n },\n _meta: {\n 'openai/fileParams': ['image'],\n 'openai/toolInvocation/invoking':\n 'Uploading image to Wix Media Manager...',\n 'openai/toolInvocation/invoked': 'Image uploaded successfully'\n },\n annotations: hints\n },\n async (\n {\n siteId,\n image,\n displayName\n }: {\n siteId: string;\n image: { download_url: string; file_id: string };\n displayName?: string;\n },\n { httpClient, setToolBiParams }\n ) => {\n logger.log(\n `Uploading image to Wix site: ${siteId}, file_id: ${image.file_id}`\n );\n\n setToolBiParams({ siteId });\n\n try {\n // Import the file from the download URL to Wix Media Manager\n const importResponse = await httpClient.post(\n 'https://www.wixapis.com/site-media/v1/files/import',\n {\n url: image.download_url,\n ...(displayName ? { displayName } : {})\n },\n {\n headers: {\n ...(await strategy.getSiteAuthHeaders(siteId)),\n 'Content-Type': 'application/json'\n }\n }\n );\n\n let file = importResponse.data?.file as WixMediaFile | undefined;\n\n if (!file) {\n return {\n isError: true,\n content: [\n {\n type: 'text' as const,\n text: 'Failed to upload image: No file returned from Wix API'\n }\n ]\n };\n }\n\n // Poll for READY status if still PENDING\n if (file.operationStatus === 'PENDING') {\n const authHeaders = await strategy.getSiteAuthHeaders(siteId);\n const updatedFile = await waitForFileReady(\n httpClient,\n file.id,\n authHeaders\n );\n if (updatedFile) {\n file = updatedFile;\n }\n }\n\n const result = {\n id: file.id,\n displayName: file.displayName,\n url: file.url,\n operationStatus: file.operationStatus,\n mediaType: file.mediaType,\n sourceUrl: file.sourceUrl,\n ...(file.media?.image?.image\n ? {\n width: file.media.image.image.width,\n height: file.media.image.image.height\n }\n : {})\n };\n\n logger.log(`Image uploaded successfully: ${JSON.stringify(result)}`);\n\n // Build response text with helpful information\n let responseText = `Image uploaded successfully!\\n\\n`;\n responseText += `**Media ID:** ${result.id}\\n`;\n responseText += `**URL:** ${result.url}\\n`;\n responseText += `**Status:** ${result.operationStatus}\\n`;\n\n if (result.width && result.height) {\n responseText += `**Dimensions:** ${result.width}x${result.height}\\n`;\n }\n\n if (result.operationStatus === 'PENDING') {\n responseText += `\\n**Note:** The file is still being processed (timeout reached). `;\n responseText += `You can use the URL immediately, but some operations may require waiting for status to become READY.`;\n }\n\n return {\n content: [\n {\n type: 'text' as const,\n text: responseText\n }\n ],\n structuredContent: result\n };\n } catch (error) {\n const errorMessage = `Failed to upload image to Wix: ${error}`;\n logger.error(errorMessage);\n\n return {\n isError: true,\n content: [\n {\n type: 'text' as const,\n text: errorMessage\n }\n ]\n };\n }\n }\n );\n}\n", "import { WixMcpServer } from '../wix-mcp-server.js';\n\nexport async function addVeloReadmeTools(server: WixMcpServer) {\n server.tool(\n 'VeloREADME',\n 'This tool is set for providing Velo context in order to be used by the agent for executing Velo-related tasks.',\n {},\n { readOnlyHint: true, destructiveHint: false, openWorldHint: false },\n async () => {\n return {\n content: [\n {\n type: 'text' as const,\n text: `\n# VeloREADME\nYou are in the context of a Velo project. This tool provides foundational context for all Velo-related tasks.\n* Search the SDK or Velo documentation for the relevant APIs and use them in your code.\n* Use only the listed available APIs: $w, $widget, wix-configs-backend, wix-http-functions, wix-realtime-backend, wix-application, wix-editor, wix-widget, wix-animations-frontend, OR any Wix Sdk (e.g. '@wix/site-ecom', '@wix/site-bookings').\n* Always prioritize APIs mentioned in Wix SDK Documentation (through SearchWixSDKDocumentation) over Velo Documentation (through SearchWixVeloDocumentation). ** YOU MUST NOT USE Velo Documentation APIs BEFORE SEARCHING THE WIX SDK DOCUMENTATION. **\n* Use $w to select elements (e.g., $w('#elementId'))\n* For a list of available elements, look at files in .wix/types/{relevant-page-id}/{relevant-page-id}.d.ts\n* Use only documented methods and properties for each element type. Do not assume the existence of properties or methods not explicitly mentioned in the documentation.\n* When your response involves the use of a NPM package (including Wix SDK, e.g. \"@wix/site-ecom\" or any package starting with \"@wix/\"), ensure that you install it through the package manager (e.g., npm or yarn).\n\nThe project uses the following structure:\nsrc/backend/ [Server-side code and configuration]\nsrc/pages/ [Page-specific frontend \"Velo\" code]\nsrc/public/ [Public assets]\n.wix/types/{relevant-page-id}/{relevant-page-id}.d.ts [Type definitions for the page - includes all elements and their properties]\nwix.config.json [Site configuration (siteId)]\n `\n }\n ]\n };\n }\n );\n}\n", "import { existsSync, readFileSync } from 'fs';\nimport { homedir } from 'os';\nimport path from 'path';\n\nexport function getCliAuthToken(siteIdOrAccountsFileName: string) {\n // check if the api-key.json file exists:\n const apiKeyFileName = path.join(homedir(), `.wix/auth/api-key.json`);\n const apiKeyFileExists = existsSync(apiKeyFileName);\n\n if (apiKeyFileExists) {\n const apiKeyData = JSON.parse(readFileSync(apiKeyFileName, 'utf8'));\n return (apiKeyData.token || apiKeyData.accessToken) as string;\n }\n\n const siteTokenFileName = path.join(\n homedir(),\n `.wix/auth/${siteIdOrAccountsFileName}.json`\n );\n\n // check if the site token file exists:\n const siteTokenFileExists = existsSync(siteTokenFileName);\n if (siteTokenFileExists) {\n const authData = JSON.parse(readFileSync(siteTokenFileName, 'utf8'));\n return (authData.accessToken || authData.token) as string;\n }\n\n throw new Error(\n 'No site token or api key found. You need to authenticate with Wix CLI first.'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAYA,YAASC,QAAAD,YAAA,0BAATA,YAAS;AAATA,MAAAA,WAAS,aAAA,IAAA;AAATA,MAAAA,WAAS,oBAAA,IAAA;AAATA,MAAAA,WAAS,UAAA,IAAA;AAATA,MAAAA,WAAS,WAAA,IAAA;AAAA,aAATA;IAAS,GAAA,CAAA,CAAA;AAAA,QAOTE,cAAWD,QAAAC,cAAA,0BAAXA,cAAW;AAAXA,MAAAA,aAAW,UAAA,IAAA;AAAXA,MAAAA,aAAW,IAAA,IAAA;AAAA,aAAXA;IAAW,GAAA,CAAA,CAAA;AAAA,QAKXC,WAAQF,QAAAE,WAAA,0BAARA,WAAQ;AAARA,MAAAA,UAAQ,MAAA,IAAA;AAARA,MAAAA,UAAQ,MAAA,IAAA;AAARA,MAAAA,UAAQ,OAAA,IAAA;AAARA,MAAAA,UAAQ,OAAA,IAAA;AAAA,aAARA;IAAQ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B,CAAC,gBAAgB,CAAC;AACnE;AAEA,IAAM,WAAW,WAAW,KAAK,MAAM;AACvC,IAAM,WAAW,YAAY;AAAA,EAAO,CAAC,SACnC,gBAAgB,SAAS,IAAe;AAC1C;AACA,IAAI,SAAS,SAAS,GAAG;AACvB,SAAO,IAAI,qBAAqB,UAAU,aAAa,QAAQ;AAC/D,cAAY,QAAQ,UAAU,QAAQ;AACtC,MAAI,SAAS,SAAS,SAAS,GAAG;AAChC,UAAM,mBAAmB,yBAAyB;AAElD,QAAI,kBAAkB;AACpB,aAAO,IAAI,6CAA6C;AACxD,YAAM,kBAA6C;AAAA,QACjD,oBAAoB,OAAO;AAAA,UACzB,eAAe;AAAA,QACjB;AAAA,QACA,uBAAuB,OAAO;AAAA,UAC5B,eAAe;AAAA,QACjB;AAAA,MACF;AACA,qBAAe,QAAQ,iBAAiB,CAAC,gBAAgB,CAAC;AAAA,IAC5D,OAAO;AACL,aAAO;AAAA,QACL;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAI;AACF,QAAM,UAAU,WAAW,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC;AACtD,MAAI,QAAQ,SAAS,GAAG;AACtB,WAAO,IAAI,sCAAsC,OAAO;AACxD,UAAM,iBAAiB,QAAQ,OAAO;AAAA,EACxC;AACF,SAAS,OAAO;AACd,SAAO,MAAM,gCAAgC,KAAK;AACpD;AAEA,OAAO,IAAI,iBAAiB;AAC5B,IAAM,YAAY,IAAI,qBAAqB;AAC3C,OAAO,IAAI,yBAAyB;AACpC,MAAM,OAAO,QAAQ,SAAS;AAC9B,OAAO,IAAI,qBAAqB;AAEhC,IAAI,eAAe,OAAO;AAExB,wBAAsB,MAAM;AAC9B;",
6
+ "names": ["AlertType", "exports", "AlertStatus", "LogLevel", "TransactionAction", "InternalTransactions", "ComponentLoad", "ComponentPhase", "Platform", "ErrorSeverity", "_enumTypes", "require", "Object", "keys", "forEach", "key", "exports", "_dataTypes", "_interfaceTypes", "o", "_defineProperty", "DELIMITER", "DurationTrackerImpl", "constructor", "_defineProperty2", "default", "createKey", "args", "filter", "x", "join", "markTransactionStart", "fullArtifactId", "componentId", "transactionName", "transactionId", "key", "transactionStartTimes", "Date", "now", "markTransactionFinish", "finishTime", "startTime", "duration", "Math", "round", "markPhaseStart", "phaseName", "phaseStartTimes", "markPhaseFinish", "createDurationTracker", "exports", "_durationTracker", "require", "exports", "createDurationTracker", "_uuid", "require", "_durationTracker", "GlobalConfigImpl", "constructor", "_defineProperty2", "default", "createDurationTracker", "Map", "Date", "now", "getSessionId", "sessionId", "v4", "setSessionId", "getSessionTime", "sessionStart", "getReporter", "reporter", "setReporter", "initBatchQueue", "batchQueue", "getBatchQueue", "getDurationTracker", "durationTracker", "getStateValue", "key", "state", "get", "setStateValue", "value", "set", "clearState", "clear", "createGlobalConfig", "exports", "_globalConfig", "require", "exports", "createGlobalConfig", "bindPrototypeMethodsToSelf", "instance", "classFn", "prototype", "Object", "getPrototypeOf", "props", "getOwnPropertyNames", "prop", "bind", "exports", "_classUtils", "require", "Object", "keys", "forEach", "key", "exports", "last", "arr", "Array", "isArray", "length", "undefined", "exports", "union", "args", "Set", "flat", "values", "defaults", "reduce", "res", "obj", "Object", "entries", "_res", "key", "value", "deepDefaults", "dest", "rest", "keys", "map", "all", "merged", "hasValues", "filter", "_res2", "_utils", "require", "PanoramaErrorMonitorImpl", "constructor", "baseClient", "options", "bindPrototypeMethodsToSelf", "reportError", "error", "data", "addBreadcrumb", "breadcrumb", "exports", "_utils", "require", "_types", "PanoramaLoggerImpl", "constructor", "baseClient", "bindPrototypeMethodsToSelf", "info", "message", "data", "log", "LogLevel", "Info", "warn", "Warn", "error", "Error", "debug", "Debug", "exports", "_types", "require", "isCustomTransactionName", "name", "Object", "values", "InternalTransactions", "includes", "exports", "_types", "require", "isSsrEnabledInPlatform", "platform", "Platform", "Viewer", "exports", "generateGuidRegex", "exports", "_transactionUtils", "require", "Object", "keys", "forEach", "key", "exports", "_platformUtils", "_guid", "_utils", "require", "_utils2", "_generalUtils", "PanoramaTransactionImpl", "constructor", "baseClient", "name", "options", "isCustomTransactionName", "Error", "bindPrototypeMethodsToSelf", "start", "data", "reportTransactionStart", "defaults", "finish", "reportTransactionFinish", "exports", "_utils", "require", "_panoramaErrorMonitor", "_panoramaLogger", "_panoramaTransaction", "PanoramaClientForComponentImpl", "constructor", "baseClient", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "transaction", "name", "options", "PanoramaTransactionImpl", "errorMonitor", "PanoramaErrorMonitorImpl", "logger", "PanoramaLoggerImpl", "exports", "Hook", "exports", "HooksManager", "constructor", "_defineProperty2", "default", "tap", "hook", "subscriber", "subscribers", "push", "invoke", "args", "_utils", "require", "PanoramaPhaseImpl", "constructor", "name", "baseClient", "bindPrototypeMethodsToSelf", "start", "data", "reportPhaseStart", "finish", "reportPhaseFinish", "exports", "_utils", "require", "_types", "_panoramaClientComponent", "_hooksManager", "_panoramaErrorMonitor", "_panoramaLogger", "_panoramaTransaction", "_panoramaPhase", "PanoramaClientImpl", "constructor", "hooksManager", "baseClient", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "onUnhandledError", "subscriber", "tap", "Hook", "beforeUnhandledError", "reportLoadStart", "data", "options", "ComponentLoad", "InternalTransactions", "reportTransactionStart", "reportLoadFinish", "reportTransactionFinish", "phase", "name", "PanoramaPhaseImpl", "transaction", "PanoramaTransactionImpl", "errorMonitor", "PanoramaErrorMonitorImpl", "logger", "PanoramaLoggerImpl", "createClientForComponent", "client", "PanoramaClientForComponentImpl", "invoke", "afterCreateClientForComponent", "exports", "_generalUtils", "require", "extractWixHttpErrorDetailsRec", "error", "_httpClientError$resp", "Error", "res", "cause", "httpClientError", "defaults", "isWixHttpError", "requestId", "response", "headers", "extractWixHttpErrorDetails", "exports", "normalizeError", "event", "err", "message", "stack", "createUndedupableError", "Object", "assign", "create", "getPrototypeOf", "name", "Date", "now", "Math", "random", "MAX_STACK_TRACE_SIZE_BYTES", "exports", "MAX_SESSION_TIME_MS", "_constants", "require", "sanitizePayload", "payload", "errorStack", "sessionTime", "length", "MAX_STACK_TRACE_SIZE_BYTES", "truncationMessage", "truncatedErrorStack", "substring", "MAX_SESSION_TIME_MS", "exports", "_types", "require", "_errorUtils", "_payloadSanitizer", "getSessionParams", "globalConfig", "sessionId", "getSessionId", "sessionTime", "Math", "round", "getSessionTime", "buildTransactionPayload", "baseParams", "transactionParams", "data", "transactionName", "transactionAction", "logLevel", "LogLevel", "Info", "message", "requestId", "sanitizePayload", "exports", "buildPhasePayload", "phaseParams", "InternalTransactions", "ComponentPhase", "phaseName", "buildErrorPayload", "error", "constructor", "stack", "Error", "extractWixHttpErrorDetails", "errorName", "name", "errorStack", "buildLoggerPayload", "loggerParams", "_types", "require", "_durationTracker", "_payloadBuilder", "_hooksManager", "BasePanoramaClient", "constructor", "baseParams", "globalConfig", "reporter", "hooksManager", "data", "isMuted", "_defineProperty2", "default", "args", "addDataScope", "getData", "durationTracker", "getDurationTracker", "createDurationTracker", "report", "eventPayload", "reporterOverride", "getReporter", "beforeReportHookResult", "invoke", "Hook", "beforeReport", "reportTransactionStart", "name", "options", "id", "dataWithDefault", "beforeReportTransactionStart", "fullArtifactId", "componentId", "markTransactionStart", "payload", "buildTransactionPayload", "transactionName", "transactionAction", "TransactionAction", "Start", "afterReportTransactionStart", "reportTransactionFinish", "beforeReportTransactionFinish", "duration", "markTransactionFinish", "Finish", "transactionDuration", "afterReportTransactionFinish", "reportPhaseStart", "beforeReportPhaseStart", "markPhaseStart", "buildPhasePayload", "phaseName", "afterReportPhaseStart", "reportPhaseFinish", "beforeReportPhaseFinish", "markPhaseFinish", "afterReportPhaseFinish", "reportError", "error", "Error", "beforeReportError", "buildErrorPayload", "afterReportError", "addBreadcrumb", "breadcrumb", "beforeAddBreadcrumb", "afterAddBreadcrumb", "log", "logLevel", "message", "loggerParams", "beforeReportLog", "buildLoggerPayload", "afterReportLog", "exports", "_generalUtils", "require", "Scope", "constructor", "data", "_defineProperty2", "default", "getEntriesToDeepDefaults", "undefined", "Object", "fromEntries", "entries", "filter", "key", "KEYS_TO_DEEP_DEFAULTS", "includes", "addDataScope", "outerDataArray", "Array", "isArray", "deepDefaultData", "deepDefaults", "map", "_data", "defaults", "getData", "exports", "_utils", "require", "_globalConfig", "_generalUtils", "_panoramaClient", "_hooksManager", "_panoramaClientBase", "_scope", "PanoramaClientFactoryImpl", "constructor", "options", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "withGlobalConfig", "globalConfig", "withReporter", "reporter", "setMuted", "isMuted", "use", "plugin", "plugins", "push", "client", "pluginParams", "createGlobalConfig", "hooksManager", "HooksManager", "baseParams", "defaults", "data", "Scope", "addDataScope", "pluginClientParams", "baseClient", "BasePanoramaClient", "PanoramaClientImpl", "forEach", "panoramaClient", "exports", "ExceptionType", "exports", "StacktraceScriptType", "_types", "require", "exports", "Platform", "ErrorSeverity", "_globalConfig", "createGlobalConfig", "_panoramaClientFactory", "panoramaClient", "_types2", "ExceptionType", "PANORAMA_APP_DEF_ID", "exports", "PANORAMA_GRAFANA_BASE_URL", "DEV_PORTAL_BASE_URL", "SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL", "DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL", "CLICKHOUSE_REPORT_URL", "CLICKHOUSE_BATCH_REPORT_URL", "nodeReporter", "url", "silent", "eventPayload", "body", "JSON", "stringify", "logMessage", "fetch", "method", "then", "res", "ok", "console", "error", "statusText", "catch", "e", "exports", "_panoramaClient", "require", "_constants", "_reporter", "panoramaClientFactory", "options", "baseParams", "reporterOptions", "data", "factory", "panoramaClient", "withReporter", "nodeReporter", "CLICKHOUSE_REPORT_URL", "use", "undefined", "exports", "_panoramaClientNode", "require", "exports", "panoramaClientFactory", "_panoramaClient", "createGlobalConfig", "PanoramaExceptionType", "ExceptionType", "PanoramaErrorSeverity", "ErrorSeverity", "PanoramaPlatform", "Platform", "_reporter", "nodeReporter", "v", "ownKeys", "path", "d", "b", "__assign", "o", "AssertionError", "message", "name", "constructor", "Error", "assertDefined", "target", "undefined", "assertObject", "Array", "isArray", "assertOk", "assertFunc", "assertBoolean", "assertNumber", "assertArray", "Object", "prototype", "toString", "call", "module", "exports", "defined", "object", "ok", "func", "boolean", "number", "array", "module", "exports", "mapValues", "collection", "iteratee", "Object", "keys", "reduce", "acc", "key", "filterValues", "keep", "module", "exports", "timedPromise", "promise", "message", "timeout", "timeoutPromise", "Promise", "resolve", "reject", "setTimeout", "race", "allAsObject", "promiseObject", "keys", "Object", "all", "map", "key", "then", "resolved", "reduce", "acc", "value", "i", "module", "exports", "error", "console", "debounce", "func", "wait", "immediate", "timeout", "context", "args", "arguments", "later", "apply", "callNow", "clearTimeout", "setTimeout", "module", "exports", "throttle", "func", "wait", "timeout", "args", "setTimeout", "module", "exports", "debounce", "require", "throttle", "createEvent", "event", "context", "startTime", "dt", "Date", "now", "f", "createBatch", "events", "e", "g", "optimizeBatch", "fieldCounts", "batchLen", "batch", "length", "map", "fields", "Object", "keys", "value", "field", "key", "globalFields", "reduce", "res", "BatchQueue", "_initilized", "_startTime", "_resolve", "_promise", "Promise", "resolve", "flushHandler", "delayMs", "maxBatchSize", "useThrottle", "_maxBatchSize", "_optimizeBatch", "_queue", "_flushHandler", "_flushDebounced", "flush", "_reset", "splice", "then", "push", "module", "exports", "DefaultConsentPolicy", "functional", "analytics", "__default", "getPolicy", "consentPolicyGetter", "shouldMuteNonEssentials", "policy", "shouldMuteByCategory", "category", "module", "exports", "assert", "require", "mapValues", "filterValues", "promise", "log", "BatchQueue", "shouldMuteByCategory", "shouldMuteNonEssentials", "getPolicy", "BiLogger", "options", "context", "_publishers", "publishers", "_validators", "validators", "_defaults", "defaults", "_ownDefaults", "_events", "events", "_context", "_defaultValueTimeout", "defaultValueTimeout", "_defaultContinueOnFail", "defaultContinueOnFail", "_onPublisherFailHandler", "onPublisherFailHandler", "_defaultPublisherFailHandler", "_isMuted", "isMuted", "_eventTransformer", "eventTransformer", "event", "_payloadTransformer", "payloadTransformer", "payload", "_consentPolicyGetter", "consentPolicyGetter", "_nonEssentialDefaults", "nonEssentialDefaults", "_maxBatchSize", "maxBatchSize", "_globalBatchQueue", "globalBatchQueue", "data", "defined", "object", "src", "evid", "params", "eventOrKey", "eventOrContextOrUndefined", "contextOrUndefined", "_extractEventAndContext", "policy", "fullContext", "category", "Promise", "resolve", "useBatch", "queue", "_initQueue", "transformAndQueue", "transformedEvent", "_event", "feed", "_getDefaults", "then", "fullEvent", "_getDynamicNonEssentialDefaults", "_getStaticNonEssentialDefaults", "_getPolicyFields", "_getDynamicDefaults", "Object", "assign", "validatorsResult", "length", "some", "validator", "match", "execute", "Error", "evtId", "_send", "_queue", "flush", "all", "map", "cloned", "publisher", "catch", "error", "publisherName", "name", "undefined", "AssertionError", "onFlush", "batch", "g", "_getStaticDefaults", "transformedPayload", "init", "delayMs", "useThrottle", "optimizeBatch", "err", "reject", "_withOwnDefaults", "dynamicDefaults", "v", "staticDefaults", "promises", "value", "key", "_handleDefaultsError", "timedPromise", "message", "timeout", "allAsObject", "_isca", "_encodePolicyValue", "_iscf", "_ispd", "__default", "_ise", "module", "exports", "assert", "require", "BiLoggerManager", "reset", "_handlers", "handler", "defined", "func", "push", "index", "indexOf", "splice", "logger", "forEach", "module", "exports", "manager", "assert", "require", "BiLogger", "biLoggerManager", "BatchQueue", "BiLoggerFactory", "_publishers", "_validators", "_defaults", "_nonEssentialDefaults", "_events", "_isMuted", "_eventTransformer", "_payloadTransformer", "_consentPolicyGetter", "_maxBatchSize", "_batchQueue", "publisher", "defined", "ok", "push", "validator", "execute", "match", "defaults", "object", "Object", "assign", "events", "defaultValueTimeout", "_defaultValueTimeout", "defaultContinueOnFail", "_defaultContinueOnFail", "onPublisherFailHandler", "_onPublisherFailHandler", "isMuted", "boolean", "maxBatchSize", "number", "batchQueue", "_globalBatchQueue", "transformer", "func", "getter", "context", "logger", "publishers", "validators", "eventTransformer", "payloadTransformer", "consentPolicyGetter", "nonEssentialDefaults", "globalBatchQueue", "manager", "notifyLoggerCreated", "module", "exports", "BiLoggerClientFactory", "require", "BiLogger", "biLoggerManager", "BatchQueue", "module", "exports", "BiLoggerFactory", "BiLoggerManager", "factory", "manager", "createBatchQueue", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "HttpError", "require_utils", "self", "init", "useColors", "URL", "self", "exports", "resolve", "reject", "transport", "require_cookies", "path", "require_axios", "HttpClient", "require_types", "StandaloneNodeLogger", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "isNode", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "require_whitelist", "HttpError", "require_bind", "require_utils", "require_enhanceError", "require_createError", "require_settle", "require_isAbsoluteURL", "require_combineURLs", "require_buildFullPath", "require_buildURL", "require_package", "require_http", "resolve", "reject", "transport", "__importStar", "req", "__importStar", "__exportStar", "__importStar", "__importDefault", "__importDefault", "__importStar", "__importDefault", "require_InterceptorManager", "require_normalizeHeaderName", "require_cookies", "path", "require_parseHeaders", "require_isURLSameOrigin", "require_xhr", "require_defaults", "require_transformData", "require_isCancel", "require_dispatchRequest", "require_mergeConfig", "require_validator", "require_Axios", "require_Cancel", "require_CancelToken", "require_spread", "require_isAxiosError", "require_axios", "require_axios", "HttpClient", "require_types", "server", "dedent", "server", "server", "server", "z", "server", "isWixOne", "z", "captureException", "captureException", "server", "uri", "import_http_client", "z", "z", "server", "z", "server", "z", "server", "homedir", "path"]
7
7
  }