{"ast":null,"code":"import utils from '../utils.js';\nimport platform from '../platform/index.js';\nexport default platform.hasStandardBrowserEnv ?\n// Standard browser envs support document.cookie\n{\n  write(name, value, expires, path, domain, secure, sameSite) {\n    if (typeof document === 'undefined') return;\n    const cookie = [`${name}=${encodeURIComponent(value)}`];\n    if (utils.isNumber(expires)) {\n      cookie.push(`expires=${new Date(expires).toUTCString()}`);\n    }\n    if (utils.isString(path)) {\n      cookie.push(`path=${path}`);\n    }\n    if (utils.isString(domain)) {\n      cookie.push(`domain=${domain}`);\n    }\n    if (secure === true) {\n      cookie.push('secure');\n    }\n    if (utils.isString(sameSite)) {\n      cookie.push(`SameSite=${sameSite}`);\n    }\n    document.cookie = cookie.join('; ');\n  },\n  read(name) {\n    if (typeof document === 'undefined') return null;\n    const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));\n    return match ? decodeURIComponent(match[1]) : null;\n  },\n  remove(name) {\n    this.write(name, '', Date.now() - 86400000, '/');\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};","map":{"version":3,"names":["utils","platform","hasStandardBrowserEnv","write","name","value","expires","path","domain","secure","sameSite","document","cookie","encodeURIComponent","isNumber","push","Date","toUTCString","isString","join","read","match","RegExp","decodeURIComponent","remove","now"],"sources":["/Users/nili/Documents/trae_projects/client/node_modules/axios/lib/helpers/cookies.js"],"sourcesContent":["import utils from '../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv\n  ? // Standard browser envs support document.cookie\n    {\n      write(name, value, expires, path, domain, secure, sameSite) {\n        if (typeof document === 'undefined') return;\n\n        const cookie = [`${name}=${encodeURIComponent(value)}`];\n\n        if (utils.isNumber(expires)) {\n          cookie.push(`expires=${new Date(expires).toUTCString()}`);\n        }\n        if (utils.isString(path)) {\n          cookie.push(`path=${path}`);\n        }\n        if (utils.isString(domain)) {\n          cookie.push(`domain=${domain}`);\n        }\n        if (secure === true) {\n          cookie.push('secure');\n        }\n        if (utils.isString(sameSite)) {\n          cookie.push(`SameSite=${sameSite}`);\n        }\n\n        document.cookie = cookie.join('; ');\n      },\n\n      read(name) {\n        if (typeof document === 'undefined') return null;\n        const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));\n        return match ? decodeURIComponent(match[1]) : null;\n      },\n\n      remove(name) {\n        this.write(name, '', Date.now() - 86400000, '/');\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"],"mappings":"AAAA,OAAOA,KAAK,MAAM,aAAa;AAC/B,OAAOC,QAAQ,MAAM,sBAAsB;AAE3C,eAAeA,QAAQ,CAACC,qBAAqB;AACzC;AACA;EACEC,KAAKA,CAACC,IAAI,EAAEC,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,EAAE;IAC1D,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;IAErC,MAAMC,MAAM,GAAG,CAAC,GAAGR,IAAI,IAAIS,kBAAkB,CAACR,KAAK,CAAC,EAAE,CAAC;IAEvD,IAAIL,KAAK,CAACc,QAAQ,CAACR,OAAO,CAAC,EAAE;MAC3BM,MAAM,CAACG,IAAI,CAAC,WAAW,IAAIC,IAAI,CAACV,OAAO,CAAC,CAACW,WAAW,CAAC,CAAC,EAAE,CAAC;IAC3D;IACA,IAAIjB,KAAK,CAACkB,QAAQ,CAACX,IAAI,CAAC,EAAE;MACxBK,MAAM,CAACG,IAAI,CAAC,QAAQR,IAAI,EAAE,CAAC;IAC7B;IACA,IAAIP,KAAK,CAACkB,QAAQ,CAACV,MAAM,CAAC,EAAE;MAC1BI,MAAM,CAACG,IAAI,CAAC,UAAUP,MAAM,EAAE,CAAC;IACjC;IACA,IAAIC,MAAM,KAAK,IAAI,EAAE;MACnBG,MAAM,CAACG,IAAI,CAAC,QAAQ,CAAC;IACv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