{"version":3,"sources":["jsdelivr-header.js","/npm/g11n-pipeline@4.0.1/lib/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACUA,MAAM,OAAS,QAAQ,eACjB,OAAS,QAAQ,eACjB,MAAQ,QAAQ,cAuBtB,QAAQ,QAAU,eAAuB,GACvC,MAAM,EAAS,IAAI,OAAO,GAE1B,aADM,EAAO,cACN,CACT,EAGA,QAAQ,aAAe,OAAO,aAC9B,QAAQ,mBAAqB,OAAO,mBACpC,QAAQ,yBAA2B,OAAO,yBAC1C,QAAQ,cAAgB,MAAM","file":"/npm/g11n-pipeline@4.0.1/lib/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/g11n-pipeline@4.0.1/lib/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n * Copyright IBM Corp. 2015-2017\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst Client = require('./client.js');\nconst Consts = require('./consts.js');\nconst utils = require('./utils.js');\n\n/**\n * @author Steven R. Loomis\n */\n\n/**\n * Create a GP client.\n * Returns a promise to the client.\n * params.credentials is required unless params.appEnv is supplied.\n * Required either: (userId & password) or (apikey & iam_endpoint)\n * @param {Object} params - configuration params\n * @param {Object} params.appEnv - pass the result of cfEnv.getAppEnv(). Ignored if params.credentials is supplied.\n * @param {Object.<string,string>} params.credentials - Bound credentials as from the CF service broker (overrides appEnv)\n * @param {string} params.credentials.url - service URL. (should end in '/translate')\n * @param {string} params.credentials.userId - GP auth userid.\n * @param {string} params.credentials.password - GP auth password.\n * @param {string} params.credentials.apikey - IAM apikey\n * @param {string} params.credentials.iam_endpoint - IAM endpoint\n * @param {string} params.credentials.instanceId - instance ID\n * @function connect\n * @returns {Promise<Client>}\n */\nexports.connect = async function connect(params) {\n  const client = new Client(params);\n  await client.swaggerClient; // ensure the client is ready\n  return client;\n};\n\n// re export these…\nexports.serviceRegex = Consts.serviceRegex;\nexports.exampleCredentials = Consts.exampleCredentials;\nexports.exampleCredentialsString = Consts.exampleCredentialsString;\nexports._normalizeUrl = utils._normalizeUrl;\n"]}