From 4f91fbe9e462a680c0bf3476203589a88afccc84 Mon Sep 17 00:00:00 2001 From: John M Calhoun Date: Thu, 14 Jun 2018 14:40:07 -0400 Subject: [PATCH 1/2] fixes #46 --- dist/lex-web-ui-loader.css | 0 dist/lex-web-ui-loader.css.map | 0 dist/lex-web-ui-loader.js | 4 +--- dist/lex-web-ui-loader.js.map | 2 +- dist/lex-web-ui-loader.min.css | 0 dist/lex-web-ui-loader.min.css.map | 0 dist/lex-web-ui-loader.min.js | 2 +- dist/lex-web-ui-loader.min.js.map | 2 +- dist/lex-web-ui-mobile-hub.zip | Bin 290463 -> 293082 bytes dist/lex-web-ui.css | 0 dist/lex-web-ui.css.map | 0 dist/lex-web-ui.js | 0 dist/lex-web-ui.js.map | 2 +- dist/lex-web-ui.min.css | 0 dist/lex-web-ui.min.js | 0 dist/wav-worker.js | 0 dist/wav-worker.js.map | 0 dist/wav-worker.min.js | 0 .../js/lib/iframe-component-loader.js | 3 --- src/website/parent.html | 1 + 20 files changed, 6 insertions(+), 10 deletions(-) mode change 100755 => 100644 dist/lex-web-ui-loader.css mode change 100755 => 100644 dist/lex-web-ui-loader.css.map mode change 100755 => 100644 dist/lex-web-ui-loader.js mode change 100755 => 100644 dist/lex-web-ui-loader.js.map mode change 100755 => 100644 dist/lex-web-ui-loader.min.css mode change 100755 => 100644 dist/lex-web-ui-loader.min.css.map mode change 100755 => 100644 dist/lex-web-ui-loader.min.js mode change 100755 => 100644 dist/lex-web-ui-loader.min.js.map mode change 100755 => 100644 dist/lex-web-ui.css mode change 100755 => 100644 dist/lex-web-ui.css.map mode change 100755 => 100644 dist/lex-web-ui.js mode change 100755 => 100644 dist/lex-web-ui.js.map mode change 100755 => 100644 dist/lex-web-ui.min.css mode change 100755 => 100644 dist/lex-web-ui.min.js mode change 100755 => 100644 dist/wav-worker.js mode change 100755 => 100644 dist/wav-worker.js.map mode change 100755 => 100644 dist/wav-worker.min.js diff --git a/dist/lex-web-ui-loader.css b/dist/lex-web-ui-loader.css old mode 100755 new mode 100644 diff --git a/dist/lex-web-ui-loader.css.map b/dist/lex-web-ui-loader.css.map old mode 100755 new mode 100644 diff --git a/dist/lex-web-ui-loader.js b/dist/lex-web-ui-loader.js old mode 100755 new mode 100644 index 6b739505..726cf148 --- a/dist/lex-web-ui-loader.js +++ b/dist/lex-web-ui-loader.js @@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ /******/ /******/ var hotApplyOnUpdate = true; -/******/ var hotCurrentHash = "0ebc098edea51c874cb3"; // eslint-disable-line no-unused-vars +/******/ var hotCurrentHash = "0c0407f56b4410bc8729"; // eslint-disable-line no-unused-vars /******/ var hotRequestTimeout = 10000; /******/ var hotCurrentModuleData = {}; /******/ var hotCurrentChildModule; // eslint-disable-line no-unused-vars @@ -5110,8 +5110,6 @@ var IframeComponentLoader = exports.IframeComponentLoader = function () { } return this.credentials.getPromise().then(function () { - return localStorage.setItem('cognitoid', _this7.credentials.identityId); - }).then(function () { return _this7.credentials; }); } diff --git a/dist/lex-web-ui-loader.js.map b/dist/lex-web-ui-loader.js.map old mode 100755 new mode 100644 index b521d0d4..7898ad00 --- a/dist/lex-web-ui-loader.js.map +++ b/dist/lex-web-ui-loader.js.map @@ -1 +1 @@ -{"version":3,"file":"lex-web-ui-loader.js","sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 0ebc098edea51c874cb3","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/define-property.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/promise.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/classCallCheck.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/createClass.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/extends.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/get.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/inherits.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/typeof.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/define-property.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-own-property-descriptor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/promise.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/index.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_a-function.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-instance.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-object.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_array-includes.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_classof.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_cof.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_core.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ctx.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_defined.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_descriptors.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_dom-create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_export.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_fails.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_for-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_global.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_has.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_hide.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_html.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_invoke.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iobject.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array-iter.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-object.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-call.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-define.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-detect.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-step.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iterators.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_library.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_meta.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_microtask.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_new-promise-capability.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dp.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dps.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopd.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gops.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gpo.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys-internal.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-pie.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-sap.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_perform.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_promise-resolve.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_property-desc.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine-all.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-proto.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-species.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared-key.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_species-constructor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_string-at.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_task.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-absolute-index.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-integer.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-iobject.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-length.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-object.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-primitive.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_uid.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-define.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-ext.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/core.get-iterator-method.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.array.iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.define-property.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.promise.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.string.iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.symbol.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.finally.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.try.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///../css/lex-web-ui-fullpage.css","webpack:///../css/lex-web-ui-iframe.css","webpack:///src/lex-web-ui-loader/js/defaults/dependencies.js","webpack:///src/lex-web-ui-loader/js/defaults/lex-web-ui.js","webpack:///src/lex-web-ui-loader/js/defaults/loader.js","webpack:///src/lex-web-ui-loader/js/index.js","webpack:///src/lex-web-ui-loader/js/lib/config-loader.js","webpack:///src/lex-web-ui-loader/js/lib/dependency-loader.js","webpack:///src/lex-web-ui-loader/js/lib/fullpage-component-loader.js","webpack:///src/lex-web-ui-loader/js/lib/iframe-component-loader.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ChatBotUiLoader\"] = factory();\n\telse\n\t\troot[\"ChatBotUiLoader\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \tfunction hotDisposeChunk(chunkId) {\n \t\tdelete installedChunks[chunkId];\n \t}\n \tvar parentHotUpdateCallback = window[\"webpackHotUpdateChatBotUiLoader\"];\n \twindow[\"webpackHotUpdateChatBotUiLoader\"] = \r\n \tfunction webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n \t\thotAddUpdateChunk(chunkId, moreModules);\r\n \t\tif(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);\r\n \t} ;\r\n \t\r\n \tfunction hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars\r\n \t\tvar head = document.getElementsByTagName(\"head\")[0];\r\n \t\tvar script = document.createElement(\"script\");\r\n \t\tscript.type = \"text/javascript\";\r\n \t\tscript.charset = \"utf-8\";\r\n \t\tscript.src = __webpack_require__.p + \"\" + chunkId + \".\" + hotCurrentHash + \".hot-update.js\";\r\n \t\t;\r\n \t\thead.appendChild(script);\r\n \t}\r\n \t\r\n \tfunction hotDownloadManifest(requestTimeout) { // eslint-disable-line no-unused-vars\r\n \t\trequestTimeout = requestTimeout || 10000;\r\n \t\treturn new Promise(function(resolve, reject) {\r\n \t\t\tif(typeof XMLHttpRequest === \"undefined\")\r\n \t\t\t\treturn reject(new Error(\"No browser support\"));\r\n \t\t\ttry {\r\n \t\t\t\tvar request = new XMLHttpRequest();\r\n \t\t\t\tvar requestPath = __webpack_require__.p + \"\" + hotCurrentHash + \".hot-update.json\";\r\n \t\t\t\trequest.open(\"GET\", requestPath, true);\r\n \t\t\t\trequest.timeout = requestTimeout;\r\n \t\t\t\trequest.send(null);\r\n \t\t\t} catch(err) {\r\n \t\t\t\treturn reject(err);\r\n \t\t\t}\r\n \t\t\trequest.onreadystatechange = function() {\r\n \t\t\t\tif(request.readyState !== 4) return;\r\n \t\t\t\tif(request.status === 0) {\r\n \t\t\t\t\t// timeout\r\n \t\t\t\t\treject(new Error(\"Manifest request to \" + requestPath + \" timed out.\"));\r\n \t\t\t\t} else if(request.status === 404) {\r\n \t\t\t\t\t// no update available\r\n \t\t\t\t\tresolve();\r\n \t\t\t\t} else if(request.status !== 200 && request.status !== 304) {\r\n \t\t\t\t\t// other failure\r\n \t\t\t\t\treject(new Error(\"Manifest request to \" + requestPath + \" failed.\"));\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// success\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tvar update = JSON.parse(request.responseText);\r\n \t\t\t\t\t} catch(e) {\r\n \t\t\t\t\t\treject(e);\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tresolve(update);\r\n \t\t\t\t}\r\n \t\t\t};\r\n \t\t});\r\n \t}\r\n\n \t\r\n \t\r\n \tvar hotApplyOnUpdate = true;\r\n \tvar hotCurrentHash = \"0ebc098edea51c874cb3\"; // eslint-disable-line no-unused-vars\r\n \tvar hotRequestTimeout = 10000;\r\n \tvar hotCurrentModuleData = {};\r\n \tvar hotCurrentChildModule; // eslint-disable-line no-unused-vars\r\n \tvar hotCurrentParents = []; // eslint-disable-line no-unused-vars\r\n \tvar hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars\r\n \t\r\n \tfunction hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars\r\n \t\tvar me = installedModules[moduleId];\r\n \t\tif(!me) return __webpack_require__;\r\n \t\tvar fn = function(request) {\r\n \t\t\tif(me.hot.active) {\r\n \t\t\t\tif(installedModules[request]) {\r\n \t\t\t\t\tif(installedModules[request].parents.indexOf(moduleId) < 0)\r\n \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\r\n \t\t\t\t} else {\r\n \t\t\t\t\thotCurrentParents = [moduleId];\r\n \t\t\t\t\thotCurrentChildModule = request;\r\n \t\t\t\t}\r\n \t\t\t\tif(me.children.indexOf(request) < 0)\r\n \t\t\t\t\tme.children.push(request);\r\n \t\t\t} else {\r\n \t\t\t\tconsole.warn(\"[HMR] unexpected require(\" + request + \") from disposed module \" + moduleId);\r\n \t\t\t\thotCurrentParents = [];\r\n \t\t\t}\r\n \t\t\treturn __webpack_require__(request);\r\n \t\t};\r\n \t\tvar ObjectFactory = function ObjectFactory(name) {\r\n \t\t\treturn {\r\n \t\t\t\tconfigurable: true,\r\n \t\t\t\tenumerable: true,\r\n \t\t\t\tget: function() {\r\n \t\t\t\t\treturn __webpack_require__[name];\r\n \t\t\t\t},\r\n \t\t\t\tset: function(value) {\r\n \t\t\t\t\t__webpack_require__[name] = value;\r\n \t\t\t\t}\r\n \t\t\t};\r\n \t\t};\r\n \t\tfor(var name in __webpack_require__) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(__webpack_require__, name) && name !== \"e\") {\r\n \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\r\n \t\t\t}\r\n \t\t}\r\n \t\tfn.e = function(chunkId) {\r\n \t\t\tif(hotStatus === \"ready\")\r\n \t\t\t\thotSetStatus(\"prepare\");\r\n \t\t\thotChunksLoading++;\r\n \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\r\n \t\t\t\tfinishChunkLoading();\r\n \t\t\t\tthrow err;\r\n \t\t\t});\r\n \t\r\n \t\t\tfunction finishChunkLoading() {\r\n \t\t\t\thotChunksLoading--;\r\n \t\t\t\tif(hotStatus === \"prepare\") {\r\n \t\t\t\t\tif(!hotWaitingFilesMap[chunkId]) {\r\n \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n \t\t\t\t\t\thotUpdateDownloaded();\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t};\r\n \t\treturn fn;\r\n \t}\r\n \t\r\n \tfunction hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars\r\n \t\tvar hot = {\r\n \t\t\t// private stuff\r\n \t\t\t_acceptedDependencies: {},\r\n \t\t\t_declinedDependencies: {},\r\n \t\t\t_selfAccepted: false,\r\n \t\t\t_selfDeclined: false,\r\n \t\t\t_disposeHandlers: [],\r\n \t\t\t_main: hotCurrentChildModule !== moduleId,\r\n \t\r\n \t\t\t// Module API\r\n \t\t\tactive: true,\r\n \t\t\taccept: function(dep, callback) {\r\n \t\t\t\tif(typeof dep === \"undefined\")\r\n \t\t\t\t\thot._selfAccepted = true;\r\n \t\t\t\telse if(typeof dep === \"function\")\r\n \t\t\t\t\thot._selfAccepted = dep;\r\n \t\t\t\telse if(typeof dep === \"object\")\r\n \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n \t\t\t\t\t\thot._acceptedDependencies[dep[i]] = callback || function() {};\r\n \t\t\t\telse\r\n \t\t\t\t\thot._acceptedDependencies[dep] = callback || function() {};\r\n \t\t\t},\r\n \t\t\tdecline: function(dep) {\r\n \t\t\t\tif(typeof dep === \"undefined\")\r\n \t\t\t\t\thot._selfDeclined = true;\r\n \t\t\t\telse if(typeof dep === \"object\")\r\n \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n \t\t\t\t\t\thot._declinedDependencies[dep[i]] = true;\r\n \t\t\t\telse\r\n \t\t\t\t\thot._declinedDependencies[dep] = true;\r\n \t\t\t},\r\n \t\t\tdispose: function(callback) {\r\n \t\t\t\thot._disposeHandlers.push(callback);\r\n \t\t\t},\r\n \t\t\taddDisposeHandler: function(callback) {\r\n \t\t\t\thot._disposeHandlers.push(callback);\r\n \t\t\t},\r\n \t\t\tremoveDisposeHandler: function(callback) {\r\n \t\t\t\tvar idx = hot._disposeHandlers.indexOf(callback);\r\n \t\t\t\tif(idx >= 0) hot._disposeHandlers.splice(idx, 1);\r\n \t\t\t},\r\n \t\r\n \t\t\t// Management API\r\n \t\t\tcheck: hotCheck,\r\n \t\t\tapply: hotApply,\r\n \t\t\tstatus: function(l) {\r\n \t\t\t\tif(!l) return hotStatus;\r\n \t\t\t\thotStatusHandlers.push(l);\r\n \t\t\t},\r\n \t\t\taddStatusHandler: function(l) {\r\n \t\t\t\thotStatusHandlers.push(l);\r\n \t\t\t},\r\n \t\t\tremoveStatusHandler: function(l) {\r\n \t\t\t\tvar idx = hotStatusHandlers.indexOf(l);\r\n \t\t\t\tif(idx >= 0) hotStatusHandlers.splice(idx, 1);\r\n \t\t\t},\r\n \t\r\n \t\t\t//inherit from previous dispose call\r\n \t\t\tdata: hotCurrentModuleData[moduleId]\r\n \t\t};\r\n \t\thotCurrentChildModule = undefined;\r\n \t\treturn hot;\r\n \t}\r\n \t\r\n \tvar hotStatusHandlers = [];\r\n \tvar hotStatus = \"idle\";\r\n \t\r\n \tfunction hotSetStatus(newStatus) {\r\n \t\thotStatus = newStatus;\r\n \t\tfor(var i = 0; i < hotStatusHandlers.length; i++)\r\n \t\t\thotStatusHandlers[i].call(null, newStatus);\r\n \t}\r\n \t\r\n \t// while downloading\r\n \tvar hotWaitingFiles = 0;\r\n \tvar hotChunksLoading = 0;\r\n \tvar hotWaitingFilesMap = {};\r\n \tvar hotRequestedFilesMap = {};\r\n \tvar hotAvailableFilesMap = {};\r\n \tvar hotDeferred;\r\n \t\r\n \t// The update info\r\n \tvar hotUpdate, hotUpdateNewHash;\r\n \t\r\n \tfunction toModuleId(id) {\r\n \t\tvar isNumber = (+id) + \"\" === id;\r\n \t\treturn isNumber ? +id : id;\r\n \t}\r\n \t\r\n \tfunction hotCheck(apply) {\r\n \t\tif(hotStatus !== \"idle\") throw new Error(\"check() is only allowed in idle status\");\r\n \t\thotApplyOnUpdate = apply;\r\n \t\thotSetStatus(\"check\");\r\n \t\treturn hotDownloadManifest(hotRequestTimeout).then(function(update) {\r\n \t\t\tif(!update) {\r\n \t\t\t\thotSetStatus(\"idle\");\r\n \t\t\t\treturn null;\r\n \t\t\t}\r\n \t\t\thotRequestedFilesMap = {};\r\n \t\t\thotWaitingFilesMap = {};\r\n \t\t\thotAvailableFilesMap = update.c;\r\n \t\t\thotUpdateNewHash = update.h;\r\n \t\r\n \t\t\thotSetStatus(\"prepare\");\r\n \t\t\tvar promise = new Promise(function(resolve, reject) {\r\n \t\t\t\thotDeferred = {\r\n \t\t\t\t\tresolve: resolve,\r\n \t\t\t\t\treject: reject\r\n \t\t\t\t};\r\n \t\t\t});\r\n \t\t\thotUpdate = {};\r\n \t\t\tvar chunkId = 0;\r\n \t\t\t{ // eslint-disable-line no-lone-blocks\r\n \t\t\t\t/*globals chunkId */\r\n \t\t\t\thotEnsureUpdateChunk(chunkId);\r\n \t\t\t}\r\n \t\t\tif(hotStatus === \"prepare\" && hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n \t\t\t\thotUpdateDownloaded();\r\n \t\t\t}\r\n \t\t\treturn promise;\r\n \t\t});\r\n \t}\r\n \t\r\n \tfunction hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n \t\tif(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])\r\n \t\t\treturn;\r\n \t\thotRequestedFilesMap[chunkId] = false;\r\n \t\tfor(var moduleId in moreModules) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\r\n \t\t\t\thotUpdate[moduleId] = moreModules[moduleId];\r\n \t\t\t}\r\n \t\t}\r\n \t\tif(--hotWaitingFiles === 0 && hotChunksLoading === 0) {\r\n \t\t\thotUpdateDownloaded();\r\n \t\t}\r\n \t}\r\n \t\r\n \tfunction hotEnsureUpdateChunk(chunkId) {\r\n \t\tif(!hotAvailableFilesMap[chunkId]) {\r\n \t\t\thotWaitingFilesMap[chunkId] = true;\r\n \t\t} else {\r\n \t\t\thotRequestedFilesMap[chunkId] = true;\r\n \t\t\thotWaitingFiles++;\r\n \t\t\thotDownloadUpdateChunk(chunkId);\r\n \t\t}\r\n \t}\r\n \t\r\n \tfunction hotUpdateDownloaded() {\r\n \t\thotSetStatus(\"ready\");\r\n \t\tvar deferred = hotDeferred;\r\n \t\thotDeferred = null;\r\n \t\tif(!deferred) return;\r\n \t\tif(hotApplyOnUpdate) {\r\n \t\t\t// Wrap deferred object in Promise to mark it as a well-handled Promise to\r\n \t\t\t// avoid triggering uncaught exception warning in Chrome.\r\n \t\t\t// See https://bugs.chromium.org/p/chromium/issues/detail?id=465666\r\n \t\t\tPromise.resolve().then(function() {\r\n \t\t\t\treturn hotApply(hotApplyOnUpdate);\r\n \t\t\t}).then(\r\n \t\t\t\tfunction(result) {\r\n \t\t\t\t\tdeferred.resolve(result);\r\n \t\t\t\t},\r\n \t\t\t\tfunction(err) {\r\n \t\t\t\t\tdeferred.reject(err);\r\n \t\t\t\t}\r\n \t\t\t);\r\n \t\t} else {\r\n \t\t\tvar outdatedModules = [];\r\n \t\t\tfor(var id in hotUpdate) {\r\n \t\t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n \t\t\t\t\toutdatedModules.push(toModuleId(id));\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tdeferred.resolve(outdatedModules);\r\n \t\t}\r\n \t}\r\n \t\r\n \tfunction hotApply(options) {\r\n \t\tif(hotStatus !== \"ready\") throw new Error(\"apply() is only allowed in ready status\");\r\n \t\toptions = options || {};\r\n \t\r\n \t\tvar cb;\r\n \t\tvar i;\r\n \t\tvar j;\r\n \t\tvar module;\r\n \t\tvar moduleId;\r\n \t\r\n \t\tfunction getAffectedStuff(updateModuleId) {\r\n \t\t\tvar outdatedModules = [updateModuleId];\r\n \t\t\tvar outdatedDependencies = {};\r\n \t\r\n \t\t\tvar queue = outdatedModules.slice().map(function(id) {\r\n \t\t\t\treturn {\r\n \t\t\t\t\tchain: [id],\r\n \t\t\t\t\tid: id\r\n \t\t\t\t};\r\n \t\t\t});\r\n \t\t\twhile(queue.length > 0) {\r\n \t\t\t\tvar queueItem = queue.pop();\r\n \t\t\t\tvar moduleId = queueItem.id;\r\n \t\t\t\tvar chain = queueItem.chain;\r\n \t\t\t\tmodule = installedModules[moduleId];\r\n \t\t\t\tif(!module || module.hot._selfAccepted)\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\tif(module.hot._selfDeclined) {\r\n \t\t\t\t\treturn {\r\n \t\t\t\t\t\ttype: \"self-declined\",\r\n \t\t\t\t\t\tchain: chain,\r\n \t\t\t\t\t\tmoduleId: moduleId\r\n \t\t\t\t\t};\r\n \t\t\t\t}\r\n \t\t\t\tif(module.hot._main) {\r\n \t\t\t\t\treturn {\r\n \t\t\t\t\t\ttype: \"unaccepted\",\r\n \t\t\t\t\t\tchain: chain,\r\n \t\t\t\t\t\tmoduleId: moduleId\r\n \t\t\t\t\t};\r\n \t\t\t\t}\r\n \t\t\t\tfor(var i = 0; i < module.parents.length; i++) {\r\n \t\t\t\t\tvar parentId = module.parents[i];\r\n \t\t\t\t\tvar parent = installedModules[parentId];\r\n \t\t\t\t\tif(!parent) continue;\r\n \t\t\t\t\tif(parent.hot._declinedDependencies[moduleId]) {\r\n \t\t\t\t\t\treturn {\r\n \t\t\t\t\t\t\ttype: \"declined\",\r\n \t\t\t\t\t\t\tchain: chain.concat([parentId]),\r\n \t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\tparentId: parentId\r\n \t\t\t\t\t\t};\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(outdatedModules.indexOf(parentId) >= 0) continue;\r\n \t\t\t\t\tif(parent.hot._acceptedDependencies[moduleId]) {\r\n \t\t\t\t\t\tif(!outdatedDependencies[parentId])\r\n \t\t\t\t\t\t\toutdatedDependencies[parentId] = [];\r\n \t\t\t\t\t\taddAllToSet(outdatedDependencies[parentId], [moduleId]);\r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdelete outdatedDependencies[parentId];\r\n \t\t\t\t\toutdatedModules.push(parentId);\r\n \t\t\t\t\tqueue.push({\r\n \t\t\t\t\t\tchain: chain.concat([parentId]),\r\n \t\t\t\t\t\tid: parentId\r\n \t\t\t\t\t});\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\r\n \t\t\treturn {\r\n \t\t\t\ttype: \"accepted\",\r\n \t\t\t\tmoduleId: updateModuleId,\r\n \t\t\t\toutdatedModules: outdatedModules,\r\n \t\t\t\toutdatedDependencies: outdatedDependencies\r\n \t\t\t};\r\n \t\t}\r\n \t\r\n \t\tfunction addAllToSet(a, b) {\r\n \t\t\tfor(var i = 0; i < b.length; i++) {\r\n \t\t\t\tvar item = b[i];\r\n \t\t\t\tif(a.indexOf(item) < 0)\r\n \t\t\t\t\ta.push(item);\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// at begin all updates modules are outdated\r\n \t\t// the \"outdated\" status can propagate to parents if they don't accept the children\r\n \t\tvar outdatedDependencies = {};\r\n \t\tvar outdatedModules = [];\r\n \t\tvar appliedUpdate = {};\r\n \t\r\n \t\tvar warnUnexpectedRequire = function warnUnexpectedRequire() {\r\n \t\t\tconsole.warn(\"[HMR] unexpected require(\" + result.moduleId + \") to disposed module\");\r\n \t\t};\r\n \t\r\n \t\tfor(var id in hotUpdate) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n \t\t\t\tmoduleId = toModuleId(id);\r\n \t\t\t\tvar result;\r\n \t\t\t\tif(hotUpdate[id]) {\r\n \t\t\t\t\tresult = getAffectedStuff(moduleId);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresult = {\r\n \t\t\t\t\t\ttype: \"disposed\",\r\n \t\t\t\t\t\tmoduleId: id\r\n \t\t\t\t\t};\r\n \t\t\t\t}\r\n \t\t\t\tvar abortError = false;\r\n \t\t\t\tvar doApply = false;\r\n \t\t\t\tvar doDispose = false;\r\n \t\t\t\tvar chainInfo = \"\";\r\n \t\t\t\tif(result.chain) {\r\n \t\t\t\t\tchainInfo = \"\\nUpdate propagation: \" + result.chain.join(\" -> \");\r\n \t\t\t\t}\r\n \t\t\t\tswitch(result.type) {\r\n \t\t\t\t\tcase \"self-declined\":\r\n \t\t\t\t\t\tif(options.onDeclined)\r\n \t\t\t\t\t\t\toptions.onDeclined(result);\r\n \t\t\t\t\t\tif(!options.ignoreDeclined)\r\n \t\t\t\t\t\t\tabortError = new Error(\"Aborted because of self decline: \" + result.moduleId + chainInfo);\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"declined\":\r\n \t\t\t\t\t\tif(options.onDeclined)\r\n \t\t\t\t\t\t\toptions.onDeclined(result);\r\n \t\t\t\t\t\tif(!options.ignoreDeclined)\r\n \t\t\t\t\t\t\tabortError = new Error(\"Aborted because of declined dependency: \" + result.moduleId + \" in \" + result.parentId + chainInfo);\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"unaccepted\":\r\n \t\t\t\t\t\tif(options.onUnaccepted)\r\n \t\t\t\t\t\t\toptions.onUnaccepted(result);\r\n \t\t\t\t\t\tif(!options.ignoreUnaccepted)\r\n \t\t\t\t\t\t\tabortError = new Error(\"Aborted because \" + moduleId + \" is not accepted\" + chainInfo);\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"accepted\":\r\n \t\t\t\t\t\tif(options.onAccepted)\r\n \t\t\t\t\t\t\toptions.onAccepted(result);\r\n \t\t\t\t\t\tdoApply = true;\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"disposed\":\r\n \t\t\t\t\t\tif(options.onDisposed)\r\n \t\t\t\t\t\t\toptions.onDisposed(result);\r\n \t\t\t\t\t\tdoDispose = true;\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tdefault:\r\n \t\t\t\t\t\tthrow new Error(\"Unexception type \" + result.type);\r\n \t\t\t\t}\r\n \t\t\t\tif(abortError) {\r\n \t\t\t\t\thotSetStatus(\"abort\");\r\n \t\t\t\t\treturn Promise.reject(abortError);\r\n \t\t\t\t}\r\n \t\t\t\tif(doApply) {\r\n \t\t\t\t\tappliedUpdate[moduleId] = hotUpdate[moduleId];\r\n \t\t\t\t\taddAllToSet(outdatedModules, result.outdatedModules);\r\n \t\t\t\t\tfor(moduleId in result.outdatedDependencies) {\r\n \t\t\t\t\t\tif(Object.prototype.hasOwnProperty.call(result.outdatedDependencies, moduleId)) {\r\n \t\t\t\t\t\t\tif(!outdatedDependencies[moduleId])\r\n \t\t\t\t\t\t\t\toutdatedDependencies[moduleId] = [];\r\n \t\t\t\t\t\t\taddAllToSet(outdatedDependencies[moduleId], result.outdatedDependencies[moduleId]);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif(doDispose) {\r\n \t\t\t\t\taddAllToSet(outdatedModules, [result.moduleId]);\r\n \t\t\t\t\tappliedUpdate[moduleId] = warnUnexpectedRequire;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// Store self accepted outdated modules to require them later by the module system\r\n \t\tvar outdatedSelfAcceptedModules = [];\r\n \t\tfor(i = 0; i < outdatedModules.length; i++) {\r\n \t\t\tmoduleId = outdatedModules[i];\r\n \t\t\tif(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)\r\n \t\t\t\toutdatedSelfAcceptedModules.push({\r\n \t\t\t\t\tmodule: moduleId,\r\n \t\t\t\t\terrorHandler: installedModules[moduleId].hot._selfAccepted\r\n \t\t\t\t});\r\n \t\t}\r\n \t\r\n \t\t// Now in \"dispose\" phase\r\n \t\thotSetStatus(\"dispose\");\r\n \t\tObject.keys(hotAvailableFilesMap).forEach(function(chunkId) {\r\n \t\t\tif(hotAvailableFilesMap[chunkId] === false) {\r\n \t\t\t\thotDisposeChunk(chunkId);\r\n \t\t\t}\r\n \t\t});\r\n \t\r\n \t\tvar idx;\r\n \t\tvar queue = outdatedModules.slice();\r\n \t\twhile(queue.length > 0) {\r\n \t\t\tmoduleId = queue.pop();\r\n \t\t\tmodule = installedModules[moduleId];\r\n \t\t\tif(!module) continue;\r\n \t\r\n \t\t\tvar data = {};\r\n \t\r\n \t\t\t// Call dispose handlers\r\n \t\t\tvar disposeHandlers = module.hot._disposeHandlers;\r\n \t\t\tfor(j = 0; j < disposeHandlers.length; j++) {\r\n \t\t\t\tcb = disposeHandlers[j];\r\n \t\t\t\tcb(data);\r\n \t\t\t}\r\n \t\t\thotCurrentModuleData[moduleId] = data;\r\n \t\r\n \t\t\t// disable module (this disables requires from this module)\r\n \t\t\tmodule.hot.active = false;\r\n \t\r\n \t\t\t// remove module from cache\r\n \t\t\tdelete installedModules[moduleId];\r\n \t\r\n \t\t\t// when disposing there is no need to call dispose handler\r\n \t\t\tdelete outdatedDependencies[moduleId];\r\n \t\r\n \t\t\t// remove \"parents\" references from all children\r\n \t\t\tfor(j = 0; j < module.children.length; j++) {\r\n \t\t\t\tvar child = installedModules[module.children[j]];\r\n \t\t\t\tif(!child) continue;\r\n \t\t\t\tidx = child.parents.indexOf(moduleId);\r\n \t\t\t\tif(idx >= 0) {\r\n \t\t\t\t\tchild.parents.splice(idx, 1);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// remove outdated dependency from module children\r\n \t\tvar dependency;\r\n \t\tvar moduleOutdatedDependencies;\r\n \t\tfor(moduleId in outdatedDependencies) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n \t\t\t\tmodule = installedModules[moduleId];\r\n \t\t\t\tif(module) {\r\n \t\t\t\t\tmoduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n \t\t\t\t\tfor(j = 0; j < moduleOutdatedDependencies.length; j++) {\r\n \t\t\t\t\t\tdependency = moduleOutdatedDependencies[j];\r\n \t\t\t\t\t\tidx = module.children.indexOf(dependency);\r\n \t\t\t\t\t\tif(idx >= 0) module.children.splice(idx, 1);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// Not in \"apply\" phase\r\n \t\thotSetStatus(\"apply\");\r\n \t\r\n \t\thotCurrentHash = hotUpdateNewHash;\r\n \t\r\n \t\t// insert new code\r\n \t\tfor(moduleId in appliedUpdate) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {\r\n \t\t\t\tmodules[moduleId] = appliedUpdate[moduleId];\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// call accept handlers\r\n \t\tvar error = null;\r\n \t\tfor(moduleId in outdatedDependencies) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n \t\t\t\tmodule = installedModules[moduleId];\r\n \t\t\t\tif(module) {\r\n \t\t\t\t\tmoduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n \t\t\t\t\tvar callbacks = [];\r\n \t\t\t\t\tfor(i = 0; i < moduleOutdatedDependencies.length; i++) {\r\n \t\t\t\t\t\tdependency = moduleOutdatedDependencies[i];\r\n \t\t\t\t\t\tcb = module.hot._acceptedDependencies[dependency];\r\n \t\t\t\t\t\tif(cb) {\r\n \t\t\t\t\t\t\tif(callbacks.indexOf(cb) >= 0) continue;\r\n \t\t\t\t\t\t\tcallbacks.push(cb);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tfor(i = 0; i < callbacks.length; i++) {\r\n \t\t\t\t\t\tcb = callbacks[i];\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\tcb(moduleOutdatedDependencies);\r\n \t\t\t\t\t\t} catch(err) {\r\n \t\t\t\t\t\t\tif(options.onErrored) {\r\n \t\t\t\t\t\t\t\toptions.onErrored({\r\n \t\t\t\t\t\t\t\t\ttype: \"accept-errored\",\r\n \t\t\t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\t\t\tdependencyId: moduleOutdatedDependencies[i],\r\n \t\t\t\t\t\t\t\t\terror: err\r\n \t\t\t\t\t\t\t\t});\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!options.ignoreErrored) {\r\n \t\t\t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\t\t\terror = err;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// Load self accepted modules\r\n \t\tfor(i = 0; i < outdatedSelfAcceptedModules.length; i++) {\r\n \t\t\tvar item = outdatedSelfAcceptedModules[i];\r\n \t\t\tmoduleId = item.module;\r\n \t\t\thotCurrentParents = [moduleId];\r\n \t\t\ttry {\r\n \t\t\t\t__webpack_require__(moduleId);\r\n \t\t\t} catch(err) {\r\n \t\t\t\tif(typeof item.errorHandler === \"function\") {\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\titem.errorHandler(err);\r\n \t\t\t\t\t} catch(err2) {\r\n \t\t\t\t\t\tif(options.onErrored) {\r\n \t\t\t\t\t\t\toptions.onErrored({\r\n \t\t\t\t\t\t\t\ttype: \"self-accept-error-handler-errored\",\r\n \t\t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\t\terror: err2,\r\n \t\t\t\t\t\t\t\torginalError: err, // TODO remove in webpack 4\r\n \t\t\t\t\t\t\t\toriginalError: err\r\n \t\t\t\t\t\t\t});\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif(!options.ignoreErrored) {\r\n \t\t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\t\terror = err2;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\terror = err;\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tif(options.onErrored) {\r\n \t\t\t\t\t\toptions.onErrored({\r\n \t\t\t\t\t\t\ttype: \"self-accept-errored\",\r\n \t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\terror: err\r\n \t\t\t\t\t\t});\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(!options.ignoreErrored) {\r\n \t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\terror = err;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// handle errors in accept handlers and self accepted module load\r\n \t\tif(error) {\r\n \t\t\thotSetStatus(\"fail\");\r\n \t\t\treturn Promise.reject(error);\r\n \t\t}\r\n \t\r\n \t\thotSetStatus(\"idle\");\r\n \t\treturn new Promise(function(resolve) {\r\n \t\t\tresolve(outdatedModules);\r\n \t\t});\r\n \t}\r\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {},\n \t\t\thot: hotCreateModule(moduleId),\n \t\t\tparents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),\n \t\t\tchildren: []\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// __webpack_hash__\n \t__webpack_require__.h = function() { return hotCurrentHash; };\n\n \t// Load entry module and return exports\n \treturn hotCreateRequire(\"./index.js\")(__webpack_require__.s = \"./index.js\");\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 0ebc098edea51c874cb3","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/assign.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/assign.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/create.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/create.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/define-property.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/define-property.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/get-own-property-descriptor\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/keys.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/keys.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/promise\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/promise.js\n// module id = ../../../node_modules/babel-runtime/core-js/promise.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol.js\n// module id = ../../../node_modules/babel-runtime/core-js/symbol.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = ../../../node_modules/babel-runtime/core-js/symbol/iterator.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = ../../../node_modules/babel-runtime/helpers/classCallCheck.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/createClass.js\n// module id = ../../../node_modules/babel-runtime/helpers/createClass.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/extends.js\n// module id = ../../../node_modules/babel-runtime/helpers/extends.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _getPrototypeOf = require(\"../core-js/object/get-prototype-of\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _getOwnPropertyDescriptor = require(\"../core-js/object/get-own-property-descriptor\");\n\nvar _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n var desc = (0, _getOwnPropertyDescriptor2.default)(object, property);\n\n if (desc === undefined) {\n var parent = (0, _getPrototypeOf2.default)(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if (\"value\" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/get.js\n// module id = ../../../node_modules/babel-runtime/helpers/get.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/inherits.js\n// module id = ../../../node_modules/babel-runtime/helpers/inherits.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = ../../../node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/typeof.js\n// module id = ../../../node_modules/babel-runtime/helpers/typeof.js\n// module chunks = 0","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/assign.js\n// module id = ../../../node_modules/core-js/library/fn/object/assign.js\n// module chunks = 0","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/create.js\n// module id = ../../../node_modules/core-js/library/fn/object/create.js\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/define-property.js\n// module id = ../../../node_modules/core-js/library/fn/object/define-property.js\n// module chunks = 0","require('../../modules/es6.object.get-own-property-descriptor');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function getOwnPropertyDescriptor(it, key) {\n return $Object.getOwnPropertyDescriptor(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-own-property-descriptor.js\n// module id = ../../../node_modules/core-js/library/fn/object/get-own-property-descriptor.js\n// module chunks = 0","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = ../../../node_modules/core-js/library/fn/object/get-prototype-of.js\n// module chunks = 0","require('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/_core').Object.keys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/keys.js\n// module id = ../../../node_modules/core-js/library/fn/object/keys.js\n// module chunks = 0","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = ../../../node_modules/core-js/library/fn/object/set-prototype-of.js\n// module chunks = 0","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.promise');\nrequire('../modules/es7.promise.finally');\nrequire('../modules/es7.promise.try');\nmodule.exports = require('../modules/_core').Promise;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/promise.js\n// module id = ../../../node_modules/core-js/library/fn/promise.js\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/index.js\n// module id = ../../../node_modules/core-js/library/fn/symbol/index.js\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/iterator.js\n// module id = ../../../node_modules/core-js/library/fn/symbol/iterator.js\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_a-function.js\n// module id = ../../../node_modules/core-js/library/modules/_a-function.js\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = ../../../node_modules/core-js/library/modules/_add-to-unscopables.js\n// module chunks = 0","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-instance.js\n// module id = ../../../node_modules/core-js/library/modules/_an-instance.js\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-object.js\n// module id = ../../../node_modules/core-js/library/modules/_an-object.js\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_array-includes.js\n// module id = ../../../node_modules/core-js/library/modules/_array-includes.js\n// module chunks = 0","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_classof.js\n// module id = ../../../node_modules/core-js/library/modules/_classof.js\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_cof.js\n// module id = ../../../node_modules/core-js/library/modules/_cof.js\n// module chunks = 0","var core = module.exports = { version: '2.5.3' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_core.js\n// module id = ../../../node_modules/core-js/library/modules/_core.js\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ctx.js\n// module id = ../../../node_modules/core-js/library/modules/_ctx.js\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_defined.js\n// module id = ../../../node_modules/core-js/library/modules/_defined.js\n// module chunks = 0","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_descriptors.js\n// module id = ../../../node_modules/core-js/library/modules/_descriptors.js\n// module chunks = 0","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_dom-create.js\n// module id = ../../../node_modules/core-js/library/modules/_dom-create.js\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = ../../../node_modules/core-js/library/modules/_enum-bug-keys.js\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-keys.js\n// module id = ../../../node_modules/core-js/library/modules/_enum-keys.js\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && key in exports) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_export.js\n// module id = ../../../node_modules/core-js/library/modules/_export.js\n// module chunks = 0","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_fails.js\n// module id = ../../../node_modules/core-js/library/modules/_fails.js\n// module chunks = 0","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_for-of.js\n// module id = ../../../node_modules/core-js/library/modules/_for-of.js\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_global.js\n// module id = ../../../node_modules/core-js/library/modules/_global.js\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_has.js\n// module id = ../../../node_modules/core-js/library/modules/_has.js\n// module chunks = 0","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_hide.js\n// module id = ../../../node_modules/core-js/library/modules/_hide.js\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_html.js\n// module id = ../../../node_modules/core-js/library/modules/_html.js\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = ../../../node_modules/core-js/library/modules/_ie8-dom-define.js\n// module chunks = 0","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_invoke.js\n// module id = ../../../node_modules/core-js/library/modules/_invoke.js\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iobject.js\n// module id = ../../../node_modules/core-js/library/modules/_iobject.js\n// module chunks = 0","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array-iter.js\n// module id = ../../../node_modules/core-js/library/modules/_is-array-iter.js\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array.js\n// module id = ../../../node_modules/core-js/library/modules/_is-array.js\n// module chunks = 0","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-object.js\n// module id = ../../../node_modules/core-js/library/modules/_is-object.js\n// module chunks = 0","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-call.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-call.js\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-create.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-create.js\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = (!BUGGY && $native) || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-define.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-define.js\n// module chunks = 0","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-detect.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-detect.js\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-step.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-step.js\n// module chunks = 0","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iterators.js\n// module id = ../../../node_modules/core-js/library/modules/_iterators.js\n// module chunks = 0","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_library.js\n// module id = ../../../node_modules/core-js/library/modules/_library.js\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_meta.js\n// module id = ../../../node_modules/core-js/library/modules/_meta.js\n// module chunks = 0","var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n var promise = Promise.resolve();\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_microtask.js\n// module id = ../../../node_modules/core-js/library/modules/_microtask.js\n// module chunks = 0","'use strict';\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = require('./_a-function');\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_new-promise-capability.js\n// module id = ../../../node_modules/core-js/library/modules/_new-promise-capability.js\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-assign.js\n// module id = ../../../node_modules/core-js/library/modules/_object-assign.js\n// module chunks = 0","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-create.js\n// module id = ../../../node_modules/core-js/library/modules/_object-create.js\n// module chunks = 0","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dp.js\n// module id = ../../../node_modules/core-js/library/modules/_object-dp.js\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dps.js\n// module id = ../../../node_modules/core-js/library/modules/_object-dps.js\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopd.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gopd.js\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gopn-ext.js\n// module chunks = 0","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gopn.js\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gops.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gops.js\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gpo.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gpo.js\n// module chunks = 0","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = ../../../node_modules/core-js/library/modules/_object-keys-internal.js\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys.js\n// module id = ../../../node_modules/core-js/library/modules/_object-keys.js\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-pie.js\n// module id = ../../../node_modules/core-js/library/modules/_object-pie.js\n// module chunks = 0","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-sap.js\n// module id = ../../../node_modules/core-js/library/modules/_object-sap.js\n// module chunks = 0","module.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_perform.js\n// module id = ../../../node_modules/core-js/library/modules/_perform.js\n// module chunks = 0","var anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar newPromiseCapability = require('./_new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_promise-resolve.js\n// module id = ../../../node_modules/core-js/library/modules/_promise-resolve.js\n// module chunks = 0","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_property-desc.js\n// module id = ../../../node_modules/core-js/library/modules/_property-desc.js\n// module chunks = 0","var hide = require('./_hide');\nmodule.exports = function (target, src, safe) {\n for (var key in src) {\n if (safe && target[key]) target[key] = src[key];\n else hide(target, key, src[key]);\n } return target;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine-all.js\n// module id = ../../../node_modules/core-js/library/modules/_redefine-all.js\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine.js\n// module id = ../../../node_modules/core-js/library/modules/_redefine.js\n// module chunks = 0","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-proto.js\n// module id = ../../../node_modules/core-js/library/modules/_set-proto.js\n// module chunks = 0","'use strict';\nvar global = require('./_global');\nvar core = require('./_core');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-species.js\n// module id = ../../../node_modules/core-js/library/modules/_set-species.js\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = ../../../node_modules/core-js/library/modules/_set-to-string-tag.js\n// module chunks = 0","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared-key.js\n// module id = ../../../node_modules/core-js/library/modules/_shared-key.js\n// module chunks = 0","var global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function (key) {\n return store[key] || (store[key] = {});\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared.js\n// module id = ../../../node_modules/core-js/library/modules/_shared.js\n// module chunks = 0","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_species-constructor.js\n// module id = ../../../node_modules/core-js/library/modules/_species-constructor.js\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_string-at.js\n// module id = ../../../node_modules/core-js/library/modules/_string-at.js\n// module chunks = 0","var ctx = require('./_ctx');\nvar invoke = require('./_invoke');\nvar html = require('./_html');\nvar cel = require('./_dom-create');\nvar global = require('./_global');\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (require('./_cof')(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_task.js\n// module id = ../../../node_modules/core-js/library/modules/_task.js\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = ../../../node_modules/core-js/library/modules/_to-absolute-index.js\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-integer.js\n// module id = ../../../node_modules/core-js/library/modules/_to-integer.js\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-iobject.js\n// module id = ../../../node_modules/core-js/library/modules/_to-iobject.js\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-length.js\n// module id = ../../../node_modules/core-js/library/modules/_to-length.js\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-object.js\n// module id = ../../../node_modules/core-js/library/modules/_to-object.js\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-primitive.js\n// module id = ../../../node_modules/core-js/library/modules/_to-primitive.js\n// module chunks = 0","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_uid.js\n// module id = ../../../node_modules/core-js/library/modules/_uid.js\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-define.js\n// module id = ../../../node_modules/core-js/library/modules/_wks-define.js\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-ext.js\n// module id = ../../../node_modules/core-js/library/modules/_wks-ext.js\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks.js\n// module id = ../../../node_modules/core-js/library/modules/_wks.js\n// module chunks = 0","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/core.get-iterator-method.js\n// module id = ../../../node_modules/core-js/library/modules/core.get-iterator-method.js\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = ../../../node_modules/core-js/library/modules/es6.array.iterator.js\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.assign.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.assign.js\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.create.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.create.js\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.define-property.js\n// module chunks = 0","// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = require('./_to-iobject');\nvar $getOwnPropertyDescriptor = require('./_object-gopd').f;\n\nrequire('./_object-sap')('getOwnPropertyDescriptor', function () {\n return function getOwnPropertyDescriptor(it, key) {\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js\n// module chunks = 0","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module chunks = 0","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.keys.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.keys.js\n// module chunks = 0","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value);\n if (domain) domain.exit();\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.promise.js\n// module id = ../../../node_modules/core-js/library/modules/es6.promise.js\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = ../../../node_modules/core-js/library/modules/es6.string.iterator.js\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.symbol.js\n// module id = ../../../node_modules/core-js/library/modules/es6.symbol.js\n// module chunks = 0","// https://github.com/tc39/proposal-promise-finally\n'use strict';\nvar $export = require('./_export');\nvar core = require('./_core');\nvar global = require('./_global');\nvar speciesConstructor = require('./_species-constructor');\nvar promiseResolve = require('./_promise-resolve');\n\n$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {\n var C = speciesConstructor(this, core.Promise || global.Promise);\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.finally.js\n// module id = ../../../node_modules/core-js/library/modules/es7.promise.finally.js\n// module chunks = 0","'use strict';\n// https://github.com/tc39/proposal-promise-try\nvar $export = require('./_export');\nvar newPromiseCapability = require('./_new-promise-capability');\nvar perform = require('./_perform');\n\n$export($export.S, 'Promise', { 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapability.f(this);\n var result = perform(callbackfn);\n (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);\n return promiseCapability.promise;\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.try.js\n// module id = ../../../node_modules/core-js/library/modules/es7.promise.try.js\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = ../../../node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = ../../../node_modules/core-js/library/modules/es7.symbol.observable.js\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = ../../../node_modules/core-js/library/modules/web.dom.iterable.js\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../css/lex-web-ui-fullpage.css\n// module id = ../css/lex-web-ui-fullpage.css\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../css/lex-web-ui-iframe.css\n// module id = ../css/lex-web-ui-iframe.css\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Default DependencyLoader dependencies\n *\n * Loads third-party libraries from CDNs. May want to host your own for production\n *\n * Relative URLs (not starting with http) are prepended with a base URL at run time\n */\nexport const dependenciesFullPage = {\n script: [\n {\n name: 'AWS',\n url: 'https://sdk.amazonaws.com/js/aws-sdk-2.180.0.js',\n canUseMin: true,\n },\n {\n // mobile hub generated aws config\n name: 'aws_bots_config',\n url: './aws-config.js',\n optional: true,\n },\n {\n name: 'Vue',\n url: 'https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js',\n canUseMin: true,\n },\n {\n name: 'Vuex',\n url: 'https://unpkg.com/vuex@3.0.1/dist/vuex.js',\n canUseMin: true,\n },\n {\n name: 'Vuetify',\n url: 'https://unpkg.com/vuetify@0.17.6/dist/vuetify.js',\n canUseMin: true,\n },\n {\n name: 'LexWebUi',\n url: './lex-web-ui.js',\n canUseMin: true,\n },\n ],\n css: [\n {\n name: 'roboto-material-icons',\n url: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons',\n },\n {\n name: 'vuetify',\n url: 'https://unpkg.com/vuetify@0.17.6/dist/vuetify.css',\n canUseMin: true,\n },\n {\n name: 'lex-web-ui',\n url: './lex-web-ui.css',\n canUseMin: true,\n },\n {\n name: 'lex-web-ui-loader',\n url: './lex-web-ui-loader.css',\n },\n ],\n};\n\nexport const dependenciesIframe = {\n script: [\n {\n name: 'AWS',\n url: 'https://sdk.amazonaws.com/js/aws-sdk-2.176.0.js',\n canUseMin: true,\n },\n {\n // mobile hub generated aws config\n name: 'aws_bots_config',\n url: './aws-config.js',\n optional: true,\n },\n ],\n css: [\n {\n name: 'lex-web-ui-loader',\n url: './lex-web-ui-loader.css',\n },\n ],\n};\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/defaults/dependencies.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Base configuration object structure\n *\n * NOTE: you probably don't want to be making config changes here but rather\n * use the config loader to override the defaults\n */\n\nexport const configBase = {\n lex: { botName: '' },\n cognito: { poolId: '' },\n ui: { parentOrigin: '' },\n polly: {},\n recorder: {},\n iframe: {\n iframeOrigin: '',\n iframeSrcPath: '',\n shouldLoadIframeMinimized: true,\n },\n};\n\nexport default configBase;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/defaults/lex-web-ui.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Default options and config structure\n *\n * NOTE: you probably don't want to be making config changes here but rather\n * use the config loader to override the defaults\n */\n\n/**\n * Default loader options\n * Apply both to iframe and full page\n */\nexport const options = {\n // base URL to be prepended to relative URLs of dependencies\n // if left empty, a relative path will still be used\n baseUrl: '/',\n\n // time to wait for config event\n configEventTimeoutInMs: 10000,\n\n // URL to download config JSON file\n // uses baseUrl if set as a relative URL (not starting with http)\n configUrl: './lex-web-ui-loader-config.json',\n\n // controls whether the local config should be ignored when running\n // embedded (e.g. iframe) in which case the parent page will pass the config\n // Only the parentOrigin config field is kept when set to true\n shouldIgnoreConfigWhenEmbedded: true,\n\n // controls whether the config should be obtained using events\n shouldLoadConfigFromEvent: false,\n\n // controls whether the config should be downloaded from `configUrl`\n shouldLoadConfigFromJsonFile: true,\n\n // controls whether the config should be downloaded from Mobile Hub aws-config.js\n shouldLoadConfigFromMobileHubFile: true,\n\n // Controls if it should load minimized production dependecies\n // set to true for production\n // NODE_ENV is injected at build time by webpack DefinePlugin\n shouldLoadMinDeps: (process.env.NODE_ENV === 'production'),\n};\n\n/**\n * Default full page specific loader options\n */\nexport const optionsFullPage = {\n ...options,\n\n // DOM element ID where the chatbot UI will be mounted\n elementId: 'lex-web-ui-fullpage',\n};\n\n/**\n * Default iframe specific loader options\n */\nexport const optionsIframe = {\n ...options,\n\n // DOM element ID where the chatbot UI will be mounted\n elementId: 'lex-web-ui-iframe',\n\n // div container class to insert iframe\n containerClass: 'lex-web-ui-iframe',\n\n // iframe source path. this is appended to the iframeOrigin\n // must use the LexWebUiEmbed=true query string to enable embedded mode\n iframeSrcPath: '/index.html#/?lexWebUiEmbed=true',\n};\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/defaults/loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n/**\n * Entry point to the chatbot-ui-loader.js library\n * Exports the loader classes\n */\n\n// import default config\n// import { configIframe, configFullPage } from './defaults/lex-web-ui';\nimport { configBase } from './defaults/lex-web-ui';\nimport { optionsIframe, optionsFullPage } from './defaults/loader';\nimport { dependenciesIframe, dependenciesFullPage } from './defaults/dependencies';\n\n// import from lib\nimport { DependencyLoader } from './lib/dependency-loader';\nimport { ConfigLoader } from './lib/config-loader';\nimport { IframeComponentLoader } from './lib/iframe-component-loader';\nimport { FullPageComponentLoader } from './lib/fullpage-component-loader';\n\n// import CSS\nimport '../css/lex-web-ui-fullpage.css';\nimport '../css/lex-web-ui-iframe.css';\n\n/**\n * CustomEvent polyfill for IE11\n * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill\n */\nfunction setCustomEventShim() {\n if (typeof window.CustomEvent === 'function') {\n return false;\n }\n\n function CustomEvent(\n event,\n params = { bubbles: false, cancelable: false, detail: undefined },\n ) {\n const evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n }\n\n CustomEvent.prototype = window.Event.prototype;\n window.CustomEvent = CustomEvent;\n\n return true;\n}\n\n/**\n * Base class used by the full page and iframe loaders\n */\nclass Loader {\n /**\n * @param {object} options - options controlling how the dependencies and\n * component configa are loaded\n */\n constructor(options) {\n // polyfill needed for IE11\n setCustomEventShim();\n this.options = options;\n\n // append a trailing slash if not present in the baseUrl\n this.options.baseUrl =\n (this.options.baseUrl && this.options.baseUrl.endsWith('/')) ?\n this.options.baseUrl : `${this.options.baseUrl}/`;\n\n this.confLoader = new ConfigLoader(this.options);\n }\n\n load(configParam = {}) {\n // merge empty constructor config and parameter config\n this.config = ConfigLoader.mergeConfig(this.config, configParam);\n\n // load dependencies\n return this.depLoader.load()\n // load dynamic config\n .then(() => this.confLoader.load(this.config))\n // assign and merge dynamic config to this instance config\n .then((config) => {\n this.config = ConfigLoader.mergeConfig(this.config, config);\n })\n .then(() => this.compLoader.load(this.config));\n }\n}\n\n/**\n * Class used to to dynamically load the chatbot ui in a full page including its\n * dependencies and config\n */\nexport class FullPageLoader extends Loader {\n /**\n * @param {object} options - options controlling how the dependencies and\n * component config are loaded\n */\n constructor(options = {}) {\n super({ ...optionsFullPage, ...options });\n\n this.config = configBase;\n\n // run-time dependencies\n this.depLoader = new DependencyLoader({\n shouldLoadMinDeps: this.options.shouldLoadMinDeps,\n dependencies: dependenciesFullPage,\n baseUrl: this.options.baseUrl,\n });\n\n this.compLoader = new FullPageComponentLoader({\n elementId: this.options.elementId,\n config: this.config,\n });\n }\n\n load(configParam = {}) {\n return super.load(configParam);\n }\n}\n\n/**\n * Class used to to dynamically load the chatbot ui in an iframe\n */\nexport class IframeLoader extends Loader {\n /**\n * @param {object} options - options controlling how the dependencies and\n * component config are loaded\n */\n constructor(options = {}) {\n super({ ...optionsIframe, ...options });\n\n // chatbot UI component config\n this.config = configBase;\n\n // run-time dependencies\n this.depLoader = new DependencyLoader({\n shouldLoadMinDeps: this.options.shouldLoadMinDeps,\n dependencies: dependenciesIframe,\n baseUrl: this.options.baseUrl,\n });\n\n this.compLoader = new IframeComponentLoader({\n config: this.config,\n containerClass: this.options.containerClass || 'lex-web-ui',\n elementId: this.options.elementId || 'lex-web-ui',\n });\n }\n\n load(configParam = {}) {\n this.config.iframe = this.config.iframe || {};\n this.config.iframe.iframeSrcPath = this.mergeSrcPath(configParam);\n\n return super.load(configParam)\n .then(() => {\n // assign API to this object to make calls more succint\n this.api = this.compLoader.api;\n });\n }\n\n /**\n * Merges iframe src path from options and iframe config\n */\n mergeSrcPath(configParam) {\n const { iframe: iframeConfigFromParam } = configParam;\n const srcPathFromParam =\n iframeConfigFromParam && iframeConfigFromParam.iframeSrcPath;\n const { iframe: iframeConfigFromThis } = this.config;\n const srcPathFromThis =\n iframeConfigFromThis && iframeConfigFromThis.iframeSrcPath;\n\n return (srcPathFromParam || this.options.iframeSrcPath || srcPathFromThis);\n }\n}\n\n/**\n * chatbot loader library entry point\n */\nexport const ChatBotUiLoader = {\n FullPageLoader,\n IframeLoader,\n};\n\nexport default ChatBotUiLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/index.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n/* global aws_bots_config aws_cognito_identity_pool_id aws_cognito_region */\n\nimport { options as defaultOptions } from '../defaults/loader';\n\n/**\n * Config loader class\n *\n * Loads the chatbot UI config from the following sources in order of precedence:\n * (lower overrides higher):\n * 1. parameter passed to load()\n * 2. Event (loadlexconfig)\n * 3. Mobile HUB\n * 4. JSON file\n * TODO implement passing config in url param\n */\n\nexport class ConfigLoader {\n constructor(options = defaultOptions) {\n this.options = options;\n this.config = {};\n }\n\n /**\n * Loads the config from the supported the sources\n *\n * Config is sequentially merged\n *\n * Returns a promise that resolves to the merged config\n */\n load(configParam = {}) {\n return Promise.resolve()\n // json file\n .then(() => {\n if (this.options.shouldLoadConfigFromJsonFile) {\n // append baseUrl to config if it's relative\n const url = (this.options.configUrl.startsWith('http')) ?\n this.options.configUrl :\n `${this.options.baseUrl}${this.options.configUrl}`;\n return ConfigLoader.loadJsonFile(url);\n }\n return Promise.resolve({});\n })\n // mobile hub\n .then(mergedConfigFromJson => (\n (this.options.shouldLoadConfigFromMobileHubFile) ?\n ConfigLoader.mergeMobileHubConfig(mergedConfigFromJson) :\n Promise.resolve(mergedConfigFromJson)\n ))\n // event\n .then(mergedConfigFromMobileHub => (\n (this.options.shouldLoadConfigFromEvent) ?\n ConfigLoader.loadConfigFromEvent(\n mergedConfigFromMobileHub,\n this.options.configEventTimeoutInMs,\n ) :\n Promise.resolve(mergedConfigFromMobileHub)\n ))\n // filter config when running embedded\n .then(mergedConfigFromEvent => (\n this.filterConfigWhenEmedded(mergedConfigFromEvent)\n ))\n // merge config from parameter\n .then(config => (ConfigLoader.mergeConfig(config, configParam)));\n }\n\n /**\n * Loads the config from a JSON file URL\n */\n static loadJsonFile(url) {\n return new Promise((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url);\n xhr.responseType = 'json';\n xhr.onerror = () => (\n reject(new Error(`error getting chatbot UI config from url: ${url}`))\n );\n xhr.onload = () => {\n if (xhr.status !== 200) {\n const err = `failed to get chatbot config with status: ${xhr.status}`;\n return reject(new Error(err));\n }\n // ie11 does not support responseType\n if (typeof xhr.response === 'string') {\n try {\n const parsedResponse = JSON.parse(xhr.response);\n return resolve(parsedResponse);\n } catch (err) {\n return reject(new Error('failed to decode chatbot UI config object'));\n }\n }\n return resolve(xhr.response);\n };\n xhr.send();\n });\n }\n\n /**\n * Merges config with Mobile Hub variables\n *\n * Grabs the Cognito Pool Id and Bot name from the\n * aws_cognito_identity_pool_id and aws_bots_config global variables.\n * These variables are normally set by the 'aws-config.js' script.\n *\n * Returns a promise that resolves to the merge between the\n * Mobile Hub variables and the config parameter\n */\n static mergeMobileHubConfig(config) {\n // these values come from the AWS Mobile Hub generated aws-config.js\n // eslint-disable-next-line camelcase\n if (!aws_cognito_identity_pool_id || !aws_bots_config) {\n return Promise.resolve(config);\n }\n\n return new Promise((resolve, reject) => {\n let botName = '';\n let botRegion = '';\n\n try {\n const botsConfig = JSON.parse(aws_bots_config);\n botName = botsConfig[0].name;\n botRegion = botsConfig[0].region;\n } catch (err) {\n return reject(new Error('failed to parse mobile hub aws_bots_config'));\n }\n\n const mobileHubConfig = {\n cognito: {\n poolId: aws_cognito_identity_pool_id,\n // eslint-disable-next-line camelcase\n region: aws_cognito_region || 'us-east-1',\n },\n lex: { botName },\n region: botRegion || 'us-east-1',\n };\n\n const mergedConfig = ConfigLoader.mergeConfig(config, mobileHubConfig);\n\n return resolve(mergedConfig);\n });\n }\n\n /**\n * Loads dynamic bot config from an event\n * Merges it with the config passed as parameter\n */\n static loadConfigFromEvent(config, timeoutInMs = 10000) {\n const eventManager = {\n intervalId: null,\n timeoutId: null,\n onConfigEventLoaded: null,\n onConfigEventTimeout: null,\n };\n\n return new Promise((resolve, reject) => {\n eventManager.onConfigEventLoaded = (evt) => {\n clearTimeout(eventManager.timeoutId);\n clearInterval(eventManager.intervalId);\n document.removeEventListener('loadlexconfig', eventManager.onConfigEventLoaded, false);\n\n if (evt && ('detail' in evt) && evt.detail && ('config' in evt.detail)) {\n const evtConfig = evt.detail.config;\n const mergedConfig = ConfigLoader.mergeConfig(config, evtConfig);\n return resolve(mergedConfig);\n }\n return reject(new Error('malformed config in event'));\n };\n\n eventManager.onConfigEventTimeout = () => {\n clearInterval(eventManager.intervalId);\n document.removeEventListener('loadlexconfig', eventManager.onConfigEventLoaded, false);\n return reject(new Error('config event timed out'));\n };\n\n eventManager.timeoutId = setTimeout(eventManager.onConfigEventTimeout, timeoutInMs);\n document.addEventListener('loadlexconfig', eventManager.onConfigEventLoaded, false);\n\n // signal that we are ready to receive the dynamic config\n // on an interval of 1/2 a second\n eventManager.intervalId = setInterval(() => (\n document.dispatchEvent(new CustomEvent('receivelexconfig'))\n ), 500);\n });\n }\n\n /**\n * Ignores most fields when running embeded and the\n * shouldIgnoreConfigWhenEmbedded is set to true\n */\n filterConfigWhenEmedded(config) {\n const url = window.location.href;\n // when shouldIgnoreConfigEmbedded is true\n // ignore most of the config with the exception of the parentOrigin\n const parentOrigin = config.ui && config.ui.parentOrigin;\n return (this.options &&\n this.options.shouldIgnoreConfigWhenEmbedded &&\n url.includes('lexWebUiEmbed=true')) ?\n { ui: { parentOrigin } } : config;\n }\n\n /**\n * Merges config objects. The initial set of keys to merge are driven by\n * the baseConfig. The srcConfig values override the baseConfig ones\n * unless the srcConfig value is empty\n */\n static mergeConfig(baseConfig, srcConfig = {}) {\n function isEmpty(data) {\n if (typeof data === 'number' || typeof data === 'boolean') {\n return false;\n }\n if (typeof data === 'undefined' || data === null) {\n return true;\n }\n if (typeof data.length !== 'undefined') {\n return data.length === 0;\n }\n return Object.keys(data).length === 0;\n }\n\n if (isEmpty(srcConfig)) {\n return { ...baseConfig };\n }\n\n // use the baseConfig first level keys as the base for merging\n return Object.keys(baseConfig)\n .map((key) => {\n const mergedConfig = {};\n let value = baseConfig[key];\n // merge from source if its value is not empty\n if (key in srcConfig && !isEmpty(srcConfig[key])) {\n value = (typeof baseConfig[key] === 'object') ?\n // recursively merge sub-objects in both directions\n {\n ...ConfigLoader.mergeConfig(srcConfig[key], baseConfig[key]),\n ...ConfigLoader.mergeConfig(baseConfig[key], srcConfig[key]),\n } :\n srcConfig[key];\n }\n mergedConfig[key] = value;\n return mergedConfig;\n })\n // merge key values back into a single object\n .reduce((merged, configItem) => ({ ...merged, ...configItem }), {});\n }\n}\n\nexport default ConfigLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/config-loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n/**\n * Dependency loader class\n *\n * Used to dynamically load external JS/CSS dependencies into the DOM\n */\nexport class DependencyLoader {\n /**\n * @param {boolean} shouldLoadMinDeps - controls whether the minimized\n * version of a dependency should be loaded. Default: true.\n *\n * @param {boolean} baseUrl - sets the baseUrl to be prepended to relative\n * URLs. Default: '/'\n *\n * @param {object} dependencies - contains a field for scripts and css\n * dependencies. Each field points to an array of objects containing\n * the dependency definition. The order of array dictates the load sequence.\n *\n * Each object in the array may contain the following fields:\n * - name: [required] For scripts, it points to a variable in global\n * namespace indicating if the script is loaded. It is also used in the\n * element id\n * - url: [required] URL where the dependency is loaded\n * - optional: When set to true, load errors are ignored. Otherwise, if set\n * to false, the dependency load chain fails\n * - canUseMin: When set to true, it attempts to load the min version of a\n * dependency by prepending 'min' before the file extension.\n *\n * Example:\n * dependencies = {\n * 'script': [\n * {\n * name: 'Vuetify',\n * url: 'https://unpkg.com/vuetify/dist/vuetify.js',\n * optional: false,\n * canUseMin: true,\n * },\n * ],\n * 'css': [\n * {\n * name: 'vuetify',\n * url: 'https://unpkg.com/vuetify/dist/vuetify.css',\n * canUseMin: true,\n * },\n * ],\n * };\n */\n constructor({ shouldLoadMinDeps = true, dependencies, baseUrl = '/' }) {\n if (typeof shouldLoadMinDeps !== 'boolean') {\n throw new Error('useMin paramenter should be a boolean');\n }\n if (!('css' in dependencies) || !Array.isArray(dependencies.css)) {\n throw new Error('missing or invalid css field in dependency parameter');\n }\n if (!('script' in dependencies) || !Array.isArray(dependencies.script)) {\n throw new Error('missing or invalid script field in dependency parameter');\n }\n this.useMin = shouldLoadMinDeps;\n this.dependencies = dependencies;\n this.baseUrl = baseUrl;\n }\n\n /**\n * Sequentially loads the dependencies\n *\n * Returns a promise that resolves if all dependencies are successfully\n * loaded or rejected if one fails (unless the dependency is optional).\n */\n load() {\n const types = [\n 'css',\n 'script',\n ];\n\n return types.reduce((typePromise, type) => (\n this.dependencies[type].reduce((loadPromise, dependency) => (\n loadPromise.then(() => (\n DependencyLoader.addDependency(this.useMin, this.baseUrl, type, dependency)\n ))\n ), typePromise)\n ), Promise.resolve());\n }\n\n /**\n * Inserts `.min` in URLs before extension\n */\n static getMinUrl(url) {\n const lastDotPosition = url.lastIndexOf('.');\n if (lastDotPosition === -1) {\n return `${url}.min`;\n }\n return `${url.substring(0, lastDotPosition)}.min${url.substring(lastDotPosition)}`;\n }\n\n /**\n * Builds the parameters used to add attributes to the tag\n */\n static getTypeAttributes(type) {\n switch (type) {\n case 'script':\n return {\n elAppend: document.body,\n tag: 'script',\n typeAttrib: 'text/javascript',\n srcAttrib: 'src',\n };\n case 'css':\n return {\n elAppend: document.head,\n tag: 'link',\n typeAttrib: 'text/css',\n srcAttrib: 'href',\n };\n default:\n return {};\n }\n }\n\n /**\n * Adds a JS/CSS dependency to the DOM\n *\n * Adds a script or link tag to dynamically load the JS/CSS dependency\n * Avoids adding script tags if the associated name exists in the global scope\n * or if the associated element id exists.\n *\n * Returns a promise that resolves when the dependency is loaded\n */\n static addDependency(useMin = true, baseUrl = '/', type, dependency) {\n if (!['script', 'css'].includes(type)) {\n return Promise.reject(new Error(`invalid dependency type: ${type}`));\n }\n if (!dependency || !dependency.name || !dependency.url) {\n return Promise.reject(new Error(`invalid dependency parameter: ${dependency}`));\n }\n\n // load fails after this timeout\n const loadTimeoutInMs = 10000;\n\n // For scripts, name is used to check if the dependency global variable exist\n // it is also used to build the element id of the HTML tag\n const { name } = dependency;\n if (type === 'script' && name in window) {\n console.warn(`script global variable ${name} seems to already exist`);\n return Promise.resolve();\n }\n\n // dependency url - can be automatically changed to a min link\n const minUrl = (useMin && dependency.canUseMin) ?\n DependencyLoader.getMinUrl(dependency.url) : dependency.url;\n\n // add base URL to relative URLs\n const url = (minUrl.startsWith('http')) ?\n minUrl : `${baseUrl}${minUrl}`;\n\n // element id - uses naming convention of -\n const elId = `${String(name).toLowerCase()}-${type}`;\n if (document.getElementById(elId)) {\n console.warn(`dependency tag for ${name} seems to already exist`);\n return Promise.resolve();\n }\n const {\n elAppend, typeAttrib, srcAttrib, tag,\n } = DependencyLoader.getTypeAttributes(type);\n\n if (!elAppend || !elAppend.appendChild) {\n return Promise.reject(new Error('invalid append element'));\n }\n\n return new Promise((resolve, reject) => {\n const el = document.createElement(tag);\n\n el.setAttribute('id', elId);\n el.setAttribute('type', typeAttrib);\n\n const timeoutId = setTimeout(() => (\n reject(new Error(`timed out loading ${name} dependency link: ${url}`))\n ), loadTimeoutInMs);\n el.onerror = () => {\n if (dependency.optional) {\n return resolve(el);\n }\n return reject(new Error(`failed to load ${name} dependency link: ${url}`));\n };\n el.onload = () => {\n clearTimeout(timeoutId);\n return resolve(el);\n };\n\n try {\n if (type === 'css') {\n el.setAttribute('rel', 'stylesheet');\n }\n el.setAttribute(srcAttrib, url);\n\n if (type === 'script') {\n // links appended towards the bottom\n elAppend.appendChild(el);\n } else if (type === 'css') {\n // css inserted before other links to allow overriding\n const linkEl = elAppend.querySelector('link');\n elAppend.insertBefore(el, linkEl);\n }\n } catch (err) {\n return reject(new Error(`failed to add ${name} dependency: ${err}`));\n }\n\n return el;\n });\n }\n}\n\nexport default DependencyLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/dependency-loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n/* global LexWebUi Vue */\nimport { ConfigLoader } from './config-loader';\n\n/**\n * Instantiates and mounts the chatbot component\n *\n * Assumes that the LexWebUi and Vue libraries have been loaded in the global\n * scope\n */\nexport class FullPageComponentLoader {\n /**\n * @param {string} elementId - element ID where the chatbot UI component\n * will be mounted\n * @param {object} config - chatbot UI config\n */\n constructor({ elementId = 'lex-web-ui', config = {} }) {\n this.elementId = elementId;\n this.config = config;\n }\n\n /**\n * Loads the component into the DOM\n * configParam overrides at runtime the chatbot UI config\n */\n load(configParam) {\n const mergedConfig = ConfigLoader.mergeConfig(this.config, configParam);\n\n return FullPageComponentLoader.createComponent(mergedConfig)\n .then(lexWebUi => (\n FullPageComponentLoader.mountComponent(this.elementId, lexWebUi)\n ));\n }\n\n /**\n * Instantiates the LexWebUi component\n *\n * Returns a promise that resolves to the component\n */\n static createComponent(config = {}) {\n return new Promise((resolve, reject) => {\n try {\n const lexWebUi = new LexWebUi.Loader(config);\n return resolve(lexWebUi);\n } catch (err) {\n return reject(new Error(`failed to load LexWebUi: ${err}`));\n }\n });\n }\n\n /**\n * Mounts the chatbot component in the DOM at the provided element ID\n * Returns a promise that resolves when the component is mounted\n */\n static mountComponent(elId = 'lex-web-ui', lexWebUi) {\n if (!lexWebUi) {\n throw new Error('lexWebUi not set');\n }\n return new Promise((resolve, reject) => {\n let el = document.getElementById(elId);\n\n // if the element doesn't exist, create a div and append it\n // to the document body\n if (!el) {\n el = document.createElement('div');\n el.setAttribute('id', elId);\n document.body.appendChild(el);\n }\n\n try {\n const LexWebUiComponent = Vue.extend({\n store: lexWebUi.store,\n template: '
',\n });\n\n // mounts off-document\n const lexWebUiComponent = new LexWebUiComponent().$mount();\n // replace existing element\n el.parentNode.replaceChild(lexWebUiComponent.$el, el);\n resolve(lexWebUiComponent);\n } catch (err) {\n reject(new Error(`failed to mount lexWebUi component: ${err}`));\n }\n });\n }\n}\n\nexport default FullPageComponentLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/fullpage-component-loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n/* global AWS */\n\nimport { ConfigLoader } from './config-loader';\n\n/**\n * Instantiates and mounts the chatbot component in an iframe\n *\n */\nexport class IframeComponentLoader {\n /**\n * @param {object} config - chatbot UI config\n * @param {string} elementId - element ID of a div containing the iframe\n * @param {string} containerClass - base CSS class used to match element\n * used for dynamicall hiding/showing element\n */\n constructor({\n config = {},\n containerClass = 'lex-web-ui',\n elementId = 'lex-web-ui',\n }) {\n this.elementId = elementId;\n this.config = config;\n this.containerClass = containerClass;\n\n this.iframeElement = null;\n this.containerElement = null;\n this.credentials = null;\n this.isChatBotReady = false;\n\n this.initIframeMessageHandlers();\n }\n\n /**\n * Loads the component into the DOM\n * configParam overrides at runtime the chatbot UI config\n */\n load(configParam) {\n this.config = ConfigLoader.mergeConfig(this.config, configParam);\n\n // add iframe config if missing\n if (!(('iframe' in this.config))) {\n this.config.iframe = {};\n }\n const iframeConfig = this.config.iframe;\n // assign the iframeOrigin if not found in config\n if (!(('iframeOrigin' in iframeConfig) && iframeConfig.iframeOrigin)) {\n this.config.iframe.iframeOrigin =\n this.config.parentOrigin || window.location.origin;\n }\n // assign parentOrigin if not found in config\n if (!(this.config.parentOrigin)) {\n this.config.parentOrigin =\n this.config.iframe.iframeOrigin || window.location.origin;\n }\n // validate config\n if (!IframeComponentLoader.validateConfig(this.config)) {\n return Promise.reject(new Error('config object is missing required fields'));\n }\n\n return Promise.all([\n this.initContainer(),\n this.initCognitoCredentials(),\n this.setupIframeMessageListener(),\n ])\n .then(() => this.initIframe())\n .then(() => this.initParentToIframeApi())\n .then(() => this.showIframe());\n }\n\n /**\n * Validate that the config has the expected structure\n */\n static validateConfig(config) {\n const { iframe: iframeConfig } = config;\n if (!iframeConfig) {\n console.error('missing iframe config field');\n return false;\n }\n if (!('iframeOrigin' in iframeConfig && iframeConfig.iframeOrigin)) {\n console.error('missing iframeOrigin config field');\n return false;\n }\n if (!('iframeSrcPath' in iframeConfig && iframeConfig.iframeSrcPath)) {\n console.error('missing iframeSrcPath config field');\n return false;\n }\n if (!('parentOrigin' in config && config.parentOrigin)) {\n console.error('missing parentOrigin config field');\n return false;\n }\n return true;\n }\n\n /**\n * Adds a div container to document body which will hold the chatbot iframe\n * Inits this.containerElement\n */\n initContainer() {\n return new Promise((resolve, reject) => {\n if (!this.elementId || !this.containerClass) {\n return reject(new Error('invalid chatbot container parameters'));\n }\n let containerEl = document.getElementById(this.elementId);\n if (containerEl) {\n console.warn('chatbot iframe container already exists');\n return resolve(containerEl);\n }\n try {\n containerEl = document.createElement('div');\n containerEl.classList.add(this.containerClass);\n containerEl.setAttribute('id', this.elementId);\n document.body.appendChild(containerEl);\n } catch (err) {\n return reject(new Error(`error initializing container: ${err}`));\n }\n\n // assign container element\n this.containerElement = containerEl;\n return resolve();\n });\n }\n\n /**\n * Creates Cognito credentials\n * Inits this.credentials\n */\n initCognitoCredentials() {\n return new Promise((resolve, reject) => {\n const { poolId: cognitoPoolId } =\n this.config.cognito;\n const region =\n this.config.cognito.region || this.config.region || 'us-east-1';\n if (!cognitoPoolId) {\n return reject(new Error('missing cognito poolId config'));\n }\n\n if (!('AWS' in window) ||\n !('CognitoIdentityCredentials' in window.AWS)\n ) {\n return reject(new Error('unable to find AWS SDK global object'));\n }\n\n let credentials;\n try {\n credentials = new AWS.CognitoIdentityCredentials(\n { IdentityPoolId: cognitoPoolId },\n { region },\n );\n } catch (err) {\n reject(new Error(`cognito credentials could not be created ${err}`));\n }\n\n // get and assign credentials\n return credentials.getPromise()\n .then(() => {\n this.credentials = credentials;\n resolve();\n });\n });\n }\n\n /**\n * Add postMessage event handler to receive messages from iframe\n */\n setupIframeMessageListener() {\n try {\n window.addEventListener(\n 'message',\n this.onMessageFromIframe.bind(this),\n false,\n );\n } catch (err) {\n return Promise\n .reject(new Error(`could not add iframe message listener ${err}`));\n }\n\n return Promise.resolve();\n }\n\n /**\n * Message handler - receives postMessage events from iframe\n */\n onMessageFromIframe(evt) {\n const iframeOrigin =\n (\n 'iframe' in this.config &&\n typeof this.config.iframe.iframeOrigin === 'string'\n ) ?\n this.config.iframe.iframeOrigin :\n window.location.origin;\n\n // SECURITY: origin check\n if (evt.origin !== iframeOrigin) {\n console.warn('postMessage from invalid origin', evt.origin);\n return;\n }\n if (!evt.ports || !Array.isArray(evt.ports) || !evt.ports.length) {\n console.warn('postMessage not sent over MessageChannel', evt);\n return;\n }\n if (!this.iframeMessageHandlers) {\n console.error('invalid iframe message handler');\n return;\n }\n\n if (!evt.data.event) {\n console.error('event from iframe does not have the event field', evt);\n return;\n }\n\n // SECURITY: validate that a message handler is defined as a property\n // and not inherited\n const hasMessageHandler = Object.prototype.hasOwnProperty.call(\n this.iframeMessageHandlers,\n evt.data.event,\n );\n if (!hasMessageHandler) {\n console.error('unknown message in event', evt.data);\n return;\n }\n\n // calls event handler and dynamically bind this\n this.iframeMessageHandlers[evt.data.event].call(this, evt);\n }\n\n /**\n * Adds chat bot iframe under the application div container\n * Inits this.iframeElement\n */\n initIframe() {\n const { iframeOrigin, iframeSrcPath } = this.config.iframe;\n if (!iframeOrigin || !iframeSrcPath) {\n return Promise.reject(new Error('invalid iframe url fields'));\n }\n const url = `${iframeOrigin}${iframeSrcPath}`;\n if (!url) {\n return Promise.reject(new Error('invalid iframe url'));\n }\n if (!this.containerElement || !('appendChild' in this.containerElement)) {\n return Promise.reject(new Error('invalid node element to append iframe'));\n }\n let iframeElement = this.containerElement.querySelector('iframe');\n if (iframeElement) {\n return Promise.resolve(iframeElement);\n }\n\n try {\n iframeElement = document.createElement('iframe');\n iframeElement.setAttribute('src', url);\n iframeElement.setAttribute('frameBorder', '0');\n iframeElement.setAttribute('scrolling', 'no');\n iframeElement.setAttribute('title', 'chatbot');\n // chrome requires this feature policy when using the\n // mic in an cross-origin iframe\n iframeElement.setAttribute('allow', 'microphone');\n\n this.containerElement.appendChild(iframeElement);\n } catch (err) {\n return Promise\n .reject(new Error(`failed to initialize iframe element ${err}`));\n }\n\n // assign iframe element\n this.iframeElement = iframeElement;\n return this.waitForIframe(iframeElement)\n .then(() => this.waitForChatBotReady());\n }\n\n /**\n * Waits for iframe to load\n */\n waitForIframe() {\n const iframeLoadManager = {\n timeoutInMs: 20000,\n timeoutId: null,\n onIframeLoaded: null,\n onIframeTimeout: null,\n };\n\n return new Promise((resolve, reject) => {\n iframeLoadManager.onIframeLoaded = () => {\n clearTimeout(iframeLoadManager.timeoutId);\n this.iframeElement.removeEventListener(\n 'load',\n iframeLoadManager.onIframeLoaded,\n false,\n );\n\n return resolve();\n };\n\n iframeLoadManager.onIframeTimeout = () => {\n this.iframeElement.removeEventListener(\n 'load',\n iframeLoadManager.onIframeLoaded,\n false,\n );\n\n return reject(new Error('iframe load timeout'));\n };\n\n iframeLoadManager.timeoutId = setTimeout(\n iframeLoadManager.onIframeTimeout,\n iframeLoadManager.timeoutInMs,\n );\n\n this.iframeElement.addEventListener(\n 'load',\n iframeLoadManager.onIframeLoaded,\n false,\n );\n });\n }\n\n /**\n * Wait for the chatbot UI to set isChatBotReady to true\n * isChatBotReady is set by the event handler when the chatbot\n * UI component signals that it has successfully loaded\n */\n waitForChatBotReady() {\n const readyManager = {\n timeoutId: null,\n intervalId: null,\n checkIsChtBotReady: null,\n onConfigEventTimeout: null,\n };\n\n return new Promise((resolve, reject) => {\n const timeoutInMs = 15000;\n\n readyManager.checkIsChatBotReady = () => {\n // isChatBotReady set by event received from iframe\n if (this.isChatBotReady) {\n clearTimeout(readyManager.timeoutId);\n clearInterval(readyManager.intervalId);\n resolve();\n }\n };\n\n readyManager.onConfigEventTimeout = () => {\n clearInterval(readyManager.intervalId);\n return reject(new Error('chatbot loading time out'));\n };\n\n readyManager.timeoutId =\n setTimeout(readyManager.onConfigEventTimeout, timeoutInMs);\n\n readyManager.intervalId =\n setInterval(readyManager.checkIsChatBotReady, 500);\n });\n }\n\n /**\n * Get AWS credentials to pass to the chatbot UI\n */\n getCredentials() {\n if (!this.credentials || !('getPromise' in this.credentials)) {\n return Promise.reject(new Error('invalid credentials'));\n }\n\n return this.credentials.getPromise()\n .then(() => (\n localStorage.setItem('cognitoid', this.credentials.identityId)\n ))\n .then(() => this.credentials);\n }\n\n /**\n * Event handler functions for messages from iframe\n * Used by onMessageFromIframe - \"this\" object is bound dynamically\n */\n initIframeMessageHandlers() {\n this.iframeMessageHandlers = {\n // signals to the parent that the iframe component is loaded and its\n // API handler is ready\n ready(evt) {\n this.isChatBotReady = true;\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event });\n },\n\n // requests credentials from the parent\n getCredentials(evt) {\n return this.getCredentials()\n .then(creds => (\n evt.ports[0].postMessage({\n event: 'resolve',\n type: evt.data.event,\n data: creds,\n })\n ))\n .catch((error) => {\n console.error('failed to get credentials', error);\n evt.ports[0].postMessage({\n event: 'reject',\n type: evt.data.event,\n error: 'failed to get credentials',\n });\n });\n },\n\n // requests chatbot UI config\n initIframeConfig(evt) {\n evt.ports[0].postMessage({\n event: 'resolve',\n type: evt.data.event,\n data: this.config,\n });\n },\n\n // sent when minimize button is pressed within the iframe component\n toggleMinimizeUi(evt) {\n this.toggleMinimizeUiClass()\n .then(() => (\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event })\n ))\n .catch((error) => {\n console.error('failed to toggleMinimizeUi', error);\n evt.ports[0].postMessage({\n event: 'reject',\n type: evt.data.event,\n error: 'failed to toggleMinimizeUi',\n });\n });\n },\n\n // iframe sends Lex updates based on Lex API responses\n updateLexState(evt) {\n // evt.data will contain the Lex state\n // send resolve ressponse to the chatbot ui\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event });\n\n // relay event to parent\n const stateEvent = new CustomEvent('updatelexstate', { detail: evt.data });\n document.dispatchEvent(stateEvent);\n },\n };\n }\n\n /**\n * Send a message to the iframe using postMessage\n */\n sendMessageToIframe(message) {\n if (!this.iframeElement ||\n !('contentWindow' in this.iframeElement) ||\n !('postMessage' in this.iframeElement.contentWindow)\n ) {\n return Promise.reject(new Error('invalid iframe element'));\n }\n\n const { iframeOrigin } = this.config.iframe;\n if (!iframeOrigin) {\n return Promise.reject(new Error('invalid iframe origin'));\n }\n\n return new Promise((resolve, reject) => {\n const messageChannel = new MessageChannel();\n messageChannel.port1.onmessage = (evt) => {\n messageChannel.port1.close();\n messageChannel.port2.close();\n if (evt.data.event === 'resolve') {\n resolve(evt.data);\n } else {\n reject(new Error(`iframe failed to handle message - ${evt.data.error}`));\n }\n };\n this.iframeElement.contentWindow.postMessage(\n message,\n iframeOrigin,\n [messageChannel.port2],\n );\n });\n }\n\n /**\n * Toggle between showing/hiding chatbot ui\n */\n toggleShowUiClass() {\n try {\n this.containerElement.classList.toggle(`${this.containerClass}--show`);\n return Promise.resolve();\n } catch (err) {\n return Promise.reject(new Error(`failed to toggle show UI ${err}`));\n }\n }\n\n /**\n * Toggle between miminizing and expanding the chatbot ui\n */\n toggleMinimizeUiClass() {\n try {\n this.containerElement.classList.toggle(`${this.containerClass}--minimize`);\n return Promise.resolve();\n } catch (err) {\n return Promise.reject(new Error(`failed to toggle minimize UI ${err}`));\n }\n }\n\n /**\n * Shows the iframe\n */\n showIframe() {\n return Promise.resolve()\n .then(() => (\n // start minimized if configured accordingly\n (this.config.iframe.shouldLoadIframeMinimized) ?\n this.api.toggleMinimizeUi() :\n Promise.resolve()\n ))\n // display UI\n .then(() => this.toggleShowUiClass());\n }\n\n /**\n * Event based API handler\n * Receives `lexWebUiMessage` events from the parent and relays\n * to the iframe using postMessage\n */\n onMessageToIframe(evt) {\n if (!evt || !('detail' in evt) || !evt.detail ||\n !('message' in evt.detail)\n ) {\n return Promise.reject(new Error('malformed message to iframe event'));\n }\n return this.sendMessageToIframe(evt.detail.message);\n }\n\n\n /**\n * Inits the parent to iframe API\n */\n initParentToIframeApi() {\n this.api = {\n ping: () => this.sendMessageToIframe({ event: 'ping' }),\n sendParentReady: () => (\n this.sendMessageToIframe({ event: 'parentReady' })\n ),\n toggleMinimizeUi: () => (\n this.sendMessageToIframe({ event: 'toggleMinimizeUi' })\n ),\n postText: message => (\n this.sendMessageToIframe({ event: 'postText', message })\n ),\n };\n\n return Promise.resolve()\n .then(() => {\n // Add listener for parent to iframe event based API\n document.addEventListener(\n 'lexWebUiMessage',\n this.onMessageToIframe.bind(this),\n false,\n );\n })\n // signal to iframe that the parent is ready\n .then(() => this.api.sendParentReady())\n // signal to parent that the API is ready\n .then(() => {\n document.dispatchEvent(new CustomEvent('lexWebUiReady'));\n });\n }\n}\n\nexport default IframeComponentLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/iframe-component-loader.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACntBA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpBA;AACA;;;;;;;;ACDA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;;;;;;;;ACDA;AACA;;;;;;;;ACDA;AACA;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;;;;;;;;ACHA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;;;;;;;;ACDA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;AACA;AACA;;;;;;;;ACFA;;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjCA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;AAaA;;;;;;;AAOA;AACA;AAEA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AAJA;AAOA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AAEA;AACA;AAFA;AAKA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AAFA;AAjDA;AACA;AAuDA;AACA;AAEA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AAJA;AAOA;AAEA;AACA;AAFA;AAfA;;;;;;;;;;;;;AC5EA;;;;;;;;;;;;;AAaA;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AANA;AACA;AAYA;;;;;;;;;;;;;;;;;;;;;ACjCA;;;;;;;;;;;;;AAaA;;;;;;;AAOA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7BA;AACA;AA+BA;;;AAGA;AACA;AAEA;AACA;AAJA;AACA;AAMA;;;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/CA;AACA;AAAA;AACA;AAAA;AACA;AAEA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAEA;AACA;AAAA;AACA;;;AACA;;;;;;AAJA;AACA;AACA;AARA;AAcA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AA5DA;;;;;;;;;;;;;AAaA;AACA;AACA;;;;;AAKA;AACA;AACA;AAyCA;AACA;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AADA;AAEA;AAAA;AACA;AAHA;AAKA;AACA;AACA;AAAA;AACA;;;;;AAGA;;;;;;AAIA;;;AACA;;;;AAIA;AAAA;AAAA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AACA;AAKA;AACA;AACA;AAFA;AAZA;AAgBA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;;;AAzBA;AACA;AA2BA;;;;;AAGA;;;AACA;;;;AAIA;AAAA;AAAA;AACA;AAEA;AAHA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AACA;AAKA;AACA;AACA;AACA;AAHA;AAbA;AAkBA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AACA;AAFA;AACA;AAIA;AACA;AAEA;AACA;;;AAhDA;AACA;AAkDA;;;;;AAGA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/KA;AACA;;;AACA;;;;;;;;;;;;AAYA;AACA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;;;AAOA;AAAA;AACA;AADA;AACA;AAAA;AACA;AADA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAZA;AAaA;AAAA;AAKA;AAlBA;AAmBA;AAAA;AAQA;AA3BA;AA4BA;AAAA;AAGA;AA/BA;AAgCA;AAAA;AACA;AACA;AACA;;;;;;;;AAuHA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;;;;;;;;AAnIA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AAPA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;;;AAsBA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AADA;AAOA;AACA;AACA;AACA;AACA;AAjBA;AAkBA;AAAA;AACA;;;AAhQA;;;;;;;;;;;;;AAaA;AACA;AACA;AAoPA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnQA;;;;;;;;;;;;;AAaA;AACA;AACA;;;;;AAKA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AAMA;AAAA;AACA;AAAA;AACA;AAIA;AAAA;AACA;AACA;AAAA;AADA;AADA;AAOA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAhBA;AAkBA;AACA;AACA;;;;;;;;;;;;AASA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AACA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAjCA;AAAA;AAAA;AAAA;AAAA;AACA;AAoCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;AClNA;AACA;;;AACA;;;;;;AAMA;AACA;;;;;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;;;;;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;;;;;;;;AAKA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAjGA;;;;;;;;;;;;;AAaA;AACA;AACA;AACA;AAoFA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpFA;AACA;;;AACA;;;;AAIA;AACA;;;;;;AAMA;AAIA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;;;;;;;;AAwBA;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AACA;AAAA;AAAA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AAKA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAIA;AAKA;AACA;AACA;AACA;;;;;;;;AAKA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAAA;AACA;AACA;AACA;;;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAHA;AADA;AAQA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAIA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA9DA;AAgEA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AAIA;AACA;AACA;AAPA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAFA;AAAA;AAMA;AAPA;AAQA;AAAA;AACA;AACA;AACA;;;;;;;;AAKA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;AAGA;AAAA;AAAA;AARA;AACA;AAYA;AAEA;AACA;AAKA;AACA;AATA;AAUA;AAAA;AACA;AAXA;AAaA;AACA;AACA;;;AAveA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAzGA;;;;;;;;;;;;;AAaA;AACA;AACA;AAijBA;;;;;A","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"lex-web-ui-loader.js","sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 0c0407f56b4410bc8729","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/define-property.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/promise.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/classCallCheck.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/createClass.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/extends.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/get.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/inherits.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/typeof.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/define-property.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-own-property-descriptor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/promise.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/index.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_a-function.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-instance.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-object.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_array-includes.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_classof.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_cof.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_core.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ctx.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_defined.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_descriptors.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_dom-create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_export.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_fails.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_for-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_global.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_has.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_hide.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_html.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_invoke.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iobject.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array-iter.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-object.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-call.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-define.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-detect.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-step.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iterators.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_library.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_meta.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_microtask.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_new-promise-capability.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dp.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dps.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopd.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gops.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gpo.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys-internal.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-pie.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-sap.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_perform.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_promise-resolve.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_property-desc.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine-all.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-proto.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-species.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared-key.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_species-constructor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_string-at.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_task.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-absolute-index.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-integer.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-iobject.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-length.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-object.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-primitive.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_uid.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-define.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-ext.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/core.get-iterator-method.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.array.iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.assign.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.create.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.define-property.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.keys.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.promise.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.string.iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.symbol.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.finally.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.try.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:////Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///../css/lex-web-ui-fullpage.css","webpack:///../css/lex-web-ui-iframe.css","webpack:///src/lex-web-ui-loader/js/defaults/dependencies.js","webpack:///src/lex-web-ui-loader/js/defaults/lex-web-ui.js","webpack:///src/lex-web-ui-loader/js/defaults/loader.js","webpack:///src/lex-web-ui-loader/js/index.js","webpack:///src/lex-web-ui-loader/js/lib/config-loader.js","webpack:///src/lex-web-ui-loader/js/lib/dependency-loader.js","webpack:///src/lex-web-ui-loader/js/lib/fullpage-component-loader.js","webpack:///src/lex-web-ui-loader/js/lib/iframe-component-loader.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ChatBotUiLoader\"] = factory();\n\telse\n\t\troot[\"ChatBotUiLoader\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \tfunction hotDisposeChunk(chunkId) {\n \t\tdelete installedChunks[chunkId];\n \t}\n \tvar parentHotUpdateCallback = window[\"webpackHotUpdateChatBotUiLoader\"];\n \twindow[\"webpackHotUpdateChatBotUiLoader\"] = \r\n \tfunction webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n \t\thotAddUpdateChunk(chunkId, moreModules);\r\n \t\tif(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);\r\n \t} ;\r\n \t\r\n \tfunction hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars\r\n \t\tvar head = document.getElementsByTagName(\"head\")[0];\r\n \t\tvar script = document.createElement(\"script\");\r\n \t\tscript.type = \"text/javascript\";\r\n \t\tscript.charset = \"utf-8\";\r\n \t\tscript.src = __webpack_require__.p + \"\" + chunkId + \".\" + hotCurrentHash + \".hot-update.js\";\r\n \t\t;\r\n \t\thead.appendChild(script);\r\n \t}\r\n \t\r\n \tfunction hotDownloadManifest(requestTimeout) { // eslint-disable-line no-unused-vars\r\n \t\trequestTimeout = requestTimeout || 10000;\r\n \t\treturn new Promise(function(resolve, reject) {\r\n \t\t\tif(typeof XMLHttpRequest === \"undefined\")\r\n \t\t\t\treturn reject(new Error(\"No browser support\"));\r\n \t\t\ttry {\r\n \t\t\t\tvar request = new XMLHttpRequest();\r\n \t\t\t\tvar requestPath = __webpack_require__.p + \"\" + hotCurrentHash + \".hot-update.json\";\r\n \t\t\t\trequest.open(\"GET\", requestPath, true);\r\n \t\t\t\trequest.timeout = requestTimeout;\r\n \t\t\t\trequest.send(null);\r\n \t\t\t} catch(err) {\r\n \t\t\t\treturn reject(err);\r\n \t\t\t}\r\n \t\t\trequest.onreadystatechange = function() {\r\n \t\t\t\tif(request.readyState !== 4) return;\r\n \t\t\t\tif(request.status === 0) {\r\n \t\t\t\t\t// timeout\r\n \t\t\t\t\treject(new Error(\"Manifest request to \" + requestPath + \" timed out.\"));\r\n \t\t\t\t} else if(request.status === 404) {\r\n \t\t\t\t\t// no update available\r\n \t\t\t\t\tresolve();\r\n \t\t\t\t} else if(request.status !== 200 && request.status !== 304) {\r\n \t\t\t\t\t// other failure\r\n \t\t\t\t\treject(new Error(\"Manifest request to \" + requestPath + \" failed.\"));\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// success\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tvar update = JSON.parse(request.responseText);\r\n \t\t\t\t\t} catch(e) {\r\n \t\t\t\t\t\treject(e);\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tresolve(update);\r\n \t\t\t\t}\r\n \t\t\t};\r\n \t\t});\r\n \t}\r\n\n \t\r\n \t\r\n \tvar hotApplyOnUpdate = true;\r\n \tvar hotCurrentHash = \"0c0407f56b4410bc8729\"; // eslint-disable-line no-unused-vars\r\n \tvar hotRequestTimeout = 10000;\r\n \tvar hotCurrentModuleData = {};\r\n \tvar hotCurrentChildModule; // eslint-disable-line no-unused-vars\r\n \tvar hotCurrentParents = []; // eslint-disable-line no-unused-vars\r\n \tvar hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars\r\n \t\r\n \tfunction hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars\r\n \t\tvar me = installedModules[moduleId];\r\n \t\tif(!me) return __webpack_require__;\r\n \t\tvar fn = function(request) {\r\n \t\t\tif(me.hot.active) {\r\n \t\t\t\tif(installedModules[request]) {\r\n \t\t\t\t\tif(installedModules[request].parents.indexOf(moduleId) < 0)\r\n \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\r\n \t\t\t\t} else {\r\n \t\t\t\t\thotCurrentParents = [moduleId];\r\n \t\t\t\t\thotCurrentChildModule = request;\r\n \t\t\t\t}\r\n \t\t\t\tif(me.children.indexOf(request) < 0)\r\n \t\t\t\t\tme.children.push(request);\r\n \t\t\t} else {\r\n \t\t\t\tconsole.warn(\"[HMR] unexpected require(\" + request + \") from disposed module \" + moduleId);\r\n \t\t\t\thotCurrentParents = [];\r\n \t\t\t}\r\n \t\t\treturn __webpack_require__(request);\r\n \t\t};\r\n \t\tvar ObjectFactory = function ObjectFactory(name) {\r\n \t\t\treturn {\r\n \t\t\t\tconfigurable: true,\r\n \t\t\t\tenumerable: true,\r\n \t\t\t\tget: function() {\r\n \t\t\t\t\treturn __webpack_require__[name];\r\n \t\t\t\t},\r\n \t\t\t\tset: function(value) {\r\n \t\t\t\t\t__webpack_require__[name] = value;\r\n \t\t\t\t}\r\n \t\t\t};\r\n \t\t};\r\n \t\tfor(var name in __webpack_require__) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(__webpack_require__, name) && name !== \"e\") {\r\n \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\r\n \t\t\t}\r\n \t\t}\r\n \t\tfn.e = function(chunkId) {\r\n \t\t\tif(hotStatus === \"ready\")\r\n \t\t\t\thotSetStatus(\"prepare\");\r\n \t\t\thotChunksLoading++;\r\n \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\r\n \t\t\t\tfinishChunkLoading();\r\n \t\t\t\tthrow err;\r\n \t\t\t});\r\n \t\r\n \t\t\tfunction finishChunkLoading() {\r\n \t\t\t\thotChunksLoading--;\r\n \t\t\t\tif(hotStatus === \"prepare\") {\r\n \t\t\t\t\tif(!hotWaitingFilesMap[chunkId]) {\r\n \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n \t\t\t\t\t\thotUpdateDownloaded();\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t};\r\n \t\treturn fn;\r\n \t}\r\n \t\r\n \tfunction hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars\r\n \t\tvar hot = {\r\n \t\t\t// private stuff\r\n \t\t\t_acceptedDependencies: {},\r\n \t\t\t_declinedDependencies: {},\r\n \t\t\t_selfAccepted: false,\r\n \t\t\t_selfDeclined: false,\r\n \t\t\t_disposeHandlers: [],\r\n \t\t\t_main: hotCurrentChildModule !== moduleId,\r\n \t\r\n \t\t\t// Module API\r\n \t\t\tactive: true,\r\n \t\t\taccept: function(dep, callback) {\r\n \t\t\t\tif(typeof dep === \"undefined\")\r\n \t\t\t\t\thot._selfAccepted = true;\r\n \t\t\t\telse if(typeof dep === \"function\")\r\n \t\t\t\t\thot._selfAccepted = dep;\r\n \t\t\t\telse if(typeof dep === \"object\")\r\n \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n \t\t\t\t\t\thot._acceptedDependencies[dep[i]] = callback || function() {};\r\n \t\t\t\telse\r\n \t\t\t\t\thot._acceptedDependencies[dep] = callback || function() {};\r\n \t\t\t},\r\n \t\t\tdecline: function(dep) {\r\n \t\t\t\tif(typeof dep === \"undefined\")\r\n \t\t\t\t\thot._selfDeclined = true;\r\n \t\t\t\telse if(typeof dep === \"object\")\r\n \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n \t\t\t\t\t\thot._declinedDependencies[dep[i]] = true;\r\n \t\t\t\telse\r\n \t\t\t\t\thot._declinedDependencies[dep] = true;\r\n \t\t\t},\r\n \t\t\tdispose: function(callback) {\r\n \t\t\t\thot._disposeHandlers.push(callback);\r\n \t\t\t},\r\n \t\t\taddDisposeHandler: function(callback) {\r\n \t\t\t\thot._disposeHandlers.push(callback);\r\n \t\t\t},\r\n \t\t\tremoveDisposeHandler: function(callback) {\r\n \t\t\t\tvar idx = hot._disposeHandlers.indexOf(callback);\r\n \t\t\t\tif(idx >= 0) hot._disposeHandlers.splice(idx, 1);\r\n \t\t\t},\r\n \t\r\n \t\t\t// Management API\r\n \t\t\tcheck: hotCheck,\r\n \t\t\tapply: hotApply,\r\n \t\t\tstatus: function(l) {\r\n \t\t\t\tif(!l) return hotStatus;\r\n \t\t\t\thotStatusHandlers.push(l);\r\n \t\t\t},\r\n \t\t\taddStatusHandler: function(l) {\r\n \t\t\t\thotStatusHandlers.push(l);\r\n \t\t\t},\r\n \t\t\tremoveStatusHandler: function(l) {\r\n \t\t\t\tvar idx = hotStatusHandlers.indexOf(l);\r\n \t\t\t\tif(idx >= 0) hotStatusHandlers.splice(idx, 1);\r\n \t\t\t},\r\n \t\r\n \t\t\t//inherit from previous dispose call\r\n \t\t\tdata: hotCurrentModuleData[moduleId]\r\n \t\t};\r\n \t\thotCurrentChildModule = undefined;\r\n \t\treturn hot;\r\n \t}\r\n \t\r\n \tvar hotStatusHandlers = [];\r\n \tvar hotStatus = \"idle\";\r\n \t\r\n \tfunction hotSetStatus(newStatus) {\r\n \t\thotStatus = newStatus;\r\n \t\tfor(var i = 0; i < hotStatusHandlers.length; i++)\r\n \t\t\thotStatusHandlers[i].call(null, newStatus);\r\n \t}\r\n \t\r\n \t// while downloading\r\n \tvar hotWaitingFiles = 0;\r\n \tvar hotChunksLoading = 0;\r\n \tvar hotWaitingFilesMap = {};\r\n \tvar hotRequestedFilesMap = {};\r\n \tvar hotAvailableFilesMap = {};\r\n \tvar hotDeferred;\r\n \t\r\n \t// The update info\r\n \tvar hotUpdate, hotUpdateNewHash;\r\n \t\r\n \tfunction toModuleId(id) {\r\n \t\tvar isNumber = (+id) + \"\" === id;\r\n \t\treturn isNumber ? +id : id;\r\n \t}\r\n \t\r\n \tfunction hotCheck(apply) {\r\n \t\tif(hotStatus !== \"idle\") throw new Error(\"check() is only allowed in idle status\");\r\n \t\thotApplyOnUpdate = apply;\r\n \t\thotSetStatus(\"check\");\r\n \t\treturn hotDownloadManifest(hotRequestTimeout).then(function(update) {\r\n \t\t\tif(!update) {\r\n \t\t\t\thotSetStatus(\"idle\");\r\n \t\t\t\treturn null;\r\n \t\t\t}\r\n \t\t\thotRequestedFilesMap = {};\r\n \t\t\thotWaitingFilesMap = {};\r\n \t\t\thotAvailableFilesMap = update.c;\r\n \t\t\thotUpdateNewHash = update.h;\r\n \t\r\n \t\t\thotSetStatus(\"prepare\");\r\n \t\t\tvar promise = new Promise(function(resolve, reject) {\r\n \t\t\t\thotDeferred = {\r\n \t\t\t\t\tresolve: resolve,\r\n \t\t\t\t\treject: reject\r\n \t\t\t\t};\r\n \t\t\t});\r\n \t\t\thotUpdate = {};\r\n \t\t\tvar chunkId = 0;\r\n \t\t\t{ // eslint-disable-line no-lone-blocks\r\n \t\t\t\t/*globals chunkId */\r\n \t\t\t\thotEnsureUpdateChunk(chunkId);\r\n \t\t\t}\r\n \t\t\tif(hotStatus === \"prepare\" && hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n \t\t\t\thotUpdateDownloaded();\r\n \t\t\t}\r\n \t\t\treturn promise;\r\n \t\t});\r\n \t}\r\n \t\r\n \tfunction hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n \t\tif(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])\r\n \t\t\treturn;\r\n \t\thotRequestedFilesMap[chunkId] = false;\r\n \t\tfor(var moduleId in moreModules) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\r\n \t\t\t\thotUpdate[moduleId] = moreModules[moduleId];\r\n \t\t\t}\r\n \t\t}\r\n \t\tif(--hotWaitingFiles === 0 && hotChunksLoading === 0) {\r\n \t\t\thotUpdateDownloaded();\r\n \t\t}\r\n \t}\r\n \t\r\n \tfunction hotEnsureUpdateChunk(chunkId) {\r\n \t\tif(!hotAvailableFilesMap[chunkId]) {\r\n \t\t\thotWaitingFilesMap[chunkId] = true;\r\n \t\t} else {\r\n \t\t\thotRequestedFilesMap[chunkId] = true;\r\n \t\t\thotWaitingFiles++;\r\n \t\t\thotDownloadUpdateChunk(chunkId);\r\n \t\t}\r\n \t}\r\n \t\r\n \tfunction hotUpdateDownloaded() {\r\n \t\thotSetStatus(\"ready\");\r\n \t\tvar deferred = hotDeferred;\r\n \t\thotDeferred = null;\r\n \t\tif(!deferred) return;\r\n \t\tif(hotApplyOnUpdate) {\r\n \t\t\t// Wrap deferred object in Promise to mark it as a well-handled Promise to\r\n \t\t\t// avoid triggering uncaught exception warning in Chrome.\r\n \t\t\t// See https://bugs.chromium.org/p/chromium/issues/detail?id=465666\r\n \t\t\tPromise.resolve().then(function() {\r\n \t\t\t\treturn hotApply(hotApplyOnUpdate);\r\n \t\t\t}).then(\r\n \t\t\t\tfunction(result) {\r\n \t\t\t\t\tdeferred.resolve(result);\r\n \t\t\t\t},\r\n \t\t\t\tfunction(err) {\r\n \t\t\t\t\tdeferred.reject(err);\r\n \t\t\t\t}\r\n \t\t\t);\r\n \t\t} else {\r\n \t\t\tvar outdatedModules = [];\r\n \t\t\tfor(var id in hotUpdate) {\r\n \t\t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n \t\t\t\t\toutdatedModules.push(toModuleId(id));\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tdeferred.resolve(outdatedModules);\r\n \t\t}\r\n \t}\r\n \t\r\n \tfunction hotApply(options) {\r\n \t\tif(hotStatus !== \"ready\") throw new Error(\"apply() is only allowed in ready status\");\r\n \t\toptions = options || {};\r\n \t\r\n \t\tvar cb;\r\n \t\tvar i;\r\n \t\tvar j;\r\n \t\tvar module;\r\n \t\tvar moduleId;\r\n \t\r\n \t\tfunction getAffectedStuff(updateModuleId) {\r\n \t\t\tvar outdatedModules = [updateModuleId];\r\n \t\t\tvar outdatedDependencies = {};\r\n \t\r\n \t\t\tvar queue = outdatedModules.slice().map(function(id) {\r\n \t\t\t\treturn {\r\n \t\t\t\t\tchain: [id],\r\n \t\t\t\t\tid: id\r\n \t\t\t\t};\r\n \t\t\t});\r\n \t\t\twhile(queue.length > 0) {\r\n \t\t\t\tvar queueItem = queue.pop();\r\n \t\t\t\tvar moduleId = queueItem.id;\r\n \t\t\t\tvar chain = queueItem.chain;\r\n \t\t\t\tmodule = installedModules[moduleId];\r\n \t\t\t\tif(!module || module.hot._selfAccepted)\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\tif(module.hot._selfDeclined) {\r\n \t\t\t\t\treturn {\r\n \t\t\t\t\t\ttype: \"self-declined\",\r\n \t\t\t\t\t\tchain: chain,\r\n \t\t\t\t\t\tmoduleId: moduleId\r\n \t\t\t\t\t};\r\n \t\t\t\t}\r\n \t\t\t\tif(module.hot._main) {\r\n \t\t\t\t\treturn {\r\n \t\t\t\t\t\ttype: \"unaccepted\",\r\n \t\t\t\t\t\tchain: chain,\r\n \t\t\t\t\t\tmoduleId: moduleId\r\n \t\t\t\t\t};\r\n \t\t\t\t}\r\n \t\t\t\tfor(var i = 0; i < module.parents.length; i++) {\r\n \t\t\t\t\tvar parentId = module.parents[i];\r\n \t\t\t\t\tvar parent = installedModules[parentId];\r\n \t\t\t\t\tif(!parent) continue;\r\n \t\t\t\t\tif(parent.hot._declinedDependencies[moduleId]) {\r\n \t\t\t\t\t\treturn {\r\n \t\t\t\t\t\t\ttype: \"declined\",\r\n \t\t\t\t\t\t\tchain: chain.concat([parentId]),\r\n \t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\tparentId: parentId\r\n \t\t\t\t\t\t};\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(outdatedModules.indexOf(parentId) >= 0) continue;\r\n \t\t\t\t\tif(parent.hot._acceptedDependencies[moduleId]) {\r\n \t\t\t\t\t\tif(!outdatedDependencies[parentId])\r\n \t\t\t\t\t\t\toutdatedDependencies[parentId] = [];\r\n \t\t\t\t\t\taddAllToSet(outdatedDependencies[parentId], [moduleId]);\r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdelete outdatedDependencies[parentId];\r\n \t\t\t\t\toutdatedModules.push(parentId);\r\n \t\t\t\t\tqueue.push({\r\n \t\t\t\t\t\tchain: chain.concat([parentId]),\r\n \t\t\t\t\t\tid: parentId\r\n \t\t\t\t\t});\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\r\n \t\t\treturn {\r\n \t\t\t\ttype: \"accepted\",\r\n \t\t\t\tmoduleId: updateModuleId,\r\n \t\t\t\toutdatedModules: outdatedModules,\r\n \t\t\t\toutdatedDependencies: outdatedDependencies\r\n \t\t\t};\r\n \t\t}\r\n \t\r\n \t\tfunction addAllToSet(a, b) {\r\n \t\t\tfor(var i = 0; i < b.length; i++) {\r\n \t\t\t\tvar item = b[i];\r\n \t\t\t\tif(a.indexOf(item) < 0)\r\n \t\t\t\t\ta.push(item);\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// at begin all updates modules are outdated\r\n \t\t// the \"outdated\" status can propagate to parents if they don't accept the children\r\n \t\tvar outdatedDependencies = {};\r\n \t\tvar outdatedModules = [];\r\n \t\tvar appliedUpdate = {};\r\n \t\r\n \t\tvar warnUnexpectedRequire = function warnUnexpectedRequire() {\r\n \t\t\tconsole.warn(\"[HMR] unexpected require(\" + result.moduleId + \") to disposed module\");\r\n \t\t};\r\n \t\r\n \t\tfor(var id in hotUpdate) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n \t\t\t\tmoduleId = toModuleId(id);\r\n \t\t\t\tvar result;\r\n \t\t\t\tif(hotUpdate[id]) {\r\n \t\t\t\t\tresult = getAffectedStuff(moduleId);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresult = {\r\n \t\t\t\t\t\ttype: \"disposed\",\r\n \t\t\t\t\t\tmoduleId: id\r\n \t\t\t\t\t};\r\n \t\t\t\t}\r\n \t\t\t\tvar abortError = false;\r\n \t\t\t\tvar doApply = false;\r\n \t\t\t\tvar doDispose = false;\r\n \t\t\t\tvar chainInfo = \"\";\r\n \t\t\t\tif(result.chain) {\r\n \t\t\t\t\tchainInfo = \"\\nUpdate propagation: \" + result.chain.join(\" -> \");\r\n \t\t\t\t}\r\n \t\t\t\tswitch(result.type) {\r\n \t\t\t\t\tcase \"self-declined\":\r\n \t\t\t\t\t\tif(options.onDeclined)\r\n \t\t\t\t\t\t\toptions.onDeclined(result);\r\n \t\t\t\t\t\tif(!options.ignoreDeclined)\r\n \t\t\t\t\t\t\tabortError = new Error(\"Aborted because of self decline: \" + result.moduleId + chainInfo);\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"declined\":\r\n \t\t\t\t\t\tif(options.onDeclined)\r\n \t\t\t\t\t\t\toptions.onDeclined(result);\r\n \t\t\t\t\t\tif(!options.ignoreDeclined)\r\n \t\t\t\t\t\t\tabortError = new Error(\"Aborted because of declined dependency: \" + result.moduleId + \" in \" + result.parentId + chainInfo);\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"unaccepted\":\r\n \t\t\t\t\t\tif(options.onUnaccepted)\r\n \t\t\t\t\t\t\toptions.onUnaccepted(result);\r\n \t\t\t\t\t\tif(!options.ignoreUnaccepted)\r\n \t\t\t\t\t\t\tabortError = new Error(\"Aborted because \" + moduleId + \" is not accepted\" + chainInfo);\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"accepted\":\r\n \t\t\t\t\t\tif(options.onAccepted)\r\n \t\t\t\t\t\t\toptions.onAccepted(result);\r\n \t\t\t\t\t\tdoApply = true;\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tcase \"disposed\":\r\n \t\t\t\t\t\tif(options.onDisposed)\r\n \t\t\t\t\t\t\toptions.onDisposed(result);\r\n \t\t\t\t\t\tdoDispose = true;\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\tdefault:\r\n \t\t\t\t\t\tthrow new Error(\"Unexception type \" + result.type);\r\n \t\t\t\t}\r\n \t\t\t\tif(abortError) {\r\n \t\t\t\t\thotSetStatus(\"abort\");\r\n \t\t\t\t\treturn Promise.reject(abortError);\r\n \t\t\t\t}\r\n \t\t\t\tif(doApply) {\r\n \t\t\t\t\tappliedUpdate[moduleId] = hotUpdate[moduleId];\r\n \t\t\t\t\taddAllToSet(outdatedModules, result.outdatedModules);\r\n \t\t\t\t\tfor(moduleId in result.outdatedDependencies) {\r\n \t\t\t\t\t\tif(Object.prototype.hasOwnProperty.call(result.outdatedDependencies, moduleId)) {\r\n \t\t\t\t\t\t\tif(!outdatedDependencies[moduleId])\r\n \t\t\t\t\t\t\t\toutdatedDependencies[moduleId] = [];\r\n \t\t\t\t\t\t\taddAllToSet(outdatedDependencies[moduleId], result.outdatedDependencies[moduleId]);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif(doDispose) {\r\n \t\t\t\t\taddAllToSet(outdatedModules, [result.moduleId]);\r\n \t\t\t\t\tappliedUpdate[moduleId] = warnUnexpectedRequire;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// Store self accepted outdated modules to require them later by the module system\r\n \t\tvar outdatedSelfAcceptedModules = [];\r\n \t\tfor(i = 0; i < outdatedModules.length; i++) {\r\n \t\t\tmoduleId = outdatedModules[i];\r\n \t\t\tif(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)\r\n \t\t\t\toutdatedSelfAcceptedModules.push({\r\n \t\t\t\t\tmodule: moduleId,\r\n \t\t\t\t\terrorHandler: installedModules[moduleId].hot._selfAccepted\r\n \t\t\t\t});\r\n \t\t}\r\n \t\r\n \t\t// Now in \"dispose\" phase\r\n \t\thotSetStatus(\"dispose\");\r\n \t\tObject.keys(hotAvailableFilesMap).forEach(function(chunkId) {\r\n \t\t\tif(hotAvailableFilesMap[chunkId] === false) {\r\n \t\t\t\thotDisposeChunk(chunkId);\r\n \t\t\t}\r\n \t\t});\r\n \t\r\n \t\tvar idx;\r\n \t\tvar queue = outdatedModules.slice();\r\n \t\twhile(queue.length > 0) {\r\n \t\t\tmoduleId = queue.pop();\r\n \t\t\tmodule = installedModules[moduleId];\r\n \t\t\tif(!module) continue;\r\n \t\r\n \t\t\tvar data = {};\r\n \t\r\n \t\t\t// Call dispose handlers\r\n \t\t\tvar disposeHandlers = module.hot._disposeHandlers;\r\n \t\t\tfor(j = 0; j < disposeHandlers.length; j++) {\r\n \t\t\t\tcb = disposeHandlers[j];\r\n \t\t\t\tcb(data);\r\n \t\t\t}\r\n \t\t\thotCurrentModuleData[moduleId] = data;\r\n \t\r\n \t\t\t// disable module (this disables requires from this module)\r\n \t\t\tmodule.hot.active = false;\r\n \t\r\n \t\t\t// remove module from cache\r\n \t\t\tdelete installedModules[moduleId];\r\n \t\r\n \t\t\t// when disposing there is no need to call dispose handler\r\n \t\t\tdelete outdatedDependencies[moduleId];\r\n \t\r\n \t\t\t// remove \"parents\" references from all children\r\n \t\t\tfor(j = 0; j < module.children.length; j++) {\r\n \t\t\t\tvar child = installedModules[module.children[j]];\r\n \t\t\t\tif(!child) continue;\r\n \t\t\t\tidx = child.parents.indexOf(moduleId);\r\n \t\t\t\tif(idx >= 0) {\r\n \t\t\t\t\tchild.parents.splice(idx, 1);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// remove outdated dependency from module children\r\n \t\tvar dependency;\r\n \t\tvar moduleOutdatedDependencies;\r\n \t\tfor(moduleId in outdatedDependencies) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n \t\t\t\tmodule = installedModules[moduleId];\r\n \t\t\t\tif(module) {\r\n \t\t\t\t\tmoduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n \t\t\t\t\tfor(j = 0; j < moduleOutdatedDependencies.length; j++) {\r\n \t\t\t\t\t\tdependency = moduleOutdatedDependencies[j];\r\n \t\t\t\t\t\tidx = module.children.indexOf(dependency);\r\n \t\t\t\t\t\tif(idx >= 0) module.children.splice(idx, 1);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// Not in \"apply\" phase\r\n \t\thotSetStatus(\"apply\");\r\n \t\r\n \t\thotCurrentHash = hotUpdateNewHash;\r\n \t\r\n \t\t// insert new code\r\n \t\tfor(moduleId in appliedUpdate) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {\r\n \t\t\t\tmodules[moduleId] = appliedUpdate[moduleId];\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// call accept handlers\r\n \t\tvar error = null;\r\n \t\tfor(moduleId in outdatedDependencies) {\r\n \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n \t\t\t\tmodule = installedModules[moduleId];\r\n \t\t\t\tif(module) {\r\n \t\t\t\t\tmoduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n \t\t\t\t\tvar callbacks = [];\r\n \t\t\t\t\tfor(i = 0; i < moduleOutdatedDependencies.length; i++) {\r\n \t\t\t\t\t\tdependency = moduleOutdatedDependencies[i];\r\n \t\t\t\t\t\tcb = module.hot._acceptedDependencies[dependency];\r\n \t\t\t\t\t\tif(cb) {\r\n \t\t\t\t\t\t\tif(callbacks.indexOf(cb) >= 0) continue;\r\n \t\t\t\t\t\t\tcallbacks.push(cb);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tfor(i = 0; i < callbacks.length; i++) {\r\n \t\t\t\t\t\tcb = callbacks[i];\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\tcb(moduleOutdatedDependencies);\r\n \t\t\t\t\t\t} catch(err) {\r\n \t\t\t\t\t\t\tif(options.onErrored) {\r\n \t\t\t\t\t\t\t\toptions.onErrored({\r\n \t\t\t\t\t\t\t\t\ttype: \"accept-errored\",\r\n \t\t\t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\t\t\tdependencyId: moduleOutdatedDependencies[i],\r\n \t\t\t\t\t\t\t\t\terror: err\r\n \t\t\t\t\t\t\t\t});\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!options.ignoreErrored) {\r\n \t\t\t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\t\t\terror = err;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// Load self accepted modules\r\n \t\tfor(i = 0; i < outdatedSelfAcceptedModules.length; i++) {\r\n \t\t\tvar item = outdatedSelfAcceptedModules[i];\r\n \t\t\tmoduleId = item.module;\r\n \t\t\thotCurrentParents = [moduleId];\r\n \t\t\ttry {\r\n \t\t\t\t__webpack_require__(moduleId);\r\n \t\t\t} catch(err) {\r\n \t\t\t\tif(typeof item.errorHandler === \"function\") {\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\titem.errorHandler(err);\r\n \t\t\t\t\t} catch(err2) {\r\n \t\t\t\t\t\tif(options.onErrored) {\r\n \t\t\t\t\t\t\toptions.onErrored({\r\n \t\t\t\t\t\t\t\ttype: \"self-accept-error-handler-errored\",\r\n \t\t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\t\terror: err2,\r\n \t\t\t\t\t\t\t\torginalError: err, // TODO remove in webpack 4\r\n \t\t\t\t\t\t\t\toriginalError: err\r\n \t\t\t\t\t\t\t});\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif(!options.ignoreErrored) {\r\n \t\t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\t\terror = err2;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\terror = err;\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tif(options.onErrored) {\r\n \t\t\t\t\t\toptions.onErrored({\r\n \t\t\t\t\t\t\ttype: \"self-accept-errored\",\r\n \t\t\t\t\t\t\tmoduleId: moduleId,\r\n \t\t\t\t\t\t\terror: err\r\n \t\t\t\t\t\t});\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif(!options.ignoreErrored) {\r\n \t\t\t\t\t\tif(!error)\r\n \t\t\t\t\t\t\terror = err;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t// handle errors in accept handlers and self accepted module load\r\n \t\tif(error) {\r\n \t\t\thotSetStatus(\"fail\");\r\n \t\t\treturn Promise.reject(error);\r\n \t\t}\r\n \t\r\n \t\thotSetStatus(\"idle\");\r\n \t\treturn new Promise(function(resolve) {\r\n \t\t\tresolve(outdatedModules);\r\n \t\t});\r\n \t}\r\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {},\n \t\t\thot: hotCreateModule(moduleId),\n \t\t\tparents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),\n \t\t\tchildren: []\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// __webpack_hash__\n \t__webpack_require__.h = function() { return hotCurrentHash; };\n\n \t// Load entry module and return exports\n \treturn hotCreateRequire(\"./index.js\")(__webpack_require__.s = \"./index.js\");\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 0c0407f56b4410bc8729","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/assign.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/assign.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/create.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/create.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/define-property.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/define-property.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/get-own-property-descriptor\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/keys.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/keys.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = ../../../node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/promise\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/promise.js\n// module id = ../../../node_modules/babel-runtime/core-js/promise.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol.js\n// module id = ../../../node_modules/babel-runtime/core-js/symbol.js\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = ../../../node_modules/babel-runtime/core-js/symbol/iterator.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = ../../../node_modules/babel-runtime/helpers/classCallCheck.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/createClass.js\n// module id = ../../../node_modules/babel-runtime/helpers/createClass.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/extends.js\n// module id = ../../../node_modules/babel-runtime/helpers/extends.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _getPrototypeOf = require(\"../core-js/object/get-prototype-of\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _getOwnPropertyDescriptor = require(\"../core-js/object/get-own-property-descriptor\");\n\nvar _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n var desc = (0, _getOwnPropertyDescriptor2.default)(object, property);\n\n if (desc === undefined) {\n var parent = (0, _getPrototypeOf2.default)(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if (\"value\" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/get.js\n// module id = ../../../node_modules/babel-runtime/helpers/get.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/inherits.js\n// module id = ../../../node_modules/babel-runtime/helpers/inherits.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = ../../../node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/babel-runtime/helpers/typeof.js\n// module id = ../../../node_modules/babel-runtime/helpers/typeof.js\n// module chunks = 0","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/assign.js\n// module id = ../../../node_modules/core-js/library/fn/object/assign.js\n// module chunks = 0","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/create.js\n// module id = ../../../node_modules/core-js/library/fn/object/create.js\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/define-property.js\n// module id = ../../../node_modules/core-js/library/fn/object/define-property.js\n// module chunks = 0","require('../../modules/es6.object.get-own-property-descriptor');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function getOwnPropertyDescriptor(it, key) {\n return $Object.getOwnPropertyDescriptor(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-own-property-descriptor.js\n// module id = ../../../node_modules/core-js/library/fn/object/get-own-property-descriptor.js\n// module chunks = 0","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = ../../../node_modules/core-js/library/fn/object/get-prototype-of.js\n// module chunks = 0","require('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/_core').Object.keys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/keys.js\n// module id = ../../../node_modules/core-js/library/fn/object/keys.js\n// module chunks = 0","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = ../../../node_modules/core-js/library/fn/object/set-prototype-of.js\n// module chunks = 0","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.promise');\nrequire('../modules/es7.promise.finally');\nrequire('../modules/es7.promise.try');\nmodule.exports = require('../modules/_core').Promise;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/promise.js\n// module id = ../../../node_modules/core-js/library/fn/promise.js\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/index.js\n// module id = ../../../node_modules/core-js/library/fn/symbol/index.js\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/fn/symbol/iterator.js\n// module id = ../../../node_modules/core-js/library/fn/symbol/iterator.js\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_a-function.js\n// module id = ../../../node_modules/core-js/library/modules/_a-function.js\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = ../../../node_modules/core-js/library/modules/_add-to-unscopables.js\n// module chunks = 0","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-instance.js\n// module id = ../../../node_modules/core-js/library/modules/_an-instance.js\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_an-object.js\n// module id = ../../../node_modules/core-js/library/modules/_an-object.js\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_array-includes.js\n// module id = ../../../node_modules/core-js/library/modules/_array-includes.js\n// module chunks = 0","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_classof.js\n// module id = ../../../node_modules/core-js/library/modules/_classof.js\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_cof.js\n// module id = ../../../node_modules/core-js/library/modules/_cof.js\n// module chunks = 0","var core = module.exports = { version: '2.5.3' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_core.js\n// module id = ../../../node_modules/core-js/library/modules/_core.js\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ctx.js\n// module id = ../../../node_modules/core-js/library/modules/_ctx.js\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_defined.js\n// module id = ../../../node_modules/core-js/library/modules/_defined.js\n// module chunks = 0","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_descriptors.js\n// module id = ../../../node_modules/core-js/library/modules/_descriptors.js\n// module chunks = 0","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_dom-create.js\n// module id = ../../../node_modules/core-js/library/modules/_dom-create.js\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = ../../../node_modules/core-js/library/modules/_enum-bug-keys.js\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_enum-keys.js\n// module id = ../../../node_modules/core-js/library/modules/_enum-keys.js\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && key in exports) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_export.js\n// module id = ../../../node_modules/core-js/library/modules/_export.js\n// module chunks = 0","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_fails.js\n// module id = ../../../node_modules/core-js/library/modules/_fails.js\n// module chunks = 0","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_for-of.js\n// module id = ../../../node_modules/core-js/library/modules/_for-of.js\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_global.js\n// module id = ../../../node_modules/core-js/library/modules/_global.js\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_has.js\n// module id = ../../../node_modules/core-js/library/modules/_has.js\n// module chunks = 0","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_hide.js\n// module id = ../../../node_modules/core-js/library/modules/_hide.js\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_html.js\n// module id = ../../../node_modules/core-js/library/modules/_html.js\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = ../../../node_modules/core-js/library/modules/_ie8-dom-define.js\n// module chunks = 0","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_invoke.js\n// module id = ../../../node_modules/core-js/library/modules/_invoke.js\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iobject.js\n// module id = ../../../node_modules/core-js/library/modules/_iobject.js\n// module chunks = 0","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array-iter.js\n// module id = ../../../node_modules/core-js/library/modules/_is-array-iter.js\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-array.js\n// module id = ../../../node_modules/core-js/library/modules/_is-array.js\n// module chunks = 0","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_is-object.js\n// module id = ../../../node_modules/core-js/library/modules/_is-object.js\n// module chunks = 0","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-call.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-call.js\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-create.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-create.js\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = (!BUGGY && $native) || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-define.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-define.js\n// module chunks = 0","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-detect.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-detect.js\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iter-step.js\n// module id = ../../../node_modules/core-js/library/modules/_iter-step.js\n// module chunks = 0","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_iterators.js\n// module id = ../../../node_modules/core-js/library/modules/_iterators.js\n// module chunks = 0","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_library.js\n// module id = ../../../node_modules/core-js/library/modules/_library.js\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_meta.js\n// module id = ../../../node_modules/core-js/library/modules/_meta.js\n// module chunks = 0","var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n var promise = Promise.resolve();\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_microtask.js\n// module id = ../../../node_modules/core-js/library/modules/_microtask.js\n// module chunks = 0","'use strict';\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = require('./_a-function');\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_new-promise-capability.js\n// module id = ../../../node_modules/core-js/library/modules/_new-promise-capability.js\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-assign.js\n// module id = ../../../node_modules/core-js/library/modules/_object-assign.js\n// module chunks = 0","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-create.js\n// module id = ../../../node_modules/core-js/library/modules/_object-create.js\n// module chunks = 0","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dp.js\n// module id = ../../../node_modules/core-js/library/modules/_object-dp.js\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-dps.js\n// module id = ../../../node_modules/core-js/library/modules/_object-dps.js\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopd.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gopd.js\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gopn-ext.js\n// module chunks = 0","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gopn.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gopn.js\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gops.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gops.js\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-gpo.js\n// module id = ../../../node_modules/core-js/library/modules/_object-gpo.js\n// module chunks = 0","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = ../../../node_modules/core-js/library/modules/_object-keys-internal.js\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-keys.js\n// module id = ../../../node_modules/core-js/library/modules/_object-keys.js\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-pie.js\n// module id = ../../../node_modules/core-js/library/modules/_object-pie.js\n// module chunks = 0","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_object-sap.js\n// module id = ../../../node_modules/core-js/library/modules/_object-sap.js\n// module chunks = 0","module.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_perform.js\n// module id = ../../../node_modules/core-js/library/modules/_perform.js\n// module chunks = 0","var anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar newPromiseCapability = require('./_new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_promise-resolve.js\n// module id = ../../../node_modules/core-js/library/modules/_promise-resolve.js\n// module chunks = 0","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_property-desc.js\n// module id = ../../../node_modules/core-js/library/modules/_property-desc.js\n// module chunks = 0","var hide = require('./_hide');\nmodule.exports = function (target, src, safe) {\n for (var key in src) {\n if (safe && target[key]) target[key] = src[key];\n else hide(target, key, src[key]);\n } return target;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine-all.js\n// module id = ../../../node_modules/core-js/library/modules/_redefine-all.js\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_redefine.js\n// module id = ../../../node_modules/core-js/library/modules/_redefine.js\n// module chunks = 0","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-proto.js\n// module id = ../../../node_modules/core-js/library/modules/_set-proto.js\n// module chunks = 0","'use strict';\nvar global = require('./_global');\nvar core = require('./_core');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-species.js\n// module id = ../../../node_modules/core-js/library/modules/_set-species.js\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = ../../../node_modules/core-js/library/modules/_set-to-string-tag.js\n// module chunks = 0","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared-key.js\n// module id = ../../../node_modules/core-js/library/modules/_shared-key.js\n// module chunks = 0","var global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function (key) {\n return store[key] || (store[key] = {});\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_shared.js\n// module id = ../../../node_modules/core-js/library/modules/_shared.js\n// module chunks = 0","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_species-constructor.js\n// module id = ../../../node_modules/core-js/library/modules/_species-constructor.js\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_string-at.js\n// module id = ../../../node_modules/core-js/library/modules/_string-at.js\n// module chunks = 0","var ctx = require('./_ctx');\nvar invoke = require('./_invoke');\nvar html = require('./_html');\nvar cel = require('./_dom-create');\nvar global = require('./_global');\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (require('./_cof')(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_task.js\n// module id = ../../../node_modules/core-js/library/modules/_task.js\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = ../../../node_modules/core-js/library/modules/_to-absolute-index.js\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-integer.js\n// module id = ../../../node_modules/core-js/library/modules/_to-integer.js\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-iobject.js\n// module id = ../../../node_modules/core-js/library/modules/_to-iobject.js\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-length.js\n// module id = ../../../node_modules/core-js/library/modules/_to-length.js\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-object.js\n// module id = ../../../node_modules/core-js/library/modules/_to-object.js\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_to-primitive.js\n// module id = ../../../node_modules/core-js/library/modules/_to-primitive.js\n// module chunks = 0","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_uid.js\n// module id = ../../../node_modules/core-js/library/modules/_uid.js\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-define.js\n// module id = ../../../node_modules/core-js/library/modules/_wks-define.js\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks-ext.js\n// module id = ../../../node_modules/core-js/library/modules/_wks-ext.js\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/_wks.js\n// module id = ../../../node_modules/core-js/library/modules/_wks.js\n// module chunks = 0","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/core.get-iterator-method.js\n// module id = ../../../node_modules/core-js/library/modules/core.get-iterator-method.js\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = ../../../node_modules/core-js/library/modules/es6.array.iterator.js\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.assign.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.assign.js\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.create.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.create.js\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.define-property.js\n// module chunks = 0","// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = require('./_to-iobject');\nvar $getOwnPropertyDescriptor = require('./_object-gopd').f;\n\nrequire('./_object-sap')('getOwnPropertyDescriptor', function () {\n return function getOwnPropertyDescriptor(it, key) {\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js\n// module chunks = 0","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module chunks = 0","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.keys.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.keys.js\n// module chunks = 0","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = ../../../node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value);\n if (domain) domain.exit();\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.promise.js\n// module id = ../../../node_modules/core-js/library/modules/es6.promise.js\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = ../../../node_modules/core-js/library/modules/es6.string.iterator.js\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es6.symbol.js\n// module id = ../../../node_modules/core-js/library/modules/es6.symbol.js\n// module chunks = 0","// https://github.com/tc39/proposal-promise-finally\n'use strict';\nvar $export = require('./_export');\nvar core = require('./_core');\nvar global = require('./_global');\nvar speciesConstructor = require('./_species-constructor');\nvar promiseResolve = require('./_promise-resolve');\n\n$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {\n var C = speciesConstructor(this, core.Promise || global.Promise);\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.finally.js\n// module id = ../../../node_modules/core-js/library/modules/es7.promise.finally.js\n// module chunks = 0","'use strict';\n// https://github.com/tc39/proposal-promise-try\nvar $export = require('./_export');\nvar newPromiseCapability = require('./_new-promise-capability');\nvar perform = require('./_perform');\n\n$export($export.S, 'Promise', { 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapability.f(this);\n var result = perform(callbackfn);\n (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);\n return promiseCapability.promise;\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.promise.try.js\n// module id = ../../../node_modules/core-js/library/modules/es7.promise.try.js\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = ../../../node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = ../../../node_modules/core-js/library/modules/es7.symbol.observable.js\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/jcalho/projects/aws-lex-web-ui/node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = ../../../node_modules/core-js/library/modules/web.dom.iterable.js\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../css/lex-web-ui-fullpage.css\n// module id = ../css/lex-web-ui-fullpage.css\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../css/lex-web-ui-iframe.css\n// module id = ../css/lex-web-ui-iframe.css\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Default DependencyLoader dependencies\n *\n * Loads third-party libraries from CDNs. May want to host your own for production\n *\n * Relative URLs (not starting with http) are prepended with a base URL at run time\n */\nexport const dependenciesFullPage = {\n script: [\n {\n name: 'AWS',\n url: 'https://sdk.amazonaws.com/js/aws-sdk-2.180.0.js',\n canUseMin: true,\n },\n {\n // mobile hub generated aws config\n name: 'aws_bots_config',\n url: './aws-config.js',\n optional: true,\n },\n {\n name: 'Vue',\n url: 'https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js',\n canUseMin: true,\n },\n {\n name: 'Vuex',\n url: 'https://unpkg.com/vuex@3.0.1/dist/vuex.js',\n canUseMin: true,\n },\n {\n name: 'Vuetify',\n url: 'https://unpkg.com/vuetify@0.17.6/dist/vuetify.js',\n canUseMin: true,\n },\n {\n name: 'LexWebUi',\n url: './lex-web-ui.js',\n canUseMin: true,\n },\n ],\n css: [\n {\n name: 'roboto-material-icons',\n url: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons',\n },\n {\n name: 'vuetify',\n url: 'https://unpkg.com/vuetify@0.17.6/dist/vuetify.css',\n canUseMin: true,\n },\n {\n name: 'lex-web-ui',\n url: './lex-web-ui.css',\n canUseMin: true,\n },\n {\n name: 'lex-web-ui-loader',\n url: './lex-web-ui-loader.css',\n },\n ],\n};\n\nexport const dependenciesIframe = {\n script: [\n {\n name: 'AWS',\n url: 'https://sdk.amazonaws.com/js/aws-sdk-2.176.0.js',\n canUseMin: true,\n },\n {\n // mobile hub generated aws config\n name: 'aws_bots_config',\n url: './aws-config.js',\n optional: true,\n },\n ],\n css: [\n {\n name: 'lex-web-ui-loader',\n url: './lex-web-ui-loader.css',\n },\n ],\n};\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/defaults/dependencies.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Base configuration object structure\n *\n * NOTE: you probably don't want to be making config changes here but rather\n * use the config loader to override the defaults\n */\n\nexport const configBase = {\n lex: { botName: '' },\n cognito: { poolId: '' },\n ui: { parentOrigin: '' },\n polly: {},\n recorder: {},\n iframe: {\n iframeOrigin: '',\n iframeSrcPath: '',\n shouldLoadIframeMinimized: true,\n },\n};\n\nexport default configBase;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/defaults/lex-web-ui.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Default options and config structure\n *\n * NOTE: you probably don't want to be making config changes here but rather\n * use the config loader to override the defaults\n */\n\n/**\n * Default loader options\n * Apply both to iframe and full page\n */\nexport const options = {\n // base URL to be prepended to relative URLs of dependencies\n // if left empty, a relative path will still be used\n baseUrl: '/',\n\n // time to wait for config event\n configEventTimeoutInMs: 10000,\n\n // URL to download config JSON file\n // uses baseUrl if set as a relative URL (not starting with http)\n configUrl: './lex-web-ui-loader-config.json',\n\n // controls whether the local config should be ignored when running\n // embedded (e.g. iframe) in which case the parent page will pass the config\n // Only the parentOrigin config field is kept when set to true\n shouldIgnoreConfigWhenEmbedded: true,\n\n // controls whether the config should be obtained using events\n shouldLoadConfigFromEvent: false,\n\n // controls whether the config should be downloaded from `configUrl`\n shouldLoadConfigFromJsonFile: true,\n\n // controls whether the config should be downloaded from Mobile Hub aws-config.js\n shouldLoadConfigFromMobileHubFile: true,\n\n // Controls if it should load minimized production dependecies\n // set to true for production\n // NODE_ENV is injected at build time by webpack DefinePlugin\n shouldLoadMinDeps: (process.env.NODE_ENV === 'production'),\n};\n\n/**\n * Default full page specific loader options\n */\nexport const optionsFullPage = {\n ...options,\n\n // DOM element ID where the chatbot UI will be mounted\n elementId: 'lex-web-ui-fullpage',\n};\n\n/**\n * Default iframe specific loader options\n */\nexport const optionsIframe = {\n ...options,\n\n // DOM element ID where the chatbot UI will be mounted\n elementId: 'lex-web-ui-iframe',\n\n // div container class to insert iframe\n containerClass: 'lex-web-ui-iframe',\n\n // iframe source path. this is appended to the iframeOrigin\n // must use the LexWebUiEmbed=true query string to enable embedded mode\n iframeSrcPath: '/index.html#/?lexWebUiEmbed=true',\n};\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/defaults/loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n/**\n * Entry point to the chatbot-ui-loader.js library\n * Exports the loader classes\n */\n\n// import default config\n// import { configIframe, configFullPage } from './defaults/lex-web-ui';\nimport { configBase } from './defaults/lex-web-ui';\nimport { optionsIframe, optionsFullPage } from './defaults/loader';\nimport { dependenciesIframe, dependenciesFullPage } from './defaults/dependencies';\n\n// import from lib\nimport { DependencyLoader } from './lib/dependency-loader';\nimport { ConfigLoader } from './lib/config-loader';\nimport { IframeComponentLoader } from './lib/iframe-component-loader';\nimport { FullPageComponentLoader } from './lib/fullpage-component-loader';\n\n// import CSS\nimport '../css/lex-web-ui-fullpage.css';\nimport '../css/lex-web-ui-iframe.css';\n\n/**\n * CustomEvent polyfill for IE11\n * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill\n */\nfunction setCustomEventShim() {\n if (typeof window.CustomEvent === 'function') {\n return false;\n }\n\n function CustomEvent(\n event,\n params = { bubbles: false, cancelable: false, detail: undefined },\n ) {\n const evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n }\n\n CustomEvent.prototype = window.Event.prototype;\n window.CustomEvent = CustomEvent;\n\n return true;\n}\n\n/**\n * Base class used by the full page and iframe loaders\n */\nclass Loader {\n /**\n * @param {object} options - options controlling how the dependencies and\n * component configa are loaded\n */\n constructor(options) {\n // polyfill needed for IE11\n setCustomEventShim();\n this.options = options;\n\n // append a trailing slash if not present in the baseUrl\n this.options.baseUrl =\n (this.options.baseUrl && this.options.baseUrl.endsWith('/')) ?\n this.options.baseUrl : `${this.options.baseUrl}/`;\n\n this.confLoader = new ConfigLoader(this.options);\n }\n\n load(configParam = {}) {\n // merge empty constructor config and parameter config\n this.config = ConfigLoader.mergeConfig(this.config, configParam);\n\n // load dependencies\n return this.depLoader.load()\n // load dynamic config\n .then(() => this.confLoader.load(this.config))\n // assign and merge dynamic config to this instance config\n .then((config) => {\n this.config = ConfigLoader.mergeConfig(this.config, config);\n })\n .then(() => this.compLoader.load(this.config));\n }\n}\n\n/**\n * Class used to to dynamically load the chatbot ui in a full page including its\n * dependencies and config\n */\nexport class FullPageLoader extends Loader {\n /**\n * @param {object} options - options controlling how the dependencies and\n * component config are loaded\n */\n constructor(options = {}) {\n super({ ...optionsFullPage, ...options });\n\n this.config = configBase;\n\n // run-time dependencies\n this.depLoader = new DependencyLoader({\n shouldLoadMinDeps: this.options.shouldLoadMinDeps,\n dependencies: dependenciesFullPage,\n baseUrl: this.options.baseUrl,\n });\n\n this.compLoader = new FullPageComponentLoader({\n elementId: this.options.elementId,\n config: this.config,\n });\n }\n\n load(configParam = {}) {\n return super.load(configParam);\n }\n}\n\n/**\n * Class used to to dynamically load the chatbot ui in an iframe\n */\nexport class IframeLoader extends Loader {\n /**\n * @param {object} options - options controlling how the dependencies and\n * component config are loaded\n */\n constructor(options = {}) {\n super({ ...optionsIframe, ...options });\n\n // chatbot UI component config\n this.config = configBase;\n\n // run-time dependencies\n this.depLoader = new DependencyLoader({\n shouldLoadMinDeps: this.options.shouldLoadMinDeps,\n dependencies: dependenciesIframe,\n baseUrl: this.options.baseUrl,\n });\n\n this.compLoader = new IframeComponentLoader({\n config: this.config,\n containerClass: this.options.containerClass || 'lex-web-ui',\n elementId: this.options.elementId || 'lex-web-ui',\n });\n }\n\n load(configParam = {}) {\n this.config.iframe = this.config.iframe || {};\n this.config.iframe.iframeSrcPath = this.mergeSrcPath(configParam);\n\n return super.load(configParam)\n .then(() => {\n // assign API to this object to make calls more succint\n this.api = this.compLoader.api;\n });\n }\n\n /**\n * Merges iframe src path from options and iframe config\n */\n mergeSrcPath(configParam) {\n const { iframe: iframeConfigFromParam } = configParam;\n const srcPathFromParam =\n iframeConfigFromParam && iframeConfigFromParam.iframeSrcPath;\n const { iframe: iframeConfigFromThis } = this.config;\n const srcPathFromThis =\n iframeConfigFromThis && iframeConfigFromThis.iframeSrcPath;\n\n return (srcPathFromParam || this.options.iframeSrcPath || srcPathFromThis);\n }\n}\n\n/**\n * chatbot loader library entry point\n */\nexport const ChatBotUiLoader = {\n FullPageLoader,\n IframeLoader,\n};\n\nexport default ChatBotUiLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/index.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n/* global aws_bots_config aws_cognito_identity_pool_id aws_cognito_region */\n\nimport { options as defaultOptions } from '../defaults/loader';\n\n/**\n * Config loader class\n *\n * Loads the chatbot UI config from the following sources in order of precedence:\n * (lower overrides higher):\n * 1. parameter passed to load()\n * 2. Event (loadlexconfig)\n * 3. Mobile HUB\n * 4. JSON file\n * TODO implement passing config in url param\n */\n\nexport class ConfigLoader {\n constructor(options = defaultOptions) {\n this.options = options;\n this.config = {};\n }\n\n /**\n * Loads the config from the supported the sources\n *\n * Config is sequentially merged\n *\n * Returns a promise that resolves to the merged config\n */\n load(configParam = {}) {\n return Promise.resolve()\n // json file\n .then(() => {\n if (this.options.shouldLoadConfigFromJsonFile) {\n // append baseUrl to config if it's relative\n const url = (this.options.configUrl.startsWith('http')) ?\n this.options.configUrl :\n `${this.options.baseUrl}${this.options.configUrl}`;\n return ConfigLoader.loadJsonFile(url);\n }\n return Promise.resolve({});\n })\n // mobile hub\n .then(mergedConfigFromJson => (\n (this.options.shouldLoadConfigFromMobileHubFile) ?\n ConfigLoader.mergeMobileHubConfig(mergedConfigFromJson) :\n Promise.resolve(mergedConfigFromJson)\n ))\n // event\n .then(mergedConfigFromMobileHub => (\n (this.options.shouldLoadConfigFromEvent) ?\n ConfigLoader.loadConfigFromEvent(\n mergedConfigFromMobileHub,\n this.options.configEventTimeoutInMs,\n ) :\n Promise.resolve(mergedConfigFromMobileHub)\n ))\n // filter config when running embedded\n .then(mergedConfigFromEvent => (\n this.filterConfigWhenEmedded(mergedConfigFromEvent)\n ))\n // merge config from parameter\n .then(config => (ConfigLoader.mergeConfig(config, configParam)));\n }\n\n /**\n * Loads the config from a JSON file URL\n */\n static loadJsonFile(url) {\n return new Promise((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url);\n xhr.responseType = 'json';\n xhr.onerror = () => (\n reject(new Error(`error getting chatbot UI config from url: ${url}`))\n );\n xhr.onload = () => {\n if (xhr.status !== 200) {\n const err = `failed to get chatbot config with status: ${xhr.status}`;\n return reject(new Error(err));\n }\n // ie11 does not support responseType\n if (typeof xhr.response === 'string') {\n try {\n const parsedResponse = JSON.parse(xhr.response);\n return resolve(parsedResponse);\n } catch (err) {\n return reject(new Error('failed to decode chatbot UI config object'));\n }\n }\n return resolve(xhr.response);\n };\n xhr.send();\n });\n }\n\n /**\n * Merges config with Mobile Hub variables\n *\n * Grabs the Cognito Pool Id and Bot name from the\n * aws_cognito_identity_pool_id and aws_bots_config global variables.\n * These variables are normally set by the 'aws-config.js' script.\n *\n * Returns a promise that resolves to the merge between the\n * Mobile Hub variables and the config parameter\n */\n static mergeMobileHubConfig(config) {\n // these values come from the AWS Mobile Hub generated aws-config.js\n // eslint-disable-next-line camelcase\n if (!aws_cognito_identity_pool_id || !aws_bots_config) {\n return Promise.resolve(config);\n }\n\n return new Promise((resolve, reject) => {\n let botName = '';\n let botRegion = '';\n\n try {\n const botsConfig = JSON.parse(aws_bots_config);\n botName = botsConfig[0].name;\n botRegion = botsConfig[0].region;\n } catch (err) {\n return reject(new Error('failed to parse mobile hub aws_bots_config'));\n }\n\n const mobileHubConfig = {\n cognito: {\n poolId: aws_cognito_identity_pool_id,\n // eslint-disable-next-line camelcase\n region: aws_cognito_region || 'us-east-1',\n },\n lex: { botName },\n region: botRegion || 'us-east-1',\n };\n\n const mergedConfig = ConfigLoader.mergeConfig(config, mobileHubConfig);\n\n return resolve(mergedConfig);\n });\n }\n\n /**\n * Loads dynamic bot config from an event\n * Merges it with the config passed as parameter\n */\n static loadConfigFromEvent(config, timeoutInMs = 10000) {\n const eventManager = {\n intervalId: null,\n timeoutId: null,\n onConfigEventLoaded: null,\n onConfigEventTimeout: null,\n };\n\n return new Promise((resolve, reject) => {\n eventManager.onConfigEventLoaded = (evt) => {\n clearTimeout(eventManager.timeoutId);\n clearInterval(eventManager.intervalId);\n document.removeEventListener('loadlexconfig', eventManager.onConfigEventLoaded, false);\n\n if (evt && ('detail' in evt) && evt.detail && ('config' in evt.detail)) {\n const evtConfig = evt.detail.config;\n const mergedConfig = ConfigLoader.mergeConfig(config, evtConfig);\n return resolve(mergedConfig);\n }\n return reject(new Error('malformed config in event'));\n };\n\n eventManager.onConfigEventTimeout = () => {\n clearInterval(eventManager.intervalId);\n document.removeEventListener('loadlexconfig', eventManager.onConfigEventLoaded, false);\n return reject(new Error('config event timed out'));\n };\n\n eventManager.timeoutId = setTimeout(eventManager.onConfigEventTimeout, timeoutInMs);\n document.addEventListener('loadlexconfig', eventManager.onConfigEventLoaded, false);\n\n // signal that we are ready to receive the dynamic config\n // on an interval of 1/2 a second\n eventManager.intervalId = setInterval(() => (\n document.dispatchEvent(new CustomEvent('receivelexconfig'))\n ), 500);\n });\n }\n\n /**\n * Ignores most fields when running embeded and the\n * shouldIgnoreConfigWhenEmbedded is set to true\n */\n filterConfigWhenEmedded(config) {\n const url = window.location.href;\n // when shouldIgnoreConfigEmbedded is true\n // ignore most of the config with the exception of the parentOrigin\n const parentOrigin = config.ui && config.ui.parentOrigin;\n return (this.options &&\n this.options.shouldIgnoreConfigWhenEmbedded &&\n url.includes('lexWebUiEmbed=true')) ?\n { ui: { parentOrigin } } : config;\n }\n\n /**\n * Merges config objects. The initial set of keys to merge are driven by\n * the baseConfig. The srcConfig values override the baseConfig ones\n * unless the srcConfig value is empty\n */\n static mergeConfig(baseConfig, srcConfig = {}) {\n function isEmpty(data) {\n if (typeof data === 'number' || typeof data === 'boolean') {\n return false;\n }\n if (typeof data === 'undefined' || data === null) {\n return true;\n }\n if (typeof data.length !== 'undefined') {\n return data.length === 0;\n }\n return Object.keys(data).length === 0;\n }\n\n if (isEmpty(srcConfig)) {\n return { ...baseConfig };\n }\n\n // use the baseConfig first level keys as the base for merging\n return Object.keys(baseConfig)\n .map((key) => {\n const mergedConfig = {};\n let value = baseConfig[key];\n // merge from source if its value is not empty\n if (key in srcConfig && !isEmpty(srcConfig[key])) {\n value = (typeof baseConfig[key] === 'object') ?\n // recursively merge sub-objects in both directions\n {\n ...ConfigLoader.mergeConfig(srcConfig[key], baseConfig[key]),\n ...ConfigLoader.mergeConfig(baseConfig[key], srcConfig[key]),\n } :\n srcConfig[key];\n }\n mergedConfig[key] = value;\n return mergedConfig;\n })\n // merge key values back into a single object\n .reduce((merged, configItem) => ({ ...merged, ...configItem }), {});\n }\n}\n\nexport default ConfigLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/config-loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n/**\n * Dependency loader class\n *\n * Used to dynamically load external JS/CSS dependencies into the DOM\n */\nexport class DependencyLoader {\n /**\n * @param {boolean} shouldLoadMinDeps - controls whether the minimized\n * version of a dependency should be loaded. Default: true.\n *\n * @param {boolean} baseUrl - sets the baseUrl to be prepended to relative\n * URLs. Default: '/'\n *\n * @param {object} dependencies - contains a field for scripts and css\n * dependencies. Each field points to an array of objects containing\n * the dependency definition. The order of array dictates the load sequence.\n *\n * Each object in the array may contain the following fields:\n * - name: [required] For scripts, it points to a variable in global\n * namespace indicating if the script is loaded. It is also used in the\n * element id\n * - url: [required] URL where the dependency is loaded\n * - optional: When set to true, load errors are ignored. Otherwise, if set\n * to false, the dependency load chain fails\n * - canUseMin: When set to true, it attempts to load the min version of a\n * dependency by prepending 'min' before the file extension.\n *\n * Example:\n * dependencies = {\n * 'script': [\n * {\n * name: 'Vuetify',\n * url: 'https://unpkg.com/vuetify/dist/vuetify.js',\n * optional: false,\n * canUseMin: true,\n * },\n * ],\n * 'css': [\n * {\n * name: 'vuetify',\n * url: 'https://unpkg.com/vuetify/dist/vuetify.css',\n * canUseMin: true,\n * },\n * ],\n * };\n */\n constructor({ shouldLoadMinDeps = true, dependencies, baseUrl = '/' }) {\n if (typeof shouldLoadMinDeps !== 'boolean') {\n throw new Error('useMin paramenter should be a boolean');\n }\n if (!('css' in dependencies) || !Array.isArray(dependencies.css)) {\n throw new Error('missing or invalid css field in dependency parameter');\n }\n if (!('script' in dependencies) || !Array.isArray(dependencies.script)) {\n throw new Error('missing or invalid script field in dependency parameter');\n }\n this.useMin = shouldLoadMinDeps;\n this.dependencies = dependencies;\n this.baseUrl = baseUrl;\n }\n\n /**\n * Sequentially loads the dependencies\n *\n * Returns a promise that resolves if all dependencies are successfully\n * loaded or rejected if one fails (unless the dependency is optional).\n */\n load() {\n const types = [\n 'css',\n 'script',\n ];\n\n return types.reduce((typePromise, type) => (\n this.dependencies[type].reduce((loadPromise, dependency) => (\n loadPromise.then(() => (\n DependencyLoader.addDependency(this.useMin, this.baseUrl, type, dependency)\n ))\n ), typePromise)\n ), Promise.resolve());\n }\n\n /**\n * Inserts `.min` in URLs before extension\n */\n static getMinUrl(url) {\n const lastDotPosition = url.lastIndexOf('.');\n if (lastDotPosition === -1) {\n return `${url}.min`;\n }\n return `${url.substring(0, lastDotPosition)}.min${url.substring(lastDotPosition)}`;\n }\n\n /**\n * Builds the parameters used to add attributes to the tag\n */\n static getTypeAttributes(type) {\n switch (type) {\n case 'script':\n return {\n elAppend: document.body,\n tag: 'script',\n typeAttrib: 'text/javascript',\n srcAttrib: 'src',\n };\n case 'css':\n return {\n elAppend: document.head,\n tag: 'link',\n typeAttrib: 'text/css',\n srcAttrib: 'href',\n };\n default:\n return {};\n }\n }\n\n /**\n * Adds a JS/CSS dependency to the DOM\n *\n * Adds a script or link tag to dynamically load the JS/CSS dependency\n * Avoids adding script tags if the associated name exists in the global scope\n * or if the associated element id exists.\n *\n * Returns a promise that resolves when the dependency is loaded\n */\n static addDependency(useMin = true, baseUrl = '/', type, dependency) {\n if (!['script', 'css'].includes(type)) {\n return Promise.reject(new Error(`invalid dependency type: ${type}`));\n }\n if (!dependency || !dependency.name || !dependency.url) {\n return Promise.reject(new Error(`invalid dependency parameter: ${dependency}`));\n }\n\n // load fails after this timeout\n const loadTimeoutInMs = 10000;\n\n // For scripts, name is used to check if the dependency global variable exist\n // it is also used to build the element id of the HTML tag\n const { name } = dependency;\n if (type === 'script' && name in window) {\n console.warn(`script global variable ${name} seems to already exist`);\n return Promise.resolve();\n }\n\n // dependency url - can be automatically changed to a min link\n const minUrl = (useMin && dependency.canUseMin) ?\n DependencyLoader.getMinUrl(dependency.url) : dependency.url;\n\n // add base URL to relative URLs\n const url = (minUrl.startsWith('http')) ?\n minUrl : `${baseUrl}${minUrl}`;\n\n // element id - uses naming convention of -\n const elId = `${String(name).toLowerCase()}-${type}`;\n if (document.getElementById(elId)) {\n console.warn(`dependency tag for ${name} seems to already exist`);\n return Promise.resolve();\n }\n const {\n elAppend, typeAttrib, srcAttrib, tag,\n } = DependencyLoader.getTypeAttributes(type);\n\n if (!elAppend || !elAppend.appendChild) {\n return Promise.reject(new Error('invalid append element'));\n }\n\n return new Promise((resolve, reject) => {\n const el = document.createElement(tag);\n\n el.setAttribute('id', elId);\n el.setAttribute('type', typeAttrib);\n\n const timeoutId = setTimeout(() => (\n reject(new Error(`timed out loading ${name} dependency link: ${url}`))\n ), loadTimeoutInMs);\n el.onerror = () => {\n if (dependency.optional) {\n return resolve(el);\n }\n return reject(new Error(`failed to load ${name} dependency link: ${url}`));\n };\n el.onload = () => {\n clearTimeout(timeoutId);\n return resolve(el);\n };\n\n try {\n if (type === 'css') {\n el.setAttribute('rel', 'stylesheet');\n }\n el.setAttribute(srcAttrib, url);\n\n if (type === 'script') {\n // links appended towards the bottom\n elAppend.appendChild(el);\n } else if (type === 'css') {\n // css inserted before other links to allow overriding\n const linkEl = elAppend.querySelector('link');\n elAppend.insertBefore(el, linkEl);\n }\n } catch (err) {\n return reject(new Error(`failed to add ${name} dependency: ${err}`));\n }\n\n return el;\n });\n }\n}\n\nexport default DependencyLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/dependency-loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n/* global LexWebUi Vue */\nimport { ConfigLoader } from './config-loader';\n\n/**\n * Instantiates and mounts the chatbot component\n *\n * Assumes that the LexWebUi and Vue libraries have been loaded in the global\n * scope\n */\nexport class FullPageComponentLoader {\n /**\n * @param {string} elementId - element ID where the chatbot UI component\n * will be mounted\n * @param {object} config - chatbot UI config\n */\n constructor({ elementId = 'lex-web-ui', config = {} }) {\n this.elementId = elementId;\n this.config = config;\n }\n\n /**\n * Loads the component into the DOM\n * configParam overrides at runtime the chatbot UI config\n */\n load(configParam) {\n const mergedConfig = ConfigLoader.mergeConfig(this.config, configParam);\n\n return FullPageComponentLoader.createComponent(mergedConfig)\n .then(lexWebUi => (\n FullPageComponentLoader.mountComponent(this.elementId, lexWebUi)\n ));\n }\n\n /**\n * Instantiates the LexWebUi component\n *\n * Returns a promise that resolves to the component\n */\n static createComponent(config = {}) {\n return new Promise((resolve, reject) => {\n try {\n const lexWebUi = new LexWebUi.Loader(config);\n return resolve(lexWebUi);\n } catch (err) {\n return reject(new Error(`failed to load LexWebUi: ${err}`));\n }\n });\n }\n\n /**\n * Mounts the chatbot component in the DOM at the provided element ID\n * Returns a promise that resolves when the component is mounted\n */\n static mountComponent(elId = 'lex-web-ui', lexWebUi) {\n if (!lexWebUi) {\n throw new Error('lexWebUi not set');\n }\n return new Promise((resolve, reject) => {\n let el = document.getElementById(elId);\n\n // if the element doesn't exist, create a div and append it\n // to the document body\n if (!el) {\n el = document.createElement('div');\n el.setAttribute('id', elId);\n document.body.appendChild(el);\n }\n\n try {\n const LexWebUiComponent = Vue.extend({\n store: lexWebUi.store,\n template: '
',\n });\n\n // mounts off-document\n const lexWebUiComponent = new LexWebUiComponent().$mount();\n // replace existing element\n el.parentNode.replaceChild(lexWebUiComponent.$el, el);\n resolve(lexWebUiComponent);\n } catch (err) {\n reject(new Error(`failed to mount lexWebUi component: ${err}`));\n }\n });\n }\n}\n\nexport default FullPageComponentLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/fullpage-component-loader.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n/* global AWS */\n\nimport { ConfigLoader } from './config-loader';\n\n/**\n * Instantiates and mounts the chatbot component in an iframe\n *\n */\nexport class IframeComponentLoader {\n /**\n * @param {object} config - chatbot UI config\n * @param {string} elementId - element ID of a div containing the iframe\n * @param {string} containerClass - base CSS class used to match element\n * used for dynamicall hiding/showing element\n */\n constructor({\n config = {},\n containerClass = 'lex-web-ui',\n elementId = 'lex-web-ui',\n }) {\n this.elementId = elementId;\n this.config = config;\n this.containerClass = containerClass;\n\n this.iframeElement = null;\n this.containerElement = null;\n this.credentials = null;\n this.isChatBotReady = false;\n\n this.initIframeMessageHandlers();\n }\n\n /**\n * Loads the component into the DOM\n * configParam overrides at runtime the chatbot UI config\n */\n load(configParam) {\n this.config = ConfigLoader.mergeConfig(this.config, configParam);\n\n // add iframe config if missing\n if (!(('iframe' in this.config))) {\n this.config.iframe = {};\n }\n const iframeConfig = this.config.iframe;\n // assign the iframeOrigin if not found in config\n if (!(('iframeOrigin' in iframeConfig) && iframeConfig.iframeOrigin)) {\n this.config.iframe.iframeOrigin =\n this.config.parentOrigin || window.location.origin;\n }\n // assign parentOrigin if not found in config\n if (!(this.config.parentOrigin)) {\n this.config.parentOrigin =\n this.config.iframe.iframeOrigin || window.location.origin;\n }\n // validate config\n if (!IframeComponentLoader.validateConfig(this.config)) {\n return Promise.reject(new Error('config object is missing required fields'));\n }\n\n return Promise.all([\n this.initContainer(),\n this.initCognitoCredentials(),\n this.setupIframeMessageListener(),\n ])\n .then(() => this.initIframe())\n .then(() => this.initParentToIframeApi())\n .then(() => this.showIframe());\n }\n\n /**\n * Validate that the config has the expected structure\n */\n static validateConfig(config) {\n const { iframe: iframeConfig } = config;\n if (!iframeConfig) {\n console.error('missing iframe config field');\n return false;\n }\n if (!('iframeOrigin' in iframeConfig && iframeConfig.iframeOrigin)) {\n console.error('missing iframeOrigin config field');\n return false;\n }\n if (!('iframeSrcPath' in iframeConfig && iframeConfig.iframeSrcPath)) {\n console.error('missing iframeSrcPath config field');\n return false;\n }\n if (!('parentOrigin' in config && config.parentOrigin)) {\n console.error('missing parentOrigin config field');\n return false;\n }\n return true;\n }\n\n /**\n * Adds a div container to document body which will hold the chatbot iframe\n * Inits this.containerElement\n */\n initContainer() {\n return new Promise((resolve, reject) => {\n if (!this.elementId || !this.containerClass) {\n return reject(new Error('invalid chatbot container parameters'));\n }\n let containerEl = document.getElementById(this.elementId);\n if (containerEl) {\n console.warn('chatbot iframe container already exists');\n return resolve(containerEl);\n }\n try {\n containerEl = document.createElement('div');\n containerEl.classList.add(this.containerClass);\n containerEl.setAttribute('id', this.elementId);\n document.body.appendChild(containerEl);\n } catch (err) {\n return reject(new Error(`error initializing container: ${err}`));\n }\n\n // assign container element\n this.containerElement = containerEl;\n return resolve();\n });\n }\n\n /**\n * Creates Cognito credentials\n * Inits this.credentials\n */\n initCognitoCredentials() {\n return new Promise((resolve, reject) => {\n const { poolId: cognitoPoolId } =\n this.config.cognito;\n const region =\n this.config.cognito.region || this.config.region || 'us-east-1';\n if (!cognitoPoolId) {\n return reject(new Error('missing cognito poolId config'));\n }\n\n if (!('AWS' in window) ||\n !('CognitoIdentityCredentials' in window.AWS)\n ) {\n return reject(new Error('unable to find AWS SDK global object'));\n }\n\n let credentials;\n try {\n credentials = new AWS.CognitoIdentityCredentials(\n { IdentityPoolId: cognitoPoolId },\n { region },\n );\n } catch (err) {\n reject(new Error(`cognito credentials could not be created ${err}`));\n }\n\n // get and assign credentials\n return credentials.getPromise()\n .then(() => {\n this.credentials = credentials;\n resolve();\n });\n });\n }\n\n /**\n * Add postMessage event handler to receive messages from iframe\n */\n setupIframeMessageListener() {\n try {\n window.addEventListener(\n 'message',\n this.onMessageFromIframe.bind(this),\n false,\n );\n } catch (err) {\n return Promise\n .reject(new Error(`could not add iframe message listener ${err}`));\n }\n\n return Promise.resolve();\n }\n\n /**\n * Message handler - receives postMessage events from iframe\n */\n onMessageFromIframe(evt) {\n const iframeOrigin =\n (\n 'iframe' in this.config &&\n typeof this.config.iframe.iframeOrigin === 'string'\n ) ?\n this.config.iframe.iframeOrigin :\n window.location.origin;\n\n // SECURITY: origin check\n if (evt.origin !== iframeOrigin) {\n console.warn('postMessage from invalid origin', evt.origin);\n return;\n }\n if (!evt.ports || !Array.isArray(evt.ports) || !evt.ports.length) {\n console.warn('postMessage not sent over MessageChannel', evt);\n return;\n }\n if (!this.iframeMessageHandlers) {\n console.error('invalid iframe message handler');\n return;\n }\n\n if (!evt.data.event) {\n console.error('event from iframe does not have the event field', evt);\n return;\n }\n\n // SECURITY: validate that a message handler is defined as a property\n // and not inherited\n const hasMessageHandler = Object.prototype.hasOwnProperty.call(\n this.iframeMessageHandlers,\n evt.data.event,\n );\n if (!hasMessageHandler) {\n console.error('unknown message in event', evt.data);\n return;\n }\n\n // calls event handler and dynamically bind this\n this.iframeMessageHandlers[evt.data.event].call(this, evt);\n }\n\n /**\n * Adds chat bot iframe under the application div container\n * Inits this.iframeElement\n */\n initIframe() {\n const { iframeOrigin, iframeSrcPath } = this.config.iframe;\n if (!iframeOrigin || !iframeSrcPath) {\n return Promise.reject(new Error('invalid iframe url fields'));\n }\n const url = `${iframeOrigin}${iframeSrcPath}`;\n if (!url) {\n return Promise.reject(new Error('invalid iframe url'));\n }\n if (!this.containerElement || !('appendChild' in this.containerElement)) {\n return Promise.reject(new Error('invalid node element to append iframe'));\n }\n let iframeElement = this.containerElement.querySelector('iframe');\n if (iframeElement) {\n return Promise.resolve(iframeElement);\n }\n\n try {\n iframeElement = document.createElement('iframe');\n iframeElement.setAttribute('src', url);\n iframeElement.setAttribute('frameBorder', '0');\n iframeElement.setAttribute('scrolling', 'no');\n iframeElement.setAttribute('title', 'chatbot');\n // chrome requires this feature policy when using the\n // mic in an cross-origin iframe\n iframeElement.setAttribute('allow', 'microphone');\n\n this.containerElement.appendChild(iframeElement);\n } catch (err) {\n return Promise\n .reject(new Error(`failed to initialize iframe element ${err}`));\n }\n\n // assign iframe element\n this.iframeElement = iframeElement;\n return this.waitForIframe(iframeElement)\n .then(() => this.waitForChatBotReady());\n }\n\n /**\n * Waits for iframe to load\n */\n waitForIframe() {\n const iframeLoadManager = {\n timeoutInMs: 20000,\n timeoutId: null,\n onIframeLoaded: null,\n onIframeTimeout: null,\n };\n\n return new Promise((resolve, reject) => {\n iframeLoadManager.onIframeLoaded = () => {\n clearTimeout(iframeLoadManager.timeoutId);\n this.iframeElement.removeEventListener(\n 'load',\n iframeLoadManager.onIframeLoaded,\n false,\n );\n\n return resolve();\n };\n\n iframeLoadManager.onIframeTimeout = () => {\n this.iframeElement.removeEventListener(\n 'load',\n iframeLoadManager.onIframeLoaded,\n false,\n );\n\n return reject(new Error('iframe load timeout'));\n };\n\n iframeLoadManager.timeoutId = setTimeout(\n iframeLoadManager.onIframeTimeout,\n iframeLoadManager.timeoutInMs,\n );\n\n this.iframeElement.addEventListener(\n 'load',\n iframeLoadManager.onIframeLoaded,\n false,\n );\n });\n }\n\n /**\n * Wait for the chatbot UI to set isChatBotReady to true\n * isChatBotReady is set by the event handler when the chatbot\n * UI component signals that it has successfully loaded\n */\n waitForChatBotReady() {\n const readyManager = {\n timeoutId: null,\n intervalId: null,\n checkIsChtBotReady: null,\n onConfigEventTimeout: null,\n };\n\n return new Promise((resolve, reject) => {\n const timeoutInMs = 15000;\n\n readyManager.checkIsChatBotReady = () => {\n // isChatBotReady set by event received from iframe\n if (this.isChatBotReady) {\n clearTimeout(readyManager.timeoutId);\n clearInterval(readyManager.intervalId);\n resolve();\n }\n };\n\n readyManager.onConfigEventTimeout = () => {\n clearInterval(readyManager.intervalId);\n return reject(new Error('chatbot loading time out'));\n };\n\n readyManager.timeoutId =\n setTimeout(readyManager.onConfigEventTimeout, timeoutInMs);\n\n readyManager.intervalId =\n setInterval(readyManager.checkIsChatBotReady, 500);\n });\n }\n\n /**\n * Get AWS credentials to pass to the chatbot UI\n */\n getCredentials() {\n if (!this.credentials || !('getPromise' in this.credentials)) {\n return Promise.reject(new Error('invalid credentials'));\n }\n\n return this.credentials.getPromise()\n .then(() => this.credentials);\n }\n\n /**\n * Event handler functions for messages from iframe\n * Used by onMessageFromIframe - \"this\" object is bound dynamically\n */\n initIframeMessageHandlers() {\n this.iframeMessageHandlers = {\n // signals to the parent that the iframe component is loaded and its\n // API handler is ready\n ready(evt) {\n this.isChatBotReady = true;\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event });\n },\n\n // requests credentials from the parent\n getCredentials(evt) {\n return this.getCredentials()\n .then(creds => (\n evt.ports[0].postMessage({\n event: 'resolve',\n type: evt.data.event,\n data: creds,\n })\n ))\n .catch((error) => {\n console.error('failed to get credentials', error);\n evt.ports[0].postMessage({\n event: 'reject',\n type: evt.data.event,\n error: 'failed to get credentials',\n });\n });\n },\n\n // requests chatbot UI config\n initIframeConfig(evt) {\n evt.ports[0].postMessage({\n event: 'resolve',\n type: evt.data.event,\n data: this.config,\n });\n },\n\n // sent when minimize button is pressed within the iframe component\n toggleMinimizeUi(evt) {\n this.toggleMinimizeUiClass()\n .then(() => (\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event })\n ))\n .catch((error) => {\n console.error('failed to toggleMinimizeUi', error);\n evt.ports[0].postMessage({\n event: 'reject',\n type: evt.data.event,\n error: 'failed to toggleMinimizeUi',\n });\n });\n },\n\n // iframe sends Lex updates based on Lex API responses\n updateLexState(evt) {\n // evt.data will contain the Lex state\n // send resolve ressponse to the chatbot ui\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event });\n\n // relay event to parent\n const stateEvent = new CustomEvent('updatelexstate', { detail: evt.data });\n document.dispatchEvent(stateEvent);\n },\n };\n }\n\n /**\n * Send a message to the iframe using postMessage\n */\n sendMessageToIframe(message) {\n if (!this.iframeElement ||\n !('contentWindow' in this.iframeElement) ||\n !('postMessage' in this.iframeElement.contentWindow)\n ) {\n return Promise.reject(new Error('invalid iframe element'));\n }\n\n const { iframeOrigin } = this.config.iframe;\n if (!iframeOrigin) {\n return Promise.reject(new Error('invalid iframe origin'));\n }\n\n return new Promise((resolve, reject) => {\n const messageChannel = new MessageChannel();\n messageChannel.port1.onmessage = (evt) => {\n messageChannel.port1.close();\n messageChannel.port2.close();\n if (evt.data.event === 'resolve') {\n resolve(evt.data);\n } else {\n reject(new Error(`iframe failed to handle message - ${evt.data.error}`));\n }\n };\n this.iframeElement.contentWindow.postMessage(\n message,\n iframeOrigin,\n [messageChannel.port2],\n );\n });\n }\n\n /**\n * Toggle between showing/hiding chatbot ui\n */\n toggleShowUiClass() {\n try {\n this.containerElement.classList.toggle(`${this.containerClass}--show`);\n return Promise.resolve();\n } catch (err) {\n return Promise.reject(new Error(`failed to toggle show UI ${err}`));\n }\n }\n\n /**\n * Toggle between miminizing and expanding the chatbot ui\n */\n toggleMinimizeUiClass() {\n try {\n this.containerElement.classList.toggle(`${this.containerClass}--minimize`);\n return Promise.resolve();\n } catch (err) {\n return Promise.reject(new Error(`failed to toggle minimize UI ${err}`));\n }\n }\n\n /**\n * Shows the iframe\n */\n showIframe() {\n return Promise.resolve()\n .then(() => (\n // start minimized if configured accordingly\n (this.config.iframe.shouldLoadIframeMinimized) ?\n this.api.toggleMinimizeUi() :\n Promise.resolve()\n ))\n // display UI\n .then(() => this.toggleShowUiClass());\n }\n\n /**\n * Event based API handler\n * Receives `lexWebUiMessage` events from the parent and relays\n * to the iframe using postMessage\n */\n onMessageToIframe(evt) {\n if (!evt || !('detail' in evt) || !evt.detail ||\n !('message' in evt.detail)\n ) {\n return Promise.reject(new Error('malformed message to iframe event'));\n }\n return this.sendMessageToIframe(evt.detail.message);\n }\n\n\n /**\n * Inits the parent to iframe API\n */\n initParentToIframeApi() {\n this.api = {\n ping: () => this.sendMessageToIframe({ event: 'ping' }),\n sendParentReady: () => (\n this.sendMessageToIframe({ event: 'parentReady' })\n ),\n toggleMinimizeUi: () => (\n this.sendMessageToIframe({ event: 'toggleMinimizeUi' })\n ),\n postText: message => (\n this.sendMessageToIframe({ event: 'postText', message })\n ),\n };\n\n return Promise.resolve()\n .then(() => {\n // Add listener for parent to iframe event based API\n document.addEventListener(\n 'lexWebUiMessage',\n this.onMessageToIframe.bind(this),\n false,\n );\n })\n // signal to iframe that the parent is ready\n .then(() => this.api.sendParentReady())\n // signal to parent that the API is ready\n .then(() => {\n document.dispatchEvent(new CustomEvent('lexWebUiReady'));\n });\n }\n}\n\nexport default IframeComponentLoader;\n\n\n\n// WEBPACK FOOTER //\n// src/lex-web-ui-loader/js/lib/iframe-component-loader.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACntBA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpBA;AACA;;;;;;;;ACDA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;;;;;;;;ACDA;AACA;;;;;;;;ACDA;AACA;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;;;;;;;;ACHA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;;;;;;;;ACDA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;AACA;AACA;;;;;;;;ACFA;;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjCA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;AAaA;;;;;;;AAOA;AACA;AAEA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AAJA;AAOA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AAEA;AACA;AAFA;AAKA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AAFA;AAjDA;AACA;AAuDA;AACA;AAEA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AAJA;AAOA;AAEA;AACA;AAFA;AAfA;;;;;;;;;;;;;AC5EA;;;;;;;;;;;;;AAaA;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AANA;AACA;AAYA;;;;;;;;;;;;;;;;;;;;;ACjCA;;;;;;;;;;;;;AAaA;;;;;;;AAOA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7BA;AACA;AA+BA;;;AAGA;AACA;AAEA;AACA;AAJA;AACA;AAMA;;;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/CA;AACA;AAAA;AACA;AAAA;AACA;AAEA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAEA;AACA;AAAA;AACA;;;AACA;;;;;;AAJA;AACA;AACA;AARA;AAcA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AA5DA;;;;;;;;;;;;;AAaA;AACA;AACA;;;;;AAKA;AACA;AACA;AAyCA;AACA;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AADA;AAEA;AAAA;AACA;AAHA;AAKA;AACA;AACA;AAAA;AACA;;;;;AAGA;;;;;;AAIA;;;AACA;;;;AAIA;AAAA;AAAA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AACA;AAKA;AACA;AACA;AAFA;AAZA;AAgBA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;;;AAzBA;AACA;AA2BA;;;;;AAGA;;;AACA;;;;AAIA;AAAA;AAAA;AACA;AAEA;AAHA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AACA;AAKA;AACA;AACA;AACA;AAHA;AAbA;AAkBA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AACA;AAFA;AACA;AAIA;AACA;AAEA;AACA;;;AAhDA;AACA;AAkDA;;;;;AAGA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/KA;AACA;;;AACA;;;;;;;;;;;;AAYA;AACA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;;;AAOA;AAAA;AACA;AADA;AACA;AAAA;AACA;AADA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAZA;AAaA;AAAA;AAKA;AAlBA;AAmBA;AAAA;AAQA;AA3BA;AA4BA;AAAA;AAGA;AA/BA;AAgCA;AAAA;AACA;AACA;AACA;;;;;;;;AAuHA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;;;;;;;;AAnIA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AAPA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;;;AAsBA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AADA;AAOA;AACA;AACA;AACA;AACA;AAjBA;AAkBA;AAAA;AACA;;;AAhQA;;;;;;;;;;;;;AAaA;AACA;AACA;AAoPA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnQA;;;;;;;;;;;;;AAaA;AACA;AACA;;;;;AAKA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AAMA;AAAA;AACA;AAAA;AACA;AAIA;AAAA;AACA;AACA;AAAA;AADA;AADA;AAOA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAhBA;AAkBA;AACA;AACA;;;;;;;;;;;;AASA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AACA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAjCA;AAAA;AAAA;AAAA;AAAA;AACA;AAoCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;AClNA;AACA;;;AACA;;;;;;AAMA;AACA;;;;;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;;;;;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;;;;;;;;AAKA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAjGA;;;;;;;;;;;;;AAaA;AACA;AACA;AACA;AAoFA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpFA;AACA;;;AACA;;;;AAIA;AACA;;;;;;AAMA;AAIA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;;;;;;;;AAwBA;;;;AAIA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AACA;AAAA;AAAA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AAKA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAIA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAIA;AAKA;AACA;AACA;AACA;;;;;;;;AAKA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;;;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAHA;AADA;AAQA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAIA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA9DA;AAgEA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AAIA;AACA;AACA;AAPA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAFA;AAAA;AAMA;AAPA;AAQA;AAAA;AACA;AACA;AACA;;;;;;;;AAKA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAGA;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;AAGA;AAAA;AAAA;AARA;AACA;AAYA;AAEA;AACA;AAKA;AACA;AATA;AAUA;AAAA;AACA;AAXA;AAaA;AACA;AACA;;;AApeA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAzGA;;;;;;;;;;;;;AAaA;AACA;AACA;AA8iBA;;;;;A","sourceRoot":""} \ No newline at end of file diff --git a/dist/lex-web-ui-loader.min.css b/dist/lex-web-ui-loader.min.css old mode 100755 new mode 100644 diff --git a/dist/lex-web-ui-loader.min.css.map b/dist/lex-web-ui-loader.min.css.map old mode 100755 new mode 100644 diff --git a/dist/lex-web-ui-loader.min.js b/dist/lex-web-ui-loader.min.js old mode 100755 new mode 100644 index c1669141..3fe934b6 --- a/dist/lex-web-ui-loader.min.js +++ b/dist/lex-web-ui-loader.min.js @@ -3,5 +3,5 @@ * (c) 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Released under the Amazon Software License. */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ChatBotUiLoader=t():e.ChatBotUiLoader=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=62)}([function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(32)("wks"),o=n(20),i=n(1).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(1),o=n(0),i=n(12),a=n(8),u=function(e,t,n){var s,c,f,l=e&u.F,d=e&u.G,p=e&u.S,v=e&u.P,h=e&u.B,m=e&u.W,g=d?o:o[t]||(o[t]={}),y=g.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;d&&(n=t);for(s in n)(c=!l&&b&&void 0!==b[s])&&s in g||(f=c?b[s]:n[s],g[s]=d&&"function"!=typeof b[s]?n[s]:h&&c?i(f,r):m&&b[s]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((g.virtual||(g.virtual={}))[s]=f,e&u.R&&y&&!y[s]&&a(y,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(4),o=n(43),i=n(28),a=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(5),o=n(19);e.exports=n(7)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(45),o=n(29);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(18);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(44),o=n(33);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(101),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n0?r:n)(e)}},function(e,t,n){var r=n(32)("keys"),o=n(20);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(3),o=n(0),i=n(11);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(72),i=r(o),a=n(80),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":typeof e};t.default="function"==typeof u.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t,n){var r=n(4),o=n(76),i=n(33),a=n(31)("IE_PROTO"),u=function(){},s=function(){var e,t=n(27)("iframe"),r=i.length;for(t.style.display="none",n(52).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/LexWeb.vue","module.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/keys.js\n// module id = 63\n// module chunks = 0","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/ToolbarContainer.vue","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/MessageList.vue","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Message.vue","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/MessageText.vue","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/ResponseCard.vue","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/MessageLoading.vue","\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/InputContainer.vue","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/RecorderStatus.vue","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 72\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/slicedToArray.js\n// module id = 73\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/createClass.js\n// module id = 74\n// module chunks = 0","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n/**\n * Entry point to the lex-web-ui Vue plugin\n * Exports Loader as the plugin constructor\n * and Store as store that can be used with Vuex.Store()\n */\nimport Vue from 'vue';\nimport Vuex from 'vuex';\nimport { Config as AWSConfig, CognitoIdentityCredentials }\n from 'aws-sdk/global';\nimport LexRuntime from 'aws-sdk/clients/lexruntime';\nimport Polly from 'aws-sdk/clients/polly';\n\nimport LexWeb from '@/components/LexWeb';\nimport VuexStore from '@/store';\n\nimport { config as defaultConfig, mergeConfig } from '@/config';\n\n/**\n * Vue Component\n */\nconst Component = {\n name: 'lex-web-ui',\n template: '',\n components: { LexWeb },\n};\n\nconst loadingComponent = {\n template: '

Loading. Please wait...

',\n};\nconst errorComponent = {\n template: '

An error ocurred...

',\n};\n\n/**\n * Vue Asynchonous Component\n */\nconst AsyncComponent = ({\n component = Promise.resolve(Component),\n loading = loadingComponent,\n error = errorComponent,\n delay = 200,\n timeout = 10000,\n}) => ({\n // must be a promise\n component,\n // A component to use while the async component is loading\n loading,\n // A component to use if the load fails\n error,\n // Delay before showing the loading component. Default: 200ms.\n delay,\n // The error component will be displayed if a timeout is\n // provided and exceeded. Default: 10000ms.\n timeout,\n});\n\n/**\n * Vue Plugin\n */\nexport const Plugin = {\n install(VueConstructor, {\n name = '$lexWebUi',\n componentName = 'lex-web-ui',\n awsConfig,\n lexRuntimeClient,\n pollyClient,\n component = AsyncComponent,\n config = defaultConfig,\n }) {\n if (name in VueConstructor) {\n console.warn('plugin should only be used once');\n }\n // values to be added to custom vue property\n const value = {\n config,\n awsConfig,\n lexRuntimeClient,\n pollyClient,\n };\n // add custom property to Vue\n // for example, access this in a component via this.$lexWebUi\n Object.defineProperty(VueConstructor.prototype, name, { value });\n // register as a global component\n VueConstructor.component(componentName, component);\n },\n};\n\nexport const Store = VuexStore;\n\n/**\n * Main Class\n */\nexport class Loader {\n constructor(config = {}) {\n const mergedConfig = mergeConfig(defaultConfig, config);\n\n const VueConstructor = (window.Vue) ? window.Vue : Vue;\n if (!VueConstructor) {\n throw new Error('unable to find Vue');\n }\n\n const VuexConstructor = (window.Vuex) ? window.Vuex : Vuex;\n if (!VuexConstructor) {\n throw new Error('unable to find Vuex');\n }\n\n const AWSConfigConstructor = (window.AWS && window.AWS.Config) ?\n window.AWS.Config :\n AWSConfig;\n\n const CognitoConstructor =\n (window.AWS && window.AWS.CognitoIdentityCredentials) ?\n window.AWS.CognitoIdentityCredentials :\n CognitoIdentityCredentials;\n\n const PollyConstructor = (window.AWS && window.AWS.Polly) ?\n window.AWS.Polly :\n Polly;\n\n const LexRuntimeConstructor = (window.AWS && window.AWS.LexRuntime) ?\n window.AWS.LexRuntime :\n LexRuntime;\n\n if (!AWSConfigConstructor || !CognitoConstructor || !PollyConstructor\n || !LexRuntimeConstructor) {\n throw new Error('unable to find AWS SDK');\n }\n\n const credentials = new CognitoConstructor(\n { IdentityPoolId: mergedConfig.cognito.poolId },\n { region: mergedConfig.region || 'us-east-1' },\n );\n\n const awsConfig = new AWSConfigConstructor({\n region: mergedConfig.region || 'us-east-1',\n credentials,\n });\n\n const lexRuntimeClient = new LexRuntimeConstructor(awsConfig);\n const pollyClient = (\n typeof mergedConfig.recorder === 'undefined' ||\n (mergedConfig.recorder && mergedConfig.recorder.enable !== false)\n ) ? new PollyConstructor(awsConfig) : null;\n\n // TODO name space store\n this.store = new VuexConstructor.Store({ ...VuexStore });\n\n VueConstructor.use(Plugin, {\n config: mergedConfig,\n awsConfig,\n lexRuntimeClient,\n pollyClient,\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lex-web-ui.js","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/assign.js\n// module id = 76\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.assign.js\n// module id = 77\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-assign.js\n// module id = 78\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 79\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 80\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 81\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 82\n// module chunks = 0","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.promise');\nrequire('../modules/es7.promise.finally');\nrequire('../modules/es7.promise.try');\nmodule.exports = require('../modules/_core').Promise;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/promise.js\n// module id = 83\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 84\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 85\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 86\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 87\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 88\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 89\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 90\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value);\n if (domain) domain.exit();\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.promise.js\n// module id = 91\n// module chunks = 0","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-instance.js\n// module id = 92\n// module chunks = 0","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_for-of.js\n// module id = 93\n// module chunks = 0","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_invoke.js\n// module id = 94\n// module chunks = 0","var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n var promise = Promise.resolve();\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_microtask.js\n// module id = 95\n// module chunks = 0","var hide = require('./_hide');\nmodule.exports = function (target, src, safe) {\n for (var key in src) {\n if (safe && target[key]) target[key] = src[key];\n else hide(target, key, src[key]);\n } return target;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine-all.js\n// module id = 96\n// module chunks = 0","'use strict';\nvar global = require('./_global');\nvar core = require('./_core');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-species.js\n// module id = 97\n// module chunks = 0","// https://github.com/tc39/proposal-promise-finally\n'use strict';\nvar $export = require('./_export');\nvar core = require('./_core');\nvar global = require('./_global');\nvar speciesConstructor = require('./_species-constructor');\nvar promiseResolve = require('./_promise-resolve');\n\n$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {\n var C = speciesConstructor(this, core.Promise || global.Promise);\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.promise.finally.js\n// module id = 98\n// module chunks = 0","'use strict';\n// https://github.com/tc39/proposal-promise-try\nvar $export = require('./_export');\nvar newPromiseCapability = require('./_new-promise-capability');\nvar perform = require('./_perform');\n\n$export($export.S, 'Promise', { 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapability.f(this);\n var result = perform(callbackfn);\n (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);\n return promiseCapability.promise;\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.promise.try.js\n// module id = 99\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_100__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"vue\"\n// module id = 100\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_101__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"vuex\"\n// module id = 101\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_102__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"aws-sdk/global\"\n// module id = 102\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_103__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"aws-sdk/clients/lexruntime\"\n// module id = 103\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_104__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"aws-sdk/clients/polly\"\n// module id = 104\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7fdf03b2\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./LexWeb.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./LexWeb.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./LexWeb.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7fdf03b2\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./LexWeb.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/LexWeb.vue\n// module id = 105\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-7fdf03b2\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/LexWeb.vue\n// module id = 106\n// module chunks = 0","require('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/_core').Object.keys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/keys.js\n// module id = 107\n// module chunks = 0","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.keys.js\n// module id = 108\n// module chunks = 0","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 109\n// module chunks = 0","var normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ToolbarContainer.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ToolbarContainer.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-325dde92\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./ToolbarContainer.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/ToolbarContainer.vue\n// module id = 110\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-toolbar',{attrs:{\"color\":_vm.toolbarColor,\"app\":\"\",\"dark\":\"\",\"dense\":\"\",\"fixed\":\"\"}},[(_vm.toolbarLogo)?_c('img',{attrs:{\"src\":_vm.toolbarLogo}}):_vm._e(),_vm._v(\" \"),_c('v-toolbar-title',{staticClass:\"hidden-xs-and-down\"},[_vm._v(\"\\n \"+_vm._s(_vm.toolbarTitle)+\"\\n \")]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('v-tooltip',{attrs:{\"activator\":\".min-max-toggle\",\"left\":\"\"},model:{value:(_vm.shouldShowTooltip),callback:function ($$v) {_vm.shouldShowTooltip=$$v},expression:\"shouldShowTooltip\"}},[_c('span',{attrs:{\"id\":\"min-max-tooltip\"}},[_vm._v(_vm._s(_vm.toolTipMinimize))])]),_vm._v(\" \"),(_vm.$store.state.isRunningEmbedded)?_c('v-btn',_vm._g({staticClass:\"min-max-toggle\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.toggleMinimize}},_vm.tooltipEventHandlers),[_c('v-icon',[_vm._v(\"\\n \"+_vm._s(_vm.isUiMinimized ? 'arrow_drop_up' : 'arrow_drop_down')+\"\\n \")])],1):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-325dde92\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/ToolbarContainer.vue\n// module id = 111\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6f155304\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MessageList.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageList.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageList.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6f155304\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./MessageList.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6f155304\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/MessageList.vue\n// module id = 112\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-6f155304\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/MessageList.vue\n// module id = 113\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-46cd8705\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Message.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Message.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Message.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-46cd8705\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Message.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-46cd8705\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Message.vue\n// module id = 114\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-46cd8705\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Message.vue\n// module id = 115\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-4f01cfd4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MessageText.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageText.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageText.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-4f01cfd4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./MessageText.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-4f01cfd4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/MessageText.vue\n// module id = 116\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-4f01cfd4\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/MessageText.vue\n// module id = 117\n// module chunks = 0","/**\n * marked - a markdown parser\n * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/markedjs/marked\n */\n\n;(function(root) {\n'use strict';\n\n/**\n * Block-Level Grammar\n */\n\nvar block = {\n newline: /^\\n+/,\n code: /^( {4}[^\\n]+\\n*)+/,\n fences: noop,\n hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)/,\n heading: /^ *(#{1,6}) *([^\\n]+?) *#* *(?:\\n+|$)/,\n nptable: noop,\n blockquote: /^( {0,3}> ?(paragraph|[^\\n]*)(?:\\n|$))+/,\n list: /^( *)(bull) [\\s\\S]+?(?:hr|def|\\n{2,}(?! )(?!\\1bull )\\n*|\\s*$)/,\n html: /^ *(?:comment *(?:\\n|\\s*$)|closed *(?:\\n{2,}|\\s*$)|closing *(?:\\n{2,}|\\s*$))/,\n def: /^ {0,3}\\[(label)\\]: *\\n? *]+)>?(?:(?: +\\n? *| *\\n *)(title))? *(?:\\n+|$)/,\n table: noop,\n lheading: /^([^\\n]+)\\n *(=|-){2,} *(?:\\n+|$)/,\n paragraph: /^([^\\n]+(?:\\n?(?!hr|heading|lheading| {0,3}>|tag)[^\\n]+)+)/,\n text: /^[^\\n]+/\n};\n\nblock._label = /(?:\\\\[\\[\\]]|[^\\[\\]])+/;\nblock._title = /(?:\"(?:\\\\\"|[^\"]|\"[^\"\\n]*\")*\"|'\\n?(?:[^'\\n]+\\n?)*'|\\([^()]*\\))/;\nblock.def = edit(block.def)\n .replace('label', block._label)\n .replace('title', block._title)\n .getRegex();\n\nblock.bullet = /(?:[*+-]|\\d+\\.)/;\nblock.item = /^( *)(bull) [^\\n]*(?:\\n(?!\\1bull )[^\\n]*)*/;\nblock.item = edit(block.item, 'gm')\n .replace(/bull/g, block.bullet)\n .getRegex();\n\nblock.list = edit(block.list)\n .replace(/bull/g, block.bullet)\n .replace('hr', '\\\\n+(?=\\\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\\\* *){3,})(?:\\\\n+|$))')\n .replace('def', '\\\\n+(?=' + block.def.source + ')')\n .getRegex();\n\nblock._tag = '(?!(?:'\n + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'\n + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'\n + '|span|br|wbr|ins|del|img)\\\\b)\\\\w+(?!:|[^\\\\w\\\\s@]*@)\\\\b';\n\nblock.html = edit(block.html)\n .replace('comment', //)\n .replace('closed', /<(tag)[\\s\\S]+?<\\/\\1>/)\n .replace('closing', /\\s]*)*?\\/?>/)\n .replace(/tag/g, block._tag)\n .getRegex();\n\nblock.paragraph = edit(block.paragraph)\n .replace('hr', block.hr)\n .replace('heading', block.heading)\n .replace('lheading', block.lheading)\n .replace('tag', '<' + block._tag)\n .getRegex();\n\nblock.blockquote = edit(block.blockquote)\n .replace('paragraph', block.paragraph)\n .getRegex();\n\n/**\n * Normal Block Grammar\n */\n\nblock.normal = merge({}, block);\n\n/**\n * GFM Block Grammar\n */\n\nblock.gfm = merge({}, block.normal, {\n fences: /^ *(`{3,}|~{3,})[ \\.]*(\\S+)? *\\n([\\s\\S]*?)\\n? *\\1 *(?:\\n+|$)/,\n paragraph: /^/,\n heading: /^ *(#{1,6}) +([^\\n]+?) *#* *(?:\\n+|$)/\n});\n\nblock.gfm.paragraph = edit(block.paragraph)\n .replace('(?!', '(?!'\n + block.gfm.fences.source.replace('\\\\1', '\\\\2') + '|'\n + block.list.source.replace('\\\\1', '\\\\3') + '|')\n .getRegex();\n\n/**\n * GFM + Tables Block Grammar\n */\n\nblock.tables = merge({}, block.gfm, {\n nptable: /^ *(\\S.*\\|.*)\\n *([-:]+ *\\|[-| :]*)\\n((?:.*\\|.*(?:\\n|$))*)\\n*/,\n table: /^ *\\|(.+)\\n *\\|( *[-:]+[-| :]*)\\n((?: *\\|.*(?:\\n|$))*)\\n*/\n});\n\n/**\n * Block Lexer\n */\n\nfunction Lexer(options) {\n this.tokens = [];\n this.tokens.links = {};\n this.options = options || marked.defaults;\n this.rules = block.normal;\n\n if (this.options.gfm) {\n if (this.options.tables) {\n this.rules = block.tables;\n } else {\n this.rules = block.gfm;\n }\n }\n}\n\n/**\n * Expose Block Rules\n */\n\nLexer.rules = block;\n\n/**\n * Static Lex Method\n */\n\nLexer.lex = function(src, options) {\n var lexer = new Lexer(options);\n return lexer.lex(src);\n};\n\n/**\n * Preprocessing\n */\n\nLexer.prototype.lex = function(src) {\n src = src\n .replace(/\\r\\n|\\r/g, '\\n')\n .replace(/\\t/g, ' ')\n .replace(/\\u00a0/g, ' ')\n .replace(/\\u2424/g, '\\n');\n\n return this.token(src, true);\n};\n\n/**\n * Lexing\n */\n\nLexer.prototype.token = function(src, top) {\n src = src.replace(/^ +$/gm, '');\n var next,\n loose,\n cap,\n bull,\n b,\n item,\n space,\n i,\n tag,\n l,\n isordered;\n\n while (src) {\n // newline\n if (cap = this.rules.newline.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[0].length > 1) {\n this.tokens.push({\n type: 'space'\n });\n }\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n cap = cap[0].replace(/^ {4}/gm, '');\n this.tokens.push({\n type: 'code',\n text: !this.options.pedantic\n ? cap.replace(/\\n+$/, '')\n : cap\n });\n continue;\n }\n\n // fences (gfm)\n if (cap = this.rules.fences.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'code',\n lang: cap[2],\n text: cap[3] || ''\n });\n continue;\n }\n\n // heading\n if (cap = this.rules.heading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[1].length,\n text: cap[2]\n });\n continue;\n }\n\n // table no leading pipe (gfm)\n if (top && (cap = this.rules.nptable.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i].split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // hr\n if (cap = this.rules.hr.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'hr'\n });\n continue;\n }\n\n // blockquote\n if (cap = this.rules.blockquote.exec(src)) {\n src = src.substring(cap[0].length);\n\n this.tokens.push({\n type: 'blockquote_start'\n });\n\n cap = cap[0].replace(/^ *> ?/gm, '');\n\n // Pass `top` to keep the current\n // \"toplevel\" state. This is exactly\n // how markdown.pl works.\n this.token(cap, top);\n\n this.tokens.push({\n type: 'blockquote_end'\n });\n\n continue;\n }\n\n // list\n if (cap = this.rules.list.exec(src)) {\n src = src.substring(cap[0].length);\n bull = cap[2];\n isordered = bull.length > 1;\n\n this.tokens.push({\n type: 'list_start',\n ordered: isordered,\n start: isordered ? +bull : ''\n });\n\n // Get each top-level item.\n cap = cap[0].match(this.rules.item);\n\n next = false;\n l = cap.length;\n i = 0;\n\n for (; i < l; i++) {\n item = cap[i];\n\n // Remove the list item's bullet\n // so it is seen as the next token.\n space = item.length;\n item = item.replace(/^ *([*+-]|\\d+\\.) +/, '');\n\n // Outdent whatever the\n // list item contains. Hacky.\n if (~item.indexOf('\\n ')) {\n space -= item.length;\n item = !this.options.pedantic\n ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')\n : item.replace(/^ {1,4}/gm, '');\n }\n\n // Determine whether the next list item belongs here.\n // Backpedal if it does not belong in this list.\n if (this.options.smartLists && i !== l - 1) {\n b = block.bullet.exec(cap[i + 1])[0];\n if (bull !== b && !(bull.length > 1 && b.length > 1)) {\n src = cap.slice(i + 1).join('\\n') + src;\n i = l - 1;\n }\n }\n\n // Determine whether item is loose or not.\n // Use: /(^|\\n)(?! )[^\\n]+\\n\\n(?!\\s*$)/\n // for discount behavior.\n loose = next || /\\n\\n(?!\\s*$)/.test(item);\n if (i !== l - 1) {\n next = item.charAt(item.length - 1) === '\\n';\n if (!loose) loose = next;\n }\n\n this.tokens.push({\n type: loose\n ? 'loose_item_start'\n : 'list_item_start'\n });\n\n // Recurse.\n this.token(item, false);\n\n this.tokens.push({\n type: 'list_item_end'\n });\n }\n\n this.tokens.push({\n type: 'list_end'\n });\n\n continue;\n }\n\n // html\n if (cap = this.rules.html.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: this.options.sanitize\n ? 'paragraph'\n : 'html',\n pre: !this.options.sanitizer\n && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'),\n text: cap[0]\n });\n continue;\n }\n\n // def\n if (top && (cap = this.rules.def.exec(src))) {\n src = src.substring(cap[0].length);\n if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1);\n tag = cap[1].toLowerCase();\n if (!this.tokens.links[tag]) {\n this.tokens.links[tag] = {\n href: cap[2],\n title: cap[3]\n };\n }\n continue;\n }\n\n // table (gfm)\n if (top && (cap = this.rules.table.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/(?: *\\| *)?\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i]\n .replace(/^ *\\| *| *\\| *$/g, '')\n .split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // lheading\n if (cap = this.rules.lheading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[2] === '=' ? 1 : 2,\n text: cap[1]\n });\n continue;\n }\n\n // top-level paragraph\n if (top && (cap = this.rules.paragraph.exec(src))) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'paragraph',\n text: cap[1].charAt(cap[1].length - 1) === '\\n'\n ? cap[1].slice(0, -1)\n : cap[1]\n });\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n // Top-level should never reach here.\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'text',\n text: cap[0]\n });\n continue;\n }\n\n if (src) {\n throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return this.tokens;\n};\n\n/**\n * Inline-Level Grammar\n */\n\nvar inline = {\n escape: /^\\\\([\\\\`*{}\\[\\]()#+\\-.!_>])/,\n autolink: /^<(scheme:[^\\s\\x00-\\x1f<>]*|email)>/,\n url: noop,\n tag: /^|^<\\/?[a-zA-Z0-9\\-]+(?:\"[^\"]*\"|'[^']*'|\\s[^<'\">\\/\\s]*)*?\\/?>/,\n link: /^!?\\[(inside)\\]\\(href\\)/,\n reflink: /^!?\\[(inside)\\]\\s*\\[([^\\]]*)\\]/,\n nolink: /^!?\\[((?:\\[[^\\[\\]]*\\]|\\\\[\\[\\]]|[^\\[\\]])*)\\]/,\n strong: /^__([\\s\\S]+?)__(?!_)|^\\*\\*([\\s\\S]+?)\\*\\*(?!\\*)/,\n em: /^_([^\\s_](?:[^_]|__)+?[^\\s_])_\\b|^\\*((?:\\*\\*|[^*])+?)\\*(?!\\*)/,\n code: /^(`+)\\s*([\\s\\S]*?[^`]?)\\s*\\1(?!`)/,\n br: /^ {2,}\\n(?!\\s*$)/,\n del: noop,\n text: /^[\\s\\S]+?(?=[\\\\?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*/;\n\ninline.link = edit(inline.link)\n .replace('inside', inline._inside)\n .replace('href', inline._href)\n .getRegex();\n\ninline.reflink = edit(inline.reflink)\n .replace('inside', inline._inside)\n .getRegex();\n\n/**\n * Normal Inline Grammar\n */\n\ninline.normal = merge({}, inline);\n\n/**\n * Pedantic Inline Grammar\n */\n\ninline.pedantic = merge({}, inline.normal, {\n strong: /^__(?=\\S)([\\s\\S]*?\\S)__(?!_)|^\\*\\*(?=\\S)([\\s\\S]*?\\S)\\*\\*(?!\\*)/,\n em: /^_(?=\\S)([\\s\\S]*?\\S)_(?!_)|^\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)/\n});\n\n/**\n * GFM Inline Grammar\n */\n\ninline.gfm = merge({}, inline.normal, {\n escape: edit(inline.escape).replace('])', '~|])').getRegex(),\n url: edit(/^((?:ftp|https?):\\/\\/|www\\.)(?:[a-zA-Z0-9\\-]+\\.?)+[^\\s<]*|^email/)\n .replace('email', inline._email)\n .getRegex(),\n _backpedal: /(?:[^?!.,:;*_~()&]+|\\([^)]*\\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,\n del: /^~~(?=\\S)([\\s\\S]*?\\S)~~/,\n text: edit(inline.text)\n .replace(']|', '~]|')\n .replace('|', '|https?://|ftp://|www\\\\.|[a-zA-Z0-9.!#$%&\\'*+/=?^_`{\\\\|}~-]+@|')\n .getRegex()\n});\n\n/**\n * GFM + Line Breaks Inline Grammar\n */\n\ninline.breaks = merge({}, inline.gfm, {\n br: edit(inline.br).replace('{2,}', '*').getRegex(),\n text: edit(inline.gfm.text).replace('{2,}', '*').getRegex()\n});\n\n/**\n * Inline Lexer & Compiler\n */\n\nfunction InlineLexer(links, options) {\n this.options = options || marked.defaults;\n this.links = links;\n this.rules = inline.normal;\n this.renderer = this.options.renderer || new Renderer();\n this.renderer.options = this.options;\n\n if (!this.links) {\n throw new Error('Tokens array requires a `links` property.');\n }\n\n if (this.options.gfm) {\n if (this.options.breaks) {\n this.rules = inline.breaks;\n } else {\n this.rules = inline.gfm;\n }\n } else if (this.options.pedantic) {\n this.rules = inline.pedantic;\n }\n}\n\n/**\n * Expose Inline Rules\n */\n\nInlineLexer.rules = inline;\n\n/**\n * Static Lexing/Compiling Method\n */\n\nInlineLexer.output = function(src, links, options) {\n var inline = new InlineLexer(links, options);\n return inline.output(src);\n};\n\n/**\n * Lexing/Compiling\n */\n\nInlineLexer.prototype.output = function(src) {\n var out = '',\n link,\n text,\n href,\n cap;\n\n while (src) {\n // escape\n if (cap = this.rules.escape.exec(src)) {\n src = src.substring(cap[0].length);\n out += cap[1];\n continue;\n }\n\n // autolink\n if (cap = this.rules.autolink.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[2] === '@') {\n text = escape(this.mangle(cap[1]));\n href = 'mailto:' + text;\n } else {\n text = escape(cap[1]);\n href = text;\n }\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // url (gfm)\n if (!this.inLink && (cap = this.rules.url.exec(src))) {\n cap[0] = this.rules._backpedal.exec(cap[0])[0];\n src = src.substring(cap[0].length);\n if (cap[2] === '@') {\n text = escape(cap[0]);\n href = 'mailto:' + text;\n } else {\n text = escape(cap[0]);\n if (cap[1] === 'www.') {\n href = 'http://' + text;\n } else {\n href = text;\n }\n }\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // tag\n if (cap = this.rules.tag.exec(src)) {\n if (!this.inLink && /^/i.test(cap[0])) {\n this.inLink = false;\n }\n src = src.substring(cap[0].length);\n out += this.options.sanitize\n ? this.options.sanitizer\n ? this.options.sanitizer(cap[0])\n : escape(cap[0])\n : cap[0]\n continue;\n }\n\n // link\n if (cap = this.rules.link.exec(src)) {\n src = src.substring(cap[0].length);\n this.inLink = true;\n out += this.outputLink(cap, {\n href: cap[2],\n title: cap[3]\n });\n this.inLink = false;\n continue;\n }\n\n // reflink, nolink\n if ((cap = this.rules.reflink.exec(src))\n || (cap = this.rules.nolink.exec(src))) {\n src = src.substring(cap[0].length);\n link = (cap[2] || cap[1]).replace(/\\s+/g, ' ');\n link = this.links[link.toLowerCase()];\n if (!link || !link.href) {\n out += cap[0].charAt(0);\n src = cap[0].substring(1) + src;\n continue;\n }\n this.inLink = true;\n out += this.outputLink(cap, link);\n this.inLink = false;\n continue;\n }\n\n // strong\n if (cap = this.rules.strong.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.strong(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // em\n if (cap = this.rules.em.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.em(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.codespan(escape(cap[2].trim(), true));\n continue;\n }\n\n // br\n if (cap = this.rules.br.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.br();\n continue;\n }\n\n // del (gfm)\n if (cap = this.rules.del.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.del(this.output(cap[1]));\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.text(escape(this.smartypants(cap[0])));\n continue;\n }\n\n if (src) {\n throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return out;\n};\n\n/**\n * Compile Link\n */\n\nInlineLexer.prototype.outputLink = function(cap, link) {\n var href = escape(link.href),\n title = link.title ? escape(link.title) : null;\n\n return cap[0].charAt(0) !== '!'\n ? this.renderer.link(href, title, this.output(cap[1]))\n : this.renderer.image(href, title, escape(cap[1]));\n};\n\n/**\n * Smartypants Transformations\n */\n\nInlineLexer.prototype.smartypants = function(text) {\n if (!this.options.smartypants) return text;\n return text\n // em-dashes\n .replace(/---/g, '\\u2014')\n // en-dashes\n .replace(/--/g, '\\u2013')\n // opening singles\n .replace(/(^|[-\\u2014/(\\[{\"\\s])'/g, '$1\\u2018')\n // closing singles & apostrophes\n .replace(/'/g, '\\u2019')\n // opening doubles\n .replace(/(^|[-\\u2014/(\\[{\\u2018\\s])\"/g, '$1\\u201c')\n // closing doubles\n .replace(/\"/g, '\\u201d')\n // ellipses\n .replace(/\\.{3}/g, '\\u2026');\n};\n\n/**\n * Mangle Links\n */\n\nInlineLexer.prototype.mangle = function(text) {\n if (!this.options.mangle) return text;\n var out = '',\n l = text.length,\n i = 0,\n ch;\n\n for (; i < l; i++) {\n ch = text.charCodeAt(i);\n if (Math.random() > 0.5) {\n ch = 'x' + ch.toString(16);\n }\n out += '&#' + ch + ';';\n }\n\n return out;\n};\n\n/**\n * Renderer\n */\n\nfunction Renderer(options) {\n this.options = options || {};\n}\n\nRenderer.prototype.code = function(code, lang, escaped) {\n if (this.options.highlight) {\n var out = this.options.highlight(code, lang);\n if (out != null && out !== code) {\n escaped = true;\n code = out;\n }\n }\n\n if (!lang) {\n return '
'\n      + (escaped ? code : escape(code, true))\n      + '\\n
';\n }\n\n return '
'\n    + (escaped ? code : escape(code, true))\n    + '\\n
\\n';\n};\n\nRenderer.prototype.blockquote = function(quote) {\n return '
\\n' + quote + '
\\n';\n};\n\nRenderer.prototype.html = function(html) {\n return html;\n};\n\nRenderer.prototype.heading = function(text, level, raw) {\n return ''\n + text\n + '\\n';\n};\n\nRenderer.prototype.hr = function() {\n return this.options.xhtml ? '
\\n' : '
\\n';\n};\n\nRenderer.prototype.list = function(body, ordered, start) {\n var type = ordered ? 'ol' : 'ul',\n startatt = (ordered && start !== 1) ? (' start=\"' + start + '\"') : '';\n return '<' + type + startatt + '>\\n' + body + '\\n';\n};\n\nRenderer.prototype.listitem = function(text) {\n return '
  • ' + text + '
  • \\n';\n};\n\nRenderer.prototype.paragraph = function(text) {\n return '

    ' + text + '

    \\n';\n};\n\nRenderer.prototype.table = function(header, body) {\n return '\\n'\n + '\\n'\n + header\n + '\\n'\n + '\\n'\n + body\n + '\\n'\n + '
    \\n';\n};\n\nRenderer.prototype.tablerow = function(content) {\n return '\\n' + content + '\\n';\n};\n\nRenderer.prototype.tablecell = function(content, flags) {\n var type = flags.header ? 'th' : 'td';\n var tag = flags.align\n ? '<' + type + ' style=\"text-align:' + flags.align + '\">'\n : '<' + type + '>';\n return tag + content + '\\n';\n};\n\n// span level renderer\nRenderer.prototype.strong = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.em = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.codespan = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.br = function() {\n return this.options.xhtml ? '
    ' : '
    ';\n};\n\nRenderer.prototype.del = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.link = function(href, title, text) {\n if (this.options.sanitize) {\n try {\n var prot = decodeURIComponent(unescape(href))\n .replace(/[^\\w:]/g, '')\n .toLowerCase();\n } catch (e) {\n return text;\n }\n if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) {\n return text;\n }\n }\n if (this.options.baseUrl && !originIndependentUrl.test(href)) {\n href = resolveUrl(this.options.baseUrl, href);\n }\n var out = '
    ';\n return out;\n};\n\nRenderer.prototype.image = function(href, title, text) {\n if (this.options.baseUrl && !originIndependentUrl.test(href)) {\n href = resolveUrl(this.options.baseUrl, href);\n }\n var out = '\"'' : '>';\n return out;\n};\n\nRenderer.prototype.text = function(text) {\n return text;\n};\n\n/**\n * TextRenderer\n * returns only the textual part of the token\n */\n\nfunction TextRenderer() {}\n\n// no need for block level renderers\n\nTextRenderer.prototype.strong =\nTextRenderer.prototype.em =\nTextRenderer.prototype.codespan =\nTextRenderer.prototype.del =\nTextRenderer.prototype.text = function (text) {\n return text;\n}\n\nTextRenderer.prototype.link =\nTextRenderer.prototype.image = function(href, title, text) {\n return '' + text;\n}\n\nTextRenderer.prototype.br = function() {\n return '';\n}\n\n/**\n * Parsing & Compiling\n */\n\nfunction Parser(options) {\n this.tokens = [];\n this.token = null;\n this.options = options || marked.defaults;\n this.options.renderer = this.options.renderer || new Renderer();\n this.renderer = this.options.renderer;\n this.renderer.options = this.options;\n}\n\n/**\n * Static Parse Method\n */\n\nParser.parse = function(src, options) {\n var parser = new Parser(options);\n return parser.parse(src);\n};\n\n/**\n * Parse Loop\n */\n\nParser.prototype.parse = function(src) {\n this.inline = new InlineLexer(src.links, this.options);\n // use an InlineLexer with a TextRenderer to extract pure text\n this.inlineText = new InlineLexer(\n src.links,\n merge({}, this.options, {renderer: new TextRenderer()})\n );\n this.tokens = src.reverse();\n\n var out = '';\n while (this.next()) {\n out += this.tok();\n }\n\n return out;\n};\n\n/**\n * Next Token\n */\n\nParser.prototype.next = function() {\n return this.token = this.tokens.pop();\n};\n\n/**\n * Preview Next Token\n */\n\nParser.prototype.peek = function() {\n return this.tokens[this.tokens.length - 1] || 0;\n};\n\n/**\n * Parse Text Tokens\n */\n\nParser.prototype.parseText = function() {\n var body = this.token.text;\n\n while (this.peek().type === 'text') {\n body += '\\n' + this.next().text;\n }\n\n return this.inline.output(body);\n};\n\n/**\n * Parse Current Token\n */\n\nParser.prototype.tok = function() {\n switch (this.token.type) {\n case 'space': {\n return '';\n }\n case 'hr': {\n return this.renderer.hr();\n }\n case 'heading': {\n return this.renderer.heading(\n this.inline.output(this.token.text),\n this.token.depth,\n unescape(this.inlineText.output(this.token.text)));\n }\n case 'code': {\n return this.renderer.code(this.token.text,\n this.token.lang,\n this.token.escaped);\n }\n case 'table': {\n var header = '',\n body = '',\n i,\n row,\n cell,\n j;\n\n // header\n cell = '';\n for (i = 0; i < this.token.header.length; i++) {\n cell += this.renderer.tablecell(\n this.inline.output(this.token.header[i]),\n { header: true, align: this.token.align[i] }\n );\n }\n header += this.renderer.tablerow(cell);\n\n for (i = 0; i < this.token.cells.length; i++) {\n row = this.token.cells[i];\n\n cell = '';\n for (j = 0; j < row.length; j++) {\n cell += this.renderer.tablecell(\n this.inline.output(row[j]),\n { header: false, align: this.token.align[j] }\n );\n }\n\n body += this.renderer.tablerow(cell);\n }\n return this.renderer.table(header, body);\n }\n case 'blockquote_start': {\n body = '';\n\n while (this.next().type !== 'blockquote_end') {\n body += this.tok();\n }\n\n return this.renderer.blockquote(body);\n }\n case 'list_start': {\n body = '';\n var ordered = this.token.ordered,\n start = this.token.start;\n\n while (this.next().type !== 'list_end') {\n body += this.tok();\n }\n\n return this.renderer.list(body, ordered, start);\n }\n case 'list_item_start': {\n body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.token.type === 'text'\n ? this.parseText()\n : this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'loose_item_start': {\n body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'html': {\n var html = !this.token.pre && !this.options.pedantic\n ? this.inline.output(this.token.text)\n : this.token.text;\n return this.renderer.html(html);\n }\n case 'paragraph': {\n return this.renderer.paragraph(this.inline.output(this.token.text));\n }\n case 'text': {\n return this.renderer.paragraph(this.parseText());\n }\n }\n};\n\n/**\n * Helpers\n */\n\nfunction escape(html, encode) {\n return html\n .replace(!encode ? /&(?!#?\\w+;)/g : /&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\nfunction unescape(html) {\n // explicitly match decimal, hex, and named HTML entities\n return html.replace(/&(#(?:\\d+)|(?:#x[0-9A-Fa-f]+)|(?:\\w+));?/ig, function(_, n) {\n n = n.toLowerCase();\n if (n === 'colon') return ':';\n if (n.charAt(0) === '#') {\n return n.charAt(1) === 'x'\n ? String.fromCharCode(parseInt(n.substring(2), 16))\n : String.fromCharCode(+n.substring(1));\n }\n return '';\n });\n}\n\nfunction edit(regex, opt) {\n regex = regex.source;\n opt = opt || '';\n return {\n replace: function(name, val) {\n val = val.source || val;\n val = val.replace(/(^|[^\\[])\\^/g, '$1');\n regex = regex.replace(name, val);\n return this;\n },\n getRegex: function() {\n return new RegExp(regex, opt);\n }\n };\n}\n\nfunction resolveUrl(base, href) {\n if (!baseUrls[' ' + base]) {\n // we can ignore everything in base after the last slash of its path component,\n // but we might need to add _that_\n // https://tools.ietf.org/html/rfc3986#section-3\n if (/^[^:]+:\\/*[^/]*$/.test(base)) {\n baseUrls[' ' + base] = base + '/';\n } else {\n baseUrls[' ' + base] = base.replace(/[^/]*$/, '');\n }\n }\n base = baseUrls[' ' + base];\n\n if (href.slice(0, 2) === '//') {\n return base.replace(/:[\\s\\S]*/, ':') + href;\n } else if (href.charAt(0) === '/') {\n return base.replace(/(:\\/*[^/]*)[\\s\\S]*/, '$1') + href;\n } else {\n return base + href;\n }\n}\nvar baseUrls = {};\nvar originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;\n\nfunction noop() {}\nnoop.exec = noop;\n\nfunction merge(obj) {\n var i = 1,\n target,\n key;\n\n for (; i < arguments.length; i++) {\n target = arguments[i];\n for (key in target) {\n if (Object.prototype.hasOwnProperty.call(target, key)) {\n obj[key] = target[key];\n }\n }\n }\n\n return obj;\n}\n\n/**\n * Marked\n */\n\nfunction marked(src, opt, callback) {\n // throw error in case of non string input\n if (typeof src === 'undefined' || src === null) {\n throw new Error('marked(): input parameter is undefined or null');\n }\n if (typeof src !== 'string') {\n throw new Error('marked(): input parameter is of type '\n + Object.prototype.toString.call(src) + ', string expected');\n }\n\n if (callback || typeof opt === 'function') {\n if (!callback) {\n callback = opt;\n opt = null;\n }\n\n opt = merge({}, marked.defaults, opt || {});\n\n var highlight = opt.highlight,\n tokens,\n pending,\n i = 0;\n\n try {\n tokens = Lexer.lex(src, opt)\n } catch (e) {\n return callback(e);\n }\n\n pending = tokens.length;\n\n var done = function(err) {\n if (err) {\n opt.highlight = highlight;\n return callback(err);\n }\n\n var out;\n\n try {\n out = Parser.parse(tokens, opt);\n } catch (e) {\n err = e;\n }\n\n opt.highlight = highlight;\n\n return err\n ? callback(err)\n : callback(null, out);\n };\n\n if (!highlight || highlight.length < 3) {\n return done();\n }\n\n delete opt.highlight;\n\n if (!pending) return done();\n\n for (; i < tokens.length; i++) {\n (function(token) {\n if (token.type !== 'code') {\n return --pending || done();\n }\n return highlight(token.text, token.lang, function(err, code) {\n if (err) return done(err);\n if (code == null || code === token.text) {\n return --pending || done();\n }\n token.text = code;\n token.escaped = true;\n --pending || done();\n });\n })(tokens[i]);\n }\n\n return;\n }\n try {\n if (opt) opt = merge({}, marked.defaults, opt);\n return Parser.parse(Lexer.lex(src, opt), opt);\n } catch (e) {\n e.message += '\\nPlease report this to https://github.com/markedjs/marked.';\n if ((opt || marked.defaults).silent) {\n return '

    An error occurred:

    '\n        + escape(e.message + '', true)\n        + '
    ';\n }\n throw e;\n }\n}\n\n/**\n * Options\n */\n\nmarked.options =\nmarked.setOptions = function(opt) {\n merge(marked.defaults, opt);\n return marked;\n};\n\nmarked.defaults = {\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n sanitize: false,\n sanitizer: null,\n mangle: true,\n smartLists: false,\n silent: false,\n highlight: null,\n langPrefix: 'lang-',\n smartypants: false,\n headerPrefix: '',\n renderer: new Renderer(),\n xhtml: false,\n baseUrl: null\n};\n\n/**\n * Expose\n */\n\nmarked.Parser = Parser;\nmarked.parser = Parser.parse;\n\nmarked.Renderer = Renderer;\nmarked.TextRenderer = TextRenderer;\n\nmarked.Lexer = Lexer;\nmarked.lexer = Lexer.lex;\n\nmarked.InlineLexer = InlineLexer;\nmarked.inlineLexer = InlineLexer.output;\n\nmarked.parse = marked;\n\nif (typeof module !== 'undefined' && typeof exports === 'object') {\n module.exports = marked;\n} else if (typeof define === 'function' && define.amd) {\n define(function() { return marked; });\n} else {\n root.marked = marked;\n}\n})(this || (typeof window !== 'undefined' ? window : global));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/marked/lib/marked.js\n// module id = 118\n// module chunks = 0","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 119\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.message.text && _vm.message.type === 'human')?_c('div',{staticClass:\"message-text\"},[_vm._v(\"\\n \"+_vm._s(_vm.message.text)+\"\\n\")]):(_vm.altHtmlMessage && _vm.AllowSuperDangerousHTMLInMessage)?_c('div',{staticClass:\"message-text\",domProps:{\"innerHTML\":_vm._s(_vm.altHtmlMessage)}}):(_vm.message.text && _vm.shouldRenderAsHtml)?_c('div',{staticClass:\"message-text\",domProps:{\"innerHTML\":_vm._s(_vm.botMessageAsHtml)}}):(_vm.message.text && _vm.message.type === 'bot')?_c('div',{staticClass:\"message-text\"},[_vm._v(\"\\n \"+_vm._s((_vm.shouldStripTags) ? _vm.stripTagsFromMessage(_vm.message.text) : _vm.message.text)+\"\\n\")]):_vm._e()}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-4f01cfd4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/MessageText.vue\n// module id = 120\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-19ae77ba\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./ResponseCard.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ResponseCard.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ResponseCard.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-19ae77ba\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./ResponseCard.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-19ae77ba\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/ResponseCard.vue\n// module id = 121\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-19ae77ba\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/ResponseCard.vue\n// module id = 122\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[(_vm.responseCard.title.trim())?_c('v-card-title',{staticClass:\"red lighten-5\",attrs:{\"primary-title\":\"\"}},[_c('span',{staticClass:\"headline\"},[_vm._v(_vm._s(_vm.responseCard.title))])]):_vm._e(),_vm._v(\" \"),(_vm.responseCard.subTitle)?_c('v-card-text',[_c('span',[_vm._v(_vm._s(_vm.responseCard.subTitle))])]):_vm._e(),_vm._v(\" \"),(_vm.responseCard.imageUrl)?_c('v-card-media',{attrs:{\"src\":_vm.responseCard.imageUrl,\"contain\":\"\",\"height\":\"33vh\"}}):_vm._e(),_vm._v(\" \"),_vm._l((_vm.responseCard.buttons),function(button,index){return _c('v-card-actions',{key:index,staticClass:\"button-row\",attrs:{\"actions\":\"\"}},[(button.text && button.value)?_c('v-btn',{attrs:{\"disabled\":_vm.hasButtonBeenClicked,\"default\":\"\"},nativeOn:{\"~click\":function($event){_vm.onButtonClick(button.value)}}},[_vm._v(\"\\n \"+_vm._s(button.text)+\"\\n \")]):_vm._e()],1)}),_vm._v(\" \"),(_vm.responseCard.attachmentLinkUrl)?_c('v-card-actions',[_c('v-btn',{staticClass:\"red lighten-5\",attrs:{\"flat\":\"\",\"tag\":\"a\",\"href\":_vm.responseCard.attachmentLinkUrl,\"target\":\"_blank\"}},[_vm._v(\"\\n Open Link\\n \")])],1):_vm._e()],2)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-19ae77ba\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/ResponseCard.vue\n// module id = 123\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',{staticClass:\"message\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-layout\",attrs:{\"column\":\"\",\"ma-2\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-date-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-column\",attrs:{\"column\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-avatar-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-row\",attrs:{\"row\":\"\"}},[(_vm.shouldShowAvatarImage)?_c('div',{staticClass:\"bot-avatar focusable\",style:(_vm.botAvatarBackground),attrs:{\"tabindex\":_vm.message.id + 1}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"message-bubble focusable\",attrs:{\"tabindex\":_vm.message.id + 1},on:{\"focus\":_vm.onMessageFocus,\"blur\":_vm.onMessageBlur}},[('text' in _vm.message && _vm.message.text !== null && _vm.message.text.length)?_c('message-text',{attrs:{\"message\":_vm.message}}):_vm._e(),_vm._v(\" \"),(_vm.message.type === 'human' && _vm.message.audio)?_c('div',{staticClass:\"message-audio\"},[_c('audio',[_c('source',{attrs:{\"src\":_vm.message.audio,\"type\":\"audio/wav\"}})]),_vm._v(\" \"),_c('v-btn',{staticClass:\"black--text ml-0 mr-0\",attrs:{\"tabindex\":_vm.message.id + 1,\"icon\":\"\"},on:{\"click\":_vm.playAudio}},[_c('v-icon',{staticClass:\"play-icon\"},[_vm._v(\"play_circle_outline\")])],1)],1):_vm._e(),_vm._v(\" \"),(_vm.message.type === 'bot' && _vm.botDialogState && _vm.showDialogStateIcon)?_c('v-icon',{staticClass:\"dialog-state\",class:(\"dialog-state-\" + (_vm.botDialogState.state)),attrs:{\"medium\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.botDialogState.icon)+\"\\n \")]):_vm._e()],1)])],1),_vm._v(\" \"),(_vm.shouldShowMessageDate && _vm.isMessageFocused)?_c('v-flex',{staticClass:\"text-xs-center message-date\"},[_vm._v(\"\\n \"+_vm._s(_vm.messageHumanDate)+\"\\n \")]):_vm._e()],1)],1),_vm._v(\" \"),(_vm.shouldDisplayResponseCard)?_c('v-flex',{staticClass:\"response-card\",attrs:{\"d-flex\":\"\",\"mt-2\":\"\",\"mr-2\":\"\",\"ml-3\":\"\"}},_vm._l((_vm.message.responseCard.genericAttachments),function(card,index){return _c('response-card',{key:index,attrs:{\"response-card\":card}})})):_vm._e()],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-46cd8705\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Message.vue\n// module id = 124\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6d624218\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MessageLoading.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageLoading.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageLoading.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6d624218\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./MessageLoading.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6d624218\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/MessageLoading.vue\n// module id = 125\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-6d624218\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/MessageLoading.vue\n// module id = 126\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',{staticClass:\"message message-bot\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-layout\",attrs:{\"column\":\"\",\"ma-2\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-date-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-column\",attrs:{\"column\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-avatar-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-row\",attrs:{\"row\":\"\"}},[_c('div',{staticClass:\"message-bubble focusable\"},[_vm._v(\"\\n \"+_vm._s(_vm.progress)+\" \\n \")])])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6d624218\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/MessageLoading.vue\n// module id = 127\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-layout',{staticClass:\"message-list\",attrs:{\"column\":\"\",\"fill-height\":\"\"}},[_vm._l((_vm.messages),function(message){return _c('message',{key:message.id,ref:\"messages\",refInFor:true,class:(\"message-\" + (message.type)),attrs:{\"message\":message},on:{\"scrollDown\":_vm.scrollDown}})}),_vm._v(\" \"),(_vm.loading)?_c('MessageLoading'):_vm._e()],2)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6f155304\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/MessageList.vue\n// module id = 128\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-62d75cef\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./InputContainer.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./InputContainer.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./InputContainer.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-62d75cef\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./InputContainer.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/InputContainer.vue\n// module id = 129\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-62d75cef\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/InputContainer.vue\n// module id = 130\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-85675648\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./RecorderStatus.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./RecorderStatus.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./RecorderStatus.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-85675648\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./RecorderStatus.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-85675648\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/RecorderStatus.vue\n// module id = 131\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-85675648\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/RecorderStatus.vue\n// module id = 132\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',{staticClass:\"recorder-status white\"},[_c('div',{staticClass:\"status-text\"},[_c('span',[_vm._v(_vm._s(_vm.statusText))])]),_vm._v(\" \"),_c('div',{staticClass:\"voice-controls ml-2\"},[_c('transition',{attrs:{\"css\":false},on:{\"enter\":_vm.enterMeter,\"leave\":_vm.leaveMeter}},[(_vm.isRecording)?_c('div',{staticClass:\"volume-meter\"},[_c('meter',{attrs:{\"value\":_vm.volume,\"min\":\"0.0001\",\"low\":\"0.005\",\"optimum\":\"0.04\",\"high\":\"0.07\",\"max\":\"0.09\"}})]):_vm._e()]),_vm._v(\" \"),(_vm.isProcessing)?_c('v-progress-linear',{staticClass:\"processing-bar ma-0\",attrs:{\"indeterminate\":true}}):_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"css\":false},on:{\"enter\":_vm.enterAudioPlay,\"leave\":_vm.leaveAudioPlay}},[(_vm.isBotSpeaking)?_c('v-progress-linear',{staticClass:\"audio-progress-bar ma-0\",model:{value:(_vm.audioPlayPercent),callback:function ($$v) {_vm.audioPlayPercent=$$v},expression:\"audioPlayPercent\"}}):_vm._e()],1)],1)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-85675648\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/RecorderStatus.vue\n// module id = 133\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-footer',{attrs:{\"app\":\"\",\"fixed\":\"\"}},[_c('v-layout',{staticClass:\"input-container\",attrs:{\"row\":\"\",\"justify-space-between\":\"\",\"ma-0\":\"\"}},[_c('v-toolbar',{attrs:{\"color\":\"white\",\"dense\":\"\"}},[_c('v-text-field',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.shouldShowTextInput),expression:\"shouldShowTextInput\"}],attrs:{\"label\":_vm.textInputPlaceholder,\"id\":\"text-input\",\"name\":\"text-input\",\"single-line\":\"\",\"hide-details\":\"\"},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key)){ return null; }$event.stopPropagation();_vm.postTextMessage($event)},\"focus\":_vm.onTextFieldFocus,\"blur\":_vm.onTextFieldBlur},model:{value:(_vm.textInput),callback:function ($$v) {_vm.textInput=$$v},expression:\"textInput\"}}),_vm._v(\" \"),_c('recorder-status',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.shouldShowTextInput),expression:\"!shouldShowTextInput\"}]}),_vm._v(\" \"),_c('v-tooltip',{ref:\"tooltip\",attrs:{\"activator\":\".input-button\",\"left\":\"\"},model:{value:(_vm.shouldShowTooltip),callback:function ($$v) {_vm.shouldShowTooltip=$$v},expression:\"shouldShowTooltip\"}},[_c('span',{attrs:{\"id\":\"input-button-tooltip\"}},[_vm._v(_vm._s(_vm.inputButtonTooltip))])]),_vm._v(\" \"),(_vm.shouldShowSendButton)?_c('v-btn',_vm._g({ref:\"send\",staticClass:\"black--text input-button\",attrs:{\"disabled\":_vm.isSendButtonDisabled,\"icon\":\"\"},on:{\"click\":_vm.postTextMessage}},_vm.tooltipEventHandlers),[_c('v-icon',{attrs:{\"medium\":\"\"}},[_vm._v(\"send\")])],1):_c('v-btn',_vm._g({ref:\"mic\",staticClass:\"black--text input-button\",attrs:{\"disabled\":_vm.isMicButtonDisabled,\"icon\":\"\"},on:{\"click\":_vm.onMicClick}},_vm.tooltipEventHandlers),[_c('v-icon',{attrs:{\"medium\":\"\"}},[_vm._v(_vm._s(_vm.micButtonIcon))])],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-62d75cef\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/InputContainer.vue\n// module id = 134\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-app',{attrs:{\"id\":\"lex-web\"}},[_c('toolbar-container',{attrs:{\"toolbar-title\":_vm.toolbarTitle,\"toolbar-color\":_vm.toolbarColor,\"toolbar-logo\":_vm.toolbarLogo,\"is-ui-minimized\":_vm.isUiMinimized},on:{\"toggleMinimizeUi\":_vm.toggleMinimizeUi}}),_vm._v(\" \"),_c('v-content',[_c('v-container',{staticClass:\"message-list-container\",attrs:{\"fluid\":\"\",\"pa-0\":\"\"}},[_c('message-list',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isUiMinimized),expression:\"!isUiMinimized\"}]})],1)],1),_vm._v(\" \"),(!_vm.isUiMinimized)?_c('input-container',{attrs:{\"text-input-placeholder\":_vm.textInputPlaceholder,\"initial-speech-instruction\":_vm.initialSpeechInstruction}}):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-7fdf03b2\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/LexWeb.vue\n// module id = 135\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* global atob Blob URL */\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* eslint no-param-reassign: off */\n\nimport initialState from '@/store/state';\nimport getters from '@/store/getters';\nimport mutations from '@/store/mutations';\nimport actions from '@/store/actions';\n\nexport default {\n // prevent changes outside of mutation handlers\n strict: (process.env.NODE_ENV === 'development'),\n state: initialState,\n getters,\n mutations,\n actions,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/index.js","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/**\n * Sets up the initial state of the store\n */\nimport { config } from '@/config';\n\nexport default {\n version: (process.env.PACKAGE_VERSION) ?\n process.env.PACKAGE_VERSION : '0.0.0',\n lex: {\n acceptFormat: 'audio/ogg',\n dialogState: '',\n isInterrupting: false,\n isProcessing: false,\n inputTranscript: '',\n intentName: '',\n message: '',\n responseCard: null,\n sessionAttributes: (\n config.lex &&\n config.lex.sessionAttributes &&\n typeof config.lex.sessionAttributes === 'object'\n ) ? { ...config.lex.sessionAttributes } : {},\n slotToElicit: '',\n slots: {},\n },\n messages: [],\n polly: {\n outputFormat: 'ogg_vorbis',\n voiceId: (\n config.polly &&\n config.polly.voiceId &&\n typeof config.polly.voiceId === 'string'\n ) ? `${config.polly.voiceId}` : 'Joanna',\n },\n botAudio: {\n canInterrupt: false,\n interruptIntervalId: null,\n autoPlay: false,\n isInterrupting: false,\n isSpeaking: false,\n },\n recState: {\n isConversationGoing: false,\n isInterrupting: false,\n isMicMuted: false,\n isMicQuiet: true,\n isRecorderSupported: false,\n isRecorderEnabled: (config.recorder) ? !!config.recorder.enable : true,\n isRecording: false,\n silentRecordingCount: 0,\n },\n\n isRunningEmbedded: false, // am I running in an iframe?\n isUiMinimized: false, // when running embedded, is the iframe minimized?\n config,\n\n awsCreds: {\n provider: 'cognito', // cognito|parentWindow\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/state.js","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 138\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 139\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 140\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 141\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 142\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 143\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 144\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 145\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 146\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 147\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 148\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 149\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/defineProperty.js\n// module id = 150\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/is-iterable.js\n// module id = 151\n// module chunks = 0","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/is-iterable.js\n// module id = 152\n// module chunks = 0","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.is-iterable.js\n// module id = 153\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/get-iterator.js\n// module id = 154\n// module chunks = 0","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/get-iterator.js\n// module id = 155\n// module chunks = 0","var anObject = require('./_an-object');\nvar get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function (it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator.js\n// module id = 156\n// module chunks = 0","var map = {\n\t\"./config.dev.json\": 158,\n\t\"./config.prod.json\": 159,\n\t\"./config.test.json\": 160\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 157;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config ^\\.\\/config\\..*\\.json$\n// module id = 157\n// module chunks = 0","module.exports = {\"cognito\":{\"poolId\":\"\"},\"lex\":{\"botName\":\"WebUiOrderFlowers\",\"initialText\":\"You can ask me for help ordering flowers. Just type \\\"order flowers\\\" or click on the mic and say it.\",\"initialSpeechInstruction\":\"Say 'Order Flowers' to get started.\"},\"polly\":{\"voiceId\":\"Salli\"},\"ui\":{\"parentOrigin\":\"http://localhost:8080\",\"pageTitle\":\"Order Flowers Bot\",\"toolbarTitle\":\"Order Flowers\"},\"recorder\":{\"preset\":\"speech_recognition\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/config.dev.json\n// module id = 158\n// module chunks = 0","module.exports = {\"cognito\":{\"poolId\":\"\"},\"lex\":{\"botName\":\"WebUiOrderFlowers\",\"initialText\":\"You can ask me for help ordering flowers. Just type \\\"order flowers\\\" or click on the mic and say it.\",\"initialSpeechInstruction\":\"Say 'Order Flowers' to get started.\"},\"polly\":{\"voiceId\":\"Salli\"},\"ui\":{\"parentOrigin\":\"\",\"pageTitle\":\"Order Flowers Bot\",\"toolbarTitle\":\"Order Flowers\"},\"recorder\":{\"preset\":\"speech_recognition\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/config.prod.json\n// module id = 159\n// module chunks = 0","module.exports = {\"cognito\":{\"poolId\":\"\"},\"lex\":{\"botName\":\"WebUiOrderFlowers\",\"initialText\":\"You can ask me for help ordering flowers. Just type \\\"order flowers\\\" or click on the mic and say it.\",\"initialSpeechInstruction\":\"Say 'Order Flowers' to get started.\"},\"polly\":{\"voiceId\":\"Salli\"},\"ui\":{\"parentOrigin\":\"http://localhost:8080\",\"pageTitle\":\"Order Flowers Bot\",\"toolbarTitle\":\"Order Flowers\"},\"recorder\":{\"preset\":\"speech_recognition\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/config.test.json\n// module id = 160\n// module chunks = 0","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\nexport default {\n canInterruptBotPlayback: state => state.botAudio.canInterrupt,\n isBotSpeaking: state => state.botAudio.isSpeaking,\n isConversationGoing: state => state.recState.isConversationGoing,\n isLexInterrupting: state => state.lex.isInterrupting,\n isLexProcessing: state => state.lex.isProcessing,\n isMicMuted: state => state.recState.isMicMuted,\n isMicQuiet: state => state.recState.isMicQuiet,\n isRecorderSupported: state => state.recState.isRecorderSupported,\n isRecording: state => state.recState.isRecording,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/getters.js","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/**\n * Store mutations\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* eslint no-param-reassign: [\"error\", { \"props\": false }] */\n/* eslint spaced-comment: [\"error\", \"always\", { \"exceptions\": [\"*\"] }] */\n\nimport { mergeConfig } from '@/config';\n\nexport default {\n /***********************************************************************\n *\n * Recorder State Mutations\n *\n **********************************************************************/\n\n /**\n * true if recorder seems to be muted\n */\n setIsMicMuted(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsMicMuted status not boolean', bool);\n return;\n }\n if (state.config.recorder.useAutoMuteDetect) {\n state.recState.isMicMuted = bool;\n }\n },\n /**\n * set to true if mic if sound from mic is not loud enough\n */\n setIsMicQuiet(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsMicQuiet status not boolean', bool);\n return;\n }\n state.recState.isMicQuiet = bool;\n },\n /**\n * set to true while speech conversation is going\n */\n setIsConversationGoing(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsConversationGoing status not boolean', bool);\n return;\n }\n state.recState.isConversationGoing = bool;\n },\n /**\n * Signals recorder to start and sets recoding state to true\n */\n startRecording(state, recorder) {\n console.info('start recording');\n if (state.recState.isRecording === false) {\n recorder.start();\n state.recState.isRecording = true;\n }\n },\n /**\n * Set recording state to false\n */\n stopRecording(state, recorder) {\n if (state.recState.isRecording === true) {\n state.recState.isRecording = false;\n if (recorder.isRecording) {\n recorder.stop();\n }\n }\n },\n /**\n * Increase consecutive silent recordings count\n * This is used to bail out from the conversation\n * when too many recordings are silent\n */\n increaseSilentRecordingCount(state) {\n state.recState.silentRecordingCount += 1;\n },\n /**\n * Reset the number of consecutive silent recordings\n */\n resetSilentRecordingCount(state) {\n state.recState.silentRecordingCount = 0;\n },\n /**\n * Set to true if audio recording should be enabled\n */\n setIsRecorderEnabled(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsRecorderEnabled status not boolean', bool);\n return;\n }\n state.recState.isRecorderEnabled = bool;\n },\n /**\n * Set to true if audio recording is supported\n */\n setIsRecorderSupported(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsRecorderSupported status not boolean', bool);\n return;\n }\n state.recState.isRecorderSupported = bool;\n },\n\n /***********************************************************************\n *\n * Bot Audio Mutations\n *\n **********************************************************************/\n\n /**\n * set to true while audio from Lex is playing\n */\n setIsBotSpeaking(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsBotSpeaking status not boolean', bool);\n return;\n }\n state.botAudio.isSpeaking = bool;\n },\n /**\n * Set to true when the Lex audio is ready to autoplay\n * after it has already played audio on user interaction (click)\n */\n setAudioAutoPlay(state, { audio, status }) {\n if (typeof status !== 'boolean') {\n console.error('setAudioAutoPlay status not boolean', status);\n return;\n }\n state.botAudio.autoPlay = status;\n audio.autoplay = status;\n },\n /**\n * set to true if bot playback can be interrupted\n */\n setCanInterruptBotPlayback(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setCanInterruptBotPlayback status not boolean', bool);\n return;\n }\n state.botAudio.canInterrupt = bool;\n },\n /**\n * set to true if bot playback is being interrupted\n */\n setIsBotPlaybackInterrupting(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsBotPlaybackInterrupting status not boolean', bool);\n return;\n }\n state.botAudio.isInterrupting = bool;\n },\n /**\n * used to set the setInterval Id for bot playback interruption\n */\n setBotPlaybackInterruptIntervalId(state, id) {\n if (typeof id !== 'number') {\n console.error('setIsBotPlaybackInterruptIntervalId id is not a number', id);\n return;\n }\n state.botAudio.interruptIntervalId = id;\n },\n\n /***********************************************************************\n *\n * Lex and Polly Mutations\n *\n **********************************************************************/\n\n /**\n * Updates Lex State from Lex responses\n */\n updateLexState(state, lexState) {\n state.lex = { ...state.lex, ...lexState };\n },\n /**\n * Sets the Lex session attributes\n */\n setLexSessionAttributes(state, sessionAttributes) {\n if (typeof sessionAttributes !== 'object') {\n console.error('sessionAttributes is not an object', sessionAttributes);\n return;\n }\n state.lex.sessionAttributes = sessionAttributes;\n },\n /**\n * set to true while calling lexPost{Text,Content}\n * to mark as processing\n */\n setIsLexProcessing(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsLexProcessing status not boolean', bool);\n return;\n }\n state.lex.isProcessing = bool;\n },\n /**\n * set to true if lex is being interrupted while speaking\n */\n setIsLexInterrupting(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsLexInterrupting status not boolean', bool);\n return;\n }\n state.lex.isInterrupting = bool;\n },\n /**\n * Set the supported content types to be used with Lex/Polly\n */\n setAudioContentType(state, type) {\n switch (type) {\n case 'mp3':\n case 'mpg':\n case 'mpeg':\n state.polly.outputFormat = 'mp3';\n state.lex.acceptFormat = 'audio/mpeg';\n break;\n case 'ogg':\n case 'ogg_vorbis':\n case 'x-cbr-opus-with-preamble':\n default:\n state.polly.outputFormat = 'ogg_vorbis';\n state.lex.acceptFormat = 'audio/ogg';\n break;\n }\n },\n /**\n * Set the Polly voice to be used by the client\n */\n setPollyVoiceId(state, voiceId) {\n if (typeof voiceId !== 'string') {\n console.error('polly voiceId is not a string', voiceId);\n return;\n }\n state.polly.voiceId = voiceId;\n },\n\n /***********************************************************************\n *\n * UI and General Mutations\n *\n **********************************************************************/\n\n /**\n * Merges the general config of the web ui\n * with a dynamic config param and merges it with\n * the existing config (e.g. initialized from ../config)\n */\n mergeConfig(state, config) {\n if (typeof config !== 'object') {\n console.error('config is not an object', config);\n return;\n }\n\n // security: do not accept dynamic parentOrigin\n const parentOrigin = (\n state.config && state.config.ui &&\n state.config.ui.parentOrigin\n ) ?\n state.config.ui.parentOrigin :\n config.ui.parentOrigin || window.location.origin;\n const configFiltered = {\n ...config,\n ...{ ui: { ...config.ui, parentOrigin } },\n };\n if (state.config && state.config.ui && state.config.ui.parentOrigin &&\n config.ui && config.ui.parentOrigin &&\n config.ui.parentOrigin !== state.config.ui.parentOrigin\n ) {\n console.warn('ignoring parentOrigin in config: ', config.ui.parentOrigin);\n }\n state.config = mergeConfig(state.config, configFiltered);\n },\n /**\n * Set to true if running embedded in an iframe\n */\n setIsRunningEmbedded(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsRunningEmbedded status not boolean', bool);\n return;\n }\n state.isRunningEmbedded = bool;\n },\n /**\n * used to track the expand/minimize status of the window when\n * running embedded in an iframe\n */\n toggleIsUiMinimized(state) {\n state.isUiMinimized = !state.isUiMinimized;\n },\n /**\n * Push new message into messages array\n */\n pushMessage(state, message) {\n state.messages.push({\n id: state.messages.length,\n date: new Date(),\n ...message,\n });\n },\n /**\n * Set the AWS credentials provider\n */\n setAwsCredsProvider(state, provider) {\n state.awsCreds.provider = provider;\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/mutations.js","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/**\n * Asynchronous store actions\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* eslint spaced-comment: [\"error\", \"always\", { \"exceptions\": [\"*\"] }] */\n\nimport LexAudioRecorder from '@/lib/lex/recorder';\nimport initRecorderHandlers from '@/store/recorder-handlers';\nimport silentOgg from '@/assets/silent.ogg';\nimport silentMp3 from '@/assets/silent.mp3';\n\nimport LexClient from '@/lib/lex/client';\n\n// non-state variables that may be mutated outside of store\n// set via initializers at run time\nlet awsCredentials;\nlet pollyClient;\nlet lexClient;\nlet audio;\nlet recorder;\n\nexport default {\n\n /***********************************************************************\n *\n * Initialization Actions\n *\n **********************************************************************/\n\n initCredentials(context, credentials) {\n switch (context.state.awsCreds.provider) {\n case 'cognito':\n awsCredentials = credentials;\n return context.dispatch('getCredentials');\n case 'parentWindow':\n return context.dispatch('getCredentials');\n default:\n return Promise.reject(new Error('unknown credential provider'));\n }\n },\n getConfigFromParent(context) {\n if (!context.state.isRunningEmbedded) {\n return Promise.resolve({});\n }\n\n return context.dispatch(\n 'sendMessageToParentWindow',\n { event: 'initIframeConfig' },\n )\n .then((configResponse) => {\n if (configResponse.event === 'resolve' &&\n configResponse.type === 'initIframeConfig') {\n return Promise.resolve(configResponse.data);\n }\n return Promise.reject(new Error('invalid config event from parent'));\n });\n },\n initConfig(context, configObj) {\n context.commit('mergeConfig', configObj);\n },\n initMessageList(context) {\n context.commit('pushMessage', {\n type: 'bot',\n text: context.state.config.lex.initialText,\n });\n },\n initLexClient(context, lexRuntimeClient) {\n lexClient = new LexClient({\n botName: context.state.config.lex.botName,\n botAlias: context.state.config.lex.botAlias,\n lexRuntimeClient,\n });\n\n context.commit(\n 'setLexSessionAttributes',\n context.state.config.lex.sessionAttributes,\n );\n return context.dispatch('getCredentials')\n .then(() => lexClient.initCredentials(awsCredentials));\n },\n initPollyClient(context, client) {\n if (!context.state.recState.isRecorderEnabled) {\n return Promise.resolve();\n }\n pollyClient = client;\n context.commit('setPollyVoiceId', context.state.config.polly.voiceId);\n return context.dispatch('getCredentials')\n .then((creds) => {\n pollyClient.config.credentials = creds;\n });\n },\n initRecorder(context) {\n if (!context.state.config.recorder.enable) {\n context.commit('setIsRecorderEnabled', false);\n return Promise.resolve();\n }\n recorder = new LexAudioRecorder(context.state.config.recorder);\n\n return recorder.init()\n .then(() => recorder.initOptions(context.state.config.recorder))\n .then(() => initRecorderHandlers(context, recorder))\n .then(() => context.commit('setIsRecorderSupported', true))\n .then(() => context.commit('setIsMicMuted', recorder.isMicMuted))\n .catch((error) => {\n if (['PermissionDeniedError', 'NotAllowedError'].indexOf(error.name)\n >= 0) {\n console.warn('get user media permission denied');\n context.dispatch(\n 'pushErrorMessage',\n 'It seems like the microphone access has been denied. ' +\n 'If you want to use voice, please allow mic usage in your browser.',\n );\n } else {\n console.error('error while initRecorder', error);\n }\n });\n },\n initBotAudio(context, audioElement) {\n if (!context.state.recState.isRecorderEnabled ||\n !context.state.config.recorder.enable\n ) {\n return Promise.resolve();\n }\n if (!audioElement) {\n return Promise.reject(new Error('invalid audio element'));\n }\n audio = audioElement;\n\n let silentSound;\n\n // Ogg is the preferred format as it seems to be generally smaller.\n // Detect if ogg is supported (MS Edge doesn't).\n // Can't default to mp3 as it is not supported by some Android browsers\n if (audio.canPlayType('audio/ogg') !== '') {\n context.commit('setAudioContentType', 'ogg');\n silentSound = silentOgg;\n } else if (audio.canPlayType('audio/mp3') !== '') {\n context.commit('setAudioContentType', 'mp3');\n silentSound = silentMp3;\n } else {\n console.error('init audio could not find supportted audio type');\n console.warn(\n 'init audio can play mp3 [%s]',\n audio.canPlayType('audio/mp3'),\n );\n console.warn(\n 'init audio can play ogg [%s]',\n audio.canPlayType('audio/ogg'),\n );\n }\n\n console.info('recorder content types: %s', recorder.mimeType);\n\n audio.preload = 'auto';\n // Load a silent sound as the initial audio. This is used to workaround\n // the requirement of mobile browsers that would only play a\n // sound in direct response to a user action (e.g. click).\n // This audio should be explicitly played as a response to a click\n // in the UI\n audio.src = silentSound;\n // autoplay will be set as a response to a clik\n audio.autoplay = false;\n\n return Promise.resolve();\n },\n reInitBot(context) {\n return Promise.resolve()\n .then(() => (\n (context.state.config.ui.pushInitialTextOnRestart) ?\n context.dispatch('pushMessage', {\n text: context.state.config.lex.initialText,\n type: 'bot',\n }) :\n Promise.resolve()\n ))\n .then(() => (\n (context.state.config.lex.reInitSessionAttributesOnRestart) ?\n context.commit(\n 'setLexSessionAttributes',\n context.state.config.lex.sessionAttributes,\n ) :\n Promise.resolve()\n ));\n },\n\n /***********************************************************************\n *\n * Audio Actions\n *\n **********************************************************************/\n\n getAudioUrl(context, blob) {\n let url;\n\n try {\n url = URL.createObjectURL(blob);\n } catch (err) {\n console.error('getAudioUrl createObjectURL error', err);\n const errorMessage = 'There was an error processing the audio ' +\n `response: (${err})`;\n const error = new Error(errorMessage);\n return Promise.reject(error);\n }\n\n return Promise.resolve(url);\n },\n setAudioAutoPlay(context) {\n if (audio.autoplay) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n audio.play();\n // eslint-disable-next-line no-param-reassign\n audio.onended = () => {\n context.commit('setAudioAutoPlay', { audio, status: true });\n resolve();\n };\n // eslint-disable-next-line no-param-reassign\n audio.onerror = (err) => {\n context.commit('setAudioAutoPlay', { audio, status: false });\n reject(new Error(`setting audio autoplay failed: ${err}`));\n };\n });\n },\n playAudio(context, url) {\n return new Promise((resolve) => {\n audio.onloadedmetadata = () => {\n context.commit('setIsBotSpeaking', true);\n context.dispatch('playAudioHandler')\n .then(() => resolve());\n };\n audio.src = url;\n });\n },\n playAudioHandler(context) {\n return new Promise((resolve, reject) => {\n const { enablePlaybackInterrupt } = context.state.config.lex;\n\n const clearPlayback = () => {\n context.commit('setIsBotSpeaking', false);\n const intervalId = context.state.botAudio.interruptIntervalId;\n if (intervalId && enablePlaybackInterrupt) {\n clearInterval(intervalId);\n context.commit('setBotPlaybackInterruptIntervalId', 0);\n context.commit('setIsLexInterrupting', false);\n context.commit('setCanInterruptBotPlayback', false);\n context.commit('setIsBotPlaybackInterrupting', false);\n }\n };\n\n audio.onerror = (error) => {\n clearPlayback();\n reject(new Error(`There was an error playing the response (${error})`));\n };\n audio.onended = () => {\n clearPlayback();\n resolve();\n };\n audio.onpause = audio.onended;\n\n if (enablePlaybackInterrupt) {\n context.dispatch('playAudioInterruptHandler');\n }\n });\n },\n playAudioInterruptHandler(context) {\n const { isSpeaking } = context.state.botAudio;\n const {\n enablePlaybackInterrupt,\n playbackInterruptMinDuration,\n playbackInterruptVolumeThreshold,\n playbackInterruptLevelThreshold,\n playbackInterruptNoiseThreshold,\n } = context.state.config.lex;\n const intervalTimeInMs = 200;\n\n if (!enablePlaybackInterrupt &&\n !isSpeaking &&\n context.state.lex.isInterrupting &&\n audio.duration < playbackInterruptMinDuration\n ) {\n return;\n }\n\n const intervalId = setInterval(() => {\n const { duration } = audio;\n const end = audio.played.end(0);\n const { canInterrupt } = context.state.botAudio;\n\n if (!canInterrupt &&\n // allow to be interrupt free in the beginning\n end > playbackInterruptMinDuration &&\n // don't interrupt towards the end\n (duration - end) > 0.5 &&\n // only interrupt if the volume seems to be low noise\n recorder.volume.max < playbackInterruptNoiseThreshold\n ) {\n context.commit('setCanInterruptBotPlayback', true);\n } else if (canInterrupt && (duration - end) < 0.5) {\n context.commit('setCanInterruptBotPlayback', false);\n }\n\n if (canInterrupt &&\n recorder.volume.max > playbackInterruptVolumeThreshold &&\n recorder.volume.slow > playbackInterruptLevelThreshold\n ) {\n clearInterval(intervalId);\n context.commit('setIsBotPlaybackInterrupting', true);\n setTimeout(() => {\n audio.pause();\n }, 500);\n }\n }, intervalTimeInMs);\n\n context.commit('setBotPlaybackInterruptIntervalId', intervalId);\n },\n getAudioProperties() {\n return (audio) ?\n {\n currentTime: audio.currentTime,\n duration: audio.duration,\n end: (audio.played.length >= 1) ?\n audio.played.end(0) : audio.duration,\n ended: audio.ended,\n paused: audio.paused,\n } :\n {};\n },\n\n /***********************************************************************\n *\n * Recorder Actions\n *\n **********************************************************************/\n\n startConversation(context) {\n context.commit('setIsConversationGoing', true);\n return context.dispatch('startRecording');\n },\n stopConversation(context) {\n context.commit('setIsConversationGoing', false);\n },\n startRecording(context) {\n // don't record if muted\n if (context.state.recState.isMicMuted === true) {\n console.warn('recording while muted');\n context.dispatch('stopConversation');\n return Promise.reject(new Error('The microphone seems to be muted.'));\n }\n\n context.commit('startRecording', recorder);\n return Promise.resolve();\n },\n stopRecording(context) {\n context.commit('stopRecording', recorder);\n },\n getRecorderVolume(context) {\n if (!context.state.recState.isRecorderEnabled) {\n return Promise.resolve();\n }\n return recorder.volume;\n },\n\n /***********************************************************************\n *\n * Lex and Polly Actions\n *\n **********************************************************************/\n\n pollyGetBlob(context, text, format = 'text') {\n const synthReq = pollyClient.synthesizeSpeech({\n Text: text,\n VoiceId: context.state.polly.voiceId,\n OutputFormat: context.state.polly.outputFormat,\n TextType: format,\n });\n return context.dispatch('getCredentials')\n .then(() => synthReq.promise())\n .then((data) => {\n const blob = new Blob([data.AudioStream], { type: data.ContentType });\n return Promise.resolve(blob);\n });\n },\n pollySynthesizeSpeech(context, text, format = 'text') {\n return context.dispatch('pollyGetBlob', text, format)\n .then(blob => context.dispatch('getAudioUrl', blob))\n .then(audioUrl => context.dispatch('playAudio', audioUrl));\n },\n interruptSpeechConversation(context) {\n if (!context.state.recState.isConversationGoing &&\n !context.state.botAudio.isSpeaking\n ) {\n return Promise.resolve();\n }\n\n return new Promise((resolve, reject) => {\n context.dispatch('stopConversation')\n .then(() => context.dispatch('stopRecording'))\n .then(() => {\n if (context.state.botAudio.isSpeaking) {\n audio.pause();\n }\n })\n .then(() => {\n let count = 0;\n const countMax = 20;\n const intervalTimeInMs = 250;\n context.commit('setIsLexInterrupting', true);\n const intervalId = setInterval(() => {\n if (!context.state.lex.isProcessing) {\n clearInterval(intervalId);\n context.commit('setIsLexInterrupting', false);\n resolve();\n }\n if (count > countMax) {\n clearInterval(intervalId);\n context.commit('setIsLexInterrupting', false);\n reject(new Error('interrupt interval exceeded'));\n }\n count += 1;\n }, intervalTimeInMs);\n });\n });\n },\n postTextMessage(context, message) {\n return context.dispatch('interruptSpeechConversation')\n .then(() => context.dispatch('pushMessage', message))\n .then(() => context.dispatch('lexPostText', message.text))\n .then(response => context.dispatch(\n 'pushMessage',\n {\n text: response.message,\n type: 'bot',\n dialogState: context.state.lex.dialogState,\n responseCard: context.state.lex.responseCard,\n alts: JSON.parse(response.sessionAttributes.appContext || '{}').altMessages,\n },\n ))\n .then(() => {\n if (context.state.lex.dialogState === 'Fulfilled') {\n context.dispatch('reInitBot');\n }\n })\n .catch((error) => {\n const errorMessage = (context.state.config.ui.showErrorDetails) ?\n ` ${error}` : '';\n console.error('error in postTextMessage', error);\n context.dispatch(\n 'pushErrorMessage',\n 'Sorry, I was unable to process your message. Try again later.' +\n `${errorMessage}`,\n );\n });\n },\n lexPostText(context, text) {\n context.commit('setIsLexProcessing', true);\n const session = context.state.lex.sessionAttributes;\n delete session.appContext;\n return context.dispatch('getCredentials')\n .then(() => lexClient.postText(text, session))\n .then((data) => {\n context.commit('setIsLexProcessing', false);\n return context.dispatch('updateLexState', data)\n .then(() => Promise.resolve(data));\n })\n .catch((error) => {\n context.commit('setIsLexProcessing', false);\n throw error;\n });\n },\n lexPostContent(context, audioBlob, offset = 0) {\n context.commit('setIsLexProcessing', true);\n const session = context.state.lex.sessionAttributes;\n delete session.appContext;\n console.info('audio blob size:', audioBlob.size);\n let timeStart;\n\n return context.dispatch('getCredentials')\n .then(() => {\n timeStart = performance.now();\n return lexClient.postContent(\n audioBlob,\n session,\n context.state.lex.acceptFormat,\n offset,\n );\n })\n .then((lexResponse) => {\n const timeEnd = performance.now();\n console.info(\n 'lex postContent processing time:',\n ((timeEnd - timeStart) / 1000).toFixed(2),\n );\n context.commit('setIsLexProcessing', false);\n return context.dispatch('updateLexState', lexResponse)\n .then(() => (\n context.dispatch('processLexContentResponse', lexResponse)\n ))\n .then(blob => Promise.resolve(blob));\n })\n .catch((error) => {\n context.commit('setIsLexProcessing', false);\n throw error;\n });\n },\n processLexContentResponse(context, lexData) {\n const { audioStream, contentType, dialogState } = lexData;\n\n return Promise.resolve()\n .then(() => {\n if (!audioStream || !audioStream.length) {\n const text = (dialogState === 'ReadyForFulfillment') ?\n 'All done' :\n 'There was an error';\n return context.dispatch('pollyGetBlob', text);\n }\n\n return Promise.resolve(new Blob([audioStream], { type: contentType }));\n });\n },\n updateLexState(context, lexState) {\n const lexStateDefault = {\n dialogState: '',\n inputTranscript: '',\n intentName: '',\n message: '',\n responseCard: null,\n sessionAttributes: {},\n slotToElicit: '',\n slots: {},\n };\n // simulate response card in sessionAttributes\n // used mainly for postContent which doesn't support response cards\n if ('sessionAttributes' in lexState &&\n 'appContext' in lexState.sessionAttributes\n ) {\n try {\n const appContext = JSON.parse(lexState.sessionAttributes.appContext);\n if ('responseCard' in appContext) {\n lexStateDefault.responseCard =\n appContext.responseCard;\n }\n } catch (e) {\n const error =\n new Error(`error parsing appContext in sessionAttributes: ${e}`);\n return Promise.reject(error);\n }\n }\n context.commit('updateLexState', { ...lexStateDefault, ...lexState });\n if (context.state.isRunningEmbedded) {\n context.dispatch(\n 'sendMessageToParentWindow',\n { event: 'updateLexState', state: context.state.lex },\n );\n }\n return Promise.resolve();\n },\n\n /***********************************************************************\n *\n * Message List Actions\n *\n **********************************************************************/\n\n pushMessage(context, message) {\n context.commit('pushMessage', message);\n },\n pushErrorMessage(context, text, dialogState = 'Failed') {\n context.commit('pushMessage', {\n type: 'bot',\n text,\n dialogState,\n });\n },\n\n /***********************************************************************\n *\n * Credentials Actions\n *\n **********************************************************************/\n\n getCredentialsFromParent(context) {\n const expireTime = (awsCredentials && awsCredentials.expireTime) ?\n awsCredentials.expireTime : 0;\n const credsExpirationDate = new Date(expireTime);\n const now = Date.now();\n if (credsExpirationDate > now) {\n return Promise.resolve(awsCredentials);\n }\n return context.dispatch('sendMessageToParentWindow', { event: 'getCredentials' })\n .then((credsResponse) => {\n if (credsResponse.event === 'resolve' &&\n credsResponse.type === 'getCredentials') {\n return Promise.resolve(credsResponse.data);\n }\n const error = new Error('invalid credential event from parent');\n return Promise.reject(error);\n })\n .then((creds) => {\n const { AccessKeyId, SecretKey, SessionToken } = creds.data.Credentials;\n const { IdentityId } = creds.data;\n // recreate as a static credential\n awsCredentials = {\n accessKeyId: AccessKeyId,\n secretAccessKey: SecretKey,\n sessionToken: SessionToken,\n identityId: IdentityId,\n expired: false,\n getPromise() { return Promise.resolve(awsCredentials); },\n };\n\n return awsCredentials;\n });\n },\n getCredentials(context) {\n if (context.state.awsCreds.provider === 'parentWindow') {\n return context.dispatch('getCredentialsFromParent');\n }\n return awsCredentials.getPromise()\n .then(() => awsCredentials);\n },\n\n /***********************************************************************\n *\n * UI and Parent Communication Actions\n *\n **********************************************************************/\n\n toggleIsUiMinimized(context) {\n context.commit('toggleIsUiMinimized');\n return context.dispatch(\n 'sendMessageToParentWindow',\n { event: 'toggleMinimizeUi' },\n );\n },\n sendMessageToParentWindow(context, message) {\n if (!context.state.isRunningEmbedded) {\n const error = 'sendMessage called when not running embedded';\n console.warn(error);\n return Promise.reject(error);\n }\n\n return new Promise((resolve, reject) => {\n const messageChannel = new MessageChannel();\n messageChannel.port1.onmessage = (evt) => {\n messageChannel.port1.close();\n messageChannel.port2.close();\n if (evt.data.event === 'resolve') {\n resolve(evt.data);\n } else {\n const errorMessage =\n `error in sendMessageToParentWindow: ${evt.data.error}`;\n reject(new Error(errorMessage));\n }\n };\n window.parent.postMessage(\n message,\n context.state.config.ui.parentOrigin,\n [messageChannel.port2],\n );\n });\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/actions.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* global AudioContext CustomEvent document Event navigator window */\n\n// wav encoder worker - uses webpack worker loader\nimport WavWorker from './wav-worker';\n\n/**\n * Lex Recorder Module\n * Based on Recorderjs. It sort of mimics the MediaRecorder API.\n * @see {@link https://github.com/mattdiamond/Recorderjs}\n * @see {@https://github.com/chris-rudmin/Recorderjs}\n * @see {@https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder}\n */\n\n/**\n * Class for Lex audio recording management.\n *\n * This class is used for microphone initialization and recording\n * management. It encodes the mic input into wav format.\n * It also monitors the audio input stream (e.g keeping track of volume)\n * filtered around human voice speech frequencies to look for silence\n */\nexport default class {\n /* eslint no-underscore-dangle: [\"error\", { \"allowAfterThis\": true }] */\n\n /**\n * Constructs the recorder object\n *\n * @param {object} - options object\n *\n * @param {string} options.mimeType - Mime type to use on recording.\n * Only 'audio/wav' is supported for now. Default: 'aduio/wav'.\n *\n * @param {boolean} options.autoStopRecording - Controls if the recording\n * should automatically stop on silence detection. Default: true.\n *\n * @param {number} options.recordingTimeMax - Maximum recording time in\n * seconds. Recording will stop after going for this long. Default: 8.\n *\n * @param {number} options.recordingTimeMin - Minimum recording time in\n * seconds. Used before evaluating if the line is quiet to allow initial\n * pauses before speech. Default: 2.\n *\n * @param {boolean} options.recordingTimeMinAutoIncrease - Controls if the\n * recordingTimeMin should be automatically increased (exponentially)\n * based on the number of consecutive silent recordings.\n * Default: true.\n *\n * @param {number} options.quietThreshold - Threshold of mic input level\n * to consider quiet. Used to determine pauses in input this is measured\n * using the \"slow\" mic volume. Default: 0.001.\n *\n * @param {number} options.quietTimeMin - Minimum mic quiet time (normally in\n * fractions of a second) before automatically stopping the recording when\n * autoStopRecording is true. In reality it takes a bit more time than this\n * value given that the slow volume value is a decay. Reasonable times seem\n * to be between 0.2 and 0.5. Default: 0.4.\n *\n * @param {number} options.volumeThreshold - Threshold of mic db level\n * to consider quiet. Used to determine pauses in input this is measured\n * using the \"max\" mic volume. Smaller values make the recorder auto stop\n * faster. Default: -75\n *\n * @param {bool} options.useBandPass - Controls if a band pass filter is used\n * for the microphone input. If true, the input is passed through a second\n * order bandpass filter using AudioContext.createBiquadFilter:\n * https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBiquadFilter\n * The bandpass filter helps to reduce noise, improve silence detection and\n * produce smaller audio blobs. However, it may produce audio with lower\n * fidelity. Default: true\n *\n * @param {number} options.bandPassFrequency - Frequency of bandpass filter in\n * Hz. Mic input is passed through a second order bandpass filter to remove\n * noise and improve quality/speech silence detection. Reasonable values\n * should be around 3000 - 5000. Default: 4000.\n *\n * @param {number} options.bandPassQ - Q factor of bandpass filter.\n * The higher the vaue, the narrower the pass band and steeper roll off.\n * Reasonable values should be between 0.5 and 1.5. Default: 0.707\n *\n * @param {number} options.bufferLength - Length of buffer used in audio\n * processor. Should be in powers of two between 512 to 8196. Passed to\n * script processor and audio encoder. Lower values have lower latency.\n * Default: 2048.\n *\n * @param {number} options.numChannels- Number of channels to record.\n * Default: 1 (mono).\n *\n * @param {number} options.requestEchoCancellation - Request to use echo\n * cancellation in the getUserMedia call:\n * https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/echoCancellation\n * Default: true.\n *\n * @param {bool} options.useAutoMuteDetect - Controls if the recorder utilizes\n * automatic mute detection.\n * Default: true.\n *\n * @param {number} options.muteThreshold - Threshold level when mute values\n * are detected when useAutoMuteDetect is enabled. The higher the faster\n * it reports the mic to be in a muted state but may cause it to flap\n * between mute/unmute. The lower the values the slower it is to report\n * the mic as mute. Too low of a value may cause it to never report the\n * line as muted. Works in conjuction with options.quietTreshold.\n * Reasonable values seem to be between: 1e-5 and 1e-8. Default: 1e-7.\n *\n * @param {bool} options.encoderUseTrim - Controls if the encoder should\n * attempt to trim quiet samples from the beginning and end of the buffer\n * Default: true.\n *\n * @param {number} options.encoderQuietTrimThreshold - Threshold when quiet\n * levels are detected. Only applicable when encoderUseTrim is enabled. The\n * encoder will trim samples below this value at the beginnig and end of the\n * buffer. Lower value trim less silence resulting in larger WAV files.\n * Reasonable values seem to be between 0.005 and 0.0005. Default: 0.0008.\n *\n * @param {number} options.encoderQuietTrimSlackBack - How many samples to\n * add back to the encoded buffer before/after the\n * encoderQuietTrimThreshold. Higher values trim less silence resulting in\n * larger WAV files.\n * Reasonable values seem to be between 3500 and 5000. Default: 4000.\n */\n constructor(options = {}) {\n this.initOptions(options);\n\n // event handler used for events similar to MediaRecorder API (e.g. onmute)\n this._eventTarget = document.createDocumentFragment();\n\n // encoder worker\n this._encoderWorker = new WavWorker();\n\n // worker uses this event listener to signal back\n // when wav has finished encoding\n this._encoderWorker.addEventListener(\n 'message',\n evt => this._exportWav(evt.data),\n );\n }\n\n /**\n * Initialize general recorder options\n *\n * @param {object} options - object with various options controlling the\n * recorder behavior. See the constructor for details.\n */\n initOptions(options = {}) {\n // TODO break this into functions, avoid side-effects, break into this.options.*\n if (options.preset) {\n Object.assign(options, this._getPresetOptions(options.preset));\n }\n\n this.mimeType = options.mimeType || 'audio/wav';\n\n this.recordingTimeMax = options.recordingTimeMax || 8;\n this.recordingTimeMin = options.recordingTimeMin || 2;\n this.recordingTimeMinAutoIncrease =\n (typeof options.recordingTimeMinAutoIncrease !== 'undefined') ?\n !!options.recordingTimeMinAutoIncrease :\n true;\n\n // speech detection configuration\n this.autoStopRecording =\n (typeof options.autoStopRecording !== 'undefined') ?\n !!options.autoStopRecording :\n true;\n this.quietThreshold = options.quietThreshold || 0.001;\n this.quietTimeMin = options.quietTimeMin || 0.4;\n this.volumeThreshold = options.volumeThreshold || -75;\n\n // band pass configuration\n this.useBandPass =\n (typeof options.useBandPass !== 'undefined') ?\n !!options.useBandPass :\n true;\n // https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode\n this.bandPassFrequency = options.bandPassFrequency || 4000;\n // Butterworth 0.707 [sqrt(1/2)] | Chebyshev < 1.414\n this.bandPassQ = options.bandPassQ || 0.707;\n\n // parameters passed to script processor and also used in encoder\n // https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor\n this.bufferLength = options.bufferLength || 2048;\n this.numChannels = options.numChannels || 1;\n\n this.requestEchoCancellation =\n (typeof options.requestEchoCancellation !== 'undefined') ?\n !!options.requestEchoCancellation :\n true;\n\n // automatic mute detection options\n this.useAutoMuteDetect =\n (typeof options.useAutoMuteDetect !== 'undefined') ?\n !!options.useAutoMuteDetect :\n true;\n this.muteThreshold = options.muteThreshold || 1e-7;\n\n // encoder options\n this.encoderUseTrim =\n (typeof options.encoderUseTrim !== 'undefined') ?\n !!options.encoderUseTrim :\n true;\n this.encoderQuietTrimThreshold =\n options.encoderQuietTrimThreshold || 0.0008;\n this.encoderQuietTrimSlackBack = options.encoderQuietTrimSlackBack || 4000;\n }\n\n _getPresetOptions(preset = 'low_latency') {\n this._presets = ['low_latency', 'speech_recognition'];\n\n if (this._presets.indexOf(preset) === -1) {\n console.error('invalid preset');\n return {};\n }\n\n const presets = {\n low_latency: {\n encoderUseTrim: true,\n useBandPass: true,\n },\n speech_recognition: {\n encoderUseTrim: false,\n useBandPass: false,\n useAutoMuteDetect: false,\n },\n };\n\n return presets[preset];\n }\n\n /**\n * General init. This function should be called to initialize the recorder.\n *\n * @param {object} options - Optional parameter to reinitialize the\n * recorder behavior. See the constructor for details.\n *\n * @return {Promise} - Returns a promise that resolves when the recorder is\n * ready.\n */\n init() {\n this._state = 'inactive';\n\n this._instant = 0.0;\n this._slow = 0.0;\n this._clip = 0.0;\n this._maxVolume = -Infinity;\n\n this._isMicQuiet = true;\n this._isMicMuted = false;\n\n this._isSilentRecording = true;\n this._silentRecordingConsecutiveCount = 0;\n\n // sets this._audioContext AudioContext object\n return this._initAudioContext()\n // inits AudioContext.createScriptProcessor object\n // used to process mic audio input volume\n // sets this._micVolumeProcessor\n .then(() => this._initMicVolumeProcessor())\n .then(() => this._initStream());\n }\n\n /**\n * Start recording\n */\n start() {\n if (this._state !== 'inactive' ||\n typeof this._stream === 'undefined') {\n console.warn('recorder start called out of state');\n return;\n }\n\n this._state = 'recording';\n\n this._recordingStartTime = this._audioContext.currentTime;\n this._eventTarget.dispatchEvent(new Event('start'));\n\n this._encoderWorker.postMessage({\n command: 'init',\n config: {\n sampleRate: this._audioContext.sampleRate,\n numChannels: this.numChannels,\n useTrim: this.encoderUseTrim,\n quietTrimThreshold: this.encoderQuietTrimThreshold,\n quietTrimSlackBack: this.encoderQuietTrimSlackBack,\n },\n });\n }\n\n /**\n * Stop recording\n */\n stop() {\n if (this._state !== 'recording') {\n console.warn('recorder stop called out of state');\n return;\n }\n\n if (this._recordingStartTime > this._quietStartTime) {\n this._isSilentRecording = true;\n this._silentRecordingConsecutiveCount += 1;\n this._eventTarget.dispatchEvent(new Event('silentrecording'));\n } else {\n this._isSilentRecording = false;\n this._silentRecordingConsecutiveCount = 0;\n this._eventTarget.dispatchEvent(new Event('unsilentrecording'));\n }\n\n this._state = 'inactive';\n this._recordingStartTime = 0;\n\n this._encoderWorker.postMessage({\n command: 'exportWav',\n type: 'audio/wav',\n });\n\n this._eventTarget.dispatchEvent(new Event('stop'));\n }\n\n _exportWav(evt) {\n const event = new CustomEvent('dataavailable', { detail: evt.data });\n this._eventTarget.dispatchEvent(event);\n this._encoderWorker.postMessage({ command: 'clear' });\n }\n\n _recordBuffers(inputBuffer) {\n if (this._state !== 'recording') {\n console.warn('recorder _recordBuffers called out of state');\n return;\n }\n const buffer = [];\n for (let i = 0; i < inputBuffer.numberOfChannels; i++) {\n buffer[i] = inputBuffer.getChannelData(i);\n }\n\n this._encoderWorker.postMessage({\n command: 'record',\n buffer,\n });\n }\n\n _setIsMicMuted() {\n if (!this.useAutoMuteDetect) {\n return;\n }\n // TODO incorporate _maxVolume\n if (this._instant >= this.muteThreshold) {\n if (this._isMicMuted) {\n this._isMicMuted = false;\n this._eventTarget.dispatchEvent(new Event('unmute'));\n }\n return;\n }\n\n if (!this._isMicMuted && (this._slow < this.muteThreshold)) {\n this._isMicMuted = true;\n this._eventTarget.dispatchEvent(new Event('mute'));\n console.info(\n 'mute - instant: %s - slow: %s - track muted: %s',\n this._instant, this._slow, this._tracks[0].muted,\n );\n\n if (this._state === 'recording') {\n this.stop();\n console.info('stopped recording on _setIsMicMuted');\n }\n }\n }\n\n _setIsMicQuiet() {\n const now = this._audioContext.currentTime;\n\n const isMicQuiet = (this._maxVolume < this.volumeThreshold ||\n this._slow < this.quietThreshold);\n\n // start record the time when the line goes quiet\n // fire event\n if (!this._isMicQuiet && isMicQuiet) {\n this._quietStartTime = this._audioContext.currentTime;\n this._eventTarget.dispatchEvent(new Event('quiet'));\n }\n // reset quiet timer when there's enough sound\n if (this._isMicQuiet && !isMicQuiet) {\n this._quietStartTime = 0;\n this._eventTarget.dispatchEvent(new Event('unquiet'));\n }\n this._isMicQuiet = isMicQuiet;\n\n // if autoincrease is enabled, exponentially increase the mimimun recording\n // time based on consecutive silent recordings\n const recordingTimeMin =\n (this.recordingTimeMinAutoIncrease) ?\n (this.recordingTimeMin - 1) +\n (this.recordingTimeMax **\n (1 - (1 / (this._silentRecordingConsecutiveCount + 1)))) :\n this.recordingTimeMin;\n\n // detect voice pause and stop recording\n if (this.autoStopRecording &&\n this._isMicQuiet && this._state === 'recording' &&\n // have I been recording longer than the minimum recording time?\n now - this._recordingStartTime > recordingTimeMin &&\n // has the slow sample value been below the quiet threshold longer than\n // the minimum allowed quiet time?\n now - this._quietStartTime > this.quietTimeMin\n ) {\n this.stop();\n }\n }\n\n /**\n * Initializes the AudioContext\n * Aassigs it to this._audioContext. Adds visibitily change event listener\n * to suspend the audio context when the browser tab is hidden.\n * @return {Promise} resolution of AudioContext\n */\n _initAudioContext() {\n window.AudioContext = window.AudioContext || window.webkitAudioContext;\n if (!window.AudioContext) {\n return Promise.reject(new Error('Web Audio API not supported.'));\n }\n this._audioContext = new AudioContext();\n document.addEventListener('visibilitychange', () => {\n console.info('visibility change triggered in recorder. hidden:', document.hidden);\n if (document.hidden) {\n this._audioContext.suspend();\n } else {\n this._audioContext.resume();\n }\n });\n return Promise.resolve();\n }\n\n /**\n * Private initializer of the audio buffer processor\n * It manages the volume variables and sends the buffers to the worker\n * when recording.\n * Some of this came from:\n * https://webrtc.github.io/samples/src/content/getusermedia/volume/js/soundmeter.js\n */\n _initMicVolumeProcessor() {\n /* eslint no-plusplus: [\"error\", { \"allowForLoopAfterthoughts\": true }] */\n // assumes a single channel - XXX does it need to handle 2 channels?\n const processor = this._audioContext.createScriptProcessor(\n this.bufferLength,\n this.numChannels,\n this.numChannels,\n );\n processor.onaudioprocess = (evt) => {\n if (this._state === 'recording') {\n // send buffers to worker\n this._recordBuffers(evt.inputBuffer);\n\n // stop recording if over the maximum time\n if ((this._audioContext.currentTime - this._recordingStartTime)\n > this.recordingTimeMax\n ) {\n console.warn('stopped recording due to maximum time');\n this.stop();\n }\n }\n\n // XXX assumes mono channel\n const input = evt.inputBuffer.getChannelData(0);\n let sum = 0.0;\n let clipCount = 0;\n for (let i = 0; i < input.length; ++i) {\n // square to calculate signal power\n sum += input[i] * input[i];\n if (Math.abs(input[i]) > 0.99) {\n clipCount += 1;\n }\n }\n this._instant = Math.sqrt(sum / input.length);\n this._slow = (0.95 * this._slow) + (0.05 * this._instant);\n this._clip = (input.length) ? clipCount / input.length : 0;\n\n this._setIsMicMuted();\n this._setIsMicQuiet();\n\n this._analyser.getFloatFrequencyData(this._analyserData);\n this._maxVolume = Math.max(...this._analyserData);\n };\n\n this._micVolumeProcessor = processor;\n return Promise.resolve();\n }\n\n /*\n * Private initializers\n */\n\n /**\n * Sets microphone using getUserMedia\n * @return {Promise} returns a promise that resolves when the audio input\n * has been connected\n */\n _initStream() {\n // TODO obtain with navigator.mediaDevices.getSupportedConstraints()\n const constraints = {\n audio: {\n optional: [{\n echoCancellation: this.requestEchoCancellation,\n }],\n },\n };\n\n return navigator.mediaDevices.getUserMedia(constraints)\n .then((stream) => {\n this._stream = stream;\n\n this._tracks = stream.getAudioTracks();\n console.info('using media stream track labeled: ', this._tracks[0].label);\n // assumes single channel\n this._tracks[0].onmute = this._setIsMicMuted;\n this._tracks[0].onunmute = this._setIsMicMuted;\n\n const source = this._audioContext.createMediaStreamSource(stream);\n const gainNode = this._audioContext.createGain();\n const analyser = this._audioContext.createAnalyser();\n\n if (this.useBandPass) {\n // bandpass filter around human voice\n // https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode\n const biquadFilter = this._audioContext.createBiquadFilter();\n biquadFilter.type = 'bandpass';\n\n biquadFilter.frequency.value = this.bandPassFrequency;\n biquadFilter.gain.Q = this.bandPassQ;\n\n source.connect(biquadFilter);\n biquadFilter.connect(gainNode);\n analyser.smoothingTimeConstant = 0.5;\n } else {\n source.connect(gainNode);\n analyser.smoothingTimeConstant = 0.9;\n }\n analyser.fftSize = this.bufferLength;\n analyser.minDecibels = -90;\n analyser.maxDecibels = -30;\n\n gainNode.connect(analyser);\n analyser.connect(this._micVolumeProcessor);\n this._analyserData = new Float32Array(analyser.frequencyBinCount);\n this._analyser = analyser;\n\n this._micVolumeProcessor.connect(this._audioContext.destination);\n\n this._eventTarget.dispatchEvent(new Event('streamReady'));\n });\n }\n\n /*\n * getters used to expose internal vars while avoiding issues when using with\n * a reactive store (e.g. vuex).\n */\n\n /**\n * Getter of recorder state. Based on MediaRecorder API.\n * @return {string} state of recorder (inactive | recording | paused)\n */\n get state() {\n return this._state;\n }\n\n /**\n * Getter of stream object. Based on MediaRecorder API.\n * @return {MediaStream} media stream object obtain from getUserMedia\n */\n get stream() {\n return this._stream;\n }\n\n get isMicQuiet() {\n return this._isMicQuiet;\n }\n\n get isMicMuted() {\n return this._isMicMuted;\n }\n\n get isSilentRecording() {\n return this._isSilentRecording;\n }\n\n get isRecording() {\n return (this._state === 'recording');\n }\n\n /**\n * Getter of mic volume levels.\n * instant: root mean square of levels in buffer\n * slow: time decaying level\n * clip: count of samples at the top of signals (high noise)\n */\n get volume() {\n return ({\n instant: this._instant,\n slow: this._slow,\n clip: this._clip,\n max: this._maxVolume,\n });\n }\n\n /*\n * Private initializer of event target\n * Set event handlers that mimic MediaRecorder events plus others\n */\n\n // TODO make setters replace the listener insted of adding\n set onstart(cb) {\n this._eventTarget.addEventListener('start', cb);\n }\n set onstop(cb) {\n this._eventTarget.addEventListener('stop', cb);\n }\n set ondataavailable(cb) {\n this._eventTarget.addEventListener('dataavailable', cb);\n }\n set onerror(cb) {\n this._eventTarget.addEventListener('error', cb);\n }\n set onstreamready(cb) {\n this._eventTarget.addEventListener('streamready', cb);\n }\n set onmute(cb) {\n this._eventTarget.addEventListener('mute', cb);\n }\n set onunmute(cb) {\n this._eventTarget.addEventListener('unmute', cb);\n }\n set onsilentrecording(cb) {\n this._eventTarget.addEventListener('silentrecording', cb);\n }\n set onunsilentrecording(cb) {\n this._eventTarget.addEventListener('unsilentrecording', cb);\n }\n set onquiet(cb) {\n this._eventTarget.addEventListener('quiet', cb);\n }\n set onunquiet(cb) {\n this._eventTarget.addEventListener('unquiet', cb);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/lex/recorder.js","\"use strict\";\n\nexports.__esModule = true;\n\nvar _from = require(\"../core-js/array/from\");\n\nvar _from2 = _interopRequireDefault(_from);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return (0, _from2.default)(arr);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/toConsumableArray.js\n// module id = 165\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/array/from.js\n// module id = 166\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/_core').Array.from;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/array/from.js\n// module id = 167\n// module chunks = 0","'use strict';\nvar ctx = require('./_ctx');\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar toLength = require('./_to-length');\nvar createProperty = require('./_create-property');\nvar getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.from.js\n// module id = 168\n// module chunks = 0","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_create-property.js\n// module id = 169\n// module chunks = 0","module.exports = function() {\n return require(\"!!/Users/jcalho/projects/aws-lex-web-ui/lex-web-ui/node_modules/worker-loader/dist/workers/InlineWorker.js\")(\"/******/ (function(modules) { // webpackBootstrap\\n/******/ \\t// The module cache\\n/******/ \\tvar installedModules = {};\\n/******/\\n/******/ \\t// The require function\\n/******/ \\tfunction __webpack_require__(moduleId) {\\n/******/\\n/******/ \\t\\t// Check if module is in cache\\n/******/ \\t\\tif(installedModules[moduleId]) {\\n/******/ \\t\\t\\treturn installedModules[moduleId].exports;\\n/******/ \\t\\t}\\n/******/ \\t\\t// Create a new module (and put it into the cache)\\n/******/ \\t\\tvar module = installedModules[moduleId] = {\\n/******/ \\t\\t\\ti: moduleId,\\n/******/ \\t\\t\\tl: false,\\n/******/ \\t\\t\\texports: {}\\n/******/ \\t\\t};\\n/******/\\n/******/ \\t\\t// Execute the module function\\n/******/ \\t\\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\\n/******/\\n/******/ \\t\\t// Flag the module as loaded\\n/******/ \\t\\tmodule.l = true;\\n/******/\\n/******/ \\t\\t// Return the exports of the module\\n/******/ \\t\\treturn module.exports;\\n/******/ \\t}\\n/******/\\n/******/\\n/******/ \\t// expose the modules object (__webpack_modules__)\\n/******/ \\t__webpack_require__.m = modules;\\n/******/\\n/******/ \\t// expose the module cache\\n/******/ \\t__webpack_require__.c = installedModules;\\n/******/\\n/******/ \\t// define getter function for harmony exports\\n/******/ \\t__webpack_require__.d = function(exports, name, getter) {\\n/******/ \\t\\tif(!__webpack_require__.o(exports, name)) {\\n/******/ \\t\\t\\tObject.defineProperty(exports, name, {\\n/******/ \\t\\t\\t\\tconfigurable: false,\\n/******/ \\t\\t\\t\\tenumerable: true,\\n/******/ \\t\\t\\t\\tget: getter\\n/******/ \\t\\t\\t});\\n/******/ \\t\\t}\\n/******/ \\t};\\n/******/\\n/******/ \\t// getDefaultExport function for compatibility with non-harmony modules\\n/******/ \\t__webpack_require__.n = function(module) {\\n/******/ \\t\\tvar getter = module && module.__esModule ?\\n/******/ \\t\\t\\tfunction getDefault() { return module['default']; } :\\n/******/ \\t\\t\\tfunction getModuleExports() { return module; };\\n/******/ \\t\\t__webpack_require__.d(getter, 'a', getter);\\n/******/ \\t\\treturn getter;\\n/******/ \\t};\\n/******/\\n/******/ \\t// Object.prototype.hasOwnProperty.call\\n/******/ \\t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\\n/******/\\n/******/ \\t// __webpack_public_path__\\n/******/ \\t__webpack_require__.p = \\\"/\\\";\\n/******/\\n/******/ \\t// Load entry module and return exports\\n/******/ \\treturn __webpack_require__(__webpack_require__.s = 0);\\n/******/ })\\n/************************************************************************/\\n/******/ ([\\n/* 0 */\\n/***/ (function(module, exports) {\\n\\n// based on https://github.com/mattdiamond/Recorderjs/blob/master/src/recorder.js\\n// with a few optimizations including downsampling and trimming quiet samples\\n\\n/* global Blob self */\\n/* eslint no-restricted-globals: off */\\n/* eslint prefer-arrow-callback: [\\\"error\\\", { \\\"allowNamedFunctions\\\": true }] */\\n/* eslint no-param-reassign: [\\\"error\\\", { \\\"props\\\": false }] */\\n/* eslint no-use-before-define: [\\\"error\\\", { \\\"functions\\\": false }] */\\n/* eslint no-plusplus: off */\\n/* eslint comma-dangle: [\\\"error\\\", {\\\"functions\\\": \\\"never\\\", \\\"objects\\\": \\\"always-multiline\\\"}] */\\n/* eslint-disable prefer-destructuring */\\nconst bitDepth = 16;\\nconst bytesPerSample = bitDepth / 8;\\nconst outSampleRate = 16000;\\nconst outNumChannels = 1;\\n\\nlet recLength = 0;\\nlet recBuffers = [];\\n\\nconst options = {\\n sampleRate: 44000,\\n numChannels: 1,\\n useDownsample: true,\\n // controls if the encoder will trim silent samples at begining and end of buffer\\n useTrim: true,\\n // trim samples below this value at the beginnig and end of the buffer\\n // lower the value trim less silence (larger file size)\\n // reasonable values seem to be between 0.005 and 0.0005\\n quietTrimThreshold: 0.0008,\\n // how many samples to add back to the buffer before/after the quiet threshold\\n // higher values result in less silence trimming (larger file size)\\n // reasonable values seem to be between 3500 and 5000\\n quietTrimSlackBack: 4000,\\n};\\n\\nself.onmessage = (evt) => {\\n switch (evt.data.command) {\\n case 'init':\\n init(evt.data.config);\\n break;\\n case 'record':\\n record(evt.data.buffer);\\n break;\\n case 'exportWav':\\n exportWAV(evt.data.type);\\n break;\\n case 'getBuffer':\\n getBuffer();\\n break;\\n case 'clear':\\n clear();\\n break;\\n case 'close':\\n self.close();\\n break;\\n default:\\n break;\\n }\\n};\\n\\nfunction init(config) {\\n Object.assign(options, config);\\n initBuffers();\\n}\\n\\nfunction record(inputBuffer) {\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n recBuffers[channel].push(inputBuffer[channel]);\\n }\\n recLength += inputBuffer[0].length;\\n}\\n\\nfunction exportWAV(type) {\\n const buffers = [];\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n buffers.push(mergeBuffers(recBuffers[channel], recLength));\\n }\\n let interleaved;\\n if (options.numChannels === 2 && outNumChannels === 2) {\\n interleaved = interleave(buffers[0], buffers[1]);\\n } else {\\n interleaved = buffers[0];\\n }\\n const downsampledBuffer = downsampleTrimBuffer(interleaved, outSampleRate);\\n const dataview = encodeWAV(downsampledBuffer);\\n const audioBlob = new Blob([dataview], { type });\\n\\n self.postMessage({\\n command: 'exportWAV',\\n data: audioBlob,\\n });\\n}\\n\\nfunction getBuffer() {\\n const buffers = [];\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n buffers.push(mergeBuffers(recBuffers[channel], recLength));\\n }\\n self.postMessage({ command: 'getBuffer', data: buffers });\\n}\\n\\nfunction clear() {\\n recLength = 0;\\n recBuffers = [];\\n initBuffers();\\n}\\n\\nfunction initBuffers() {\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n recBuffers[channel] = [];\\n }\\n}\\n\\nfunction mergeBuffers(recBuffer, length) {\\n const result = new Float32Array(length);\\n let offset = 0;\\n for (let i = 0; i < recBuffer.length; i++) {\\n result.set(recBuffer[i], offset);\\n offset += recBuffer[i].length;\\n }\\n return result;\\n}\\n\\nfunction interleave(inputL, inputR) {\\n const length = inputL.length + inputR.length;\\n const result = new Float32Array(length);\\n\\n let index = 0;\\n let inputIndex = 0;\\n\\n while (index < length) {\\n result[index++] = inputL[inputIndex];\\n result[index++] = inputR[inputIndex];\\n inputIndex++;\\n }\\n return result;\\n}\\n\\nfunction floatTo16BitPCM(output, offset, input) {\\n for (let i = 0, o = offset; i < input.length; i++, o += 2) {\\n const s = Math.max(-1, Math.min(1, input[i]));\\n output.setInt16(o, s < 0 ? s * 0x8000 : s * 0x7FFF, true);\\n }\\n}\\n\\n// Lex doesn't require proper wav header\\n// still inserting wav header for playing on client side\\nfunction addHeader(view, length) {\\n // RIFF identifier 'RIFF'\\n view.setUint32(0, 1380533830, false);\\n // file length minus RIFF identifier length and file description length\\n view.setUint32(4, 36 + length, true);\\n // RIFF type 'WAVE'\\n view.setUint32(8, 1463899717, false);\\n // format chunk identifier 'fmt '\\n view.setUint32(12, 1718449184, false);\\n // format chunk length\\n view.setUint32(16, 16, true);\\n // sample format (raw)\\n view.setUint16(20, 1, true);\\n // channel count\\n view.setUint16(22, outNumChannels, true);\\n // sample rate\\n view.setUint32(24, outSampleRate, true);\\n // byte rate (sample rate * block align)\\n view.setUint32(28, outSampleRate * bytesPerSample * outNumChannels, true);\\n // block align (channel count * bytes per sample)\\n view.setUint16(32, bytesPerSample * outNumChannels, true);\\n // bits per sample\\n view.setUint16(34, bitDepth, true);\\n // data chunk identifier 'data'\\n view.setUint32(36, 1684108385, false);\\n}\\n\\nfunction encodeWAV(samples) {\\n const buffer = new ArrayBuffer(44 + (samples.length * 2));\\n const view = new DataView(buffer);\\n\\n addHeader(view, samples.length);\\n floatTo16BitPCM(view, 44, samples);\\n\\n return view;\\n}\\n\\nfunction downsampleTrimBuffer(buffer, rate) {\\n if (rate === options.sampleRate) {\\n return buffer;\\n }\\n\\n const length = buffer.length;\\n const sampleRateRatio = options.sampleRate / rate;\\n const newLength = Math.round(length / sampleRateRatio);\\n\\n const result = new Float32Array(newLength);\\n let offsetResult = 0;\\n let offsetBuffer = 0;\\n let firstNonQuiet = 0;\\n let lastNonQuiet = length;\\n while (offsetResult < result.length) {\\n const nextOffsetBuffer = Math.round((offsetResult + 1) * sampleRateRatio);\\n let accum = 0;\\n let count = 0;\\n for (let i = offsetBuffer; (i < nextOffsetBuffer) && (i < length); i++) {\\n accum += buffer[i];\\n count++;\\n }\\n // mark first and last sample over the quiet threshold\\n if (accum > options.quietTrimThreshold) {\\n if (firstNonQuiet === 0) {\\n firstNonQuiet = offsetResult;\\n }\\n lastNonQuiet = offsetResult;\\n }\\n result[offsetResult] = accum / count;\\n offsetResult++;\\n offsetBuffer = nextOffsetBuffer;\\n }\\n\\n /*\\n console.info('encoder trim size reduction',\\n (Math.min(newLength, lastNonQuiet + options.quietTrimSlackBack) -\\n Math.max(0, firstNonQuiet - options.quietTrimSlackBack)) / result.length\\n );\\n */\\n return (options.useTrim) ?\\n // slice based on quiet threshold and put slack back into the buffer\\n result.slice(\\n Math.max(0, firstNonQuiet - options.quietTrimSlackBack),\\n Math.min(newLength, lastNonQuiet + options.quietTrimSlackBack)\\n ) :\\n result;\\n}\\n\\n\\n/***/ })\\n/******/ ]);\\n//# sourceMappingURL=wav-worker.js.map\", __webpack_public_path__ + \"bundle/wav-worker.js\");\n};\n\n\n// WEBPACK FOOTER //\n// ./src/lib/lex/wav-worker.js","'use strict';\n\n// http://stackoverflow.com/questions/10343913/how-to-create-a-web-worker-from-a-string\n\nvar URL = window.URL || window.webkitURL;\n\nmodule.exports = function (content, url) {\n try {\n try {\n var blob;\n\n try {\n // BlobBuilder = Deprecated, but widely implemented\n var BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;\n\n blob = new BlobBuilder();\n\n blob.append(content);\n\n blob = blob.getBlob();\n } catch (e) {\n // The proposed API\n blob = new Blob([content]);\n }\n\n return new Worker(URL.createObjectURL(blob));\n } catch (e) {\n return new Worker('data:application/javascript,' + encodeURIComponent(content));\n }\n } catch (e) {\n if (!url) {\n throw Error('Inline worker is not supported');\n }\n\n return new Worker(url);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/worker-loader/dist/workers/InlineWorker.js\n// module id = 171\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Vuex store recorder handlers\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\", \"time\", \"timeEnd\"] }] */\n/* eslint no-param-reassign: [\"error\", { \"props\": false }] */\n\nconst initRecorderHandlers = (context, recorder) => {\n /* global Blob */\n\n recorder.onstart = () => {\n console.info('recorder start event triggered');\n console.time('recording time');\n };\n recorder.onstop = () => {\n context.dispatch('stopRecording');\n console.timeEnd('recording time');\n console.time('recording processing time');\n console.info('recorder stop event triggered');\n };\n recorder.onsilentrecording = () => {\n console.info('recorder silent recording triggered');\n context.commit('increaseSilentRecordingCount');\n };\n recorder.onunsilentrecording = () => {\n if (context.state.recState.silentRecordingCount > 0) {\n context.commit('resetSilentRecordingCount');\n }\n };\n recorder.onerror = (e) => {\n console.error('recorder onerror event triggered', e);\n };\n recorder.onstreamready = () => {\n console.info('recorder stream ready event triggered');\n };\n recorder.onmute = () => {\n console.info('recorder mute event triggered');\n context.commit('setIsMicMuted', true);\n };\n recorder.onunmute = () => {\n console.info('recorder unmute event triggered');\n context.commit('setIsMicMuted', false);\n };\n recorder.onquiet = () => {\n console.info('recorder quiet event triggered');\n context.commit('setIsMicQuiet', true);\n };\n recorder.onunquiet = () => {\n console.info('recorder unquiet event triggered');\n context.commit('setIsMicQuiet', false);\n };\n\n // TODO need to change recorder event setter to support\n // replacing handlers instead of adding\n recorder.ondataavailable = (e) => {\n const { mimeType } = recorder;\n console.info('recorder data available event triggered');\n const audioBlob = new Blob([e.detail], { type: mimeType });\n // XXX not used for now since only encoding WAV format\n let offset = 0;\n // offset is only needed for opus encoded ogg files\n // extract the offset where the opus frames are found\n // leaving for future reference\n // https://tools.ietf.org/html/rfc7845\n // https://tools.ietf.org/html/rfc6716\n // https://www.xiph.org/ogg/doc/framing.html\n if (mimeType.startsWith('audio/ogg')) {\n offset = 125 + e.detail[125] + 1;\n }\n console.timeEnd('recording processing time');\n\n context.dispatch('lexPostContent', audioBlob, offset)\n .then((lexAudioBlob) => {\n if (context.state.recState.silentRecordingCount >=\n context.state.config.converser.silentConsecutiveRecordingMax\n ) {\n const errorMessage =\n 'Too many consecutive silent recordings: ' +\n `${context.state.recState.silentRecordingCount}.`;\n return Promise.reject(new Error(errorMessage));\n }\n return Promise.all([\n context.dispatch('getAudioUrl', audioBlob),\n context.dispatch('getAudioUrl', lexAudioBlob),\n ]);\n })\n .then((audioUrls) => {\n // handle being interrupted by text\n if (context.state.lex.dialogState !== 'Fulfilled' &&\n !context.state.recState.isConversationGoing\n ) {\n return Promise.resolve();\n }\n const [humanAudioUrl, lexAudioUrl] = audioUrls;\n context.dispatch('pushMessage', {\n type: 'human',\n audio: humanAudioUrl,\n text: context.state.lex.inputTranscript,\n });\n context.dispatch('pushMessage', {\n type: 'bot',\n audio: lexAudioUrl,\n text: context.state.lex.message,\n dialogState: context.state.lex.dialogState,\n responseCard: context.state.lex.responseCard,\n alts: JSON.parse(context.state.lex.sessionAttributes.appContext || '{}').altMessages,\n });\n return context.dispatch('playAudio', lexAudioUrl, {}, offset);\n })\n .then(() => {\n if (\n ['Fulfilled', 'ReadyForFulfillment', 'Failed']\n .indexOf(context.state.lex.dialogState) >= 0\n ) {\n return context.dispatch('stopConversation')\n .then(() => context.dispatch('reInitBot'));\n }\n\n if (context.state.recState.isConversationGoing) {\n return context.dispatch('startRecording');\n }\n return Promise.resolve();\n })\n .catch((error) => {\n const errorMessage = (context.state.config.ui.showErrorDetails) ?\n ` ${error}` : '';\n console.error('converser error:', error);\n context.dispatch('stopConversation');\n context.dispatch(\n 'pushErrorMessage',\n `Sorry, I had an error handling this conversation.${errorMessage}`,\n );\n context.commit('resetSilentRecordingCount');\n });\n };\n};\nexport default initRecorderHandlers;\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/recorder-handlers.js","module.exports = \"data:audio/ogg;base64,T2dnUwACAAAAAAAAAAAyzN3NAAAAAGFf2X8BM39GTEFDAQAAAWZMYUMAAAAiEgASAAAAAAAkFQrEQPAAAAAAAAAAAAAAAAAAAAAAAAAAAE9nZ1MAAAAAAAAAAAAAMszdzQEAAAD5LKCSATeEAAAzDQAAAExhdmY1NS40OC4xMDABAAAAGgAAAGVuY29kZXI9TGF2YzU1LjY5LjEwMCBmbGFjT2dnUwAEARIAAAAAAAAyzN3NAgAAAKWVljkCDAD/+GkIAAAdAAABICI=\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/silent.ogg\n// module id = 173\n// module chunks = 0","module.exports = \"data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/silent.mp3\n// module id = 174\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\nexport default class {\n constructor({\n botName,\n botAlias = '$LATEST',\n userId,\n lexRuntimeClient,\n }) {\n if (!botName || !lexRuntimeClient) {\n throw new Error('invalid lex client constructor arguments');\n }\n\n this.botName = botName;\n this.botAlias = botAlias;\n this.userId = userId ||\n 'lex-web-ui-' +\n `${Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1)}`;\n\n this.lexRuntimeClient = lexRuntimeClient;\n this.credentials = this.lexRuntimeClient.config.credentials;\n }\n\n initCredentials(credentials) {\n this.credentials = credentials;\n this.lexRuntimeClient.config.credentials = this.credentials;\n this.userId = (credentials.identityId) ?\n credentials.identityId :\n this.userId;\n }\n\n postText(inputText, sessionAttributes = {}) {\n const postTextReq = this.lexRuntimeClient.postText({\n botAlias: this.botAlias,\n botName: this.botName,\n userId: this.userId,\n inputText,\n sessionAttributes,\n });\n return this.credentials.getPromise()\n .then(creds => creds && this.initCredentials(creds))\n .then(() => postTextReq.promise());\n }\n\n postContent(\n blob,\n sessionAttributes = {},\n acceptFormat = 'audio/ogg',\n offset = 0,\n ) {\n const mediaType = blob.type;\n let contentType = mediaType;\n\n if (mediaType.startsWith('audio/wav')) {\n contentType = 'audio/x-l16; sample-rate=16000; channel-count=1';\n } else if (mediaType.startsWith('audio/ogg')) {\n contentType =\n 'audio/x-cbr-opus-with-preamble; bit-rate=32000;' +\n ` frame-size-milliseconds=20; preamble-size=${offset}`;\n } else {\n console.warn('unknown media type in lex client');\n }\n\n const postContentReq = this.lexRuntimeClient.postContent({\n accept: acceptFormat,\n botAlias: this.botAlias,\n botName: this.botName,\n userId: this.userId,\n contentType,\n inputStream: blob,\n sessionAttributes,\n });\n\n return this.credentials.getPromise()\n .then(creds => creds && this.initCredentials(creds))\n .then(() => postContentReq.promise());\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/lex/client.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap b506fe54fbd9f02baa3c","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///./node_modules/core-js/library/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_global.js","webpack:///./node_modules/core-js/library/modules/_export.js","webpack:///./node_modules/core-js/library/modules/_object-dp.js","webpack:///./node_modules/core-js/library/modules/_an-object.js","webpack:///./node_modules/vue-loader/lib/component-normalizer.js","webpack:///./node_modules/core-js/library/modules/_descriptors.js","webpack:///./node_modules/core-js/library/modules/_hide.js","webpack:///./node_modules/core-js/library/modules/_is-object.js","webpack:///./node_modules/core-js/library/modules/_has.js","webpack:///./node_modules/core-js/library/modules/_fails.js","webpack:///./node_modules/core-js/library/modules/_to-iobject.js","webpack:///./node_modules/babel-runtime/core-js/promise.js","webpack:///./node_modules/core-js/library/modules/_iterators.js","webpack:///./node_modules/babel-runtime/helpers/extends.js","webpack:///./node_modules/core-js/library/modules/_ctx.js","webpack:///./node_modules/core-js/library/modules/_property-desc.js","webpack:///./node_modules/core-js/library/modules/_object-keys.js","webpack:///./node_modules/core-js/library/modules/_cof.js","webpack:///./node_modules/core-js/library/modules/es6.string.iterator.js","webpack:///./node_modules/core-js/library/modules/_a-function.js","webpack:///./node_modules/core-js/library/modules/_uid.js","webpack:///./node_modules/core-js/library/modules/_object-pie.js","webpack:///./node_modules/core-js/library/modules/_to-object.js","webpack:///./node_modules/core-js/library/modules/_library.js","webpack:///./node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:///./node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///./node_modules/core-js/library/modules/_dom-create.js","webpack:///./node_modules/core-js/library/modules/_to-primitive.js","webpack:///./node_modules/core-js/library/modules/_defined.js","webpack:///./node_modules/core-js/library/modules/_to-length.js","webpack:///./node_modules/core-js/library/modules/_to-integer.js","webpack:///./node_modules/core-js/library/modules/_shared-key.js","webpack:///./node_modules/core-js/library/modules/_shared.js","webpack:///./node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:///./node_modules/core-js/library/modules/_object-gops.js","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/babel-runtime/core-js/object/define-property.js","webpack:///./node_modules/core-js/library/modules/_classof.js","webpack:///./node_modules/core-js/library/modules/core.get-iterator-method.js","webpack:///./node_modules/core-js/library/modules/_new-promise-capability.js","webpack:///./node_modules/babel-runtime/helpers/typeof.js","webpack:///./node_modules/core-js/library/modules/_wks-ext.js","webpack:///./node_modules/core-js/library/modules/_wks-define.js","webpack:///./src/config/index.js","webpack:///./node_modules/babel-runtime/core-js/object/assign.js","webpack:///./node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:///./node_modules/core-js/library/modules/_object-keys-internal.js","webpack:///./node_modules/core-js/library/modules/_iobject.js","webpack:///./node_modules/core-js/library/modules/_iter-define.js","webpack:///./node_modules/core-js/library/modules/_redefine.js","webpack:///./node_modules/core-js/library/modules/_object-create.js","webpack:///./node_modules/core-js/library/modules/_html.js","webpack:///./node_modules/core-js/library/modules/_iter-call.js","webpack:///./node_modules/core-js/library/modules/_is-array-iter.js","webpack:///./node_modules/core-js/library/modules/_species-constructor.js","webpack:///./node_modules/core-js/library/modules/_task.js","webpack:///./node_modules/core-js/library/modules/_perform.js","webpack:///./node_modules/core-js/library/modules/_promise-resolve.js","webpack:///./node_modules/core-js/library/modules/_iter-detect.js","webpack:///./src/components/LexWeb.vue","webpack:///./node_modules/babel-runtime/core-js/object/keys.js","webpack:///./src/components/ToolbarContainer.vue","webpack:///./src/components/MessageList.vue","webpack:///./src/components/Message.vue","webpack:///./src/components/MessageText.vue","webpack:///./src/components/ResponseCard.vue","webpack:///./src/components/MessageLoading.vue","webpack:///./src/components/InputContainer.vue","webpack:///./src/components/RecorderStatus.vue","webpack:///./node_modules/core-js/library/modules/_object-gopn.js","webpack:///./node_modules/babel-runtime/helpers/slicedToArray.js","webpack:///./node_modules/babel-runtime/helpers/createClass.js","webpack:///./src/lex-web-ui.js","webpack:///./node_modules/core-js/library/fn/object/assign.js","webpack:///./node_modules/core-js/library/modules/es6.object.assign.js","webpack:///./node_modules/core-js/library/modules/_object-assign.js","webpack:///./node_modules/core-js/library/modules/_array-includes.js","webpack:///./node_modules/core-js/library/modules/_to-absolute-index.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/library/fn/promise.js","webpack:///./node_modules/core-js/library/modules/_string-at.js","webpack:///./node_modules/core-js/library/modules/_iter-create.js","webpack:///./node_modules/core-js/library/modules/_object-dps.js","webpack:///./node_modules/core-js/library/modules/_object-gpo.js","webpack:///./node_modules/core-js/library/modules/es6.array.iterator.js","webpack:///./node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:///./node_modules/core-js/library/modules/_iter-step.js","webpack:///./node_modules/core-js/library/modules/es6.promise.js","webpack:///./node_modules/core-js/library/modules/_an-instance.js","webpack:///./node_modules/core-js/library/modules/_for-of.js","webpack:///./node_modules/core-js/library/modules/_invoke.js","webpack:///./node_modules/core-js/library/modules/_microtask.js","webpack:///./node_modules/core-js/library/modules/_redefine-all.js","webpack:///./node_modules/core-js/library/modules/_set-species.js","webpack:///./node_modules/core-js/library/modules/es7.promise.finally.js","webpack:///./node_modules/core-js/library/modules/es7.promise.try.js","webpack:///external \"vue\"","webpack:///external \"vuex\"","webpack:///external \"aws-sdk/global\"","webpack:///external \"aws-sdk/clients/lexruntime\"","webpack:///external \"aws-sdk/clients/polly\"","webpack:///./src/components/LexWeb.vue?b19d","webpack:///./src/components/LexWeb.vue?e5c7","webpack:///./node_modules/core-js/library/fn/object/keys.js","webpack:///./node_modules/core-js/library/modules/es6.object.keys.js","webpack:///./node_modules/core-js/library/modules/_object-sap.js","webpack:///./src/components/ToolbarContainer.vue?f257","webpack:///./src/components/ToolbarContainer.vue?36d6","webpack:///./src/components/MessageList.vue?1c68","webpack:///./src/components/MessageList.vue?b689","webpack:///./src/components/Message.vue?3319","webpack:///./src/components/Message.vue?e7b4","webpack:///./src/components/MessageText.vue?588c","webpack:///./src/components/MessageText.vue?0e2d","webpack:///./node_modules/marked/lib/marked.js","webpack:///(webpack)/buildin/global.js","webpack:///./src/components/MessageText.vue?2ed9","webpack:///./src/components/ResponseCard.vue?b224","webpack:///./src/components/ResponseCard.vue?4c73","webpack:///./src/components/ResponseCard.vue?0ab6","webpack:///./src/components/Message.vue?8a3b","webpack:///./src/components/MessageLoading.vue?c676","webpack:///./src/components/MessageLoading.vue?a900","webpack:///./src/components/MessageLoading.vue?1d91","webpack:///./src/components/MessageList.vue?60bb","webpack:///./src/components/InputContainer.vue?8884","webpack:///./src/components/InputContainer.vue?eda1","webpack:///./src/components/RecorderStatus.vue?4ff6","webpack:///./src/components/RecorderStatus.vue?4b1e","webpack:///./src/components/RecorderStatus.vue?b5ab","webpack:///./src/components/InputContainer.vue?7e5c","webpack:///./src/components/LexWeb.vue?e5b7","webpack:///./src/store/index.js","webpack:///./src/store/state.js","webpack:///./node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:///./node_modules/core-js/library/fn/symbol/iterator.js","webpack:///./node_modules/babel-runtime/core-js/symbol.js","webpack:///./node_modules/core-js/library/fn/symbol/index.js","webpack:///./node_modules/core-js/library/modules/es6.symbol.js","webpack:///./node_modules/core-js/library/modules/_meta.js","webpack:///./node_modules/core-js/library/modules/_enum-keys.js","webpack:///./node_modules/core-js/library/modules/_is-array.js","webpack:///./node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:///./node_modules/core-js/library/modules/_object-gopd.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:///./node_modules/babel-runtime/helpers/defineProperty.js","webpack:///./node_modules/babel-runtime/core-js/is-iterable.js","webpack:///./node_modules/core-js/library/fn/is-iterable.js","webpack:///./node_modules/core-js/library/modules/core.is-iterable.js","webpack:///./node_modules/babel-runtime/core-js/get-iterator.js","webpack:///./node_modules/core-js/library/fn/get-iterator.js","webpack:///./node_modules/core-js/library/modules/core.get-iterator.js","webpack:///./src/config ^\\.\\/config\\..*\\.json$","webpack:///./src/config/config.dev.json","webpack:///./src/config/config.prod.json","webpack:///./src/config/config.test.json","webpack:///./src/store/getters.js","webpack:///./src/store/mutations.js","webpack:///./src/store/actions.js","webpack:///./src/lib/lex/recorder.js","webpack:///./node_modules/babel-runtime/helpers/toConsumableArray.js","webpack:///./node_modules/babel-runtime/core-js/array/from.js","webpack:///./node_modules/core-js/library/fn/array/from.js","webpack:///./node_modules/core-js/library/modules/es6.array.from.js","webpack:///./node_modules/core-js/library/modules/_create-property.js","webpack:///./src/lib/lex/wav-worker.js","webpack:///./node_modules/worker-loader/dist/workers/InlineWorker.js","webpack:///./src/store/recorder-handlers.js","webpack:///./src/assets/silent.ogg","webpack:///./src/assets/silent.mp3","webpack:///./src/lib/lex/client.js"],"names":["envShortName","find","startsWith","env","console","error","configEnvFile","require","configDefault","region","cognito","poolId","lex","botName","botAlias","initialText","initialSpeechInstruction","sessionAttributes","reInitSessionAttributesOnRestart","enablePlaybackInterrupt","playbackInterruptVolumeThreshold","playbackInterruptLevelThreshold","playbackInterruptNoiseThreshold","playbackInterruptMinDuration","polly","voiceId","ui","pageTitle","parentOrigin","textInputPlaceholder","toolbarColor","toolbarTitle","toolbarLogo","favIcon","pushInitialTextOnRestart","convertUrlToLinksInBotMessages","stripTagsFromBotMessages","showErrorDetails","showMessageDate","avatarImageUrl","showDialogStateIcon","AllowSuperDangerousHTMLInMessage","recorder","enable","recordingTimeMax","recordingTimeMin","quietThreshold","quietTimeMin","volumeThreshold","useAutoMuteDetect","useBandPass","encoderUseTrim","converser","silentConsecutiveRecordingMax","urlQueryParams","getUrlQueryParams","url","split","slice","reduce","params","queryString","map","queryObj","param","key","value","paramObj","decodeURIComponent","e","getConfigFromQuery","query","lexWebUiConfig","JSON","parse","mergeConfig","baseConfig","srcConfig","deep","mergeValue","base","src","shouldMergeDeep","merged","configItem","configFromFiles","queryParams","window","location","href","configFromQuery","configFromMerge","config","name","components","ToolbarContainer","MessageList","InputContainer","computed","$store","state","isUiMinimized","lexState","isMobile","mobileResolution","$vuetify","breakpoint","smAndDown","navigator","maxTouchPoints","screen","height","width","watch","$emit","created","document","documentElement","style","overflowY","initConfig","then","all","dispatch","$lexWebUi","awsConfig","credentials","Audio","pollyClient","lexRuntimeClient","isRunningEmbedded","event","resolve","info","version","catch","methods","toggleMinimizeUi","messageHandler","evt","origin","warn","ports","Array","isArray","length","data","postMessage","type","message","text","logRunningMode","referrer","lexWebUiEmbed","commit","addEventListener","shouldShowTooltip","tooltipEventHandlers","mouseenter","onInputButtonHoverEnter","mouseleave","onInputButtonHoverLeave","touchstart","touchend","touchcancel","props","toolTipMinimize","toggleMinimize","Message","MessageLoading","messages","loading","isProcessing","scrollDown","$nextTick","$el","scrollTop","scrollHeight","MessageText","ResponseCard","isMessageFocused","messageHumanDate","botDialogState","dialogState","icon","color","botAvatarUrl","shouldDisplayResponseCard","responseCard","contentType","genericAttachments","shouldShowAvatarImage","botAvatarBackground","background","shouldShowMessageDate","playAudio","audioElem","querySelector","play","onMessageFocus","getMessageHumanDate","id","onMessageBlur","dateDiff","Math","round","Date","date","secsInHr","secsInDay","floor","toLocaleTimeString","toLocaleString","marked","renderer","Renderer","link","title","shouldConvertUrlToLinks","shouldStripTags","altHtmlMessage","out","alts","html","markdown","shouldRenderAsHtml","botMessageAsHtml","messageText","stripTagsFromMessage","messageWithLinks","botMessageWithLinks","encodeAsHtml","replace","linkReplacers","regex","RegExp","item","test","encodeURI","replacer","messageAccum","index","array","messageResult","urlItem","doc","implementation","createHTMLDocument","body","innerHTML","textContent","innerText","hasButtonBeenClicked","onButtonClick","progress","interval","setInterval","destroyed","clearInterval","textInput","isTextFieldFocused","RecorderStatus","isBotSpeaking","botAudio","isSpeaking","isSpeechConversationGoing","recState","isConversationGoing","isMicButtonDisabled","isMicMuted","isRecorderSupported","isRecorderEnabled","isSendButtonDisabled","micButtonIcon","inputButtonTooltip","shouldShowSendButton","shouldShowTextInput","onMicClick","startSpeechConversation","onTextFieldFocus","onTextFieldBlur","playInitialInstruction","isInitialState","some","initialState","postTextMessage","trim","setAutoPlay","errorMessage","autoPlay","volume","volumeIntervalId","audioPlayPercent","audioIntervalId","isRecording","statusText","isInterrupting","canInterruptBotPlayback","canInterrupt","enterMeter","intervalTimeInMs","instant","toFixed","leaveMeter","enterAudioPlay","end","duration","percent","ceil","leaveAudioPlay","Component","template","LexWeb","loadingComponent","errorComponent","AsyncComponent","component","delay","timeout","Plugin","install","VueConstructor","componentName","prototype","Store","Loader","mergedConfig","Vue","Error","VuexConstructor","Vuex","AWSConfigConstructor","AWS","Config","CognitoConstructor","CognitoIdentityCredentials","PollyConstructor","Polly","LexRuntimeConstructor","LexRuntime","IdentityPoolId","store","use","strict","getters","mutations","actions","acceptFormat","inputTranscript","intentName","slotToElicit","slots","outputFormat","interruptIntervalId","isMicQuiet","silentRecordingCount","awsCreds","provider","isLexInterrupting","isLexProcessing","setIsMicMuted","bool","setIsMicQuiet","setIsConversationGoing","startRecording","start","stopRecording","stop","increaseSilentRecordingCount","resetSilentRecordingCount","setIsRecorderEnabled","setIsRecorderSupported","setIsBotSpeaking","setAudioAutoPlay","audio","status","autoplay","setCanInterruptBotPlayback","setIsBotPlaybackInterrupting","setBotPlaybackInterruptIntervalId","updateLexState","setLexSessionAttributes","setIsLexProcessing","setIsLexInterrupting","setAudioContentType","setPollyVoiceId","configFiltered","setIsRunningEmbedded","toggleIsUiMinimized","pushMessage","push","setAwsCredsProvider","awsCredentials","lexClient","initCredentials","context","reject","getConfigFromParent","configResponse","configObj","initMessageList","initLexClient","initPollyClient","client","creds","initRecorder","init","initOptions","initRecorderHandlers","indexOf","initBotAudio","audioElement","silentSound","canPlayType","mimeType","preload","reInitBot","getAudioUrl","blob","URL","createObjectURL","err","onended","onerror","onloadedmetadata","playAudioHandler","clearPlayback","intervalId","onpause","playAudioInterruptHandler","played","max","slow","setTimeout","pause","getAudioProperties","currentTime","ended","paused","startConversation","stopConversation","getRecorderVolume","pollyGetBlob","format","synthReq","synthesizeSpeech","Text","VoiceId","OutputFormat","TextType","promise","Blob","AudioStream","ContentType","pollySynthesizeSpeech","audioUrl","interruptSpeechConversation","count","countMax","response","appContext","altMessages","lexPostText","session","postText","lexPostContent","audioBlob","offset","size","timeStart","performance","now","postContent","lexResponse","timeEnd","processLexContentResponse","lexData","audioStream","lexStateDefault","pushErrorMessage","getCredentialsFromParent","expireTime","credsExpirationDate","credsResponse","Credentials","AccessKeyId","SecretKey","SessionToken","IdentityId","accessKeyId","secretAccessKey","sessionToken","identityId","expired","getPromise","getCredentials","sendMessageToParentWindow","messageChannel","MessageChannel","port1","onmessage","close","port2","parent","options","_eventTarget","createDocumentFragment","_encoderWorker","_exportWav","preset","_getPresetOptions","recordingTimeMinAutoIncrease","autoStopRecording","bandPassFrequency","bandPassQ","bufferLength","numChannels","requestEchoCancellation","muteThreshold","encoderQuietTrimThreshold","encoderQuietTrimSlackBack","_presets","presets","low_latency","speech_recognition","_state","_instant","_slow","_clip","_maxVolume","Infinity","_isMicQuiet","_isMicMuted","_isSilentRecording","_silentRecordingConsecutiveCount","_initAudioContext","_initMicVolumeProcessor","_initStream","_stream","_recordingStartTime","_audioContext","dispatchEvent","Event","command","sampleRate","useTrim","quietTrimThreshold","quietTrimSlackBack","_quietStartTime","CustomEvent","detail","inputBuffer","buffer","i","numberOfChannels","getChannelData","_tracks","muted","AudioContext","webkitAudioContext","hidden","suspend","resume","processor","createScriptProcessor","onaudioprocess","_recordBuffers","input","sum","clipCount","abs","sqrt","_setIsMicMuted","_setIsMicQuiet","_analyser","getFloatFrequencyData","_analyserData","_micVolumeProcessor","constraints","optional","echoCancellation","mediaDevices","getUserMedia","stream","getAudioTracks","label","onmute","onunmute","source","createMediaStreamSource","gainNode","createGain","analyser","createAnalyser","biquadFilter","createBiquadFilter","frequency","gain","Q","connect","smoothingTimeConstant","fftSize","minDecibels","maxDecibels","Float32Array","frequencyBinCount","destination","clip","cb","module","exports","__webpack_public_path__","onstart","time","onstop","onsilentrecording","onunsilentrecording","onstreamready","onquiet","onunquiet","ondataavailable","lexAudioBlob","audioUrls","humanAudioUrl","lexAudioUrl","userId","random","toString","substring","inputText","postTextReq","mediaType","postContentReq","accept","inputStream"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AC7DA,6BAA6B;AAC7B,uCAAuC;;;;;;;ACDvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;;;;;ACLzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA,kFAAkF;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,eAAe;AACf,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB;;;;;;;AC5DA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;AACA;AACA;;;;;;;ACJA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtGA;AACA;AACA,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;ACHD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;;;;;;ACPA;AACA;AACA;;;;;;;ACFA,uBAAuB;AACvB;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA,kBAAkB,wD;;;;;;ACAlB;;;;;;;;ACAA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,E;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;ACNA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;ACJA;AACA;;AAEA;AACA;AACA,6BAA6B;AAC7B,cAAc;AACd;AACA,CAAC;AACD;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA,UAAU;AACV,CAAC;;;;;;;AChBD;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;;;;;;;ACJA,cAAc;;;;;;;ACAd;AACA;AACA;AACA;AACA;;;;;;;ACJA;;;;;;;ACAA;AACA;AACA;;AAEA;AACA,oEAAoE,iCAAiC;AACrG;;;;;;;ACNA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA,kDAAkD;AAClD;AACA,uCAAuC;AACvC;;;;;;;ACLA;AACA;AACA;AACA;;;;;;;ACHA;;;;;;;;ACAA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,E;;;;;;ACRA,kBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB,EAAE;;AAE/C;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;ACjBA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,iHAAiH,mBAAmB,EAAE,mBAAmB,4JAA4J;;AAErT,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,CAAC;AACD;AACA,E;;;;;;ACpBA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,sBAAsB;AAChF,kFAAkF,wBAAwB;AAC1G;;;;;;;;;;;;;;;;;;;;;;;;;ACRA;;;;;;;;;;;;;AAaA;;;;;;;;;;;;;;;;;AAiBA;;AAEA;;AAEA;AACA,IAAMA,eAAe,CACnB,KADmB,EAEnB,MAFmB,EAGnB,MAHmB,EAInBC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ACnC;AACA;AACA,kCAAkC,2BAA2B;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;;;;;ACrEA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;ACxCA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnFA;AACA;AACA,YAAY;AACZ,GAAG;AACH,YAAY;AACZ;AACA;;;;;;;ACNA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;;AAEA;AACA;AACA,iCAAiC,qBAAqB;AACtD;AACA,iCAAiC,SAAS,EAAE;AAC5C,CAAC,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AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AAYA;AACA;;AAEA,yDAAe;AACbrB,QAAM,cADO;AAEbC,cAAY;AACV0E,aAAA,yDADU;AAEVC,oBAAA,gEAAAA;AAFU,GAFC;AAMbvE,YAAU;AACRwE,YADQ,sBACG;AACT,aAAO,KAAKvE,MAAL,CAAYC,KAAZ,CAAkBsE,QAAzB;AACD,KAHO;AAIRC,WAJQ,qBAIE;AACR,aAAO,KAAKxE,MAAL,CAAYC,KAAZ,CAAkBxF,GAAlB,CAAsBgK,YAA7B;AACD;AANO,GANG;AAcb3D,SAAO;AACL;AACAyD,YAFK,sBAEM;AACT,WAAKG,UAAL;AACD;AAJI,GAdM;AAoBbrC,WAAS;AACPqC,cADO,wBACM;AAAA;;AACX,aAAO,KAAKC,SAAL,CAAe,YAAM;AAC1B,cAAKC,GAAL,CAASC,SAAT,GAAqB,MAAKD,GAAL,CAASE,YAA9B;AACD,OAFM,CAAP;AAGD;AALM;AApBI,CAAf,E;;;;;;;;ACpCA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AAYA;AACA;;AAEA,yDAAe;AACbpF,QAAM,SADO;AAEbwE,SAAO,CAAC,SAAD,CAFM;AAGbvE,cAAY;AACVoF,iBAAA,6DADU;AAEVC,kBAAA,8DAAAA;AAFU,GAHC;AAObjC,MAPa,kBAON;AACL,WAAO;AACLkC,w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,EARG;AAUbsC,WAAS;AACPqH,iBADO,yBACO3L,KADP,EACc;AACnB,WAAK0L,oBAAL,GAA4B,IAA5B;AACA,UAAMvG,UAAU;AACdD,cAAM,OADQ;AAEdE,cAAMpF;AAFQ,OAAhB;;AAKA,WAAKiC,MAAL,CAAYwB,QAAZ,CAAqB,iBAArB,EAAwC0B,OAAxC;AACD;AATM;AAVI,CAAf,E;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;AAaA,yDAAe;AACbxD,QAAM,gBADO;AAEbqD,MAFa,kBAEN;AACL,WAAO;AACL4G,gBAAU;AADL,KAAP;AAGD,GANY;;AAOb5J,YAAU,EAPG;AASbsC,WAAS,EATI;AAWbrB,SAXa,qBAWH;AAAA;;AACR,SAAK4I,QAAL,GAAgBC,YAAY,YAAM;AAChC,UAAI,MAAKF,QAAL,CAAc7G,MAAd,GAAuB,CAA3B,EAA8B;AAC5B,cAAK6G,QAAL,GAAgB,GAAhB;AACD,OAFD,MAEO;AACL,cAAKA,QAAL,IAAiB,GAAjB;AACD;AACF,KANe,EAMb,GANa,CAAhB;AAOD,GAnBY;AAoBbG,WApBa,uBAoBD;AACVC,kBAAc,KAAKH,QAAnB;AACD;AAtBY,CAAf,E;;;;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AAYA;;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ADiB;AAEzBzM,wBAFyB;AAGzBI,sCAHyB;AAIzBD;AAJyB,GAA3B;AAMD,CA7DH,C;;;;;;AC3GA;AACA;;;;;;;ACDA;AACA;;AAEA,0CAA0C,kCAAsC;;;;;;;;ACHhF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,UAAU,EAAE;AAChD,mBAAmB,sCAAsC;AACzD,CAAC,qCAAqC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;ACjCD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA,oEAAuE,2CAA4C;;;;;;;ACFnH;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;;AAEA;AACA,2FAAkF,aAAa,EAAE;;AAEjG;AACA,qDAAqD,4BAA4B;AACjF;AACA;;;;;;;ACZA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACZA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC,cAAc;AACd,iBAAiB;AACjB;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;;;;;;;ACjCA,8BAA8B;;;;;;;ACA9B;AACA,UAAU;AACV;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,mBAAmB,kCAAkC;AACrD,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,eAAe,uCAAuC;AACtD;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH,kBAAkB,yBAAyB,KAAK;AAChD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,wBAAwB;AACxB,gBAAgB;AAChB,oBAAoB;AACpB,wBAAwB;AACxB,gBAAgB;AAChB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAA0D,oBAAoB;AAC9E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;AChRD;AACA;AACA;AACA,GAAG;AACH;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,iBAAiB,EAAE;AAC1D;AACA;AACA;AACA;AACA;AACA,mEAAmE,gBAAgB;AACnF;AACA;AACA,GAAG,4CAA4C,gCAAgC;AAC/E;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uCAAuC,sBAAsB,EAAE;AAC/D;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB;AAChB;AACA;AACA;AAC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A,iBAAiB;AACjB,kE;;;;;;;;;ACHA;AAAA;AACA,yBAAqT;AACrT;AACA;AACA;AACA;AACA;AACA;AAC8Q;AAC9Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC1BA,yC;;;;;;;;;ACAA;AAAA;AACA,yBAAqT;AACrT;AACA;AACA;AACA;AACA;AACA;AAC8Q;AAC9Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC1BA,yC;;;;;;;;;ACAA;AAAA;AACA,yBAAqT;AACrT;AACA;AACA;AACA;AACA;AACA;AAC8Q;AAC9Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC1BA,yC;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA;AACA;AACA,aAAa,EAAE;AACf;AACA,UAAU,IAAI,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG;AACnD,kBAAkB,IAAI;AACtB;AACA,mBAAmB,IAAI;AACvB,0CAA0C,GAAG;AAC7C,kDAAkD,GAAG,sBAAsB,GAAG;AAC9E,WAAW,IAAI;AACf;AACA,gCAAgC,GAAG;AACnC,qDAAqD,IAAI;AACzD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wCAAwC,GAAG,SAAS,GAAG,WAAW,GAAG;AACrE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;;AAEvB;AACA;AACA;;AAEA,oBAAoB;AACpB,iBAAiB,GAAG,GAAG,GAAG;AAC1B;AACA,kBAAkB,IAAI;AACtB,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,EAAE;AACjC;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA;AACA;;AAEA,YAAY,OAAO;AACnB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0CAA0C,gBAAgB;AAC1D,+BAA+B,IAAI;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,GAAG;AACb;AACA,sCAAsC,GAAG;AACzC;;AAEA,yCAAyC,KAAK;AAC9C,2CAA2C,EAAE,kCAAkC,KAAK,6CAA6C,KAAK;;AAEtI;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB;;AAExB;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,0BAA0B,oCAAoC,UAAU;AACxE;AACA;AACA;AACA,uEAAuE,IAAI;AAC3E;AACA,CAAC;;AAED;AACA;AACA;;AAEA,wBAAwB;AACxB,gCAAgC,GAAG;AACnC,wCAAwC,GAAG;AAC3C,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,iBAAiB,EAAE;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAQ,OAAO;AACf;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY,iBAAiB,6BAA6B;AAC1D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,8BAA8B;AAC/C;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA,iBAAiB,6BAA6B;AAC9C;;AAEA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,kBAAkB;AACpD,wBAAwB;AACxB,wBAAwB;AACxB,0BAA0B;AAC1B,yBAAyB;AACzB;;AAEA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,QAAQ,sBAAsB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,4BAA4B;;AAE9C;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,UAAU,mBAAmB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC;AACD,qBAAqB,eAAe,EAAE;AACtC,CAAC;AACD;AACA;AACA,CAAC;;;;;;;;AC32CD;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACpBA,0BAA0B,aAAa,0BAA0B,wBAAwB,oEAAoE,2BAA2B,wHAAwH,qCAAqC,wCAAwC,yDAAyD,qCAAqC,0CAA0C,6DAA6D,2BAA2B;AAC7lB;AACA,iBAAiB;AACjB,kE;;;;;;;;;ACHA;AAAA;AACA,yBAAqT;AACrT;AACA;AACA;AACA;AACA;AACA;AAC8Q;AAC9Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC1BA,yC;;;;;;;ACAA,0BAA0B,aAAa,0BAA0B,wBAAwB,uEAAuE,mCAAmC,oBAAoB,aAAa,uBAAuB,6OAA6O,OAAO,8DAA8D,gFAAgF,4BAA4B,0CAA0C,cAAc,4CAA4C,OAAO,iDAAiD,WAAW,0BAA0B,kCAAkC,iEAAiE,oFAA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BAAY,KAHJ;AAIRqF,gBAAY,IAJJ;AAKRpF,yBAAqB,KALb;AAMRC,uBAAoB,uDAAAnL,CAAOlD,QAAR,GAAoB,CAAC,CAAC,uDAAAkD,CAAOlD,QAAP,CAAgBC,MAAtC,GAA+C,IAN1D;AAOR2P,iBAAa,KAPL;AAQR6D,0BAAsB;AARd,GApCG;;AA+CbjO,qBAAmB,KA/CN,EA+Ca;AAC1B7B,iBAAe,KAhDF,EAgDS;AACtBT,UAAA,uDAjDa;;AAmDbwQ,YAAU;AACRC,cAAU,SADF,CACa;AADb;AAnDG,CAAf,E;;;;;;AClBA,kBAAkB,yD;;;;;;ACAlB;AACA;AACA;;;;;;;ACFA,kBAAkB,yD;;;;;;ACAlB;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB,sBAAsB,uBAAuB,WAAW,IAAI;AAC5D,GAAG;AACH,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA,KAAK;AACL;AACA,sBAAsB,mCAAmC;AACzD,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,gCAAgC;AAChG;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0DAA0D,kBAAkB;;AAE5E;AACA;AACA;AACA,oBAAoB,uBAAuB;;AAE3C,oDAAoD,6BAA6B;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,0BAA0B,eAAe,EAAE;AAC3C,0BAA0B,gBAAgB;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO,QAAQ,iCAAiC;AACpG,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD,CAAC;AACD;AACA,qBAAqB;AACrB;AACA,SAAS;AACT,GAAG,EAAE;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;ACdA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;;;;;;AClBA;AACA;AAC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CAAqBU,KAArB,CAAlB;AAAA,OADD,EAEJ3R,IAFI,CAEC;AAAA,eAAM+f,eAAetL,OAAf,EAAN;AAAA,OAFD,CAAP;AAGD","file":"bundle/lex-web-ui.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"vuex\"), require(\"aws-sdk/global\"), require(\"aws-sdk/clients/lexruntime\"), require(\"aws-sdk/clients/polly\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"vue\", \"vuex\", \"aws-sdk/global\", \"aws-sdk/clients/lexruntime\", \"aws-sdk/clients/polly\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"LexWebUi\"] = factory(require(\"vue\"), require(\"vuex\"), require(\"aws-sdk/global\"), require(\"aws-sdk/clients/lexruntime\"), require(\"aws-sdk/clients/polly\"));\n\telse\n\t\troot[\"LexWebUi\"] = factory(root[\"vue\"], root[\"vuex\"], root[\"aws-sdk/global\"], root[\"aws-sdk/clients/lexruntime\"], root[\"aws-sdk/clients/polly\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_100__, __WEBPACK_EXTERNAL_MODULE_101__, __WEBPACK_EXTERNAL_MODULE_102__, __WEBPACK_EXTERNAL_MODULE_103__, __WEBPACK_EXTERNAL_MODULE_104__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 75);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap b506fe54fbd9f02baa3c","var core = module.exports = { version: '2.5.3' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_core.js\n// module id = 0\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks.js\n// module id = 1\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_global.js\n// module id = 2\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && key in exports) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_export.js\n// module id = 3\n// module chunks = 0","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dp.js\n// module id = 4\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-object.js\n// module id = 5\n// module chunks = 0","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/component-normalizer.js\n// module id = 6\n// module chunks = 0","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_descriptors.js\n// module id = 7\n// module chunks = 0","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_hide.js\n// module id = 8\n// module chunks = 0","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-object.js\n// module id = 9\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_has.js\n// module id = 10\n// module chunks = 0","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_fails.js\n// module id = 11\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-iobject.js\n// module id = 12\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/promise\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/promise.js\n// module id = 13\n// module chunks = 0","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iterators.js\n// module id = 14\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/extends.js\n// module id = 15\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ctx.js\n// module id = 16\n// module chunks = 0","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_property-desc.js\n// module id = 17\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys.js\n// module id = 18\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_cof.js\n// module id = 19\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = 20\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 21\n// module chunks = 0","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_uid.js\n// module id = 22\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-pie.js\n// module id = 23\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-object.js\n// module id = 24\n// module chunks = 0","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_library.js\n// module id = 25\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = 26\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 27\n// module chunks = 0","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_dom-create.js\n// module id = 28\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-primitive.js\n// module id = 29\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_defined.js\n// module id = 30\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-length.js\n// module id = 31\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-integer.js\n// module id = 32\n// module chunks = 0","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared-key.js\n// module id = 33\n// module chunks = 0","var global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function (key) {\n return store[key] || (store[key] = {});\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared.js\n// module id = 34\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = 35\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gops.js\n// module id = 36\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = 37\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/define-property.js\n// module id = 38\n// module chunks = 0","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_classof.js\n// module id = 39\n// module chunks = 0","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator-method.js\n// module id = 40\n// module chunks = 0","'use strict';\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = require('./_a-function');\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_new-promise-capability.js\n// module id = 41\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/typeof.js\n// module id = 42\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-ext.js\n// module id = 43\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-define.js\n// module id = 44\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Application configuration management.\n * This file contains default config values and merges the environment\n * and URL configs.\n *\n * The environment dependent values are loaded from files\n * with the config..json naming syntax (where is a NODE_ENV value\n * such as 'prod' or 'dev') located in the same directory as this file.\n *\n * The URL configuration is parsed from the `config` URL parameter as\n * a JSON object\n *\n * NOTE: To avoid having to manually merge future changes to this file, you\n * probably want to modify default values in the config..js files instead\n * of this one.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n// TODO turn this into a class\n\n// get env shortname to require file\nconst envShortName = [\n 'dev',\n 'prod',\n 'test',\n].find(env => process.env.NODE_ENV.startsWith(env));\n\nif (!envShortName) {\n console.error('unknown environment in config: ', process.env.NODE_ENV);\n}\n\n// eslint-disable-next-line import/no-dynamic-require\nconst configEnvFile = require(`./config.${envShortName}.json`);\n\n// default config used to provide a base structure for\n// environment and dynamic configs\nconst configDefault = {\n // AWS region\n region: 'us-east-1',\n\n cognito: {\n // Cognito pool id used to obtain credentials\n // e.g. poolId: 'us-east-1:deadbeef-cac0-babe-abcd-abcdef01234',\n poolId: '',\n },\n\n lex: {\n // Lex bot name\n botName: 'WebUiOrderFlowers',\n\n // Lex bot alias/version\n botAlias: '$LATEST',\n\n // instruction message shown in the UI\n initialText: 'You can ask me for help ordering flowers. ' +\n 'Just type \"order flowers\" or click on the mic and say it.',\n\n // instructions spoken when mic is clicked\n initialSpeechInstruction: 'Say \"Order Flowers\" to get started',\n\n // Lex initial sessionAttributes\n sessionAttributes: {},\n\n // controls if the session attributes are reinitialized a\n // after the bot dialog is done (i.e. fail or fulfilled)\n reInitSessionAttributesOnRestart: true,\n\n // TODO move this config fields to converser\n // allow to interrupt playback of lex responses by talking over playback\n // XXX experimental\n enablePlaybackInterrupt: false,\n\n // microphone volume level (in dB) to cause an interrupt in the bot\n // playback. Lower (negative) values makes interrupt more likely\n // may need to adjusted down if using low_latency preset or band pass filter\n playbackInterruptVolumeThreshold: -60,\n\n // microphone slow sample level to cause an interrupt in the bot\n // playback. Lower values makes interrupt more likely\n // may need to adjusted down if using low_latency preset or band pass filter\n playbackInterruptLevelThreshold: 0.0075,\n\n // microphone volume level (in dB) to cause enable interrupt of bot\n // playback. This is used to prevent interrupts when there's noise\n // For interrupt to be enabled, the volume level should be lower than this\n // value. Lower (negative) values makes interrupt more likely\n // may need to adjusted down if using low_latency preset or band pass filter\n playbackInterruptNoiseThreshold: -75,\n\n // only allow to interrupt playback longer than this value (in seconds)\n playbackInterruptMinDuration: 2,\n },\n\n polly: {\n voiceId: 'Joanna',\n },\n\n ui: {\n // TODO may want to move pageTitle out to LexApp or Page component\n // title of HTML page added dynamically to index.html\n pageTitle: 'Order Flowers Bot',\n\n // when running as an embedded iframe, this will be used as the\n // be the parent origin used to send/receive messages\n // NOTE: this is also a security control\n // this parameter should not be dynamically overriden\n // avoid making it '*'\n // if left as an empty string, it will be set to window.location.window\n // to allow runing embedded in a single origin setup\n parentOrigin: null,\n\n // chat window text placeholder\n textInputPlaceholder: 'Type here or click on the mic',\n\n toolbarColor: 'red',\n\n // chat window title\n toolbarTitle: 'Order Flowers',\n\n // logo used in toolbar - also used as favicon not specificied\n toolbarLogo: '',\n\n // fav icon\n favIcon: '',\n\n // controls if the Lex initialText will be pushed into the message\n // list after the bot dialog is done (i.e. fail or fulfilled)\n pushInitialTextOnRestart: true,\n\n // controls if the Lex sessionAttributes should be re-initialized\n // to the config value (i.e. lex.sessionAttributes)\n // after the bot dialog is done (i.e. fail or fulfilled)\n reInitSessionAttributesOnRestart: false,\n\n // controls whether URLs in bot responses will be converted to links\n convertUrlToLinksInBotMessages: true,\n\n // controls whether tags (e.g. SSML or HTML) should be stripped out\n // of bot messages received from Lex\n stripTagsFromBotMessages: true,\n\n // controls whether detailed error messages are shown in bot responses\n showErrorDetails: false,\n\n // show date when message was received on buble focus/selection\n showMessageDate: true,\n\n // bot avatar image URL\n avatarImageUrl: '',\n\n // Show the diaglog state icon, check or alert, in the text bubble\n showDialogStateIcon: true,\n\n // Allows lex messages with session attribute\n // appContext.altMessages.html or appContext.altMessages.markdown\n // to be rendered as html in the message\n // Enabling this feature increases the risk of XSS.\n // Make sure that the HTML message has been properly\n // escaped/encoded/filtered in the Lambda function\n // https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)\n AllowSuperDangerousHTMLInMessage: false,\n },\n\n /* Configuration to enable voice and to pass options to the recorder\n * see ../lib/recorder.js for details about all the available options.\n * You can override any of the defaults in recorder.js by adding them\n * to the corresponding JSON config file (config..json)\n * or alternatively here\n */\n recorder: {\n // if set to true, voice interaction would be enabled on supported browsers\n // set to false if you don't want voice enabled\n enable: true,\n\n // maximum recording time in seconds\n recordingTimeMax: 10,\n\n // Minimum recording time in seconds.\n // Used before evaluating if the line is quiet to allow initial pauses\n // before speech\n recordingTimeMin: 2.5,\n\n // Sound sample threshold to determine if there's silence.\n // This is measured against a value of a sample over a period of time\n // If set too high, it may falsely detect quiet recordings\n // If set too low, it could take long pauses before detecting silence or\n // not detect it at all.\n // Reasonable values seem to be between 0.001 and 0.003\n quietThreshold: 0.002,\n\n // time before automatically stopping the recording when\n // there's silence. This is compared to a slow decaying\n // sample level so its's value is relative to sound over\n // a period of time. Reasonable times seem to be between 0.2 and 0.5\n quietTimeMin: 0.3,\n\n // volume threshold in db to determine if there's silence.\n // Volume levels lower than this would trigger a silent event\n // Works in conjuction with `quietThreshold`. Lower (negative) values\n // cause the silence detection to converge faster\n // Reasonable values seem to be between -75 and -55\n volumeThreshold: -65,\n\n // use automatic mute detection\n useAutoMuteDetect: false,\n\n // use a bandpass filter on mic input\n useBandPass: false,\n\n // trim low volume samples at beginning and end of recordings\n encoderUseTrim: false,\n },\n\n converser: {\n // used to control maximum number of consecutive silent recordings\n // before the conversation is ended\n silentConsecutiveRecordingMax: 3,\n },\n\n // URL query parameters are put in here at run time\n urlQueryParams: {},\n};\n\n/**\n * Obtains the URL query params and returns it as an object\n * This can be used before the router has been setup\n */\nfunction getUrlQueryParams(url) {\n try {\n return url\n .split('?', 2) // split query string up to a max of 2 elems\n .slice(1, 2) // grab what's after the '?' char\n // split params separated by '&'\n .reduce((params, queryString) => queryString.split('&'), [])\n // further split into key value pairs separated by '='\n .map(params => params.split('='))\n // turn into an object representing the URL query key/vals\n .reduce((queryObj, param) => {\n const [key, value = true] = param;\n const paramObj = {\n [key]: decodeURIComponent(value),\n };\n return { ...queryObj, ...paramObj };\n }, {});\n } catch (e) {\n console.error('error obtaining URL query parameters', e);\n return {};\n }\n}\n\n/**\n * Obtains and parses the config URL parameter\n */\nfunction getConfigFromQuery(query) {\n try {\n return (query.lexWebUiConfig) ? JSON.parse(query.lexWebUiConfig) : {};\n } catch (e) {\n console.error('error parsing config from URL query', e);\n return {};\n }\n}\n\n/**\n * Merge two configuration objects\n * The merge process takes the base config as the source for keys to be merged.\n * The values in srcConfig take precedence in the merge.\n *\n * If deep is set to false (default), a shallow merge is done down to the\n * second level of the object. Object values under the second level fully\n * overwrite the base. For example, srcConfig.lex.sessionAttributes overwrite\n * the base as an object.\n *\n * If deep is set to true, the merge is done recursively in both directions.\n */\nexport function mergeConfig(baseConfig, srcConfig, deep = false) {\n function mergeValue(base, src, key, shouldMergeDeep) {\n // nothing to merge as the base key is not found in the src\n if (!(key in src)) {\n return base[key];\n }\n\n // deep merge in both directions using recursion\n if (shouldMergeDeep && typeof base[key] === 'object') {\n return {\n ...mergeConfig(src[key], base[key], shouldMergeDeep),\n ...mergeConfig(base[key], src[key], shouldMergeDeep),\n };\n }\n\n // shallow merge key/values\n // overriding the base values with the ones from the source\n return (typeof base[key] === 'object') ?\n { ...base[key], ...src[key] } :\n src[key];\n }\n\n // use the baseConfig first level keys as the base for merging\n return Object.keys(baseConfig)\n .map((key) => {\n const value = mergeValue(baseConfig, srcConfig, key, deep);\n return { [key]: value };\n })\n // merge key values back into a single object\n .reduce((merged, configItem) => ({ ...merged, ...configItem }), {});\n}\n\n// merge build time parameters\nconst configFromFiles = mergeConfig(configDefault, configEnvFile);\n\n// TODO move query config to a store action\n// run time config from url query parameter\nconst queryParams = getUrlQueryParams(window.location.href);\nconst configFromQuery = getConfigFromQuery(queryParams);\n// security: delete origin from dynamic parameter\nif (configFromQuery.ui && configFromQuery.ui.parentOrigin) {\n delete configFromQuery.ui.parentOrigin;\n}\n\nconst configFromMerge = mergeConfig(configFromFiles, configFromQuery);\n\nexport const config = {\n ...configFromMerge,\n urlQueryParams: queryParams,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/index.js","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/assign.js\n// module id = 46\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = 47\n// module chunks = 0","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = 48\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iobject.js\n// module id = 49\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = (!BUGGY && $native) || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-define.js\n// module id = 51\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine.js\n// module id = 52\n// module chunks = 0","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-create.js\n// module id = 53\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 54\n// module chunks = 0","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-call.js\n// module id = 55\n// module chunks = 0","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array-iter.js\n// module id = 56\n// module chunks = 0","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_species-constructor.js\n// module id = 57\n// module chunks = 0","var ctx = require('./_ctx');\nvar invoke = require('./_invoke');\nvar html = require('./_html');\nvar cel = require('./_dom-create');\nvar global = require('./_global');\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (require('./_cof')(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_task.js\n// module id = 58\n// module chunks = 0","module.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_perform.js\n// module id = 59\n// module chunks = 0","var anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar newPromiseCapability = require('./_new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_promise-resolve.js\n// module id = 60\n// module chunks = 0","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-detect.js\n// module id = 61\n// module chunks = 0","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\", \"info\"] }] */\nimport ToolbarContainer from '@/components/ToolbarContainer';\nimport MessageList from '@/components/MessageList';\nimport InputContainer from '@/components/InputContainer';\n\nexport default {\n name: 'lex-web',\n components: {\n ToolbarContainer,\n MessageList,\n InputContainer,\n },\n computed: {\n initialSpeechInstruction() {\n return this.$store.state.config.lex.initialSpeechInstruction;\n },\n textInputPlaceholder() {\n return this.$store.state.config.ui.textInputPlaceholder;\n },\n toolbarColor() {\n return this.$store.state.config.ui.toolbarColor;\n },\n toolbarTitle() {\n return this.$store.state.config.ui.toolbarTitle;\n },\n toolbarLogo() {\n return this.$store.state.config.ui.toolbarLogo;\n },\n isUiMinimized() {\n return this.$store.state.isUiMinimized;\n },\n lexState() {\n return this.$store.state.lex;\n },\n isMobile() {\n const mobileResolution = 900;\n return (this.$vuetify.breakpoint.smAndDown &&\n 'navigator' in window && navigator.maxTouchPoints > 0 &&\n 'screen' in window &&\n (window.screen.height < mobileResolution ||\n window.screen.width < mobileResolution)\n );\n },\n },\n watch: {\n // emit lex state on changes\n lexState() {\n this.$emit('updateLexState', this.lexState);\n },\n },\n created() {\n // override default vuetify vertical overflow on non-mobile devices\n // hide vertical scrollbars\n if (!this.isMobile) {\n document.documentElement.style.overflowY = 'hidden';\n }\n\n this.initConfig()\n .then(() => Promise.all([\n this.$store.dispatch(\n 'initCredentials',\n this.$lexWebUi.awsConfig.credentials,\n ),\n this.$store.dispatch('initRecorder'),\n this.$store.dispatch(\n 'initBotAudio',\n (window.Audio) ? new Audio() : null,\n ),\n ]))\n .then(() => Promise.all([\n this.$store.dispatch('initMessageList'),\n this.$store.dispatch('initPollyClient', this.$lexWebUi.pollyClient),\n this.$store.dispatch('initLexClient', this.$lexWebUi.lexRuntimeClient),\n ]))\n .then(() => (\n (this.$store.state.isRunningEmbedded) ?\n this.$store.dispatch(\n 'sendMessageToParentWindow',\n { event: 'ready' },\n ) :\n Promise.resolve()\n ))\n .then(() => console.info(\n 'sucessfully initialized lex web ui version: ',\n this.$store.state.version,\n ))\n .catch((error) => {\n console.error('could not initialize application while mounting:', error);\n });\n },\n methods: {\n toggleMinimizeUi() {\n return this.$store.dispatch('toggleIsUiMinimized');\n },\n // messages from parent\n messageHandler(evt) {\n // security check\n if (evt.origin !== this.$store.state.config.ui.parentOrigin) {\n console.warn('ignoring event - invalid origin:', evt.origin);\n return;\n }\n if (!evt.ports || !Array.isArray(evt.ports) || !evt.ports.length) {\n console.warn('postMessage not sent over MessageChannel', evt);\n return;\n }\n switch (evt.data.event) {\n case 'ping':\n console.info('pong - ping received from parent');\n evt.ports[0].postMessage({\n event: 'resolve',\n type: evt.data.event,\n });\n break;\n // received when the parent page has loaded the iframe\n case 'parentReady':\n evt.ports[0].postMessage({ event: 'resolve', type: evt.data.event });\n break;\n case 'toggleMinimizeUi':\n this.$store.dispatch('toggleIsUiMinimized')\n .then(() => evt.ports[0].postMessage({\n event: 'resolve', type: evt.data.event,\n }));\n break;\n case 'postText':\n if (!evt.data.message) {\n evt.ports[0].postMessage({\n event: 'reject',\n type: evt.data.event,\n error: 'missing message field',\n });\n return;\n }\n\n this.$store.dispatch(\n 'postTextMessage',\n { type: 'human', text: evt.data.message },\n )\n .then(() => evt.ports[0].postMessage({\n event: 'resolve', type: evt.data.event,\n }));\n break;\n default:\n console.warn('unknown message in messageHanlder', evt);\n break;\n }\n },\n logRunningMode() {\n if (!this.$store.state.isRunningEmbedded) {\n console.info('running in standalone mode');\n return;\n }\n\n console.info(\n 'running in embedded mode from URL: ',\n document.location.href,\n );\n console.info('referrer (possible parent) URL: ', document.referrer);\n console.info(\n 'config parentOrigin:',\n this.$store.state.config.ui.parentOrigin,\n );\n if (!document.referrer\n .startsWith(this.$store.state.config.ui.parentOrigin)\n ) {\n console.warn(\n 'referrer origin: [%s] does not match configured parent origin: [%s]',\n document.referrer, this.$store.state.config.ui.parentOrigin,\n );\n }\n },\n initConfig() {\n if (this.$store.state.config.urlQueryParams.lexWebUiEmbed !== 'true') {\n this.$store.commit('setIsRunningEmbedded', false);\n this.$store.commit('setAwsCredsProvider', 'cognito');\n } else {\n window.addEventListener('message', this.messageHandler, false);\n this.$store.commit('setIsRunningEmbedded', true);\n this.$store.commit('setAwsCredsProvider', 'parentWindow');\n }\n\n // get config\n return this.$store.dispatch('initConfig', this.$lexWebUi.config)\n .then(() => this.$store.dispatch('getConfigFromParent'))\n // avoid merging an empty config\n .then(config => (\n (Object.keys(config).length) ?\n this.$store.dispatch('initConfig', config) : Promise.resolve()\n ))\n .then(() => this.logRunningMode());\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/LexWeb.vue","module.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/keys.js\n// module id = 63\n// module chunks = 0","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\nexport default {\n name: 'toolbar-container',\n data() {\n return {\n shouldShowTooltip: false,\n tooltipEventHandlers: {\n mouseenter: this.onInputButtonHoverEnter,\n mouseleave: this.onInputButtonHoverLeave,\n touchstart: this.onInputButtonHoverEnter,\n touchend: this.onInputButtonHoverLeave,\n touchcancel: this.onInputButtonHoverLeave,\n },\n };\n },\n props: ['toolbarTitle', 'toolbarColor', 'toolbarLogo', 'isUiMinimized'],\n computed: {\n toolTipMinimize() {\n return (this.isUiMinimized) ? 'maximize' : 'minimize';\n },\n },\n methods: {\n onInputButtonHoverEnter() {\n this.shouldShowTooltip = true;\n },\n onInputButtonHoverLeave() {\n this.shouldShowTooltip = false;\n },\n toggleMinimize() {\n this.onInputButtonHoverLeave();\n this.$emit('toggleMinimizeUi');\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/ToolbarContainer.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\nimport Message from './Message';\nimport MessageLoading from './MessageLoading';\n\nexport default {\n name: 'message-list',\n components: {\n Message,\n MessageLoading,\n },\n computed: {\n messages() {\n return this.$store.state.messages;\n },\n loading() {\n return this.$store.state.lex.isProcessing;\n },\n },\n watch: {\n // autoscroll message list to the bottom when messages change\n messages() {\n this.scrollDown();\n },\n },\n methods: {\n scrollDown() {\n return this.$nextTick(() => {\n this.$el.scrollTop = this.$el.scrollHeight;\n });\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/MessageList.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\nimport MessageText from './MessageText';\nimport ResponseCard from './ResponseCard';\n\nexport default {\n name: 'message',\n props: ['message'],\n components: {\n MessageText,\n ResponseCard,\n },\n data() {\n return {\n isMessageFocused: false,\n messageHumanDate: 'Now',\n };\n },\n computed: {\n botDialogState() {\n if (!('dialogState' in this.message)) {\n return null;\n }\n switch (this.message.dialogState) {\n case 'Failed':\n return { icon: 'error', color: 'red', state: 'fail' };\n case 'Fulfilled':\n case 'ReadyForFulfillment':\n return { icon: 'done', color: 'green', state: 'ok' };\n default:\n return null;\n }\n },\n botAvatarUrl() {\n return this.$store.state.config.ui.avatarImageUrl;\n },\n showDialogStateIcon() {\n return this.$store.state.config.ui.showDialogStateIcon;\n },\n shouldDisplayResponseCard() {\n return (\n this.message.responseCard &&\n (this.message.responseCard.version === '1' ||\n this.message.responseCard.version === 1) &&\n this.message.responseCard.contentType === 'application/vnd.amazonaws.card.generic' &&\n 'genericAttachments' in this.message.responseCard &&\n this.message.responseCard.genericAttachments instanceof Array\n );\n },\n shouldShowAvatarImage() {\n return (\n this.message.type === 'bot' &&\n this.botAvatarUrl\n );\n },\n botAvatarBackground() {\n return {\n background: `url(${this.botAvatarUrl}) center center / contain no-repeat`,\n };\n },\n shouldShowMessageDate() {\n return this.$store.state.config.ui.showMessageDate;\n },\n },\n methods: {\n playAudio() {\n // XXX doesn't play in Firefox or Edge\n /* XXX also tried:\n const audio = new Audio(this.message.audio);\n audio.play();\n */\n const audioElem = this.$el.querySelector('audio');\n if (audioElem) {\n audioElem.play();\n }\n },\n onMessageFocus() {\n if (!this.shouldShowMessageDate) {\n return;\n }\n this.messageHumanDate = this.getMessageHumanDate();\n this.isMessageFocused = true;\n if (this.message.id === this.$store.state.messages.length - 1) {\n this.$emit('scrollDown');\n }\n },\n onMessageBlur() {\n if (!this.shouldShowMessageDate) {\n return;\n }\n this.isMessageFocused = false;\n },\n getMessageHumanDate() {\n const dateDiff = Math.round((new Date() - this.message.date) / 1000);\n const secsInHr = 3600;\n const secsInDay = secsInHr * 24;\n if (dateDiff < 60) {\n return 'Now';\n } else if (dateDiff < secsInHr) {\n return `${Math.floor(dateDiff / 60)} min`;\n } else if (dateDiff < secsInDay) {\n return this.message.date.toLocaleTimeString();\n }\n return this.message.date.toLocaleString();\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Message.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\nconst marked = require('marked');\n\nconst renderer = new marked.Renderer();\n\nrenderer.link = function link(href, title, text) {\n return `
    ${text}`;\n};\n\nexport default {\n name: 'message-text',\n props: ['message'],\n computed: {\n shouldConvertUrlToLinks() {\n return this.$store.state.config.ui.convertUrlToLinksInBotMessages;\n },\n shouldStripTags() {\n return this.$store.state.config.ui.stripTagsFromBotMessages;\n },\n AllowSuperDangerousHTMLInMessage() {\n return this.$store.state.config.ui.AllowSuperDangerousHTMLInMessage;\n },\n altHtmlMessage() {\n let out = false;\n if (this.message.alts) {\n if (this.message.alts.html) {\n out = this.message.alts.html;\n } else if (this.message.alts.markdown) {\n out = marked(this.message.alts.markdown, { renderer });\n }\n }\n return out;\n },\n shouldRenderAsHtml() {\n return (this.message.type === 'bot' && this.shouldConvertUrlToLinks);\n },\n botMessageAsHtml() {\n // Security Note: Make sure that the content is escaped according\n // to context (e.g. URL, HTML). This is rendered as HTML\n const messageText = this.stripTagsFromMessage(this.message.text);\n const messageWithLinks = this.botMessageWithLinks(messageText);\n return messageWithLinks;\n },\n },\n methods: {\n encodeAsHtml(value) {\n return value\n .replace(/&/g, '&')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n .replace(//g, '>');\n },\n botMessageWithLinks(messageText) {\n const linkReplacers = [\n // The regex in the objects of linkReplacers should return a single\n // reference (from parenthesis) with the whole address\n // The replace function takes a matched url and returns the\n // hyperlink that will be replaced in the message\n {\n type: 'web',\n regex: new RegExp(\n '\\\\b((?:https?://\\\\w{1}|www\\\\.)(?:[\\\\w-.]){2,256}' +\n '(?:[\\\\w._~:/?#@!$&()*+,;=[\\'\\\\]-]){0,256})',\n 'im',\n ),\n replace: (item) => {\n const url = (!/^https?:\\/\\//.test(item)) ? `http://${item}` : item;\n return '${this.encodeAsHtml(item)}`;\n },\n },\n ];\n // TODO avoid double HTML encoding when there's more than 1 linkReplacer\n return linkReplacers\n .reduce(\n (message, replacer) =>\n // splits the message into an array containing content chunks\n // and links. Content chunks will be the even indexed items in the\n // array (or empty string when applicable).\n // Links (if any) will be the odd members of the array since the\n // regex keeps references.\n message.split(replacer.regex)\n .reduce(\n (messageAccum, item, index, array) => {\n let messageResult = '';\n if ((index % 2) === 0) {\n const urlItem = ((index + 1) === array.length) ?\n '' : replacer.replace(array[index + 1]);\n messageResult = `${this.encodeAsHtml(item)}${urlItem}`;\n }\n return messageAccum + messageResult;\n },\n '',\n ),\n messageText,\n );\n },\n // used for stripping SSML (and other) tags from bot responses\n stripTagsFromMessage(messageText) {\n const doc = document.implementation.createHTMLDocument('').body;\n doc.innerHTML = messageText;\n return doc.textContent || doc.innerText || '';\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/MessageText.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\nexport default {\n name: 'response-card',\n props: ['response-card'],\n data() {\n return {\n hasButtonBeenClicked: false,\n };\n },\n computed: {\n },\n methods: {\n onButtonClick(value) {\n this.hasButtonBeenClicked = true;\n const message = {\n type: 'human',\n text: value,\n };\n\n this.$store.dispatch('postTextMessage', message);\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/ResponseCard.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\nexport default {\n name: 'messageLoading',\n data() {\n return {\n progress: '.',\n };\n },\n computed: {\n },\n methods: {\n },\n created() {\n this.interval = setInterval(() => {\n if (this.progress.length > 2) {\n this.progress = '.';\n } else {\n this.progress += '.';\n }\n }, 500);\n },\n destroyed() {\n clearInterval(this.interval);\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/MessageLoading.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\nimport RecorderStatus from '@/components/RecorderStatus';\n\nexport default {\n name: 'input-container',\n data() {\n return {\n textInput: '',\n isTextFieldFocused: false,\n shouldShowTooltip: false,\n // workaround: vuetify tooltips doesn't seem to support touch events\n tooltipEventHandlers: {\n mouseenter: this.onInputButtonHoverEnter,\n mouseleave: this.onInputButtonHoverLeave,\n touchstart: this.onInputButtonHoverEnter,\n touchend: this.onInputButtonHoverLeave,\n touchcancel: this.onInputButtonHoverLeave,\n },\n };\n },\n props: ['textInputPlaceholder', 'initialSpeechInstruction'],\n components: {\n RecorderStatus,\n },\n computed: {\n isBotSpeaking() {\n return this.$store.state.botAudio.isSpeaking;\n },\n isSpeechConversationGoing() {\n return this.$store.state.recState.isConversationGoing;\n },\n isMicButtonDisabled() {\n return this.isMicMuted;\n },\n isMicMuted() {\n return this.$store.state.recState.isMicMuted;\n },\n isRecorderSupported() {\n return this.$store.state.recState.isRecorderSupported;\n },\n isRecorderEnabled() {\n return this.$store.state.recState.isRecorderEnabled;\n },\n isSendButtonDisabled() {\n return this.textInput.length < 1;\n },\n micButtonIcon() {\n if (this.isMicMuted) {\n return 'mic_off';\n }\n if (this.isBotSpeaking || this.isSpeechConversationGoing) {\n return 'stop';\n }\n return 'mic';\n },\n inputButtonTooltip() {\n if (this.shouldShowSendButton) {\n return 'send';\n }\n if (this.isMicMuted) {\n return 'mic seems to be muted';\n }\n if (this.isBotSpeaking || this.isSpeechConversationGoing) {\n return 'interrupt';\n }\n return 'click to use voice';\n },\n shouldShowSendButton() {\n return (\n (this.textInput.length && this.isTextFieldFocused) ||\n (!this.isRecorderSupported || !this.isRecorderEnabled)\n );\n },\n shouldShowTextInput() {\n return !(this.isBotSpeaking || this.isSpeechConversationGoing);\n },\n },\n methods: {\n onInputButtonHoverEnter() {\n this.shouldShowTooltip = true;\n },\n onInputButtonHoverLeave() {\n this.shouldShowTooltip = false;\n },\n onMicClick() {\n this.onInputButtonHoverLeave();\n if (this.isBotSpeaking || this.isSpeechConversationGoing) {\n return this.$store.dispatch('interruptSpeechConversation');\n }\n if (!this.isSpeechConversationGoing) {\n return this.startSpeechConversation();\n }\n\n return Promise.resolve();\n },\n onTextFieldFocus() {\n this.isTextFieldFocused = true;\n },\n onTextFieldBlur() {\n if (!this.textInput.length && this.isTextFieldFocused) {\n this.isTextFieldFocused = false;\n }\n },\n playInitialInstruction() {\n const isInitialState = ['', 'Fulfilled', 'Failed']\n .some(initialState => (\n this.$store.state.lex.dialogState === initialState\n ));\n\n return (isInitialState) ?\n this.$store.dispatch(\n 'pollySynthesizeSpeech',\n this.initialSpeechInstruction,\n ) :\n Promise.resolve();\n },\n postTextMessage() {\n this.onInputButtonHoverLeave();\n this.textInput = this.textInput.trim();\n // empty string\n if (!this.textInput.length) {\n return Promise.resolve();\n }\n\n const message = {\n type: 'human',\n text: this.textInput,\n };\n\n return this.$store.dispatch('postTextMessage', message)\n .then(() => {\n this.textInput = '';\n });\n },\n startSpeechConversation() {\n if (this.isMicMuted) {\n return Promise.resolve();\n }\n return this.setAutoPlay()\n .then(() => this.playInitialInstruction())\n .then(() => this.$store.dispatch('startConversation'))\n .catch((error) => {\n console.error('error in startSpeechConversation', error);\n const errorMessage = (this.$store.state.config.ui.showErrorDetails) ?\n ` ${error}` : '';\n\n this.$store.dispatch(\n 'pushErrorMessage',\n \"Sorry, I couldn't start the conversation. Please try again.\" +\n `${errorMessage}`,\n );\n });\n },\n /**\n * Set auto-play attribute on audio element\n * On mobile, Audio nodes do not autoplay without user interaction.\n * To workaround that requirement, this plays a short silent audio mp3/ogg\n * as a reponse to a click. This silent audio is initialized as the src\n * of the audio node. Subsequent play on the same audio now\n * don't require interaction so this is only done once.\n */\n setAutoPlay() {\n if (this.$store.state.botAudio.autoPlay) {\n return Promise.resolve();\n }\n return this.$store.dispatch('setAudioAutoPlay');\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/InputContainer.vue","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\nexport default {\n name: 'recorder-status',\n data() {\n return ({\n volume: 0,\n volumeIntervalId: null,\n audioPlayPercent: 0,\n audioIntervalId: null,\n });\n },\n computed: {\n isSpeechConversationGoing() {\n return this.isConversationGoing;\n },\n isProcessing() {\n return (\n this.isSpeechConversationGoing &&\n !this.isRecording &&\n !this.isBotSpeaking\n );\n },\n statusText() {\n if (this.isInterrupting) {\n return 'Interrupting...';\n }\n if (this.canInterruptBotPlayback) {\n return 'Say \"skip\" and I\\'ll listen for your answer...';\n }\n if (this.isMicMuted) {\n return 'Microphone seems to be muted...';\n }\n if (this.isRecording) {\n return 'Listening...';\n }\n if (this.isBotSpeaking) {\n return 'Playing audio...';\n }\n if (this.isSpeechConversationGoing) {\n return 'Processing...';\n }\n if (this.isRecorderSupported) {\n return 'Click on the mic';\n }\n return '';\n },\n canInterruptBotPlayback() {\n return this.$store.state.botAudio.canInterrupt;\n },\n isBotSpeaking() {\n return this.$store.state.botAudio.isSpeaking;\n },\n isConversationGoing() {\n return this.$store.state.recState.isConversationGoing;\n },\n isInterrupting() {\n return (\n this.$store.state.recState.isInterrupting ||\n this.$store.state.botAudio.isInterrupting\n );\n },\n isMicMuted() {\n return this.$store.state.recState.isMicMuted;\n },\n isRecorderSupported() {\n return this.$store.state.recState.isRecorderSupported;\n },\n isRecording() {\n return this.$store.state.recState.isRecording;\n },\n },\n methods: {\n enterMeter() {\n const intervalTimeInMs = 50;\n this.volumeIntervalId = setInterval(() => {\n this.$store.dispatch('getRecorderVolume')\n .then((volume) => {\n this.volume = volume.instant.toFixed(4);\n });\n }, intervalTimeInMs);\n },\n leaveMeter() {\n if (this.volumeIntervalId) {\n clearInterval(this.volumeIntervalId);\n }\n },\n enterAudioPlay() {\n const intervalTimeInMs = 20;\n this.audioIntervalId = setInterval(() => {\n this.$store.dispatch('getAudioProperties')\n .then(({ end = 0, duration = 0 }) => {\n const percent = (duration <= 0) ? 0 : (end / duration) * 100;\n this.audioPlayPercent = (Math.ceil(percent / 10) * 10) + 5;\n });\n }, intervalTimeInMs);\n },\n leaveAudioPlay() {\n if (this.audioIntervalId) {\n this.audioPlayPercent = 0;\n clearInterval(this.audioIntervalId);\n }\n },\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/RecorderStatus.vue","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 72\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/slicedToArray.js\n// module id = 73\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/createClass.js\n// module id = 74\n// module chunks = 0","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\n/**\n * Entry point to the lex-web-ui Vue plugin\n * Exports Loader as the plugin constructor\n * and Store as store that can be used with Vuex.Store()\n */\nimport Vue from 'vue';\nimport Vuex from 'vuex';\nimport { Config as AWSConfig, CognitoIdentityCredentials }\n from 'aws-sdk/global';\nimport LexRuntime from 'aws-sdk/clients/lexruntime';\nimport Polly from 'aws-sdk/clients/polly';\n\nimport LexWeb from '@/components/LexWeb';\nimport VuexStore from '@/store';\n\nimport { config as defaultConfig, mergeConfig } from '@/config';\n\n/**\n * Vue Component\n */\nconst Component = {\n name: 'lex-web-ui',\n template: '',\n components: { LexWeb },\n};\n\nconst loadingComponent = {\n template: '

    Loading. Please wait...

    ',\n};\nconst errorComponent = {\n template: '

    An error ocurred...

    ',\n};\n\n/**\n * Vue Asynchonous Component\n */\nconst AsyncComponent = ({\n component = Promise.resolve(Component),\n loading = loadingComponent,\n error = errorComponent,\n delay = 200,\n timeout = 10000,\n}) => ({\n // must be a promise\n component,\n // A component to use while the async component is loading\n loading,\n // A component to use if the load fails\n error,\n // Delay before showing the loading component. Default: 200ms.\n delay,\n // The error component will be displayed if a timeout is\n // provided and exceeded. Default: 10000ms.\n timeout,\n});\n\n/**\n * Vue Plugin\n */\nexport const Plugin = {\n install(VueConstructor, {\n name = '$lexWebUi',\n componentName = 'lex-web-ui',\n awsConfig,\n lexRuntimeClient,\n pollyClient,\n component = AsyncComponent,\n config = defaultConfig,\n }) {\n if (name in VueConstructor) {\n console.warn('plugin should only be used once');\n }\n // values to be added to custom vue property\n const value = {\n config,\n awsConfig,\n lexRuntimeClient,\n pollyClient,\n };\n // add custom property to Vue\n // for example, access this in a component via this.$lexWebUi\n Object.defineProperty(VueConstructor.prototype, name, { value });\n // register as a global component\n VueConstructor.component(componentName, component);\n },\n};\n\nexport const Store = VuexStore;\n\n/**\n * Main Class\n */\nexport class Loader {\n constructor(config = {}) {\n const mergedConfig = mergeConfig(defaultConfig, config);\n\n const VueConstructor = (window.Vue) ? window.Vue : Vue;\n if (!VueConstructor) {\n throw new Error('unable to find Vue');\n }\n\n const VuexConstructor = (window.Vuex) ? window.Vuex : Vuex;\n if (!VuexConstructor) {\n throw new Error('unable to find Vuex');\n }\n\n const AWSConfigConstructor = (window.AWS && window.AWS.Config) ?\n window.AWS.Config :\n AWSConfig;\n\n const CognitoConstructor =\n (window.AWS && window.AWS.CognitoIdentityCredentials) ?\n window.AWS.CognitoIdentityCredentials :\n CognitoIdentityCredentials;\n\n const PollyConstructor = (window.AWS && window.AWS.Polly) ?\n window.AWS.Polly :\n Polly;\n\n const LexRuntimeConstructor = (window.AWS && window.AWS.LexRuntime) ?\n window.AWS.LexRuntime :\n LexRuntime;\n\n if (!AWSConfigConstructor || !CognitoConstructor || !PollyConstructor\n || !LexRuntimeConstructor) {\n throw new Error('unable to find AWS SDK');\n }\n\n const credentials = new CognitoConstructor(\n { IdentityPoolId: mergedConfig.cognito.poolId },\n { region: mergedConfig.region || 'us-east-1' },\n );\n\n const awsConfig = new AWSConfigConstructor({\n region: mergedConfig.region || 'us-east-1',\n credentials,\n });\n\n const lexRuntimeClient = new LexRuntimeConstructor(awsConfig);\n const pollyClient = (\n typeof mergedConfig.recorder === 'undefined' ||\n (mergedConfig.recorder && mergedConfig.recorder.enable !== false)\n ) ? new PollyConstructor(awsConfig) : null;\n\n // TODO name space store\n this.store = new VuexConstructor.Store({ ...VuexStore });\n\n VueConstructor.use(Plugin, {\n config: mergedConfig,\n awsConfig,\n lexRuntimeClient,\n pollyClient,\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lex-web-ui.js","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/assign.js\n// module id = 76\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.assign.js\n// module id = 77\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-assign.js\n// module id = 78\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 79\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 80\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 81\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 82\n// module chunks = 0","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.promise');\nrequire('../modules/es7.promise.finally');\nrequire('../modules/es7.promise.try');\nmodule.exports = require('../modules/_core').Promise;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/promise.js\n// module id = 83\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 84\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 85\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 86\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 87\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 88\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 89\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 90\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value);\n if (domain) domain.exit();\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.promise.js\n// module id = 91\n// module chunks = 0","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-instance.js\n// module id = 92\n// module chunks = 0","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_for-of.js\n// module id = 93\n// module chunks = 0","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_invoke.js\n// module id = 94\n// module chunks = 0","var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n var promise = Promise.resolve();\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_microtask.js\n// module id = 95\n// module chunks = 0","var hide = require('./_hide');\nmodule.exports = function (target, src, safe) {\n for (var key in src) {\n if (safe && target[key]) target[key] = src[key];\n else hide(target, key, src[key]);\n } return target;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine-all.js\n// module id = 96\n// module chunks = 0","'use strict';\nvar global = require('./_global');\nvar core = require('./_core');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-species.js\n// module id = 97\n// module chunks = 0","// https://github.com/tc39/proposal-promise-finally\n'use strict';\nvar $export = require('./_export');\nvar core = require('./_core');\nvar global = require('./_global');\nvar speciesConstructor = require('./_species-constructor');\nvar promiseResolve = require('./_promise-resolve');\n\n$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {\n var C = speciesConstructor(this, core.Promise || global.Promise);\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.promise.finally.js\n// module id = 98\n// module chunks = 0","'use strict';\n// https://github.com/tc39/proposal-promise-try\nvar $export = require('./_export');\nvar newPromiseCapability = require('./_new-promise-capability');\nvar perform = require('./_perform');\n\n$export($export.S, 'Promise', { 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapability.f(this);\n var result = perform(callbackfn);\n (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);\n return promiseCapability.promise;\n} });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.promise.try.js\n// module id = 99\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_100__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"vue\"\n// module id = 100\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_101__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"vuex\"\n// module id = 101\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_102__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"aws-sdk/global\"\n// module id = 102\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_103__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"aws-sdk/clients/lexruntime\"\n// module id = 103\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_104__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"aws-sdk/clients/polly\"\n// module id = 104\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7fdf03b2\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./LexWeb.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./LexWeb.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./LexWeb.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7fdf03b2\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./LexWeb.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/LexWeb.vue\n// module id = 105\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-7fdf03b2\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/LexWeb.vue\n// module id = 106\n// module chunks = 0","require('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/_core').Object.keys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/keys.js\n// module id = 107\n// module chunks = 0","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.keys.js\n// module id = 108\n// module chunks = 0","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 109\n// module chunks = 0","var normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ToolbarContainer.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ToolbarContainer.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-325dde92\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./ToolbarContainer.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/ToolbarContainer.vue\n// module id = 110\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-toolbar',{attrs:{\"color\":_vm.toolbarColor,\"app\":\"\",\"dark\":\"\",\"dense\":\"\",\"fixed\":\"\"}},[(_vm.toolbarLogo)?_c('img',{attrs:{\"src\":_vm.toolbarLogo}}):_vm._e(),_vm._v(\" \"),_c('v-toolbar-title',{staticClass:\"hidden-xs-and-down\"},[_vm._v(\"\\n \"+_vm._s(_vm.toolbarTitle)+\"\\n \")]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('v-tooltip',{attrs:{\"activator\":\".min-max-toggle\",\"left\":\"\"},model:{value:(_vm.shouldShowTooltip),callback:function ($$v) {_vm.shouldShowTooltip=$$v},expression:\"shouldShowTooltip\"}},[_c('span',{attrs:{\"id\":\"min-max-tooltip\"}},[_vm._v(_vm._s(_vm.toolTipMinimize))])]),_vm._v(\" \"),(_vm.$store.state.isRunningEmbedded)?_c('v-btn',_vm._g({staticClass:\"min-max-toggle\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.toggleMinimize}},_vm.tooltipEventHandlers),[_c('v-icon',[_vm._v(\"\\n \"+_vm._s(_vm.isUiMinimized ? 'arrow_drop_up' : 'arrow_drop_down')+\"\\n \")])],1):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-325dde92\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/ToolbarContainer.vue\n// module id = 111\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6f155304\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MessageList.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageList.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageList.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6f155304\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./MessageList.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6f155304\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/MessageList.vue\n// module id = 112\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-6f155304\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/MessageList.vue\n// module id = 113\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-46cd8705\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Message.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Message.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Message.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-46cd8705\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Message.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-46cd8705\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Message.vue\n// module id = 114\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-46cd8705\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Message.vue\n// module id = 115\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-4f01cfd4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MessageText.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageText.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageText.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-4f01cfd4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./MessageText.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-4f01cfd4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/MessageText.vue\n// module id = 116\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-4f01cfd4\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/MessageText.vue\n// module id = 117\n// module chunks = 0","/**\n * marked - a markdown parser\n * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/markedjs/marked\n */\n\n;(function(root) {\n'use strict';\n\n/**\n * Block-Level Grammar\n */\n\nvar block = {\n newline: /^\\n+/,\n code: /^( {4}[^\\n]+\\n*)+/,\n fences: noop,\n hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)/,\n heading: /^ *(#{1,6}) *([^\\n]+?) *#* *(?:\\n+|$)/,\n nptable: noop,\n blockquote: /^( {0,3}> ?(paragraph|[^\\n]*)(?:\\n|$))+/,\n list: /^( *)(bull) [\\s\\S]+?(?:hr|def|\\n{2,}(?! )(?!\\1bull )\\n*|\\s*$)/,\n html: /^ *(?:comment *(?:\\n|\\s*$)|closed *(?:\\n{2,}|\\s*$)|closing *(?:\\n{2,}|\\s*$))/,\n def: /^ {0,3}\\[(label)\\]: *\\n? *]+)>?(?:(?: +\\n? *| *\\n *)(title))? *(?:\\n+|$)/,\n table: noop,\n lheading: /^([^\\n]+)\\n *(=|-){2,} *(?:\\n+|$)/,\n paragraph: /^([^\\n]+(?:\\n?(?!hr|heading|lheading| {0,3}>|tag)[^\\n]+)+)/,\n text: /^[^\\n]+/\n};\n\nblock._label = /(?:\\\\[\\[\\]]|[^\\[\\]])+/;\nblock._title = /(?:\"(?:\\\\\"|[^\"]|\"[^\"\\n]*\")*\"|'\\n?(?:[^'\\n]+\\n?)*'|\\([^()]*\\))/;\nblock.def = edit(block.def)\n .replace('label', block._label)\n .replace('title', block._title)\n .getRegex();\n\nblock.bullet = /(?:[*+-]|\\d+\\.)/;\nblock.item = /^( *)(bull) [^\\n]*(?:\\n(?!\\1bull )[^\\n]*)*/;\nblock.item = edit(block.item, 'gm')\n .replace(/bull/g, block.bullet)\n .getRegex();\n\nblock.list = edit(block.list)\n .replace(/bull/g, block.bullet)\n .replace('hr', '\\\\n+(?=\\\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\\\* *){3,})(?:\\\\n+|$))')\n .replace('def', '\\\\n+(?=' + block.def.source + ')')\n .getRegex();\n\nblock._tag = '(?!(?:'\n + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'\n + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'\n + '|span|br|wbr|ins|del|img)\\\\b)\\\\w+(?!:|[^\\\\w\\\\s@]*@)\\\\b';\n\nblock.html = edit(block.html)\n .replace('comment', //)\n .replace('closed', /<(tag)[\\s\\S]+?<\\/\\1>/)\n .replace('closing', /\\s]*)*?\\/?>/)\n .replace(/tag/g, block._tag)\n .getRegex();\n\nblock.paragraph = edit(block.paragraph)\n .replace('hr', block.hr)\n .replace('heading', block.heading)\n .replace('lheading', block.lheading)\n .replace('tag', '<' + block._tag)\n .getRegex();\n\nblock.blockquote = edit(block.blockquote)\n .replace('paragraph', block.paragraph)\n .getRegex();\n\n/**\n * Normal Block Grammar\n */\n\nblock.normal = merge({}, block);\n\n/**\n * GFM Block Grammar\n */\n\nblock.gfm = merge({}, block.normal, {\n fences: /^ *(`{3,}|~{3,})[ \\.]*(\\S+)? *\\n([\\s\\S]*?)\\n? *\\1 *(?:\\n+|$)/,\n paragraph: /^/,\n heading: /^ *(#{1,6}) +([^\\n]+?) *#* *(?:\\n+|$)/\n});\n\nblock.gfm.paragraph = edit(block.paragraph)\n .replace('(?!', '(?!'\n + block.gfm.fences.source.replace('\\\\1', '\\\\2') + '|'\n + block.list.source.replace('\\\\1', '\\\\3') + '|')\n .getRegex();\n\n/**\n * GFM + Tables Block Grammar\n */\n\nblock.tables = merge({}, block.gfm, {\n nptable: /^ *(\\S.*\\|.*)\\n *([-:]+ *\\|[-| :]*)\\n((?:.*\\|.*(?:\\n|$))*)\\n*/,\n table: /^ *\\|(.+)\\n *\\|( *[-:]+[-| :]*)\\n((?: *\\|.*(?:\\n|$))*)\\n*/\n});\n\n/**\n * Block Lexer\n */\n\nfunction Lexer(options) {\n this.tokens = [];\n this.tokens.links = {};\n this.options = options || marked.defaults;\n this.rules = block.normal;\n\n if (this.options.gfm) {\n if (this.options.tables) {\n this.rules = block.tables;\n } else {\n this.rules = block.gfm;\n }\n }\n}\n\n/**\n * Expose Block Rules\n */\n\nLexer.rules = block;\n\n/**\n * Static Lex Method\n */\n\nLexer.lex = function(src, options) {\n var lexer = new Lexer(options);\n return lexer.lex(src);\n};\n\n/**\n * Preprocessing\n */\n\nLexer.prototype.lex = function(src) {\n src = src\n .replace(/\\r\\n|\\r/g, '\\n')\n .replace(/\\t/g, ' ')\n .replace(/\\u00a0/g, ' ')\n .replace(/\\u2424/g, '\\n');\n\n return this.token(src, true);\n};\n\n/**\n * Lexing\n */\n\nLexer.prototype.token = function(src, top) {\n src = src.replace(/^ +$/gm, '');\n var next,\n loose,\n cap,\n bull,\n b,\n item,\n space,\n i,\n tag,\n l,\n isordered;\n\n while (src) {\n // newline\n if (cap = this.rules.newline.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[0].length > 1) {\n this.tokens.push({\n type: 'space'\n });\n }\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n cap = cap[0].replace(/^ {4}/gm, '');\n this.tokens.push({\n type: 'code',\n text: !this.options.pedantic\n ? cap.replace(/\\n+$/, '')\n : cap\n });\n continue;\n }\n\n // fences (gfm)\n if (cap = this.rules.fences.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'code',\n lang: cap[2],\n text: cap[3] || ''\n });\n continue;\n }\n\n // heading\n if (cap = this.rules.heading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[1].length,\n text: cap[2]\n });\n continue;\n }\n\n // table no leading pipe (gfm)\n if (top && (cap = this.rules.nptable.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i].split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // hr\n if (cap = this.rules.hr.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'hr'\n });\n continue;\n }\n\n // blockquote\n if (cap = this.rules.blockquote.exec(src)) {\n src = src.substring(cap[0].length);\n\n this.tokens.push({\n type: 'blockquote_start'\n });\n\n cap = cap[0].replace(/^ *> ?/gm, '');\n\n // Pass `top` to keep the current\n // \"toplevel\" state. This is exactly\n // how markdown.pl works.\n this.token(cap, top);\n\n this.tokens.push({\n type: 'blockquote_end'\n });\n\n continue;\n }\n\n // list\n if (cap = this.rules.list.exec(src)) {\n src = src.substring(cap[0].length);\n bull = cap[2];\n isordered = bull.length > 1;\n\n this.tokens.push({\n type: 'list_start',\n ordered: isordered,\n start: isordered ? +bull : ''\n });\n\n // Get each top-level item.\n cap = cap[0].match(this.rules.item);\n\n next = false;\n l = cap.length;\n i = 0;\n\n for (; i < l; i++) {\n item = cap[i];\n\n // Remove the list item's bullet\n // so it is seen as the next token.\n space = item.length;\n item = item.replace(/^ *([*+-]|\\d+\\.) +/, '');\n\n // Outdent whatever the\n // list item contains. Hacky.\n if (~item.indexOf('\\n ')) {\n space -= item.length;\n item = !this.options.pedantic\n ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')\n : item.replace(/^ {1,4}/gm, '');\n }\n\n // Determine whether the next list item belongs here.\n // Backpedal if it does not belong in this list.\n if (this.options.smartLists && i !== l - 1) {\n b = block.bullet.exec(cap[i + 1])[0];\n if (bull !== b && !(bull.length > 1 && b.length > 1)) {\n src = cap.slice(i + 1).join('\\n') + src;\n i = l - 1;\n }\n }\n\n // Determine whether item is loose or not.\n // Use: /(^|\\n)(?! )[^\\n]+\\n\\n(?!\\s*$)/\n // for discount behavior.\n loose = next || /\\n\\n(?!\\s*$)/.test(item);\n if (i !== l - 1) {\n next = item.charAt(item.length - 1) === '\\n';\n if (!loose) loose = next;\n }\n\n this.tokens.push({\n type: loose\n ? 'loose_item_start'\n : 'list_item_start'\n });\n\n // Recurse.\n this.token(item, false);\n\n this.tokens.push({\n type: 'list_item_end'\n });\n }\n\n this.tokens.push({\n type: 'list_end'\n });\n\n continue;\n }\n\n // html\n if (cap = this.rules.html.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: this.options.sanitize\n ? 'paragraph'\n : 'html',\n pre: !this.options.sanitizer\n && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'),\n text: cap[0]\n });\n continue;\n }\n\n // def\n if (top && (cap = this.rules.def.exec(src))) {\n src = src.substring(cap[0].length);\n if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1);\n tag = cap[1].toLowerCase();\n if (!this.tokens.links[tag]) {\n this.tokens.links[tag] = {\n href: cap[2],\n title: cap[3]\n };\n }\n continue;\n }\n\n // table (gfm)\n if (top && (cap = this.rules.table.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/(?: *\\| *)?\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i]\n .replace(/^ *\\| *| *\\| *$/g, '')\n .split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // lheading\n if (cap = this.rules.lheading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[2] === '=' ? 1 : 2,\n text: cap[1]\n });\n continue;\n }\n\n // top-level paragraph\n if (top && (cap = this.rules.paragraph.exec(src))) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'paragraph',\n text: cap[1].charAt(cap[1].length - 1) === '\\n'\n ? cap[1].slice(0, -1)\n : cap[1]\n });\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n // Top-level should never reach here.\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'text',\n text: cap[0]\n });\n continue;\n }\n\n if (src) {\n throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return this.tokens;\n};\n\n/**\n * Inline-Level Grammar\n */\n\nvar inline = {\n escape: /^\\\\([\\\\`*{}\\[\\]()#+\\-.!_>])/,\n autolink: /^<(scheme:[^\\s\\x00-\\x1f<>]*|email)>/,\n url: noop,\n tag: /^|^<\\/?[a-zA-Z0-9\\-]+(?:\"[^\"]*\"|'[^']*'|\\s[^<'\">\\/\\s]*)*?\\/?>/,\n link: /^!?\\[(inside)\\]\\(href\\)/,\n reflink: /^!?\\[(inside)\\]\\s*\\[([^\\]]*)\\]/,\n nolink: /^!?\\[((?:\\[[^\\[\\]]*\\]|\\\\[\\[\\]]|[^\\[\\]])*)\\]/,\n strong: /^__([\\s\\S]+?)__(?!_)|^\\*\\*([\\s\\S]+?)\\*\\*(?!\\*)/,\n em: /^_([^\\s_](?:[^_]|__)+?[^\\s_])_\\b|^\\*((?:\\*\\*|[^*])+?)\\*(?!\\*)/,\n code: /^(`+)\\s*([\\s\\S]*?[^`]?)\\s*\\1(?!`)/,\n br: /^ {2,}\\n(?!\\s*$)/,\n del: noop,\n text: /^[\\s\\S]+?(?=[\\\\?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*/;\n\ninline.link = edit(inline.link)\n .replace('inside', inline._inside)\n .replace('href', inline._href)\n .getRegex();\n\ninline.reflink = edit(inline.reflink)\n .replace('inside', inline._inside)\n .getRegex();\n\n/**\n * Normal Inline Grammar\n */\n\ninline.normal = merge({}, inline);\n\n/**\n * Pedantic Inline Grammar\n */\n\ninline.pedantic = merge({}, inline.normal, {\n strong: /^__(?=\\S)([\\s\\S]*?\\S)__(?!_)|^\\*\\*(?=\\S)([\\s\\S]*?\\S)\\*\\*(?!\\*)/,\n em: /^_(?=\\S)([\\s\\S]*?\\S)_(?!_)|^\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)/\n});\n\n/**\n * GFM Inline Grammar\n */\n\ninline.gfm = merge({}, inline.normal, {\n escape: edit(inline.escape).replace('])', '~|])').getRegex(),\n url: edit(/^((?:ftp|https?):\\/\\/|www\\.)(?:[a-zA-Z0-9\\-]+\\.?)+[^\\s<]*|^email/)\n .replace('email', inline._email)\n .getRegex(),\n _backpedal: /(?:[^?!.,:;*_~()&]+|\\([^)]*\\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,\n del: /^~~(?=\\S)([\\s\\S]*?\\S)~~/,\n text: edit(inline.text)\n .replace(']|', '~]|')\n .replace('|', '|https?://|ftp://|www\\\\.|[a-zA-Z0-9.!#$%&\\'*+/=?^_`{\\\\|}~-]+@|')\n .getRegex()\n});\n\n/**\n * GFM + Line Breaks Inline Grammar\n */\n\ninline.breaks = merge({}, inline.gfm, {\n br: edit(inline.br).replace('{2,}', '*').getRegex(),\n text: edit(inline.gfm.text).replace('{2,}', '*').getRegex()\n});\n\n/**\n * Inline Lexer & Compiler\n */\n\nfunction InlineLexer(links, options) {\n this.options = options || marked.defaults;\n this.links = links;\n this.rules = inline.normal;\n this.renderer = this.options.renderer || new Renderer();\n this.renderer.options = this.options;\n\n if (!this.links) {\n throw new Error('Tokens array requires a `links` property.');\n }\n\n if (this.options.gfm) {\n if (this.options.breaks) {\n this.rules = inline.breaks;\n } else {\n this.rules = inline.gfm;\n }\n } else if (this.options.pedantic) {\n this.rules = inline.pedantic;\n }\n}\n\n/**\n * Expose Inline Rules\n */\n\nInlineLexer.rules = inline;\n\n/**\n * Static Lexing/Compiling Method\n */\n\nInlineLexer.output = function(src, links, options) {\n var inline = new InlineLexer(links, options);\n return inline.output(src);\n};\n\n/**\n * Lexing/Compiling\n */\n\nInlineLexer.prototype.output = function(src) {\n var out = '',\n link,\n text,\n href,\n cap;\n\n while (src) {\n // escape\n if (cap = this.rules.escape.exec(src)) {\n src = src.substring(cap[0].length);\n out += cap[1];\n continue;\n }\n\n // autolink\n if (cap = this.rules.autolink.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[2] === '@') {\n text = escape(this.mangle(cap[1]));\n href = 'mailto:' + text;\n } else {\n text = escape(cap[1]);\n href = text;\n }\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // url (gfm)\n if (!this.inLink && (cap = this.rules.url.exec(src))) {\n cap[0] = this.rules._backpedal.exec(cap[0])[0];\n src = src.substring(cap[0].length);\n if (cap[2] === '@') {\n text = escape(cap[0]);\n href = 'mailto:' + text;\n } else {\n text = escape(cap[0]);\n if (cap[1] === 'www.') {\n href = 'http://' + text;\n } else {\n href = text;\n }\n }\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // tag\n if (cap = this.rules.tag.exec(src)) {\n if (!this.inLink && /^/i.test(cap[0])) {\n this.inLink = false;\n }\n src = src.substring(cap[0].length);\n out += this.options.sanitize\n ? this.options.sanitizer\n ? this.options.sanitizer(cap[0])\n : escape(cap[0])\n : cap[0]\n continue;\n }\n\n // link\n if (cap = this.rules.link.exec(src)) {\n src = src.substring(cap[0].length);\n this.inLink = true;\n out += this.outputLink(cap, {\n href: cap[2],\n title: cap[3]\n });\n this.inLink = false;\n continue;\n }\n\n // reflink, nolink\n if ((cap = this.rules.reflink.exec(src))\n || (cap = this.rules.nolink.exec(src))) {\n src = src.substring(cap[0].length);\n link = (cap[2] || cap[1]).replace(/\\s+/g, ' ');\n link = this.links[link.toLowerCase()];\n if (!link || !link.href) {\n out += cap[0].charAt(0);\n src = cap[0].substring(1) + src;\n continue;\n }\n this.inLink = true;\n out += this.outputLink(cap, link);\n this.inLink = false;\n continue;\n }\n\n // strong\n if (cap = this.rules.strong.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.strong(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // em\n if (cap = this.rules.em.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.em(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.codespan(escape(cap[2].trim(), true));\n continue;\n }\n\n // br\n if (cap = this.rules.br.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.br();\n continue;\n }\n\n // del (gfm)\n if (cap = this.rules.del.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.del(this.output(cap[1]));\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.text(escape(this.smartypants(cap[0])));\n continue;\n }\n\n if (src) {\n throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return out;\n};\n\n/**\n * Compile Link\n */\n\nInlineLexer.prototype.outputLink = function(cap, link) {\n var href = escape(link.href),\n title = link.title ? escape(link.title) : null;\n\n return cap[0].charAt(0) !== '!'\n ? this.renderer.link(href, title, this.output(cap[1]))\n : this.renderer.image(href, title, escape(cap[1]));\n};\n\n/**\n * Smartypants Transformations\n */\n\nInlineLexer.prototype.smartypants = function(text) {\n if (!this.options.smartypants) return text;\n return text\n // em-dashes\n .replace(/---/g, '\\u2014')\n // en-dashes\n .replace(/--/g, '\\u2013')\n // opening singles\n .replace(/(^|[-\\u2014/(\\[{\"\\s])'/g, '$1\\u2018')\n // closing singles & apostrophes\n .replace(/'/g, '\\u2019')\n // opening doubles\n .replace(/(^|[-\\u2014/(\\[{\\u2018\\s])\"/g, '$1\\u201c')\n // closing doubles\n .replace(/\"/g, '\\u201d')\n // ellipses\n .replace(/\\.{3}/g, '\\u2026');\n};\n\n/**\n * Mangle Links\n */\n\nInlineLexer.prototype.mangle = function(text) {\n if (!this.options.mangle) return text;\n var out = '',\n l = text.length,\n i = 0,\n ch;\n\n for (; i < l; i++) {\n ch = text.charCodeAt(i);\n if (Math.random() > 0.5) {\n ch = 'x' + ch.toString(16);\n }\n out += '&#' + ch + ';';\n }\n\n return out;\n};\n\n/**\n * Renderer\n */\n\nfunction Renderer(options) {\n this.options = options || {};\n}\n\nRenderer.prototype.code = function(code, lang, escaped) {\n if (this.options.highlight) {\n var out = this.options.highlight(code, lang);\n if (out != null && out !== code) {\n escaped = true;\n code = out;\n }\n }\n\n if (!lang) {\n return '
    '\n      + (escaped ? code : escape(code, true))\n      + '\\n
    ';\n }\n\n return '
    '\n    + (escaped ? code : escape(code, true))\n    + '\\n
    \\n';\n};\n\nRenderer.prototype.blockquote = function(quote) {\n return '
    \\n' + quote + '
    \\n';\n};\n\nRenderer.prototype.html = function(html) {\n return html;\n};\n\nRenderer.prototype.heading = function(text, level, raw) {\n return ''\n + text\n + '\\n';\n};\n\nRenderer.prototype.hr = function() {\n return this.options.xhtml ? '
    \\n' : '
    \\n';\n};\n\nRenderer.prototype.list = function(body, ordered, start) {\n var type = ordered ? 'ol' : 'ul',\n startatt = (ordered && start !== 1) ? (' start=\"' + start + '\"') : '';\n return '<' + type + startatt + '>\\n' + body + '\\n';\n};\n\nRenderer.prototype.listitem = function(text) {\n return '
  • ' + text + '
  • \\n';\n};\n\nRenderer.prototype.paragraph = function(text) {\n return '

    ' + text + '

    \\n';\n};\n\nRenderer.prototype.table = function(header, body) {\n return '\\n'\n + '\\n'\n + header\n + '\\n'\n + '\\n'\n + body\n + '\\n'\n + '
    \\n';\n};\n\nRenderer.prototype.tablerow = function(content) {\n return '\\n' + content + '\\n';\n};\n\nRenderer.prototype.tablecell = function(content, flags) {\n var type = flags.header ? 'th' : 'td';\n var tag = flags.align\n ? '<' + type + ' style=\"text-align:' + flags.align + '\">'\n : '<' + type + '>';\n return tag + content + '\\n';\n};\n\n// span level renderer\nRenderer.prototype.strong = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.em = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.codespan = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.br = function() {\n return this.options.xhtml ? '
    ' : '
    ';\n};\n\nRenderer.prototype.del = function(text) {\n return '' + text + '';\n};\n\nRenderer.prototype.link = function(href, title, text) {\n if (this.options.sanitize) {\n try {\n var prot = decodeURIComponent(unescape(href))\n .replace(/[^\\w:]/g, '')\n .toLowerCase();\n } catch (e) {\n return text;\n }\n if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) {\n return text;\n }\n }\n if (this.options.baseUrl && !originIndependentUrl.test(href)) {\n href = resolveUrl(this.options.baseUrl, href);\n }\n var out = '
    ';\n return out;\n};\n\nRenderer.prototype.image = function(href, title, text) {\n if (this.options.baseUrl && !originIndependentUrl.test(href)) {\n href = resolveUrl(this.options.baseUrl, href);\n }\n var out = '\"'' : '>';\n return out;\n};\n\nRenderer.prototype.text = function(text) {\n return text;\n};\n\n/**\n * TextRenderer\n * returns only the textual part of the token\n */\n\nfunction TextRenderer() {}\n\n// no need for block level renderers\n\nTextRenderer.prototype.strong =\nTextRenderer.prototype.em =\nTextRenderer.prototype.codespan =\nTextRenderer.prototype.del =\nTextRenderer.prototype.text = function (text) {\n return text;\n}\n\nTextRenderer.prototype.link =\nTextRenderer.prototype.image = function(href, title, text) {\n return '' + text;\n}\n\nTextRenderer.prototype.br = function() {\n return '';\n}\n\n/**\n * Parsing & Compiling\n */\n\nfunction Parser(options) {\n this.tokens = [];\n this.token = null;\n this.options = options || marked.defaults;\n this.options.renderer = this.options.renderer || new Renderer();\n this.renderer = this.options.renderer;\n this.renderer.options = this.options;\n}\n\n/**\n * Static Parse Method\n */\n\nParser.parse = function(src, options) {\n var parser = new Parser(options);\n return parser.parse(src);\n};\n\n/**\n * Parse Loop\n */\n\nParser.prototype.parse = function(src) {\n this.inline = new InlineLexer(src.links, this.options);\n // use an InlineLexer with a TextRenderer to extract pure text\n this.inlineText = new InlineLexer(\n src.links,\n merge({}, this.options, {renderer: new TextRenderer()})\n );\n this.tokens = src.reverse();\n\n var out = '';\n while (this.next()) {\n out += this.tok();\n }\n\n return out;\n};\n\n/**\n * Next Token\n */\n\nParser.prototype.next = function() {\n return this.token = this.tokens.pop();\n};\n\n/**\n * Preview Next Token\n */\n\nParser.prototype.peek = function() {\n return this.tokens[this.tokens.length - 1] || 0;\n};\n\n/**\n * Parse Text Tokens\n */\n\nParser.prototype.parseText = function() {\n var body = this.token.text;\n\n while (this.peek().type === 'text') {\n body += '\\n' + this.next().text;\n }\n\n return this.inline.output(body);\n};\n\n/**\n * Parse Current Token\n */\n\nParser.prototype.tok = function() {\n switch (this.token.type) {\n case 'space': {\n return '';\n }\n case 'hr': {\n return this.renderer.hr();\n }\n case 'heading': {\n return this.renderer.heading(\n this.inline.output(this.token.text),\n this.token.depth,\n unescape(this.inlineText.output(this.token.text)));\n }\n case 'code': {\n return this.renderer.code(this.token.text,\n this.token.lang,\n this.token.escaped);\n }\n case 'table': {\n var header = '',\n body = '',\n i,\n row,\n cell,\n j;\n\n // header\n cell = '';\n for (i = 0; i < this.token.header.length; i++) {\n cell += this.renderer.tablecell(\n this.inline.output(this.token.header[i]),\n { header: true, align: this.token.align[i] }\n );\n }\n header += this.renderer.tablerow(cell);\n\n for (i = 0; i < this.token.cells.length; i++) {\n row = this.token.cells[i];\n\n cell = '';\n for (j = 0; j < row.length; j++) {\n cell += this.renderer.tablecell(\n this.inline.output(row[j]),\n { header: false, align: this.token.align[j] }\n );\n }\n\n body += this.renderer.tablerow(cell);\n }\n return this.renderer.table(header, body);\n }\n case 'blockquote_start': {\n body = '';\n\n while (this.next().type !== 'blockquote_end') {\n body += this.tok();\n }\n\n return this.renderer.blockquote(body);\n }\n case 'list_start': {\n body = '';\n var ordered = this.token.ordered,\n start = this.token.start;\n\n while (this.next().type !== 'list_end') {\n body += this.tok();\n }\n\n return this.renderer.list(body, ordered, start);\n }\n case 'list_item_start': {\n body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.token.type === 'text'\n ? this.parseText()\n : this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'loose_item_start': {\n body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'html': {\n var html = !this.token.pre && !this.options.pedantic\n ? this.inline.output(this.token.text)\n : this.token.text;\n return this.renderer.html(html);\n }\n case 'paragraph': {\n return this.renderer.paragraph(this.inline.output(this.token.text));\n }\n case 'text': {\n return this.renderer.paragraph(this.parseText());\n }\n }\n};\n\n/**\n * Helpers\n */\n\nfunction escape(html, encode) {\n return html\n .replace(!encode ? /&(?!#?\\w+;)/g : /&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\nfunction unescape(html) {\n // explicitly match decimal, hex, and named HTML entities\n return html.replace(/&(#(?:\\d+)|(?:#x[0-9A-Fa-f]+)|(?:\\w+));?/ig, function(_, n) {\n n = n.toLowerCase();\n if (n === 'colon') return ':';\n if (n.charAt(0) === '#') {\n return n.charAt(1) === 'x'\n ? String.fromCharCode(parseInt(n.substring(2), 16))\n : String.fromCharCode(+n.substring(1));\n }\n return '';\n });\n}\n\nfunction edit(regex, opt) {\n regex = regex.source;\n opt = opt || '';\n return {\n replace: function(name, val) {\n val = val.source || val;\n val = val.replace(/(^|[^\\[])\\^/g, '$1');\n regex = regex.replace(name, val);\n return this;\n },\n getRegex: function() {\n return new RegExp(regex, opt);\n }\n };\n}\n\nfunction resolveUrl(base, href) {\n if (!baseUrls[' ' + base]) {\n // we can ignore everything in base after the last slash of its path component,\n // but we might need to add _that_\n // https://tools.ietf.org/html/rfc3986#section-3\n if (/^[^:]+:\\/*[^/]*$/.test(base)) {\n baseUrls[' ' + base] = base + '/';\n } else {\n baseUrls[' ' + base] = base.replace(/[^/]*$/, '');\n }\n }\n base = baseUrls[' ' + base];\n\n if (href.slice(0, 2) === '//') {\n return base.replace(/:[\\s\\S]*/, ':') + href;\n } else if (href.charAt(0) === '/') {\n return base.replace(/(:\\/*[^/]*)[\\s\\S]*/, '$1') + href;\n } else {\n return base + href;\n }\n}\nvar baseUrls = {};\nvar originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;\n\nfunction noop() {}\nnoop.exec = noop;\n\nfunction merge(obj) {\n var i = 1,\n target,\n key;\n\n for (; i < arguments.length; i++) {\n target = arguments[i];\n for (key in target) {\n if (Object.prototype.hasOwnProperty.call(target, key)) {\n obj[key] = target[key];\n }\n }\n }\n\n return obj;\n}\n\n/**\n * Marked\n */\n\nfunction marked(src, opt, callback) {\n // throw error in case of non string input\n if (typeof src === 'undefined' || src === null) {\n throw new Error('marked(): input parameter is undefined or null');\n }\n if (typeof src !== 'string') {\n throw new Error('marked(): input parameter is of type '\n + Object.prototype.toString.call(src) + ', string expected');\n }\n\n if (callback || typeof opt === 'function') {\n if (!callback) {\n callback = opt;\n opt = null;\n }\n\n opt = merge({}, marked.defaults, opt || {});\n\n var highlight = opt.highlight,\n tokens,\n pending,\n i = 0;\n\n try {\n tokens = Lexer.lex(src, opt)\n } catch (e) {\n return callback(e);\n }\n\n pending = tokens.length;\n\n var done = function(err) {\n if (err) {\n opt.highlight = highlight;\n return callback(err);\n }\n\n var out;\n\n try {\n out = Parser.parse(tokens, opt);\n } catch (e) {\n err = e;\n }\n\n opt.highlight = highlight;\n\n return err\n ? callback(err)\n : callback(null, out);\n };\n\n if (!highlight || highlight.length < 3) {\n return done();\n }\n\n delete opt.highlight;\n\n if (!pending) return done();\n\n for (; i < tokens.length; i++) {\n (function(token) {\n if (token.type !== 'code') {\n return --pending || done();\n }\n return highlight(token.text, token.lang, function(err, code) {\n if (err) return done(err);\n if (code == null || code === token.text) {\n return --pending || done();\n }\n token.text = code;\n token.escaped = true;\n --pending || done();\n });\n })(tokens[i]);\n }\n\n return;\n }\n try {\n if (opt) opt = merge({}, marked.defaults, opt);\n return Parser.parse(Lexer.lex(src, opt), opt);\n } catch (e) {\n e.message += '\\nPlease report this to https://github.com/markedjs/marked.';\n if ((opt || marked.defaults).silent) {\n return '

    An error occurred:

    '\n        + escape(e.message + '', true)\n        + '
    ';\n }\n throw e;\n }\n}\n\n/**\n * Options\n */\n\nmarked.options =\nmarked.setOptions = function(opt) {\n merge(marked.defaults, opt);\n return marked;\n};\n\nmarked.defaults = {\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n sanitize: false,\n sanitizer: null,\n mangle: true,\n smartLists: false,\n silent: false,\n highlight: null,\n langPrefix: 'lang-',\n smartypants: false,\n headerPrefix: '',\n renderer: new Renderer(),\n xhtml: false,\n baseUrl: null\n};\n\n/**\n * Expose\n */\n\nmarked.Parser = Parser;\nmarked.parser = Parser.parse;\n\nmarked.Renderer = Renderer;\nmarked.TextRenderer = TextRenderer;\n\nmarked.Lexer = Lexer;\nmarked.lexer = Lexer.lex;\n\nmarked.InlineLexer = InlineLexer;\nmarked.inlineLexer = InlineLexer.output;\n\nmarked.parse = marked;\n\nif (typeof module !== 'undefined' && typeof exports === 'object') {\n module.exports = marked;\n} else if (typeof define === 'function' && define.amd) {\n define(function() { return marked; });\n} else {\n root.marked = marked;\n}\n})(this || (typeof window !== 'undefined' ? window : global));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/marked/lib/marked.js\n// module id = 118\n// module chunks = 0","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 119\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.message.text && _vm.message.type === 'human')?_c('div',{staticClass:\"message-text\"},[_vm._v(\"\\n \"+_vm._s(_vm.message.text)+\"\\n\")]):(_vm.altHtmlMessage && _vm.AllowSuperDangerousHTMLInMessage)?_c('div',{staticClass:\"message-text\",domProps:{\"innerHTML\":_vm._s(_vm.altHtmlMessage)}}):(_vm.message.text && _vm.shouldRenderAsHtml)?_c('div',{staticClass:\"message-text\",domProps:{\"innerHTML\":_vm._s(_vm.botMessageAsHtml)}}):(_vm.message.text && _vm.message.type === 'bot')?_c('div',{staticClass:\"message-text\"},[_vm._v(\"\\n \"+_vm._s((_vm.shouldStripTags) ? _vm.stripTagsFromMessage(_vm.message.text) : _vm.message.text)+\"\\n\")]):_vm._e()}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-4f01cfd4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/MessageText.vue\n// module id = 120\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-19ae77ba\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./ResponseCard.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ResponseCard.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./ResponseCard.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-19ae77ba\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./ResponseCard.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-19ae77ba\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/ResponseCard.vue\n// module id = 121\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-19ae77ba\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/ResponseCard.vue\n// module id = 122\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[(_vm.responseCard.title.trim())?_c('v-card-title',{staticClass:\"red lighten-5\",attrs:{\"primary-title\":\"\"}},[_c('span',{staticClass:\"headline\"},[_vm._v(_vm._s(_vm.responseCard.title))])]):_vm._e(),_vm._v(\" \"),(_vm.responseCard.subTitle)?_c('v-card-text',[_c('span',[_vm._v(_vm._s(_vm.responseCard.subTitle))])]):_vm._e(),_vm._v(\" \"),(_vm.responseCard.imageUrl)?_c('v-card-media',{attrs:{\"src\":_vm.responseCard.imageUrl,\"contain\":\"\",\"height\":\"33vh\"}}):_vm._e(),_vm._v(\" \"),_vm._l((_vm.responseCard.buttons),function(button,index){return _c('v-card-actions',{key:index,staticClass:\"button-row\",attrs:{\"actions\":\"\"}},[(button.text && button.value)?_c('v-btn',{attrs:{\"disabled\":_vm.hasButtonBeenClicked,\"default\":\"\"},nativeOn:{\"~click\":function($event){_vm.onButtonClick(button.value)}}},[_vm._v(\"\\n \"+_vm._s(button.text)+\"\\n \")]):_vm._e()],1)}),_vm._v(\" \"),(_vm.responseCard.attachmentLinkUrl)?_c('v-card-actions',[_c('v-btn',{staticClass:\"red lighten-5\",attrs:{\"flat\":\"\",\"tag\":\"a\",\"href\":_vm.responseCard.attachmentLinkUrl,\"target\":\"_blank\"}},[_vm._v(\"\\n Open Link\\n \")])],1):_vm._e()],2)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-19ae77ba\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/ResponseCard.vue\n// module id = 123\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',{staticClass:\"message\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-layout\",attrs:{\"column\":\"\",\"ma-2\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-date-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-column\",attrs:{\"column\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-avatar-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-row\",attrs:{\"row\":\"\"}},[(_vm.shouldShowAvatarImage)?_c('div',{staticClass:\"bot-avatar focusable\",style:(_vm.botAvatarBackground),attrs:{\"tabindex\":_vm.message.id + 1}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"message-bubble focusable\",attrs:{\"tabindex\":_vm.message.id + 1},on:{\"focus\":_vm.onMessageFocus,\"blur\":_vm.onMessageBlur}},[('text' in _vm.message && _vm.message.text !== null && _vm.message.text.length)?_c('message-text',{attrs:{\"message\":_vm.message}}):_vm._e(),_vm._v(\" \"),(_vm.message.type === 'human' && _vm.message.audio)?_c('div',{staticClass:\"message-audio\"},[_c('audio',[_c('source',{attrs:{\"src\":_vm.message.audio,\"type\":\"audio/wav\"}})]),_vm._v(\" \"),_c('v-btn',{staticClass:\"black--text ml-0 mr-0\",attrs:{\"tabindex\":_vm.message.id + 1,\"icon\":\"\"},on:{\"click\":_vm.playAudio}},[_c('v-icon',{staticClass:\"play-icon\"},[_vm._v(\"play_circle_outline\")])],1)],1):_vm._e(),_vm._v(\" \"),(_vm.message.type === 'bot' && _vm.botDialogState && _vm.showDialogStateIcon)?_c('v-icon',{staticClass:\"dialog-state\",class:(\"dialog-state-\" + (_vm.botDialogState.state)),attrs:{\"medium\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.botDialogState.icon)+\"\\n \")]):_vm._e()],1)])],1),_vm._v(\" \"),(_vm.shouldShowMessageDate && _vm.isMessageFocused)?_c('v-flex',{staticClass:\"text-xs-center message-date\"},[_vm._v(\"\\n \"+_vm._s(_vm.messageHumanDate)+\"\\n \")]):_vm._e()],1)],1),_vm._v(\" \"),(_vm.shouldDisplayResponseCard)?_c('v-flex',{staticClass:\"response-card\",attrs:{\"d-flex\":\"\",\"mt-2\":\"\",\"mr-2\":\"\",\"ml-3\":\"\"}},_vm._l((_vm.message.responseCard.genericAttachments),function(card,index){return _c('response-card',{key:index,attrs:{\"response-card\":card}})})):_vm._e()],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-46cd8705\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Message.vue\n// module id = 124\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6d624218\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MessageLoading.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageLoading.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./MessageLoading.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6d624218\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./MessageLoading.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6d624218\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/MessageLoading.vue\n// module id = 125\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-6d624218\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/MessageLoading.vue\n// module id = 126\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',{staticClass:\"message message-bot\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-layout\",attrs:{\"column\":\"\",\"ma-2\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-date-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-column\",attrs:{\"column\":\"\"}},[_c('v-flex',{staticClass:\"message-bubble-avatar-container\",attrs:{\"d-flex\":\"\"}},[_c('v-layout',{staticClass:\"message-bubble-row\",attrs:{\"row\":\"\"}},[_c('div',{staticClass:\"message-bubble focusable\"},[_vm._v(\"\\n \"+_vm._s(_vm.progress)+\" \\n \")])])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6d624218\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/MessageLoading.vue\n// module id = 127\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-layout',{staticClass:\"message-list\",attrs:{\"column\":\"\",\"fill-height\":\"\"}},[_vm._l((_vm.messages),function(message){return _c('message',{key:message.id,ref:\"messages\",refInFor:true,class:(\"message-\" + (message.type)),attrs:{\"message\":message},on:{\"scrollDown\":_vm.scrollDown}})}),_vm._v(\" \"),(_vm.loading)?_c('MessageLoading'):_vm._e()],2)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6f155304\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/MessageList.vue\n// module id = 128\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-62d75cef\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./InputContainer.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./InputContainer.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./InputContainer.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-62d75cef\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./InputContainer.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/InputContainer.vue\n// module id = 129\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-62d75cef\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/InputContainer.vue\n// module id = 130\n// module chunks = 0","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-85675648\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./RecorderStatus.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./RecorderStatus.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./RecorderStatus.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-85675648\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./RecorderStatus.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-85675648\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/RecorderStatus.vue\n// module id = 131\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-85675648\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/RecorderStatus.vue\n// module id = 132\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',{staticClass:\"recorder-status white\"},[_c('div',{staticClass:\"status-text\"},[_c('span',[_vm._v(_vm._s(_vm.statusText))])]),_vm._v(\" \"),_c('div',{staticClass:\"voice-controls ml-2\"},[_c('transition',{attrs:{\"css\":false},on:{\"enter\":_vm.enterMeter,\"leave\":_vm.leaveMeter}},[(_vm.isRecording)?_c('div',{staticClass:\"volume-meter\"},[_c('meter',{attrs:{\"value\":_vm.volume,\"min\":\"0.0001\",\"low\":\"0.005\",\"optimum\":\"0.04\",\"high\":\"0.07\",\"max\":\"0.09\"}})]):_vm._e()]),_vm._v(\" \"),(_vm.isProcessing)?_c('v-progress-linear',{staticClass:\"processing-bar ma-0\",attrs:{\"indeterminate\":true}}):_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"css\":false},on:{\"enter\":_vm.enterAudioPlay,\"leave\":_vm.leaveAudioPlay}},[(_vm.isBotSpeaking)?_c('v-progress-linear',{staticClass:\"audio-progress-bar ma-0\",model:{value:(_vm.audioPlayPercent),callback:function ($$v) {_vm.audioPlayPercent=$$v},expression:\"audioPlayPercent\"}}):_vm._e()],1)],1)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-85675648\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/RecorderStatus.vue\n// module id = 133\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-footer',{attrs:{\"app\":\"\",\"fixed\":\"\"}},[_c('v-layout',{staticClass:\"input-container\",attrs:{\"row\":\"\",\"justify-space-between\":\"\",\"ma-0\":\"\"}},[_c('v-toolbar',{attrs:{\"color\":\"white\",\"dense\":\"\"}},[_c('v-text-field',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.shouldShowTextInput),expression:\"shouldShowTextInput\"}],attrs:{\"label\":_vm.textInputPlaceholder,\"id\":\"text-input\",\"name\":\"text-input\",\"single-line\":\"\",\"hide-details\":\"\"},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key)){ return null; }$event.stopPropagation();_vm.postTextMessage($event)},\"focus\":_vm.onTextFieldFocus,\"blur\":_vm.onTextFieldBlur},model:{value:(_vm.textInput),callback:function ($$v) {_vm.textInput=$$v},expression:\"textInput\"}}),_vm._v(\" \"),_c('recorder-status',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.shouldShowTextInput),expression:\"!shouldShowTextInput\"}]}),_vm._v(\" \"),_c('v-tooltip',{ref:\"tooltip\",attrs:{\"activator\":\".input-button\",\"left\":\"\"},model:{value:(_vm.shouldShowTooltip),callback:function ($$v) {_vm.shouldShowTooltip=$$v},expression:\"shouldShowTooltip\"}},[_c('span',{attrs:{\"id\":\"input-button-tooltip\"}},[_vm._v(_vm._s(_vm.inputButtonTooltip))])]),_vm._v(\" \"),(_vm.shouldShowSendButton)?_c('v-btn',_vm._g({ref:\"send\",staticClass:\"black--text input-button\",attrs:{\"disabled\":_vm.isSendButtonDisabled,\"icon\":\"\"},on:{\"click\":_vm.postTextMessage}},_vm.tooltipEventHandlers),[_c('v-icon',{attrs:{\"medium\":\"\"}},[_vm._v(\"send\")])],1):_c('v-btn',_vm._g({ref:\"mic\",staticClass:\"black--text input-button\",attrs:{\"disabled\":_vm.isMicButtonDisabled,\"icon\":\"\"},on:{\"click\":_vm.onMicClick}},_vm.tooltipEventHandlers),[_c('v-icon',{attrs:{\"medium\":\"\"}},[_vm._v(_vm._s(_vm.micButtonIcon))])],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-62d75cef\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/InputContainer.vue\n// module id = 134\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-app',{attrs:{\"id\":\"lex-web\"}},[_c('toolbar-container',{attrs:{\"toolbar-title\":_vm.toolbarTitle,\"toolbar-color\":_vm.toolbarColor,\"toolbar-logo\":_vm.toolbarLogo,\"is-ui-minimized\":_vm.isUiMinimized},on:{\"toggleMinimizeUi\":_vm.toggleMinimizeUi}}),_vm._v(\" \"),_c('v-content',[_c('v-container',{staticClass:\"message-list-container\",attrs:{\"fluid\":\"\",\"pa-0\":\"\"}},[_c('message-list',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isUiMinimized),expression:\"!isUiMinimized\"}]})],1)],1),_vm._v(\" \"),(!_vm.isUiMinimized)?_c('input-container',{attrs:{\"text-input-placeholder\":_vm.textInputPlaceholder,\"initial-speech-instruction\":_vm.initialSpeechInstruction}}):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-7fdf03b2\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/LexWeb.vue\n// module id = 135\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* global atob Blob URL */\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* eslint no-param-reassign: off */\n\nimport initialState from '@/store/state';\nimport getters from '@/store/getters';\nimport mutations from '@/store/mutations';\nimport actions from '@/store/actions';\n\nexport default {\n // prevent changes outside of mutation handlers\n strict: (process.env.NODE_ENV === 'development'),\n state: initialState,\n getters,\n mutations,\n actions,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/index.js","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/**\n * Sets up the initial state of the store\n */\nimport { config } from '@/config';\n\nexport default {\n version: (process.env.PACKAGE_VERSION) ?\n process.env.PACKAGE_VERSION : '0.0.0',\n lex: {\n acceptFormat: 'audio/ogg',\n dialogState: '',\n isInterrupting: false,\n isProcessing: false,\n inputTranscript: '',\n intentName: '',\n message: '',\n responseCard: null,\n sessionAttributes: (\n config.lex &&\n config.lex.sessionAttributes &&\n typeof config.lex.sessionAttributes === 'object'\n ) ? { ...config.lex.sessionAttributes } : {},\n slotToElicit: '',\n slots: {},\n },\n messages: [],\n polly: {\n outputFormat: 'ogg_vorbis',\n voiceId: (\n config.polly &&\n config.polly.voiceId &&\n typeof config.polly.voiceId === 'string'\n ) ? `${config.polly.voiceId}` : 'Joanna',\n },\n botAudio: {\n canInterrupt: false,\n interruptIntervalId: null,\n autoPlay: false,\n isInterrupting: false,\n isSpeaking: false,\n },\n recState: {\n isConversationGoing: false,\n isInterrupting: false,\n isMicMuted: false,\n isMicQuiet: true,\n isRecorderSupported: false,\n isRecorderEnabled: (config.recorder) ? !!config.recorder.enable : true,\n isRecording: false,\n silentRecordingCount: 0,\n },\n\n isRunningEmbedded: false, // am I running in an iframe?\n isUiMinimized: false, // when running embedded, is the iframe minimized?\n config,\n\n awsCreds: {\n provider: 'cognito', // cognito|parentWindow\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/state.js","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 138\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 139\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 140\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 141\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 142\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 143\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 144\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 145\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 146\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 147\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 148\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 149\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/defineProperty.js\n// module id = 150\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/is-iterable.js\n// module id = 151\n// module chunks = 0","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/is-iterable.js\n// module id = 152\n// module chunks = 0","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.is-iterable.js\n// module id = 153\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/get-iterator.js\n// module id = 154\n// module chunks = 0","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/get-iterator.js\n// module id = 155\n// module chunks = 0","var anObject = require('./_an-object');\nvar get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function (it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator.js\n// module id = 156\n// module chunks = 0","var map = {\n\t\"./config.dev.json\": 158,\n\t\"./config.prod.json\": 159,\n\t\"./config.test.json\": 160\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 157;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config ^\\.\\/config\\..*\\.json$\n// module id = 157\n// module chunks = 0","module.exports = {\"cognito\":{\"poolId\":\"\"},\"lex\":{\"botName\":\"WebUiOrderFlowers\",\"initialText\":\"You can ask me for help ordering flowers. Just type \\\"order flowers\\\" or click on the mic and say it.\",\"initialSpeechInstruction\":\"Say 'Order Flowers' to get started.\"},\"polly\":{\"voiceId\":\"Salli\"},\"ui\":{\"parentOrigin\":\"http://localhost:8080\",\"pageTitle\":\"Order Flowers Bot\",\"toolbarTitle\":\"Order Flowers\"},\"recorder\":{\"preset\":\"speech_recognition\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/config.dev.json\n// module id = 158\n// module chunks = 0","module.exports = {\"cognito\":{\"poolId\":\"\"},\"lex\":{\"botName\":\"WebUiOrderFlowers\",\"initialText\":\"You can ask me for help ordering flowers. Just type \\\"order flowers\\\" or click on the mic and say it.\",\"initialSpeechInstruction\":\"Say 'Order Flowers' to get started.\"},\"polly\":{\"voiceId\":\"Salli\"},\"ui\":{\"parentOrigin\":\"\",\"pageTitle\":\"Order Flowers Bot\",\"toolbarTitle\":\"Order Flowers\"},\"recorder\":{\"preset\":\"speech_recognition\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/config.prod.json\n// module id = 159\n// module chunks = 0","module.exports = {\"cognito\":{\"poolId\":\"\"},\"lex\":{\"botName\":\"WebUiOrderFlowers\",\"initialText\":\"You can ask me for help ordering flowers. Just type \\\"order flowers\\\" or click on the mic and say it.\",\"initialSpeechInstruction\":\"Say 'Order Flowers' to get started.\"},\"polly\":{\"voiceId\":\"Salli\"},\"ui\":{\"parentOrigin\":\"http://localhost:8080\",\"pageTitle\":\"Order Flowers Bot\",\"toolbarTitle\":\"Order Flowers\"},\"recorder\":{\"preset\":\"speech_recognition\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/config.test.json\n// module id = 160\n// module chunks = 0","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\nexport default {\n canInterruptBotPlayback: state => state.botAudio.canInterrupt,\n isBotSpeaking: state => state.botAudio.isSpeaking,\n isConversationGoing: state => state.recState.isConversationGoing,\n isLexInterrupting: state => state.lex.isInterrupting,\n isLexProcessing: state => state.lex.isProcessing,\n isMicMuted: state => state.recState.isMicMuted,\n isMicQuiet: state => state.recState.isMicQuiet,\n isRecorderSupported: state => state.recState.isRecorderSupported,\n isRecording: state => state.recState.isRecording,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/getters.js","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/**\n * Store mutations\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* eslint no-param-reassign: [\"error\", { \"props\": false }] */\n/* eslint spaced-comment: [\"error\", \"always\", { \"exceptions\": [\"*\"] }] */\n\nimport { mergeConfig } from '@/config';\n\nexport default {\n /***********************************************************************\n *\n * Recorder State Mutations\n *\n **********************************************************************/\n\n /**\n * true if recorder seems to be muted\n */\n setIsMicMuted(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsMicMuted status not boolean', bool);\n return;\n }\n if (state.config.recorder.useAutoMuteDetect) {\n state.recState.isMicMuted = bool;\n }\n },\n /**\n * set to true if mic if sound from mic is not loud enough\n */\n setIsMicQuiet(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsMicQuiet status not boolean', bool);\n return;\n }\n state.recState.isMicQuiet = bool;\n },\n /**\n * set to true while speech conversation is going\n */\n setIsConversationGoing(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsConversationGoing status not boolean', bool);\n return;\n }\n state.recState.isConversationGoing = bool;\n },\n /**\n * Signals recorder to start and sets recoding state to true\n */\n startRecording(state, recorder) {\n console.info('start recording');\n if (state.recState.isRecording === false) {\n recorder.start();\n state.recState.isRecording = true;\n }\n },\n /**\n * Set recording state to false\n */\n stopRecording(state, recorder) {\n if (state.recState.isRecording === true) {\n state.recState.isRecording = false;\n if (recorder.isRecording) {\n recorder.stop();\n }\n }\n },\n /**\n * Increase consecutive silent recordings count\n * This is used to bail out from the conversation\n * when too many recordings are silent\n */\n increaseSilentRecordingCount(state) {\n state.recState.silentRecordingCount += 1;\n },\n /**\n * Reset the number of consecutive silent recordings\n */\n resetSilentRecordingCount(state) {\n state.recState.silentRecordingCount = 0;\n },\n /**\n * Set to true if audio recording should be enabled\n */\n setIsRecorderEnabled(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsRecorderEnabled status not boolean', bool);\n return;\n }\n state.recState.isRecorderEnabled = bool;\n },\n /**\n * Set to true if audio recording is supported\n */\n setIsRecorderSupported(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsRecorderSupported status not boolean', bool);\n return;\n }\n state.recState.isRecorderSupported = bool;\n },\n\n /***********************************************************************\n *\n * Bot Audio Mutations\n *\n **********************************************************************/\n\n /**\n * set to true while audio from Lex is playing\n */\n setIsBotSpeaking(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsBotSpeaking status not boolean', bool);\n return;\n }\n state.botAudio.isSpeaking = bool;\n },\n /**\n * Set to true when the Lex audio is ready to autoplay\n * after it has already played audio on user interaction (click)\n */\n setAudioAutoPlay(state, { audio, status }) {\n if (typeof status !== 'boolean') {\n console.error('setAudioAutoPlay status not boolean', status);\n return;\n }\n state.botAudio.autoPlay = status;\n audio.autoplay = status;\n },\n /**\n * set to true if bot playback can be interrupted\n */\n setCanInterruptBotPlayback(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setCanInterruptBotPlayback status not boolean', bool);\n return;\n }\n state.botAudio.canInterrupt = bool;\n },\n /**\n * set to true if bot playback is being interrupted\n */\n setIsBotPlaybackInterrupting(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsBotPlaybackInterrupting status not boolean', bool);\n return;\n }\n state.botAudio.isInterrupting = bool;\n },\n /**\n * used to set the setInterval Id for bot playback interruption\n */\n setBotPlaybackInterruptIntervalId(state, id) {\n if (typeof id !== 'number') {\n console.error('setIsBotPlaybackInterruptIntervalId id is not a number', id);\n return;\n }\n state.botAudio.interruptIntervalId = id;\n },\n\n /***********************************************************************\n *\n * Lex and Polly Mutations\n *\n **********************************************************************/\n\n /**\n * Updates Lex State from Lex responses\n */\n updateLexState(state, lexState) {\n state.lex = { ...state.lex, ...lexState };\n },\n /**\n * Sets the Lex session attributes\n */\n setLexSessionAttributes(state, sessionAttributes) {\n if (typeof sessionAttributes !== 'object') {\n console.error('sessionAttributes is not an object', sessionAttributes);\n return;\n }\n state.lex.sessionAttributes = sessionAttributes;\n },\n /**\n * set to true while calling lexPost{Text,Content}\n * to mark as processing\n */\n setIsLexProcessing(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsLexProcessing status not boolean', bool);\n return;\n }\n state.lex.isProcessing = bool;\n },\n /**\n * set to true if lex is being interrupted while speaking\n */\n setIsLexInterrupting(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsLexInterrupting status not boolean', bool);\n return;\n }\n state.lex.isInterrupting = bool;\n },\n /**\n * Set the supported content types to be used with Lex/Polly\n */\n setAudioContentType(state, type) {\n switch (type) {\n case 'mp3':\n case 'mpg':\n case 'mpeg':\n state.polly.outputFormat = 'mp3';\n state.lex.acceptFormat = 'audio/mpeg';\n break;\n case 'ogg':\n case 'ogg_vorbis':\n case 'x-cbr-opus-with-preamble':\n default:\n state.polly.outputFormat = 'ogg_vorbis';\n state.lex.acceptFormat = 'audio/ogg';\n break;\n }\n },\n /**\n * Set the Polly voice to be used by the client\n */\n setPollyVoiceId(state, voiceId) {\n if (typeof voiceId !== 'string') {\n console.error('polly voiceId is not a string', voiceId);\n return;\n }\n state.polly.voiceId = voiceId;\n },\n\n /***********************************************************************\n *\n * UI and General Mutations\n *\n **********************************************************************/\n\n /**\n * Merges the general config of the web ui\n * with a dynamic config param and merges it with\n * the existing config (e.g. initialized from ../config)\n */\n mergeConfig(state, config) {\n if (typeof config !== 'object') {\n console.error('config is not an object', config);\n return;\n }\n\n // security: do not accept dynamic parentOrigin\n const parentOrigin = (\n state.config && state.config.ui &&\n state.config.ui.parentOrigin\n ) ?\n state.config.ui.parentOrigin :\n config.ui.parentOrigin || window.location.origin;\n const configFiltered = {\n ...config,\n ...{ ui: { ...config.ui, parentOrigin } },\n };\n if (state.config && state.config.ui && state.config.ui.parentOrigin &&\n config.ui && config.ui.parentOrigin &&\n config.ui.parentOrigin !== state.config.ui.parentOrigin\n ) {\n console.warn('ignoring parentOrigin in config: ', config.ui.parentOrigin);\n }\n state.config = mergeConfig(state.config, configFiltered);\n },\n /**\n * Set to true if running embedded in an iframe\n */\n setIsRunningEmbedded(state, bool) {\n if (typeof bool !== 'boolean') {\n console.error('setIsRunningEmbedded status not boolean', bool);\n return;\n }\n state.isRunningEmbedded = bool;\n },\n /**\n * used to track the expand/minimize status of the window when\n * running embedded in an iframe\n */\n toggleIsUiMinimized(state) {\n state.isUiMinimized = !state.isUiMinimized;\n },\n /**\n * Push new message into messages array\n */\n pushMessage(state, message) {\n state.messages.push({\n id: state.messages.length,\n date: new Date(),\n ...message,\n });\n },\n /**\n * Set the AWS credentials provider\n */\n setAwsCredsProvider(state, provider) {\n state.awsCreds.provider = provider;\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/mutations.js","/*\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\nLicensed under the Amazon Software License (the \"License\"). You may not use this file\nexcept in compliance with the License. A copy of the License is located at\n\nhttp://aws.amazon.com/asl/\n\nor in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\nBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\nLicense for the specific language governing permissions and limitations under the License.\n*/\n\n/**\n * Asynchronous store actions\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* eslint spaced-comment: [\"error\", \"always\", { \"exceptions\": [\"*\"] }] */\n\nimport LexAudioRecorder from '@/lib/lex/recorder';\nimport initRecorderHandlers from '@/store/recorder-handlers';\nimport silentOgg from '@/assets/silent.ogg';\nimport silentMp3 from '@/assets/silent.mp3';\n\nimport LexClient from '@/lib/lex/client';\n\n// non-state variables that may be mutated outside of store\n// set via initializers at run time\nlet awsCredentials;\nlet pollyClient;\nlet lexClient;\nlet audio;\nlet recorder;\n\nexport default {\n\n /***********************************************************************\n *\n * Initialization Actions\n *\n **********************************************************************/\n\n initCredentials(context, credentials) {\n switch (context.state.awsCreds.provider) {\n case 'cognito':\n awsCredentials = credentials;\n return context.dispatch('getCredentials');\n case 'parentWindow':\n return context.dispatch('getCredentials');\n default:\n return Promise.reject(new Error('unknown credential provider'));\n }\n },\n getConfigFromParent(context) {\n if (!context.state.isRunningEmbedded) {\n return Promise.resolve({});\n }\n\n return context.dispatch(\n 'sendMessageToParentWindow',\n { event: 'initIframeConfig' },\n )\n .then((configResponse) => {\n if (configResponse.event === 'resolve' &&\n configResponse.type === 'initIframeConfig') {\n return Promise.resolve(configResponse.data);\n }\n return Promise.reject(new Error('invalid config event from parent'));\n });\n },\n initConfig(context, configObj) {\n context.commit('mergeConfig', configObj);\n },\n initMessageList(context) {\n context.commit('pushMessage', {\n type: 'bot',\n text: context.state.config.lex.initialText,\n });\n },\n initLexClient(context, lexRuntimeClient) {\n lexClient = new LexClient({\n botName: context.state.config.lex.botName,\n botAlias: context.state.config.lex.botAlias,\n lexRuntimeClient,\n });\n\n context.commit(\n 'setLexSessionAttributes',\n context.state.config.lex.sessionAttributes,\n );\n return context.dispatch('getCredentials')\n .then(() => lexClient.initCredentials(awsCredentials));\n },\n initPollyClient(context, client) {\n if (!context.state.recState.isRecorderEnabled) {\n return Promise.resolve();\n }\n pollyClient = client;\n context.commit('setPollyVoiceId', context.state.config.polly.voiceId);\n return context.dispatch('getCredentials')\n .then((creds) => {\n pollyClient.config.credentials = creds;\n });\n },\n initRecorder(context) {\n if (!context.state.config.recorder.enable) {\n context.commit('setIsRecorderEnabled', false);\n return Promise.resolve();\n }\n recorder = new LexAudioRecorder(context.state.config.recorder);\n\n return recorder.init()\n .then(() => recorder.initOptions(context.state.config.recorder))\n .then(() => initRecorderHandlers(context, recorder))\n .then(() => context.commit('setIsRecorderSupported', true))\n .then(() => context.commit('setIsMicMuted', recorder.isMicMuted))\n .catch((error) => {\n if (['PermissionDeniedError', 'NotAllowedError'].indexOf(error.name)\n >= 0) {\n console.warn('get user media permission denied');\n context.dispatch(\n 'pushErrorMessage',\n 'It seems like the microphone access has been denied. ' +\n 'If you want to use voice, please allow mic usage in your browser.',\n );\n } else {\n console.error('error while initRecorder', error);\n }\n });\n },\n initBotAudio(context, audioElement) {\n if (!context.state.recState.isRecorderEnabled ||\n !context.state.config.recorder.enable\n ) {\n return Promise.resolve();\n }\n if (!audioElement) {\n return Promise.reject(new Error('invalid audio element'));\n }\n audio = audioElement;\n\n let silentSound;\n\n // Ogg is the preferred format as it seems to be generally smaller.\n // Detect if ogg is supported (MS Edge doesn't).\n // Can't default to mp3 as it is not supported by some Android browsers\n if (audio.canPlayType('audio/ogg') !== '') {\n context.commit('setAudioContentType', 'ogg');\n silentSound = silentOgg;\n } else if (audio.canPlayType('audio/mp3') !== '') {\n context.commit('setAudioContentType', 'mp3');\n silentSound = silentMp3;\n } else {\n console.error('init audio could not find supportted audio type');\n console.warn(\n 'init audio can play mp3 [%s]',\n audio.canPlayType('audio/mp3'),\n );\n console.warn(\n 'init audio can play ogg [%s]',\n audio.canPlayType('audio/ogg'),\n );\n }\n\n console.info('recorder content types: %s', recorder.mimeType);\n\n audio.preload = 'auto';\n // Load a silent sound as the initial audio. This is used to workaround\n // the requirement of mobile browsers that would only play a\n // sound in direct response to a user action (e.g. click).\n // This audio should be explicitly played as a response to a click\n // in the UI\n audio.src = silentSound;\n // autoplay will be set as a response to a clik\n audio.autoplay = false;\n\n return Promise.resolve();\n },\n reInitBot(context) {\n return Promise.resolve()\n .then(() => (\n (context.state.config.ui.pushInitialTextOnRestart) ?\n context.dispatch('pushMessage', {\n text: context.state.config.lex.initialText,\n type: 'bot',\n }) :\n Promise.resolve()\n ))\n .then(() => (\n (context.state.config.lex.reInitSessionAttributesOnRestart) ?\n context.commit(\n 'setLexSessionAttributes',\n context.state.config.lex.sessionAttributes,\n ) :\n Promise.resolve()\n ));\n },\n\n /***********************************************************************\n *\n * Audio Actions\n *\n **********************************************************************/\n\n getAudioUrl(context, blob) {\n let url;\n\n try {\n url = URL.createObjectURL(blob);\n } catch (err) {\n console.error('getAudioUrl createObjectURL error', err);\n const errorMessage = 'There was an error processing the audio ' +\n `response: (${err})`;\n const error = new Error(errorMessage);\n return Promise.reject(error);\n }\n\n return Promise.resolve(url);\n },\n setAudioAutoPlay(context) {\n if (audio.autoplay) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n audio.play();\n // eslint-disable-next-line no-param-reassign\n audio.onended = () => {\n context.commit('setAudioAutoPlay', { audio, status: true });\n resolve();\n };\n // eslint-disable-next-line no-param-reassign\n audio.onerror = (err) => {\n context.commit('setAudioAutoPlay', { audio, status: false });\n reject(new Error(`setting audio autoplay failed: ${err}`));\n };\n });\n },\n playAudio(context, url) {\n return new Promise((resolve) => {\n audio.onloadedmetadata = () => {\n context.commit('setIsBotSpeaking', true);\n context.dispatch('playAudioHandler')\n .then(() => resolve());\n };\n audio.src = url;\n });\n },\n playAudioHandler(context) {\n return new Promise((resolve, reject) => {\n const { enablePlaybackInterrupt } = context.state.config.lex;\n\n const clearPlayback = () => {\n context.commit('setIsBotSpeaking', false);\n const intervalId = context.state.botAudio.interruptIntervalId;\n if (intervalId && enablePlaybackInterrupt) {\n clearInterval(intervalId);\n context.commit('setBotPlaybackInterruptIntervalId', 0);\n context.commit('setIsLexInterrupting', false);\n context.commit('setCanInterruptBotPlayback', false);\n context.commit('setIsBotPlaybackInterrupting', false);\n }\n };\n\n audio.onerror = (error) => {\n clearPlayback();\n reject(new Error(`There was an error playing the response (${error})`));\n };\n audio.onended = () => {\n clearPlayback();\n resolve();\n };\n audio.onpause = audio.onended;\n\n if (enablePlaybackInterrupt) {\n context.dispatch('playAudioInterruptHandler');\n }\n });\n },\n playAudioInterruptHandler(context) {\n const { isSpeaking } = context.state.botAudio;\n const {\n enablePlaybackInterrupt,\n playbackInterruptMinDuration,\n playbackInterruptVolumeThreshold,\n playbackInterruptLevelThreshold,\n playbackInterruptNoiseThreshold,\n } = context.state.config.lex;\n const intervalTimeInMs = 200;\n\n if (!enablePlaybackInterrupt &&\n !isSpeaking &&\n context.state.lex.isInterrupting &&\n audio.duration < playbackInterruptMinDuration\n ) {\n return;\n }\n\n const intervalId = setInterval(() => {\n const { duration } = audio;\n const end = audio.played.end(0);\n const { canInterrupt } = context.state.botAudio;\n\n if (!canInterrupt &&\n // allow to be interrupt free in the beginning\n end > playbackInterruptMinDuration &&\n // don't interrupt towards the end\n (duration - end) > 0.5 &&\n // only interrupt if the volume seems to be low noise\n recorder.volume.max < playbackInterruptNoiseThreshold\n ) {\n context.commit('setCanInterruptBotPlayback', true);\n } else if (canInterrupt && (duration - end) < 0.5) {\n context.commit('setCanInterruptBotPlayback', false);\n }\n\n if (canInterrupt &&\n recorder.volume.max > playbackInterruptVolumeThreshold &&\n recorder.volume.slow > playbackInterruptLevelThreshold\n ) {\n clearInterval(intervalId);\n context.commit('setIsBotPlaybackInterrupting', true);\n setTimeout(() => {\n audio.pause();\n }, 500);\n }\n }, intervalTimeInMs);\n\n context.commit('setBotPlaybackInterruptIntervalId', intervalId);\n },\n getAudioProperties() {\n return (audio) ?\n {\n currentTime: audio.currentTime,\n duration: audio.duration,\n end: (audio.played.length >= 1) ?\n audio.played.end(0) : audio.duration,\n ended: audio.ended,\n paused: audio.paused,\n } :\n {};\n },\n\n /***********************************************************************\n *\n * Recorder Actions\n *\n **********************************************************************/\n\n startConversation(context) {\n context.commit('setIsConversationGoing', true);\n return context.dispatch('startRecording');\n },\n stopConversation(context) {\n context.commit('setIsConversationGoing', false);\n },\n startRecording(context) {\n // don't record if muted\n if (context.state.recState.isMicMuted === true) {\n console.warn('recording while muted');\n context.dispatch('stopConversation');\n return Promise.reject(new Error('The microphone seems to be muted.'));\n }\n\n context.commit('startRecording', recorder);\n return Promise.resolve();\n },\n stopRecording(context) {\n context.commit('stopRecording', recorder);\n },\n getRecorderVolume(context) {\n if (!context.state.recState.isRecorderEnabled) {\n return Promise.resolve();\n }\n return recorder.volume;\n },\n\n /***********************************************************************\n *\n * Lex and Polly Actions\n *\n **********************************************************************/\n\n pollyGetBlob(context, text, format = 'text') {\n const synthReq = pollyClient.synthesizeSpeech({\n Text: text,\n VoiceId: context.state.polly.voiceId,\n OutputFormat: context.state.polly.outputFormat,\n TextType: format,\n });\n return context.dispatch('getCredentials')\n .then(() => synthReq.promise())\n .then((data) => {\n const blob = new Blob([data.AudioStream], { type: data.ContentType });\n return Promise.resolve(blob);\n });\n },\n pollySynthesizeSpeech(context, text, format = 'text') {\n return context.dispatch('pollyGetBlob', text, format)\n .then(blob => context.dispatch('getAudioUrl', blob))\n .then(audioUrl => context.dispatch('playAudio', audioUrl));\n },\n interruptSpeechConversation(context) {\n if (!context.state.recState.isConversationGoing &&\n !context.state.botAudio.isSpeaking\n ) {\n return Promise.resolve();\n }\n\n return new Promise((resolve, reject) => {\n context.dispatch('stopConversation')\n .then(() => context.dispatch('stopRecording'))\n .then(() => {\n if (context.state.botAudio.isSpeaking) {\n audio.pause();\n }\n })\n .then(() => {\n let count = 0;\n const countMax = 20;\n const intervalTimeInMs = 250;\n context.commit('setIsLexInterrupting', true);\n const intervalId = setInterval(() => {\n if (!context.state.lex.isProcessing) {\n clearInterval(intervalId);\n context.commit('setIsLexInterrupting', false);\n resolve();\n }\n if (count > countMax) {\n clearInterval(intervalId);\n context.commit('setIsLexInterrupting', false);\n reject(new Error('interrupt interval exceeded'));\n }\n count += 1;\n }, intervalTimeInMs);\n });\n });\n },\n postTextMessage(context, message) {\n return context.dispatch('interruptSpeechConversation')\n .then(() => context.dispatch('pushMessage', message))\n .then(() => context.dispatch('lexPostText', message.text))\n .then(response => context.dispatch(\n 'pushMessage',\n {\n text: response.message,\n type: 'bot',\n dialogState: context.state.lex.dialogState,\n responseCard: context.state.lex.responseCard,\n alts: JSON.parse(response.sessionAttributes.appContext || '{}').altMessages,\n },\n ))\n .then(() => {\n if (context.state.lex.dialogState === 'Fulfilled') {\n context.dispatch('reInitBot');\n }\n })\n .catch((error) => {\n const errorMessage = (context.state.config.ui.showErrorDetails) ?\n ` ${error}` : '';\n console.error('error in postTextMessage', error);\n context.dispatch(\n 'pushErrorMessage',\n 'Sorry, I was unable to process your message. Try again later.' +\n `${errorMessage}`,\n );\n });\n },\n lexPostText(context, text) {\n context.commit('setIsLexProcessing', true);\n const session = context.state.lex.sessionAttributes;\n delete session.appContext;\n return context.dispatch('getCredentials')\n .then(() => lexClient.postText(text, session))\n .then((data) => {\n context.commit('setIsLexProcessing', false);\n return context.dispatch('updateLexState', data)\n .then(() => Promise.resolve(data));\n })\n .catch((error) => {\n context.commit('setIsLexProcessing', false);\n throw error;\n });\n },\n lexPostContent(context, audioBlob, offset = 0) {\n context.commit('setIsLexProcessing', true);\n const session = context.state.lex.sessionAttributes;\n delete session.appContext;\n console.info('audio blob size:', audioBlob.size);\n let timeStart;\n\n return context.dispatch('getCredentials')\n .then(() => {\n timeStart = performance.now();\n return lexClient.postContent(\n audioBlob,\n session,\n context.state.lex.acceptFormat,\n offset,\n );\n })\n .then((lexResponse) => {\n const timeEnd = performance.now();\n console.info(\n 'lex postContent processing time:',\n ((timeEnd - timeStart) / 1000).toFixed(2),\n );\n context.commit('setIsLexProcessing', false);\n return context.dispatch('updateLexState', lexResponse)\n .then(() => (\n context.dispatch('processLexContentResponse', lexResponse)\n ))\n .then(blob => Promise.resolve(blob));\n })\n .catch((error) => {\n context.commit('setIsLexProcessing', false);\n throw error;\n });\n },\n processLexContentResponse(context, lexData) {\n const { audioStream, contentType, dialogState } = lexData;\n\n return Promise.resolve()\n .then(() => {\n if (!audioStream || !audioStream.length) {\n const text = (dialogState === 'ReadyForFulfillment') ?\n 'All done' :\n 'There was an error';\n return context.dispatch('pollyGetBlob', text);\n }\n\n return Promise.resolve(new Blob([audioStream], { type: contentType }));\n });\n },\n updateLexState(context, lexState) {\n const lexStateDefault = {\n dialogState: '',\n inputTranscript: '',\n intentName: '',\n message: '',\n responseCard: null,\n sessionAttributes: {},\n slotToElicit: '',\n slots: {},\n };\n // simulate response card in sessionAttributes\n // used mainly for postContent which doesn't support response cards\n if ('sessionAttributes' in lexState &&\n 'appContext' in lexState.sessionAttributes\n ) {\n try {\n const appContext = JSON.parse(lexState.sessionAttributes.appContext);\n if ('responseCard' in appContext) {\n lexStateDefault.responseCard =\n appContext.responseCard;\n }\n } catch (e) {\n const error =\n new Error(`error parsing appContext in sessionAttributes: ${e}`);\n return Promise.reject(error);\n }\n }\n context.commit('updateLexState', { ...lexStateDefault, ...lexState });\n if (context.state.isRunningEmbedded) {\n context.dispatch(\n 'sendMessageToParentWindow',\n { event: 'updateLexState', state: context.state.lex },\n );\n }\n return Promise.resolve();\n },\n\n /***********************************************************************\n *\n * Message List Actions\n *\n **********************************************************************/\n\n pushMessage(context, message) {\n context.commit('pushMessage', message);\n },\n pushErrorMessage(context, text, dialogState = 'Failed') {\n context.commit('pushMessage', {\n type: 'bot',\n text,\n dialogState,\n });\n },\n\n /***********************************************************************\n *\n * Credentials Actions\n *\n **********************************************************************/\n\n getCredentialsFromParent(context) {\n const expireTime = (awsCredentials && awsCredentials.expireTime) ?\n awsCredentials.expireTime : 0;\n const credsExpirationDate = new Date(expireTime);\n const now = Date.now();\n if (credsExpirationDate > now) {\n return Promise.resolve(awsCredentials);\n }\n return context.dispatch('sendMessageToParentWindow', { event: 'getCredentials' })\n .then((credsResponse) => {\n if (credsResponse.event === 'resolve' &&\n credsResponse.type === 'getCredentials') {\n return Promise.resolve(credsResponse.data);\n }\n const error = new Error('invalid credential event from parent');\n return Promise.reject(error);\n })\n .then((creds) => {\n const { AccessKeyId, SecretKey, SessionToken } = creds.data.Credentials;\n const { IdentityId } = creds.data;\n // recreate as a static credential\n awsCredentials = {\n accessKeyId: AccessKeyId,\n secretAccessKey: SecretKey,\n sessionToken: SessionToken,\n identityId: IdentityId,\n expired: false,\n getPromise() { return Promise.resolve(awsCredentials); },\n };\n\n return awsCredentials;\n });\n },\n getCredentials(context) {\n if (context.state.awsCreds.provider === 'parentWindow') {\n return context.dispatch('getCredentialsFromParent');\n }\n return awsCredentials.getPromise()\n .then(() => awsCredentials);\n },\n\n /***********************************************************************\n *\n * UI and Parent Communication Actions\n *\n **********************************************************************/\n\n toggleIsUiMinimized(context) {\n context.commit('toggleIsUiMinimized');\n return context.dispatch(\n 'sendMessageToParentWindow',\n { event: 'toggleMinimizeUi' },\n );\n },\n sendMessageToParentWindow(context, message) {\n if (!context.state.isRunningEmbedded) {\n const error = 'sendMessage called when not running embedded';\n console.warn(error);\n return Promise.reject(error);\n }\n\n return new Promise((resolve, reject) => {\n const messageChannel = new MessageChannel();\n messageChannel.port1.onmessage = (evt) => {\n messageChannel.port1.close();\n messageChannel.port2.close();\n if (evt.data.event === 'resolve') {\n resolve(evt.data);\n } else {\n const errorMessage =\n `error in sendMessageToParentWindow: ${evt.data.error}`;\n reject(new Error(errorMessage));\n }\n };\n window.parent.postMessage(\n message,\n context.state.config.ui.parentOrigin,\n [messageChannel.port2],\n );\n });\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/actions.js","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\"] }] */\n/* global AudioContext CustomEvent document Event navigator window */\n\n// wav encoder worker - uses webpack worker loader\nimport WavWorker from './wav-worker';\n\n/**\n * Lex Recorder Module\n * Based on Recorderjs. It sort of mimics the MediaRecorder API.\n * @see {@link https://github.com/mattdiamond/Recorderjs}\n * @see {@https://github.com/chris-rudmin/Recorderjs}\n * @see {@https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder}\n */\n\n/**\n * Class for Lex audio recording management.\n *\n * This class is used for microphone initialization and recording\n * management. It encodes the mic input into wav format.\n * It also monitors the audio input stream (e.g keeping track of volume)\n * filtered around human voice speech frequencies to look for silence\n */\nexport default class {\n /* eslint no-underscore-dangle: [\"error\", { \"allowAfterThis\": true }] */\n\n /**\n * Constructs the recorder object\n *\n * @param {object} - options object\n *\n * @param {string} options.mimeType - Mime type to use on recording.\n * Only 'audio/wav' is supported for now. Default: 'aduio/wav'.\n *\n * @param {boolean} options.autoStopRecording - Controls if the recording\n * should automatically stop on silence detection. Default: true.\n *\n * @param {number} options.recordingTimeMax - Maximum recording time in\n * seconds. Recording will stop after going for this long. Default: 8.\n *\n * @param {number} options.recordingTimeMin - Minimum recording time in\n * seconds. Used before evaluating if the line is quiet to allow initial\n * pauses before speech. Default: 2.\n *\n * @param {boolean} options.recordingTimeMinAutoIncrease - Controls if the\n * recordingTimeMin should be automatically increased (exponentially)\n * based on the number of consecutive silent recordings.\n * Default: true.\n *\n * @param {number} options.quietThreshold - Threshold of mic input level\n * to consider quiet. Used to determine pauses in input this is measured\n * using the \"slow\" mic volume. Default: 0.001.\n *\n * @param {number} options.quietTimeMin - Minimum mic quiet time (normally in\n * fractions of a second) before automatically stopping the recording when\n * autoStopRecording is true. In reality it takes a bit more time than this\n * value given that the slow volume value is a decay. Reasonable times seem\n * to be between 0.2 and 0.5. Default: 0.4.\n *\n * @param {number} options.volumeThreshold - Threshold of mic db level\n * to consider quiet. Used to determine pauses in input this is measured\n * using the \"max\" mic volume. Smaller values make the recorder auto stop\n * faster. Default: -75\n *\n * @param {bool} options.useBandPass - Controls if a band pass filter is used\n * for the microphone input. If true, the input is passed through a second\n * order bandpass filter using AudioContext.createBiquadFilter:\n * https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBiquadFilter\n * The bandpass filter helps to reduce noise, improve silence detection and\n * produce smaller audio blobs. However, it may produce audio with lower\n * fidelity. Default: true\n *\n * @param {number} options.bandPassFrequency - Frequency of bandpass filter in\n * Hz. Mic input is passed through a second order bandpass filter to remove\n * noise and improve quality/speech silence detection. Reasonable values\n * should be around 3000 - 5000. Default: 4000.\n *\n * @param {number} options.bandPassQ - Q factor of bandpass filter.\n * The higher the vaue, the narrower the pass band and steeper roll off.\n * Reasonable values should be between 0.5 and 1.5. Default: 0.707\n *\n * @param {number} options.bufferLength - Length of buffer used in audio\n * processor. Should be in powers of two between 512 to 8196. Passed to\n * script processor and audio encoder. Lower values have lower latency.\n * Default: 2048.\n *\n * @param {number} options.numChannels- Number of channels to record.\n * Default: 1 (mono).\n *\n * @param {number} options.requestEchoCancellation - Request to use echo\n * cancellation in the getUserMedia call:\n * https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/echoCancellation\n * Default: true.\n *\n * @param {bool} options.useAutoMuteDetect - Controls if the recorder utilizes\n * automatic mute detection.\n * Default: true.\n *\n * @param {number} options.muteThreshold - Threshold level when mute values\n * are detected when useAutoMuteDetect is enabled. The higher the faster\n * it reports the mic to be in a muted state but may cause it to flap\n * between mute/unmute. The lower the values the slower it is to report\n * the mic as mute. Too low of a value may cause it to never report the\n * line as muted. Works in conjuction with options.quietTreshold.\n * Reasonable values seem to be between: 1e-5 and 1e-8. Default: 1e-7.\n *\n * @param {bool} options.encoderUseTrim - Controls if the encoder should\n * attempt to trim quiet samples from the beginning and end of the buffer\n * Default: true.\n *\n * @param {number} options.encoderQuietTrimThreshold - Threshold when quiet\n * levels are detected. Only applicable when encoderUseTrim is enabled. The\n * encoder will trim samples below this value at the beginnig and end of the\n * buffer. Lower value trim less silence resulting in larger WAV files.\n * Reasonable values seem to be between 0.005 and 0.0005. Default: 0.0008.\n *\n * @param {number} options.encoderQuietTrimSlackBack - How many samples to\n * add back to the encoded buffer before/after the\n * encoderQuietTrimThreshold. Higher values trim less silence resulting in\n * larger WAV files.\n * Reasonable values seem to be between 3500 and 5000. Default: 4000.\n */\n constructor(options = {}) {\n this.initOptions(options);\n\n // event handler used for events similar to MediaRecorder API (e.g. onmute)\n this._eventTarget = document.createDocumentFragment();\n\n // encoder worker\n this._encoderWorker = new WavWorker();\n\n // worker uses this event listener to signal back\n // when wav has finished encoding\n this._encoderWorker.addEventListener(\n 'message',\n evt => this._exportWav(evt.data),\n );\n }\n\n /**\n * Initialize general recorder options\n *\n * @param {object} options - object with various options controlling the\n * recorder behavior. See the constructor for details.\n */\n initOptions(options = {}) {\n // TODO break this into functions, avoid side-effects, break into this.options.*\n if (options.preset) {\n Object.assign(options, this._getPresetOptions(options.preset));\n }\n\n this.mimeType = options.mimeType || 'audio/wav';\n\n this.recordingTimeMax = options.recordingTimeMax || 8;\n this.recordingTimeMin = options.recordingTimeMin || 2;\n this.recordingTimeMinAutoIncrease =\n (typeof options.recordingTimeMinAutoIncrease !== 'undefined') ?\n !!options.recordingTimeMinAutoIncrease :\n true;\n\n // speech detection configuration\n this.autoStopRecording =\n (typeof options.autoStopRecording !== 'undefined') ?\n !!options.autoStopRecording :\n true;\n this.quietThreshold = options.quietThreshold || 0.001;\n this.quietTimeMin = options.quietTimeMin || 0.4;\n this.volumeThreshold = options.volumeThreshold || -75;\n\n // band pass configuration\n this.useBandPass =\n (typeof options.useBandPass !== 'undefined') ?\n !!options.useBandPass :\n true;\n // https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode\n this.bandPassFrequency = options.bandPassFrequency || 4000;\n // Butterworth 0.707 [sqrt(1/2)] | Chebyshev < 1.414\n this.bandPassQ = options.bandPassQ || 0.707;\n\n // parameters passed to script processor and also used in encoder\n // https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor\n this.bufferLength = options.bufferLength || 2048;\n this.numChannels = options.numChannels || 1;\n\n this.requestEchoCancellation =\n (typeof options.requestEchoCancellation !== 'undefined') ?\n !!options.requestEchoCancellation :\n true;\n\n // automatic mute detection options\n this.useAutoMuteDetect =\n (typeof options.useAutoMuteDetect !== 'undefined') ?\n !!options.useAutoMuteDetect :\n true;\n this.muteThreshold = options.muteThreshold || 1e-7;\n\n // encoder options\n this.encoderUseTrim =\n (typeof options.encoderUseTrim !== 'undefined') ?\n !!options.encoderUseTrim :\n true;\n this.encoderQuietTrimThreshold =\n options.encoderQuietTrimThreshold || 0.0008;\n this.encoderQuietTrimSlackBack = options.encoderQuietTrimSlackBack || 4000;\n }\n\n _getPresetOptions(preset = 'low_latency') {\n this._presets = ['low_latency', 'speech_recognition'];\n\n if (this._presets.indexOf(preset) === -1) {\n console.error('invalid preset');\n return {};\n }\n\n const presets = {\n low_latency: {\n encoderUseTrim: true,\n useBandPass: true,\n },\n speech_recognition: {\n encoderUseTrim: false,\n useBandPass: false,\n useAutoMuteDetect: false,\n },\n };\n\n return presets[preset];\n }\n\n /**\n * General init. This function should be called to initialize the recorder.\n *\n * @param {object} options - Optional parameter to reinitialize the\n * recorder behavior. See the constructor for details.\n *\n * @return {Promise} - Returns a promise that resolves when the recorder is\n * ready.\n */\n init() {\n this._state = 'inactive';\n\n this._instant = 0.0;\n this._slow = 0.0;\n this._clip = 0.0;\n this._maxVolume = -Infinity;\n\n this._isMicQuiet = true;\n this._isMicMuted = false;\n\n this._isSilentRecording = true;\n this._silentRecordingConsecutiveCount = 0;\n\n // sets this._audioContext AudioContext object\n return this._initAudioContext()\n // inits AudioContext.createScriptProcessor object\n // used to process mic audio input volume\n // sets this._micVolumeProcessor\n .then(() => this._initMicVolumeProcessor())\n .then(() => this._initStream());\n }\n\n /**\n * Start recording\n */\n start() {\n if (this._state !== 'inactive' ||\n typeof this._stream === 'undefined') {\n console.warn('recorder start called out of state');\n return;\n }\n\n this._state = 'recording';\n\n this._recordingStartTime = this._audioContext.currentTime;\n this._eventTarget.dispatchEvent(new Event('start'));\n\n this._encoderWorker.postMessage({\n command: 'init',\n config: {\n sampleRate: this._audioContext.sampleRate,\n numChannels: this.numChannels,\n useTrim: this.encoderUseTrim,\n quietTrimThreshold: this.encoderQuietTrimThreshold,\n quietTrimSlackBack: this.encoderQuietTrimSlackBack,\n },\n });\n }\n\n /**\n * Stop recording\n */\n stop() {\n if (this._state !== 'recording') {\n console.warn('recorder stop called out of state');\n return;\n }\n\n if (this._recordingStartTime > this._quietStartTime) {\n this._isSilentRecording = true;\n this._silentRecordingConsecutiveCount += 1;\n this._eventTarget.dispatchEvent(new Event('silentrecording'));\n } else {\n this._isSilentRecording = false;\n this._silentRecordingConsecutiveCount = 0;\n this._eventTarget.dispatchEvent(new Event('unsilentrecording'));\n }\n\n this._state = 'inactive';\n this._recordingStartTime = 0;\n\n this._encoderWorker.postMessage({\n command: 'exportWav',\n type: 'audio/wav',\n });\n\n this._eventTarget.dispatchEvent(new Event('stop'));\n }\n\n _exportWav(evt) {\n const event = new CustomEvent('dataavailable', { detail: evt.data });\n this._eventTarget.dispatchEvent(event);\n this._encoderWorker.postMessage({ command: 'clear' });\n }\n\n _recordBuffers(inputBuffer) {\n if (this._state !== 'recording') {\n console.warn('recorder _recordBuffers called out of state');\n return;\n }\n const buffer = [];\n for (let i = 0; i < inputBuffer.numberOfChannels; i++) {\n buffer[i] = inputBuffer.getChannelData(i);\n }\n\n this._encoderWorker.postMessage({\n command: 'record',\n buffer,\n });\n }\n\n _setIsMicMuted() {\n if (!this.useAutoMuteDetect) {\n return;\n }\n // TODO incorporate _maxVolume\n if (this._instant >= this.muteThreshold) {\n if (this._isMicMuted) {\n this._isMicMuted = false;\n this._eventTarget.dispatchEvent(new Event('unmute'));\n }\n return;\n }\n\n if (!this._isMicMuted && (this._slow < this.muteThreshold)) {\n this._isMicMuted = true;\n this._eventTarget.dispatchEvent(new Event('mute'));\n console.info(\n 'mute - instant: %s - slow: %s - track muted: %s',\n this._instant, this._slow, this._tracks[0].muted,\n );\n\n if (this._state === 'recording') {\n this.stop();\n console.info('stopped recording on _setIsMicMuted');\n }\n }\n }\n\n _setIsMicQuiet() {\n const now = this._audioContext.currentTime;\n\n const isMicQuiet = (this._maxVolume < this.volumeThreshold ||\n this._slow < this.quietThreshold);\n\n // start record the time when the line goes quiet\n // fire event\n if (!this._isMicQuiet && isMicQuiet) {\n this._quietStartTime = this._audioContext.currentTime;\n this._eventTarget.dispatchEvent(new Event('quiet'));\n }\n // reset quiet timer when there's enough sound\n if (this._isMicQuiet && !isMicQuiet) {\n this._quietStartTime = 0;\n this._eventTarget.dispatchEvent(new Event('unquiet'));\n }\n this._isMicQuiet = isMicQuiet;\n\n // if autoincrease is enabled, exponentially increase the mimimun recording\n // time based on consecutive silent recordings\n const recordingTimeMin =\n (this.recordingTimeMinAutoIncrease) ?\n (this.recordingTimeMin - 1) +\n (this.recordingTimeMax **\n (1 - (1 / (this._silentRecordingConsecutiveCount + 1)))) :\n this.recordingTimeMin;\n\n // detect voice pause and stop recording\n if (this.autoStopRecording &&\n this._isMicQuiet && this._state === 'recording' &&\n // have I been recording longer than the minimum recording time?\n now - this._recordingStartTime > recordingTimeMin &&\n // has the slow sample value been below the quiet threshold longer than\n // the minimum allowed quiet time?\n now - this._quietStartTime > this.quietTimeMin\n ) {\n this.stop();\n }\n }\n\n /**\n * Initializes the AudioContext\n * Aassigs it to this._audioContext. Adds visibitily change event listener\n * to suspend the audio context when the browser tab is hidden.\n * @return {Promise} resolution of AudioContext\n */\n _initAudioContext() {\n window.AudioContext = window.AudioContext || window.webkitAudioContext;\n if (!window.AudioContext) {\n return Promise.reject(new Error('Web Audio API not supported.'));\n }\n this._audioContext = new AudioContext();\n document.addEventListener('visibilitychange', () => {\n console.info('visibility change triggered in recorder. hidden:', document.hidden);\n if (document.hidden) {\n this._audioContext.suspend();\n } else {\n this._audioContext.resume();\n }\n });\n return Promise.resolve();\n }\n\n /**\n * Private initializer of the audio buffer processor\n * It manages the volume variables and sends the buffers to the worker\n * when recording.\n * Some of this came from:\n * https://webrtc.github.io/samples/src/content/getusermedia/volume/js/soundmeter.js\n */\n _initMicVolumeProcessor() {\n /* eslint no-plusplus: [\"error\", { \"allowForLoopAfterthoughts\": true }] */\n // assumes a single channel - XXX does it need to handle 2 channels?\n const processor = this._audioContext.createScriptProcessor(\n this.bufferLength,\n this.numChannels,\n this.numChannels,\n );\n processor.onaudioprocess = (evt) => {\n if (this._state === 'recording') {\n // send buffers to worker\n this._recordBuffers(evt.inputBuffer);\n\n // stop recording if over the maximum time\n if ((this._audioContext.currentTime - this._recordingStartTime)\n > this.recordingTimeMax\n ) {\n console.warn('stopped recording due to maximum time');\n this.stop();\n }\n }\n\n // XXX assumes mono channel\n const input = evt.inputBuffer.getChannelData(0);\n let sum = 0.0;\n let clipCount = 0;\n for (let i = 0; i < input.length; ++i) {\n // square to calculate signal power\n sum += input[i] * input[i];\n if (Math.abs(input[i]) > 0.99) {\n clipCount += 1;\n }\n }\n this._instant = Math.sqrt(sum / input.length);\n this._slow = (0.95 * this._slow) + (0.05 * this._instant);\n this._clip = (input.length) ? clipCount / input.length : 0;\n\n this._setIsMicMuted();\n this._setIsMicQuiet();\n\n this._analyser.getFloatFrequencyData(this._analyserData);\n this._maxVolume = Math.max(...this._analyserData);\n };\n\n this._micVolumeProcessor = processor;\n return Promise.resolve();\n }\n\n /*\n * Private initializers\n */\n\n /**\n * Sets microphone using getUserMedia\n * @return {Promise} returns a promise that resolves when the audio input\n * has been connected\n */\n _initStream() {\n // TODO obtain with navigator.mediaDevices.getSupportedConstraints()\n const constraints = {\n audio: {\n optional: [{\n echoCancellation: this.requestEchoCancellation,\n }],\n },\n };\n\n return navigator.mediaDevices.getUserMedia(constraints)\n .then((stream) => {\n this._stream = stream;\n\n this._tracks = stream.getAudioTracks();\n console.info('using media stream track labeled: ', this._tracks[0].label);\n // assumes single channel\n this._tracks[0].onmute = this._setIsMicMuted;\n this._tracks[0].onunmute = this._setIsMicMuted;\n\n const source = this._audioContext.createMediaStreamSource(stream);\n const gainNode = this._audioContext.createGain();\n const analyser = this._audioContext.createAnalyser();\n\n if (this.useBandPass) {\n // bandpass filter around human voice\n // https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode\n const biquadFilter = this._audioContext.createBiquadFilter();\n biquadFilter.type = 'bandpass';\n\n biquadFilter.frequency.value = this.bandPassFrequency;\n biquadFilter.gain.Q = this.bandPassQ;\n\n source.connect(biquadFilter);\n biquadFilter.connect(gainNode);\n analyser.smoothingTimeConstant = 0.5;\n } else {\n source.connect(gainNode);\n analyser.smoothingTimeConstant = 0.9;\n }\n analyser.fftSize = this.bufferLength;\n analyser.minDecibels = -90;\n analyser.maxDecibels = -30;\n\n gainNode.connect(analyser);\n analyser.connect(this._micVolumeProcessor);\n this._analyserData = new Float32Array(analyser.frequencyBinCount);\n this._analyser = analyser;\n\n this._micVolumeProcessor.connect(this._audioContext.destination);\n\n this._eventTarget.dispatchEvent(new Event('streamReady'));\n });\n }\n\n /*\n * getters used to expose internal vars while avoiding issues when using with\n * a reactive store (e.g. vuex).\n */\n\n /**\n * Getter of recorder state. Based on MediaRecorder API.\n * @return {string} state of recorder (inactive | recording | paused)\n */\n get state() {\n return this._state;\n }\n\n /**\n * Getter of stream object. Based on MediaRecorder API.\n * @return {MediaStream} media stream object obtain from getUserMedia\n */\n get stream() {\n return this._stream;\n }\n\n get isMicQuiet() {\n return this._isMicQuiet;\n }\n\n get isMicMuted() {\n return this._isMicMuted;\n }\n\n get isSilentRecording() {\n return this._isSilentRecording;\n }\n\n get isRecording() {\n return (this._state === 'recording');\n }\n\n /**\n * Getter of mic volume levels.\n * instant: root mean square of levels in buffer\n * slow: time decaying level\n * clip: count of samples at the top of signals (high noise)\n */\n get volume() {\n return ({\n instant: this._instant,\n slow: this._slow,\n clip: this._clip,\n max: this._maxVolume,\n });\n }\n\n /*\n * Private initializer of event target\n * Set event handlers that mimic MediaRecorder events plus others\n */\n\n // TODO make setters replace the listener insted of adding\n set onstart(cb) {\n this._eventTarget.addEventListener('start', cb);\n }\n set onstop(cb) {\n this._eventTarget.addEventListener('stop', cb);\n }\n set ondataavailable(cb) {\n this._eventTarget.addEventListener('dataavailable', cb);\n }\n set onerror(cb) {\n this._eventTarget.addEventListener('error', cb);\n }\n set onstreamready(cb) {\n this._eventTarget.addEventListener('streamready', cb);\n }\n set onmute(cb) {\n this._eventTarget.addEventListener('mute', cb);\n }\n set onunmute(cb) {\n this._eventTarget.addEventListener('unmute', cb);\n }\n set onsilentrecording(cb) {\n this._eventTarget.addEventListener('silentrecording', cb);\n }\n set onunsilentrecording(cb) {\n this._eventTarget.addEventListener('unsilentrecording', cb);\n }\n set onquiet(cb) {\n this._eventTarget.addEventListener('quiet', cb);\n }\n set onunquiet(cb) {\n this._eventTarget.addEventListener('unquiet', cb);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/lex/recorder.js","\"use strict\";\n\nexports.__esModule = true;\n\nvar _from = require(\"../core-js/array/from\");\n\nvar _from2 = _interopRequireDefault(_from);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return (0, _from2.default)(arr);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/toConsumableArray.js\n// module id = 165\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/array/from.js\n// module id = 166\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/_core').Array.from;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/array/from.js\n// module id = 167\n// module chunks = 0","'use strict';\nvar ctx = require('./_ctx');\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar toLength = require('./_to-length');\nvar createProperty = require('./_create-property');\nvar getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.from.js\n// module id = 168\n// module chunks = 0","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_create-property.js\n// module id = 169\n// module chunks = 0","module.exports = function() {\n return require(\"!!/Users/jcalho/projects/aws-lex-web-ui/lex-web-ui/node_modules/worker-loader/dist/workers/InlineWorker.js\")(\"/******/ (function(modules) { // webpackBootstrap\\n/******/ \\t// The module cache\\n/******/ \\tvar installedModules = {};\\n/******/\\n/******/ \\t// The require function\\n/******/ \\tfunction __webpack_require__(moduleId) {\\n/******/\\n/******/ \\t\\t// Check if module is in cache\\n/******/ \\t\\tif(installedModules[moduleId]) {\\n/******/ \\t\\t\\treturn installedModules[moduleId].exports;\\n/******/ \\t\\t}\\n/******/ \\t\\t// Create a new module (and put it into the cache)\\n/******/ \\t\\tvar module = installedModules[moduleId] = {\\n/******/ \\t\\t\\ti: moduleId,\\n/******/ \\t\\t\\tl: false,\\n/******/ \\t\\t\\texports: {}\\n/******/ \\t\\t};\\n/******/\\n/******/ \\t\\t// Execute the module function\\n/******/ \\t\\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\\n/******/\\n/******/ \\t\\t// Flag the module as loaded\\n/******/ \\t\\tmodule.l = true;\\n/******/\\n/******/ \\t\\t// Return the exports of the module\\n/******/ \\t\\treturn module.exports;\\n/******/ \\t}\\n/******/\\n/******/\\n/******/ \\t// expose the modules object (__webpack_modules__)\\n/******/ \\t__webpack_require__.m = modules;\\n/******/\\n/******/ \\t// expose the module cache\\n/******/ \\t__webpack_require__.c = installedModules;\\n/******/\\n/******/ \\t// define getter function for harmony exports\\n/******/ \\t__webpack_require__.d = function(exports, name, getter) {\\n/******/ \\t\\tif(!__webpack_require__.o(exports, name)) {\\n/******/ \\t\\t\\tObject.defineProperty(exports, name, {\\n/******/ \\t\\t\\t\\tconfigurable: false,\\n/******/ \\t\\t\\t\\tenumerable: true,\\n/******/ \\t\\t\\t\\tget: getter\\n/******/ \\t\\t\\t});\\n/******/ \\t\\t}\\n/******/ \\t};\\n/******/\\n/******/ \\t// getDefaultExport function for compatibility with non-harmony modules\\n/******/ \\t__webpack_require__.n = function(module) {\\n/******/ \\t\\tvar getter = module && module.__esModule ?\\n/******/ \\t\\t\\tfunction getDefault() { return module['default']; } :\\n/******/ \\t\\t\\tfunction getModuleExports() { return module; };\\n/******/ \\t\\t__webpack_require__.d(getter, 'a', getter);\\n/******/ \\t\\treturn getter;\\n/******/ \\t};\\n/******/\\n/******/ \\t// Object.prototype.hasOwnProperty.call\\n/******/ \\t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\\n/******/\\n/******/ \\t// __webpack_public_path__\\n/******/ \\t__webpack_require__.p = \\\"/\\\";\\n/******/\\n/******/ \\t// Load entry module and return exports\\n/******/ \\treturn __webpack_require__(__webpack_require__.s = 0);\\n/******/ })\\n/************************************************************************/\\n/******/ ([\\n/* 0 */\\n/***/ (function(module, exports) {\\n\\n// based on https://github.com/mattdiamond/Recorderjs/blob/master/src/recorder.js\\n// with a few optimizations including downsampling and trimming quiet samples\\n\\n/* global Blob self */\\n/* eslint no-restricted-globals: off */\\n/* eslint prefer-arrow-callback: [\\\"error\\\", { \\\"allowNamedFunctions\\\": true }] */\\n/* eslint no-param-reassign: [\\\"error\\\", { \\\"props\\\": false }] */\\n/* eslint no-use-before-define: [\\\"error\\\", { \\\"functions\\\": false }] */\\n/* eslint no-plusplus: off */\\n/* eslint comma-dangle: [\\\"error\\\", {\\\"functions\\\": \\\"never\\\", \\\"objects\\\": \\\"always-multiline\\\"}] */\\n/* eslint-disable prefer-destructuring */\\nconst bitDepth = 16;\\nconst bytesPerSample = bitDepth / 8;\\nconst outSampleRate = 16000;\\nconst outNumChannels = 1;\\n\\nlet recLength = 0;\\nlet recBuffers = [];\\n\\nconst options = {\\n sampleRate: 44000,\\n numChannels: 1,\\n useDownsample: true,\\n // controls if the encoder will trim silent samples at begining and end of buffer\\n useTrim: true,\\n // trim samples below this value at the beginnig and end of the buffer\\n // lower the value trim less silence (larger file size)\\n // reasonable values seem to be between 0.005 and 0.0005\\n quietTrimThreshold: 0.0008,\\n // how many samples to add back to the buffer before/after the quiet threshold\\n // higher values result in less silence trimming (larger file size)\\n // reasonable values seem to be between 3500 and 5000\\n quietTrimSlackBack: 4000,\\n};\\n\\nself.onmessage = (evt) => {\\n switch (evt.data.command) {\\n case 'init':\\n init(evt.data.config);\\n break;\\n case 'record':\\n record(evt.data.buffer);\\n break;\\n case 'exportWav':\\n exportWAV(evt.data.type);\\n break;\\n case 'getBuffer':\\n getBuffer();\\n break;\\n case 'clear':\\n clear();\\n break;\\n case 'close':\\n self.close();\\n break;\\n default:\\n break;\\n }\\n};\\n\\nfunction init(config) {\\n Object.assign(options, config);\\n initBuffers();\\n}\\n\\nfunction record(inputBuffer) {\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n recBuffers[channel].push(inputBuffer[channel]);\\n }\\n recLength += inputBuffer[0].length;\\n}\\n\\nfunction exportWAV(type) {\\n const buffers = [];\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n buffers.push(mergeBuffers(recBuffers[channel], recLength));\\n }\\n let interleaved;\\n if (options.numChannels === 2 && outNumChannels === 2) {\\n interleaved = interleave(buffers[0], buffers[1]);\\n } else {\\n interleaved = buffers[0];\\n }\\n const downsampledBuffer = downsampleTrimBuffer(interleaved, outSampleRate);\\n const dataview = encodeWAV(downsampledBuffer);\\n const audioBlob = new Blob([dataview], { type });\\n\\n self.postMessage({\\n command: 'exportWAV',\\n data: audioBlob,\\n });\\n}\\n\\nfunction getBuffer() {\\n const buffers = [];\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n buffers.push(mergeBuffers(recBuffers[channel], recLength));\\n }\\n self.postMessage({ command: 'getBuffer', data: buffers });\\n}\\n\\nfunction clear() {\\n recLength = 0;\\n recBuffers = [];\\n initBuffers();\\n}\\n\\nfunction initBuffers() {\\n for (let channel = 0; channel < options.numChannels; channel++) {\\n recBuffers[channel] = [];\\n }\\n}\\n\\nfunction mergeBuffers(recBuffer, length) {\\n const result = new Float32Array(length);\\n let offset = 0;\\n for (let i = 0; i < recBuffer.length; i++) {\\n result.set(recBuffer[i], offset);\\n offset += recBuffer[i].length;\\n }\\n return result;\\n}\\n\\nfunction interleave(inputL, inputR) {\\n const length = inputL.length + inputR.length;\\n const result = new Float32Array(length);\\n\\n let index = 0;\\n let inputIndex = 0;\\n\\n while (index < length) {\\n result[index++] = inputL[inputIndex];\\n result[index++] = inputR[inputIndex];\\n inputIndex++;\\n }\\n return result;\\n}\\n\\nfunction floatTo16BitPCM(output, offset, input) {\\n for (let i = 0, o = offset; i < input.length; i++, o += 2) {\\n const s = Math.max(-1, Math.min(1, input[i]));\\n output.setInt16(o, s < 0 ? s * 0x8000 : s * 0x7FFF, true);\\n }\\n}\\n\\n// Lex doesn't require proper wav header\\n// still inserting wav header for playing on client side\\nfunction addHeader(view, length) {\\n // RIFF identifier 'RIFF'\\n view.setUint32(0, 1380533830, false);\\n // file length minus RIFF identifier length and file description length\\n view.setUint32(4, 36 + length, true);\\n // RIFF type 'WAVE'\\n view.setUint32(8, 1463899717, false);\\n // format chunk identifier 'fmt '\\n view.setUint32(12, 1718449184, false);\\n // format chunk length\\n view.setUint32(16, 16, true);\\n // sample format (raw)\\n view.setUint16(20, 1, true);\\n // channel count\\n view.setUint16(22, outNumChannels, true);\\n // sample rate\\n view.setUint32(24, outSampleRate, true);\\n // byte rate (sample rate * block align)\\n view.setUint32(28, outSampleRate * bytesPerSample * outNumChannels, true);\\n // block align (channel count * bytes per sample)\\n view.setUint16(32, bytesPerSample * outNumChannels, true);\\n // bits per sample\\n view.setUint16(34, bitDepth, true);\\n // data chunk identifier 'data'\\n view.setUint32(36, 1684108385, false);\\n}\\n\\nfunction encodeWAV(samples) {\\n const buffer = new ArrayBuffer(44 + (samples.length * 2));\\n const view = new DataView(buffer);\\n\\n addHeader(view, samples.length);\\n floatTo16BitPCM(view, 44, samples);\\n\\n return view;\\n}\\n\\nfunction downsampleTrimBuffer(buffer, rate) {\\n if (rate === options.sampleRate) {\\n return buffer;\\n }\\n\\n const length = buffer.length;\\n const sampleRateRatio = options.sampleRate / rate;\\n const newLength = Math.round(length / sampleRateRatio);\\n\\n const result = new Float32Array(newLength);\\n let offsetResult = 0;\\n let offsetBuffer = 0;\\n let firstNonQuiet = 0;\\n let lastNonQuiet = length;\\n while (offsetResult < result.length) {\\n const nextOffsetBuffer = Math.round((offsetResult + 1) * sampleRateRatio);\\n let accum = 0;\\n let count = 0;\\n for (let i = offsetBuffer; (i < nextOffsetBuffer) && (i < length); i++) {\\n accum += buffer[i];\\n count++;\\n }\\n // mark first and last sample over the quiet threshold\\n if (accum > options.quietTrimThreshold) {\\n if (firstNonQuiet === 0) {\\n firstNonQuiet = offsetResult;\\n }\\n lastNonQuiet = offsetResult;\\n }\\n result[offsetResult] = accum / count;\\n offsetResult++;\\n offsetBuffer = nextOffsetBuffer;\\n }\\n\\n /*\\n console.info('encoder trim size reduction',\\n (Math.min(newLength, lastNonQuiet + options.quietTrimSlackBack) -\\n Math.max(0, firstNonQuiet - options.quietTrimSlackBack)) / result.length\\n );\\n */\\n return (options.useTrim) ?\\n // slice based on quiet threshold and put slack back into the buffer\\n result.slice(\\n Math.max(0, firstNonQuiet - options.quietTrimSlackBack),\\n Math.min(newLength, lastNonQuiet + options.quietTrimSlackBack)\\n ) :\\n result;\\n}\\n\\n\\n/***/ })\\n/******/ ]);\\n//# sourceMappingURL=wav-worker.js.map\", __webpack_public_path__ + \"bundle/wav-worker.js\");\n};\n\n\n// WEBPACK FOOTER //\n// ./src/lib/lex/wav-worker.js","'use strict';\n\n// http://stackoverflow.com/questions/10343913/how-to-create-a-web-worker-from-a-string\n\nvar URL = window.URL || window.webkitURL;\n\nmodule.exports = function (content, url) {\n try {\n try {\n var blob;\n\n try {\n // BlobBuilder = Deprecated, but widely implemented\n var BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;\n\n blob = new BlobBuilder();\n\n blob.append(content);\n\n blob = blob.getBlob();\n } catch (e) {\n // The proposed API\n blob = new Blob([content]);\n }\n\n return new Worker(URL.createObjectURL(blob));\n } catch (e) {\n return new Worker('data:application/javascript,' + encodeURIComponent(content));\n }\n } catch (e) {\n if (!url) {\n throw Error('Inline worker is not supported');\n }\n\n return new Worker(url);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/worker-loader/dist/workers/InlineWorker.js\n// module id = 171\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Vuex store recorder handlers\n */\n\n/* eslint no-console: [\"error\", { allow: [\"info\", \"warn\", \"error\", \"time\", \"timeEnd\"] }] */\n/* eslint no-param-reassign: [\"error\", { \"props\": false }] */\n\nconst initRecorderHandlers = (context, recorder) => {\n /* global Blob */\n\n recorder.onstart = () => {\n console.info('recorder start event triggered');\n console.time('recording time');\n };\n recorder.onstop = () => {\n context.dispatch('stopRecording');\n console.timeEnd('recording time');\n console.time('recording processing time');\n console.info('recorder stop event triggered');\n };\n recorder.onsilentrecording = () => {\n console.info('recorder silent recording triggered');\n context.commit('increaseSilentRecordingCount');\n };\n recorder.onunsilentrecording = () => {\n if (context.state.recState.silentRecordingCount > 0) {\n context.commit('resetSilentRecordingCount');\n }\n };\n recorder.onerror = (e) => {\n console.error('recorder onerror event triggered', e);\n };\n recorder.onstreamready = () => {\n console.info('recorder stream ready event triggered');\n };\n recorder.onmute = () => {\n console.info('recorder mute event triggered');\n context.commit('setIsMicMuted', true);\n };\n recorder.onunmute = () => {\n console.info('recorder unmute event triggered');\n context.commit('setIsMicMuted', false);\n };\n recorder.onquiet = () => {\n console.info('recorder quiet event triggered');\n context.commit('setIsMicQuiet', true);\n };\n recorder.onunquiet = () => {\n console.info('recorder unquiet event triggered');\n context.commit('setIsMicQuiet', false);\n };\n\n // TODO need to change recorder event setter to support\n // replacing handlers instead of adding\n recorder.ondataavailable = (e) => {\n const { mimeType } = recorder;\n console.info('recorder data available event triggered');\n const audioBlob = new Blob([e.detail], { type: mimeType });\n // XXX not used for now since only encoding WAV format\n let offset = 0;\n // offset is only needed for opus encoded ogg files\n // extract the offset where the opus frames are found\n // leaving for future reference\n // https://tools.ietf.org/html/rfc7845\n // https://tools.ietf.org/html/rfc6716\n // https://www.xiph.org/ogg/doc/framing.html\n if (mimeType.startsWith('audio/ogg')) {\n offset = 125 + e.detail[125] + 1;\n }\n console.timeEnd('recording processing time');\n\n context.dispatch('lexPostContent', audioBlob, offset)\n .then((lexAudioBlob) => {\n if (context.state.recState.silentRecordingCount >=\n context.state.config.converser.silentConsecutiveRecordingMax\n ) {\n const errorMessage =\n 'Too many consecutive silent recordings: ' +\n `${context.state.recState.silentRecordingCount}.`;\n return Promise.reject(new Error(errorMessage));\n }\n return Promise.all([\n context.dispatch('getAudioUrl', audioBlob),\n context.dispatch('getAudioUrl', lexAudioBlob),\n ]);\n })\n .then((audioUrls) => {\n // handle being interrupted by text\n if (context.state.lex.dialogState !== 'Fulfilled' &&\n !context.state.recState.isConversationGoing\n ) {\n return Promise.resolve();\n }\n const [humanAudioUrl, lexAudioUrl] = audioUrls;\n context.dispatch('pushMessage', {\n type: 'human',\n audio: humanAudioUrl,\n text: context.state.lex.inputTranscript,\n });\n context.dispatch('pushMessage', {\n type: 'bot',\n audio: lexAudioUrl,\n text: context.state.lex.message,\n dialogState: context.state.lex.dialogState,\n responseCard: context.state.lex.responseCard,\n alts: JSON.parse(context.state.lex.sessionAttributes.appContext || '{}').altMessages,\n });\n return context.dispatch('playAudio', lexAudioUrl, {}, offset);\n })\n .then(() => {\n if (\n ['Fulfilled', 'ReadyForFulfillment', 'Failed']\n .indexOf(context.state.lex.dialogState) >= 0\n ) {\n return context.dispatch('stopConversation')\n .then(() => context.dispatch('reInitBot'));\n }\n\n if (context.state.recState.isConversationGoing) {\n return context.dispatch('startRecording');\n }\n return Promise.resolve();\n })\n .catch((error) => {\n const errorMessage = (context.state.config.ui.showErrorDetails) ?\n ` ${error}` : '';\n console.error('converser error:', error);\n context.dispatch('stopConversation');\n context.dispatch(\n 'pushErrorMessage',\n `Sorry, I had an error handling this conversation.${errorMessage}`,\n );\n context.commit('resetSilentRecordingCount');\n });\n };\n};\nexport default initRecorderHandlers;\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/recorder-handlers.js","module.exports = \"data:audio/ogg;base64,T2dnUwACAAAAAAAAAAAyzN3NAAAAAGFf2X8BM39GTEFDAQAAAWZMYUMAAAAiEgASAAAAAAAkFQrEQPAAAAAAAAAAAAAAAAAAAAAAAAAAAE9nZ1MAAAAAAAAAAAAAMszdzQEAAAD5LKCSATeEAAAzDQAAAExhdmY1NS40OC4xMDABAAAAGgAAAGVuY29kZXI9TGF2YzU1LjY5LjEwMCBmbGFjT2dnUwAEARIAAAAAAAAyzN3NAgAAAKWVljkCDAD/+GkIAAAdAAABICI=\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/silent.ogg\n// module id = 173\n// module chunks = 0","module.exports = \"data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/silent.mp3\n// module id = 174\n// module chunks = 0","/*\n Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Licensed under the Amazon Software License (the \"License\"). You may not use this file\n except in compliance with the License. A copy of the License is located at\n\n http://aws.amazon.com/asl/\n\n or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\"\n BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the\n License for the specific language governing permissions and limitations under the License.\n */\n\n/* eslint no-console: [\"error\", { allow: [\"warn\", \"error\"] }] */\n\nexport default class {\n constructor({\n botName,\n botAlias = '$LATEST',\n userId,\n lexRuntimeClient,\n }) {\n if (!botName || !lexRuntimeClient) {\n throw new Error('invalid lex client constructor arguments');\n }\n\n this.botName = botName;\n this.botAlias = botAlias;\n this.userId = userId ||\n 'lex-web-ui-' +\n `${Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1)}`;\n\n this.lexRuntimeClient = lexRuntimeClient;\n this.credentials = this.lexRuntimeClient.config.credentials;\n }\n\n initCredentials(credentials) {\n this.credentials = credentials;\n this.lexRuntimeClient.config.credentials = this.credentials;\n this.userId = (credentials.identityId) ?\n credentials.identityId :\n this.userId;\n }\n\n postText(inputText, sessionAttributes = {}) {\n const postTextReq = this.lexRuntimeClient.postText({\n botAlias: this.botAlias,\n botName: this.botName,\n userId: this.userId,\n inputText,\n sessionAttributes,\n });\n return this.credentials.getPromise()\n .then(creds => creds && this.initCredentials(creds))\n .then(() => postTextReq.promise());\n }\n\n postContent(\n blob,\n sessionAttributes = {},\n acceptFormat = 'audio/ogg',\n offset = 0,\n ) {\n const mediaType = blob.type;\n let contentType = mediaType;\n\n if (mediaType.startsWith('audio/wav')) {\n contentType = 'audio/x-l16; sample-rate=16000; channel-count=1';\n } else if (mediaType.startsWith('audio/ogg')) {\n contentType =\n 'audio/x-cbr-opus-with-preamble; bit-rate=32000;' +\n ` frame-size-milliseconds=20; preamble-size=${offset}`;\n } else {\n console.warn('unknown media type in lex client');\n }\n\n const postContentReq = this.lexRuntimeClient.postContent({\n accept: acceptFormat,\n botAlias: this.botAlias,\n botName: this.botName,\n userId: this.userId,\n contentType,\n inputStream: blob,\n sessionAttributes,\n });\n\n return this.credentials.getPromise()\n .then(creds => creds && this.initCredentials(creds))\n .then(() => postContentReq.promise());\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/lex/client.js"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/lex-web-ui.min.css b/dist/lex-web-ui.min.css old mode 100755 new mode 100644 diff --git a/dist/lex-web-ui.min.js b/dist/lex-web-ui.min.js old mode 100755 new mode 100644 diff --git a/dist/wav-worker.js b/dist/wav-worker.js old mode 100755 new mode 100644 diff --git a/dist/wav-worker.js.map b/dist/wav-worker.js.map old mode 100755 new mode 100644 diff --git a/dist/wav-worker.min.js b/dist/wav-worker.min.js old mode 100755 new mode 100644 diff --git a/src/lex-web-ui-loader/js/lib/iframe-component-loader.js b/src/lex-web-ui-loader/js/lib/iframe-component-loader.js index 768439f7..6e94fbd5 100644 --- a/src/lex-web-ui-loader/js/lib/iframe-component-loader.js +++ b/src/lex-web-ui-loader/js/lib/iframe-component-loader.js @@ -373,9 +373,6 @@ export class IframeComponentLoader { } return this.credentials.getPromise() - .then(() => ( - localStorage.setItem('cognitoid', this.credentials.identityId) - )) .then(() => this.credentials); } diff --git a/src/website/parent.html b/src/website/parent.html index ec490016..3789ec89 100644 --- a/src/website/parent.html +++ b/src/website/parent.html @@ -1,3 +1,4 @@ + From 999b834e44b9e506dff4e8620d1c9a9d13d7252c Mon Sep 17 00:00:00 2001 From: John M Calhoun Date: Thu, 14 Jun 2018 15:03:18 -0400 Subject: [PATCH 2/2] updated changelog and version --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9011e8b..e5372964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.13.2] - 2018-06-14 + +### Fixed +- Error in IE11 and Edge to access localStorage. [4f91fbe9e462a680c0bf3476203589a88afccc84] ## [0.13.1] - 2018-06-07 diff --git a/package.json b/package.json index c8e98548..69fd8198 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aws-lex-web-ui", - "version": "0.13.1", + "version": "0.13.2", "description": "Sample Amazon Lex Web Interface", "main": "dist/lex-web-ui.min.js", "repository": {