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AQ,OAAO,OAAO,OAAO,OAAO,CAAC,EAAG,GAAY,CAAE,OACtE,WACA,SACR,EAC0B,iBAAf,WACP,WAAW,QAAU,SAAS,QAET,iBAAT,OACZ,KAAK,QAAU,SAAS,SAE5B,aAAa,QAAQ,YAAa,SAClC,QAAQ,QAAU,SAAS","file":"/npm/@arconnect/arweave@1.11.6/web/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@arconnect/arweave@1.11.6/web/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst common_1 = require(\"./common\");\ncommon_1.default.init = function (apiConfig = {}) {\n    function getDefaultConfig() {\n        const defaults = {\n            host: \"arweave.net\",\n            port: 443,\n            protocol: \"https\",\n        };\n        if (typeof location !== \"object\" ||\n            !location.protocol ||\n            !location.hostname) {\n            return defaults;\n        }\n        // window.location.protocol has a trailing colon (http:, https:, file: etc)\n        const currentProtocol = location.protocol.replace(\":\", \"\");\n        const currentHost = location.hostname;\n        const currentPort = location.port\n            ? parseInt(location.port)\n            : currentProtocol == \"https\"\n                ? 443\n                : 80;\n        const isLocal = [\"localhost\", \"127.0.0.1\"].includes(currentHost) ||\n            currentProtocol == \"file\";\n        // If we're running in what looks like a local dev environment\n        // then default to using arweave.net\n        if (isLocal) {\n            return defaults;\n        }\n        return {\n            host: currentHost,\n            port: currentPort,\n            protocol: currentProtocol,\n        };\n    }\n    const defaultConfig = getDefaultConfig();\n    const protocol = apiConfig.protocol || defaultConfig.protocol;\n    const host = apiConfig.host || defaultConfig.host;\n    const port = apiConfig.port || defaultConfig.port;\n    return new common_1.default(Object.assign(Object.assign({}, apiConfig), { host,\n        protocol,\n        port }));\n};\nif (typeof globalThis === \"object\") {\n    globalThis.Arweave = common_1.default;\n}\nelse if (typeof self === \"object\") {\n    self.Arweave = common_1.default;\n}\n__exportStar(require(\"./common\"), exports);\nexports.default = common_1.default;\n"]}