{
  "version": 3,
  "sources": ["../../../../node_modules/is-retry-allowed/index.js", "../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js", "../../../../node_modules/prop-types/factoryWithThrowingShims.js", "../../../../node_modules/prop-types/index.js", "../../../lib.shared.faas/axios_limit.ts", "../../../lib.shared.faas/axios_retry_on_202.ts", "../../../../node_modules/axios/lib/helpers/bind.js", "../../../../node_modules/axios/lib/utils.js", "../../../../node_modules/axios/lib/core/AxiosError.js", "../../../../node_modules/axios/lib/helpers/null.js", "../../../../node_modules/axios/lib/helpers/toFormData.js", "../../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js", "../../../../node_modules/axios/lib/helpers/buildURL.js", "../../../../node_modules/axios/lib/core/InterceptorManager.js", "../../../../node_modules/axios/lib/defaults/transitional.js", "../../../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js", "../../../../node_modules/axios/lib/platform/browser/classes/FormData.js", "../../../../node_modules/axios/lib/platform/browser/classes/Blob.js", "../../../../node_modules/axios/lib/platform/browser/index.js", "../../../../node_modules/axios/lib/platform/common/utils.js", "../../../../node_modules/axios/lib/platform/index.js", "../../../../node_modules/axios/lib/helpers/toURLEncodedForm.js", "../../../../node_modules/axios/lib/helpers/formDataToJSON.js", "../../../../node_modules/axios/lib/defaults/index.js", "../../../../node_modules/axios/lib/helpers/parseHeaders.js", "../../../../node_modules/axios/lib/core/AxiosHeaders.js", "../../../../node_modules/axios/lib/core/transformData.js", "../../../../node_modules/axios/lib/cancel/isCancel.js", "../../../../node_modules/axios/lib/cancel/CanceledError.js", "../../../../node_modules/axios/lib/core/settle.js", "../../../../node_modules/axios/lib/helpers/parseProtocol.js", "../../../../node_modules/axios/lib/helpers/speedometer.js", "../../../../node_modules/axios/lib/helpers/throttle.js", "../../../../node_modules/axios/lib/helpers/progressEventReducer.js", "../../../../node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../../node_modules/axios/lib/helpers/cookies.js", "../../../../node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../../node_modules/axios/lib/helpers/combineURLs.js", "../../../../node_modules/axios/lib/core/buildFullPath.js", "../../../../node_modules/axios/lib/core/mergeConfig.js", "../../../../node_modules/axios/lib/helpers/resolveConfig.js", "../../../../node_modules/axios/lib/adapters/xhr.js", "../../../../node_modules/axios/lib/helpers/composeSignals.js", "../../../../node_modules/axios/lib/helpers/trackStream.js", "../../../../node_modules/axios/lib/adapters/fetch.js", "../../../../node_modules/axios/lib/adapters/adapters.js", "../../../../node_modules/axios/lib/core/dispatchRequest.js", "../../../../node_modules/axios/lib/env/data.js", "../../../../node_modules/axios/lib/helpers/validator.js", "../../../../node_modules/axios/lib/core/Axios.js", "../../../../node_modules/axios/lib/cancel/CancelToken.js", "../../../../node_modules/axios/lib/helpers/spread.js", "../../../../node_modules/axios/lib/helpers/isAxiosError.js", "../../../../node_modules/axios/lib/helpers/HttpStatusCode.js", "../../../../node_modules/axios/lib/axios.js", "../../../../node_modules/axios/index.js", "../../../../node_modules/axios-retry/dist/esm/index.js", "../../../lib.shared.faas/index.ts", "../../../lib.web.utils/safe_storage.ts", "../../../lib.shared.model/quota.ts", "../../../lib.web.resources/resource.ts", "../../../lib.web.resources/index.ts", "../../../lib.web.analytics/index.ts"],
  "sourcesContent": ["'use strict';\n\nconst denyList = new Set([\n\t'ENOTFOUND',\n\t'ENETUNREACH',\n\n\t// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328\n\t'UNABLE_TO_GET_ISSUER_CERT',\n\t'UNABLE_TO_GET_CRL',\n\t'UNABLE_TO_DECRYPT_CERT_SIGNATURE',\n\t'UNABLE_TO_DECRYPT_CRL_SIGNATURE',\n\t'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',\n\t'CERT_SIGNATURE_FAILURE',\n\t'CRL_SIGNATURE_FAILURE',\n\t'CERT_NOT_YET_VALID',\n\t'CERT_HAS_EXPIRED',\n\t'CRL_NOT_YET_VALID',\n\t'CRL_HAS_EXPIRED',\n\t'ERROR_IN_CERT_NOT_BEFORE_FIELD',\n\t'ERROR_IN_CERT_NOT_AFTER_FIELD',\n\t'ERROR_IN_CRL_LAST_UPDATE_FIELD',\n\t'ERROR_IN_CRL_NEXT_UPDATE_FIELD',\n\t'OUT_OF_MEM',\n\t'DEPTH_ZERO_SELF_SIGNED_CERT',\n\t'SELF_SIGNED_CERT_IN_CHAIN',\n\t'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',\n\t'UNABLE_TO_VERIFY_LEAF_SIGNATURE',\n\t'CERT_CHAIN_TOO_LONG',\n\t'CERT_REVOKED',\n\t'INVALID_CA',\n\t'PATH_LENGTH_EXCEEDED',\n\t'INVALID_PURPOSE',\n\t'CERT_UNTRUSTED',\n\t'CERT_REJECTED',\n\t'HOSTNAME_MISMATCH'\n]);\n\n// TODO: Use `error?.code` when targeting Node.js 14\nmodule.exports = error => !denyList.has(error && error.code);\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n  function shim(props, propName, componentName, location, propFullName, secret) {\n    if (secret === ReactPropTypesSecret) {\n      // It is still safe when called from React.\n      return;\n    }\n    var err = new Error(\n      'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n      'Use PropTypes.checkPropTypes() to call them. ' +\n      'Read more at http://fb.me/use-check-prop-types'\n    );\n    err.name = 'Invariant Violation';\n    throw err;\n  };\n  shim.isRequired = shim;\n  function getShim() {\n    return shim;\n  };\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n  var ReactPropTypes = {\n    array: shim,\n    bigint: shim,\n    bool: shim,\n    func: shim,\n    number: shim,\n    object: shim,\n    string: shim,\n    symbol: shim,\n\n    any: shim,\n    arrayOf: getShim,\n    element: shim,\n    elementType: shim,\n    instanceOf: getShim,\n    node: shim,\n    objectOf: getShim,\n    oneOf: getShim,\n    oneOfType: getShim,\n    shape: getShim,\n    exact: getShim,\n\n    checkPropTypes: emptyFunctionWithReset,\n    resetWarningCache: emptyFunction\n  };\n\n  ReactPropTypes.PropTypes = ReactPropTypes;\n\n  return ReactPropTypes;\n};\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n  var ReactIs = require('react-is');\n\n  // By explicitly using `prop-types` you are opting into new development behavior.\n  // http://fb.me/prop-types-in-prod\n  var throwOnDirectAccess = true;\n  module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n  // By explicitly using `prop-types` you are opting into new production behavior.\n  // http://fb.me/prop-types-in-prod\n  module.exports = require('./factoryWithThrowingShims')();\n}\n", "import type {AxiosInstance} from \"axios\"\nimport {assert} from \"@cling/lib.shared.utils\"\n\ninterface Options {\n    max_concurrent_requests: number\n}\n\nconst DEFAULT_OPTIONS: Options = {\n    max_concurrent_requests: 5,\n}\n\nexport default function axios_limit(\n    axios: AxiosInstance,\n    options: Partial<Options> = DEFAULT_OPTIONS,\n) {\n    const {max_concurrent_requests} = Object.assign({}, DEFAULT_OPTIONS, options)\n    assert(max_concurrent_requests >= 1, \"`options.max_concurrent_requests` must be at least 1\")\n    let pending_requests = 0\n    axios.interceptors.request.use((config) => {\n        return new Promise((resolve) => {\n            const interval = setInterval(() => {\n                if (pending_requests < max_concurrent_requests) {\n                    pending_requests++\n                    clearInterval(interval)\n                    resolve(config)\n                }\n            }, 500)\n        })\n    })\n    axios.interceptors.response.use(\n        (response) => {\n            pending_requests = Math.max(0, pending_requests - 1)\n            return Promise.resolve(response)\n        },\n        (error) => {\n            pending_requests = Math.max(0, pending_requests - 1)\n            return Promise.reject(error)\n        },\n    )\n}\n", "import type {AxiosInstance} from \"axios\"\nimport {log} from \"@cling/lib.shared.logging\"\nimport {extract_path} from \"@cling/lib.shared.utils\"\n\nexport default function axios_retry_on_202(\n    axios: AxiosInstance,\n    options: {\n        retry_delay_min: number\n        retry_delay_max: number\n        retries: number\n    },\n) {\n    axios.interceptors.response.use((res) => {\n        if (res.status === 202) {\n            const config = res.config\n            const retry_config = ((config as any)._retry_on_202 as {\n                last_retry_delay: number\n                attempt: number\n            }) || {attempt: 1}\n            ;(config as any)._retry_on_202 = retry_config\n            if (retry_config.attempt > options.retries) {\n                return Promise.reject(new Error(\"Timed out - received too many 202\"))\n            }\n            retry_config.attempt += 1\n            const delay = Math.min(\n                (retry_config.last_retry_delay || options.retry_delay_min) * 1.5,\n                options.retry_delay_max,\n            )\n            retry_config.last_retry_delay = delay\n            config.transformRequest = [(data) => data]\n            // Axios fails merging this configuration to the default configuration because it\n            // has an issue with circular structures:\n            // https://github.com/mzabriskie/axios/issues/370\n            fix_config(axios, config)\n            return new Promise((resolve) =>\n                setTimeout(() => {\n                    log.debug(`Retrying HTTP ${config.method} ${extract_path(config.url)}`, {\n                        attempt: retry_config.attempt,\n                        delay,\n                    })\n                    resolve(axios(config))\n                }, delay),\n            )\n        }\n        return res\n    })\n}\n\nfunction fix_config(axios: any, config: any) {\n    if (axios.defaults.agent === config.agent) {\n        delete config.agent\n    }\n    if (axios.defaults.httpAgent === config.httpAgent) {\n        delete config.httpAgent\n    }\n    if (axios.defaults.httpsAgent === config.httpsAgent) {\n        delete config.httpsAgent\n    }\n}\n", "'use strict';\n\nexport default function bind(fn, thisArg) {\n  return function wrap() {\n    return fn.apply(thisArg, arguments);\n  };\n}\n", "'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n    const str = toString.call(thing);\n    return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n  type = type.toLowerCase();\n  return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\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    && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n  let result;\n  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n    result = ArrayBuffer.isView(val);\n  } else {\n    result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n  }\n  return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n  if (kindOf(val) !== 'object') {\n    return false;\n  }\n\n  const prototype = getPrototypeOf(val);\n  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n  let kind;\n  return thing && (\n    (typeof FormData === 'function' && thing instanceof FormData) || (\n      isFunction(thing.append) && (\n        (kind = kindOf(thing)) === 'formdata' ||\n        // detect form-data instance\n        (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n      )\n    )\n  )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n  str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\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 *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n  // Don't bother if no value provided\n  if (obj === null || typeof obj === 'undefined') {\n    return;\n  }\n\n  let i;\n  let l;\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 (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    const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n    const len = keys.length;\n    let key;\n\n    for (i = 0; i < len; i++) {\n      key = keys[i];\n      fn.call(null, obj[key], key, obj);\n    }\n  }\n}\n\nfunction findKey(obj, key) {\n  key = key.toLowerCase();\n  const keys = Object.keys(obj);\n  let i = keys.length;\n  let _key;\n  while (i-- > 0) {\n    _key = keys[i];\n    if (key === _key.toLowerCase()) {\n      return _key;\n    }\n  }\n  return null;\n}\n\nconst _global = (() => {\n  /*eslint no-undef:0*/\n  if (typeof globalThis !== \"undefined\") return globalThis;\n  return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\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 *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n  const {caseless} = isContextDefined(this) && this || {};\n  const result = {};\n  const assignValue = (val, key) => {\n    const targetKey = caseless && findKey(result, key) || key;\n    if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n      result[targetKey] = merge(result[targetKey], val);\n    } else if (isPlainObject(val)) {\n      result[targetKey] = merge({}, val);\n    } else if (isArray(val)) {\n      result[targetKey] = val.slice();\n    } else {\n      result[targetKey] = val;\n    }\n  }\n\n  for (let i = 0, l = arguments.length; i < l; i++) {\n    arguments[i] && 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 *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n  forEach(b, (val, key) => {\n    if (thisArg && isFunction(val)) {\n      a[key] = bind(val, thisArg);\n    } else {\n      a[key] = val;\n    }\n  }, {allOwnKeys});\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 *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n  if (content.charCodeAt(0) === 0xFEFF) {\n    content = content.slice(1);\n  }\n  return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n  constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n  constructor.prototype.constructor = constructor;\n  Object.defineProperty(constructor, 'super', {\n    value: superConstructor.prototype\n  });\n  props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n  let props;\n  let i;\n  let prop;\n  const merged = {};\n\n  destObj = destObj || {};\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  if (sourceObj == null) return destObj;\n\n  do {\n    props = Object.getOwnPropertyNames(sourceObj);\n    i = props.length;\n    while (i-- > 0) {\n      prop = props[i];\n      if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n        destObj[prop] = sourceObj[prop];\n        merged[prop] = true;\n      }\n    }\n    sourceObj = filter !== false && getPrototypeOf(sourceObj);\n  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n  return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n  str = String(str);\n  if (position === undefined || position > str.length) {\n    position = str.length;\n  }\n  position -= searchString.length;\n  const lastIndex = str.indexOf(searchString, position);\n  return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n  if (!thing) return null;\n  if (isArray(thing)) return thing;\n  let i = thing.length;\n  if (!isNumber(i)) return null;\n  const arr = new Array(i);\n  while (i-- > 0) {\n    arr[i] = thing[i];\n  }\n  return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n  // eslint-disable-next-line func-names\n  return thing => {\n    return TypedArray && thing instanceof TypedArray;\n  };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n  const generator = obj && obj[Symbol.iterator];\n\n  const iterator = generator.call(obj);\n\n  let result;\n\n  while ((result = iterator.next()) && !result.done) {\n    const pair = result.value;\n    fn.call(obj, pair[0], pair[1]);\n  }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n  let matches;\n  const arr = [];\n\n  while ((matches = regExp.exec(str)) !== null) {\n    arr.push(matches);\n  }\n\n  return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n  return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n    function replacer(m, p1, p2) {\n      return p1.toUpperCase() + p2;\n    }\n  );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n  const descriptors = Object.getOwnPropertyDescriptors(obj);\n  const reducedDescriptors = {};\n\n  forEach(descriptors, (descriptor, name) => {\n    let ret;\n    if ((ret = reducer(descriptor, name, obj)) !== false) {\n      reducedDescriptors[name] = ret || descriptor;\n    }\n  });\n\n  Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n  reduceDescriptors(obj, (descriptor, name) => {\n    // skip restricted props in strict mode\n    if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n      return false;\n    }\n\n    const value = obj[name];\n\n    if (!isFunction(value)) return;\n\n    descriptor.enumerable = false;\n\n    if ('writable' in descriptor) {\n      descriptor.writable = false;\n      return;\n    }\n\n    if (!descriptor.set) {\n      descriptor.set = () => {\n        throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n      };\n    }\n  });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n  const obj = {};\n\n  const define = (arr) => {\n    arr.forEach(value => {\n      obj[value] = true;\n    });\n  }\n\n  isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n  return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n  return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n  DIGIT,\n  ALPHA,\n  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n  let str = '';\n  const {length} = alphabet;\n  while (size--) {\n    str += alphabet[Math.random() * length|0]\n  }\n\n  return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n  const stack = new Array(10);\n\n  const visit = (source, i) => {\n\n    if (isObject(source)) {\n      if (stack.indexOf(source) >= 0) {\n        return;\n      }\n\n      if(!('toJSON' in source)) {\n        stack[i] = source;\n        const target = isArray(source) ? [] : {};\n\n        forEach(source, (value, key) => {\n          const reducedValue = visit(value, i + 1);\n          !isUndefined(reducedValue) && (target[key] = reducedValue);\n        });\n\n        stack[i] = undefined;\n\n        return target;\n      }\n    }\n\n    return source;\n  }\n\n  return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n  thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n  if (setImmediateSupported) {\n    return setImmediate;\n  }\n\n  return postMessageSupported ? ((token, callbacks) => {\n    _global.addEventListener(\"message\", ({source, data}) => {\n      if (source === _global && data === token) {\n        callbacks.length && callbacks.shift()();\n      }\n    }, false);\n\n    return (cb) => {\n      callbacks.push(cb);\n      _global.postMessage(token, \"*\");\n    }\n  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n  typeof setImmediate === 'function',\n  isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n  queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n  isArray,\n  isArrayBuffer,\n  isBuffer,\n  isFormData,\n  isArrayBufferView,\n  isString,\n  isNumber,\n  isBoolean,\n  isObject,\n  isPlainObject,\n  isReadableStream,\n  isRequest,\n  isResponse,\n  isHeaders,\n  isUndefined,\n  isDate,\n  isFile,\n  isBlob,\n  isRegExp,\n  isFunction,\n  isStream,\n  isURLSearchParams,\n  isTypedArray,\n  isFileList,\n  forEach,\n  merge,\n  extend,\n  trim,\n  stripBOM,\n  inherits,\n  toFlatObject,\n  kindOf,\n  kindOfTest,\n  endsWith,\n  toArray,\n  forEachEntry,\n  matchAll,\n  isHTMLForm,\n  hasOwnProperty,\n  hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n  reduceDescriptors,\n  freezeMethods,\n  toObjectSet,\n  toCamelCase,\n  noop,\n  toFiniteNumber,\n  findKey,\n  global: _global,\n  isContextDefined,\n  ALPHABET,\n  generateString,\n  isSpecCompliantForm,\n  toJSONObject,\n  isAsyncFn,\n  isThenable,\n  setImmediate: _setImmediate,\n  asap\n};\n", "'use strict';\n\nimport utils from '../utils.js';\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 {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n  Error.call(this);\n\n  if (Error.captureStackTrace) {\n    Error.captureStackTrace(this, this.constructor);\n  } else {\n    this.stack = (new Error()).stack;\n  }\n\n  this.message = message;\n  this.name = 'AxiosError';\n  code && (this.code = code);\n  config && (this.config = config);\n  request && (this.request = request);\n  if (response) {\n    this.response = response;\n    this.status = response.status ? response.status : null;\n  }\n}\n\nutils.inherits(AxiosError, Error, {\n  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: utils.toJSONObject(this.config),\n      code: this.code,\n      status: this.status\n    };\n  }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n  'ERR_BAD_OPTION_VALUE',\n  'ERR_BAD_OPTION',\n  'ECONNABORTED',\n  'ETIMEDOUT',\n  'ERR_NETWORK',\n  'ERR_FR_TOO_MANY_REDIRECTS',\n  'ERR_DEPRECATED',\n  'ERR_BAD_RESPONSE',\n  'ERR_BAD_REQUEST',\n  'ERR_CANCELED',\n  'ERR_NOT_SUPPORT',\n  'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n  descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n  const axiosError = Object.create(prototype);\n\n  utils.toFlatObject(error, axiosError, function filter(obj) {\n    return obj !== Error.prototype;\n  }, prop => {\n    return prop !== 'isAxiosError';\n  });\n\n  AxiosError.call(axiosError, error.message, code, config, request, response);\n\n  axiosError.cause = error;\n\n  axiosError.name = error.name;\n\n  customProps && Object.assign(axiosError, customProps);\n\n  return axiosError;\n};\n\nexport default AxiosError;\n", "// eslint-disable-next-line strict\nexport default null;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n  return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n  return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n  if (!path) return key;\n  return path.concat(key).map(function each(token, i) {\n    // eslint-disable-next-line no-param-reassign\n    token = removeBrackets(token);\n    return !dots && i ? '[' + token + ']' : token;\n  }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n  return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n  return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n  if (!utils.isObject(obj)) {\n    throw new TypeError('target must be an object');\n  }\n\n  // eslint-disable-next-line no-param-reassign\n  formData = formData || new (PlatformFormData || FormData)();\n\n  // eslint-disable-next-line no-param-reassign\n  options = utils.toFlatObject(options, {\n    metaTokens: true,\n    dots: false,\n    indexes: false\n  }, false, function defined(option, source) {\n    // eslint-disable-next-line no-eq-null,eqeqeq\n    return !utils.isUndefined(source[option]);\n  });\n\n  const metaTokens = options.metaTokens;\n  // eslint-disable-next-line no-use-before-define\n  const visitor = options.visitor || defaultVisitor;\n  const dots = options.dots;\n  const indexes = options.indexes;\n  const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n  const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n  if (!utils.isFunction(visitor)) {\n    throw new TypeError('visitor must be a function');\n  }\n\n  function convertValue(value) {\n    if (value === null) return '';\n\n    if (utils.isDate(value)) {\n      return value.toISOString();\n    }\n\n    if (!useBlob && utils.isBlob(value)) {\n      throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n    }\n\n    if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n      return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n    }\n\n    return value;\n  }\n\n  /**\n   * Default visitor.\n   *\n   * @param {*} value\n   * @param {String|Number} key\n   * @param {Array<String|Number>} path\n   * @this {FormData}\n   *\n   * @returns {boolean} return true to visit the each prop of the value recursively\n   */\n  function defaultVisitor(value, key, path) {\n    let arr = value;\n\n    if (value && !path && typeof value === 'object') {\n      if (utils.endsWith(key, '{}')) {\n        // eslint-disable-next-line no-param-reassign\n        key = metaTokens ? key : key.slice(0, -2);\n        // eslint-disable-next-line no-param-reassign\n        value = JSON.stringify(value);\n      } else if (\n        (utils.isArray(value) && isFlatArray(value)) ||\n        ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n        )) {\n        // eslint-disable-next-line no-param-reassign\n        key = removeBrackets(key);\n\n        arr.forEach(function each(el, index) {\n          !(utils.isUndefined(el) || el === null) && formData.append(\n            // eslint-disable-next-line no-nested-ternary\n            indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n            convertValue(el)\n          );\n        });\n        return false;\n      }\n    }\n\n    if (isVisitable(value)) {\n      return true;\n    }\n\n    formData.append(renderKey(path, key, dots), convertValue(value));\n\n    return false;\n  }\n\n  const stack = [];\n\n  const exposedHelpers = Object.assign(predicates, {\n    defaultVisitor,\n    convertValue,\n    isVisitable\n  });\n\n  function build(value, path) {\n    if (utils.isUndefined(value)) return;\n\n    if (stack.indexOf(value) !== -1) {\n      throw Error('Circular reference detected in ' + path.join('.'));\n    }\n\n    stack.push(value);\n\n    utils.forEach(value, function each(el, key) {\n      const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n        formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n      );\n\n      if (result === true) {\n        build(el, path ? path.concat(key) : [key]);\n      }\n    });\n\n    stack.pop();\n  }\n\n  if (!utils.isObject(obj)) {\n    throw new TypeError('data must be an object');\n  }\n\n  build(obj);\n\n  return formData;\n}\n\nexport default toFormData;\n", "'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n  const charMap = {\n    '!': '%21',\n    \"'\": '%27',\n    '(': '%28',\n    ')': '%29',\n    '~': '%7E',\n    '%20': '+',\n    '%00': '\\x00'\n  };\n  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n    return charMap[match];\n  });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n  this._pairs = [];\n\n  params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n  this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n  const _encode = encoder ? function(value) {\n    return encoder.call(this, value, encode);\n  } : encode;\n\n  return this._pairs.map(function each(pair) {\n    return _encode(pair[0]) + '=' + _encode(pair[1]);\n  }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\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 * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n  /*eslint no-param-reassign:0*/\n  if (!params) {\n    return url;\n  }\n  \n  const _encode = options && options.encode || encode;\n\n  if (utils.isFunction(options)) {\n    options = {\n      serialize: options\n    };\n  } \n\n  const serializeFn = options && options.serialize;\n\n  let serializedParams;\n\n  if (serializeFn) {\n    serializedParams = serializeFn(params, options);\n  } else {\n    serializedParams = utils.isURLSearchParams(params) ?\n      params.toString() :\n      new AxiosURLSearchParams(params, options).toString(_encode);\n  }\n\n  if (serializedParams) {\n    const hashmarkIndex = url.indexOf(\"#\");\n\n    if (hashmarkIndex !== -1) {\n      url = url.slice(0, hashmarkIndex);\n    }\n    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n  }\n\n  return url;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n  constructor() {\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   */\n  use(fulfilled, rejected, options) {\n    this.handlers.push({\n      fulfilled,\n      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   *\n   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n   */\n  eject(id) {\n    if (this.handlers[id]) {\n      this.handlers[id] = null;\n    }\n  }\n\n  /**\n   * Clear all interceptors from the stack\n   *\n   * @returns {void}\n   */\n  clear() {\n    if (this.handlers) {\n      this.handlers = [];\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   *\n   * @returns {void}\n   */\n  forEach(fn) {\n    utils.forEach(this.handlers, function forEachHandler(h) {\n      if (h !== null) {\n        fn(h);\n      }\n    });\n  }\n}\n\nexport default InterceptorManager;\n", "'use strict';\n\nexport default {\n  silentJSONParsing: true,\n  forcedJSONParsing: true,\n  clarifyTimeoutError: false\n};\n", "'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n", "'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n", "'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n", "import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n  isBrowser: true,\n  classes: {\n    URLSearchParams,\n    FormData,\n    Blob\n  },\n  protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n", "const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\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 *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n  return (\n    typeof WorkerGlobalScope !== 'undefined' &&\n    // eslint-disable-next-line no-undef\n    self instanceof WorkerGlobalScope &&\n    typeof self.importScripts === 'function'\n  );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n  hasBrowserEnv,\n  hasStandardBrowserWebWorkerEnv,\n  hasStandardBrowserEnv,\n  _navigator as navigator,\n  origin\n}\n", "import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n  ...utils,\n  ...platform\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n  return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n    visitor: function(value, key, path, helpers) {\n      if (platform.isNode && utils.isBuffer(value)) {\n        this.append(key, value.toString('base64'));\n        return false;\n      }\n\n      return helpers.defaultVisitor.apply(this, arguments);\n    }\n  }, options));\n}\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n  // foo[x][y][z]\n  // foo.x.y.z\n  // foo-x-y-z\n  // foo x y z\n  return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n    return match[0] === '[]' ? '' : match[1] || match[0];\n  });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n  const obj = {};\n  const keys = Object.keys(arr);\n  let i;\n  const len = keys.length;\n  let key;\n  for (i = 0; i < len; i++) {\n    key = keys[i];\n    obj[key] = arr[key];\n  }\n  return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n  function buildPath(path, value, target, index) {\n    let name = path[index++];\n\n    if (name === '__proto__') return true;\n\n    const isNumericKey = Number.isFinite(+name);\n    const isLast = index >= path.length;\n    name = !name && utils.isArray(target) ? target.length : name;\n\n    if (isLast) {\n      if (utils.hasOwnProp(target, name)) {\n        target[name] = [target[name], value];\n      } else {\n        target[name] = value;\n      }\n\n      return !isNumericKey;\n    }\n\n    if (!target[name] || !utils.isObject(target[name])) {\n      target[name] = [];\n    }\n\n    const result = buildPath(path, value, target[name], index);\n\n    if (result && utils.isArray(target[name])) {\n      target[name] = arrayToObject(target[name]);\n    }\n\n    return !isNumericKey;\n  }\n\n  if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n    const obj = {};\n\n    utils.forEachEntry(formData, (name, value) => {\n      buildPath(parsePropPath(name), value, obj, 0);\n    });\n\n    return obj;\n  }\n\n  return null;\n}\n\nexport default formDataToJSON;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\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\nconst defaults = {\n\n  transitional: transitionalDefaults,\n\n  adapter: ['xhr', 'http', 'fetch'],\n\n  transformRequest: [function transformRequest(data, headers) {\n    const contentType = headers.getContentType() || '';\n    const hasJSONContentType = contentType.indexOf('application/json') > -1;\n    const isObjectPayload = utils.isObject(data);\n\n    if (isObjectPayload && utils.isHTMLForm(data)) {\n      data = new FormData(data);\n    }\n\n    const isFormData = utils.isFormData(data);\n\n    if (isFormData) {\n      return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n    }\n\n    if (utils.isArrayBuffer(data) ||\n      utils.isBuffer(data) ||\n      utils.isStream(data) ||\n      utils.isFile(data) ||\n      utils.isBlob(data) ||\n      utils.isReadableStream(data)\n    ) {\n      return data;\n    }\n    if (utils.isArrayBufferView(data)) {\n      return data.buffer;\n    }\n    if (utils.isURLSearchParams(data)) {\n      headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n      return data.toString();\n    }\n\n    let isFileList;\n\n    if (isObjectPayload) {\n      if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n        return toURLEncodedForm(data, this.formSerializer).toString();\n      }\n\n      if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n        const _FormData = this.env && this.env.FormData;\n\n        return toFormData(\n          isFileList ? {'files[]': data} : data,\n          _FormData && new _FormData(),\n          this.formSerializer\n        );\n      }\n    }\n\n    if (isObjectPayload || hasJSONContentType ) {\n      headers.setContentType('application/json', false);\n      return stringifySafely(data);\n    }\n\n    return data;\n  }],\n\n  transformResponse: [function transformResponse(data) {\n    const transitional = this.transitional || defaults.transitional;\n    const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n    const JSONRequested = this.responseType === 'json';\n\n    if (utils.isResponse(data) || utils.isReadableStream(data)) {\n      return data;\n    }\n\n    if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n      const silentJSONParsing = transitional && transitional.silentJSONParsing;\n      const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n      try {\n        return JSON.parse(data);\n      } catch (e) {\n        if (strictJSONParsing) {\n          if (e.name === 'SyntaxError') {\n            throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\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  env: {\n    FormData: platform.classes.FormData,\n    Blob: platform.classes.Blob\n  },\n\n  validateStatus: function validateStatus(status) {\n    return status >= 200 && status < 300;\n  },\n\n  headers: {\n    common: {\n      'Accept': 'application/json, text/plain, */*',\n      'Content-Type': undefined\n    }\n  }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n  defaults.headers[method] = {};\n});\n\nexport default defaults;\n", "'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\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} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n  const parsed = {};\n  let key;\n  let val;\n  let i;\n\n  rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n    i = line.indexOf(':');\n    key = line.substring(0, i).trim().toLowerCase();\n    val = line.substring(i + 1).trim();\n\n    if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n      return;\n    }\n\n    if (key === 'set-cookie') {\n      if (parsed[key]) {\n        parsed[key].push(val);\n      } else {\n        parsed[key] = [val];\n      }\n    } else {\n      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n    }\n  });\n\n  return parsed;\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n  return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n  if (value === false || value == null) {\n    return value;\n  }\n\n  return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n  const tokens = Object.create(null);\n  const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n  let match;\n\n  while ((match = tokensRE.exec(str))) {\n    tokens[match[1]] = match[2];\n  }\n\n  return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n  if (utils.isFunction(filter)) {\n    return filter.call(this, value, header);\n  }\n\n  if (isHeaderNameFilter) {\n    value = header;\n  }\n\n  if (!utils.isString(value)) return;\n\n  if (utils.isString(filter)) {\n    return value.indexOf(filter) !== -1;\n  }\n\n  if (utils.isRegExp(filter)) {\n    return filter.test(value);\n  }\n}\n\nfunction formatHeader(header) {\n  return header.trim()\n    .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n      return char.toUpperCase() + str;\n    });\n}\n\nfunction buildAccessors(obj, header) {\n  const accessorName = utils.toCamelCase(' ' + header);\n\n  ['get', 'set', 'has'].forEach(methodName => {\n    Object.defineProperty(obj, methodName + accessorName, {\n      value: function(arg1, arg2, arg3) {\n        return this[methodName].call(this, header, arg1, arg2, arg3);\n      },\n      configurable: true\n    });\n  });\n}\n\nclass AxiosHeaders {\n  constructor(headers) {\n    headers && this.set(headers);\n  }\n\n  set(header, valueOrRewrite, rewrite) {\n    const self = this;\n\n    function setHeader(_value, _header, _rewrite) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!lHeader) {\n        throw new Error('header name must be a non-empty string');\n      }\n\n      const key = utils.findKey(self, lHeader);\n\n      if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n        self[key || _header] = normalizeValue(_value);\n      }\n    }\n\n    const setHeaders = (headers, _rewrite) =>\n      utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n    if (utils.isPlainObject(header) || header instanceof this.constructor) {\n      setHeaders(header, valueOrRewrite)\n    } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n      setHeaders(parseHeaders(header), valueOrRewrite);\n    } else if (utils.isHeaders(header)) {\n      for (const [key, value] of header.entries()) {\n        setHeader(value, key, rewrite);\n      }\n    } else {\n      header != null && setHeader(valueOrRewrite, header, rewrite);\n    }\n\n    return this;\n  }\n\n  get(header, parser) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = utils.findKey(this, header);\n\n      if (key) {\n        const value = this[key];\n\n        if (!parser) {\n          return value;\n        }\n\n        if (parser === true) {\n          return parseTokens(value);\n        }\n\n        if (utils.isFunction(parser)) {\n          return parser.call(this, value, key);\n        }\n\n        if (utils.isRegExp(parser)) {\n          return parser.exec(value);\n        }\n\n        throw new TypeError('parser must be boolean|regexp|function');\n      }\n    }\n  }\n\n  has(header, matcher) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = utils.findKey(this, header);\n\n      return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n    }\n\n    return false;\n  }\n\n  delete(header, matcher) {\n    const self = this;\n    let deleted = false;\n\n    function deleteHeader(_header) {\n      _header = normalizeHeader(_header);\n\n      if (_header) {\n        const key = utils.findKey(self, _header);\n\n        if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n          delete self[key];\n\n          deleted = true;\n        }\n      }\n    }\n\n    if (utils.isArray(header)) {\n      header.forEach(deleteHeader);\n    } else {\n      deleteHeader(header);\n    }\n\n    return deleted;\n  }\n\n  clear(matcher) {\n    const keys = Object.keys(this);\n    let i = keys.length;\n    let deleted = false;\n\n    while (i--) {\n      const key = keys[i];\n      if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n        delete this[key];\n        deleted = true;\n      }\n    }\n\n    return deleted;\n  }\n\n  normalize(format) {\n    const self = this;\n    const headers = {};\n\n    utils.forEach(this, (value, header) => {\n      const key = utils.findKey(headers, header);\n\n      if (key) {\n        self[key] = normalizeValue(value);\n        delete self[header];\n        return;\n      }\n\n      const normalized = format ? formatHeader(header) : String(header).trim();\n\n      if (normalized !== header) {\n        delete self[header];\n      }\n\n      self[normalized] = normalizeValue(value);\n\n      headers[normalized] = true;\n    });\n\n    return this;\n  }\n\n  concat(...targets) {\n    return this.constructor.concat(this, ...targets);\n  }\n\n  toJSON(asStrings) {\n    const obj = Object.create(null);\n\n    utils.forEach(this, (value, header) => {\n      value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n    });\n\n    return obj;\n  }\n\n  [Symbol.iterator]() {\n    return Object.entries(this.toJSON())[Symbol.iterator]();\n  }\n\n  toString() {\n    return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n  }\n\n  get [Symbol.toStringTag]() {\n    return 'AxiosHeaders';\n  }\n\n  static from(thing) {\n    return thing instanceof this ? thing : new this(thing);\n  }\n\n  static concat(first, ...targets) {\n    const computed = new this(first);\n\n    targets.forEach((target) => computed.set(target));\n\n    return computed;\n  }\n\n  static accessor(header) {\n    const internals = this[$internals] = (this[$internals] = {\n      accessors: {}\n    });\n\n    const accessors = internals.accessors;\n    const prototype = this.prototype;\n\n    function defineAccessor(_header) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!accessors[lHeader]) {\n        buildAccessors(prototype, _header);\n        accessors[lHeader] = true;\n      }\n    }\n\n    utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n    return this;\n  }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n  return {\n    get: () => value,\n    set(headerValue) {\n      this[mapped] = headerValue;\n    }\n  }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n  const config = this || defaults;\n  const context = response || config;\n  const headers = AxiosHeaders.from(context.headers);\n  let data = context.data;\n\n  utils.forEach(fns, function transform(fn) {\n    data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n  });\n\n  headers.normalize();\n\n  return data;\n}\n", "'use strict';\n\nexport default function isCancel(value) {\n  return !!(value && value.__CANCEL__);\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n  this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n  __CANCEL__: true\n});\n\nexport default CanceledError;\n", "'use strict';\n\nimport AxiosError from './AxiosError.js';\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 *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n  const validateStatus = response.config.validateStatus;\n  if (!response.status || !validateStatus || validateStatus(response.status)) {\n    resolve(response);\n  } else {\n    reject(new AxiosError(\n      'Request failed with status code ' + response.status,\n      [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n      response.config,\n      response.request,\n      response\n    ));\n  }\n}\n", "'use strict';\n\nexport default function parseProtocol(url) {\n  const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n  return match && match[1] || '';\n}\n", "'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n  samplesCount = samplesCount || 10;\n  const bytes = new Array(samplesCount);\n  const timestamps = new Array(samplesCount);\n  let head = 0;\n  let tail = 0;\n  let firstSampleTS;\n\n  min = min !== undefined ? min : 1000;\n\n  return function push(chunkLength) {\n    const now = Date.now();\n\n    const startedAt = timestamps[tail];\n\n    if (!firstSampleTS) {\n      firstSampleTS = now;\n    }\n\n    bytes[head] = chunkLength;\n    timestamps[head] = now;\n\n    let i = tail;\n    let bytesCount = 0;\n\n    while (i !== head) {\n      bytesCount += bytes[i++];\n      i = i % samplesCount;\n    }\n\n    head = (head + 1) % samplesCount;\n\n    if (head === tail) {\n      tail = (tail + 1) % samplesCount;\n    }\n\n    if (now - firstSampleTS < min) {\n      return;\n    }\n\n    const passed = startedAt && now - startedAt;\n\n    return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n  };\n}\n\nexport default speedometer;\n", "/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n  let timestamp = 0;\n  let threshold = 1000 / freq;\n  let lastArgs;\n  let timer;\n\n  const invoke = (args, now = Date.now()) => {\n    timestamp = now;\n    lastArgs = null;\n    if (timer) {\n      clearTimeout(timer);\n      timer = null;\n    }\n    fn.apply(null, args);\n  }\n\n  const throttled = (...args) => {\n    const now = Date.now();\n    const passed = now - timestamp;\n    if ( passed >= threshold) {\n      invoke(args, now);\n    } else {\n      lastArgs = args;\n      if (!timer) {\n        timer = setTimeout(() => {\n          timer = null;\n          invoke(lastArgs)\n        }, threshold - passed);\n      }\n    }\n  }\n\n  const flush = () => lastArgs && invoke(lastArgs);\n\n  return [throttled, flush];\n}\n\nexport default throttle;\n", "import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n  let bytesNotified = 0;\n  const _speedometer = speedometer(50, 250);\n\n  return throttle(e => {\n    const loaded = e.loaded;\n    const total = e.lengthComputable ? e.total : undefined;\n    const progressBytes = loaded - bytesNotified;\n    const rate = _speedometer(progressBytes);\n    const inRange = loaded <= total;\n\n    bytesNotified = loaded;\n\n    const data = {\n      loaded,\n      total,\n      progress: total ? (loaded / total) : undefined,\n      bytes: progressBytes,\n      rate: rate ? rate : undefined,\n      estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n      event: e,\n      lengthComputable: total != null,\n      [isDownloadStream ? 'download' : 'upload']: true\n    };\n\n    listener(data);\n  }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n  const lengthComputable = total != null;\n\n  return [(loaded) => throttled[0]({\n    lengthComputable,\n    total,\n    loaded\n  }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n", "import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n  url = new URL(url, platform.origin);\n\n  return (\n    origin.protocol === url.protocol &&\n    origin.host === url.host &&\n    (isMSIE || origin.port === url.port)\n  );\n})(\n  new URL(platform.origin),\n  platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n", "import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n  // Standard browser envs support document.cookie\n  {\n    write(name, value, expires, path, domain, secure) {\n      const cookie = [name + '=' + encodeURIComponent(value)];\n\n      utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n      utils.isString(path) && cookie.push('path=' + path);\n\n      utils.isString(domain) && cookie.push('domain=' + domain);\n\n      secure === true && cookie.push('secure');\n\n      document.cookie = cookie.join('; ');\n    },\n\n    read(name) {\n      const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n      return (match ? decodeURIComponent(match[3]) : null);\n    },\n\n    remove(name) {\n      this.write(name, '', Date.now() - 86400000);\n    }\n  }\n\n  :\n\n  // Non-standard browser env (web workers, react-native) lack needed support.\n  {\n    write() {},\n    read() {\n      return null;\n    },\n    remove() {}\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 *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default 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 *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n  return relativeURL\n    ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n    : baseURL;\n}\n", "'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\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 *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n  if (baseURL && !isAbsoluteURL(requestedURL)) {\n    return combineURLs(baseURL, requestedURL);\n  }\n  return requestedURL;\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\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 *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n  // eslint-disable-next-line no-param-reassign\n  config2 = config2 || {};\n  const config = {};\n\n  function getMergedValue(target, source, prop, caseless) {\n    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n      return utils.merge.call({caseless}, 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  // eslint-disable-next-line consistent-return\n  function mergeDeepProperties(a, b, prop , caseless) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(a, b, prop , caseless);\n    } else if (!utils.isUndefined(a)) {\n      return getMergedValue(undefined, a, prop , caseless);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function valueFromConfig2(a, b) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function defaultToConfig2(a, b) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    } else if (!utils.isUndefined(a)) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function mergeDirectKeys(a, b, prop) {\n    if (prop in config2) {\n      return getMergedValue(a, b);\n    } else if (prop in config1) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  const mergeMap = {\n    url: valueFromConfig2,\n    method: valueFromConfig2,\n    data: valueFromConfig2,\n    baseURL: defaultToConfig2,\n    transformRequest: defaultToConfig2,\n    transformResponse: defaultToConfig2,\n    paramsSerializer: defaultToConfig2,\n    timeout: defaultToConfig2,\n    timeoutMessage: defaultToConfig2,\n    withCredentials: defaultToConfig2,\n    withXSRFToken: defaultToConfig2,\n    adapter: defaultToConfig2,\n    responseType: defaultToConfig2,\n    xsrfCookieName: defaultToConfig2,\n    xsrfHeaderName: defaultToConfig2,\n    onUploadProgress: defaultToConfig2,\n    onDownloadProgress: defaultToConfig2,\n    decompress: defaultToConfig2,\n    maxContentLength: defaultToConfig2,\n    maxBodyLength: defaultToConfig2,\n    beforeRedirect: defaultToConfig2,\n    transport: defaultToConfig2,\n    httpAgent: defaultToConfig2,\n    httpsAgent: defaultToConfig2,\n    cancelToken: defaultToConfig2,\n    socketPath: defaultToConfig2,\n    responseEncoding: defaultToConfig2,\n    validateStatus: mergeDirectKeys,\n    headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n  };\n\n  utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n    const merge = mergeMap[prop] || mergeDeepProperties;\n    const configValue = merge(config1[prop], config2[prop], prop);\n    (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n  });\n\n  return config;\n}\n", "import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n  const newConfig = mergeConfig({}, config);\n\n  let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n  newConfig.headers = headers = AxiosHeaders.from(headers);\n\n  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n  // HTTP basic authentication\n  if (auth) {\n    headers.set('Authorization', 'Basic ' +\n      btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n    );\n  }\n\n  let contentType;\n\n  if (utils.isFormData(data)) {\n    if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n      headers.setContentType(undefined); // Let the browser set it\n    } else if ((contentType = headers.getContentType()) !== false) {\n      // fix semicolon duplication issue for ReactNative FormData implementation\n      const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n      headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n    }\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\n  if (platform.hasStandardBrowserEnv) {\n    withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n    if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n      // Add xsrf header\n      const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n      if (xsrfValue) {\n        headers.set(xsrfHeaderName, xsrfValue);\n      }\n    }\n  }\n\n  return newConfig;\n}\n\n", "import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n  return new Promise(function dispatchXhrRequest(resolve, reject) {\n    const _config = resolveConfig(config);\n    let requestData = _config.data;\n    const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n    let {responseType, onUploadProgress, onDownloadProgress} = _config;\n    let onCanceled;\n    let uploadThrottled, downloadThrottled;\n    let flushUpload, flushDownload;\n\n    function done() {\n      flushUpload && flushUpload(); // flush events\n      flushDownload && flushDownload(); // flush events\n\n      _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n      _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n    }\n\n    let request = new XMLHttpRequest();\n\n    request.open(_config.method.toUpperCase(), _config.url, 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      const responseHeaders = AxiosHeaders.from(\n        'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n      );\n      const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n        request.responseText : request.response;\n      const response = {\n        data: responseData,\n        status: request.status,\n        statusText: request.statusText,\n        headers: responseHeaders,\n        config,\n        request\n      };\n\n      settle(function _resolve(value) {\n        resolve(value);\n        done();\n      }, function _reject(err) {\n        reject(err);\n        done();\n      }, 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(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, 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(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle timeout\n    request.ontimeout = function handleTimeout() {\n      let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n      const transitional = _config.transitional || transitionalDefaults;\n      if (_config.timeoutErrorMessage) {\n        timeoutErrorMessage = _config.timeoutErrorMessage;\n      }\n      reject(new AxiosError(\n        timeoutErrorMessage,\n        transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n        config,\n        request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Remove Content-Type if data is undefined\n    requestData === undefined && requestHeaders.setContentType(null);\n\n    // Add headers to the request\n    if ('setRequestHeader' in request) {\n      utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n        request.setRequestHeader(key, val);\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 (onDownloadProgress) {\n      ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n      request.addEventListener('progress', downloadThrottled);\n    }\n\n    // Not all browsers support upload events\n    if (onUploadProgress && request.upload) {\n      ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n      request.upload.addEventListener('progress', uploadThrottled);\n\n      request.upload.addEventListener('loadend', flushUpload);\n    }\n\n    if (_config.cancelToken || _config.signal) {\n      // Handle cancellation\n      // eslint-disable-next-line func-names\n      onCanceled = cancel => {\n        if (!request) {\n          return;\n        }\n        reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n        request.abort();\n        request = null;\n      };\n\n      _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n      if (_config.signal) {\n        _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n      }\n    }\n\n    const protocol = parseProtocol(_config.url);\n\n    if (protocol && platform.protocols.indexOf(protocol) === -1) {\n      reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n      return;\n    }\n\n\n    // Send the request\n    request.send(requestData || null);\n  });\n}\n", "import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n  const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n  if (timeout || length) {\n    let controller = new AbortController();\n\n    let aborted;\n\n    const onabort = function (reason) {\n      if (!aborted) {\n        aborted = true;\n        unsubscribe();\n        const err = reason instanceof Error ? reason : this.reason;\n        controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n      }\n    }\n\n    let timer = timeout && setTimeout(() => {\n      timer = null;\n      onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n    }, timeout)\n\n    const unsubscribe = () => {\n      if (signals) {\n        timer && clearTimeout(timer);\n        timer = null;\n        signals.forEach(signal => {\n          signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n        });\n        signals = null;\n      }\n    }\n\n    signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n    const {signal} = controller;\n\n    signal.unsubscribe = () => utils.asap(unsubscribe);\n\n    return signal;\n  }\n}\n\nexport default composeSignals;\n", "\nexport const streamChunk = function* (chunk, chunkSize) {\n  let len = chunk.byteLength;\n\n  if (!chunkSize || len < chunkSize) {\n    yield chunk;\n    return;\n  }\n\n  let pos = 0;\n  let end;\n\n  while (pos < len) {\n    end = pos + chunkSize;\n    yield chunk.slice(pos, end);\n    pos = end;\n  }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n  for await (const chunk of readStream(iterable)) {\n    yield* streamChunk(chunk, chunkSize);\n  }\n}\n\nconst readStream = async function* (stream) {\n  if (stream[Symbol.asyncIterator]) {\n    yield* stream;\n    return;\n  }\n\n  const reader = stream.getReader();\n  try {\n    for (;;) {\n      const {done, value} = await reader.read();\n      if (done) {\n        break;\n      }\n      yield value;\n    }\n  } finally {\n    await reader.cancel();\n  }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n  const iterator = readBytes(stream, chunkSize);\n\n  let bytes = 0;\n  let done;\n  let _onFinish = (e) => {\n    if (!done) {\n      done = true;\n      onFinish && onFinish(e);\n    }\n  }\n\n  return new ReadableStream({\n    async pull(controller) {\n      try {\n        const {done, value} = await iterator.next();\n\n        if (done) {\n         _onFinish();\n          controller.close();\n          return;\n        }\n\n        let len = value.byteLength;\n        if (onProgress) {\n          let loadedBytes = bytes += len;\n          onProgress(loadedBytes);\n        }\n        controller.enqueue(new Uint8Array(value));\n      } catch (err) {\n        _onFinish(err);\n        throw err;\n      }\n    },\n    cancel(reason) {\n      _onFinish(reason);\n      return iterator.return();\n    }\n  }, {\n    highWaterMark: 2\n  })\n}\n", "import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n    ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n    async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n  try {\n    return !!fn(...args);\n  } catch (e) {\n    return false\n  }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n  let duplexAccessed = false;\n\n  const hasContentType = new Request(platform.origin, {\n    body: new ReadableStream(),\n    method: 'POST',\n    get duplex() {\n      duplexAccessed = true;\n      return 'half';\n    },\n  }).headers.has('Content-Type');\n\n  return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n  test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n  stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n  ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n    !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n      (_, config) => {\n        throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n      })\n  });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n  if (body == null) {\n    return 0;\n  }\n\n  if(utils.isBlob(body)) {\n    return body.size;\n  }\n\n  if(utils.isSpecCompliantForm(body)) {\n    const _request = new Request(platform.origin, {\n      method: 'POST',\n      body,\n    });\n    return (await _request.arrayBuffer()).byteLength;\n  }\n\n  if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n    return body.byteLength;\n  }\n\n  if(utils.isURLSearchParams(body)) {\n    body = body + '';\n  }\n\n  if(utils.isString(body)) {\n    return (await encodeText(body)).byteLength;\n  }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n  const length = utils.toFiniteNumber(headers.getContentLength());\n\n  return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n  let {\n    url,\n    method,\n    data,\n    signal,\n    cancelToken,\n    timeout,\n    onDownloadProgress,\n    onUploadProgress,\n    responseType,\n    headers,\n    withCredentials = 'same-origin',\n    fetchOptions\n  } = resolveConfig(config);\n\n  responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n  let request;\n\n  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n      composedSignal.unsubscribe();\n  });\n\n  let requestContentLength;\n\n  try {\n    if (\n      onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n      (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n    ) {\n      let _request = new Request(url, {\n        method: 'POST',\n        body: data,\n        duplex: \"half\"\n      });\n\n      let contentTypeHeader;\n\n      if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n        headers.setContentType(contentTypeHeader)\n      }\n\n      if (_request.body) {\n        const [onProgress, flush] = progressEventDecorator(\n          requestContentLength,\n          progressEventReducer(asyncDecorator(onUploadProgress))\n        );\n\n        data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n      }\n    }\n\n    if (!utils.isString(withCredentials)) {\n      withCredentials = withCredentials ? 'include' : 'omit';\n    }\n\n    // Cloudflare Workers throws when credentials are defined\n    // see https://github.com/cloudflare/workerd/issues/902\n    const isCredentialsSupported = \"credentials\" in Request.prototype;\n    request = new Request(url, {\n      ...fetchOptions,\n      signal: composedSignal,\n      method: method.toUpperCase(),\n      headers: headers.normalize().toJSON(),\n      body: data,\n      duplex: \"half\",\n      credentials: isCredentialsSupported ? withCredentials : undefined\n    });\n\n    let response = await fetch(request);\n\n    const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n    if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n      const options = {};\n\n      ['status', 'statusText', 'headers'].forEach(prop => {\n        options[prop] = response[prop];\n      });\n\n      const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n      const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n        responseContentLength,\n        progressEventReducer(asyncDecorator(onDownloadProgress), true)\n      ) || [];\n\n      response = new Response(\n        trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n          flush && flush();\n          unsubscribe && unsubscribe();\n        }),\n        options\n      );\n    }\n\n    responseType = responseType || 'text';\n\n    let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n    !isStreamResponse && unsubscribe && unsubscribe();\n\n    return await new Promise((resolve, reject) => {\n      settle(resolve, reject, {\n        data: responseData,\n        headers: AxiosHeaders.from(response.headers),\n        status: response.status,\n        statusText: response.statusText,\n        config,\n        request\n      })\n    })\n  } catch (err) {\n    unsubscribe && unsubscribe();\n\n    if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n      throw Object.assign(\n        new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n        {\n          cause: err.cause || err\n        }\n      )\n    }\n\n    throw AxiosError.from(err, err && err.code, config, request);\n  }\n});\n\n\n", "import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n  http: httpAdapter,\n  xhr: xhrAdapter,\n  fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n  if (fn) {\n    try {\n      Object.defineProperty(fn, 'name', {value});\n    } catch (e) {\n      // eslint-disable-next-line no-empty\n    }\n    Object.defineProperty(fn, 'adapterName', {value});\n  }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n  getAdapter: (adapters) => {\n    adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n    const {length} = adapters;\n    let nameOrAdapter;\n    let adapter;\n\n    const rejectedReasons = {};\n\n    for (let i = 0; i < length; i++) {\n      nameOrAdapter = adapters[i];\n      let id;\n\n      adapter = nameOrAdapter;\n\n      if (!isResolvedHandle(nameOrAdapter)) {\n        adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n        if (adapter === undefined) {\n          throw new AxiosError(`Unknown adapter '${id}'`);\n        }\n      }\n\n      if (adapter) {\n        break;\n      }\n\n      rejectedReasons[id || '#' + i] = adapter;\n    }\n\n    if (!adapter) {\n\n      const reasons = Object.entries(rejectedReasons)\n        .map(([id, state]) => `adapter ${id} ` +\n          (state === false ? 'is not supported by the environment' : 'is not available in the build')\n        );\n\n      let s = length ?\n        (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n        'as no adapter specified';\n\n      throw new AxiosError(\n        `There is no suitable adapter to dispatch the request ` + s,\n        'ERR_NOT_SUPPORT'\n      );\n    }\n\n    return adapter;\n  },\n  adapters: knownAdapters\n}\n", "'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n  if (config.cancelToken) {\n    config.cancelToken.throwIfRequested();\n  }\n\n  if (config.signal && config.signal.aborted) {\n    throw new CanceledError(null, config);\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 *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n  throwIfCancellationRequested(config);\n\n  config.headers = AxiosHeaders.from(config.headers);\n\n  // Transform request data\n  config.data = transformData.call(\n    config,\n    config.transformRequest\n  );\n\n  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n    config.headers.setContentType('application/x-www-form-urlencoded', false);\n  }\n\n  const adapter = adapters.getAdapter(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      config.transformResponse,\n      response\n    );\n\n    response.headers = AxiosHeaders.from(response.headers);\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          config.transformResponse,\n          reason.response\n        );\n        reason.response.headers = AxiosHeaders.from(reason.response.headers);\n      }\n    }\n\n    return Promise.reject(reason);\n  });\n}\n", "export const VERSION = \"1.7.9\";", "'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n  validators[type] = function validator(thing) {\n    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n  };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n  function formatMessage(opt, desc) {\n    return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n  }\n\n  // eslint-disable-next-line func-names\n  return (value, opt, opts) => {\n    if (validator === false) {\n      throw new AxiosError(\n        formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n        AxiosError.ERR_DEPRECATED\n      );\n    }\n\n    if (version && !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\nvalidators.spelling = function spelling(correctSpelling) {\n  return (value, opt) => {\n    // eslint-disable-next-line no-console\n    console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n    return true;\n  }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n  if (typeof options !== 'object') {\n    throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n  }\n  const keys = Object.keys(options);\n  let i = keys.length;\n  while (i-- > 0) {\n    const opt = keys[i];\n    const validator = schema[opt];\n    if (validator) {\n      const value = options[opt];\n      const result = value === undefined || validator(value, opt, options);\n      if (result !== true) {\n        throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n      }\n      continue;\n    }\n    if (allowUnknown !== true) {\n      throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n    }\n  }\n}\n\nexport default {\n  assertOptions,\n  validators\n};\n", "'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n  constructor(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 {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n   * @param {?Object} config\n   *\n   * @returns {Promise} The Promise to be fulfilled\n   */\n  async request(configOrUrl, config) {\n    try {\n      return await this._request(configOrUrl, config);\n    } catch (err) {\n      if (err instanceof Error) {\n        let dummy = {};\n\n        Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n        // slice off the Error: ... line\n        const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n        try {\n          if (!err.stack) {\n            err.stack = stack;\n            // match without the 2 top stack lines\n          } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n            err.stack += '\\n' + stack\n          }\n        } catch (e) {\n          // ignore the case where \"stack\" is an un-writable property\n        }\n      }\n\n      throw err;\n    }\n  }\n\n  _request(configOrUrl, config) {\n    /*eslint no-param-reassign:0*/\n    // Allow for axios('example/url'[, config]) a la fetch API\n    if (typeof configOrUrl === 'string') {\n      config = config || {};\n      config.url = configOrUrl;\n    } else {\n      config = configOrUrl || {};\n    }\n\n    config = mergeConfig(this.defaults, config);\n\n    const {transitional, paramsSerializer, headers} = config;\n\n    if (transitional !== undefined) {\n      validator.assertOptions(transitional, {\n        silentJSONParsing: validators.transitional(validators.boolean),\n        forcedJSONParsing: validators.transitional(validators.boolean),\n        clarifyTimeoutError: validators.transitional(validators.boolean)\n      }, false);\n    }\n\n    if (paramsSerializer != null) {\n      if (utils.isFunction(paramsSerializer)) {\n        config.paramsSerializer = {\n          serialize: paramsSerializer\n        }\n      } else {\n        validator.assertOptions(paramsSerializer, {\n          encode: validators.function,\n          serialize: validators.function\n        }, true);\n      }\n    }\n\n    validator.assertOptions(config, {\n      baseUrl: validators.spelling('baseURL'),\n      withXsrfToken: validators.spelling('withXSRFToken')\n    }, true);\n\n    // Set config.method\n    config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n    // Flatten headers\n    let contextHeaders = headers && utils.merge(\n      headers.common,\n      headers[config.method]\n    );\n\n    headers && utils.forEach(\n      ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n      (method) => {\n        delete headers[method];\n      }\n    );\n\n    config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n    // filter out skipped interceptors\n    const requestInterceptorChain = [];\n    let 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    const responseInterceptorChain = [];\n    this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n      responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n    });\n\n    let promise;\n    let i = 0;\n    let len;\n\n    if (!synchronousRequestInterceptors) {\n      const chain = [dispatchRequest.bind(this), undefined];\n      chain.unshift.apply(chain, requestInterceptorChain);\n      chain.push.apply(chain, responseInterceptorChain);\n      len = chain.length;\n\n      promise = Promise.resolve(config);\n\n      while (i < len) {\n        promise = promise.then(chain[i++], chain[i++]);\n      }\n\n      return promise;\n    }\n\n    len = requestInterceptorChain.length;\n\n    let newConfig = config;\n\n    i = 0;\n\n    while (i < len) {\n      const onFulfilled = requestInterceptorChain[i++];\n      const onRejected = requestInterceptorChain[i++];\n      try {\n        newConfig = onFulfilled(newConfig);\n      } catch (error) {\n        onRejected.call(this, error);\n        break;\n      }\n    }\n\n    try {\n      promise = dispatchRequest.call(this, newConfig);\n    } catch (error) {\n      return Promise.reject(error);\n    }\n\n    i = 0;\n    len = responseInterceptorChain.length;\n\n    while (i < len) {\n      promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n    }\n\n    return promise;\n  }\n\n  getUri(config) {\n    config = mergeConfig(this.defaults, config);\n    const fullPath = buildFullPath(config.baseURL, config.url);\n    return buildURL(fullPath, config.params, config.paramsSerializer);\n  }\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,\n      url,\n      data: (config || {}).data\n    }));\n  };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  /*eslint func-names:0*/\n\n  function generateHTTPMethod(isForm) {\n    return function httpMethod(url, data, config) {\n      return this.request(mergeConfig(config || {}, {\n        method,\n        headers: isForm ? {\n          'Content-Type': 'multipart/form-data'\n        } : {},\n        url,\n        data\n      }));\n    };\n  }\n\n  Axios.prototype[method] = generateHTTPMethod();\n\n  Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n", "'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n  constructor(executor) {\n    if (typeof executor !== 'function') {\n      throw new TypeError('executor must be a function.');\n    }\n\n    let resolvePromise;\n\n    this.promise = new Promise(function promiseExecutor(resolve) {\n      resolvePromise = resolve;\n    });\n\n    const token = this;\n\n    // eslint-disable-next-line func-names\n    this.promise.then(cancel => {\n      if (!token._listeners) return;\n\n      let i = token._listeners.length;\n\n      while (i-- > 0) {\n        token._listeners[i](cancel);\n      }\n      token._listeners = null;\n    });\n\n    // eslint-disable-next-line func-names\n    this.promise.then = onfulfilled => {\n      let _resolve;\n      // eslint-disable-next-line func-names\n      const promise = new Promise(resolve => {\n        token.subscribe(resolve);\n        _resolve = resolve;\n      }).then(onfulfilled);\n\n      promise.cancel = function reject() {\n        token.unsubscribe(_resolve);\n      };\n\n      return promise;\n    };\n\n    executor(function cancel(message, config, request) {\n      if (token.reason) {\n        // Cancellation has already been requested\n        return;\n      }\n\n      token.reason = new CanceledError(message, config, request);\n      resolvePromise(token.reason);\n    });\n  }\n\n  /**\n   * Throws a `CanceledError` if cancellation has been requested.\n   */\n  throwIfRequested() {\n    if (this.reason) {\n      throw this.reason;\n    }\n  }\n\n  /**\n   * Subscribe to the cancel signal\n   */\n\n  subscribe(listener) {\n    if (this.reason) {\n      listener(this.reason);\n      return;\n    }\n\n    if (this._listeners) {\n      this._listeners.push(listener);\n    } else {\n      this._listeners = [listener];\n    }\n  }\n\n  /**\n   * Unsubscribe from the cancel signal\n   */\n\n  unsubscribe(listener) {\n    if (!this._listeners) {\n      return;\n    }\n    const index = this._listeners.indexOf(listener);\n    if (index !== -1) {\n      this._listeners.splice(index, 1);\n    }\n  }\n\n  toAbortSignal() {\n    const controller = new AbortController();\n\n    const abort = (err) => {\n      controller.abort(err);\n    };\n\n    this.subscribe(abort);\n\n    controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n    return controller.signal;\n  }\n\n  /**\n   * Returns an object that contains a new `CancelToken` and a function that, when called,\n   * cancels the `CancelToken`.\n   */\n  static source() {\n    let cancel;\n    const token = new CancelToken(function executor(c) {\n      cancel = c;\n    });\n    return {\n      token,\n      cancel\n    };\n  }\n}\n\nexport default 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 *\n * @returns {Function}\n */\nexport default function spread(callback) {\n  return function wrap(arr) {\n    return callback.apply(null, arr);\n  };\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n  return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n", "const HttpStatusCode = {\n  Continue: 100,\n  SwitchingProtocols: 101,\n  Processing: 102,\n  EarlyHints: 103,\n  Ok: 200,\n  Created: 201,\n  Accepted: 202,\n  NonAuthoritativeInformation: 203,\n  NoContent: 204,\n  ResetContent: 205,\n  PartialContent: 206,\n  MultiStatus: 207,\n  AlreadyReported: 208,\n  ImUsed: 226,\n  MultipleChoices: 300,\n  MovedPermanently: 301,\n  Found: 302,\n  SeeOther: 303,\n  NotModified: 304,\n  UseProxy: 305,\n  Unused: 306,\n  TemporaryRedirect: 307,\n  PermanentRedirect: 308,\n  BadRequest: 400,\n  Unauthorized: 401,\n  PaymentRequired: 402,\n  Forbidden: 403,\n  NotFound: 404,\n  MethodNotAllowed: 405,\n  NotAcceptable: 406,\n  ProxyAuthenticationRequired: 407,\n  RequestTimeout: 408,\n  Conflict: 409,\n  Gone: 410,\n  LengthRequired: 411,\n  PreconditionFailed: 412,\n  PayloadTooLarge: 413,\n  UriTooLong: 414,\n  UnsupportedMediaType: 415,\n  RangeNotSatisfiable: 416,\n  ExpectationFailed: 417,\n  ImATeapot: 418,\n  MisdirectedRequest: 421,\n  UnprocessableEntity: 422,\n  Locked: 423,\n  FailedDependency: 424,\n  TooEarly: 425,\n  UpgradeRequired: 426,\n  PreconditionRequired: 428,\n  TooManyRequests: 429,\n  RequestHeaderFieldsTooLarge: 431,\n  UnavailableForLegalReasons: 451,\n  InternalServerError: 500,\n  NotImplemented: 501,\n  BadGateway: 502,\n  ServiceUnavailable: 503,\n  GatewayTimeout: 504,\n  HttpVersionNotSupported: 505,\n  VariantAlsoNegotiates: 506,\n  InsufficientStorage: 507,\n  LoopDetected: 508,\n  NotExtended: 510,\n  NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n  HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n", "'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n  const context = new Axios(defaultConfig);\n  const instance = bind(Axios.prototype.request, context);\n\n  // Copy axios.prototype to instance\n  utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n  // Copy context to instance\n  utils.extend(instance, context, null, {allOwnKeys: true});\n\n  // Factory for creating new instances\n  instance.create = function create(instanceConfig) {\n    return createInstance(mergeConfig(defaultConfig, instanceConfig));\n  };\n\n  return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n  return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n", "import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n  Axios,\n  AxiosError,\n  CanceledError,\n  isCancel,\n  CancelToken,\n  VERSION,\n  all,\n  Cancel,\n  isAxiosError,\n  spread,\n  toFormData,\n  AxiosHeaders,\n  HttpStatusCode,\n  formToJSON,\n  getAdapter,\n  mergeConfig\n} = axios;\n\nexport {\n  axios as default,\n  Axios,\n  AxiosError,\n  CanceledError,\n  isCancel,\n  CancelToken,\n  VERSION,\n  all,\n  Cancel,\n  isAxiosError,\n  spread,\n  toFormData,\n  AxiosHeaders,\n  HttpStatusCode,\n  formToJSON,\n  getAdapter,\n  mergeConfig\n}\n", "import isRetryAllowed from 'is-retry-allowed';\nexport const namespace = 'axios-retry';\nexport function isNetworkError(error) {\n    const CODE_EXCLUDE_LIST = ['ERR_CANCELED', 'ECONNABORTED'];\n    if (error.response) {\n        return false;\n    }\n    if (!error.code) {\n        return false;\n    }\n    // Prevents retrying timed out & cancelled requests\n    if (CODE_EXCLUDE_LIST.includes(error.code)) {\n        return false;\n    }\n    // Prevents retrying unsafe errors\n    return isRetryAllowed(error);\n}\nconst SAFE_HTTP_METHODS = ['get', 'head', 'options'];\nconst IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);\nexport function isRetryableError(error) {\n    return (error.code !== 'ECONNABORTED' &&\n        (!error.response ||\n            error.response.status === 429 ||\n            (error.response.status >= 500 && error.response.status <= 599)));\n}\nexport function isSafeRequestError(error) {\n    if (!error.config?.method) {\n        // Cannot determine if the request can be retried\n        return false;\n    }\n    return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\nexport function isIdempotentRequestError(error) {\n    if (!error.config?.method) {\n        // Cannot determine if the request can be retried\n        return false;\n    }\n    return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\nexport function isNetworkOrIdempotentRequestError(error) {\n    return isNetworkError(error) || isIdempotentRequestError(error);\n}\nexport function retryAfter(error = undefined) {\n    const retryAfterHeader = error?.response?.headers['retry-after'];\n    if (!retryAfterHeader) {\n        return 0;\n    }\n    // if the retry after header is a number, convert it to milliseconds\n    let retryAfterMs = (Number(retryAfterHeader) || 0) * 1000;\n    // If the retry after header is a date, get the number of milliseconds until that date\n    if (retryAfterMs === 0) {\n        retryAfterMs = (new Date(retryAfterHeader).valueOf() || 0) - Date.now();\n    }\n    return Math.max(0, retryAfterMs);\n}\nfunction noDelay(_retryNumber = 0, error = undefined) {\n    return Math.max(0, retryAfter(error));\n}\nexport function exponentialDelay(retryNumber = 0, error = undefined, delayFactor = 100) {\n    const calculatedDelay = 2 ** retryNumber * delayFactor;\n    const delay = Math.max(calculatedDelay, retryAfter(error));\n    const randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay\n    return delay + randomSum;\n}\n/**\n * Linear delay\n * @param {number | undefined} delayFactor - delay factor in milliseconds (default: 100)\n * @returns {function} (retryNumber: number, error: AxiosError | undefined) => number\n */\nexport function linearDelay(delayFactor = 100) {\n    return (retryNumber = 0, error = undefined) => {\n        const delay = retryNumber * delayFactor;\n        return Math.max(delay, retryAfter(error));\n    };\n}\nexport const DEFAULT_OPTIONS = {\n    retries: 3,\n    retryCondition: isNetworkOrIdempotentRequestError,\n    retryDelay: noDelay,\n    shouldResetTimeout: false,\n    onRetry: () => { },\n    onMaxRetryTimesExceeded: () => { },\n    validateResponse: null\n};\nfunction getRequestOptions(config, defaultOptions) {\n    return { ...DEFAULT_OPTIONS, ...defaultOptions, ...config[namespace] };\n}\nfunction setCurrentState(config, defaultOptions, resetLastRequestTime = false) {\n    const currentState = getRequestOptions(config, defaultOptions || {});\n    currentState.retryCount = currentState.retryCount || 0;\n    if (!currentState.lastRequestTime || resetLastRequestTime) {\n        currentState.lastRequestTime = Date.now();\n    }\n    config[namespace] = currentState;\n    return currentState;\n}\nfunction fixConfig(axiosInstance, config) {\n    // @ts-ignore\n    if (axiosInstance.defaults.agent === config.agent) {\n        // @ts-ignore\n        delete config.agent;\n    }\n    if (axiosInstance.defaults.httpAgent === config.httpAgent) {\n        delete config.httpAgent;\n    }\n    if (axiosInstance.defaults.httpsAgent === config.httpsAgent) {\n        delete config.httpsAgent;\n    }\n}\nasync function shouldRetry(currentState, error) {\n    const { retries, retryCondition } = currentState;\n    const shouldRetryOrPromise = (currentState.retryCount || 0) < retries && retryCondition(error);\n    // This could be a promise\n    if (typeof shouldRetryOrPromise === 'object') {\n        try {\n            const shouldRetryPromiseResult = await shouldRetryOrPromise;\n            // keep return true unless shouldRetryPromiseResult return false for compatibility\n            return shouldRetryPromiseResult !== false;\n        }\n        catch (_err) {\n            return false;\n        }\n    }\n    return shouldRetryOrPromise;\n}\nasync function handleRetry(axiosInstance, currentState, error, config) {\n    currentState.retryCount += 1;\n    const { retryDelay, shouldResetTimeout, onRetry } = currentState;\n    const delay = retryDelay(currentState.retryCount, error);\n    // Axios fails merging this configuration to the default configuration because it has an issue\n    // with circular structures: https://github.com/mzabriskie/axios/issues/370\n    fixConfig(axiosInstance, config);\n    if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {\n        const lastRequestDuration = Date.now() - currentState.lastRequestTime;\n        const timeout = config.timeout - lastRequestDuration - delay;\n        if (timeout <= 0) {\n            return Promise.reject(error);\n        }\n        config.timeout = timeout;\n    }\n    config.transformRequest = [(data) => data];\n    await onRetry(currentState.retryCount, error, config);\n    if (config.signal?.aborted) {\n        return Promise.resolve(axiosInstance(config));\n    }\n    return new Promise((resolve) => {\n        const abortListener = () => {\n            clearTimeout(timeout);\n            resolve(axiosInstance(config));\n        };\n        const timeout = setTimeout(() => {\n            resolve(axiosInstance(config));\n            if (config.signal?.removeEventListener) {\n                config.signal.removeEventListener('abort', abortListener);\n            }\n        }, delay);\n        if (config.signal?.addEventListener) {\n            config.signal.addEventListener('abort', abortListener, { once: true });\n        }\n    });\n}\nasync function handleMaxRetryTimesExceeded(currentState, error) {\n    if (currentState.retryCount >= currentState.retries)\n        await currentState.onMaxRetryTimesExceeded(error, currentState.retryCount);\n}\nconst axiosRetry = (axiosInstance, defaultOptions) => {\n    const requestInterceptorId = axiosInstance.interceptors.request.use((config) => {\n        setCurrentState(config, defaultOptions, true);\n        if (config[namespace]?.validateResponse) {\n            // by setting this, all HTTP responses will be go through the error interceptor first\n            config.validateStatus = () => false;\n        }\n        return config;\n    });\n    const responseInterceptorId = axiosInstance.interceptors.response.use(null, async (error) => {\n        const { config } = error;\n        // If we have no information to retry the request\n        if (!config) {\n            return Promise.reject(error);\n        }\n        const currentState = setCurrentState(config, defaultOptions);\n        if (error.response && currentState.validateResponse?.(error.response)) {\n            // no issue with response\n            return error.response;\n        }\n        if (await shouldRetry(currentState, error)) {\n            return handleRetry(axiosInstance, currentState, error, config);\n        }\n        await handleMaxRetryTimesExceeded(currentState, error);\n        return Promise.reject(error);\n    });\n    return { requestInterceptorId, responseInterceptorId };\n};\n// Compatibility with CommonJS\naxiosRetry.isNetworkError = isNetworkError;\naxiosRetry.isSafeRequestError = isSafeRequestError;\naxiosRetry.isIdempotentRequestError = isIdempotentRequestError;\naxiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;\naxiosRetry.exponentialDelay = exponentialDelay;\naxiosRetry.linearDelay = linearDelay;\naxiosRetry.isRetryableError = isRetryableError;\nexport default axiosRetry;\n", "/**\n * Calling FAAS functions.\n */\nimport type {\n    AxiosInstance,\n    AxiosRequestConfig,\n    AxiosRequestHeaders,\n    AxiosResponse,\n    CancelToken,\n} from \"axios\"\nimport {\n    as_AccountUID,\n    AuthInfo,\n    CallFunctionErrorResponse,\n    ClingErrorCode,\n    from_buffer,\n    is_OrganizationUID,\n    is_TeamUID,\n    to_b64url,\n    to_buffer,\n} from \"@cling/lib.shared.model\"\nimport {\n    assert,\n    camel_case_to_underscore,\n    CancelablePromise,\n    extract_path,\n    extract_domain,\n    not_null,\n} from \"@cling/lib.shared.utils\"\nimport axios_limit from \"./axios_limit\"\nimport axios_retry_on_202 from \"./axios_retry_on_202\"\nimport {log} from \"@cling/lib.shared.logging\"\nimport type {UID} from \"@cling/lib.shared.types/common\"\nimport {CallFunctionFailed} from \"@cling/lib.shared.error\"\nimport {Agent as HTTPAgent} from \"http\"\nimport {Agent as HTTPSAgent} from \"https\"\nimport axios_ from \"axios\"\nimport axios_retry from \"axios-retry\"\n\ndeclare const location: {host: string}\n\n/* You can alter every request being made. */\nlet _request_modifier:\n    | ((req: AxiosRequestConfig & {headers: AxiosRequestHeaders}) => void | Promise<void>)\n    | undefined\n\nconst _axios_by_url = new Map<string, AxiosInstance>()\n\nfunction _axios_factory({max_concurrent_requests}: {max_concurrent_requests: number}) {\n    const client = axios_.create(\n        process.env.RUNNING_IN_BROWSER\n            ? {}\n            : {\n                  headers: {\n                      \"x-cling-git-sha\": not_null(process.env.GIT_SHA),\n                  },\n              },\n    )\n    // Note: Order is important here: `axios_limit` must be called *before* `axios_retry`\n    //       Why? If `axios_retry` is called before `axios_limit`, the maximum number of\n    //       concurrent requests is reached and all concurrently running axios request fail,\n    //       then we get stuck: The axios_retry response interceptor returns a `Promise`\n    //       for the retry, therefore the axios_limit response interceptor will not be called\n    //       until that `Promise` is fulfilled. Hence it can not decrement the current number\n    //       of concurrent requests. Therefore the axios request issued after the timeout\n    //       for the retry gets queued in the axios_limit queue and will never resolve.\n    axios_limit(client, {max_concurrent_requests})\n    const retry_condition = (error: any) =>\n        // The check for `ECONNABORTED` matches timed out requests, which are aborted\n        // by Axios. See https://github.com/softonic/axios-retry/issues/39\n        (axios_retry as any).isNetworkOrIdempotentRequestError(error) ||\n        error.code === \"ECONNABORTED\" ||\n        // Retry if the internet connection went away.\n        error.code === \"ERR_NETWORK\" ||\n        // Retry on 429 (is sent by Cloud Run if no instance is ready in time), too.\n        error.response.status === 429 ||\n        // 408 signals that the server wants to shut down the connection.\n        error.response.status === 408\n    if (process.env.RUNNING_IN_BROWSER) {\n        // We use a longer timeout in clients because we have to account for slow networks.\n        client.defaults.timeout = 15000\n        // Retry of failed requests on clients is more resilient, i.e. we try for longer.\n        // See https://github.com/softonic/axios-retry#options\n        axios_retry(client, {\n            retries: 20,\n            // A retry should not count against the overall `client_opts.timeout`.\n            shouldResetTimeout: true,\n            retryCondition: retry_condition,\n            retryDelay: (retry_count: number) => {\n                const delay = 1000 + Math.min(Math.pow(2, retry_count) * 100, 10000)\n                const rand = delay * 0.2 * Math.random() // 0-20% of the delay.\n                return delay + rand\n            },\n        })\n        axios_retry_on_202(client, {retry_delay_min: 1000, retry_delay_max: 10000, retries: 12})\n    } else {\n        // We use a low timeout on internal calls because we don't want long-running FAAS\n        // anyway and developers should not get into that habit. It improves robustness, too,\n        // because we fail fast. That being said, we have to take Cloud Run cold starts\n        // into account and that we might receive some initial 503 which we retry.\n        // Remember: Retries DO COUNT towards the total timeout specified here (unlike when running\n        // in the browser, see above). That's why we don't go too low. 15s is the minimum timeout\n        // we use in all of our Cloud Run services.\n        client.defaults.timeout = parseInt(process.env.F_CALL_FAAS_TIMEOUT!) || 15000\n        // Optimize HTTP requests and reduce DNS traffic.\n        // See https://cloud.google.com/functions/docs/bestpractices/networking\n        client.defaults.httpAgent = new HTTPAgent({keepAlive: true})\n        client.defaults.httpsAgent = new HTTPSAgent({keepAlive: true})\n        // Retrial of failed requests in services is quite conservative -- we want to fail fast(er)\n        // and thus we do not set `shouldResetTimeout`.\n        axios_retry(client, {\n            retries: parseInt(process.env.F_CALL_FAAS_RETRIES!) || 20,\n            retryCondition: retry_condition,\n            retryDelay: (retry_count: number) => {\n                const delay = Math.min(Math.pow(2, retry_count) * 30, 500)\n                const rand = delay * 0.2 * Math.random() // 0-20% of the delay.\n                return delay + rand\n            },\n        })\n        axios_retry_on_202(client, {\n            retry_delay_min: 500,\n            retry_delay_max: 2000,\n            retries: parseInt(process.env.F_CALL_FAAS_RETRIES_ON_202!) || 3,\n        })\n    }\n    return client\n}\n\nexport type CallFunctionOptions = {\n    access_token?: string\n    /**\n     * Custom timeout in ms, must not be greater than 55s as we have a hard 60s limit in\n     * Kubernetes` Ingress anyway. Use with care - the default timeouts are carefully adjusted.\n     */\n    timeout?: number\n    /**\n     * This allows you to modify the Axios request before it is sent out.\n     */\n    request_modifier?: typeof _request_modifier\n    /**\n     * If running on Cloud Run only.\n     */\n    region?: \"eu\" | \"us\"\n    /**\n     * Impersonate a user with the given credentials.\n     */\n    impersonate?: AuthInfo\n}\n\n/**\n * Call another HTTP-function.\n */\nexport function call_function<T>(\n    pb_req: {\n        _to_pb: (args: any) => any\n    },\n    res_type?: {_from_pb: (p: any) => T},\n    opts?: CallFunctionOptions,\n): CancelablePromise<T> {\n    if (_call_function_mock) {\n        return _call_function_mock(pb_req, res_type, opts)\n    }\n    const cancel_token_source = axios_.CancelToken.source()\n    const promise = _call_function(\n        cancel_token_source.token,\n        pb_req,\n        res_type,\n        opts,\n    ) as CancelablePromise<T>\n    promise.cancel = cancel_token_source.cancel.bind(cancel_token_source)\n    return promise\n}\n\nlet _call_function_mock: undefined | false | typeof call_function\nlet _on_401: undefined | ((error: CallFunctionFailed) => void)\n\nasync function _call_function<T>(\n    cancelToken: CancelToken,\n    pb_req: {_to_pb: (args: any) => any},\n    res_type?: {_from_pb: (p: any) => T},\n    opts: CallFunctionOptions = {},\n): Promise<T> {\n    opts = Object.assign({}, opts)\n    let faas_name = camel_case_to_underscore(pb_req.constructor.name)\n    faas_name = faas_name.substring(0, faas_name.length - \"_request\".length)\n    const method = (pb_req.constructor as any).HTTP_METHOD\n    let data: any\n    const params = {} as any\n    const headers = {} as AxiosRequestHeaders\n    if (opts.access_token) {\n        headers.Authorization = `Bearer ${opts.access_token}`\n    }\n    if (opts.impersonate) {\n        headers[\"x-cling-impersonate\"] = build_impersonate_header(opts.impersonate)\n    }\n    if (method === \"GET\") {\n        params.q = to_b64url(pb_req)\n    } else {\n        headers[\"Content-Type\"] = \"application/protobuf\"\n        data = to_buffer(pb_req)\n    }\n    const domain = process.env.RUNNING_IN_BROWSER ? location.host : project_domain()\n    const url = `https://${opts.region || \"eu\"}-run.${domain}/f/${faas_name.replace(/_/g, \"-\")}`\n    const req: AxiosRequestConfig & {headers: AxiosRequestHeaders} = {\n        method,\n        url,\n        headers,\n        params,\n        data,\n        responseType: \"arraybuffer\",\n        cancelToken,\n        // This ensures that our session cookie containing the JWT is sent along.\n        withCredentials: true,\n    }\n    if (opts.timeout) {\n        if (opts.timeout < 5000 || opts.timeout > 65000) {\n            throw new CallFunctionFailed({\n                faas_name,\n                http_status_code: 400,\n                message: `\\`opts.timeout\\` must be between 5000 and 65000, but is ${opts.timeout}`,\n                cling_error_code: ClingErrorCode.invalid_timeout,\n            })\n        }\n        req.timeout = opts.timeout\n    }\n    if (_request_modifier) {\n        await _request_modifier(req)\n    }\n    if (opts.request_modifier) {\n        await opts.request_modifier(req)\n    }\n    let axios = _axios_by_url.get(req.url!)\n    if (!axios) {\n        const max_concurrent_requests = process.env.RUNNING_IN_BROWSER\n            ? (pb_req.constructor as any).MAX_CONCURRENT_FROM_CLIENT || 5\n            : (pb_req.constructor as any).MAX_CONCURRENT_FROM_SERVER || 15\n        axios = _axios_factory({max_concurrent_requests})\n        _axios_by_url.set(req.url!, axios)\n    }\n    log.debug(`HTTP ${method} ${extract_domain(req.url!)}${extract_path(req.url)} ...`)\n    const t0 = Date.now()\n    let call_res: AxiosResponse<Uint8Array>\n    try {\n        call_res = await axios(req)\n        log.debug(\n            `HTTP ${method} ${extract_domain(req.url!)}${extract_path(req.url)} ${\n                call_res.status\n            } (${Date.now() - t0}ms)`,\n        )\n    } catch (error) {\n        const http_status_code = error.response ? error.response.status : 503\n        log.debug(\n            `HTTP ${method} ${extract_domain(req.url!)}${extract_path(\n                req.url,\n            )} ${http_status_code}`,\n        )\n        let error_res: CallFunctionErrorResponse | undefined\n        try {\n            error_res = from_buffer(CallFunctionErrorResponse, error.response.data)\n        } catch {\n            // Ignored.\n        }\n        const cling_error_code = error_res\n            ? error_res.cling_error_code\n            : // We cannot use `categorize_error` here because that is a server-side function.\n              [502, 503, 504].includes(http_status_code)\n              ? ClingErrorCode.temporary\n              : ClingErrorCode.unknown\n        const e = new CallFunctionFailed({\n            faas_name,\n            http_status_code,\n            message: `Failed to call faas ${faas_name}: ${error.message}`,\n            cling_error_code,\n            uids: error_res ? error_res.uids : undefined,\n            error: {\n                stack: error.stack,\n                message: error.message,\n                response: {headers: error.response ? error.response.headers : \"unknown\"},\n            },\n        })\n        if (http_status_code === 401) {\n            _on_401?.(e)\n        }\n        throw e\n    }\n    if (!res_type) {\n        return call_res.data as any\n    }\n    try {\n        return from_buffer(res_type, call_res.data)\n    } catch (error) {\n        const no_content = call_res.status === 204\n        throw new CallFunctionFailed({\n            faas_name,\n            http_status_code: no_content ? 204 : 500,\n            message: no_content ? \"No content\" : \"Failed to parse protobuf\",\n            cling_error_code: ClingErrorCode.invalid_protobuf,\n            error,\n        })\n    }\n}\n\n/**\n * This is a copy of `@cling/lib.server.utils` because we cannot import from there.\n */\nfunction project_domain() {\n    const project = not_null(process.env.PROJECT, \"`env.PROJECT` not set\")\n    const is_dev_project = project.startsWith(\"tkt-dev-\")\n    let domain = \"cling.com\"\n    if (is_dev_project) {\n        domain = `${project.substring(\"tkt-\".length)}.cling.com`\n    }\n    return domain\n}\n\n/**\n * Initialize with a default access-token provider that will be used in `call_function` if no\n * access-token has been given. Furthermore you can give a `req_modifier` that is called with\n * every request being made.\n */\nexport function init({\n    request_modifier,\n    call_function_mock,\n    on_401,\n}: {\n    request_modifier?: typeof _request_modifier\n    call_function_mock?: false | typeof call_function\n    on_401?: (error: CallFunctionFailed) => void\n}) {\n    _request_modifier = request_modifier\n    _call_function_mock = call_function_mock\n    _on_401 = on_401\n    _axios_by_url.clear()\n}\n\nexport function build_impersonate_header({\n    account_uid,\n    team_uids,\n    admin_organization_uids,\n}: AuthInfo): string {\n    const uids = [account_uid as UID].concat(team_uids).concat(admin_organization_uids)\n    return uids.join(\":\")\n}\n\nexport function parse_impersonate_header(impersonate_header: string): AuthInfo {\n    const temp = impersonate_header.split(\":\")\n    const account_uid = as_AccountUID(temp.shift())\n    const team_uids = temp.filter(is_TeamUID)\n    const admin_organization_uids = temp.filter(is_OrganizationUID)\n    assert(\n        temp.length === team_uids.length + admin_organization_uids.length,\n        \"Invalid impersonate header - only AccountUID, TeamUID, or OrganizationUID expected\",\n    )\n    return {account_uid, team_uids, admin_organization_uids}\n}\n", "class SafeStorage implements Storage {\n    private wrapped!: Storage\n\n    constructor(storage_provider: () => Storage) {\n        try {\n            this.wrapped = storage_provider()\n        } catch {\n            // Ignored.\n        }\n    }\n\n    getItem(key: string): string | null {\n        try {\n            return this.wrapped.getItem(key)\n        } catch {\n            return null\n        }\n    }\n    key(index: number): string | null {\n        try {\n            return this.wrapped.key(index)\n        } catch {\n            return null\n        }\n    }\n    get length(): number {\n        try {\n            return this.wrapped.length\n        } catch {\n            return 0\n        }\n    }\n    removeItem(key: string): void {\n        try {\n            this.wrapped.removeItem(key)\n        } catch {\n            // Ignored.\n        }\n    }\n    setItem(key: string, value: string): void {\n        try {\n            this.wrapped.setItem(key, value)\n        } catch {\n            // Ignored.\n        }\n    }\n    clear(): void {\n        try {\n            this.wrapped.clear()\n        } catch {\n            // Ignored.\n        }\n    }\n    [Symbol.iterator]() {\n        return Object.keys(this.wrapped)[Symbol.iterator]()\n    }\n}\n\nexport const safe_session_storage = new SafeStorage(() => sessionStorage)\nexport const safe_local_storage = new SafeStorage(() => localStorage)\n", "import {BoardQuota, BoardInfo, Plan, FeatureSwitch, TeamUID} from \"./model\"\nimport {ClingError} from \"@cling/lib.shared.error/errors\"\nimport {assert_never} from \"@cling/lib.shared.utils\"\n\nexport function is_board_quota_exceeded({\n    quota_limits,\n    quota_usage,\n    ignore,\n}: {\n    quota_limits: BoardQuota\n    quota_usage: BoardQuota\n    ignore?: (keyof BoardQuota)[]\n}): false | keyof BoardQuota {\n    for (const k of Object.keys(quota_limits)) {\n        if (ignore?.includes(k as any)) {\n            continue\n        }\n        const limit_val = (quota_limits as any)[k]\n        if (typeof limit_val === \"number\" && limit_val > 0) {\n            const usage_val = (quota_usage as any)[k] as number\n            if (usage_val > limit_val) {\n                return k as any\n            }\n        }\n    }\n    return false\n}\n\nexport function calculate_board_quota_usage(board_infos: BoardInfo[]) {\n    if (board_infos.length === 0) {\n        return new BoardQuota({num_boards: 0, num_cards: 0, sum_blob_size: 0, max_blob_size: 0})\n    }\n    // TODO: Make BoardInfo.board_stats required after 2020-09-24\n    return new BoardQuota({\n        num_boards: board_infos.filter((x) => x.is_user_board).length,\n        num_cards: board_infos\n            .map(\n                (x) =>\n                    (x.board_stats?.file_cards.num ?? 0) +\n                    (x.board_stats?.note_cards.num ?? 0) +\n                    (x.board_stats?.link_cards.num ?? 0),\n            )\n            .reduce((sum, x) => sum + x, 0),\n        sum_blob_size: board_infos\n            .map(\n                (x) =>\n                    (x.board_stats?.file_cards.sum_blob_size ?? 0) +\n                    (x.board_stats?.file_comments.sum_blob_size ?? 0) +\n                    (x.board_stats?.note_cards.sum_blob_size ?? 0) +\n                    (x.board_stats?.note_comments.sum_blob_size ?? 0) +\n                    (x.board_stats?.link_cards.sum_blob_size ?? 0) +\n                    (x.board_stats?.link_comments.sum_blob_size ?? 0),\n            )\n            .reduce((sum, x) => sum + x, 0),\n        max_blob_size: Math.max(\n            ...board_infos.map((x) =>\n                Math.max(\n                    x.board_stats?.file_cards.max_blob_size ?? 0,\n                    x.board_stats?.file_comments.max_blob_size ?? 0,\n                    x.board_stats?.note_cards.max_blob_size ?? 0,\n                    x.board_stats?.note_comments.max_blob_size ?? 0,\n                    x.board_stats?.link_cards.max_blob_size ?? 0,\n                    x.board_stats?.link_comments.max_blob_size ?? 0,\n                ),\n            ),\n        ),\n    })\n}\n\nexport class QuotaExceeded extends ClingError {\n    constructor(\n        message: string,\n        public quota_name: keyof BoardQuota,\n    ) {\n        super(message, 400)\n        // This is needed according to https://goo.gl/N2zvkR\n        Object.setPrototypeOf(this, QuotaExceeded.prototype)\n    }\n}\n\nexport function board_quota_limits({\n    plan,\n    feature_switches,\n    team_uids,\n}: {\n    plan: Plan\n    feature_switches: FeatureSwitch[]\n    team_uids: TeamUID[]\n}): BoardQuota {\n    if (feature_switches.includes(FeatureSwitch.super_extended_quota)) {\n        return super_extended_quota\n    } else if (team_uids.length > 0) {\n        return quota_team_plan\n    } else if (plan === Plan.free) {\n        if (feature_switches.includes(FeatureSwitch.extended_quota)) {\n            return quota_pro_plan\n        } else {\n            return quota_free_plan\n        }\n    } else if (plan === Plan.pro) {\n        return quota_pro_plan\n    } else {\n        throw assert_never(plan)\n    }\n}\n\nconst quota_free_plan = new BoardQuota({\n    num_boards: 20,\n    num_cards: 2_000,\n    sum_blob_size: 1_000_000_000,\n    max_blob_size: 500_000_000,\n})\n\nconst quota_pro_plan = new BoardQuota({\n    num_boards: 500,\n    num_cards: 100_000,\n    sum_blob_size: 50_000_000_000,\n    max_blob_size: 2_000_000_000,\n})\n\nconst quota_team_plan = new BoardQuota({\n    num_boards: 500,\n    num_cards: 100_000,\n    sum_blob_size: 100_000_000_000,\n    max_blob_size: 2_000_000_000,\n})\n\nconst super_extended_quota = new BoardQuota({\n    num_boards: 500,\n    num_cards: 100_000,\n    sum_blob_size: 500_000_000_000,\n    max_blob_size: 5_000_000_000,\n})\n", "/**\n * A generic `resource` that has access to a `LocalCache` to look up entities. If an entity is not\n * found, a sync is requested.\n */\nimport type {UID} from \"@cling/lib.shared.types/common\"\nimport type {LocalCache} from \"./local_cache\"\nimport {\n    BoardQuota,\n    BoardUID,\n    Board,\n    derive_dashboard_uid,\n    derive_clipboard_uid,\n    derive_trashcan_uid,\n    Patch,\n    TeamMembers,\n    TeamUID,\n    Team,\n    BoardInfo,\n    from_buffer,\n    to_uint8array,\n    deep_copy,\n    AuthInfo,\n} from \"@cling/lib.shared.model\"\nimport {assert, not_null} from \"@cling/lib.shared.utils\"\nimport {action, observable} from \"mobx\"\nimport apply_patch from \"@cling/lib.shared.model.patch/apply\"\nimport {calculate_board_quota_usage} from \"@cling/lib.shared.model/quota\"\n\nexport interface Resource<K extends UID, V> {\n    /**\n     * If a value for `key` is already cached, it will be returned. A sync is requested otherwise\n     * and the value will arrive eventually (if it exists and the user has access to it).\n     * @param key\n     */\n    read(key: K): V | undefined\n    /**\n     * Return everything that is currently synced to this client tab.\n     */\n    read_all(): V[]\n}\n\nexport interface BoardResource extends Resource<BoardUID, Board> {\n    board_quota_usage: Readonly<BoardQuota>\n    dashboard: Board\n    clipboard: Board\n    trashcan: Board\n    wait_for_sync(board_uid: BoardUID): Promise<Board>\n    add_directly_to_cache(board_pbs: Uint8Array[], boards?: Board[]): void\n    apply_local_change(patch: Patch): void\n    remove_local_change(board_uid: BoardUID): boolean\n    discard_cache_entry(board_uid: BoardUID): void\n}\n\nexport function default_resource<K extends UID, V extends {_to_pb: (args: any) => any}>({\n    cache,\n    request_sync,\n}: {\n    cache: LocalCache<K, V>\n    request_sync: (key: K) => void\n}): Resource<K, V> {\n    return {\n        read: (key: K) => {\n            assert(typeof key !== \"undefined\", \"Tried to read an undefined key\")\n            if (cache.has(key)) {\n                return cache.get(key)\n            }\n            request_sync(key)\n        },\n        read_all: () => [...cache.values()],\n    }\n}\n\n/**\n * Because `BoardInfo` should always match `Board.board_info` we build construct resources together.\n */\nexport function board_and_board_info_resource_({\n    board_cache,\n    board_info_cache,\n    request_board_sync,\n    wait_for_board_sync,\n    request_board_info_sync,\n    current_user_auth_info,\n}: {\n    board_cache: LocalCache<BoardUID, Board>\n    board_info_cache: LocalCache<BoardUID, BoardInfo>\n    request_board_sync: (key: UID) => void\n    wait_for_board_sync: (key: UID) => Promise<void>\n    request_board_info_sync: (key: UID) => void\n    current_user_auth_info: () => AuthInfo\n}): {\n    board_resource: BoardResource\n    board_info_resource: Resource<BoardUID, BoardInfo>\n} {\n    const default_board_resource = default_resource({\n        cache: board_cache,\n        request_sync: request_board_sync,\n    })\n    const default_board_info_resource = default_resource({\n        cache: board_info_cache,\n        request_sync: request_board_info_sync,\n    })\n    const dirty_cache = observable.map<BoardUID, Board>()\n    const board_resource: BoardResource = {\n        read: (board_uid: BoardUID) => {\n            const dirty_value = dirty_cache.get(board_uid)\n            if (dirty_value) {\n                return dirty_value\n            }\n            return default_board_resource.read(board_uid)\n        },\n\n        read_all: () => {\n            let values = default_board_resource.read_all()\n            for (const dirty of dirty_cache.values()) {\n                values = values.filter((x) => x.uid !== dirty.uid)\n                values.push(dirty)\n            }\n            return values\n        },\n\n        async wait_for_sync(board_uid: BoardUID) {\n            if (board_cache.has(board_uid)) {\n                return not_null(board_resource.read(board_uid))\n            }\n            await wait_for_board_sync(board_uid)\n            return not_null(board_resource.read(board_uid))\n        },\n\n        get board_quota_usage(): Readonly<BoardQuota> {\n            // Ignore public boards the user has no direct access to.\n            const board_infos = board_info_resource\n                .read_all()\n                .filter((x) => x.acl.entries(current_user_auth_info()).length > 0)\n            return calculate_board_quota_usage(board_infos)\n        },\n\n        get dashboard(): Board {\n            return not_null(\n                board_resource.read(derive_dashboard_uid(current_user_auth_info().account_uid)),\n            )\n        },\n\n        get clipboard(): Board {\n            return not_null(\n                board_resource.read(derive_clipboard_uid(current_user_auth_info().account_uid)),\n            )\n        },\n\n        get trashcan(): Board {\n            return not_null(\n                board_resource.read(derive_trashcan_uid(current_user_auth_info().account_uid)),\n            )\n        },\n\n        add_directly_to_cache: action((board_pbs: Uint8Array[], boards?: Board[]) => {\n            board_pbs.forEach((pb, i) => {\n                const board = boards?.[i] || from_buffer(Board, pb)\n                assert(!board_cache.has(board.uid), \"Board already cached\")\n                board_cache.put(board.uid, pb, board)\n            })\n        }),\n\n        /**\n         * There can only be one local patch per board. If there is already a local change for the\n         * given board, it will be discarded first and then the new patch will be applied.\n         */\n        apply_local_change: action((patch: Patch) => {\n            const board = deep_copy(not_null(board_cache.get(patch.board_uid)))\n            const version = board.version\n            const patched_board = apply_patch(patch, board)\n            assert(patched_board === board, \"`apply_patch` must not create a new board-instance\")\n            // Restore version (local changes do not update the version).\n            board.version = version\n            dirty_cache.set(board.uid, board)\n        }),\n\n        remove_local_change: action((board_uid: BoardUID): boolean => {\n            return dirty_cache.delete(board_uid)\n        }),\n\n        discard_cache_entry: action((board_uid: BoardUID): void => {\n            // Note: We cannot simply call `board_cache.remove(board_uid)` here, because\n            // (1) we have code that expects, that a system board can always be read, and\n            // (2) it's not nice for the UX, if a user board simply disappears.\n            dirty_cache.delete(board_uid)\n            request_board_sync(board_uid)\n        }),\n    }\n    const board_info_resource = {\n        read: (board_uid: BoardUID) => {\n            if (dirty_cache.has(board_uid)) {\n                return dirty_cache.get(board_uid)!.board_info\n            }\n            if (board_cache.has(board_uid)) {\n                return board_cache.get(board_uid)!.board_info\n            }\n            return default_board_info_resource.read(board_uid)\n        },\n        read_all: () => {\n            let values = default_board_info_resource.read_all()\n            for (const board of board_cache.values()) {\n                values = values.filter((x) => x.uid !== board.uid)\n                values.push(board.board_info)\n            }\n            for (const dirty of dirty_cache.values()) {\n                values = values.filter((x) => x.uid !== dirty.uid)\n                values.push(dirty.board_info)\n            }\n            return values\n        },\n    }\n    return {board_resource, board_info_resource}\n}\n\nexport function team_members_resource_({\n    cache,\n    request_sync,\n    current_user_auth_info,\n    team_resource,\n}: {\n    cache: LocalCache<TeamUID, TeamMembers>\n    request_sync: (key: TeamUID) => void\n    current_user_auth_info: () => AuthInfo\n    team_resource: Resource<TeamUID, Team>\n}): Resource<TeamUID, TeamMembers> {\n    return default_resource({\n        cache,\n        /**\n         * Make sure we only request sync if the team is accessible. Otherwise we just use an\n         * empty `TeamMembers` object. Requesting members of an inaccessible team would lead to a\n         * sync error that we don't want to explicitely handle everywhere.\n         */\n        request_sync: (uid) => {\n            const {team_uids, admin_organization_uids} = current_user_auth_info()\n            const user_teams = team_uids.map((x) => team_resource.read(x)) as Team[]\n            const team = team_resource.read(uid)\n            if (user_teams.some((x) => !x) || !team) {\n                // We do not have all team information available. We expect this to be called\n                // again eventually.\n                return\n            }\n            if (\n                user_teams.some((x) => x.accessible_teams.includes(uid)) ||\n                admin_organization_uids.includes(team.organization_uid)\n            ) {\n                request_sync(uid)\n                return\n            }\n            // We are not allowed to query the team members - just use an empty member list.\n            const team_members = new TeamMembers({uid, account_uids: [], version: 1})\n            cache.put(uid, to_uint8array(team_members), team_members)\n        },\n    })\n}\n", "import {\n    Account,\n    AccountAnalytics,\n    AccountAttributes,\n    AccountAuth,\n    AccountSettings,\n    AccountUID,\n    BlobUID,\n    Board,\n    BoardInfo,\n    BoardType,\n    BoardUID,\n    CLING_PUBLIC,\n    Card,\n    Comment,\n    FeatureSwitch,\n    MediaInfo,\n    MeetStatus,\n    Organization,\n    OrganizationMembers,\n    OrganizationUID,\n    SyncEntityType,\n    Team,\n    TeamMembers,\n    TeamUID,\n    URLInfo,\n    URLUID,\n} from \"@cling/lib.shared.model\"\nimport {observable, makeObservable} from \"mobx\"\nimport type {LocalCache} from \"./local_cache\"\nimport type {UID} from \"@cling/lib.shared.types/common\"\nimport {\n    board_and_board_info_resource_,\n    BoardResource,\n    default_resource,\n    Resource,\n    team_members_resource_,\n} from \"./resource\"\nimport {flatten} from \"@cling/lib.shared.utils\"\n\ndeclare const cling: any\n\nexport type ValueOrPromise<T> =\n    | {\n          value: T\n          promise: undefined\n      }\n    | {\n          value: undefined\n          promise: Promise<void>\n      }\n\nexport class CurrentUser {\n    account: Account\n    account_attributes: AccountAttributes\n    account_analytics: AccountAnalytics\n    account_settings: AccountSettings\n    account_auth: AccountAuth\n    is_new: boolean\n    modify_card_permissions?: (args: {\n        board: Board\n        version: number | \"latest\"\n        card: Card\n        permissions: CardPermissions\n    }) => CardPermissions\n    private _global_permissions: GlobalPermissions\n\n    constructor({\n        account,\n        account_attributes,\n        account_analytics,\n        account_settings,\n        account_auth,\n        is_new,\n    }: {\n        account: Account\n        account_attributes: AccountAttributes\n        account_analytics: AccountAnalytics\n        account_settings: AccountSettings\n        account_auth: AccountAuth\n        is_new: boolean\n    }) {\n        this.account = account\n        this.account_attributes = account_attributes\n        this.account_analytics = account_analytics\n        this.account_settings = account_settings\n        this.is_new = is_new\n        this.account_auth = account_auth\n        this._global_permissions = new GlobalPermissionsImpl(this)\n        makeObservable(this, {\n            account: observable,\n            account_attributes: observable,\n            account_analytics: observable,\n            account_settings: observable,\n            account_auth: observable,\n        })\n    }\n\n    /**\n     * Return all UIDs of the teams the user is member of and that are accessible to them.\n     */\n    get visible_team_memberships(): TeamUID[] {\n        const accessible_teams = new Set(\n            flatten(\n                this.account_attributes.team_uids.map(\n                    (x) => team_resource.read(x)?.accessible_teams || [],\n                ),\n            ),\n        )\n        return this.account_attributes.team_uids.filter((x) => accessible_teams.has(x))\n    }\n\n    has_feature_switch(x: FeatureSwitch) {\n        return this.account_attributes.feature_switches.includes(x)\n    }\n\n    board_permissions(board: Board, version: number | \"latest\"): BoardPermissions {\n        return new BoardPermissionsImpl(this, board, version)\n    }\n\n    card_permissions(board: Board, version: number | \"latest\", card: Card): CardPermissions {\n        const permissions = new CardPermissionsImpl(this, board, version, card)\n        if (this.modify_card_permissions) {\n            return this.modify_card_permissions({board, version, card, permissions})\n        }\n        return permissions\n    }\n\n    comment_permissions(board: Board, comment: Comment): CommentPermissions {\n        return new CommentPermissionsImpl(this, board, comment)\n    }\n\n    get global_permissions(): GlobalPermissions {\n        return this._global_permissions\n    }\n}\n\nexport type GlobalPermissions = {\n    readonly can_import_board: boolean\n    readonly can_use_extended_search: boolean\n    readonly could_use_extended_search_in_cling_pro: boolean\n}\n\nexport type BoardPermissions = {\n    readonly can_change_board_settings: boolean\n    readonly can_change_board_common_settings: boolean\n    readonly can_change_board_notification_settings: boolean\n    readonly can_rename_board: boolean\n    readonly can_share_board: boolean\n    readonly can_set_custom_access_level: boolean\n    readonly could_set_custom_access_level_in_cling_pro: boolean\n    readonly can_export_board: boolean\n    readonly could_export_board_in_cling_pro: boolean\n    readonly can_import_data: boolean\n    readonly can_upload_board_background_image: boolean\n    readonly could_upload_board_background_image_in_cling_pro: boolean\n    readonly can_archive_board: boolean\n    readonly can_copy_board: boolean\n    readonly can_remove_board: boolean\n    readonly can_leave_board: boolean\n    readonly can_join_video_meeting: boolean\n    readonly can_view_history: boolean\n    readonly can_view_whole_history: boolean\n    readonly could_view_whole_history: boolean\n}\n\nexport type CardPermissions = {\n    readonly can_add_board: boolean\n    readonly can_add_card: boolean\n    readonly can_edit_card: boolean\n    readonly can_edit_task: boolean\n    readonly can_archive_card: boolean\n    readonly can_add_comment: boolean\n    readonly can_remove_card: boolean\n    readonly can_move_card: boolean\n    readonly can_cut_card: boolean\n    readonly can_copy_card: boolean\n    readonly can_report_abuse: boolean\n}\n\nexport type CommentPermissions = {\n    readonly can_remove_comment: boolean\n}\n\nclass GlobalPermissionsImpl implements GlobalPermissions {\n    constructor(\n        private user: {\n            account_attributes: AccountAttributes\n            has_feature_switch: (x: FeatureSwitch) => boolean\n        },\n    ) {}\n\n    get can_import_board() {\n        return this.user.has_feature_switch(FeatureSwitch.import_board)\n    }\n\n    get can_use_extended_search() {\n        return this.user.account_attributes.has_pro_features\n    }\n\n    get could_use_extended_search_in_cling_pro() {\n        return true\n    }\n}\n\nclass BoardPermissionsImpl implements BoardPermissions {\n    constructor(\n        readonly user: {\n            readonly account: {uid: AccountUID}\n            readonly account_attributes: Readonly<AccountAttributes>\n            has_feature_switch(x: FeatureSwitch): boolean\n        },\n        /**\n         * This has to be the most current version of the board, even if `version` is given.\n         */\n        readonly board: Board,\n        readonly display_version: number | \"latest\",\n    ) {}\n\n    private get _can_edit() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return this.board.acl.can_edit(this.user.account_attributes)\n    }\n\n    get can_change_board_settings() {\n        return this.can_change_board_common_settings || this.can_change_board_notification_settings\n    }\n\n    get can_change_board_common_settings() {\n        return this._can_edit\n    }\n\n    get can_change_board_notification_settings() {\n        return this.board.acl.all.filter((x) => x !== CLING_PUBLIC).length > 1\n    }\n\n    get can_rename_board() {\n        return this.board.board_type === BoardType.regular && this.can_change_board_common_settings\n    }\n\n    get can_share_board() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return (\n            this.board.board_type === BoardType.regular &&\n            this.board.acl.has_full_access(this.user.account_attributes)\n        )\n    }\n\n    get can_set_custom_access_level() {\n        return (\n            this.can_share_board &&\n            (this.user.account_attributes.has_pro_features ||\n                this.user.has_feature_switch(FeatureSwitch.custom_access_level))\n        )\n    }\n\n    get can_copy_board() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return true\n    }\n\n    get could_set_custom_access_level_in_cling_pro() {\n        return this.can_share_board\n    }\n\n    get can_export_board() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return this.user.account_attributes.has_pro_features\n    }\n\n    get could_export_board_in_cling_pro() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return true\n    }\n\n    get can_import_data() {\n        return this.board.is_dashboard_or_user_board && this._can_edit\n    }\n\n    get can_upload_board_background_image() {\n        return (\n            this.user.account_attributes.has_pro_features && this.can_change_board_common_settings\n        )\n    }\n\n    get could_upload_board_background_image_in_cling_pro() {\n        return this.can_change_board_common_settings\n    }\n\n    get can_archive_board() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return !this.board.is_system_board\n    }\n\n    get can_remove_board() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return (\n            this.board.board_type === BoardType.regular &&\n            this.board.owner === this.user.account.uid\n        )\n    }\n\n    get can_join_video_meeting() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return (\n            this.board.acl.all.length > 1 &&\n            this.board.acl.entries(this.user.account_attributes).length > 0\n        )\n    }\n\n    get can_leave_board() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        const current_user_team_uids = new Set(this.user.account_attributes.team_uids)\n        return (\n            this.board.board_type === BoardType.regular &&\n            this.board.owner !== this.user.account.uid &&\n            this.board.acl.all.every((x) => !current_user_team_uids.has(x as any))\n        )\n    }\n\n    get can_view_history() {\n        return (\n            this.board.acl.entries(this.user.account_attributes).length > 0 &&\n            this.board.is_dashboard_or_user_board\n        )\n    }\n\n    get can_view_whole_history() {\n        return this.can_view_history && this.user.account_attributes.has_pro_features\n    }\n\n    get could_view_whole_history() {\n        return this.can_view_history\n    }\n}\n\nclass CardPermissionsImpl implements CardPermissions {\n    constructor(\n        private user: {\n            readonly account: {uid: AccountUID}\n            readonly account_attributes: Readonly<AccountAttributes>\n        },\n        private board: Board,\n        private display_version: number | \"latest\",\n        private card: Card,\n    ) {}\n\n    private get _can_edit() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return this.board.acl.can_edit(this.user.account_attributes)\n    }\n\n    get can_add_board(): boolean {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return (\n            this.board.board_type === BoardType.dashboard &&\n            this.board.acl.has_full_access(this.user.account_attributes)\n        )\n    }\n\n    get can_add_card(): boolean {\n        return this.board.board_type !== BoardType.trashcan && this._can_edit\n    }\n\n    get can_edit_card(): boolean {\n        return !this.card.inbox && !this.card.column && this._can_edit\n    }\n\n    get can_edit_task() {\n        return !this.card.inbox && this._can_edit\n    }\n\n    get can_archive_card() {\n        return (\n            this.card.uid !== this.board.root.uid &&\n            !this.card.column &&\n            !this.card.inbox &&\n            this.board.board_type !== BoardType.trashcan &&\n            this._can_edit\n        )\n    }\n\n    get can_add_comment(): boolean {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return (\n            !this.card.inbox &&\n            !this.card.column &&\n            this.board.acl.can_comment(this.user.account_attributes)\n        )\n    }\n\n    get can_remove_comment(): boolean {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return (\n            this.card.first_change.account_uid === this.user.account.uid ||\n            this.board.acl.has_full_access(this.user.account_attributes)\n        )\n    }\n\n    get can_remove_card() {\n        return !this.card.inbox && !this.card.column && this._can_edit\n    }\n\n    get can_move_card() {\n        return !this.card.inbox && !this.card.column && this._can_edit\n    }\n\n    get can_cut_card() {\n        return (\n            this.can_remove_card && this.board.board_type !== BoardType.clipboard && this._can_edit\n        )\n    }\n\n    get can_copy_card() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        return !process.env.F_PUBLIC && this.card.is_regular_card\n    }\n\n    get can_report_abuse() {\n        if (this.display_version !== \"latest\") {\n            return false\n        }\n        // Only allow to report abuse if the board is not shared directly with the user.\n        return this.board.acl.entries(this.user.account_attributes).length === 0\n    }\n}\n\nclass CommentPermissionsImpl implements CommentPermissions {\n    constructor(\n        private user: {\n            readonly account: {uid: AccountUID}\n            readonly account_attributes: Readonly<AccountAttributes>\n        },\n        private board: Board,\n        private comment: Comment,\n    ) {}\n\n    get can_remove_comment(): boolean {\n        return (\n            (this.comment.first_change.account_uid === this.user.account.uid &&\n                this.board.acl.can_comment(this.user.account_attributes)) ||\n            this.board.acl.has_full_access(this.user.account_attributes)\n        )\n    }\n}\n\nexport interface InitialState {\n    current_user: CurrentUser\n    caches: {\n        [SyncEntityType.board]: LocalCache<BoardUID, Board>\n        [SyncEntityType.board_info]: LocalCache<BoardUID, BoardInfo>\n        [SyncEntityType.account]: LocalCache<AccountUID, Account>\n        [SyncEntityType.account_settings]: LocalCache<AccountUID, AccountSettings>\n        [SyncEntityType.account_attributes]: LocalCache<AccountUID, AccountAttributes>\n        [SyncEntityType.organization]: LocalCache<OrganizationUID, Organization>\n        [SyncEntityType.organization_members]: LocalCache<OrganizationUID, OrganizationMembers>\n        [SyncEntityType.team]: LocalCache<TeamUID, Team>\n        [SyncEntityType.team_members]: LocalCache<TeamUID, TeamMembers>\n        [SyncEntityType.url_info]: LocalCache<URLUID, URLInfo>\n        [SyncEntityType.media_info]: LocalCache<BlobUID, MediaInfo>\n        [SyncEntityType.meet_status]: LocalCache<BoardUID, MeetStatus>\n    }\n    request_sync: (uid: UID, type: SyncEntityType) => void\n    wait_for_sync: (uid: UID, type: SyncEntityType) => Promise<void>\n}\n\nexport let account_resource: Resource<AccountUID, Account>\nexport let board_resource: BoardResource\nexport let media_info_resource: Resource<BlobUID, MediaInfo>\nexport let url_info_resource: Resource<URLUID, URLInfo>\nexport let board_info_resource: Resource<BoardUID, BoardInfo>\nexport let organization_resource: Resource<OrganizationUID, Organization>\nexport let organization_members_resource: Resource<OrganizationUID, OrganizationMembers>\nexport let team_resource: Resource<TeamUID, Team>\nexport let team_members_resource: Resource<TeamUID, TeamMembers>\nexport let meet_status_resource: Resource<BoardUID, MeetStatus>\n\n/**\n * This function is needed because we cannot use something in the line of\n * `Object.getOwnPropertyDescriptors` or `{...p}` or even `JSON.parse(JSON.stringify(...))`\n * The reason is that properties of ES6 classes are not enumerable.\n */\nexport function clone_global_permissions(p: GlobalPermissions) {\n    const res: GlobalPermissions = {\n        can_import_board: p.can_import_board,\n        can_use_extended_search: p.can_use_extended_search,\n        could_use_extended_search_in_cling_pro: p.could_use_extended_search_in_cling_pro,\n    }\n    return res\n}\n\n/**\n * This function is needed because we cannot use something in the line of\n * `Object.getOwnPropertyDescriptors` or `{...p}` or even `JSON.parse(JSON.stringify(...))`\n * The reason is that properties of ES6 classes are not enumerable.\n */\nexport function clone_board_permissions(p: BoardPermissions) {\n    const res: BoardPermissions = {\n        can_change_board_settings: p.can_change_board_settings,\n        can_change_board_common_settings: p.can_change_board_common_settings,\n        can_change_board_notification_settings: p.can_change_board_notification_settings,\n        can_rename_board: p.can_rename_board,\n        can_share_board: p.can_share_board,\n        can_set_custom_access_level: p.can_set_custom_access_level,\n        could_set_custom_access_level_in_cling_pro: p.could_set_custom_access_level_in_cling_pro,\n        can_export_board: p.can_export_board,\n        could_export_board_in_cling_pro: p.could_export_board_in_cling_pro,\n        can_import_data: p.can_import_data,\n        can_upload_board_background_image: p.can_upload_board_background_image,\n        could_upload_board_background_image_in_cling_pro:\n            p.could_upload_board_background_image_in_cling_pro,\n        can_remove_board: p.can_remove_board,\n        can_join_video_meeting: p.can_join_video_meeting,\n        can_view_history: p.can_view_history,\n        can_view_whole_history: p.can_view_whole_history,\n        could_view_whole_history: p.could_view_whole_history,\n        can_archive_board: p.can_archive_board,\n        can_leave_board: p.can_leave_board,\n        can_copy_board: p.can_copy_board,\n    }\n    return res\n}\n\n/**\n * This function is needed because we cannot use something in the line of\n * `Object.getOwnPropertyDescriptors` or `{...p}` or even `JSON.parse(JSON.stringify(...))`\n * The reason is that properties of ES6 classes are not enumerable.\n */\nexport function clone_card_permissions(p: CardPermissions) {\n    const res: CardPermissions = {\n        can_add_board: p.can_add_board,\n        can_add_card: p.can_add_card,\n        can_edit_card: p.can_edit_card,\n        can_edit_task: p.can_edit_task,\n        can_archive_card: p.can_archive_card,\n        can_add_comment: p.can_add_comment,\n        can_remove_card: p.can_remove_card,\n        can_move_card: p.can_move_card,\n        can_cut_card: p.can_cut_card,\n        can_copy_card: p.can_copy_card,\n        can_report_abuse: p.can_report_abuse,\n    }\n    return res\n}\n\n/**\n * This function is needed because we cannot use something in the line of\n * `Object.getOwnPropertyDescriptors` or `{...p}` or even `JSON.parse(JSON.stringify(...))`\n * The reason is that properties of ES6 classes are not enumerable.\n */\nexport function clone_comment_permissions(p: CommentPermissions) {\n    const res: CommentPermissions = {\n        can_remove_comment: p.can_remove_comment,\n    }\n    return res\n}\n\nexport function init(initial_state: InitialState) {\n    const {caches, request_sync, wait_for_sync, current_user} = initial_state\n    const account_cache = caches[SyncEntityType.account]\n    account_resource = default_resource({\n        cache: account_cache,\n        request_sync: (uid) => request_sync(uid, SyncEntityType.account),\n    })\n    organization_resource = default_resource({\n        cache: caches[SyncEntityType.organization],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.organization),\n    })\n    organization_members_resource = default_resource({\n        cache: caches[SyncEntityType.organization_members],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.organization_members),\n    })\n    team_resource = default_resource({\n        cache: caches[SyncEntityType.team],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.team),\n    })\n    team_members_resource = team_members_resource_({\n        cache: caches[SyncEntityType.team_members],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.team_members),\n        team_resource,\n        current_user_auth_info: () => current_user.account_attributes,\n    })\n    const board_cache = caches[SyncEntityType.board]\n    const board_info_cache = caches[SyncEntityType.board_info]\n    const board_and_board_info_resource = board_and_board_info_resource_({\n        board_cache: board_cache,\n        board_info_cache: board_info_cache,\n        request_board_sync: (uid) => request_sync(uid, SyncEntityType.board),\n        wait_for_board_sync: (uid) => wait_for_sync(uid, SyncEntityType.board),\n        request_board_info_sync: (uid) => request_sync(uid, SyncEntityType.board_info),\n        current_user_auth_info: () => current_user.account_attributes,\n    })\n    board_resource = board_and_board_info_resource.board_resource\n    board_info_resource = board_and_board_info_resource.board_info_resource\n    url_info_resource = default_resource({\n        cache: caches[SyncEntityType.url_info],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.url_info),\n    })\n    media_info_resource = default_resource({\n        cache: caches[SyncEntityType.media_info],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.media_info),\n    })\n    meet_status_resource = default_resource({\n        cache: caches[SyncEntityType.meet_status],\n        request_sync: (uid) => request_sync(uid, SyncEntityType.meet_status),\n    })\n    Object.assign(cling, {\n        account_resource,\n        board_resource,\n        board_info_resource,\n        media_info_resource,\n        organization_resource,\n        team_members_resource,\n        team_resource,\n        url_info_resource,\n        meet_status_resource,\n    })\n}\n", "import {\n    BoardUID,\n    BrowserEnv,\n    Checkout,\n    Client,\n    Engagement,\n    EngagementType,\n    Login,\n    PageView,\n    Portal,\n    FeatureSwitch,\n    from_b64url,\n    Locale,\n    Plan,\n    Seen,\n    SignUp,\n    SourceCampaign,\n    SourceCampaignType,\n    TeamUID,\n    to_b64url,\n    UserEvent,\n} from \"@cling/lib.shared.model\"\nimport {report_error} from \"@cling/lib.shared.debug\"\nimport {truncate} from \"@cling/lib.shared.utils\"\nimport {safe_local_storage} from \"@cling/lib.web.utils/safe_storage\"\nimport {query_param} from \"@cling/lib.web.utils/query_param\"\nimport {LIMIT_SMALL_TEXT} from \"@cling/lib.shared.limits\"\n\nlet _seen_factory: () => Seen\nlet _send_user_event: (user_event: UserEvent, browser_env_: BrowserEnv) => void\nlet _current_board_uid: () => BoardUID | undefined\nlet _current_user_info: () => {\n    locale: Locale\n    feature_switches: FeatureSwitch[]\n    team_uids: TeamUID[]\n    plan: Plan | undefined\n    tracking_id: string | undefined\n    cohort_date: Date\n}\nlet _session_start_date: Date\nlet _source_campaign: SourceCampaign | undefined\nlet _client_version: string\n\nexport function report_user_engagement(engagement_type: EngagementType) {\n    return report_user_event({engagement: new Engagement({engagement_type})})\n}\n\nexport function report_user_event(\n    kind: {\n        sign_up?: SignUp\n        login?: Login\n        page_view?: PageView\n        engagement?: Engagement\n        checkout?: Checkout\n        portal?: Portal\n    },\n    opts: {board_uid?: BoardUID} = {},\n): UserEvent {\n    const user_info = _current_user_info()\n    const user_event = new UserEvent({\n        seen: _seen_factory(),\n        board_uid: opts.board_uid || _current_board_uid(),\n        tracking_id: user_info.tracking_id,\n        client_version: _client_version,\n        session_start_date: _session_start_date,\n        feature_switches: user_info.feature_switches,\n        team_uids: user_info.team_uids,\n        plan: user_info.plan,\n        source_campaign: _source_campaign,\n        cohort_date: user_info.cohort_date,\n        ...kind,\n    })\n    if (process.env.NODE_ENV === \"test\") {\n        return user_event\n    }\n    try {\n        _send_user_event(user_event, browser_env(user_info.locale))\n    } catch (error) {\n        report_error(\"Failed to report user event\", error)\n    }\n    return user_event\n}\n\nexport function parse_source_campaign() {\n    _source_campaign = source_campaign_of_current_session()\n    if (_source_campaign) {\n        return\n    }\n    const gclid = query_param(\"gclid\")\n    const source = query_param(\"utm_source\") || (gclid ? \"google_adwords\" : undefined)\n    if (!source) {\n        return\n    }\n    store_source_campaign_to_local_storage(\n        new SourceCampaign({\n            type: gclid\n                ? SourceCampaignType.google_adwords\n                : query_param(\"utm_type\") === \"affiliate\"\n                  ? SourceCampaignType.affiliate\n                  : SourceCampaignType.other,\n            source,\n            medium: query_param(\"utm_medium\"),\n            name: query_param(\"utm_campaign\"),\n            content: query_param(\"utm_content\"),\n            term: query_param(\"utm_term\"),\n            ad_group: query_param(\"adgroup\"),\n            match_type: query_param(\"matchtype\"),\n            device: query_param(\"device\"),\n            id: gclid,\n        }),\n    )\n}\n\n/**\n * Sometime we get the source campagin from the backend, so we want\n * to save it for later use.\n */\nexport function store_source_campaign_to_local_storage(source_campaign: SourceCampaign) {\n    _source_campaign = source_campaign\n    safe_local_storage.setItem(\"lib.web.analytics.source_campaign\", to_b64url(_source_campaign))\n}\n\nexport function init({\n    client,\n    client_version,\n    current_user_info,\n    current_board_uid,\n    send_user_event,\n}: {\n    client: Client\n    client_version: string\n    current_board_uid: () => BoardUID | undefined\n    current_user_info: typeof _current_user_info\n    send_user_event: typeof _send_user_event\n}) {\n    _seen_factory = () => new Seen({date: new Date(Date.now()), client})\n    _send_user_event = send_user_event\n    _current_board_uid = current_board_uid\n    _current_user_info = current_user_info\n    _client_version = client_version\n    let session_start_timestamp = parseInt(\n        safe_local_storage.getItem(\"lib.web.analytics.session_start_date\") ?? \"0\",\n    )\n    if (session_start_timestamp === 0 || Date.now() - session_start_timestamp > 8 * 3_600_000) {\n        // A session has a max ttl of 8 hours.\n        session_start_timestamp = Date.now()\n        safe_local_storage.setItem(\n            \"lib.web.analytics.session_start_date\",\n            \"\" + session_start_timestamp,\n        )\n    }\n    _session_start_date = new Date(session_start_timestamp)\n    if (!_source_campaign) {\n        _source_campaign = source_campaign_of_current_session()\n    }\n}\n\nexport function source_campaign_of_current_session() {\n    const s = safe_local_storage.getItem(\"lib.web.analytics.source_campaign\")\n    if (s) {\n        try {\n            return from_b64url(SourceCampaign, s)\n        } catch {\n            // Ignored\n        }\n    }\n    return undefined\n}\n\nfunction viewport_size(): string {\n    // Adapted from http://bit.ly/1lekTpD\n    const M = document,\n        c = M.documentElement,\n        e = M.body,\n        g = e && e.clientWidth && e.clientHeight\n    let ca: Array<number> = []\n    if (c && c.clientWidth && c.clientHeight && (\"CSS1Compat\" === M.compatMode || !g)) {\n        ca = [c.clientWidth, c.clientHeight]\n    } else if (g) {\n        ca = [e.clientWidth, e.clientHeight]\n    }\n    return 0 >= ca[0] || 0 >= ca[1] ? \"\" : ca.join(\"x\")\n}\n\nfunction browser_env(locale: Locale): BrowserEnv {\n    // Adapted from http://bit.ly/1lekTpD\n    const M = document,\n        O = window,\n        b = O.navigator as any,\n        c = O.screen,\n        d = M.location!\n    let e = d.pathname || \"\"\n    if (e.charAt(0) !== \"/\") {\n        e = \"/\" + e\n    }\n    return new BrowserEnv({\n        document_location: truncate(\n            d.protocol + \"//\" + d.hostname + e,\n            LIMIT_SMALL_TEXT.upper_bound,\n        ),\n        screen_resolution: c.width + \"x\" + c.height,\n        screen_color_depth: c.colorDepth + \"-bit\",\n        viewport_size: viewport_size(),\n        user_agent: truncate(b.userAgent, LIMIT_SMALL_TEXT.upper_bound),\n        user_locale: locale,\n        document_referrer: truncate(M.referrer, LIMIT_SMALL_TEXT.upper_bound),\n        document_title: truncate(M.title, LIMIT_SMALL_TEXT.upper_bound),\n    })\n}\n"],
  "mappings": "uhBAAA,IAAAA,GAAAC,GAAA,CAAAC,GAAAC,KAAA,cAEA,IAAMC,GAAW,IAAI,IAAI,CACxB,YACA,cAGA,4BACA,oBACA,mCACA,kCACA,qCACA,yBACA,wBACA,qBACA,mBACA,oBACA,kBACA,iCACA,gCACA,iCACA,iCACA,aACA,8BACA,4BACA,oCACA,kCACA,sBACA,eACA,aACA,uBACA,kBACA,iBACA,gBACA,mBACD,CAAC,EAGDD,GAAO,QAAUE,GAAS,CAACD,GAAS,IAAIC,GAASA,EAAM,IAAI,ICtC3D,IAAAC,GAAAC,GAAA,CAAAC,GAAAC,KAAA,cASA,IAAIC,GAAuB,+CAE3BD,GAAO,QAAUC,KCXjB,IAAAC,GAAAC,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C,EAAAM,GAAA",
  "names": ["require_is_retry_allowed", "__commonJSMin", "exports", "module", "denyList", "error", "require_ReactPropTypesSecret", "__commonJSMin", "exports", "module", "ReactPropTypesSecret", "require_factoryWithThrowingShims", "__commonJSMin", "exports", "module", "ReactPropTypesSecret", "emptyFunction", "__name", "emptyFunctionWithReset", "shim", "props", "propName", "componentName", "location", "propFullName", "secret", "err", "getShim", "ReactPropTypes", "require_prop_types", "__commonJSMin", "exports", "module", "ReactIs", "throwOnDirectAccess", "DEFAULT_OPTIONS", "axios_limit", "axios", "options", "max_concurrent_requests", "assert", "pending_requests", "config", "resolve", "interval", "response", "error", "__name", "axios_retry_on_202", "axios", "options", "res", "config", "retry_config", "delay", "data", "fix_config", "resolve", "log", "extract_path", "__name", "bind", "fn", "thisArg", "__name", "toString", "getPrototypeOf", "kindOf", "cache", "thing", "str", "kindOfTest", "__name", "type", "typeOfTest", "isArray", "isUndefined", "isBuffer", "val", "isFunction", "isArrayBuffer", "isArrayBufferView", "result", "isString", "isNumber", "isObject", "isBoolean", "isPlainObject", "prototype", "isDate", "isFile", "isBlob", "isFileList", "isStream", "isFormData", "kind", "isURLSearchParams", "isReadableStream", "isRequest", "isResponse", "isHeaders", "trim", "forEach", "obj", "fn", "allOwnKeys", "i", "l", "keys", "len", "key", "findKey", "_key", "_global", "isContextDefined", "context", "merge", "caseless", "assignValue", "targetKey", "extend", "a", "b", "thisArg", "bind", "stripBOM", "content", "inherits", "constructor", "superConstructor", "props", "descriptors", "toFlatObject", "sourceObj", "destObj", "filter", "propFilter", "prop", "merged", "endsWith", "searchString", "position", "lastIndex", "toArray", "arr", "isTypedArray", "TypedArray", "forEachEntry", "iterator", "pair", "matchAll", "regExp", "matches", "isHTMLForm", "toCamelCase", "m", "p1", "p2", "hasOwnProperty", "isRegExp", "reduceDescriptors", "reducer", "reducedDescriptors", "descriptor", "name", "ret", "freezeMethods", "value", "toObjectSet", "arrayOrString", "delimiter", "define", "noop", "toFiniteNumber", "defaultValue", "ALPHA", "DIGIT", "ALPHABET", "generateString", "size", "alphabet", "length", "isSpecCompliantForm", "toJSONObject", "stack", "visit", "source", "target", "reducedValue", "isAsyncFn", "isThenable", "_setImmediate", "setImmediateSupported", "postMessageSupported", "token", "callbacks", "data", "cb", "asap", "utils_default", "AxiosError", "message", "code", "config", "request", "response", "__name", "utils_default", "prototype", "descriptors", "error", "customProps", "axiosError", "obj", "prop", "AxiosError_default", "null_default", "isVisitable", "thing", "utils_default", "__name", "removeBrackets", "key", "renderKey", "path", "dots", "token", "i", "isFlatArray", "arr", "predicates", "prop", "toFormData", "obj", "formData", "options", "null_default", "option", "source", "metaTokens", "visitor", "defaultVisitor", "indexes", "useBlob", "convertValue", "value", "AxiosError_default", "el", "index", "stack", "exposedHelpers", "build", "toFormData_default", "encode", "str", "charMap", "__name", "match", "AxiosURLSearchParams", "params", "options", "toFormData_default", "prototype", "name", "value", "encoder", "_encode", "pair", "AxiosURLSearchParams_default", "encode", "val", "__name", "buildURL", "url", "params", "options", "_encode", "utils_default", "serializeFn", "serializedParams", "AxiosURLSearchParams_default", "hashmarkIndex", "_InterceptorManager", "fulfilled", "rejected", "options", "id", "fn", "utils_default", "__name", "h", "InterceptorManager", "InterceptorManager_default", "transitional_default", "URLSearchParams_default", "AxiosURLSearchParams_default", "FormData_default", "Blob_default", "browser_default", "URLSearchParams_default", "FormData_default", "Blob_default", "utils_exports", "__export", "hasBrowserEnv", "hasStandardBrowserEnv", "hasStandardBrowserWebWorkerEnv", "_navigator", "origin", "platform_default", "utils_exports", "browser_default", "toURLEncodedForm", "data", "options", "toFormData_default", "platform_default", "__name", "value", "key", "path", "helpers", "utils_default", "parsePropPath", "name", "utils_default", "match", "__name", "arrayToObject", "arr", "obj", "keys", "i", "len", "key", "formDataToJSON", "formData", "buildPath", "path", "value", "target", "index", "isNumericKey", "isLast", "formDataToJSON_default", "stringifySafely", "rawValue", "parser", "encoder", "utils_default", "e", "__name", "defaults", "transitional_default", "data", "headers", "contentType", "hasJSONContentType", "isObjectPayload", "formDataToJSON_default", "isFileList", "toURLEncodedForm", "_FormData", "toFormData_default", "transitional", "forcedJSONParsing", "JSONRequested", "strictJSONParsing", "AxiosError_default", "platform_default", "status", "method", "defaults_default", "ignoreDuplicateOf", "utils_default", "parseHeaders_default", "__name", "rawHeaders", "parsed", "key", "val", "i", "line", "$internals", "normalizeHeader", "header", "__name", "normalizeValue", "value", "utils_default", "parseTokens", "str", "tokens", "tokensRE", "match", "isValidHeaderName", "matchHeaderValue", "context", "filter", "isHeaderNameFilter", "formatHeader", "w", "char", "buildAccessors", "obj", "accessorName", "methodName", "arg1", "arg2", "arg3", "_AxiosHeaders", "headers", "valueOrRewrite", "rewrite", "self", "setHeader", "_value", "_header", "_rewrite", "lHeader", "key", "setHeaders", "parseHeaders_default", "parser", "matcher", "deleted", "deleteHeader", "keys", "i", "format", "normalized", "targets", "asStrings", "thing", "first", "computed", "target", "accessors", "prototype", "defineAccessor", "AxiosHeaders", "mapped", "headerValue", "AxiosHeaders_default", "transformData", "fns", "response", "config", "defaults_default", "context", "headers", "AxiosHeaders_default", "data", "utils_default", "__name", "fn", "isCancel", "value", "__name", "CanceledError", "message", "config", "request", "AxiosError_default", "__name", "utils_default", "CanceledError_default", "settle", "resolve", "reject", "response", "validateStatus", "AxiosError_default", "__name", "parseProtocol", "url", "match", "__name", "speedometer", "samplesCount", "min", "bytes", "timestamps", "head", "tail", "firstSampleTS", "__name", "chunkLength", "now", "startedAt", "i", "bytesCount", "passed", "speedometer_default", "throttle", "fn", "freq", "timestamp", "threshold", "lastArgs", "timer", "invoke", "__name", "args", "now", "passed", "throttle_default", "progressEventReducer", "__name", "listener", "isDownloadStream", "freq", "bytesNotified", "_speedometer", "speedometer_default", "throttle_default", "e", "loaded", "total", "progressBytes", "rate", "inRange", "data", "progressEventDecorator", "throttled", "lengthComputable", "asyncDecorator", "fn", "args", "utils_default", "isURLSameOrigin_default", "platform_default", "origin", "isMSIE", "url", "cookies_default", "platform_default", "name", "value", "expires", "path", "domain", "secure", "cookie", "utils_default", "match", "isAbsoluteURL", "url", "__name", "combineURLs", "baseURL", "relativeURL", "__name", "buildFullPath", "baseURL", "requestedURL", "isAbsoluteURL", "combineURLs", "__name", "headersToObject", "__name", "thing", "AxiosHeaders_default", "mergeConfig", "config1", "config2", "config", "getMergedValue", "target", "source", "prop", "caseless", "utils_default", "mergeDeepProperties", "a", "b", "valueFromConfig2", "defaultToConfig2", "mergeDirectKeys", "mergeMap", "merge", "configValue", "resolveConfig_default", "__name", "config", "newConfig", "mergeConfig", "data", "withXSRFToken", "xsrfHeaderName", "xsrfCookieName", "headers", "auth", "AxiosHeaders_default", "buildURL", "buildFullPath", "contentType", "utils_default", "platform_default", "type", "tokens", "token", "isURLSameOrigin_default", "xsrfValue", "cookies_default", "isXHRAdapterSupported", "xhr_default", "config", "__name", "resolve", "reject", "_config", "resolveConfig_default", "requestData", "requestHeaders", "AxiosHeaders_default", "responseType", "onUploadProgress", "onDownloadProgress", "onCanceled", "uploadThrottled", "downloadThrottled", "flushUpload", "flushDownload", "done", "request", "onloadend", "responseHeaders", "response", "settle", "value", "err", "AxiosError_default", "timeoutErrorMessage", "transitional", "transitional_default", "utils_default", "val", "key", "progressEventReducer", "cancel", "CanceledError_default", "protocol", "parseProtocol", "platform_default", "composeSignals", "__name", "signals", "timeout", "length", "controller", "aborted", "onabort", "reason", "unsubscribe", "err", "AxiosError_default", "CanceledError_default", "timer", "signal", "utils_default", "composeSignals_default", "streamChunk", "__name", "chunk", "chunkSize", "len", "pos", "end", "readBytes", "iterable", "readStream", "stream", "reader", "done", "value", "trackStream", "onProgress", "onFinish", "iterator", "bytes", "_onFinish", "e", "controller", "loadedBytes", "err", "reason", "isFetchSupported", "isReadableStreamSupported", "encodeText", "encoder", "str", "test", "__name", "fn", "args", "supportsRequestStream", "duplexAccessed", "hasContentType", "platform_default", "DEFAULT_CHUNK_SIZE", "supportsResponseStream", "utils_default", "resolvers", "res", "type", "_", "config", "AxiosError_default", "getBodyLength", "body", "resolveBodyLength", "headers", "length", "fetch_default", "url", "method", "data", "signal", "cancelToken", "timeout", "onDownloadProgress", "onUploadProgress", "responseType", "withCredentials", "fetchOptions", "resolveConfig_default", "composedSignal", "composeSignals_default", "request", "unsubscribe", "requestContentLength", "_request", "contentTypeHeader", "onProgress", "flush", "progressEventDecorator", "progressEventReducer", "asyncDecorator", "trackStream", "isCredentialsSupported", "response", "isStreamResponse", "options", "prop", "responseContentLength", "responseData", "resolve", "reject", "settle", "AxiosHeaders_default", "err", "knownAdapters", "null_default", "xhr_default", "fetch_default", "utils_default", "fn", "value", "renderReason", "__name", "reason", "isResolvedHandle", "adapter", "adapters_default", "adapters", "length", "nameOrAdapter", "rejectedReasons", "i", "id", "AxiosError_default", "reasons", "state", "s", "throwIfCancellationRequested", "config", "CanceledError_default", "__name", "dispatchRequest", "AxiosHeaders_default", "transformData", "adapters_default", "defaults_default", "response", "reason", "isCancel", "VERSION", "validators", "type", "i", "__name", "thing", "deprecatedWarnings", "validator", "version", "message", "formatMessage", "opt", "desc", "VERSION", "value", "opts", "AxiosError_default", "correctSpelling", "assertOptions", "options", "schema", "allowUnknown", "keys", "result", "validator_default", "validators", "validator_default", "_Axios", "instanceConfig", "InterceptorManager_default", "configOrUrl", "config", "err", "dummy", "stack", "mergeConfig", "transitional", "paramsSerializer", "headers", "utils_default", "contextHeaders", "method", "AxiosHeaders_default", "requestInterceptorChain", "synchronousRequestInterceptors", "__name", "interceptor", "responseInterceptorChain", "promise", "i", "len", "chain", "dispatchRequest", "newConfig", "onFulfilled", "onRejected", "error", "fullPath", "buildFullPath", "buildURL", "Axios", "url", "generateHTTPMethod", "isForm", "data", "Axios_default", "_CancelToken", "executor", "resolvePromise", "__name", "resolve", "token", "cancel", "i", "onfulfilled", "_resolve", "promise", "message", "config", "request", "CanceledError_default", "listener", "index", "controller", "abort", "err", "c", "CancelToken", "CancelToken_default", "spread", "callback", "__name", "arr", "isAxiosError", "payload", "utils_default", "__name", "HttpStatusCode", "key", "value", "HttpStatusCode_default", "createInstance", "defaultConfig", "context", "Axios_default", "instance", "bind", "utils_default", "__name", "instanceConfig", "mergeConfig", "axios", "defaults_default", "CanceledError_default", "CancelToken_default", "isCancel", "VERSION", "toFormData_default", "AxiosError_default", "promises", "spread", "isAxiosError", "AxiosHeaders_default", "thing", "formDataToJSON_default", "adapters_default", "HttpStatusCode_default", "axios_default", "Axios", "AxiosError", "CanceledError", "isCancel", "CancelToken", "VERSION", "all", "Cancel", "isAxiosError", "spread", "toFormData", "AxiosHeaders", "HttpStatusCode", "formToJSON", "getAdapter", "mergeConfig", "axios_default", "import_is_retry_allowed", "namespace", "isNetworkError", "error", "CODE_EXCLUDE_LIST", "isRetryAllowed", "__name", "SAFE_HTTP_METHODS", "IDEMPOTENT_HTTP_METHODS", "isRetryableError", "isSafeRequestError", "isIdempotentRequestError", "isNetworkOrIdempotentRequestError", "retryAfter", "retryAfterHeader", "retryAfterMs", "noDelay", "_retryNumber", "exponentialDelay", "retryNumber", "delayFactor", "calculatedDelay", "delay", "randomSum", "linearDelay", "DEFAULT_OPTIONS", "getRequestOptions", "config", "defaultOptions", "setCurrentState", "resetLastRequestTime", "currentState", "fixConfig", "axiosInstance", "shouldRetry", "retries", "retryCondition", "shouldRetryOrPromise", "handleRetry", "retryDelay", "shouldResetTimeout", "onRetry", "lastRequestDuration", "timeout", "data", "resolve", "abortListener", "handleMaxRetryTimesExceeded", "axiosRetry", "requestInterceptorId", "responseInterceptorId", "esm_default", "_request_modifier", "_axios_by_url", "_axios_factory", "max_concurrent_requests", "client", "axios_default", "axios_limit", "retry_condition", "__name", "error", "esm_default", "retry_count", "delay", "rand", "axios_retry_on_202", "call_function", "pb_req", "res_type", "opts", "_call_function_mock", "cancel_token_source", "promise", "_call_function", "_on_401", "cancelToken", "faas_name", "camel_case_to_underscore", "method", "data", "params", "headers", "build_impersonate_header", "to_b64url", "to_buffer", "domain", "url", "req", "CallFunctionFailed", "axios", "log", "extract_domain", "extract_path", "t0", "call_res", "http_status_code", "error_res", "from_buffer", "CallFunctionErrorResponse", "cling_error_code", "e", "no_content", "init", "request_modifier", "call_function_mock", "on_401", "_request_modifier", "_call_function_mock", "_on_401", "_axios_by_url", "__name", "build_impersonate_header", "account_uid", "team_uids", "admin_organization_uids", "_SafeStorage", "storage_provider", "__publicField", "key", "index", "value", "__name", "SafeStorage", "safe_session_storage", "safe_local_storage", "calculate_board_quota_usage", "board_infos", "BoardQuota", "x", "sum", "__name", "board_quota_limits", "plan", "feature_switches", "team_uids", "super_extended_quota", "quota_team_plan", "quota_pro_plan", "quota_free_plan", "assert_never", "__name", "BoardQuota", "default_resource", "cache", "request_sync", "__name", "key", "assert", "board_and_board_info_resource_", "board_cache", "board_info_cache", "request_board_sync", "wait_for_board_sync", "request_board_info_sync", "current_user_auth_info", "default_board_resource", "default_board_info_resource", "dirty_cache", "observable", "board_resource", "board_uid", "dirty_value", "values", "dirty", "x", "not_null", "board_infos", "board_info_resource", "calculate_board_quota_usage", "derive_dashboard_uid", "derive_clipboard_uid", "derive_trashcan_uid", "action", "board_pbs", "boards", "pb", "i", "board", "from_buffer", "Board", "patch", "deep_copy", "version", "patched_board", "apply_patch", "team_members_resource_", "team_resource", "uid", "team_uids", "admin_organization_uids", "user_teams", "team", "team_members", "TeamMembers", "to_uint8array", "_CurrentUser", "account", "account_attributes", "account_analytics", "account_settings", "account_auth", "is_new", "__publicField", "GlobalPermissionsImpl", "makeObservable", "observable", "accessible_teams", "flatten", "x", "team_resource", "board", "version", "BoardPermissionsImpl", "card", "permissions", "CardPermissionsImpl", "comment", "CommentPermissionsImpl", "__name", "CurrentUser", "_GlobalPermissionsImpl", "user", "_BoardPermissionsImpl", "display_version", "CLING_PUBLIC", "current_user_team_uids", "_CardPermissionsImpl", "_CommentPermissionsImpl", "account_resource", "board_resource", "media_info_resource", "url_info_resource", "board_info_resource", "organization_resource", "organization_members_resource", "team_members_resource", "meet_status_resource", "init", "initial_state", "caches", "request_sync", "wait_for_sync", "current_user", "account_cache", "account_resource", "default_resource", "__name", "uid", "organization_resource", "organization_members_resource", "team_resource", "team_members_resource", "team_members_resource_", "board_cache", "board_info_cache", "board_and_board_info_resource", "board_and_board_info_resource_", "board_resource", "board_info_resource", "url_info_resource", "media_info_resource", "meet_status_resource", "_seen_factory", "_send_user_event", "_current_board_uid", "_current_user_info", "_session_start_date", "_source_campaign", "_client_version", "report_user_engagement", "engagement_type", "report_user_event", "Engagement", "__name", "kind", "opts", "user_info", "user_event", "UserEvent", "browser_env", "error", "report_error", "parse_source_campaign", "source_campaign_of_current_session", "gclid", "query_param", "source", "store_source_campaign_to_local_storage", "SourceCampaign", "source_campaign", "safe_local_storage", "to_b64url", "init", "client", "client_version", "current_user_info", "current_board_uid", "send_user_event", "Seen", "session_start_timestamp", "s", "from_b64url", "viewport_size", "M", "c", "e", "g", "ca", "locale", "O", "b", "d", "BrowserEnv", "truncate", "LIMIT_SMALL_TEXT"]
}