{"version":3,"sources":["jsdelivr-header.js","/npm/@smithy/node-config-provider@4.1.3/dist-es/getSelectorName.js","/npm/@smithy/node-config-provider@4.1.3/dist-es/fromEnv.js","/npm/@smithy/node-config-provider@4.1.3/dist-es/configLoader.js","/npm/@smithy/node-config-provider@4.1.3/dist-es/fromSharedConfigFiles.js","/npm/@smithy/node-config-provider@4.1.3/dist-es/fromStatic.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2mBCNO,SAAS,EAAgB,GAC5B,IACI,MAAM,EAAY,IAAI,IAAI,MAAM,KAAK,EAAe,MAAM,kBAAoB,KAI9E,OAHA,EAAU,OAAO,UACjB,EAAU,OAAO,2BACjB,EAAU,OAAO,OACV,IAAI,GAAW,KAAK,KACnC,CACI,MAAO,GACH,OAAO,CACf,CACA,CCTO,MCEM,EAAa,EAAG,8BAA6B,qBAAoB,QAAS,GAAgB,EAAgB,MACnH,MAAM,YAAE,EAAW,OAAE,GAAW,EAEhC,OAAO,EAAQ,GDLK,ECKS,EDLO,ECIjB,CAAE,cAAa,UDJc,UAChD,IACI,MAAM,EAAS,EAAe,EAAa,GAC3C,QAAe,IAAX,EACA,MAAM,IAAI,MAEd,OAAO,CACf,CACI,MAAO,GACH,MAAM,IAAI,EAAyB,EAAE,SAAW,qBAAqB,EAAgB,EAAe,cAAe,CAAE,OAAQ,GAAS,QAC9I,IETqC,EAAC,GAAkB,gBAAgB,YAAa,GAAS,KAAO,UACjG,MAAM,EAAU,EAAe,IACzB,WAAE,EAAU,gBAAE,SAA0B,EAAsB,GAC9D,EAAyB,EAAgB,IAAY,GACrD,EAAoB,EAAW,IAAY,GAC3C,EAAkC,WAAlB,EAChB,IAAK,KAA2B,GAChC,IAAK,KAAsB,GACjC,IACI,MACM,EAAc,EAAe,EADD,WAAlB,EAA6B,EAAa,GAE1D,QAAoB,IAAhB,EACA,MAAM,IAAI,MAEd,OAAO,CACf,CACI,MAAO,GACH,MAAM,IAAI,EAAyB,EAAE,SAAW,yCAAyC,OAAa,EAAgB,EAAe,cAAe,CAAE,OAAQ,EAAK,QAC3K,GDd2E,CAAsB,EAAoB,GEL3F,CAAC,GADkB,mBACU,EAAgB,eAAkB,IAAiB,EAAkB,GFKS,CAAW,KDLzH,IAAC,EAAgB,CCKuH,S","file":"/npm/@smithy/node-config-provider@4.1.3/dist-es/index.js/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.\n * Original file: /npm/@smithy/node-config-provider@4.1.3/dist-es/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","export function getSelectorName(functionString) {\n    try {\n        const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));\n        constants.delete(\"CONFIG\");\n        constants.delete(\"CONFIG_PREFIX_SEPARATOR\");\n        constants.delete(\"ENV\");\n        return [...constants].join(\", \");\n    }\n    catch (e) {\n        return functionString;\n    }\n}\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { getSelectorName } from \"./getSelectorName\";\nexport const fromEnv = (envVarSelector, options) => async () => {\n    try {\n        const config = envVarSelector(process.env, options);\n        if (config === undefined) {\n            throw new Error();\n        }\n        return config;\n    }\n    catch (e) {\n        throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });\n    }\n};\n","import { chain, memoize } from \"@smithy/property-provider\";\nimport { fromEnv } from \"./fromEnv\";\nimport { fromSharedConfigFiles } from \"./fromSharedConfigFiles\";\nimport { fromStatic } from \"./fromStatic\";\nexport const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {\n    const { signingName, logger } = configuration;\n    const envOptions = { signingName, logger };\n    return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));\n};\n","import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { getProfileName, loadSharedConfigFiles } from \"@smithy/shared-ini-file-loader\";\nimport { getSelectorName } from \"./getSelectorName\";\nexport const fromSharedConfigFiles = (configSelector, { preferredFile = \"config\", ...init } = {}) => async () => {\n    const profile = getProfileName(init);\n    const { configFile, credentialsFile } = await loadSharedConfigFiles(init);\n    const profileFromCredentials = credentialsFile[profile] || {};\n    const profileFromConfig = configFile[profile] || {};\n    const mergedProfile = preferredFile === \"config\"\n        ? { ...profileFromCredentials, ...profileFromConfig }\n        : { ...profileFromConfig, ...profileFromCredentials };\n    try {\n        const cfgFile = preferredFile === \"config\" ? configFile : credentialsFile;\n        const configValue = configSelector(mergedProfile, cfgFile);\n        if (configValue === undefined) {\n            throw new Error();\n        }\n        return configValue;\n    }\n    catch (e) {\n        throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });\n    }\n};\n","import { fromStatic as convertToProvider } from \"@smithy/property-provider\";\nconst isFunction = (func) => typeof func === \"function\";\nexport const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : convertToProvider(defaultValue);\n"]}