UNPKG

call-me-aishmael

Version:
17 lines 116 kB
/*! * * * (C) Copyright IBM Corp. 2017. All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * * in compliance with the License. You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software distributed under the License * * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * * or implied. See the License for the specific language governing permissions and limitations under * * the License. * */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("IBMChat",[],e):"object"==typeof exports?exports.IBMChat=e():t.IBMChat=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),i=t[e[0]];return function(t,e,r){i.apply(this,[t,e,r].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){n(62);var i=n(65),r={init:i.init,restart:i.restart,destroy:i.destroy,clear:i.clear,send:function(t){return i.send(t),r},receive:function(t){i.receive(t)},sendMock:function(t){return i.sendMock(t),r},sendSilently:function(t){return i.sendSilently(t),r},registerLayout:function(t,e){return i.registerLayout(t,e),r},enableCustomInputHandler:function(t){return i.enableCustomInputHandler(t),r},disableCustomInputHandler:function(){return i.disableCustomInputHandler(),r},focusInput:function(){return i.focusInput(),r},disableInput:function(){return i.disableInput(),r},enableInput:function(){return i.enableInput(),r},subscribe:i.subscribe,subscribeOnce:i.subscribeOnce,publish:function(t,e){return i.publish(t,e),r},profile:{get:i.profile.get,set:i.profile.set,has:i.profile.has,clear:i.profile.clear,"delete":i.profile["delete"],forEach:i.profile.forEach},currentSubscriptions:i.currentSubscriptions,playback:i.playback,state:{get:i.state.get,set:function(t){return i.state.set(t),r}},debug:function(){return i.debug(),r},version:"1.2.17"};t.exports=r},function(t,e,n){function i(t){switch(t){case!0:d("send",{message:"success",silent:!0});break;case!1:d("send",{message:"failure",silent:!0});break;default:d("send",{message:"cancel",silent:!0})}}function r(){p=[]}function o(t,e,n){void 0===typeof n&&(n=e)}function a(){return p.slice(0)}function s(t){for(var e=a(),n=0;n<e.length;n++){var i=e[n];if(i&&i.event===t)return!0}return!1}function c(t,e,n,i){void 0===typeof n&&(n=e);var r=p.push({event:t,handler:e.bind(n),subscribeOnce:!!i})-1;if(!i)return{remove:function(){delete p[r]}}}function l(t,e,n){return c(t,e,n,!1)}function u(t,e,n){c(t,e,n,!0)}function d(t,e,n){for(var i=h.get(),r=!1,o=0;o<p.length;o++)p[o]&&p[o].event&&p[o].event===t&&(i.DEBUG&&(r=!0,"resize"!==t&&console.log("Subscription to "+t+" was called: ",e)),p[o].handler.call(void 0,e,n),p[o]&&p[o].subscribeOnce===!0&&delete p[o]);i.DEBUG&&t.indexOf("layout")==-1&&!r&&console.warn("Nothing is subscribed to "+t)}var h=n(2),p=[];t.exports={destroy:r,unsubscribe:o,currentSubscriptions:a,hasSubscription:s,subscribe:l,subscribeOnce:u,publish:d,completeEvent:i}},function(t,e,n){function i(){return s}function r(){s={},o({})}function o(t){s=c({},s,t),s.DEBUG&&(a.push(s),console.log("STATE HISTORY: ",a),console.log("NEW STATE: ",s))}var a=[],s={},c=n(4);t.exports={get:i,set:o,destroy:r,getState:i,setState:o,destroyState:r}},function(t,e,n){function i(t,e){t&&t.setAttribute("class","IBMChat-ibm-spinner IBMChat-input-loading IBMChat-"+e+"-spin")}function r(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}function o(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}function a(t,e){return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t=t.split("${"+n+"}").join(e[n])}),t}function s(){var t=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(t+=performance.now()),"IBMChat-"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}function c(t,e){var n=" "+e+" ";return(" "+t.className+" ").replace(/[\n\t]/g," ").indexOf(n)>-1}function l(t,e){for(var n=0;n<t.length;n++){var i=e.cloneNode(!0);t[n].appendChild(i)}}function u(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function d(){var t=p.get();h&&clearTimeout(h),u(t.root)?(t.isVisible||p.set({isVisible:!0}),f.publish("resize"),h=setTimeout(d,1e3)):(t.isVisible&&p.set({isVisible:!1}),h=setTimeout(d,300))}var h,p=n(2),f=n(1),m=n(90),v=n(91),b=n(89),g={show:function(t){i(t,"init")},hide:function(t){i(t,"end")}};t.exports={appendToEach:l,debounce:r,serialize:o,hasClass:c,getUUID:s,attachStyles:m.attachStyles,attachPlaybackStyles:m.attachPlaybackStyles,convertHexToRGBA:m.convertHexToRGBA,normalizeToHex:m.normalizeToHex,spinner:g,compile:a,writeMessage:v,addResizeListener:b.addResizeListener,removeResizeListener:b.removeResizeListener,isVisible:u,checkVisibility:d}},function(t,e,n){var i=n(10),r=n(15),o=n(16),a=n(21),s=n(18),c=n(25),l=Object.prototype,u=l.hasOwnProperty,d=l.propertyIsEnumerable,h=!d.call({valueOf:1},"valueOf"),p=o(function(t,e){if(h||s(e)||a(e))return void r(e,c(e),t);for(var n in e)u.call(e,n)&&i(t,n,e[n])});t.exports=p},function(t,e,n){function i(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=p[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(l(i.parts[o],e))}else{for(var a=[],o=0;o<i.parts.length;o++)a.push(l(i.parts[o],e));p[i.id]={id:i.id,refs:1,parts:a}}}}function r(t){for(var e=[],n={},i=0;i<t.length;i++){var r=t[i],o=r[0],a=r[1],s=r[2],c=r[3],l={css:a,media:s,sourceMap:c};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}return e}function o(t,e){var n=v(),i=y[y.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),y.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function c(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function l(t,e){var n,i,r;if(e.singleton){var o=g++;n=b||(b=s(e)),i=u.bind(null,n,o,!1),r=u.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),i=h.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=d.bind(null,n),r=function(){a(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function u(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function h(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(r),o&&URL.revokeObjectURL(o)}var p={},f=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},m=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=f(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,g=0,y=[];t.exports=function(t,e){if("object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},"undefined"==typeof e.singleton&&(e.singleton=m()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=r(t);return i(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],c=p[s.id];c.refs--,o.push(c)}if(t){var l=r(t);i(l,e)}for(var a=0;a<o.length;a++){var c=o[a];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete p[c.id]}}}};var x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){t.exports={input:n(52),receive:n(53),send:n(54),start:n(55)}},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(22)},function(t,e){"use strict";function n(t){return"[object Array]"===x.call(t)}function i(t){return"[object ArrayBuffer]"===x.call(t)}function r(t){return"undefined"!=typeof FormData&&t instanceof FormData}function o(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function a(t){return"string"==typeof t}function s(t){return"number"==typeof t}function c(t){return"undefined"==typeof t}function l(t){return null!==t&&"object"==typeof t}function u(t){return"[object Date]"===x.call(t)}function d(t){return"[object File]"===x.call(t)}function h(t){return"[object Blob]"===x.call(t)}function p(t){return"[object Function]"===x.call(t)}function f(t){return l(t)&&p(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function v(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(null,t[o],o,t)}function y(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=y(e[n],t):e[n]=t}for(var e={},n=0,i=arguments.length;n<i;n++)g(arguments[n],t);return e}var x=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:i,isFormData:r,isArrayBufferView:o,isString:a,isNumber:s,isObject:l,isUndefined:c,isDate:u,isFile:d,isBlob:h,isFunction:p,isStream:f,isURLSearchParams:m,isStandardBrowserEnv:b,forEach:g,merge:y,trim:v}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(d===clearTimeout)return clearTimeout(t);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){m&&p&&(m=!1,p.length?f=p.concat(f):v=-1,f.length&&s())}function s(){if(!m){var t=r(a);m=!0;for(var e=f.length;e;){for(p=f,f=[];++v<e;)p&&p[v].run();v=-1,e=f.length}p=null,m=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,d,h=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(t){d=i}}();var p,f=[],m=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new c(t,e)),1!==f.length||m||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var i=n(1),r=n(12),o=n(18),a=n(4),s=n(16),c="undefined"!=typeof window&&window.btoa||n(11),l=n(19);t.exports=function(t,u,d){var h=d.data,p=d.headers;i.isFormData(h)&&delete p["Content-Type"];var f=new XMLHttpRequest,m="onreadystatechange",v=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||s(d.url)||(f=new window.XDomainRequest,m="onload",v=!0,f.onprogress=function(){},f.ontimeout=function(){}),d.auth){var b=d.auth.username||"",g=d.auth.password||"";p.Authorization="Basic "+c(b+":"+g)}if(f.open(d.method.toUpperCase(),r(d.url,d.params,d.paramsSerializer),!0),f.timeout=d.timeout,f[m]=function(){if(f&&(4===f.readyState||v)&&0!==f.status){var e="getAllResponseHeaders"in f?o(f.getAllResponseHeaders()):null,n=d.responseType&&"text"!==d.responseType?f.response:f.responseText,i={data:a(n,e,d.transformResponse),status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:e,config:d,request:f};l(t,u,i),f=null}},f.onerror=function(){u(new Error("Network Error")),f=null},f.ontimeout=function(){var t=new Error("timeout of "+d.timeout+"ms exceeded");t.timeout=d.timeout,t.code="ECONNABORTED",u(t),f=null},i.isStandardBrowserEnv()){var y=n(14),x=d.withCredentials||s(d.url)?y.read(d.xsrfCookieName):void 0;x&&(p[d.xsrfHeaderName]=x)}if("setRequestHeader"in f&&i.forEach(p,function(t,e){"undefined"==typeof h&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),d.withCredentials&&(f.withCredentials=!0),d.responseType)try{f.responseType=d.responseType}catch(C){if("json"!==f.responseType)throw C}d.progress&&("post"===d.method||"put"===d.method?f.upload.addEventListener("progress",d.progress):"get"===d.method&&f.addEventListener("progress",d.progress)),void 0===h&&(h=null),f.send(h)}}).call(e,n(2))},function(t,e,n){"use strict";var i=n(1);t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){t.exports=n(6)},function(t,e,n){"use strict";function i(t){this.defaults=o.merge({},t),this.interceptors={request:new s,response:new s}}var r=n(9),o=n(1),a=n(8),s=n(7),c=n(15),l=n(13),u=n(10),d=n(4);i.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(r,this.defaults,{method:"get"},t),t.baseURL&&!c(t.url)&&(t.url=l(t.baseURL,t.url)),t.withCredentials=t.withCredentials||this.defaults.withCredentials,t.data=d(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n};var h=new i(r),p=t.exports=u(i.prototype.request,h);p.request=u(i.prototype.request,h),p.Axios=i,p.defaults=h.defaults,p.interceptors=h.interceptors,p.create=function(t){return new i(t)},p.all=function(t){return Promise.all(t)},p.spread=n(20),o.forEach(["delete","get","head"],function(t){i.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))},p[t]=u(i.prototype[t],h)}),o.forEach(["post","put","patch"],function(t){i.prototype[t]=function(e,n,i){return this.request(o.merge(i||{},{method:t,url:e,data:n}))},p[t]=u(i.prototype[t],h)})},function(t,e,n){"use strict";function i(){this.handlers=[]}var r=n(1);i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){(function(e){"use strict";t.exports=function(t){return new Promise(function(i,r){try{var o;"function"==typeof t.adapter?o=t.adapter:"undefined"!=typeof XMLHttpRequest?o=n(3):"undefined"!=typeof e&&(o=n(3)),"function"==typeof o&&o(i,r,t)}catch(a){r(a)}})}}).call(e,n(2))},function(t,e,n){"use strict";function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var r=n(1),o=n(17),a=/^\)\]\}',?\n/,s={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(a,"");try{t=JSON.parse(t)}catch(e){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(s),post:r.merge(s),put:r.merge(s)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function i(t){for(var e,i,o=String(t),a="",s=0,c=r;o.charAt(0|s)||(c="=",s%1);a+=c.charAt(63&e>>8-s%1*8)){if(i=o.charCodeAt(s+=.75),i>255)throw new n;e=e<<8|i}return a}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=i},function(t,e,n){"use strict";function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=n(1);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(r.isArray(t)&&(e+="[]"),r.isArray(t)||(t=[t]),r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))}))}),o=a.join("&")}return o&&(t+=(t.indexOf("?")===-1?"?":"&")+o),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var i=n(1);t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var i=n(1);t.exports=i.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return e=t(window.location.href),function(n){var r=i.isString(n)?t(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var i=n(1);t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t){var e,n,r,o={};return t?(i.forEach(t.split("\n"),function(t){r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e&&(o[e]=o[e]?o[e]+", "+n:n)}),o):o}},function(t,e){"use strict";t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(n):t(n)}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){var i;(function(t,r,o){(function(){"use strict";function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return"function"==typeof t}function c(t){J=t}function l(t){tt=t}function u(){return function(){t.nextTick(m)}}function d(){return function(){W(m)}}function h(){var t=0,e=new it(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function p(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function f(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<K;t+=2){var e=at[t],n=at[t+1];e(n),at[t]=void 0,at[t+1]=void 0}K=0}function v(){try{var t=n(27);return W=t.runOnLoop||t.runOnContext,d()}catch(e){return f()}}function b(t,e){var n=this,i=new this.constructor(y);void 0===i[lt]&&O(i);var r=n._state;if(r){var o=arguments[r-1];tt(function(){$(r,i,o,n._result)})}else T(n,i,t,e);return i}function g(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return E(n,t),n}function y(){}function x(){return new TypeError("You cannot resolve a promise with itself")}function C(){return new TypeError("A promises callback cannot return that same promise.")}function I(t){try{return t.then}catch(e){return pt.error=e,pt}}function w(t,e,n,i){try{t.call(e,n,i)}catch(r){return r}}function B(t,e,n){tt(function(t){var i=!1,r=w(n,e,function(n){i||(i=!0,e!==n?E(t,n):k(t,n))},function(e){i||(i=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,S(t,r))},t)}function _(t,e){e._state===dt?k(t,e._result):e._state===ht?S(t,e._result):T(e,void 0,function(e){E(t,e)},function(e){S(t,e)})}function M(t,e,n){e.constructor===t.constructor&&n===st&&constructor.resolve===ct?_(t,e):n===pt?S(t,pt.error):void 0===n?k(t,e):s(n)?B(t,e,n):k(t,e)}function E(t,e){t===e?S(t,x()):a(e)?M(t,e,I(e)):k(t,e)}function L(t){t._onerror&&t._onerror(t._result),A(t)}function k(t,e){t._state===ut&&(t._result=e,t._state=dt,0!==t._subscribers.length&&tt(A,t))}function S(t,e){t._state===ut&&(t._state=ht,t._result=e,tt(L,t))}function T(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+dt]=n,r[o+ht]=i,0===o&&t._state&&tt(A,t)}function A(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i,r,o=t._result,a=0;a<e.length;a+=3)i=e[a],r=e[a+n],i?$(n,i,r,o):r(o);t._subscribers.length=0}}function D(){this.error=null}function H(t,e){try{return t(e)}catch(n){return ft.error=n,ft}}function $(t,e,n,i){var r,o,a,c,l=s(n);if(l){if(r=H(n,i),r===ft?(c=!0,o=r.error,r=null):a=!0,e===r)return void S(e,C())}else r=i,a=!0;e._state!==ut||(l&&a?E(e,r):c?S(e,o):t===dt?k(e,r):t===ht&&S(e,r))}function z(t,e){try{e(function(e){E(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function q(){return mt++}function O(t){t[lt]=mt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(t){return new xt(this,t).promise}function j(t){var e=this;return new e(Z(t)?function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function U(t){var e=this,n=new e(y);return S(n,t),n}function N(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function P(t){this[lt]=q(),this._result=this._state=void 0,this._subscribers=[],y!==t&&("function"!=typeof t&&N(),this instanceof P?z(this,t):F())}function V(t,e){this._instanceConstructor=t,this.promise=new t(y),this.promise[lt]||O(this.promise),Z(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&k(this.promise,this._result))):S(this.promise,X())}function X(){return new Error("Array Methods must be provided an Array")}function G(){var t;if("undefined"!=typeof r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=yt)}var Y;Y=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var W,J,Q,Z=Y,K=0,tt=function(t,e){at[K]=t,at[K+1]=e,K+=2,2===K&&(J?J(m):Q())},et="undefined"!=typeof window?window:void 0,nt=et||{},it=nt.MutationObserver||nt.WebKitMutationObserver,rt="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),ot="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,at=new Array(1e3);Q=rt?u():it?h():ot?p():void 0===et?v():f();var st=b,ct=g,lt=Math.random().toString(36).substring(16),ut=void 0,dt=1,ht=2,pt=new D,ft=new D,mt=0,vt=R,bt=j,gt=U,yt=P;P.all=vt,P.race=bt,P.resolve=ct,P.reject=gt,P._setScheduler=c,P._setAsap=l,P._asap=tt,P.prototype={constructor:P,then:st,"catch":function(t){return this.then(null,t)}};var xt=V;V.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ut&&n<t;n++)this._eachEntry(e[n],n)},V.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===ct){var r=I(t);if(r===st&&t._state!==ut)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===yt){var o=new n(y);M(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(i(t),e)},V.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===ut&&(this._remaining--,t===ht?S(i,n):this._result[e]=n),0===this._remaining&&k(i,this._result)},V.prototype._willSettleAt=function(t,e){var n=this;T(t,void 0,function(t){n._settledAt(dt,e,t)},function(t){n._settledAt(ht,e,t)})};var Ct=G,It={Promise:yt,polyfill:Ct};n(25).amd?(i=function(){return It}.call(e,n,e,o),!(void 0!==i&&(o.exports=i))):"undefined"!=typeof o&&o.exports?o.exports=It:"undefined"!=typeof this&&(this.ES6Promise=It),Ct()}).call(this)}).call(e,n(2),function(){return this}(),n(26)(t))},function(t,e,n){"undefined"==typeof Promise&&n(21).polyfill();var i=n(24),r=n(5),o=n(23),a={baseURL:"https://dev.api.ibm.com/virtualagent/development/api/v1/",timeout:3e4,userID:null,withCredentials:!1,XIBMClientID:!1,XIBMClientSecret:!1},s=r.create(a),c=/\|&(.*?)\|/g,l=function(t){var e="string"==typeof t?t:JSON.stringify(t),n=e.match(c)||[];return e=n.reduce(function(t,e){const n=e.slice(2,-1),i=o.get(n)||n;return t.replace(e,i)},e),"string"==typeof t?e:JSON.parse(e)},u=t.exports={configure:function(t){return i(a,t),s=r.create({baseURL:a.baseURL,timeout:a.timeout,withCredentials:a.withCredentials,headers:a.XIBMClientID&&a.XIBMClientSecret?{"X-IBM-Client-Id":a.XIBMClientID,"X-IBM-Client-Secret":a.XIBMClientSecret}:{}}),u},start:function(t){var e=d(),n={userID:a.userID},i="/bots/"+t+"/dialogs",r={headers:{"X-Request-ID":e}};return s.post(i,n,r).then(function(t){return{chatID:t.data.dialog_id,message:l(t.data.message)}})["catch"](function(t){console.error("Request failed:",e),h(t)})},send:function(t,e,n){var i=d(),r={message:n,userID:a.userID},o="/bots/"+t+"/dialogs/"+e+"/messages",c="message="+encodeURIComponent(n),u={headers:{"X-Request-ID":i}};return s.post(o+"?"+c,r,u).then(function(t){return{message:l(t.data.message)}})["catch"](function(t){console.error("Request failed:",i),h(t)})},parse:l,profile:{get:o.get,set:o.set,has:o.has,clear:o.clear,"delete":o["delete"],forEach:o.forEach}},d=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)})},h=function(t){if(!t.status)throw t;var e=t.status,n=t.statusText,i=new Error(n);throw i.status=e,i}},function(t,e){var n={},i={set:function(t,e){return n[t]=e,i},get:function(t){return n[t]||""},has:function(t){return void 0!==n[t]},clear:function(){return n={},i},"delete":function(t){return delete n[t],i},forEach:function(t,e){return Object.keys(n).forEach(function(i){e?t(i,n[i]).bind(e):t(i,n[i])}),i}};t.exports=i},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function i(t){return function(e){return null==e?void 0:e[t]}}function r(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function o(t,e){return function(n){return t(e(n))}}function a(t,e,n){var i=t[e];A.call(t,e)&&m(i,n)&&(void 0!==n||e in t)||(t[e]=n)}function s(t,e){return null!=t&&(A.call(t,e)||"object"==typeof t&&e in t&&null===U(t))}function c(t,e){return e=q(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=q(i.length-e,0),a=Array(o);++r<o;)a[r]=i[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=i[r];return s[e]=a,n(t,this,s)}}function l(t,e,n,i){n||(n={});for(var r=-1,o=e.length;++r<o;){var s=e[r],c=i?i(n[s],t[s],s,n,t):void 0;a(n,s,void 0===c?t[s]:c)}return n}function u(t){return c(function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&p(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var s=n[i];s&&t(e,s,i,o)}return e})}function d(t){var e=t?t.length:void 0;return x(e)&&(N(t)||w(t)||v(t))?r(e,String):null}function h(t,e){return e=null==e?_:e,!!e&&("number"==typeof t||S.test(t))&&t>-1&&t%1==0&&t<e}function p(t,e,n){if(!C(n))return!1;var i=typeof e;return!!("number"==i?b(n)&&h(e,n.length):"string"==i&&e in n)&&m(n[e],t)}function f(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||T;return t===n}function m(t,e){return t===e||t!==t&&e!==e}function v(t){return g(t)&&A.call(t,"callee")&&(!H.call(t,"callee")||D.call(t)==M)}function b(t){return null!=t&&x(j(t))&&!y(t)}function g(t){return I(t)&&b(t)}function y(t){var e=C(t)?D.call(t):"";return e==E||e==L}function x(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=_}function C(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function I(t){return!!t&&"object"==typeof t}function w(t){return"string"==typeof t||!N(t)&&I(t)&&D.call(t)==k}function B(t){var e=f(t);if(!e&&!b(t))return R(t);var n=d(t),i=!!n,r=n||[],o=r.length;for(var a in t)!s(t,a)||i&&("length"==a||h(a,o))||e&&"constructor"==a||r.push(a);return r}var _=9007199254740991,M="[object Arguments]",E="[object Function]",L="[object GeneratorFunction]",k="[object String]",S=/^(?:0|[1-9]\d*)$/,T=Object.prototype,A=T.hasOwnProperty,D=T.toString,H=T.propertyIsEnumerable,$=Object.getPrototypeOf,z=Object.keys,q=Math.max,O=!H.call({valueOf:1},"valueOf"),R=o(z,Object),j=i("length"),U=o($,Object),N=Array.isArray,F=u(function(t,e){if(O||f(e)||b(e))return void l(e,B(e),t);for(var n in e)A.call(e,n)&&a(t,n,e[n])});t.exports=F},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){}])})},function(t,e,n){var i=n(7),r=i.profile;t.exports=r},function(t,e,n){var i;(function(t,r,o){(function(){"use strict";function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return"function"==typeof t}function c(t){J=t}function l(t){tt=t}function u(){return function(){t.nextTick(m)}}function d(){return function(){W(m)}}function h(){var t=0,e=new it(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function p(){var t=new MessageChannel;return t.port1.onmessage=m, function(){t.port2.postMessage(0)}}function f(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<K;t+=2){var e=at[t],n=at[t+1];e(n),at[t]=void 0,at[t+1]=void 0}K=0}function v(){try{var t=n(92);return W=t.runOnLoop||t.runOnContext,d()}catch(e){return f()}}function b(t,e){var n=this,i=new this.constructor(y);void 0===i[lt]&&O(i);var r=n._state;if(r){var o=arguments[r-1];tt(function(){$(r,i,o,n._result)})}else T(n,i,t,e);return i}function g(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return E(n,t),n}function y(){}function x(){return new TypeError("You cannot resolve a promise with itself")}function C(){return new TypeError("A promises callback cannot return that same promise.")}function I(t){try{return t.then}catch(e){return pt.error=e,pt}}function w(t,e,n,i){try{t.call(e,n,i)}catch(r){return r}}function B(t,e,n){tt(function(t){var i=!1,r=w(n,e,function(n){i||(i=!0,e!==n?E(t,n):k(t,n))},function(e){i||(i=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,S(t,r))},t)}function _(t,e){e._state===dt?k(t,e._result):e._state===ht?S(t,e._result):T(e,void 0,function(e){E(t,e)},function(e){S(t,e)})}function M(t,e,n){e.constructor===t.constructor&&n===st&&constructor.resolve===ct?_(t,e):n===pt?S(t,pt.error):void 0===n?k(t,e):s(n)?B(t,e,n):k(t,e)}function E(t,e){t===e?S(t,x()):a(e)?M(t,e,I(e)):k(t,e)}function L(t){t._onerror&&t._onerror(t._result),A(t)}function k(t,e){t._state===ut&&(t._result=e,t._state=dt,0!==t._subscribers.length&&tt(A,t))}function S(t,e){t._state===ut&&(t._state=ht,t._result=e,tt(L,t))}function T(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+dt]=n,r[o+ht]=i,0===o&&t._state&&tt(A,t)}function A(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i,r,o=t._result,a=0;a<e.length;a+=3)i=e[a],r=e[a+n],i?$(n,i,r,o):r(o);t._subscribers.length=0}}function D(){this.error=null}function H(t,e){try{return t(e)}catch(n){return ft.error=n,ft}}function $(t,e,n,i){var r,o,a,c,l=s(n);if(l){if(r=H(n,i),r===ft?(c=!0,o=r.error,r=null):a=!0,e===r)return void S(e,C())}else r=i,a=!0;e._state!==ut||(l&&a?E(e,r):c?S(e,o):t===dt?k(e,r):t===ht&&S(e,r))}function z(t,e){try{e(function(e){E(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function q(){return mt++}function O(t){t[lt]=mt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(t){return new xt(this,t).promise}function j(t){var e=this;return new e(Z(t)?function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function U(t){var e=this,n=new e(y);return S(n,t),n}function N(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function P(t){this[lt]=q(),this._result=this._state=void 0,this._subscribers=[],y!==t&&("function"!=typeof t&&N(),this instanceof P?z(this,t):F())}function V(t,e){this._instanceConstructor=t,this.promise=new t(y),this.promise[lt]||O(this.promise),Z(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&k(this.promise,this._result))):S(this.promise,X())}function X(){return new Error("Array Methods must be provided an Array")}function G(){var t;if("undefined"!=typeof r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=yt)}var Y;Y=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var W,J,Q,Z=Y,K=0,tt=function(t,e){at[K]=t,at[K+1]=e,K+=2,2===K&&(J?J(m):Q())},et="undefined"!=typeof window?window:void 0,nt=et||{},it=nt.MutationObserver||nt.WebKitMutationObserver,rt="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),ot="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,at=new Array(1e3);Q=rt?u():it?h():ot?p():void 0===et?v():f();var st=b,ct=g,lt=Math.random().toString(36).substring(16),ut=void 0,dt=1,ht=2,pt=new D,ft=new D,mt=0,vt=R,bt=j,gt=U,yt=P;P.all=vt,P.race=bt,P.resolve=ct,P.reject=gt,P._setScheduler=c,P._setAsap=l,P._asap=tt,P.prototype={constructor:P,then:st,"catch":function(t){return this.then(null,t)}};var xt=V;V.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ut&&n<t;n++)this._eachEntry(e[n],n)},V.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===ct){var r=I(t);if(r===st&&t._state!==ut)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===yt){var o=new n(y);M(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(i(t),e)},V.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===ut&&(this._remaining--,t===ht?S(i,n):this._result[e]=n),0===this._remaining&&k(i,this._result)},V.prototype._willSettleAt=function(t,e){var n=this;T(t,void 0,function(t){n._settledAt(dt,e,t)},function(t){n._settledAt(ht,e,t)})};var Ct=G,It={Promise:yt,polyfill:Ct};n(63).amd?(i=function(){return It}.call(e,n,e,o),!(void 0!==i&&(o.exports=i))):"undefined"!=typeof o&&o.exports?o.exports=It:"undefined"!=typeof this&&(this.ES6Promise=It),Ct()}).call(this)}).call(e,n(26),function(){return this}(),n(64)(t))},function(t,e,n){function i(t,e,n){var i=t[e];a.call(t,e)&&r(i,n)&&(void 0!==n||e in t)||(t[e]=n)}var r=n(20),o=Object.prototype,a=o.hasOwnProperty;t.exports=i},function(t,e,n){var i=n(76),r=n(71),o=n(70),a=n(75),s=n(74),c=n(73),l=n(68),u=n(67),d=n(69),h=n(72),p=n(77),f=n(66);t.exports={resize:r,start:i,clear:f,send:a,sendMock:s,receive:o,input:l,error:u,scrollToBottom:h,sendInputMessage:c,playback:d,tryIt:p}},function(t,e){var n={background:"rgba(61, 61, 61, 1)",accentBackground:"#BA8FF7",accentText:"#ffffff",text:"#ffffff",link:"#AF6EE8",secondaryBackground:"rgba(90, 90, 90, 1)",secondaryText:"rgba(247, 247, 247, 1)",inputBackground:"rgba(90, 90, 90, 1)",inputText:"rgba(247, 247, 247, 1)",errorBackground:"#e86e6e",errorText:"#ffffff",fontSize:"15px",fontFamily:'"Helvetica Neue",HelveticaNeue,Helvetica,sans-serif'};t.exports=n},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){function i(t,e){return e=o(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=o(n.length-e,0),s=Array(a);++i<a;)s[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=s,r(t,this,c)}}var r=n(13),o=Math.max;t.exports=i},function(t,e,n){function i(t,e,n,i){n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],c=i?i(n[s],t[s],s,n,t):void 0;r(n,s,void 0===c?t[s]:c)}return n}var r=n(10);t.exports=i},function(t,e,n){function i(t){return r(function(e,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),e=Object(e);++i<r;){var c=n[i];c&&t(e,c,i,a)}return e})}var r=n(14),o=n(17);t.exports=i},function(t,e){function n(){return!1}t.exports=n},17,function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function i(t){return null!=t&&o(t.length)&&!r(t)}var r=n(22),o=n(23);t.exports=i},function(t,e,n){function i(t){var e=r(t)?c.call(t):"";return e==o||e==a}var r=n(24),o="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,c=s.toString;t.exports=i},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}var i=9007199254740991;t.exports=n},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var i=n(19),r=i(Object.keys,Object);t.exports=r},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(d===clearTimeout)return clearTimeout(t);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){m&&p&&(m=!1,p.length?f=p.concat(f):v=-1,f.length&&s())}function s(){if(!m){var t=r(a);m=!0;for(var e=f.length;e;){for(p=f,f=[];++v<e;)p&&p[v].run();v=-1,e=f.length}p=null,m=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,d,h=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(t){d=i}}();var p,f=[],m=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new c(t,e)),1!==f.length||m||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e){t.exports='.IBMChat-creditcard-container {\n margin-top: 1em;\n padding: 1em 1.5em 1em 1.5em;\n width: 240px;\n}\n\n.IBMChat-creditcard-container fieldset {\n border:none;\n margin:0;\n padding:0;\n}\n\n.IBMChat-creditcard-row {\n padding-bottom: 1em;\n}\n\n.IBMChat-creditcard-row input[name="cc_full_name"], .IBMChat-creditcard-row input[name="cc_number"] {\n width: 100%;\n}\n\n.IBMChat-creditcard-row input[name="cc_exp_date_month"] {\n max-width: 32px;\n}\n\n.IBMChat-creditcard-row input[name="cc_exp_date_year"], .IBMChat-creditcard-row input[name="cc_code"] {\n max-width: 64px;\n}\n\n.IBMChat-creditcard-col {\n display: inline-block;\n}\n\n.IBMChat-creditcard-col:nth-child(2) {\n padding-left:1.5em;\n}\n\n.IBMChat-creditcard-buttons:after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: " ";\n clear: both;\n height: 0;\n}\n\n.IBMChat-creditcard-buttons button {\n width: 95px;\n float: left;\n text-overflow: clip;\n}\n\n.IBMChat-creditcard-buttons button:last-child {\n float: right;\n text-overflow: clip;\n}\n'},function(t,e){t.exports='<div class="${ns}-container IBMChat-secondary-colors">\n <div class="${ns}-row">\n <fieldset aria-describedby="cc_full_name_${uuid}_error">\n <label class="IBMChat-screen-reader-text" for="cc_full_name_${uuid}">Name on Card</label>\n <input type="text" class="IBMChat-input-colors" id="cc_full_name_${uuid}" name="cc_full_name" placeholder="Name on Card"/>\n <div id="cc_full_name_${uuid}_error" class="IBMChat-validation-error IBMChat-error-colors" data-validation-for="cc_full_name" data-valid="true" style="display:none;"></div>\n </fieldset>\n </div>\n <div class="${ns}-row">\n <fieldset aria-describedby="cc_number_${uuid}_error">\n <label class="IBMChat-screen-reader-text" for="cc_number_${uuid}">Credit Card Number</label>\n <input type="text" class="IBMChat-input-colors" id="cc_number_${uuid}" name="cc_number" placeholder="Credit Card Number"/>\n <div id="cc_number_${uuid}_error" class="IBMChat-validation-error IBMChat-error-colors" data-validation-for="cc_number" data-valid="true" style="display:none;"></div>\n </fieldset>\n </div>\n <div class="${ns}-row">\n <div class="${ns}-col">\n <fieldset aria-describedby="cc_exp_date_${uuid}_error">\n <label class="IBMChat-screen-reader-text" for="cc_exp_date_month_${uuid}">Expiration Date Month</label>\n <input class="${ns}-date IBMChat-input-colors" type="text" id="cc_exp_date_month_${uuid}" name="cc_exp_date_month" placeholder="MM" size="3" />\n <label class="IBMChat-screen-reader-text" for="cc_exp_date_year_${uuid}">Expiration Date Year</label>\n <input class="${ns}-date IBMChat-input-colors" type="text" id="cc_exp_date_year_${uuid}" name="cc_exp_date_year" placeholder="YYYY" size="5" />\n </fieldset>\n </div>\n <div class="${ns}-col">\n <fieldset aria-describedby="cc_code_${uuid}_error">\n <label class="IBMChat-screen-reader-text" for="cc_code_${uuid}">CVV</label>\n <input class="${ns}-cvv IBMChat-input-colors" type="text" id="cc_code_${uuid}" name="cc_code" placeholder="CVV" size="5"/>\n </fieldset>\n </div>\n <div id="cc_exp_date_${uuid}_error" class="IBMChat-validation-error IBMChat-error-colors" data-validation-for="cc_exp_date" data-valid="true" style="display:none;"></div>\n <div id="cc_code_${uuid}_error" class="IBMChat-validation-error IBMChat-error-colors" data-validation-for="cc_code" data-valid="true" style="display:none;"></div>\n </div>\n <div class="${ns}-buttons">\n <button class="${ns}-cancel">Cancel</button>\n <button class="${ns}-submit">Submit</button>\n </div>\n</div>\n'},function(t,e){t.exports=".IBMChat-islocationapi-container > div {\n\tmargin-top: 1em;\n}\n"},function(t,e){t.exports='<div class="${ns}-container">\n <div><button class="IBMChat-accent-colors-button" data-input="${values.geolocation}">Current Location</button></div>\n <div><button class="IBMChat-accent-colors-button" data-input="${values.postalcode}">Zip Code</button></div>\n</div>\n'},function(t,e){t.exports=".IBMChat-choose-container > div {\n\tmargin-top: 1em;\n}\n"},function(t,e){t.exports='<button class="IBMChat-accent-colors-button" data-input="${text}">${text}</button>\n'},function(t,e){t.exports="<button>${text}</button>\n"},function(t,e){t.exports=".IBMChat-error {\n padding: 0.5em 1em 0.5em 1em;\n}\n"},function(t,e){t.exports='<div class="IBMChat-error IBMChat-error-colors"></div>\n'},function(t,e){t.exports='.IBMChat-form-container {\n margin-top: 1em;\n padding: 1em 1.5em 1em 1.5em;\n width: 240px;\n}\n\n.IBMChat-form-container fieldset {\n border:none;\n margin:0;\n padding:0;\n}\n\n.IBMChat-form-fields {\n width:100%;\n}\n\n.IBMChat-form-fields-row {\n padding-bottom:1.5em;\n}\n\n.IBMChat-form-fields-row input {\n width: 100%;\n}\n\n.IBMChat-form-buttons {\n text-align:center;\n width: 100%;\n}\n\n.IBMChat-form-buttons:after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: " ";\n clear: both;\n height: 0;\n}\n\n.IBMChat-form-cancel {\n float:left;\n max-width: 50%;\n}\n.IBMChat-form-submit {\n float:right;\n max-width: 50%;\n}\n'},function(t,e){t.exports='<div class="IBMChat-form-container IBMChat-secondary-colors">\n <div class="IBMChat-form-fields"></div>\n <div class="IBMChat-form-buttons">\n <button class="IBMChat-form-cancel">${cancel}</button>\n <button class="IBMChat-form-submit">${submit}</button>\n </div>\n</div>\n'},function(t,e){t.exports='<fieldset aria-describedby="${name}_${uuid}_error">\n <label for="${name}_${uuid}">${label}</label>\n <input type="${type}" class="IBMChat-input-colors" id="${name}_${uuid}" name="${name}" value="${value}" />\n <div id="${name}_${uuid}_error" class="IBMChat-validation-error IBMChat-error-colors" style="display:none;" data-validation-for="${name}" data-valid="true"></div>\n</fieldset>\n'},function(t,e){t.exports='.IBMChat-map {\n margin-top: 1em;\n}\n\n.IBMChat-map-data {\n font-size:0.85em;\n}\n\n.IBMChat-map-img img {\n margin: 0 0 0.5em 0;\n min-height: 96px;\n width: 100%;\n}\n\n.IBMChat-map-multiple-locations {\n cursor: default;\n display: table;\n width: 100%;\n}\n\n.IBMChat-map-multiple-locations .IBMChat-map-locations-row {\n display:table-row;\n width: 100%;\n}\n\n.IBMChat-map-multiple-locations .IBMChat-map-locations-cell {\n display: table-cell;\n overflow: hidden;\n word-wrap: break-word;\n}\n\n.IBMChat-map-location-active .IBMChat-map-multiple-locations {\n opacity: 1;\n}\n\n.IBMChat-map-locations-item.IBMChat-map-multiple-locations {\n padding: 0.5em 0 0.5em 0;\n white-space: normal;\n}\n\n.IBMChat-disabled-layout .IBMChat-map-locations-item.IBMChat-map-multiple-locations {\n cursor: default;\n}\n\n.IBMChat-map-data-section {\n margin-top:0.5em;\n}\n\n.IBMChat-map-data-float-holder:after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: " ";\n clear: both;\n height: 0;\n}\n\n.IBMChat-map-locations-item {\n border-bottom:1px solid #505050;\n text-align:left;\n padding: 1em;\n}\n\n\n.IBMChat-map-locations-item-icon-holder {\n text-align:center;\n width: 40px;\n}\n\n.IBMChat-map-locations-item-icon {\n border-radius: 24px;\n height:24px;\n line-height: 24px;\n margin-right:8px;\n width:24px;\n}\n\n.IBMChat-map-locations-item-data {\n\n}\n.IBMChat-map-locations-item-data-title